@@ -1,74 +1,74 @@
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/HarnessPage.js" , "assets/HarnessPage.css" ] ) ) ) => i . map ( i => d [ i ] ) ;
var e = Object . defineProperty , t = ( t , n ) => { let r = { } ; for ( var i in t ) e ( r , i , { get : t [ i ] , enumerable : ! 0 } ) ; return n || e ( r , Symbol . toStringTag , { value : ` Module ` } ) , r } ; ( function ( ) { let e = document . createElement ( ` link ` ) . relList ; if ( e && e . supports && e . supports ( ` modulepreload ` ) ) return ; for ( let e of document . querySelectorAll ( ` link[rel="modulepreload"] ` ) ) n ( e ) ; new MutationObserver ( e => { for ( let t of e ) if ( t . type === ` childList ` ) for ( let e of t . addedNodes ) e . tagName === ` LINK ` && e . rel === ` modulepreload ` && n ( e ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( e ) { let t = { } ; return e . integrity && ( t . integrity = e . integrity ) , e . referrerPolicy && ( t . referrerPolicy = e . referrerPolicy ) , t . credentials = e . crossOrigin === ` use-credentials ` ? ` include ` : e . crossOrigin === ` anonymous ` ? ` omit ` : ` same-origin ` , t } function n ( e ) { if ( e . ep ) return ; e . ep = ! 0 ; let n = t ( e ) ; fetch ( e . href , n ) } } ) ( ) ; function n ( e ) { let t = Object . create ( null ) ; for ( let n of e . split ( ` , ` ) ) t [ n ] = 1 ; return e => e in t } var r = { } , i = [ ] , a = ( ) => { } , o = ( ) => ! 1 , s = e => e . charCodeAt ( 0 ) === 111 && e . charCodeAt ( 1 ) === 110 && ( e . charCodeAt ( 2 ) > 122 || e . charCodeAt ( 2 ) < 97 ) , c = e => e . startsWith ( ` onUpdate: ` ) , l = Object . assign , u = ( e , t ) => { let n = e . indexOf ( t ) ; n > - 1 && e . splice ( n , 1 ) } , d = Object . prototype . hasOwnProperty , f = ( e , t ) => d . call ( e , t ) , p = Array . isArray , m = e => w ( e ) === ` [object Map] ` , h = e => w ( e ) === ` [object Set] ` , g = e => w ( e ) === ` [object Date] ` , _ = e => w ( e ) === ` [object RegExp] ` , v = e => typeof e == ` function ` , y = e => typeof e == ` string ` , b = e => typeof e == ` symbol ` , x = e => typeof e == ` object ` && ! ! e , S = e => ( x ( e ) || v ( e ) ) && v ( e . then ) && v ( e . catch ) , C = Object . prototype . toString , w = e => C . call ( e ) , T = e => w ( e ) . slice ( 8 , - 1 ) , E = e => w ( e ) === ` [object Object] ` , D = e => y ( e ) && e !== ` NaN ` && e [ 0 ] !== ` - ` && ` ` + parseInt ( e , 10 ) === e , O = n ( ` ,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted ` ) , ee = e => { let t = Object . create ( null ) ; return ( n => t [ n ] || ( t [ n ] = e ( n ) ) ) } , te = /-\w/g , k = ee ( e => e . replace ( te , e => e . slice ( 1 ) . toUpperCase ( ) ) ) , ne = /\B([A-Z])/g , re = ee ( e => e . replace ( ne , ` - $ 1 ` ) . toLowerCase ( ) ) , ie = ee ( e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) ) , ae = ee ( e => e ? ` on ${ ie ( e ) } ` : ` ` ) , A = ( e , t ) => ! Object . is ( e , t ) , oe = ( e , ... t ) => { for ( let n = 0 ; n < e . length ; n ++ ) e [ n ] ( ... t ) } , se = ( e , t , n , r = ! 1 ) => { Object . defineProperty ( e , t , { configurable : ! 0 , enumerable : ! 1 , writable : r , value : n } ) } , ce = e => { let t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } , le = e => { let t = y ( e ) ? Number ( e ) : NaN ; return isNaN ( t ) ? e : t } , ue , de = ( ) => ue || = typeof globalThis < ` u ` ? globalThis : typeof self < ` u ` ? self : typeof window < ` u ` ? window : typeof global < ` u ` ? global : { } , fe = n ( ` Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol ` ) ; function pe ( e ) { if ( p ( e ) ) { let t = { } ; for ( let n = 0 ; n < e . length ; n ++ ) { let r = e [ n ] , i = y ( r ) ? _e ( r ) : pe ( r ) ; if ( i ) for ( let e in i ) t [ e ] = i [ e ] } return t } if ( y ( e ) || x ( e ) ) return e } var me = /;(?![^(]*\))/g , he = /:([^]+)/ , ge = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g ; function _e ( e ) { let t = { } ; return e . replace ( ge , e => e . startsWith ( ` /* ` ) ? ` ` : e ) . split ( me ) . forEach ( e => { if ( e ) { let n = e . split ( he ) ; n . length > 1 && ( t [ n [ 0 ] . trim ( ) ] = n [ 1 ] . trim ( ) ) } } ) , t } function j ( e ) { let t = ` ` ; if ( y ( e ) ) t = e ; else if ( p ( e ) ) for ( let n = 0 ; n < e . length ; n ++ ) { let r = j ( e [ n ] ) ; r && ( t += r + ` ` ) } else if ( x ( e ) ) for ( let n in e ) e [ n ] && ( t += n + ` ` ) ; return t . trim ( ) } function ve ( e ) { if ( ! e ) return null ; let { class : t , style : n } = e ; return t && ! y ( t ) && ( e . class = j ( t ) ) , n && ( e . style = pe ( n ) ) , e } var ye = ` itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly ` , be = n ( ye ) ; ye + ` ` ; function xe ( e ) { return ! ! e || e === ` ` } function Se ( e , t , n ) { if ( e . length !== t . length ) return ! 1 ; let r = ! 0 ; for ( let i = 0 ; r && i < e . length ; i ++ ) r = Ee ( e [ i ] , t [ i ] , n ) ; return r } function Ce ( e , t , n ) { if ( e . size !== t . size ) return ! 1 ; let r = Array . from ( t ) , i = new Uint8Array ( r . length ) ; for ( let t of e ) { let e = - 1 ; for ( let a = 0 ; a < r . length ; a ++ ) if ( ! i [ a ] && Ee ( t , r [ a ] , n ) ) { e = a ; break } if ( e < 0 ) return ! 1 ; i [ e ] = 1 } return ! 0 } function we ( e , t , n ) { let r = m ( e ) , i = m ( t ) ; if ( r || i || ( r = h ( e ) , i = h ( t ) , r || i ) ) return r && i ? Ce ( e , t , n ) : ! 1 ; if ( Object . keys ( e ) . length !== Object . keys ( t ) . length ) return ! 1 ; for ( let r in e ) { let i = e . hasOwnProperty ( r ) , a = t . hasOwnProperty ( r ) ; if ( i && ! a || ! i && a || ! Ee ( e [ r ] , t [ r ] , n ) ) return ! 1 } return String ( e ) === String ( t ) } function Te ( e , t , n , r ) { n || = [ new Map , new Map ] ; let [ i , a ] = n ; if ( i . has ( e ) || a . has ( t ) ) return i . get ( e ) === t && a . get ( t ) === e ; i . set ( e , t ) , a . set ( t , e ) ; let o = r ( e , t , n ) ; return i . delete ( e ) , a . delete ( t ) , o } function Ee ( e , t , n ) { if ( e === t ) return ! 0 ; let r = g ( e ) , i = g ( t ) ; return r || i ? r && i ? e . getTime ( ) === t . getTime ( ) : ! 1 : ( r = b ( e ) , i = b ( t ) , r || i ? e === t : ( r = p ( e ) , i = p ( t ) , r || i ? r && i ? Te ( e , t , n , Se ) : ! 1 : ( r = x ( e ) , i = x ( t ) , r || i ? ! r || ! i ? ! 1 : Te ( e , t , n , we ) : String ( e ) === String ( t ) ) ) ) } function De ( e , t ) { return e . findIndex ( e => Ee ( e , t ) ) } var Oe = e => ! ! ( e && e . _ _v _isRef === ! 0 ) , M = e => y ( e ) ? e : e == null ? ` ` : p ( e ) || x ( e ) && ( e . toString === C || ! v ( e . toString ) ) ? Oe ( e ) ? M ( e . value ) : JSON . stringify ( e , ke , 2 ) : String ( e ) , ke = ( e , t ) => Oe ( t ) ? ke ( e , t . value ) : m ( t ) ? { [ ` Map( ${ t . size } ) ` ] : [ ... t . entries ( ) ] . reduce ( ( e , [ t , n ] , r ) => ( e [ Ae ( t , r ) + ` => ` ] = n , e ) , { } ) } : h ( t ) ? { [ ` Set( ${ t . size } ) ` ] : [ ... t . values ( ) ] . map ( e => Ae ( e ) ) } : b ( t ) ? Ae ( t ) : x ( t ) && ! p ( t ) && ! E ( t ) ? String ( t ) : t , Ae = ( e , t = ` ` ) => b ( e ) ? ` Symbol( ${ e . description ? ? t } ) ` : e ; function je ( e ) { return e == null ? ` initial ` : typeof e Line truncated
var e = Object . defineProperty , t = ( t , n ) => { let r = { } ; for ( var i in t ) e ( r , i , { get : t [ i ] , enumerable : ! 0 } ) ; return n || e ( r , Symbol . toStringTag , { value : ` Module ` } ) , r } ; ( function ( ) { let e = document . createElement ( ` link ` ) . relList ; if ( e && e . supports && e . supports ( ` modulepreload ` ) ) return ; for ( let e of document . querySelectorAll ( ` link[rel="modulepreload"] ` ) ) n ( e ) ; new MutationObserver ( e => { for ( let t of e ) if ( t . type === ` childList ` ) for ( let e of t . addedNodes ) e . tagName === ` LINK ` && e . rel === ` modulepreload ` && n ( e ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function t ( e ) { let t = { } ; return e . integrity && ( t . integrity = e . integrity ) , e . referrerPolicy && ( t . referrerPolicy = e . referrerPolicy ) , t . credentials = e . crossOrigin === ` use-credentials ` ? ` include ` : e . crossOrigin === ` anonymous ` ? ` omit ` : ` same-origin ` , t } function n ( e ) { if ( e . ep ) return ; e . ep = ! 0 ; let n = t ( e ) ; fetch ( e . href , n ) } } ) ( ) ; function n ( e ) { let t = Object . create ( null ) ; for ( let n of e . split ( ` , ` ) ) t [ n ] = 1 ; return e => e in t } var r = { } , i = [ ] , a = ( ) => { } , o = ( ) => ! 1 , s = e => e . charCodeAt ( 0 ) === 111 && e . charCodeAt ( 1 ) === 110 && ( e . charCodeAt ( 2 ) > 122 || e . charCodeAt ( 2 ) < 97 ) , c = e => e . startsWith ( ` onUpdate: ` ) , l = Object . assign , u = ( e , t ) => { let n = e . indexOf ( t ) ; n > - 1 && e . splice ( n , 1 ) } , d = Object . prototype . hasOwnProperty , f = ( e , t ) => d . call ( e , t ) , p = Array . isArray , m = e => w ( e ) === ` [object Map] ` , h = e => w ( e ) === ` [object Set] ` , g = e => w ( e ) === ` [object Date] ` , _ = e => w ( e ) === ` [object RegExp] ` , v = e => typeof e == ` function ` , y = e => typeof e == ` string ` , b = e => typeof e == ` symbol ` , x = e => typeof e == ` object ` && ! ! e , S = e => ( x ( e ) || v ( e ) ) && v ( e . then ) && v ( e . catch ) , C = Object . prototype . toString , w = e => C . call ( e ) , T = e => w ( e ) . slice ( 8 , - 1 ) , E = e => w ( e ) === ` [object Object] ` , D = e => y ( e ) && e !== ` NaN ` && e [ 0 ] !== ` - ` && ` ` + parseInt ( e , 10 ) === e , O = n ( ` ,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted ` ) , ee = e => { let t = Object . create ( null ) ; return ( n => t [ n ] || ( t [ n ] = e ( n ) ) ) } , te = /-\w/g , k = ee ( e => e . replace ( te , e => e . slice ( 1 ) . toUpperCase ( ) ) ) , ne = /\B([A-Z])/g , re = ee ( e => e . replace ( ne , ` - $ 1 ` ) . toLowerCase ( ) ) , ie = ee ( e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) ) , ae = ee ( e => e ? ` on ${ ie ( e ) } ` : ` ` ) , A = ( e , t ) => ! Object . is ( e , t ) , oe = ( e , ... t ) => { for ( let n = 0 ; n < e . length ; n ++ ) e [ n ] ( ... t ) } , se = ( e , t , n , r = ! 1 ) => { Object . defineProperty ( e , t , { configurable : ! 0 , enumerable : ! 1 , writable : r , value : n } ) } , ce = e => { let t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } , le = e => { let t = y ( e ) ? Number ( e ) : NaN ; return isNaN ( t ) ? e : t } , ue , de = ( ) => ue || = typeof globalThis < ` u ` ? globalThis : typeof self < ` u ` ? self : typeof window < ` u ` ? window : typeof global < ` u ` ? global : { } , fe = n ( ` Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol ` ) ; function pe ( e ) { if ( p ( e ) ) { let t = { } ; for ( let n = 0 ; n < e . length ; n ++ ) { let r = e [ n ] , i = y ( r ) ? _e ( r ) : pe ( r ) ; if ( i ) for ( let e in i ) t [ e ] = i [ e ] } return t } if ( y ( e ) || x ( e ) ) return e } var me = /;(?![^(]*\))/g , he = /:([^]+)/ , ge = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g ; function _e ( e ) { let t = { } ; return e . replace ( ge , e => e . startsWith ( ` /* ` ) ? ` ` : e ) . split ( me ) . forEach ( e => { if ( e ) { let n = e . split ( he ) ; n . length > 1 && ( t [ n [ 0 ] . trim ( ) ] = n [ 1 ] . trim ( ) ) } } ) , t } function j ( e ) { let t = ` ` ; if ( y ( e ) ) t = e ; else if ( p ( e ) ) for ( let n = 0 ; n < e . length ; n ++ ) { let r = j ( e [ n ] ) ; r && ( t += r + ` ` ) } else if ( x ( e ) ) for ( let n in e ) e [ n ] && ( t += n + ` ` ) ; return t . trim ( ) } function ve ( e ) { if ( ! e ) return null ; let { class : t , style : n } = e ; return t && ! y ( t ) && ( e . class = j ( t ) ) , n && ( e . style = pe ( n ) ) , e } var ye = ` itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly ` , be = n ( ye ) ; ye + ` ` ; function xe ( e ) { return ! ! e || e === ` ` } function Se ( e , t , n ) { if ( e . length !== t . length ) return ! 1 ; let r = ! 0 ; for ( let i = 0 ; r && i < e . length ; i ++ ) r = Ee ( e [ i ] , t [ i ] , n ) ; return r } function Ce ( e , t , n ) { if ( e . size !== t . size ) return ! 1 ; let r = Array . from ( t ) , i = new Uint8Array ( r . length ) ; for ( let t of e ) { let e = - 1 ; for ( let a = 0 ; a < r . length ; a ++ ) if ( ! i [ a ] && Ee ( t , r [ a ] , n ) ) { e = a ; break } if ( e < 0 ) return ! 1 ; i [ e ] = 1 } return ! 0 } function we ( e , t , n ) { let r = m ( e ) , i = m ( t ) ; if ( r || i || ( r = h ( e ) , i = h ( t ) , r || i ) ) return r && i ? Ce ( e , t , n ) : ! 1 ; if ( Object . keys ( e ) . length !== Object . keys ( t ) . length ) return ! 1 ; for ( let r in e ) { let i = e . hasOwnProperty ( r ) , a = t . hasOwnProperty ( r ) ; if ( i && ! a || ! i && a || ! Ee ( e [ r ] , t [ r ] , n ) ) return ! 1 } return String ( e ) === String ( t ) } function Te ( e , t , n , r ) { n || = [ new Map , new Map ] ; let [ i , a ] = n ; if ( i . has ( e ) || a . has ( t ) ) return i . get ( e ) === t && a . get ( t ) === e ; i . set ( e , t ) , a . set ( t , e ) ; let o = r ( e , t , n ) ; return i . delete ( e ) , a . delete ( t ) , o } function Ee ( e , t , n ) { if ( e === t ) return ! 0 ; let r = g ( e ) , i = g ( t ) ; return r || i ? r && i ? e . getTime ( ) === t . getTime ( ) : ! 1 : ( r = b ( e ) , i = b ( t ) , r || i ? e === t : ( r = p ( e ) , i = p ( t ) , r || i ? r && i ? Te ( e , t , n , Se ) : ! 1 : ( r = x ( e ) , i = x ( t ) , r || i ? ! r || ! i ? ! 1 : Te ( e , t , n , we ) : String ( e ) === String ( t ) ) ) ) } function De ( e , t ) { return e . findIndex ( e => Ee ( e , t ) ) } var Oe = e => ! ! ( e && e . _ _v _isRef === ! 0 ) , M = e => y ( e ) ? e : e == null ? ` ` : p ( e ) || x ( e ) && ( e . toString === C || ! v ( e . toString ) ) ? Oe ( e ) ? M ( e . value ) : JSON . stringify ( e , ke , 2 ) : String ( e ) , ke = ( e , t ) => Oe ( t ) ? ke ( e , t . value ) : m ( t ) ? { [ ` Map( ${ t . size } ) ` ] : [ ... t . entries ( ) ] . reduce ( ( e , [ t , n ] , r ) => ( e [ Ae ( t , r ) + ` => ` ] = n , e ) , { } ) } : h ( t ) ? { [ ` Set( ${ t . size } ) ` ] : [ ... t . values ( ) ] . map ( e => Ae ( e ) ) } : b ( t ) ? Ae ( t ) : x ( t ) && ! p ( t ) && ! E ( t ) ? String ( t ) : t , Ae = ( e , t = ` ` ) => b ( e ) ? ` Symbol( ${ e . description ? ? t } ) ` : e ; function je ( e ) { return e == null ? ` initial ` : typeof e Line truncated
` &&(e.tagName=== ` PRE ` ||e.tagName=== ` TEXTAREA ` )&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/ \r \n | \r /g, `
` )&&(wi(e,0)||mi(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes( ` - ` ),i=e.namespaceURI.includes( ` svg ` )? ` svg ` :e.namespaceURI.includes( ` MathML ` )? ` mathml ` :void 0;for(let a in d)if(_&&(a.endsWith( ` value ` )||a=== ` indeterminate ` )||s(a)&&!O(a)||a[0]=== ` . ` ||t&&!O(a)||u&&u.includes(a)){if(xi(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e, ` onClick ` ,null,d.onClick,void 0,n);else if(f&4&&nn(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Ds(x,n,t),h&&yr(t,null,n, ` beforeMount ` ),((x=d&&d.onVnodeMounted)||h||l)&&rs(()=>{x&&Ds(x,n,t),l&&g.enter(e),h&&yr(t,null,n, ` mounted ` )},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=ws(d[t]),g=h.type===os;e?(g&&!u&&t+1<p&&ws(d[t+1]).type===os&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i( ` ` ),r):(m||(m=!0,wi(r,1)||mi()),n(null,h,r,null,o,s,_i(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&vi(f)&&f.data=== ` ] ` ?a(t.anchor=f):(mi(),l(t.anchor=u( ` ] ` ),d,f),f)},g=(e,t,r,i,s,l)=>{if(Ei(e,t)||mi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,_i(d),s),r&&(r.vnode.el=t.el,_o(r,t.el)),u},_=(e,t= ` [ ` ,n= ` ] ` )=>{let r=0;for(;e;)if(e=a(e),e&&vi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName=== ` TEMPLATE ` ;return[d,f]}var bi=new Set([ ` src ` , ` srcset ` , ` href ` , ` poster ` ]);function xi(e,t,n){return bi.has(t)?e.getAttribute(t)===(n==null?null: ` $ { n } ` ):!1}var Si= ` data - allow - mismatch ` ,Ci={0: ` text ` ,1: ` children ` ,2: ` class ` ,3: ` style ` ,4: ` attribute ` };function wi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Si);)e=e.parentElement;return Ti(e&&e.getAttribute(Si),t)}function Ti(e,t){if(e==null)return!1;if(e=== ` ` )return!0;{let n=e.split( ` , ` );return t===0&&n.includes( ` children ` )?!0:n.includes(Ci[t])}}function Ei(e,t){return wi(e.parentElement,1)||Di(e)||Oi(t)}function Di(e){return e.nodeType===1&&Ti(e.getAttribute(Si),1)}function Oi({props:e}){let t=e&&e[Si];return typeof t== ` string ` &&Ti(t,1)}var ki=de().requestIdleCallback||(e=>setTimeout(e,1)),Ai=de().cancelIdleCallback||(e=>clearTimeout(e)),ji=(e=1e4)=>t=>{let n=ki(t,{timeout:e});return()=>Ai(n)};function Mi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Ni=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Mi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Pi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener( ` change ` ,t,{once:!0}),()=>n.removeEventListener( ` change ` ,t)}},Fi=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ii(e,t){if(vi(e)&&e.data=== ` [ ` ){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(vi(r)){if(r.data=== ` ] ` ){if(--n===0)break}else r.data=== ` [ ` &&n++}r=r.nextSibling}}else t(e)}var Li=e=>!!e.type.__asyncLoader;function Ri(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]=== ` Module ` )&&(t=t.default),u=t,t)))};return L({name: ` AsyncComponentWrapper ` ,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Ii(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=js;if(si(e),u)return()=>zi(u,e);let t=t=>{l=null,Gn(t,e,13,!r)};if(s&&e.suspense||Rs)return p().then(t=>()=>zi(t,e)).catch(e=>(t(e),()=>r?G(r,{error:e}):null));let a=N(!1),c=N(),d=N(!!i),f,m;return na(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error( ` Async component timed out after $ { o } ms . ` );t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Bi(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return zi(u,e);if(c.value&&r)return G(r,{error:c.value});if(n&&!d
Line truncated
` ))),e[Il]=Nl(i);let a=r||i.props&&i.props.type=== ` number ` ;rl(e,t? ` change ` : ` input ` ,t=>{t.target.composing||e[Il](Rl(e.value,n,a))}),(n||a)&&rl(e, ` change ` ,()=>{e.value=Rl(e.value,n,a)}),t||(rl(e, ` compositionstart ` ,Pl),rl(e, ` compositionend ` ,Fl),rl(e, ` change ` ,Fl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t?? ` ` ,a=e[Ll];delete e[Ll],a!==void 0&&(e.type=== ` text ` ||e.type=== ` textarea ` )&&e.value!==a?e[Il](Rl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Il]=Nl(o),e.composing)return;let s=(a||e.type=== ` number ` )&&!/^0 \d /.test(e.value)?ce(e.value):e.value,c=t?? ` ` ;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!== ` range ` &&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Bl={deep:!0,created(e,t,n){e[Il]=Nl(n),rl(e, ` change ` ,()=>{let t=e._modelValue,n=Kl(e),r=e.checked,i=e[Il];if(p(t)){let e=De(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ql(e,r))})},mounted:Vl,beforeUpdate(e,t,n){e[Il]=Nl(n),Vl(e,t,n)}};function Vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=De(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Ee(t,ql(e,!0))}e.checked!==i&&(e.checked=i)}var Hl={created(e,{value:t},n){e.checked=Ee(t,n.props.value),e[Il]=Nl(n),rl(e, ` change ` ,()=>{e[Il](Kl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Il]=Nl(r),t!==n&&(e.checked=Ee(t,r.props.value))}},Ul={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,rl(e, ` change ` ,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(Kl(e)):Kl(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[Il](i)}finally{er(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Il]=Nl(r)},mounted(e,{value:t}){Gl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Il]=Nl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Wl(t,n[1],n[0]))&&Gl(e,t)}};function Wl(e,t,n){if(!n||p(e))return Ee(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Gl(e,t){let n=e.multiple,r=p(t);if(!n||r||h(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Kl(a);if(n){if(r){let e=typeof o;a.selected=e=== ` string ` ||e=== ` number ` ?t.some(e=>String(e)===String(o)):De(t,o)>-1}else a.selected=t.has(o)}else if(Ee(Kl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kl(e){return ` _value ` in e?e._value:e.value}function ql(e,t){let n=t? ` _trueValue ` : ` _falseValue ` ;return n in e?e[n]:t}var Jl={created(e,t,n){Xl(e,t,n,null, ` created ` )},mounted(e,t,n){Xl(e,t,n,null, ` mounted ` )},beforeUpdate(e,t,n,r){Xl(e,t,n,r, ` beforeUpdate ` )},updated(e,t,n,r){Xl(e,t,n,r, ` updated ` )}};function Yl(e,t){switch(e){case ` SELECT ` :return Ul;case ` TEXTAREA ` :return zl;default:switch(t){case ` checkbox ` :return Bl;case ` radio ` :return Hl;default:return zl}}}function Xl(e,t,n,r,i){let a=Yl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Zl(){zl.getSSRProps=({value:e})=>({value:e}),Hl.getSSRProps=({value:e},t)=>{if(t.props&&Ee(t.props.value,e))return{checked:!0}},Bl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&De(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Jl.getSSRProps=(e,t)=>{if(typeof t.type!= ` string ` )return;let n=Yl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Ql=[ ` ctrl ` , ` shift ` , ` alt ` , ` meta ` ], $ l={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=> ` button ` in e&&e.button!==0,middle:e=> ` button ` in e&&e.button!==1,right:e=> ` button ` in e&&e.button!==2,exact:(e,t)=>Ql.some(n=>e[ ` $ { n } Key ` ]&&!t.includes(n))},eu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join( ` . ` );return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r= $ l[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},tu={esc: ` escape ` ,space: ` ` ,up: ` arrow - up ` ,left: ` arrow - left ` ,right: ` arrow - right ` ,down: ` arrow - down ` ,delete: ` backspace ` },nu=(e,t)=>{let n=e._withKeys||={},r=t.join( ` . ` );return n[r]||(n[r]=(n=>{if(!( ` key ` in n))return;let r=re(n.key);if(t.some(e=>e===r||tu[e]===r))return e(n)}))},ru=l({patchProp:hl},hc),iu,au=!1;function ou(){return iu||=Lo(ru)}function su(){return iu=au?iu:Ro(ru),au=!0,iu}var cu=((...e)=>{ou().render(...e)}),lu=((...e)=>{su().hydrate(...e)}),uu=((...e)=>{let t=ou().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=pu(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent= ` ` );let a=n(r,!1,fu(r));return r instanceof Element&&(r.removeAttribute( ` v - cloak ` ),r.setAttribute( ` data - v - app ` , ` ` )),a},t}),du=((
Line truncated
` )[0].slice(0,200)}catch{}return ` $ { e . status } $ { e . statusText } ` }var Kp;function qp(e){Kp=e}var Jp=class extends Error{status;constructor(e,t){super(e),this.name= ` ApiError ` ,this.status=t}};function Yp(e){let t=e instanceof Jp?e.status:void 0,n=e instanceof Error&&e.message?e.message: ` Action failed ` ;return t===401?{kind: ` session - expired ` ,message:n}:t!==void 0&&t>=400&&t<500?{kind: ` refused ` ,message:n}:{kind: ` broken ` ,message:n}}async function Xp(e,t){let n=await fetch(e,t);if(Kp?.(n.status===401),!n.ok)throw new Jp(await Gp(n),n.status);return n}async function Zp(e,t={}){let{method:n= ` GET ` ,body:r,timeoutMs:i=Up,parse:a=!0}=t,o={Accept: ` application / json ` },s={method:n,headers:o,signal:AbortSignal.timeout(i)};n!== ` GET ` &&(o[ ` Content - Type ` ]= ` application / json ` ,o[ ` X - Archie - CSRF ` ]= ` 1 ` ),r!==void 0&&(s.body=JSON.stringify(r));let c=await Xp(e,s);return a?await c.json():void 0}var Qp={health:()=>Zp( ` / health / detailed ` ),services:()=>Zp( ` / api / services ` ),policies:()=>Zp( ` / api / access / policies ` ),putPolicy:e=>Zp( ` / api / access / policies ` ,{method: ` PUT ` ,body:e}),deletePolicy:e=>Zp( ` / api / access / policies ` ,{method: ` DELETE ` ,body:e,parse:!1}),summary:()=>Zp( ` / api / summary ` ),tasks:()=>Zp( ` / api / tasks ` ),taskMeta:()=>Zp( ` / api / task - meta ` ),task:e=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } ` ),taskAttempts:e=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } / attempts ` ),taskChanges:(e,t)=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } / changes ` +Wp(t)),taskDebug:(e,t)=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } / debug ` +Wp(t)),taskAction:(e,t,n)=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } / action ` ,{method: ` POST ` ,body:{action:t,...n}}),setup:()=>Zp( ` / api / setup ` ),capabilities:()=>Zp( ` / api / capabilities ` ),workflows:()=>Zp( ` / api / workflows ` ),workflowEnabled:(e,t)=>Zp( ` / api / workflows / $ { encodeURIComponent ( e ) } / enabled ` ,{method: ` PUT ` ,body:{enabled:t},parse:!1}),workRequest:e=>Zp( ` / api / work - requests ` ,{method: ` POST ` ,body:e}),skills:()=>Zp( ` / api / skills ` ),channels:()=>Zp( ` / api / channels ` ),curators:()=>Zp( ` / api / curators ` ),channelReload:e=>Zp( ` / api / channels / $ { encodeURIComponent ( e ) } / reload ` ,{method: ` POST ` ,body:{}}),config:()=>Zp( ` / api / config ` ),logs:e=>Zp( ` / api / logs ` +Wp(e)),taskLogs:(e,t)=>Zp( ` / api / tasks / $ { encodeURIComponent ( e ) } / logs ` +Wp(t)),taskLogDownloadURL:(e,t)=> ` / api / tasks / $ { encodeURIComponent ( e ) } / logs / download ` +(t==null? ` ` : ` ? attempt = $ { t } ` ),version:()=>Zp( ` / api / version ` ),updateSnapshot:()=>Zp( ` / api / chat / update ` ),updateInstall:e=>Zp( ` / api / chat / update / install ` ,{method: ` POST ` ,body:{snapshot:e},timeoutMs:9e5}),captures:e=>Zp( ` / api / captures ` +Wp({limit:e})),eventTypes:()=>Zp( ` / api / event - types ` ),eventTypeCreate:e=>Zp( ` / api / event - types ` ,{method: ` POST ` ,body:e}),eventTypeUpdate:(e,t)=>Zp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` PUT ` ,body:t}),eventTypeDelete:e=>Zp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappings:()=>Zp( ` / api / mappings ` ),mappingCreate:e=>Zp( ` / api / mappings ` ,{method: ` POST ` ,body:e}),mappingUpdate:(e,t)=>Zp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),mappingDelete:e=>Zp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappingPreview:(e,t)=>Zp( ` / api / mappings / preview ` ,{method: ` POST ` ,body:{capture_id:e,fields:t}}),bindings:()=>Zp( ` / api / bindings ` ),bindingCreate:e=>Zp( ` / api / bindings ` ,{method: ` POST ` ,body:e}),bindingUpdate:(e,t)=>Zp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),bindingDelete:e=>Zp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),bindingApprove:e=>Zp( ` / api / bindings / $ { encodeURIComponent ( e ) } / approve ` ,{method: ` POST ` }),harnessBindings:()=>Zp( ` / api / harness / bindings ` ),sources:()=>Zp( ` / api / sources ` ),sourceCreate:e=>Zp( ` / api / sources ` ,{method: ` POST ` ,body:{path:e}}),sourceSigning:(e,t)=>Zp( ` / api / sources / $ { encodeURIComponent ( e ) } / signing ` ,{method: ` POST ` ,body:{signed:t}}),sourceApproveUnsigned:e=>Zp( ` / api / sources / $ { encodeURIComponent ( e ) } / approve - unsigned ` ,{method: ` POST ` }),sourceSecret:e=>Zp( ` / api / sources / $ { encodeURIComponent ( e ) } / secret ` ,{method: ` POST ` }),chatSessions:()=>Zp( ` / api / chat / sessions ` ),chatMessages:e=>Zp( ` / api / chat / sessions / $ { encodeURIComponent ( e ) } / messages ` ),chatTurns:e=>Zp( ` / api / chat / sessions / $ { encodeURIComponent ( e ) } / turns ` ),chatCancel:e=>Zp( ` / api / chat / cancel ` ,{method: ` POST ` ,body:{session_id:e}}),chatMessage:(e,t)=>Zp( ` / api / chat / message ` ,{method: ` POST ` ,body:{channel_id:e,source_id:Hp(),text:t,page:location.pathname+location.search|| ` / ` }}),chatPersona:(e,t)=>Zp( ` / api / chat / persona ` ,{method: ` POST ` ,body:{session_id:e,name:t}}),chatDangerous:()=>Zp( ` / api / chat / dangerous ` ),chatDangerousRequest:(e,t)=>Zp( ` / api / chat / dangerous / $ { encodeURIComponent ( e ) } ` ,{method: ` POST ` ,body:{spec:t}}),chatDangerousDecision:(e,t)=>Zp( ` / api / chat / dangerous / $ { encodeURIComponent ( e ) } / decision ` ,{method: ` POST ` ,body:{decision:t}}),chatStream:(e,t={})=>Xp( ` / api / chat / stream ` ,{method: ` POST ` ,headers:{Accept: ` text / event - stream ` ,"Content-Type": ` application / json ` ,"X-Archie-CSRF": ` 1 ` },body:JSON.stringify(e),signal:t.signal})};function $ p(e,t,n= ` ` ,r=!1){let i=new EventSource(Vp(n,r));return i.onopen=()=>t( ` l Line truncated
` )&&(vi(e,0)||ci(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes( ` - ` ),i=e.namespaceURI.includes( ` svg ` )? ` svg ` :e.namespaceURI.includes( ` MathML ` )? ` mathml ` :void 0;for(let a in d)if(_&&(a.endsWith( ` value ` )||a=== ` indeterminate ` )||s(a)&&!O(a)||a[0]=== ` . ` ||t&&!O(a)||u&&u.includes(a)){if(hi(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e, ` onClick ` ,null,d.onClick,void 0,n);else if(f&4&&en(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&ys(x,n,t),h&&pr(t,null,n, ` beforeMount ` ),((x=d&&d.onVnodeMounted)||h||l)&&Yo(()=>{x&&ys(x,n,t),l&&g.enter(e),h&&pr(t,null,n, ` mounted ` )},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=gs(d[t]),g=h.type===Qo;e?(g&&!u&&t+1<p&&gs(d[t+1]).type===Qo&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i( ` ` ),r):(m||(m=!0,vi(r,1)||ci()),n(null,h,r,null,o,s,di(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&fi(f)&&f.data=== ` ] ` ?a(t.anchor=f):(ci(),l(t.anchor=u( ` ] ` ),d,f),f)},g=(e,t,r,i,s,l)=>{if(bi(e,t)||ci(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,di(d),s),r&&(r.vnode.el=t.el,so(r,t.el)),u},_=(e,t= ` [ ` ,n= ` ] ` )=>{let r=0;for(;e;)if(e=a(e),e&&fi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName=== ` TEMPLATE ` ;return[d,f]}var mi=new Set([ ` src ` , ` srcset ` , ` href ` , ` poster ` ]);function hi(e,t,n){return mi.has(t)?e.getAttribute(t)===(n==null?null: ` $ { n } ` ):!1}var gi= ` data - allow - mismatch ` ,_i={0: ` text ` ,1: ` children ` ,2: ` class ` ,3: ` style ` ,4: ` attribute ` };function vi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(gi);)e=e.parentElement;return yi(e&&e.getAttribute(gi),t)}function yi(e,t){if(e==null)return!1;if(e=== ` ` )return!0;{let n=e.split( ` , ` );return t===0&&n.includes( ` children ` )?!0:n.includes(_i[t])}}function bi(e,t){return vi(e.parentElement,1)||xi(e)||Si(t)}function xi(e){return e.nodeType===1&&yi(e.getAttribute(gi),1)}function Si({props:e}){let t=e&&e[gi];return typeof t== ` string ` &&yi(t,1)}var Ci=de().requestIdleCallback||(e=>setTimeout(e,1)),wi=de().cancelIdleCallback||(e=>clearTimeout(e)),Ti=(e=1e4)=>t=>{let n=Ci(t,{timeout:e});return()=>wi(n)};function Ei(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Di=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ei(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Oi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener( ` change ` ,t,{once:!0}),()=>n.removeEventListener( ` change ` ,t)}},ki=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ai(e,t){if(fi(e)&&e.data=== ` [ ` ){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(fi(r)){if(r.data=== ` ] ` ){if(--n===0)break}else r.data=== ` [ ` &&n++}r=r.nextSibling}}else t(e)}var ji=e=>!!e.type.__asyncLoader;function Mi(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]=== ` Module ` )&&(t=t.default),u=t,t)))};return L({name: ` AsyncComponentWrapper ` ,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Ai(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Cs;if(ti(e),u)return()=>Ni(u,e);let t=t=>{l=null,zn(t,e,13,!r)};if(s&&e.suspense||As)return p().then(t=>()=>Ni(t,e)).catch(e=>(t(e),()=>r?K(r,{error:e}):null));let a=N(!1),c=N(),d=N(!!i),f,m;return Yi(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error( ` Async component timed out after $ { o } ms . ` );t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Pi(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Ni(u,e);if(c.value&&r)return K(r,{error:c.value});if(n&&!d
Line truncated
` ))),e[jl]=Ol(i);let a=r||i.props&&i.props.type=== ` number ` ;Yc(e,t? ` change ` : ` input ` ,t=>{t.target.composing||e[jl](Nl(e.value,n,a))}),(n||a)&&Yc(e, ` change ` ,()=>{e.value=Nl(e.value,n,a)}),t||(Yc(e, ` compositionstart ` ,kl),Yc(e, ` compositionend ` ,Al),Yc(e, ` change ` ,Al))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t?? ` ` ,a=e[Ml];delete e[Ml],a!==void 0&&(e.type=== ` text ` ||e.type=== ` textarea ` )&&e.value!==a?e[jl](Nl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[jl]=Ol(o),e.composing)return;let s=(a||e.type=== ` number ` )&&!/^0 \d /.test(e.value)?ce(e.value):e.value,c=t?? ` ` ;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!== ` range ` &&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Fl={deep:!0,created(e,t,n){e[jl]=Ol(n),Yc(e, ` change ` ,()=>{let t=e._modelValue,n=Bl(e),r=e.checked,i=e[jl];if(p(t)){let e=De(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Vl(e,r))})},mounted:Il,beforeUpdate(e,t,n){e[jl]=Ol(n),Il(e,t,n)}};function Il(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=De(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Ee(t,Vl(e,!0))}e.checked!==i&&(e.checked=i)}var Ll={created(e,{value:t},n){e.checked=Ee(t,n.props.value),e[jl]=Ol(n),Yc(e, ` change ` ,()=>{e[jl](Bl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[jl]=Ol(r),t!==n&&(e.checked=Ee(t,r.props.value))}},Rl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Yc(e, ` change ` ,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(Bl(e)):Bl(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[jl](i)}finally{Jn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[jl]=Ol(r)},mounted(e,{value:t}){zl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[jl]=Ol(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!cee(t,n[1],n[0]))&&zl(e,t)}};function cee(e,t,n){if(!n||p(e))return Ee(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function zl(e,t){let n=e.multiple,r=p(t);if(!n||r||h(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Bl(a);if(n){if(r){let e=typeof o;a.selected=e=== ` string ` ||e=== ` number ` ?t.some(e=>String(e)===String(o)):De(t,o)>-1}else a.selected=t.has(o)}else if(Ee(Bl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bl(e){return ` _value ` in e?e._value:e.value}function Vl(e,t){let n=t? ` _trueValue ` : ` _falseValue ` ;return n in e?e[n]:t}var Hl={created(e,t,n){Wl(e,t,n,null, ` created ` )},mounted(e,t,n){Wl(e,t,n,null, ` mounted ` )},beforeUpdate(e,t,n,r){Wl(e,t,n,r, ` beforeUpdate ` )},updated(e,t,n,r){Wl(e,t,n,r, ` updated ` )}};function Ul(e,t){switch(e){case ` SELECT ` :return Rl;case ` TEXTAREA ` :return Pl;default:switch(t){case ` checkbox ` :return Fl;case ` radio ` :return Ll;default:return Pl}}}function Wl(e,t,n,r,i){let a=Ul(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Gl(){Pl.getSSRProps=({value:e})=>({value:e}),Ll.getSSRProps=({value:e},t)=>{if(t.props&&Ee(t.props.value,e))return{checked:!0}},Fl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&De(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Hl.getSSRProps=(e,t)=>{if(typeof t.type!= ` string ` )return;let n=Ul(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Kl=[ ` ctrl ` , ` shift ` , ` alt ` , ` meta ` ],ql={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=> ` button ` in e&&e.button!==0,middle:e=> ` button ` in e&&e.button!==1,right:e=> ` button ` in e&&e.button!==2,exact:(e,t)=>Kl.some(n=>e[ ` $ { n } Key ` ]&&!t.includes(n))},Jl=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join( ` . ` );return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=ql[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Yl={esc: ` escape ` ,space: ` ` ,up: ` arrow - up ` ,left: ` arrow - left ` ,right: ` arrow - right ` ,down: ` arrow - down ` ,delete: ` backspace ` },Xl=(e,t)=>{let n=e._withKeys||={},r=t.join( ` . ` );return n[r]||(n[r]=(n=>{if(!( ` key ` in n))return;let r=re(n.key);if(t.some(e=>e===r||Yl[e]===r))return e(n)}))},Zl=l({patchProp:sl},sc),Ql, $ l=!1;function eu(){return Ql||=Oo(Zl)}function tu(){return Ql= $ l?Ql:ko(Zl), $ l=!0,Ql}var nu=((...e)=>{eu().render(...e)}),ru=((...e)=>{tu().hydrate(...e)}),iu=((...e)=>{let t=eu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=su(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent= ` ` );let a=n(r,!1,ou(r));return r instanceof Element&&(r.removeAttribute( ` v - cloak ` ),r.setAttribute( ` data - v - app ` , ` ` )),a},t}),au=
Line truncated
` )[0].slice(0,200)}catch{}return ` $ { e . status } $ { e . statusText } ` }var Up;function Wp(e){Up=e}var Gp=class extends Error{status;constructor(e,t){super(e),this.name= ` ApiError ` ,this.status=t}};function Kp(e){let t=e instanceof Gp?e.status:void 0,n=e instanceof Error&&e.message?e.message: ` Action failed ` ;return t===401?{kind: ` session - expired ` ,message:n}:t!==void 0&&t>=400&&t<500?{kind: ` refused ` ,message:n}:{kind: ` broken ` ,message:n}}async function qp(e,t){let n=await fetch(e,t);if(Up?.(n.status===401),!n.ok)throw new Gp(await Hp(n),n.status);return n}async function Jp(e,t={}){let{method:n= ` GET ` ,body:r,timeoutMs:i=Bp,parse:a=!0}=t,o={Accept: ` application / json ` },s={method:n,headers:o,signal:AbortSignal.timeout(i)};n!== ` GET ` &&(o[ ` Content - Type ` ]= ` application / json ` ,o[ ` X - Archie - CSRF ` ]= ` 1 ` ),r!==void 0&&(s.body=JSON.stringify(r));let c=await qp(e,s);return a?await c.json():void 0}var Yp={health:()=>Jp( ` / health / detailed ` ),services:()=>Jp( ` / api / services ` ),policies:()=>Jp( ` / api / access / policies ` ),putPolicy:e=>Jp( ` / api / access / policies ` ,{method: ` PUT ` ,body:e}),deletePolicy:e=>Jp( ` / api / access / policies ` ,{method: ` DELETE ` ,body:e,parse:!1}),summary:()=>Jp( ` / api / summary ` ),tasks:()=>Jp( ` / api / tasks ` ),taskMeta:()=>Jp( ` / api / task - meta ` ),task:e=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } ` ),taskAttempts:e=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } / attempts ` ),taskChanges:(e,t)=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } / changes ` +Vp(t)),taskDebug:(e,t)=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } / debug ` +Vp(t)),taskAction:(e,t,n)=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } / action ` ,{method: ` POST ` ,body:{action:t,...n}}),setup:()=>Jp( ` / api / setup ` ),capabilities:()=>Jp( ` / api / capabilities ` ),workflows:()=>Jp( ` / api / workflows ` ),workflowEnabled:(e,t)=>Jp( ` / api / workflows / $ { encodeURIComponent ( e ) } / enabled ` ,{method: ` PUT ` ,body:{enabled:t},parse:!1}),workRequest:e=>Jp( ` / api / work - requests ` ,{method: ` POST ` ,body:e}),skills:()=>Jp( ` / api / skills ` ),channels:()=>Jp( ` / api / channels ` ),curators:()=>Jp( ` / api / curators ` ),channelReload:e=>Jp( ` / api / channels / $ { encodeURIComponent ( e ) } / reload ` ,{method: ` POST ` ,body:{}}),config:()=>Jp( ` / api / config ` ),logs:e=>Jp( ` / api / logs ` +Vp(e)),taskLogs:(e,t)=>Jp( ` / api / tasks / $ { encodeURIComponent ( e ) } / logs ` +Vp(t)),taskLogDownloadURL:(e,t)=> ` / api / tasks / $ { encodeURIComponent ( e ) } / logs / download ` +(t==null? ` ` : ` ? attempt = $ { t } ` ),version:()=>Jp( ` / api / version ` ),updateSnapshot:()=>Jp( ` / api / chat / update ` ),updateInstall:e=>Jp( ` / api / chat / update / install ` ,{method: ` POST ` ,body:{snapshot:e},timeoutMs:9e5}),captures:e=>Jp( ` / api / captures ` +Vp({limit:e})),eventTypes:()=>Jp( ` / api / event - types ` ),eventTypeCreate:e=>Jp( ` / api / event - types ` ,{method: ` POST ` ,body:e}),eventTypeUpdate:(e,t)=>Jp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` PUT ` ,body:t}),eventTypeDelete:e=>Jp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappings:()=>Jp( ` / api / mappings ` ),mappingCreate:e=>Jp( ` / api / mappings ` ,{method: ` POST ` ,body:e}),mappingUpdate:(e,t)=>Jp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),mappingDelete:e=>Jp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappingPreview:(e,t)=>Jp( ` / api / mappings / preview ` ,{method: ` POST ` ,body:{capture_id:e,fields:t}}),bindings:()=>Jp( ` / api / bindings ` ),bindingCreate:e=>Jp( ` / api / bindings ` ,{method: ` POST ` ,body:e}),bindingUpdate:(e,t)=>Jp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),bindingDelete:e=>Jp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),bindingApprove:e=>Jp( ` / api / bindings / $ { encodeURIComponent ( e ) } / approve ` ,{method: ` POST ` }),harnessBindings:()=>Jp( ` / api / harness / bindings ` ),sources:()=>Jp( ` / api / sources ` ),sourceCreate:e=>Jp( ` / api / sources ` ,{method: ` POST ` ,body:{path:e}}),sourceSigning:(e,t)=>Jp( ` / api / sources / $ { encodeURIComponent ( e ) } / signing ` ,{method: ` POST ` ,body:{signed:t}}),sourceApproveUnsigned:e=>Jp( ` / api / sources / $ { encodeURIComponent ( e ) } / approve - unsigned ` ,{method: ` POST ` }),sourceSecret:e=>Jp( ` / api / sources / $ { encodeURIComponent ( e ) } / secret ` ,{method: ` POST ` }),chatSessions:()=>Jp( ` / api / chat / sessions ` ),chatMessages:e=>Jp( ` / api / chat / sessions / $ { encodeURIComponent ( e ) } / messages ` ),chatTurns:e=>Jp( ` / api / chat / sessions / $ { encodeURIComponent ( e ) } / turns ` ),chatCancel:e=>Jp( ` / api / chat / cancel ` ,{method: ` POST ` ,body:{session_id:e}}),chatMessage:(e,t)=>Jp( ` / api / chat / message ` ,{method: ` POST ` ,body:{channel_id:e,source_id:zp(),text:t,page:location.pathname+location.search|| ` / ` }}),chatPersona:(e,t)=>Jp( ` / api / chat / persona ` ,{method: ` POST ` ,body:{session_id:e,name:t}}),chatDangerous:()=>Jp( ` / api / chat / dangerous ` ),chatDangerousRequest:(e,t)=>Jp( ` / api / chat / dangerous / $ { encodeURIComponent ( e ) } ` ,{method: ` POST ` ,body:{spec:t}}),chatDangerousDecision:(e,t)=>Jp( ` / api / chat / dangerous / $ { encodeURIComponent ( e ) } / decision ` ,{method: ` POST ` ,body:{decision:t}}),chatStream:(e,t={})=>qp( ` / api / chat / stream ` ,{method: ` POST ` ,headers:{Accept: ` text / event - stream ` ,"Content-Type": ` application / json ` ,"X-Archie-CSRF": ` 1 ` },body:JSON.stringify(e),signal:t.signal})};function Xp(e,t,n= ` ` ,r=!1){let i=new EventSource(Rp(n,r));return i.onopen=()=>t( ` l Line truncated
` );u=r.pop()|| ` ` ;for(let e of r){let t=e.split( `
` ).find(e=>e.startsWith( ` data : ` ));if(!t)continue;let n=JSON.parse(t.slice(6));if(n.session_id&&(mm.value=n.session_id),n.type=== ` delta ` &&(o+=n.text,ym.value=ym.value?{...ym.value,text:o}:null),(n.type=== ` tool ` ||n.type=== ` navigate ` )&&(a=[...a,n],ym.value=ym.value?{...ym.value,tools:a}:null),n.type=== ` done ` &&(s=!0,o||=n.text|| ` ` ),n.type=== ` error ` )throw Error(n.text)}if(t)break}if(!s)throw Error( ` chat stream ended before completion ` );hm.value=[...hm.value,{from: ` assistant ` ,text:o,tool_calls:a}],ym.value=null,_m.value= ` Ready ` ,await Pm()}catch(e){let t=e;t.name=== ` AbortError ` &&!c?(ym.value={text: ` Turn stopped . ` ,tools:a,isError:!1,turn:r,isRetry:i},_m.value= ` Stopped ` ):(ym.value={text: ` Unable to complete that turn : $ { t . message || t } ` ,tools:a,isError:!0,turn:r?lm(r):void 0,isRetry:i},_m.value= ` Error — retry available ` )}finally{clearTimeout(l),Mm=null,vm.value=!1}}function dee(){_m.value= ` Stopping … ` ,mm.value&&Qp.chatCancel(mm.value).catch(()=>{}),Nm()}function fee(){Qi(()=>{Pm().catch(e=>{_m.value=e.message|| ` Chat unavailable ` })}),na(()=>{Nm()})}var pee=[ ` aria - label ` , ` title ` , ` aria - expanded ` , ` aria - controls ` ],mee=L({__name: ` ChatFab ` ,props:{open:{type:Boolean}},emits:[ ` toggle ` ],setup(e,{emit:t}){let n=t;function r(e){return X( ` col - start - 1 row - start - 1 grid place - items - center transition - [ opacity , transform ] duration - [ 140 ms ] ` ,e? ` opacity - 100 ` : ` - rotate - 45 scale - [ 0.7 ] opacity - 0 ` )}return(t,i)=>(V(),H( ` button ` ,{type: ` button ` ,class: ` relative z - 10 grid size - 14 cursor - pointer place - items - center rounded - full border border - border - strong bg - secondary text - primary shadow - [ var ( -- shadow - md ) ] transition - transform duration - [ 140 ms ] hover : - translate - y - px focus - visible : outline - 2 focus - visible : outline - offset - 2 focus - visible : outline - primary active : translate - y - 0 ` ,"aria-label":e.open? ` Close chat ` : ` Chat with Archie ` ,title:e.open? ` Close chat ` : ` Chat with Archie ` ,"aria-expanded":e.open,"aria-controls":P(dm),onClick:i[0]||=e=>n( ` toggle ` )},[W( ` span ` ,{"aria-hidden": ` true ` ,class:j(r(!e.open))},[G(P(Fd),{size:22})],2),W( ` span ` ,{"aria-hidden": ` true ` ,class:j(r(e.open))},[G(P(cf),{size:22})],2)],8,pee))}});function Vm(e){return typeof e== ` string ` ? ` '${e}' ` :new Gm().serialize(e)}var Hm= ` _ - , ; : ! ? . '"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Um=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Hm.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Wm(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Um[n]?Um[n]:n+128,s=a<128&&Um[a]?Um[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Gm=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Wm(e,t):n===`number`&&r===`number`?e-t:Wm(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`' $ { e } ' ` ;case ` bigint ` :return ` $ { e } n ` ;case ` object ` :return this. $ object(e);case ` function ` :return this. $ function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!== ` [ object Object ] ` )return this.serializeBuiltInType(t.length<10? ` unknown : $ { t } ` :t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0? ` ` :n.name;if(r!== ` ` &&globalThis[r]===n)return this.serializeBuiltInType(r,e);if( ` toJSON ` in e&&typeof e.toJSON== ` function ` ){let t=e.toJSON();return r+(typeof t== ` object ` &&t?this. $ object(t): ` ( $ { this . serialize ( t ) } ) ` )}let i=Object.keys(e).sort(Wm),a= ` $ { r } { ` ;for(let t=0;t<i.length;t++){let n=i[t];a+= ` $ { n } : $ { this . serialize ( e [ n ] ) } ` ,t<i.length-1&&(a+= ` , ` )}return a+ ` } ` }serializeBuiltInType(e,t){let n=this[ ` $ ` +e];if(n)return n.call(this,t);if(typeof t.entries== ` function ` )return this.serializeObjectEntries(e,t.entries());throw Error( ` Cannot serialize $ { e } ` )}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r= ` $ { e } { ` ;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+= ` $ { this . serialize ( t , ! 0 ) } : $ { this . serialize ( i ) } ` ,e<n.length-1&&(r+= ` , ` )}return r+ ` } ` } $ object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e, ` # $ { this . # e . size } ` ),t=this.serializeObject(e),this.#e.set(e,t)),t} $ function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)=== ` [ native code ] } ` ? ` $ { e . name || ` ` } ( ) [ native ] ` : ` $ { e . name } ( $ { e . length } ) $ { t . replace ( /\s*\n\s*/g , ` ` ) } ` } $ Array(e){let t= ` [ ` ;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+= ` , ` );return t+ ` ] ` } $ Date(e){try{return ` Date ( $ { e . toISOString ( ) } ) ` }catch{return ` Date ( null ) ` }} $ ArrayBuffer(e){return ` ArrayBuffer [ $ { new Uint8Array ( e ) . join ( ` , ` ) } ] ` } $ Set(e){return ` Set$ { this . $Array ( Array . from ( e ) . sort ( ( e , t ) => this . compare ( e , t ) ) ) } ` } $ Map(e){return this.serializeObjectEntries( ` Map ` ,e.entries())}}for(let t of[ ` Error ` , ` RegExp ` , ` URL ` ])e.prototype[ ` $ ` +t]=function(e){return ` $ { t } ( $ { e } ) ` };for(let t of[ ` Int8Array ` , ` Uint8Array ` , ` Uint8ClampedArray ` , ` Int16Array ` , ` Uint16Array ` , ` Int32Array ` , ` Uint32Array ` , ` Float32Array ` , ` Float64A Line truncated
` ).find(e=>e.startsWith( ` data : ` ));if(!t)continue;let n=JSON.parse(t.slice(6));if(n.session_id&&(dm.value=n.session_id),n.type=== ` delta ` &&(o+=n.text,gm.value=gm.value?{...gm.value,text:o}:null),(n.type=== ` tool ` ||n.type=== ` navigate ` )&&(a=[...a,n],gm.value=gm.value?{...gm.value,tools:a}:null),n.type=== ` done ` &&(s=!0,o||=n.text|| ` ` ),n.type=== ` error ` )throw Error(n.text)}if(t)break}if(!s)throw Error( ` chat stream ended before completion ` );fm.value=[...fm.value,{from: ` assistant ` ,text:o,tool_calls:a}],gm.value=null,mm.value= ` Ready ` ,await jm()}catch(e){let t=e;t.name=== ` AbortError ` &&!c?(gm.value={text: ` Turn stopped . ` ,tools:a,isError:!1,turn:r,isRetry:i},mm.value= ` Stopped ` ):(gm.value={text: ` Unable to complete that turn : $ { t . message || t } ` ,tools:a,isError:!0,turn:r?om(r):void 0,isRetry:i},mm.value= ` Error — retry available ` )}finally{clearTimeout(l),km=null,hm.value=!1}}function Wm(){mm.value= ` Stopping … ` ,dm.value&&Yp.chatCancel(dm.value).catch(()=>{}),Am()}function uee(){R(()=>{jm().catch(e=>{mm.value=e.message|| ` Chat unavailable ` })}),Yi(()=>{Am()})}var dee=[ ` aria - label ` , ` title ` , ` aria - expanded ` , ` aria - controls ` ],fee=L({__name: ` ChatFab ` ,props:{open:{type:Boolean}},emits:[ ` toggle ` ],setup(e,{emit:t}){let n=t;function r(e){return Z( ` col - start - 1 row - start - 1 grid place - items - center transition - [ opacity , transform ] duration - [ 140 ms ] ` ,e? ` opacity - 100 ` : ` - rotate - 45 scale - [ 0.7 ] opacity - 0 ` )}return(t,i)=>(H(),U( ` button ` ,{type: ` button ` ,class: ` relative z - 10 grid size - 14 cursor - pointer place - items - center rounded - full border border - border - strong bg - secondary text - primary shadow - [ var ( -- shadow - md ) ] transition - transform duration - [ 140 ms ] hover : - translate - y - px focus - visible : outline - 2 focus - visible : outline - offset - 2 focus - visible : outline - primary active : translate - y - 0 ` ,"aria-label":e.open? ` Close chat ` : ` Chat with Archie ` ,title:e.open? ` Close chat ` : ` Chat with Archie ` ,"aria-expanded":e.open,"aria-controls":P(cm),onClick:i[0]||=e=>n( ` toggle ` )},[G( ` span ` ,{"aria-hidden": ` true ` ,class:j(r(!e.open))},[K(P(kd),{size:22})],2),G( ` span ` ,{"aria-hidden": ` true ` ,class:j(r(e.open))},[K(P(af),{size:22})],2)],8,dee))}});function Gm(e){return typeof e== ` string ` ? ` '${e}' ` :new mee().serialize(e)}var pee= ` _ - , ; : ! ? . '"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Km=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[pee.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function qm(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Km[n]?Km[n]:n+128,s=a<128&&Km[a]?Km[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var mee=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?qm(e,t):n===`number`&&r===`number`?e-t:qm(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`' $ { e } ' ` ;case ` bigint ` :return ` $ { e } n ` ;case ` object ` :return this. $ object(e);case ` function ` :return this. $ function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!== ` [ object Object ] ` )return this.serializeBuiltInType(t.length<10? ` unknown : $ { t } ` :t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0? ` ` :n.name;if(r!== ` ` &&globalThis[r]===n)return this.serializeBuiltInType(r,e);if( ` toJSON ` in e&&typeof e.toJSON== ` function ` ){let t=e.toJSON();return r+(typeof t== ` object ` &&t?this. $ object(t): ` ( $ { this . serialize ( t ) } ) ` )}let i=Object.keys(e).sort(qm),a= ` $ { r } { ` ;for(let t=0;t<i.length;t++){let n=i[t];a+= ` $ { n } : $ { this . serialize ( e [ n ] ) } ` ,t<i.length-1&&(a+= ` , ` )}return a+ ` } ` }serializeBuiltInType(e,t){let n=this[ ` $ ` +e];if(n)return n.call(this,t);if(typeof t.entries== ` function ` )return this.serializeObjectEntries(e,t.entries());throw Error( ` Cannot serialize $ { e } ` )}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r= ` $ { e } { ` ;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+= ` $ { this . serialize ( t , ! 0 ) } : $ { this . serialize ( i ) } ` ,e<n.length-1&&(r+= ` , ` )}return r+ ` } ` } $ object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e, ` # $ { this . # e . size } ` ),t=this.serializeObject(e),this.#e.set(e,t)),t} $ function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)=== ` [ native code ] } ` ? ` $ { e . name || ` ` } ( ) [ native ] ` : ` $ { e . name } ( $ { e . length } ) $ { t . replace ( /\s*\n\s*/g , ` ` ) } ` } $ Array(e){let t= ` [ ` ;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+= ` , ` );return t+ ` ] ` } $ Date(e){try{return ` Date ( $ { e . toISOString ( ) } ) ` }catch{return ` Date ( null ) ` }} $ ArrayBuffer(e){return ` ArrayBuffer [ $ { new Uint8Array ( e ) . join ( ` , ` ) } ] ` } $ Set(e){return ` Set$ { this . $Array ( Array . from ( e ) . sort ( ( e , t ) => this . compare ( e , t ) ) ) } ` } $ Map(e){return this.serializeObjectEntries( ` Map ` ,e.entries())}}for(let t of[ ` Error ` , ` RegExp ` , ` URL ` ])e.prototype[ ` $ ` +t]=function(e){return ` $ { t } ( $ { e } ) ` };for(let t of[ ` Int8Array ` , ` Uint8Array ` , ` Uint8ClampedArray ` , ` Int16Array ` , ` Uint16Array ` , ` Int32Array ` , ` Uint32Array ` , ` Float32Array ` , ` Float6 Line truncated
` )].join( `
` ))}return()=>i.value||r.value||o.value?Qs(t.default({present:o.value})[0],{ref:e=>{let t=Ch(e);return t?.hasAttribute===void 0||(t?.hasAttribute( ` data - reka - popper - content - wrapper ` )?a.value=t.firstElementChild:a.value=t),t}}):null}}),Vg=L({name: ` PrimitiveSlot ` ,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=zh(n.default()),r=e.findIndex(e=>e.type!==ss);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?J(t,i.props):t,o=Ss({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Hg=[ ` area ` , ` img ` , ` input ` ],Ug=L({name: ` Primitive ` ,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default: ` div ` }},setup(e,{attrs:t,slots:n}){let r=e.asChild? ` template ` :e.as;return typeof r== ` string ` &&Hg.includes(r)?()=>Qs(r,t):r=== ` template ` ?()=>Qs(Vg,t,{default:n.default}):()=>Qs(e.as,t,{default:n.default})}});function Wg(){let e=N();return{primitiveElement:e,currentElement:Y(()=>[ ` # text ` , ` # comment ` ].includes(e.value?. $ el.nodeName)?e.value?. $ el.nextElementSibling:Ch(e))}}var[Gg,Kg]=Xm( ` CollapsibleRoot ` ),qg=L({__name: ` CollapsibleRoot ` ,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[ ` update : open ` ],setup(e,{expose:t,emit:n}){let r=e,i=Rh(r, ` open ` ,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=xn(r);return Kg({contentId: ` ` ,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),Z(),(e,t)=>(V(),U(P(Ug),{as:e.as,"as-child":r.asChild,"data-state":P(i)? ` open ` : ` closed ` ,"data-disabled":P(a)? ` ` :void 0},{default:F(()=>[z(e. $ slots, ` default ` ,{open:P(i)})]),_:3},8,[ ` as ` , ` as - child ` , ` data - state ` , ` data - disabled ` ]))}}),Jg=L({inheritAttrs:!1,__name: ` CollapsibleContent ` ,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[ ` contentFound ` ],setup(e,{emit:t}){let n=e,r=t,i=Gg();i.contentId||=Ag(void 0, ` reka - collapsible - content ` );let a=N(),{forwardRef:o,currentElement:s}=Z(),c=N(0),l=N(0),u=Y(()=>i.open.value),d=N(u.value),f=N();I(()=>[u.value,a.value?.present],async()=>{await er();let e=s.value;if(!e)return;f.value=f.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration= ` 0 s ` ,e.style.animationName= ` none ` ;let t=e.getBoundingClientRect();l.value=t.height,c.value=t.width,d.value||(e.style.transitionDuration=f.value.transitionDuration,e.style.animationName=f.value.animationName)},{immediate:!0});let p=Y(()=>d.value&&i.open.value);return Qi(()=>{requestAnimationFrame(()=>{d.value=!1})}),wh(s, ` beforematch ` ,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r( ` contentFound ` )})}),(e,t)=>(V(),U(P(Bg),{ref_key: ` presentRef ` ,ref:a,present:e.forceMount||P(i).open.value,"force-mount":!0},{default:F(({present:t})=>[G(P(Ug),J(e. $ attrs,{id:P(i).contentId,ref:P(o),"as-child":n.asChild,as:e.as,hidden:t?void 0:P(i).unmountOnHide.value? ` ` : ` until - found ` ,"data-state":p.value?void 0:P(i).open.value? ` open ` : ` closed ` ,"data-disabled":P(i).disabled?.value? ` ` :void 0,style:{"--reka-collapsible-content-height": ` $ { l . value } px ` ,"--reka-collapsible-content-width": ` $ { c . value } px ` }}),{default:F(()=>[!P(i).unmountOnHide.value||t?z(e. $ slots, ` default ` ,{key:0}):q( ` v - if ` ,!0)]),_:2},1040,[ ` id ` , ` as - child ` , ` as ` , ` hidden ` , ` data - state ` , ` data - disabled ` , ` style ` ])]),_:3},8,[ ` present ` ]))}}),Yg=L({__name: ` CollapsibleTrigger ` ,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default: ` button ` }},setup(e){let t=e;Z();let n=Gg();return(e,r)=>(V(),U(P(Ug),{type:e.as=== ` button ` ? ` button ` :void 0,as:e.as,"as-child":t.asChild,"aria-controls":P(n).contentId,"aria-expanded":P(n).open.value,"data-state":P(n).open.value? ` open ` : ` closed ` ,"data-disabled":P(n).disabled?.value? ` ` :void 0,disabled:P(n).disabled?.value,onClick:P(n).onOpenToggle},{default:F(()=>[z(e. $ slots, ` default ` )]),_:3},8,[ ` type ` , ` as ` , ` as - child ` , ` aria - controls ` , ` aria - expanded ` , ` data - state ` , ` data - disabled ` , ` disabled ` , ` onClick ` ]))}});function Xg({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)? ` multiple ` : ` single ` :e?? ` single ` }function Zg({type:e,defaultValue:t,modelValue:n}){return e||Xg({type:e,defaultValue:t,modelValue:n})}function Qg({type:e,defaultValue:t}){return t===void 0?e=== ` single ` ?void 0:[]:t}function $ g(e,t){let n=Y(()=>Zg(e)),r=Rh(e, ` modelValue ` ,t,{defaultValue:Qg(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value=== ` single ` )r.value=Km(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(eh(t,e)){let n=t.findIndex(t=>Km(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:Y(()=>n.value=== ` single ` )}}var[e_,t_]=Xm( ` AccordionRoot ` ),n_=L({__name: ` AccordionRoot ` ,props:{collapsible:{type:Boolean,required:!
Line truncated
` ))}return()=>i.value||r.value||o.value?Ws(t.default({present:o.value})[0],{ref:e=>{let t=Th(e);return t?.hasAttribute===void 0||(t?.hasAttribute( ` data - reka - popper - content - wrapper ` )?a.value=t.firstElementChild:a.value=t),t}}):null}}),Ug=L({name: ` PrimitiveSlot ` ,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Vh(n.default()),r=e.findIndex(e=>e.type!== $ o);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Y(t,i.props):t,o=ms({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Wg=[ ` area ` , ` img ` , ` input ` ],Gg=L({name: ` Primitive ` ,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default: ` div ` }},setup(e,{attrs:t,slots:n}){let r=e.asChild? ` template ` :e.as;return typeof r== ` string ` &&Wg.includes(r)?()=>Ws(r,t):r=== ` template ` ?()=>Ws(Ug,t,{default:n.default}):()=>Ws(e.as,t,{default:n.default})}});function Kg(){let e=N();return{primitiveElement:e,currentElement:X(()=>[ ` # text ` , ` # comment ` ].includes(e.value?. $ el.nodeName)?e.value?. $ el.nextElementSibling:Th(e))}}var[qg,Jg]=Qm( ` CollapsibleRoot ` ),Yg=L({__name: ` CollapsibleRoot ` ,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[ ` update : open ` ],setup(e,{expose:t,emit:n}){let r=e,i=Bh(r, ` open ` ,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=yn(r);return Jg({contentId: ` ` ,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),Q(),(e,t)=>(H(),W(P(Gg),{as:e.as,"as-child":r.asChild,"data-state":P(i)? ` open ` : ` closed ` ,"data-disabled":P(a)? ` ` :void 0},{default:F(()=>[B(e. $ slots, ` default ` ,{open:P(i)})]),_:3},8,[ ` as ` , ` as - child ` , ` data - state ` , ` data - disabled ` ]))}}),Xg=L({inheritAttrs:!1,__name: ` CollapsibleContent ` ,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[ ` contentFound ` ],setup(e,{emit:t}){let n=e,r=t,i=qg();i.contentId||=Mg(void 0, ` reka - collapsible - content ` );let a=N(),{forwardRef:o,currentElement:s}=Q(),c=N(0),l=N(0),u=X(()=>i.open.value),d=N(u.value),f=N();I(()=>[u.value,a.value?.present],async()=>{await Jn();let e=s.value;if(!e)return;f.value=f.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration= ` 0 s ` ,e.style.animationName= ` none ` ;let t=e.getBoundingClientRect();l.value=t.height,c.value=t.width,d.value||(e.style.transitionDuration=f.value.transitionDuration,e.style.animationName=f.value.animationName)},{immediate:!0});let p=X(()=>d.value&&i.open.value);return R(()=>{requestAnimationFrame(()=>{d.value=!1})}),Eh(s, ` beforematch ` ,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r( ` contentFound ` )})}),(e,t)=>(H(),W(P(Hg),{ref_key: ` presentRef ` ,ref:a,present:e.forceMount||P(i).open.value,"force-mount":!0},{default:F(({present:t})=>[K(P(Gg),Y(e. $ attrs,{id:P(i).contentId,ref:P(o),"as-child":n.asChild,as:e.as,hidden:t?void 0:P(i).unmountOnHide.value? ` ` : ` until - found ` ,"data-state":p.value?void 0:P(i).open.value? ` open ` : ` closed ` ,"data-disabled":P(i).disabled?.value? ` ` :void 0,style:{"--reka-collapsible-content-height": ` $ { l . value } px ` ,"--reka-collapsible-content-width": ` $ { c . value } px ` }}),{default:F(()=>[!P(i).unmountOnHide.value||t?B(e. $ slots, ` default ` ,{key:0}):J( ` v - if ` ,!0)]),_:2},1040,[ ` id ` , ` as - child ` , ` as ` , ` hidden ` , ` data - state ` , ` data - disabled ` , ` style ` ])]),_:3},8,[ ` present ` ]))}}),Zg=L({__name: ` CollapsibleTrigger ` ,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default: ` button ` }},setup(e){let t=e;Q();let n=qg();return(e,r)=>(H(),W(P(Gg),{type:e.as=== ` button ` ? ` button ` :void 0,as:e.as,"as-child":t.asChild,"aria-controls":P(n).contentId,"aria-expanded":P(n).open.value,"data-state":P(n).open.value? ` open ` : ` closed ` ,"data-disabled":P(n).disabled?.value? ` ` :void 0,disabled:P(n).disabled?.value,onClick:P(n).onOpenToggle},{default:F(()=>[B(e. $ slots, ` default ` )]),_:3},8,[ ` type ` , ` as ` , ` as - child ` , ` aria - controls ` , ` aria - expanded ` , ` data - state ` , ` data - disabled ` , ` disabled ` , ` onClick ` ]))}});function Qg({type:e,defaultValue:t,modelValue:n}){let r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)? ` multiple ` : ` single ` :e?? ` single ` }function $ g({type:e,defaultValue:t,modelValue:n}){return e||Qg({type:e,defaultValue:t,modelValue:n})}function e_({type:e,defaultValue:t}){return t===void 0?e=== ` single ` ?void 0:[]:t}function t_(e,t){let n=X(()=> $ g(e)),r=Bh(e, ` modelValue ` ,t,{defaultValue:e_(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value=== ` single ` )r.value=Jm(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(nh(t,e)){let n=t.findIndex(t=>Jm(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:X(()=>n.value=== ` single ` )}}var[n_,r_]=Qm( ` AccordionRoot ` ),i_=L({__name: ` AccordionRoot ` ,props:{collapsible:{type:Boolean,required:!1
Line truncated
- a positive number
- less than the value passed to \ ` max \` (or ${ CS } if no \` max \` prop is set)
- less than the value passed to \ ` max \` (or ${ IS } if no \` max \` prop is set)
- \ ` null \` or \` undefined \` if the progress is indeterminate.
Defaulting to \ ` null \` . ` ) , null ) } function OS ( e ) { return ES ( e ) && ! Number . isNaN ( e ) && e > 0 ? e : ( console . error ( ` Invalid prop \` max \` of value \` ${ e } \` supplied to \` ProgressRoot \` . Only numbers greater than 0 are valid max values. Defaulting to \` ${ CS } \` . ` ) , CS ) } var kS = L ( { _ _name : ` ProgressRoot ` , props : { modelValue : { type : [ Number , null ] , required : ! 1 } , max : { type : Number , required : ! 1 , default : CS } , getValueLabel : { type : Function , required : ! 1 , default : ( e , t ) => ES ( e ) ? ` ${ Math . round ( e / t * CS ) } % ` : void 0 } , getValueText : { type : Function , required : ! 1 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , emits : [ ` update:modelValue ` , ` update:max ` ] , setup ( e , { emit : t } ) { let n = e , r = t ; Z ( ) ; let i = Rh ( n , ` modelValue ` , r , { passive : n . modelValue === void 0 } ) , a = Rh ( n , ` max ` , r , { passive : n . max === void 0 } ) ; I ( ( ) => i . value , async e => { let t = DS ( e , n . max ) ; t !== e && ( await er ( ) , i . value = t ) } , { immediate : ! 0 } ) , I ( ( ) => n . max , e => { let t = OS ( n . max ) ; t !== e && ( a . value = t ) } , { immediate : ! 0 } ) ; let o = Y ( ( ) => $m ( i . value ) ? ` indeterminate ` : i . value === a . value ? ` complete ` : ` loading ` ) ; return TS ( { modelValue : i , max : a , progressState : o } ) , ( e , t ) => ( V ( ) , U ( P ( Ug ) , { "as-child" : e . asChild , as : e . as , "aria-valuemax" : P ( a ) , "aria-valuemin" : 0 , "aria-valuenow" : ES ( P ( i ) ) ? P ( i ) : void 0 , "aria-valuetext" : e . getValueText ? . ( P ( i ) , P ( a ) ) , "aria-label" : e . getValueLabel ( P ( i ) , P ( a ) ) , role : ` progressbar ` , "data-state" : o . value , "data-value" : P ( i ) ? ? void 0 , "data-max" : P ( a ) } , { default : F ( ( ) => [ z ( e . $slots , ` default ` , { modelValue : P ( i ) } ) ] ) , _ : 3 } , 8 , [ ` as-child ` , ` as ` , ` aria-valuemax ` , ` aria-valuenow ` , ` aria-valuetext ` , ` aria-label ` , ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , AS = L ( { _ _name : ` ProgressIndicator ` , props : { asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , setup ( e ) { let t = e , n = wS ( ) ; return Z ( ) , ( e , r ) => ( V ( ) , U ( P ( Ug ) , J ( t , { "data-state" : P ( n ) . progressState . value , "data-value" : P ( n ) . modelValue ? . value ? ? void 0 , "data-max" : P ( n ) . max . value } ) , { default : F ( ( ) => [ z ( e . $slots , ` default ` ) ] ) , _ : 3 } , 16 , [ ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , jS = ` radio.select ` ; function MS ( e , t , n ) { Qm ( jS , n , { originalEvent : e , value : t } ) } var NS = L ( { inheritAttrs : ! 1 , _ _name : ` Radio ` , props : { id : { type : String , required : ! 1 } , value : { type : null , required : ! 1 } , disabled : { type : Boolean , required : ! 1 , default : ! 1 } , checked : { type : Boolean , required : ! 1 , default : void 0 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 , default : ` button ` } , name : { type : String , required : ! 1 } , required : { type : Boolean , required : ! 1 } } , emits : [ ` update:checked ` , ` select ` ] , setup ( e , { emit : t } ) { let n = e , r = t , i = Rh ( n , ` checked ` , r , { passive : n . checked === void 0 } ) , { value : a } = xn ( n ) , { forwardRef : o , currentElement : s } = Z ( ) , c = cg ( s ) , l = dg ( ) , u = Y ( ( ) => n . id && s . value ? document . querySelector ( ` [for=" ${ n . id } "] ` ) ? . innerText : void 0 ) ; function d ( e ) { n . disabled || MS ( e , n . value , e => { r ( ` select ` , e ) , ! e ? . defaultPrevented && ( i . value = ! 0 , c . value && e . stopPropagation ( ) ) } ) } return ( e , t ) => ( V ( ) , H ( B , null , [ G ( P ( Ug ) , J ( { id : e . id , ref : P ( o ) , role : ` radio ` , type : e . as === ` button ` ? ` button ` : void 0 , as : e . as , "aria-checked" : P ( i ) ? ? ! 1 , "aria-label" : u . value , "as-child" : e . asChild , disabled : e . disabled ? ` ` : void 0 , "data-state" : P ( i ) ? ` checked ` : ` unchecked ` , "data-disabled" : e . disabled ? ` ` : void 0 , value : P ( a ) , required : e . required , name : e . name } , { ... P ( l ) , ... e . $attrs } , { onClick : eu ( d , [ ` stop ` ] ) } ) , { default : F ( ( ) => [ z ( e . $slots , ` default ` , { checked : P ( i ) } ) ] ) , _ : 3 } , 16 , [ ` id ` , ` type ` , ` as ` , ` aria-checked ` , ` aria-label ` , ` as-child ` , ` disabled ` , ` data-state ` , ` data-disabled ` , ` value ` , ` required ` , ` name ` ] ) , P ( c ) && e . name ? ( V ( ) , U ( P ( gv ) , J ( { key : 0 , type : ` radio ` , tabindex : ` -1 ` , value : P ( a ) , checked : ! ! P ( i ) , name : e . name , disabled : e . disabled , required : e . required } , P ( l ) ) , null , 16 , [ ` value ` , ` checked ` , ` name ` , ` disabled ` , ` required ` ] ) ) : q ( ` v-if ` , ! 0 ) ] , 64 ) ) } } ) , [ PS , FS ] = Xm ( ` RadioGroupRoot ` ) , IS = L ( { _ _name : ` RadioGroupRoot ` , props : { modelValue : { type : null , required : ! 1 } , defaultValue : { type : null , required : ! 1 } , disabled : { type : Boolean , required : ! 1 , default : ! 1 } , orientation : { type : String , required : ! 1 , default : void 0 } , dir : { type : String , required : ! 1 } , loop : { type : Boolean , required : ! 1 , default : ! 0 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } , name : { type : String , required : ! 1 } , required : { type : Boolean , required : ! 1 , default : ! 1 } } , emits : [ ` update:modelValue ` ] , setup ( e , { emit : t } ) { let n = e , r = t , { forwardRef : i , currentElement : a } = Z ( ) , o = Rh ( n , ` modelValue ` , r , { defaultValue : n . defaultValue , passive : n . modelValue === void 0 } ) , { disabled : s , loop : c , orientation : l , name : u , required : d , dir : f } = xn ( n ) , p = rg ( f ) , m = cg ( a ) ; return FS ( { modelValue : o , changeModelValue : e => { o . value = e } , disabled : s , loop : c , orientation : l , name : u ? . value , required : d } ) , ( e , t ) => ( V ( ) , U ( P ( Qb ) , { "as-child" : ` ` , orientation : P ( l ) , dir : P ( p ) , loop : P ( c ) } , { default : F ( ( ) => [ G ( P ( Ug ) , { ref : P ( i ) , role : ` radiogroup ` , "data-disabled" : P ( s ) ? ` ` : void 0 , "as-child" : e . asChild , as : e . as , "aria-orientation" : P ( l ) , "aria-required" : P ( d ) , dir : P ( p ) } , { default : F ( ( ) => [ z ( e . $slots , ` default ` , { modelValue : P ( o ) } ) , P ( m ) && P ( u ) ? ( V ( ) , U ( P ( gv ) , { key : 0 , required : P ( d ) , disabled : P ( s ) , value : P ( o ) , name : P ( u ) } , null , 8 , [ ` required ` , ` disabled ` , ` value ` , ` name ` ] ) ) : q ( ` v-if ` , ! 0 ) ] ) , _ : 3 } , 8 , [ ` data-disabled ` , ` as-child ` , ` as ` , ` aria-orientation ` , ` aria-required ` , ` dir ` ] ) ] ) , _ : 3 } , 8 , [ ` orientation ` , ` dir ` , ` loop ` ] ) ) } } ) , [ yee , LS ] = Xm ( ` RadioGroupItem ` ) , RS = L ( { inheritAttrs : ! 1 , _ _name : ` RadioGroupItem ` , props : { id : { type : String , required : ! 1 } , value : { type : nu Line truncated
` ),r=[],i=null,a=null,o=()=>{r.length&&(t.push({kind: ` p ` ,inline:M E(r.join( ` ` ))}),r=[])},s=()=>{i&&=(t.push({kind:i.tag,items:i.items.map(e=>M E(e))}),null)};for(let e=0;e<n.length;e++){let c=n[e];if(c.startsWith(" ` ` ` " ) ) { o ( ) , s ( ) , a ? ( t . push ( { kind : ` pre ` , code : a . join ( `
` )}),a=null):a=[];continue}if(a){a.push(c);continue}let l=P E(c),u=e+1<n.length?P E(n[e+1]):null;if(l&&u&&F E(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=P E(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind: ` table ` ,head:l.map(e=>M E(e)),rows:r.map(e=>e.map(e=>M E(e)))});continue}if(!c.trim()){o(),s();continue}let d=c.match(/^(#{1,3}) \s +(.+) $ /);if(d){o(),s(),t.push({kind: ` h$ { d [ 1 ] . length } ` ,inline:M E(d[2])});continue}let f=c.match(/^ \s *[-*] \s +(.+) $ /),p=c.match(/^ \s * \d +[.)] \s +(.+) $ /);if(f||p){o();let e=p? ` ol ` : ` ul ` ;(!i||i.tag!==e)&&(s(),i={tag:e,items:[]}),i.items.push((f||p)[1]);continue}if(c.startsWith( ` > ` )){o(),s(),t.push({kind: ` blockquote ` ,inline:M E(c.replace(/^> \s ?/, ` ` ))});continue}r.push(c)}return o(),s(),a&&t.push({kind: ` pre ` ,code:a.join( `
` )}),t}function PE(e){let t=String(e|| ` ` ).trim();if(!t.includes( ` | ` ))return null;let n=t.replace(/^ \| /, ` ` ).replace(/ \| $ /, ` ` ).split( ` | ` ).map(e=>e.trim());return n.length>1&&n.every(e=>e!== ` ` )?n:null}function FE(e){return e.every(e=>/^:?-{3,}:? $ /.test(e))}var IE={class: ` [ overflow - wrap : anywhere ] ` },LE={key:0,class: ` my - 2 overflow - auto rounded - md border border - border bg - background / 60 p - 3 ` },RE={class: ` font - mono text - [ 0.85 em ] ` },zE={key:1,class: ` my - 3 w - full border - collapse text - [ 0.92 em ] ` },BE={key:2,class: ` my - 2 border - l - [ 3 px ] border - primary pl - 3 text - fg - muted ` },VE={key:3,class: ` mt - 1 mb - 2 text - xl leading - tight font - semibold tracking - [ - 0.02 em ] ` },HE={key:4,class: ` mt - 1 mb - 2 text - lg leading - tight font - semibold tracking - [ - 0.02 em ] ` },UE={key:5,class: ` mt - 1 mb - 2 text - base leading - tight font - semibold tracking - [ - 0.02 em ] ` },WE={key:6,class: ` my - 2.5 flex list - disc flex - col gap - 1 pl - 5 ` },GE={key:7,class: ` my - 2.5 flex list - decimal flex - col gap - 1 pl - 5 ` },KE={key:8,class: ` mb - 2.5 last : mb - 0 ` },qE=L({__name: ` ChatMarkdown ` ,props:{text:{}},setup(e){let t=e,n=Y(()=>NE(t.text));return(e,t)=>(V(),H( ` div ` ,IE,[(V(!0),H(B,null,R(n.value,(e,t)=>(V(),H(B,{key:t},[e.kind=== ` pre ` ?(V(),H( ` pre ` ,LE,[W( ` code ` ,RE,M(e.code),1)])):e.kind=== ` table ` ?(V(),H( ` table ` ,zE,[W( ` thead ` ,null,[W( ` tr ` ,null,[(V(!0),H(B,null,R(e.head,(e,t)=>(V(),H( ` th ` ,{key:t,class: ` border border - border bg - muted px - 2 py - 1.5 text - left font - semibold ` },[G(AE,{inline:e},null,8,[ ` inline ` ])]))),128))])]),W( ` tbody ` ,null,[(V(!0),H(B,null,R(e.rows,(e,t)=>(V(),H( ` tr ` ,{key:t},[(V(!0),H(B,null,R(e,(e,t)=>(V(),H( ` td ` ,{key:t,class: ` border border - border px - 2 py - 1.5 text - left ` },[G(AE,{inline:e},null,8,[ ` inline ` ])]))),128))]))),128))])])):e.kind=== ` blockquote ` ?(V(),H( ` blockquote ` ,BE,[G(AE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h1 ` ?(V(),H( ` h1 ` ,VE,[G(AE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h2 ` ?(V(),H( ` h2 ` ,HE,[G(AE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h3 ` ?(V(),H( ` h3 ` ,UE,[G(AE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` ul ` ?(V(),H( ` ul ` ,WE,[(V(!0),H(B,null,R(e.items,(e,t)=>(V(),H( ` li ` ,{key:t},[G(AE,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` ol ` ?(V(),H( ` ol ` ,GE,[(V(!0),H(B,null,R(e.items,(e,t)=>(V(),H( ` li ` ,{key:t},[G(AE,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` p ` ?(V(),H( ` p ` ,KE,[G(AE,{inline:e.inline},null,8,[ ` inline ` ])])):q( ` ` ,!0)],64))),128))]))}}),JE={class: ` truncate ` },YE=L({__name: ` ChatNavChip ` ,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=la( ` RouterLink ` );return V(),U(r,{to:e.path,title: ` Go to $ { e . label || e . path } ` ,class: ` inline - flex max - w - full items - center gap - 1.5 rounded - full border border - primary / 45 bg - primary - soft px - 2.5 py - 1 text - xs font - semibold text - link transition - colors hover : border - primary hover : bg - primary / 15 focus - visible : outline - 2 focus - visible : outline - offset - 2 focus - visible : outline - primary ` },{default:F(()=>[G(P(ud),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 ` }),W( ` span ` ,JE,M(e.label||e.path),1)]),_:1},8,[ ` to ` , ` title ` ])}}}),XE={key:1,class: ` flex items - baseline gap - 1.5 [ overflow - wrap : anywhere ] ` },ZE={class: ` font - semibold text - foreground ` },QE={key:0,class: ` font - mono text - [ 0.95 em ] text - fg - subtle ` }, $ E=L({__name: ` ChatToolCall ` ,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=Y(()=>t.tool.name||t.tool.Name||t.tool.tool|| ` tool ` ),r=Y(()=>t.tool.parameters||t.tool.Parameters|| ` ` ),i=Y(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=Y(()=>t.tool.summary||t.tool.Summary||t.tool.text||t.tool.err||t.tool.Err||(t.streaming?i.value? ` failed ` : ` running … ` : ` done ` ));return(t,o)=>e.tool.path?(V(),U(YE,{key:0,path:e.tool.path,label:e.tool.label},null,8,[ ` path ` , ` label ` ])):(V(),H( ` div ` ,XE,[G(P(sf),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 self - center text - fg - subtle ` }),W( ` span ` ,ZE,M(n.value),1),r.value?(V(),H( ` code ` ,QE,M(r.value),1)):q( ` ` ,!0),W( ` span ` ,{class:j(P(X)( ` text - fg - muted ` ,i.value&& ` text - danger ` ))},M(a.value),3)]))}}),eD={key:0,class: ` mb - 2 grid gap - 0.5 text - xs ` },tD={key:1,class: ` mb - 2 flex flex - wrap gap - 1.5 ` },nD={key:3,class: ` whitespace - pre - wrap ` },rD=L({__name: ` ChatBubble ` ,props:{text:{},tools:{default:()=>[]},media:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),H( ` div ` ,{class:j([ ` flex ` ,e.assistant? ` justify - start ` : ` justify - end ` ])},[W( ` div ` ,{class:j(P(X)( ` max - w - [ min ( 78 ch , 86 % ) ] rounded - [ 0.85 rem ] px - 4 py - 3 leading - normal [ overflow - wrap : anywhere ] ` ,e.assistant? ` bg - muted ` : ` bg - primary / 15 ` ))},[e.assistant&&e.tools.length?(V(),H( ` div ` ,eD,[(V(!0),H(B,null,R(e.tools,(t,n)=>(V(),U( $ E,{key:n,tool:t,streaming:e.streaming},null,8,[ ` tool ` , ` streaming ` ]))),128))])):q( ` ` ,!0),e.media.length?(V(),H( ` div ` ,tD,[(V(!0),H(B,null,R(e.media,(e,t)=>(V(),U(CE,{key:t,attachment:e},null,8,[ ` attachment ` ]))),128))])):q( ` ` ,!0),e.assistant?(V(),U(qE,{key:2,text:e.text},null,8,[ ` text ` ])):(V(),H( ` div ` ,nD,M(e.text),1)),z(t. $ slots, ` default ` )],2)],2))}}),iD={class: ` w - full self - center justify - self - center py - 6 text - center ` },aD={class: ` grid gap - 2 ` },oD=[ ` onClick ` ],sD=L({__name: ` ChatEmptyState ` ,emits:[ ` pro Line truncated
` ).map(e=>e.trim()).find(Boolean)|| ` ` ,r=n.length>CM? ` $ { n . slice ( 0 , CM ) . trimEnd ( ) } … ` :n;return{text:r,full:t,truncated:r!==t}}var TM=[ ` title ` ],EM=L({__name: ` ActivityRow ` ,props:{event:{}},emits:[ ` open ` ],setup(e,{emit:t}){let n=e,r=t,i=Y(()=>Xj(n.event)),a=Y(()=>wM(n.event));function o(){i.value>0&&r( ` open ` ,i.value)}let s=Y(()=>n.event.at?ij(n.event.at): ` — ` );return(e,t)=>(V(),U(P(bM),{class:j(i.value>0? ` cursor - pointer ` : ` ` ),role:i.value>0? ` link ` :void 0,tabindex:i.value>0?0:void 0,title:i.value>0? ` Open task details ` :void 0,onClick:o,onKeydown:[nu(eu(o,[ ` prevent ` ]),[ ` enter ` ]),nu(eu(o,[ ` prevent ` ]),[ ` space ` ])]},{default:F(()=>[G(P( $ ),{class: ` font - medium ` },{default:F(()=>[K(M(n.event.kind||n.event.type|| ` event ` ),1)]),_:1}),G(P( $ ),{class: ` font - mono ` },{default:F(()=>[K(M(i.value>0? ` # $ { i . value } ` : ` — ` ),1)]),_:1}),G(P( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:F(()=>[W( ` span ` ,{class: ` block truncate ` ,title:a.value.truncated?a.value.full:void 0},M(a.value.text),9,TM)]),_:1}),G(P( $ ),null,{default:F(()=>[K(M(s.value),1)]),_:1})]),_:1},8,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onKeydown ` ]))}}),DM=[{value: ` all ` ,label: ` All ` },{value: ` tasks ` ,label: ` Tasks ` },{value: ` system ` ,label: ` System ` }];function OM(e){return(Number(e?.task_id)||0)>0}function kM(e,t){return t=== ` tasks ` ?OM(e):t!== ` system ` ||!OM(e)}function AM(e,t){return e.filter(e=>kM(e,t))}function jM(e,t){return e>0? ` ` :t=== ` all ` ? ` Waiting for activity ` :t=== ` tasks ` ? ` No task events yet ` : ` No system events yet ` }function MM(e,t){return ` $ { e } : $ { t ? ? 0 } ` }function NM(e){let t=[];for(let n of e){let e=n.kind||n.type|| ` event ` ,r=Number(n.task_id)||0,i=MM(wM(n).text,r),a=t[t.length-1];if(a&&a.key===i){a.count+=1,a.events.push(n);continue}t.push({key:i,label:e,taskID:r,count:1,representative:n,events:[n]})}return t}var PM={role: ` region ` ,"aria-label": ` Live activity ` ,"aria-live": ` polite ` },FM={class: ` max - h - [ 28 rem ] overflow - y - auto ` },IM=[ ` aria - expanded ` , ` aria - label ` , ` onClick ` ],LM=[ ` title ` ],RM=L({__name: ` LiveActivityCard ` ,setup(e){let t=kD(),{activity:n,streamKind:r,streamState:i}=Yu(sA()),a=N( ` all ` ),o=Y(()=>AM(n.value,a.value)),s=Y(()=>jM(o.value.length,a.value)),c=Zt(new Set),l=Y(()=>NM(o.value));function u(e){c.has(e)?c.delete(e):c.add(e)}function d(e){return c.has(e.key)}function f(e){return wM(e.representative)}function p(e){return e.representative.at?ij(e.representative.at): ` — ` }function m(e){t.push( ` / tasks ? task = $ { encodeURIComponent ( e ) } ` )}return(e,t)=>(V(),U(P(ZA),null,{default:F(()=>[G(P(nj),null,{default:F(()=>[G(P(rj),null,{default:F(()=>[...t[1]||=[K( ` Live activity ` ,-1)]]),_:1}),G(P(QA),{class: ` flex items - center gap - 2 ` },{default:F(()=>[G(P(gM),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,label: ` Filter activity ` ,options:P(DM)},null,8,[ ` modelValue ` , ` options ` ]),G(P(JA),{variant:P(r)},{default:F(()=>[K(M(P(i)),1)]),_:1},8,[ ` variant ` ])]),_:1})]),_:1}),G(P( $ A),null,{default:F(()=>[W( ` div ` ,PM,[W( ` div ` ,FM,[G(P(vM),null,{default:F(()=>[G(P(SM),{class: ` sticky top - 0 z - 10 bg - card ` },{default:F(()=>[G(P(bM),null,{default:F(()=>[G(P(xM),null,{default:F(()=>[...t[2]||=[K( ` Event ` ,-1)]]),_:1}),G(P(xM),null,{default:F(()=>[...t[3]||=[K( ` Task ` ,-1)]]),_:1}),G(P(xM),null,{default:F(()=>[...t[4]||=[K( ` Detail ` ,-1)]]),_:1}),G(P(xM),null,{default:F(()=>[...t[5]||=[K( ` When ` ,-1)]]),_:1})]),_:1})]),_:1}),G(P(yM),null,{default:F(()=>[o.value.length?q( ` ` ,!0):(V(),U(P(bM),{key:0},{default:F(()=>[G(P( $ ),{colspan: ` 4 ` },{default:F(()=>[G(P(BA),null,{default:F(()=>[G(P(UA),null,{default:F(()=>[G(P(KA),null,{default:F(()=>[K(M(s.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),o.value.length?(V(!0),H(B,{key:1},R(l.value,e=>(V(),H(B,{key:e.key},[e.count===1?(V(),U(EM,{key:0,event:e.representative,onOpen:m},null,8,[ ` event ` ])):(V(),H(B,{key:1},[G(P(bM),{class:j(e.taskID>0? ` cursor - pointer ` : ` ` ),role:e.taskID>0? ` link ` :void 0,tabindex:e.taskID>0?0:void 0,title:e.taskID>0? ` Open task details ` :void 0,onClick:t=>e.taskID>0&&m(e.taskID),onKeydown:[nu(eu(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` enter ` ]),nu(eu(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` space ` ])]},{default:F(()=>[G(P( $ ),{class: ` font - medium ` },{default:F(()=>[W( ` button ` ,{type: ` button ` ,class: ` inline - flex items - center gap - 1 rounded hover : opacity - 80 ` ,"aria-expanded":d(e),"aria-label": ` $ { d ( e ) ? ` Hide ` : ` Show ` } $ { e . count } $ { e . label } events ` ,onClick:eu(t=>u(e.key),[ ` stop ` ])},[d(e)?(V(),U(P(gd),{key:0,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })):(V(),U(P(_d),{key:1,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })),K( ` ` +M(e.label)+ ` ` ,1),G(P(JA),{variant: ` idle ` },{default:F(()=>[K( ` × ` +M(e.count),1)]),_:2},1024)],8,IM)]),_:2},1024),G(P( $ ),{class: ` font - mono ` },{default:F(()=>[K(M(e.taskID>0? ` # $ { e . taskID } ` : ` — ` ),1)]),_:2},1024),G(P( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:F(()=>[W( ` span ` ,{class: ` block truncate ` ,title:f(e).truncated?f(e).full:void 0},M(f(e).text),9,LM)]),_:2},1024),G(P( $ ),null,{default:F(()=>[K(M(p(e)),1)]),_:2},1024)]),_:2},1032,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onClick ` , ` onKeydown ` ]),d(e)?(V(!0),H(B,{key:0},R(e.events,(t,n)=>(V(),U(EM,{key: ` $ { e . key } : $ { n } ` ,event:t,onO
Line truncated
` )){let e=n.indexOf( ` : ` );if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function tP(e,t){if(!e.event_type)return{label: ` Unidentified ` ,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name: ` Deleted type ` ,identified:!0}}function nP(e,t){if(!e)return ` No event type ` ;let n=t.find(t=>t.id===e);return n? ` $ { n . source } / $ { n . name } ` : ` Deleted type ` }function rP(e){let t=[...(e.headers||[]).map(e=> ` $ { e . name } = $ { e . value } ` ),...(e.payload||[]).map(e=>e.op=== ` present ` ? ` $ { e . path } present ` : ` $ { e . path } = $ { e . value ? ? ` ` } ` )];return t.length?t.join( ` · ` ): ` any event ` }function iP(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!== ` ` ).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!== ` ` ).map(e=>e.op=== ` present ` ?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value?? ` ` })}}var aP=N([]),oP=N([]),sP=N(!0),cP=N(null),lP=N(null),uP=N(!1),dP=N(null);async function fP(){try{let e=await Qp.eventTypes();sP.value=e.enabled!==!1,aP.value=e.event_types||[],oP.value=e.proposals||[],cP.value=null}catch(e){cP.value=e.message||String(e)}}function pP(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function mP(e){dP.value=null,lP.value=e}function hP(e){let t=CP.value.find(t=>String(t.id)===e.sample_id);mP({mode: ` proposal ` ,id:null,source:e.source,name: ` ` ,rule:pP(e.rule),headersText: ` ` ,body:t?.body|| ` ` ,exampleHeaders:e.headers||{}})}function gP(e= ` ` ){mP({mode: ` paste ` ,id:null,source:e,name: ` ` ,rule:{headers:[],payload:[]},headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function _P(e){mP({mode: ` edit ` ,id:e.id,source:e.source,name:e.name,rule:pP(e.rule),headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function vP(){lP.value=null}async function yP(){let e=lP.value;if(e){uP.value=!0;try{if(e.mode=== ` edit ` &&e.id)await Qp.eventTypeUpdate(e.id,{name:e.name,rule:iP(e.rule)});else{let t=e.mode=== ` paste ` ?eP(e.headersText):e.exampleHeaders;await Qp.eventTypeCreate({source:e.source,name:e.name,rule:e.mode=== ` paste ` ?void 0:iP(e.rule),example:{headers:t,body:e.body}})}lP.value=null,await fP()}catch(e){dP.value=e.message||String(e)}finally{uP.value=!1}}}var bP=N(null);async function xP(){let e=bP.value;if(bP.value=null,e)try{await Qp.eventTypeDelete(e.id),await fP()}catch(e){cP.value=e.message||String(e)}}var SP=100,CP=N([]),wP=N(!0),TP=N(null),EP=N(!0),DP=N(null);async function OP(){try{let e=await Qp.captures(SP);wP.value=e.enabled!==!1,CP.value=e.captures||[],TP.value=null}catch(e){TP.value=e.message||String(e)}finally{EP.value=!1}}function kP(e){let t=CP.value.find(t=>t.id===e);return t&&(DP.value=t),!!t}function AP(){CP.value.length&&(DP.value=CP.value[0])}function jP(){cA( ` captures ` ,()=>{OP(),fP()})}var MP= ` archie . theme ` ,NP= ` archie . density ` ,PP= ` archie . motion ` ,FP= ` archie . tooltips ` ;function IP(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r)?r:n}catch{return n}}function LP(e,t){try{localStorage.setItem(e,t)}catch{}}function RP(e){if(e!== ` system ` )return e;try{return matchMedia( ` ( prefers - color - scheme : dark ) ` ).matches? ` dark ` : ` light ` }catch{return ` dark ` }}var zP=Ju( ` appearance ` ,()=>{let e=N(IP(MP,[ ` system ` , ` dark ` , ` light ` ], ` dark ` )),t=N(IP(NP,[ ` comfortable ` , ` compact ` ], ` comfortable ` )),n=N(IP(PP,[ ` system ` , ` reduced ` ], ` system ` )),r=N(IP(FP,[ ` on ` , ` off ` ], ` on ` )=== ` on ` ),i=!1;function a(){document.documentElement.dataset.theme=RP(e.value)}function o(t){e.value=t,a(),LP(MP,t)}function s(e){t.value=e,document.documentElement.dataset.density=e,LP(NP,e)}function c(e){n.value=e,document.documentElement.dataset.motion=e,LP(PP,e)}function l(e){r.value=e,LP(FP,e? ` on ` : ` off ` )}function u(){if(!i){i=!0,a(),document.documentElement.dataset.density=t.value,document.documentElement.dataset.motion=n.value;try{matchMedia( ` ( prefers - color - scheme : dark ) ` ).addEventListener( ` change ` ,()=>{e.value=== ` system ` &&a()})}catch{}}}return{theme:e,density:t,motion:n,tooltipsEnabled:r,initialize:u,setTheme:o,setDensity:s,setMotion:c,setTooltips:l}}),BP=L({__name: ` Tooltip ` ,props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[ ` update : open ` ],setup(e,{emit:t}){let n=e,r=ug(n,t),{tooltipsEnabled:i}=Yu(zP());return(e,t)=>(V(),U(P(ew),J({"data-slot": ` tooltip ` },P(r),{disabled:n.disabled||!P(i)}),{default:F(t=>[z(e. $ slots, ` default ` ,ve(xs(t)))]),_:3},16,[ ` disabled ` ]))}}),VP=L({inheritAttrs:!1,__name: ` TooltipContent ` ,props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:0},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[ ` escapeKeyDown ` , ` pointerDownOutside ` ],setup(e,{emit:t}){let n=e,r=t,i=ug(bw(n, ` class ` ),r);return(e,t)=>(V(),U(P(iw),null,{defau
Line truncated
` )}};Kq.defaultYaml={explicit:!1,version: ` 1.2 ` },Kq.defaultTags={"!!": ` tag : yaml . org , 2002 : ` };function qq(e){if(/[ \x 00- \x 19 \s ,[ \] {}]/.test(e)){let t= ` Anchor must not contain whitespace or control characters : $ { JSON . stringify ( e ) } ` ;throw Error(t)}return!0}function Jq(e){let t=new Set;return zq(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Yq(e,t){for(let n=1;;++n){let r= ` $ { e } $ { n } ` ;if(!t.has(r))return r}}function Xq(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=Jq(e);let a=Yq(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t== ` object ` &&t.anchor&&(jq(t.node)||Nq(t.node)))t.node.anchor=t.anchor;else{let t=Error( ` Failed to resolve repeated object ( this should not happen ) ` );throw t.source=e,t}}},sourceObjects:r}}function Zq(e,t,n,r){if(r&&typeof r== ` object ` ){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Zq(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Zq(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Zq(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Zq(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function Qq(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Qq(e,String(t),n));if(e&&typeof e.toJSON== ` function ` ){if(!n||!Fq(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e== ` bigint ` &&!n?.keep?Number(e):e}var $ q=class{constructor(e){Object.defineProperty(this,Eq,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Oq(e))throw TypeError( ` A document argument is required ` );let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n== ` number ` ?n:100},o=Qq(this, ` ` ,a);if(typeof r== ` function ` )for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i== ` function ` ?Zq(i,{"":o}, ` ` ,o):o}},eJ=class extends $ q{constructor(e){super(bq),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error( ` Alias nodes cannot have tags ` )}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError( ` Alias resolution is disabled ` );let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],zq(e,{Node:(e,t)=>{(Dq(t)||Fq(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(Qq(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError( ` This should not happen : Alias anchor was not resolved ? ` );if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=tJ(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError( ` Excessive alias count indicates a resource exhaustion attack ` )}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e= ` Unresolved alias ( the anchor must be set before the alias ) : $ { this . source } ` ;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r= ` * $ { this . source } ` ;if(e){if(qq(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e= ` Unresolved alias ( the anchor must be set before the alias ) : $ { this . source } ` ;throw Error(e)}if(e.implicitKey)return ` $ { r } ` }return r}};function tJ(e,t,n){if(Dq(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Nq(t)){let r=0;for(let i of t.items){let t=tJ(e,i,n);t>r&&(r=t)}return r}if(Aq(t)){let r=tJ(e,t.key,n),i=tJ(e,t.value,n);return Math.max(r,i)}return 1}var nJ=e=>!e||typeof e!= ` function ` &&typeof e!= ` object ` ,rJ=class extends $ q{constructor(e){super(wq),this.value=e}toJSON(e,t){return t?.keep?this.value:Qq(this.value,e,t)}toString(){return String(this.value)}};rJ.BLOCK_FOLDED= ` BLOCK _FOLDED ` ,rJ.BLOCK_LITERAL= ` BLOCK _LITERAL ` ,rJ.PLAIN= ` PLAIN ` ,rJ.QUOTE_DOUBLE= ` QUOTE _DOUBLE ` ,rJ.QUOTE_SINGLE= ` QUOTE _SINGLE ` ;var iJ= ` tag : yaml . org , 2002 : ` ;function aJ(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error( ` Tag $ { t } not found ` );return r}return n.find(t=>t.identify?.(e)&&!t.format)}function oJ(e,t,n){if(Oq(e)&&(e=e.contents),Pq(e))return e;if(Aq(e)){let t=n.schema[Sq].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt< ` u ` &&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e== ` object ` ){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new eJ(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith( ` ! ! ` )&&(t=iJ+t.slice(2));let l=aJ(e,t,o.tags);if(!l){if(e&&typeof e.toJSON== ` function ` &&(e=e.toJSON()),!e||typeof e!= ` object ` ){let t=new rJ(e);return c&&(c.node=t),t
Line truncated
` )?d J(n,t):n.includes( `
Defaulting to \ ` null \` . ` ) , null ) } function VS ( e ) { return zS ( e ) && ! Number . isNaN ( e ) && e > 0 ? e : ( console . error ( ` Invalid prop \` max \` of value \` ${ e } \` supplied to \` ProgressRoot \` . Only numbers greater than 0 are valid max values. Defaulting to \` ${ IS } \` . ` ) , IS ) } var HS = L ( { _ _name : ` ProgressRoot ` , props : { modelValue : { type : [ Number , null ] , required : ! 1 } , max : { type : Number , required : ! 1 , default : IS } , getValueLabel : { type : Function , required : ! 1 , default : ( e , t ) => zS ( e ) ? ` ${ Math . round ( e / t * IS ) } % ` : void 0 } , getValueText : { type : Function , required : ! 1 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , emits : [ ` update:modelValue ` , ` update:max ` ] , setup ( e , { emit : t } ) { let n = e , r = t ; Q ( ) ; let i = Bh ( n , ` modelValue ` , r , { passive : n . modelValue === void 0 } ) , a = Bh ( n , ` max ` , r , { passive : n . max === void 0 } ) ; I ( ( ) => i . value , async e => { let t = BS ( e , n . max ) ; t !== e && ( await Jn ( ) , i . value = t ) } , { immediate : ! 0 } ) , I ( ( ) => n . max , e => { let t = VS ( n . max ) ; t !== e && ( a . value = t ) } , { immediate : ! 0 } ) ; let o = X ( ( ) => th ( i . value ) ? ` indeterminate ` : i . value === a . value ? ` complete ` : ` loading ` ) ; return RS ( { modelValue : i , max : a , progressState : o } ) , ( e , t ) => ( H ( ) , W ( P ( Gg ) , { "as-child" : e . asChild , as : e . as , "aria-valuemax" : P ( a ) , "aria-valuemin" : 0 , "aria-valuenow" : zS ( P ( i ) ) ? P ( i ) : void 0 , "aria-valuetext" : e . getValueText ? . ( P ( i ) , P ( a ) ) , "aria-label" : e . getValueLabel ( P ( i ) , P ( a ) ) , role : ` progressbar ` , "data-state" : o . value , "data-value" : P ( i ) ? ? void 0 , "data-max" : P ( a ) } , { default : F ( ( ) => [ B ( e . $slots , ` default ` , { modelValue : P ( i ) } ) ] ) , _ : 3 } , 8 , [ ` as-child ` , ` as ` , ` aria-valuemax ` , ` aria-valuenow ` , ` aria-valuetext ` , ` aria-label ` , ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , US = L ( { _ _name : ` ProgressIndicator ` , props : { asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , setup ( e ) { let t = e , n = LS ( ) ; return Q ( ) , ( e , r ) => ( H ( ) , W ( P ( Gg ) , Y ( t , { "data-state" : P ( n ) . progressState . value , "data-value" : P ( n ) . modelValue ? . value ? ? void 0 , "data-max" : P ( n ) . max . value } ) , { default : F ( ( ) => [ B ( e . $slots , ` default ` ) ] ) , _ : 3 } , 16 , [ ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , WS = ` radio.select ` ; function GS ( e , t , n ) { eh ( WS , n , { originalEvent : e , value : t } ) } var KS = L ( { inheritAttrs : ! 1 , _ _name : ` Radio ` , props : { id : { type : String , required : ! 1 } , value : { type : null , required : ! 1 } , disabled : { type : Boolean , required : ! 1 , default : ! 1 } , checked : { type : Boolean , required : ! 1 , default : void 0 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 , default : ` button ` } , name : { type : String , required : ! 1 } , required : { type : Boolean , required : ! 1 } } , emits : [ ` update:checked ` , ` select ` ] , setup ( e , { emit : t } ) { let n = e , r = t , i = Bh ( n , ` checked ` , r , { passive : n . checked === void 0 } ) , { value : a } = yn ( n ) , { forwardRef : o , currentElement : s } = Q ( ) , c = ug ( s ) , l = pg ( ) , u = X ( ( ) => n . id && s . value ? document . querySelector ( ` [for=" ${ n . id } "] ` ) ? . innerText : void 0 ) ; function d ( e ) { n . disabled || GS ( e , n . value , e => { r ( ` select ` , e ) , ! e ? . defaultPrevented && ( i . value = ! 0 , c . value && e . stopPropagation ( ) ) } ) } return ( e , t ) => ( H ( ) , U ( V , null , [ K ( P ( Gg ) , Y ( { id : e . id , ref : P ( o ) , role : ` radio ` , type : e . as === ` button ` ? ` button ` : void 0 , as : e . as , "aria-checked" : P ( i ) ? ? ! 1 , "aria-label" : u . value , "as-child" : e . asChild , disabled : e . disabled ? ` ` : void 0 , "data-state" : P ( i ) ? ` checked ` : ` unchecked ` , "data-disabled" : e . disabled ? ` ` : void 0 , value : P ( a ) , required : e . required , name : e . name } , { ... P ( l ) , ... e . $attrs } , { onClick : Jl ( d , [ ` stop ` ] ) } ) , { default : F ( ( ) => [ B ( e . $slots , ` default ` , { checked : P ( i ) } ) ] ) , _ : 3 } , 16 , [ ` id ` , ` type ` , ` as ` , ` aria-checked ` , ` aria-label ` , ` as-child ` , ` disabled ` , ` data-state ` , ` data-disabled ` , ` value ` , ` required ` , ` name ` ] ) , P ( c ) && e . name ? ( H ( ) , W ( P ( bv ) , Y ( { key : 0 , type : ` radio ` , tabindex : ` -1 ` , value : P ( a ) , checked : ! ! P ( i ) , name : e . name , disabled : e . disabled , required : e . required } , P ( l ) ) , null , 16 , [ ` value ` , ` checked ` , ` name ` , ` disabled ` , ` required ` ] ) ) : J ( ` v-if ` , ! 0 ) ] , 64 ) ) } } ) , [ qS , JS ] = Qm ( ` RadioGroupRoot ` ) , YS = L ( { _ _name : ` RadioGroupRoot ` , props : { modelValue : { type : null , required : ! 1 } , defaultValue : { type : null , required : ! 1 } , disabled : { type : Boolean , required : ! 1 , default : ! 1 } , orientation : { type : String , required : ! 1 , default : void 0 } , dir : { type : String , required : ! 1 } , loop : { type : Boolean , required : ! 1 , default : ! 0 } , asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } , name : { type : String , required : ! 1 } , required : { type : Boolean , required : ! 1 , default : ! 1 } } , emits : [ ` update:modelValue ` ] , setup ( e , { emit : t } ) { let n = e , r = t , { forwardRef : i , currentElement : a } = Q ( ) , o = Bh ( n , ` modelValue ` , r , { defaultValue : n . defaultValue , passive : n . modelValue === void 0 } ) , { disabled : s , loop : c , orientation : l , name : u , required : d , dir : f } = yn ( n ) , p = ag ( f ) , m = ug ( a ) ; return JS ( { modelValue : o , changeModelValue : e => { o . value = e } , disabled : s , loop : c , orientation : l , name : u ? . value , required : d } ) , ( e , t ) => ( H ( ) , W ( P ( nx ) , { "as-child" : ` ` , orientation : P ( l ) , dir : P ( p ) , loop : P ( c ) } , { default : F ( ( ) => [ K ( P ( Gg ) , { ref : P ( i ) , role : ` radiogroup ` , "data-disabled" : P ( s ) ? ` ` : void 0 , "as-child" : e . asChild , as : e . as , "aria-orientation" : P ( l ) , "aria-required" : P ( d ) , dir : P ( p ) } , { default : F ( ( ) => [ B ( e . $slots , ` default ` , { modelValue : P ( o ) } ) , P ( m ) && P ( u ) ? ( H ( ) , W ( P ( bv ) , { key : 0 , required : P ( d ) , disabled : P ( s ) , value : P ( o ) , name : P ( u ) } , null , 8 , [ ` required ` , ` disabled ` , ` value ` , ` name ` ] ) ) : J ( ` v-if ` , ! 0 ) ] ) , _ : 3 } , 8 , [ ` data-disabled ` , ` as-child ` , ` as ` , ` aria-orientation ` , ` aria-required ` , ` dir ` ] ) ] ) , _ : 3 } , 8 , [ ` orientation ` , ` dir ` , ` loop ` ] ) ) } } ) , [ vee , XS ] = Qm ( ` RadioGroupItem ` ) , ZS = L ( { inheritAttrs : ! 1 , _ _name : ` RadioGroupItem ` , props : { id : { type : String , required : ! 1 } , value : { type : nu Line truncated
` ),r=[],i=null,a=null,o=()=>{r.length&&(t.push({kind: ` p ` ,inline:G E(r.join( ` ` ))}),r=[])},s=()=>{i&&=(t.push({kind:i.tag,items:i.items.map(e=>G E(e))}),null)};for(let e=0;e<n.length;e++){let c=n[e];if(c.startsWith(" ` ` ` " ) ) { o ( ) , s ( ) , a ? ( t . push ( { kind : ` pre ` , code : a . join ( `
` )}),a=null):a=[];continue}if(a){a.push(c);continue}let l=q E(c),u=e+1<n.length?q E(n[e+1]):null;if(l&&u&&J E(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=q E(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind: ` table ` ,head:l.map(e=>G E(e)),rows:r.map(e=>e.map(e=>G E(e)))});continue}if(!c.trim()){o(),s();continue}let d=c.match(/^(#{1,3}) \s +(.+) $ /);if(d){o(),s(),t.push({kind: ` h$ { d [ 1 ] . length } ` ,inline:G E(d[2])});continue}let f=c.match(/^ \s *[-*] \s +(.+) $ /),p=c.match(/^ \s * \d +[.)] \s +(.+) $ /);if(f||p){o();let e=p? ` ol ` : ` ul ` ;(!i||i.tag!==e)&&(s(),i={tag:e,items:[]}),i.items.push((f||p)[1]);continue}if(c.startsWith( ` > ` )){o(),s(),t.push({kind: ` blockquote ` ,inline:G E(c.replace(/^> \s ?/, ` ` ))});continue}r.push(c)}return o(),s(),a&&t.push({kind: ` pre ` ,code:a.join( `
` )}),t}function qE(e){let t=String(e|| ` ` ).trim();if(!t.includes( ` | ` ))return null;let n=t.replace(/^ \| /, ` ` ).replace(/ \| $ /, ` ` ).split( ` | ` ).map(e=>e.trim());return n.length>1&&n.every(e=>e!== ` ` )?n:null}function JE(e){return e.every(e=>/^:?-{3,}:? $ /.test(e))}var YE={class: ` [ overflow - wrap : anywhere ] ` },XE={key:0,class: ` my - 2 overflow - auto rounded - md border border - border bg - background / 60 p - 3 ` },ZE={class: ` font - mono text - [ 0.85 em ] ` },QE={key:1,class: ` my - 3 w - full border - collapse text - [ 0.92 em ] ` }, $ E={key:2,class: ` my - 2 border - l - [ 3 px ] border - primary pl - 3 text - fg - muted ` },eD={key:3,class: ` mt - 1 mb - 2 text - xl leading - tight font - semibold tracking - [ - 0.02 em ] ` },tD={key:4,class: ` mt - 1 mb - 2 text - lg leading - tight font - semibold tracking - [ - 0.02 em ] ` },nD={key:5,class: ` mt - 1 mb - 2 text - base leading - tight font - semibold tracking - [ - 0.02 em ] ` },rD={key:6,class: ` my - 2.5 flex list - disc flex - col gap - 1 pl - 5 ` },iD={key:7,class: ` my - 2.5 flex list - decimal flex - col gap - 1 pl - 5 ` },aD={key:8,class: ` mb - 2.5 last : mb - 0 ` },oD=L({__name: ` ChatMarkdown ` ,props:{text:{}},setup(e){let t=e,n=X(()=>KE(t.text));return(e,t)=>(H(),U( ` div ` ,YE,[(H(!0),U(V,null,z(n.value,(e,t)=>(H(),U(V,{key:t},[e.kind=== ` pre ` ?(H(),U( ` pre ` ,XE,[G( ` code ` ,ZE,M(e.code),1)])):e.kind=== ` table ` ?(H(),U( ` table ` ,QE,[G( ` thead ` ,null,[G( ` tr ` ,null,[(H(!0),U(V,null,z(e.head,(e,t)=>(H(),U( ` th ` ,{key:t,class: ` border border - border bg - muted px - 2 py - 1.5 text - left font - semibold ` },[K(UE,{inline:e},null,8,[ ` inline ` ])]))),128))])]),G( ` tbody ` ,null,[(H(!0),U(V,null,z(e.rows,(e,t)=>(H(),U( ` tr ` ,{key:t},[(H(!0),U(V,null,z(e,(e,t)=>(H(),U( ` td ` ,{key:t,class: ` border border - border px - 2 py - 1.5 text - left ` },[K(UE,{inline:e},null,8,[ ` inline ` ])]))),128))]))),128))])])):e.kind=== ` blockquote ` ?(H(),U( ` blockquote ` , $ E,[K(UE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h1 ` ?(H(),U( ` h1 ` ,eD,[K(UE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h2 ` ?(H(),U( ` h2 ` ,tD,[K(UE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h3 ` ?(H(),U( ` h3 ` ,nD,[K(UE,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` ul ` ?(H(),U( ` ul ` ,rD,[(H(!0),U(V,null,z(e.items,(e,t)=>(H(),U( ` li ` ,{key:t},[K(UE,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` ol ` ?(H(),U( ` ol ` ,iD,[(H(!0),U(V,null,z(e.items,(e,t)=>(H(),U( ` li ` ,{key:t},[K(UE,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` p ` ?(H(),U( ` p ` ,aD,[K(UE,{inline:e.inline},null,8,[ ` inline ` ])])):J( ` ` ,!0)],64))),128))]))}}),sD={class: ` truncate ` },cD=L({__name: ` ChatNavChip ` ,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=na( ` RouterLink ` );return H(),W(r,{to:e.path,title: ` Go to $ { e . label || e . path } ` ,class: ` inline - flex max - w - full items - center gap - 1.5 rounded - full border border - primary / 45 bg - primary - soft px - 2.5 py - 1 text - xs font - semibold text - link transition - colors hover : border - primary hover : bg - primary / 15 focus - visible : outline - 2 focus - visible : outline - offset - 2 focus - visible : outline - primary ` },{default:F(()=>[K(P(id),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 ` }),G( ` span ` ,sD,M(e.label||e.path),1)]),_:1},8,[ ` to ` , ` title ` ])}}}),lD={key:1,class: ` flex items - baseline gap - 1.5 [ overflow - wrap : anywhere ] ` },uD={class: ` font - semibold text - foreground ` },dD={key:0,class: ` font - mono text - [ 0.95 em ] text - fg - subtle ` },fD=L({__name: ` ChatToolCall ` ,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=X(()=>t.tool.name||t.tool.Name||t.tool.tool|| ` tool ` ),r=X(()=>t.tool.parameters||t.tool.Parameters|| ` ` ),i=X(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=X(()=>t.tool.summary||t.tool.Summary||t.tool.text||t.tool.err||t.tool.Err||(t.streaming?i.value? ` failed ` : ` running … ` : ` done ` ));return(t,o)=>e.tool.path?(H(),W(cD,{key:0,path:e.tool.path,label:e.tool.label},null,8,[ ` path ` , ` label ` ])):(H(),U( ` div ` ,lD,[K(P(rf),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 self - center text - fg - subtle ` }),G( ` span ` ,uD,M(n.value),1),r.value?(H(),U( ` code ` ,dD,M(r.value),1)):J( ` ` ,!0),G( ` span ` ,{class:j(P(Z)( ` text - fg - muted ` ,i.value&& ` text - danger ` ))},M(a.value),3)]))}}),pD={key:0,class: ` mb - 2 grid gap - 0.5 text - xs ` },mD={key:1,class: ` mb - 2 flex flex - wrap gap - 1.5 ` },hD={key:3,class: ` whitespace - pre - wrap ` },gD=L({__name: ` ChatBubble ` ,props:{text:{},tools:{default:()=>[]},media:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(H(),U( ` div ` ,{class:j([ ` flex ` ,e.assistant? ` justify - start ` : ` justify - end ` ])},[G( ` div ` ,{class:j(P(Z)( ` max - w - [ min ( 78 ch , 86 % ) ] rounded - [ 0.85 rem ] px - 4 py - 3 leading - normal [ overflow - wrap : anywhere ] ` ,e.assistant? ` bg - muted ` : ` bg - primary / 15 ` ))},[e.assistant&&e.tools.length?(H(),U( ` div ` ,pD,[(H(!0),U(V,null,z(e.tools,(t,n)=>(H(),W(fD,{key:n,tool:t,streaming:e.streaming},null,8,[ ` tool ` , ` streaming ` ]))),128))])):J( ` ` ,!0),e.media.length?(H(),U( ` div ` ,mD,[(H(!0),U(V,null,z(e.media,(e,t)=>(H(),W(IE,{key:t,attachment:e},null,8,[ ` attachment ` ]))),128))])):J( ` ` ,!0),e.assistant?(H(),W(oD,{key:2,text:e.text},null,8,[ ` text ` ])):(H(),U( ` div ` ,hD,M(e.text),1)),B(t. $ slots, ` default ` )],2)],2))}}),_D={class: ` w - full self - center justify - self - center py - 6 text - center ` },vD={class: ` grid gap - 2 ` },yD=[ ` onClick ` ],bD=L({__name: ` ChatEmptyState ` ,emits:[ ` pro Line truncated
` ).map(e=>e.trim()).find(Boolean)|| ` ` ,r=n.length>FM? ` $ { n . slice ( 0 , FM ) . trimEnd ( ) } … ` :n;return{text:r,full:t,truncated:r!==t}}var LM=[ ` title ` ],RM=L({__name: ` ActivityRow ` ,props:{event:{}},emits:[ ` open ` ],setup(e,{emit:t}){let n=e,r=t,i=X(()=>sM(n.event)),a=X(()=>IM(n.event));function o(){i.value>0&&r( ` open ` ,i.value)}let s=X(()=>n.event.at?hj(n.event.at): ` — ` );return(e,t)=>(H(),W(P(MM),{class:j(i.value>0? ` cursor - pointer ` : ` ` ),role:i.value>0? ` link ` :void 0,tabindex:i.value>0?0:void 0,title:i.value>0? ` Open task details ` :void 0,onClick:o,onKeydown:[Xl(Jl(o,[ ` prevent ` ]),[ ` enter ` ]),Xl(Jl(o,[ ` prevent ` ]),[ ` space ` ])]},{default:F(()=>[K(P(jM),{class: ` font - medium ` },{default:F(()=>[q(M(n.event.kind||n.event.type|| ` event ` ),1)]),_:1}),K(P(jM),{class: ` font - mono ` },{default:F(()=>[q(M(i.value>0? ` # $ { i . value } ` : ` — ` ),1)]),_:1}),K(P(jM),{class: ` w - [ 55 % ] max - w - 0 ` },{default:F(()=>[G( ` span ` ,{class: ` block truncate ` ,title:a.value.truncated?a.value.full:void 0},M(a.value.text),9,LM)]),_:1}),K(P(jM),null,{default:F(()=>[q(M(s.value),1)]),_:1})]),_:1},8,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onKeydown ` ]))}}),zM=[{value: ` all ` ,label: ` All ` },{value: ` tasks ` ,label: ` Tasks ` },{value: ` system ` ,label: ` System ` }];function BM(e){return(Number(e?.task_id)||0)>0}function VM(e,t){return t=== ` tasks ` ?BM(e):t!== ` system ` ||!BM(e)}function HM(e,t){return e.filter(e=>VM(e,t))}function UM(e,t){return e>0? ` ` :t=== ` all ` ? ` Waiting for activity ` :t=== ` tasks ` ? ` No task events yet ` : ` No system events yet ` }function WM(e,t){return ` $ { e } : $ { t ? ? 0 } ` }function GM(e){let t=[];for(let n of e){let e=n.kind||n.type|| ` event ` ,r=Number(n.task_id)||0,i=WM(IM(n).text,r),a=t[t.length-1];if(a&&a.key===i){a.count+=1,a.events.push(n);continue}t.push({key:i,label:e,taskID:r,count:1,representative:n,events:[n]})}return t}var KM={role: ` region ` ,"aria-label": ` Live activity ` ,"aria-live": ` polite ` },qM={class: ` max - h - [ 28 rem ] overflow - y - auto ` },JM=[ ` aria - expanded ` , ` aria - label ` , ` onClick ` ],YM=[ ` title ` ],XM=L({__name: ` LiveActivityCard ` ,setup(e){let t=HD(),{activity:n,streamKind:r,streamState:i}=Uu(vA()),a=N( ` all ` ),o=X(()=>HM(n.value,a.value)),s=X(()=>UM(o.value.length,a.value)),c=Yt(new Set),l=X(()=>GM(o.value));function u(e){c.has(e)?c.delete(e):c.add(e)}function d(e){return c.has(e.key)}function f(e){return IM(e.representative)}function p(e){return e.representative.at?hj(e.representative.at): ` — ` }function m(e){t.push( ` / tasks ? task = $ { encodeURIComponent ( e ) } ` )}return(e,t)=>(H(),W(P(cj),null,{default:F(()=>[K(P(pj),null,{default:F(()=>[K(P(mj),null,{default:F(()=>[...t[1]||=[q( ` Live activity ` ,-1)]]),_:1}),K(P(lj),{class: ` flex items - center gap - 2 ` },{default:F(()=>[K(P(DM),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,label: ` Filter activity ` ,options:P(zM)},null,8,[ ` modelValue ` , ` options ` ]),K(P(aj),{variant:P(r)},{default:F(()=>[q(M(P(i)),1)]),_:1},8,[ ` variant ` ])]),_:1})]),_:1}),K(P(uj),null,{default:F(()=>[G( ` div ` ,KM,[G( ` div ` ,qM,[K(P(kM),null,{default:F(()=>[K(P(PM),{class: ` sticky top - 0 z - 10 bg - card ` },{default:F(()=>[K(P(MM),null,{default:F(()=>[K(P(NM),null,{default:F(()=>[...t[2]||=[q( ` Event ` ,-1)]]),_:1}),K(P(NM),null,{default:F(()=>[...t[3]||=[q( ` Task ` ,-1)]]),_:1}),K(P(NM),null,{default:F(()=>[...t[4]||=[q( ` Detail ` ,-1)]]),_:1}),K(P(NM),null,{default:F(()=>[...t[5]||=[q( ` When ` ,-1)]]),_:1})]),_:1})]),_:1}),K(P(AM),null,{default:F(()=>[o.value.length?J( ` ` ,!0):(H(),W(P(MM),{key:0},{default:F(()=>[K(P(jM),{colspan: ` 4 ` },{default:F(()=>[K(P(ZA),null,{default:F(()=>[K(P(ej),null,{default:F(()=>[K(P(rj),null,{default:F(()=>[q(M(s.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),o.value.length?(H(!0),U(V,{key:1},z(l.value,e=>(H(),U(V,{key:e.key},[e.count===1?(H(),W(RM,{key:0,event:e.representative,onOpen:m},null,8,[ ` event ` ])):(H(),U(V,{key:1},[K(P(MM),{class:j(e.taskID>0? ` cursor - pointer ` : ` ` ),role:e.taskID>0? ` link ` :void 0,tabindex:e.taskID>0?0:void 0,title:e.taskID>0? ` Open task details ` :void 0,onClick:t=>e.taskID>0&&m(e.taskID),onKeydown:[Xl(Jl(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` enter ` ]),Xl(Jl(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` space ` ])]},{default:F(()=>[K(P(jM),{class: ` font - medium ` },{default:F(()=>[G( ` button ` ,{type: ` button ` ,class: ` inline - flex items - center gap - 1 rounded hover : opacity - 80 ` ,"aria-expanded":d(e),"aria-label": ` $ { d ( e ) ? ` Hide ` : ` Show ` } $ { e . count } $ { e . label } events ` ,onClick:Jl(t=>u(e.key),[ ` stop ` ])},[d(e)?(H(),W(P(ud),{key:0,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })):(H(),W(P(dd),{key:1,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })),q( ` ` +M(e.label)+ ` ` ,1),K(P(aj),{variant: ` idle ` },{default:F(()=>[q( ` × ` +M(e.count),1)]),_:2},1024)],8,JM)]),_:2},1024),K(P(jM),{class: ` font - mono ` },{default:F(()=>[q(M(e.taskID>0? ` # $ { e . taskID } ` : ` — ` ),1)]),_:2},1024),K(P(jM),{class: ` w - [ 55 % ] max - w - 0 ` },{default:F(()=>[G( ` span ` ,{class: ` block truncate ` ,title:f(e).truncated?f(e).full:void 0},M(f(e).text),9,YM)]),_:2},1024),K(P(jM),null,{default:F(()=>[q(M(p(e)),1)]),_:2},1024)]),_:2},1032,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onClick ` , ` onKeydown ` ]),d(e)?(H(!0),U(V,{key:0},z(e.events,(t,n)=>(H(),W(RM,{key: ` $ { e . key } : $ { n } ` ,ev
Line truncated
` )){let e=n.indexOf( ` : ` );if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function gP(e,t){if(!e.event_type)return{label: ` Unidentified ` ,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name: ` Deleted type ` ,identified:!0}}function _P(e,t){if(!e)return ` No event type ` ;let n=t.find(t=>t.id===e);return n? ` $ { n . source } / $ { n . name } ` : ` Deleted type ` }function vP(e){let t=[...(e.headers||[]).map(e=> ` $ { e . name } = $ { e . value } ` ),...(e.payload||[]).map(e=>e.op=== ` present ` ? ` $ { e . path } present ` : ` $ { e . path } = $ { e . value ? ? ` ` } ` )];return t.length?t.join( ` · ` ): ` any event ` }function yP(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!== ` ` ).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!== ` ` ).map(e=>e.op=== ` present ` ?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value?? ` ` })}}var bP=N([]),xP=N([]),SP=N(!0),CP=N(null),wP=N(null),TP=N(!1),EP=N(null);async function DP(){try{let e=await Yp.eventTypes();SP.value=e.enabled!==!1,bP.value=e.event_types||[],xP.value=e.proposals||[],CP.value=null}catch(e){CP.value=e.message||String(e)}}function OP(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function kP(e){EP.value=null,wP.value=e}function AP(e){let t=RP.value.find(t=>String(t.id)===e.sample_id);kP({mode: ` proposal ` ,id:null,source:e.source,name: ` ` ,rule:OP(e.rule),headersText: ` ` ,body:t?.body|| ` ` ,exampleHeaders:e.headers||{}})}function jP(e= ` ` ){kP({mode: ` paste ` ,id:null,source:e,name: ` ` ,rule:{headers:[],payload:[]},headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function MP(e){kP({mode: ` edit ` ,id:e.id,source:e.source,name:e.name,rule:OP(e.rule),headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function NP(){wP.value=null}async function PP(){let e=wP.value;if(e){TP.value=!0;try{if(e.mode=== ` edit ` &&e.id)await Yp.eventTypeUpdate(e.id,{name:e.name,rule:yP(e.rule)});else{let t=e.mode=== ` paste ` ?hP(e.headersText):e.exampleHeaders;await Yp.eventTypeCreate({source:e.source,name:e.name,rule:e.mode=== ` paste ` ?void 0:yP(e.rule),example:{headers:t,body:e.body}})}wP.value=null,await DP()}catch(e){EP.value=e.message||String(e)}finally{TP.value=!1}}}var FP=N(null);async function IP(){let e=FP.value;if(FP.value=null,e)try{await Yp.eventTypeDelete(e.id),await DP()}catch(e){CP.value=e.message||String(e)}}var LP=100,RP=N([]),zP=N(!0),BP=N(null),VP=N(!0),HP=N(null);async function UP(){try{let e=await Yp.captures(LP);zP.value=e.enabled!==!1,RP.value=e.captures||[],BP.value=null}catch(e){BP.value=e.message||String(e)}finally{VP.value=!1}}function WP(e){let t=RP.value.find(t=>t.id===e);return t&&(HP.value=t),!!t}function GP(){RP.value.length&&(HP.value=RP.value[0])}function KP(){yA( ` captures ` ,()=>{UP(),DP()})}var qP= ` archie . theme ` ,JP= ` archie . density ` ,YP= ` archie . motion ` ,XP= ` archie . tooltips ` ;function ZP(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r)?r:n}catch{return n}}function QP(e,t){try{localStorage.setItem(e,t)}catch{}}function $ P(e){if(e!== ` system ` )return e;try{return matchMedia( ` ( prefers - color - scheme : dark ) ` ).matches? ` dark ` : ` light ` }catch{return ` dark ` }}var eF=Hu( ` appearance ` ,()=>{let e=N(ZP(qP,[ ` system ` , ` dark ` , ` light ` ], ` dark ` )),t=N(ZP(JP,[ ` comfortable ` , ` compact ` ], ` comfortable ` )),n=N(ZP(YP,[ ` system ` , ` reduced ` ], ` system ` )),r=N(ZP(XP,[ ` on ` , ` off ` ], ` on ` )=== ` on ` ),i=!1;function a(){document.documentElement.dataset.theme= $ P(e.value)}function o(t){e.value=t,a(),QP(qP,t)}function s(e){t.value=e,document.documentElement.dataset.density=e,QP(JP,e)}function c(e){n.value=e,document.documentElement.dataset.motion=e,QP(YP,e)}function l(e){r.value=e,QP(XP,e? ` on ` : ` off ` )}function u(){if(!i){i=!0,a(),document.documentElement.dataset.density=t.value,document.documentElement.dataset.motion=n.value;try{matchMedia( ` ( prefers - color - scheme : dark ) ` ).addEventListener( ` change ` ,()=>{e.value=== ` system ` &&a()})}catch{}}}return{theme:e,density:t,motion:n,tooltipsEnabled:r,initialize:u,setTheme:o,setDensity:s,setMotion:c,setTooltips:l}}),tF=L({__name: ` Tooltip ` ,props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[ ` update : open ` ],setup(e,{emit:t}){let n=e,r=fg(n,t),{tooltipsEnabled:i}=Uu(eF());return(e,t)=>(H(),W(P(pw),Y({"data-slot": ` tooltip ` },P(r),{disabled:n.disabled||!P(i)}),{default:F(t=>[B(e. $ slots, ` default ` ,ve(ps(t)))]),_:3},16,[ ` disabled ` ]))}}),nF=L({inheritAttrs:!1,__name: ` TooltipContent ` ,props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:0},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[ ` escapeKeyDown ` , ` pointerDownOutside ` ],setup(e,{emit:t}){let n=e,r=t,i=fg(Nw(n, ` class ` ),r);return(e,t)=>(H(),W(P(_w),null,{defau
Line truncated
` )}};sJ.defaultYaml={explicit:!1,version: ` 1.2 ` },sJ.defaultTags={"!!": ` tag : yaml . org , 2002 : ` };function cJ(e){if(/[ \x 00- \x 19 \s ,[ \] {}]/.test(e)){let t= ` Anchor must not contain whitespace or control characters : $ { JSON . stringify ( e ) } ` ;throw Error(t)}return!0}function lJ(e){let t=new Set;return eJ(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function uJ(e,t){for(let n=1;;++n){let r= ` $ { e } $ { n } ` ;if(!t.has(r))return r}}function dJ(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=lJ(e);let a=uJ(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t== ` object ` &&t.anchor&&(Kq(t.node)||Jq(t.node)))t.node.anchor=t.anchor;else{let t=Error( ` Failed to resolve repeated object ( this should not happen ) ` );throw t.source=e,t}}},sourceObjects:r}}function fJ(e,t,n,r){if(r&&typeof r== ` object ` ){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=fJ(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=fJ(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=fJ(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=fJ(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function pJ(e,t,n){if(Array.isArray(e))return e.map((e,t)=>pJ(e,String(t),n));if(e&&typeof e.toJSON== ` function ` ){if(!n||!Xq(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e== ` bigint ` &&!n?.keep?Number(e):e}var mJ=class{constructor(e){Object.defineProperty(this,Vq,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Uq(e))throw TypeError( ` A document argument is required ` );let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n== ` number ` ?n:100},o=pJ(this, ` ` ,a);if(typeof r== ` function ` )for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i== ` function ` ?fJ(i,{"":o}, ` ` ,o):o}},hJ=class extends mJ{constructor(e){super(Fq),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error( ` Alias nodes cannot have tags ` )}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError( ` Alias resolution is disabled ` );let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],eJ(e,{Node:(e,t)=>{(Hq(t)||Xq(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,a=e.get(r);if(a||=(pJ(r,null,t),e.get(r)),a?.res===void 0)throw ReferenceError( ` This should not happen : Alias anchor was not resolved ? ` );if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=gJ(n,r,e)),a.count*a.aliasCount>i))throw ReferenceError( ` Excessive alias count indicates a resource exhaustion attack ` )}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e= ` Unresolved alias ( the anchor must be set before the alias ) : $ { this . source } ` ;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,t,n){let r= ` * $ { this . source } ` ;if(e){if(cJ(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e= ` Unresolved alias ( the anchor must be set before the alias ) : $ { this . source } ` ;throw Error(e)}if(e.implicitKey)return ` $ { r } ` }return r}};function gJ(e,t,n){if(Hq(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Jq(t)){let r=0;for(let i of t.items){let t=gJ(e,i,n);t>r&&(r=t)}return r}if(Gq(t)){let r=gJ(e,t.key,n),i=gJ(e,t.value,n);return Math.max(r,i)}return 1}var _J=e=>!e||typeof e!= ` function ` &&typeof e!= ` object ` ,vJ=class extends mJ{constructor(e){super(zq),this.value=e}toJSON(e,t){return t?.keep?this.value:pJ(this.value,e,t)}toString(){return String(this.value)}};vJ.BLOCK_FOLDED= ` BLOCK _FOLDED ` ,vJ.BLOCK_LITERAL= ` BLOCK _LITERAL ` ,vJ.PLAIN= ` PLAIN ` ,vJ.QUOTE_DOUBLE= ` QUOTE _DOUBLE ` ,vJ.QUOTE_SINGLE= ` QUOTE _SINGLE ` ;var yJ= ` tag : yaml . org , 2002 : ` ;function bJ(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error( ` Tag $ { t } not found ` );return r}return n.find(t=>t.identify?.(e)&&!t.format)}function xJ(e,t,n){if(Uq(e)&&(e=e.contents),Yq(e))return e;if(Gq(e)){let t=n.schema[Lq].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt< ` u ` &&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e== ` object ` ){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new hJ(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith( ` ! ! ` )&&(t=yJ+t.slice(2));let l=bJ(e,t,o.tags);if(!l){if(e&&typeof e.toJSON== ` function ` &&(e=e.toJSON()),!e||typeof e!= ` object ` ){let t=new vJ(e);return c&&(c.node=t),t
Line truncated
` )?E J(n,t):n.includes( `
` )? `
` +d J(n,t):(e.endsWith( ` ` )? ` ` : ` ` )+n,p J= ` flow ` ,m J= ` block ` ,h J= ` quoted ` ;function g J(e,t,n= ` flow ` ,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r== ` number ` &&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n=== ` block ` &&(h=_ J(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n=== ` quoted ` &&r=== ` \ \ ` ){switch(g=h,e[h+1]){case ` x ` :h+=3;break;case ` u ` :h+=5;break;case ` U ` :h+=9;break;default:h+=1}_=h}if(r=== `
` )n=== ` block ` &&(h=_ J(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r=== ` ` &&p&&p!== ` ` &&p!== `
` +E J(n,t):(e.endsWith( ` ` )? ` ` : ` ` )+n,O J= ` flow ` ,k J= ` block ` ,A J= ` quoted ` ;function j J(e,t,n= ` flow ` ,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r== ` number ` &&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n=== ` block ` &&(h=M J(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n=== ` quoted ` &&r=== ` \ \ ` ){switch(g=h,e[h+1]){case ` x ` :h+=3;break;case ` u ` :h+=5;break;case ` U ` :h+=9;break;default:h+=1}_=h}if(r=== `
` )n=== ` block ` &&(h=M J(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r=== ` ` &&p&&p!== ` ` &&p!== `
` &&p!== ` ` ){let t=e[h+1];t&&t!== ` ` &&t!== `
` &&t!== ` ` &&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n=== ` quoted ` ){for(;p=== ` ` ||p=== ` ` ;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v= ` \ n$ { t } $ { e . slice ( 0 , a ) } ` :(n=== ` quoted ` &&u[i]&&(v+= ` $ { e [ i ] } \ \ ` ),v+= ` \ n$ { t } $ { e . slice ( i + 1 , a ) } ` )}return v}function _ J(e,t,n){let r=t,i=t+1,a=e[i];for(;a=== ` ` ||a=== ` ` ;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!== `
` );r=t,i=t+1,a=e[i]}return r}var v J=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),y J=e=>/^(%|---| \. \. \. )/m.test(e);function b J(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]=== `
` ){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function x J(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(y J(e)? ` ` : ` ` ),o= ` ` ,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t=== ` ` &&n[e+1]=== ` \ \ ` &&n[e+2]=== ` n ` &&(o+=n.slice(s,e)+ ` \ \ ` ,e+=1,s=e,t= ` \ \ ` ),t=== ` \ \ ` )switch(n[e+1]){case ` u ` :{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case ` 0000 ` :o+= ` \ \ 0 ` ;break;case ` 0007 ` :o+= ` \ \ a ` ;break;case ` 000 b ` :o+= ` \ \ v ` ;break;case ` 001 b ` :o+= ` \ \ e ` ;break;case ` 0085 ` :o+= ` \ \ N ` ;break;case ` 00 a0 ` :o+= ` \ \ _ ` ;break;case ` 2028 ` :o+= ` \ \ L ` ;break;case ` 2029 ` :o+= ` \ \ P ` ;break;default:t.substr(0,2)=== ` 00 ` ?o+= ` \ \ x ` +t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case ` n ` :if(r||n[e+2]=== ` " ` ||n.length<i)e+=1;else{for(o+=n.slice(s,e)+ `
` &&t!== ` ` &&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n=== ` quoted ` ){for(;p=== ` ` ||p=== ` ` ;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v= ` \ n$ { t } $ { e . slice ( 0 , a ) } ` :(n=== ` quoted ` &&u[i]&&(v+= ` $ { e [ i ] } \ \ ` ),v+= ` \ n$ { t } $ { e . slice ( i + 1 , a ) } ` )}return v}function M J(e,t,n){let r=t,i=t+1,a=e[i];for(;a=== ` ` ||a=== ` ` ;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!== `
` );r=t,i=t+1,a=e[i]}return r}var N J=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),P J=e=>/^(%|---| \. \. \. )/m.test(e);function F J(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]=== `
` ){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function I J(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(P J(e)? ` ` : ` ` ),o= ` ` ,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t=== ` ` &&n[e+1]=== ` \ \ ` &&n[e+2]=== ` n ` &&(o+=n.slice(s,e)+ ` \ \ ` ,e+=1,s=e,t= ` \ \ ` ),t=== ` \ \ ` )switch(n[e+1]){case ` u ` :{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case ` 0000 ` :o+= ` \ \ 0 ` ;break;case ` 0007 ` :o+= ` \ \ a ` ;break;case ` 000 b ` :o+= ` \ \ v ` ;break;case ` 001 b ` :o+= ` \ \ e ` ;break;case ` 0085 ` :o+= ` \ \ N ` ;break;case ` 00 a0 ` :o+= ` \ \ _ ` ;break;case ` 2028 ` :o+= ` \ \ L ` ;break;case ` 2029 ` :o+= ` \ \ P ` ;break;default:t.substr(0,2)=== ` 00 ` ?o+= ` \ \ x ` +t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case ` n ` :if(r||n[e+2]=== ` " ` ||n.length<i)e+=1;else{for(o+=n.slice(s,e)+ `
` ;n[e+2]=== ` \ \ ` &&n[e+3]=== ` n ` &&n[e+4]!== ` " ` ;)o+= `
` ,e+=2;o+=a,n[e+2]=== ` ` &&(o+= ` \ \ ` ),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:g J(o,a,h J,v J(t,!1))}function S J(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes( `
` )||/[ \t ] \n | \n [ \t ]/.test(e))return x J(e,t);let n=t.indent||(y J(e)? ` ` : ` ` ),r= ` '`+e.replace(/' / g , ` '' ` ) . replace ( /\n+/g , ` $ & \n ${ n } ` ) + ` ' ` ; return t . implicitKey ? r : gJ ( r , n , pJ , vJ ( t , ! 1 ) ) } function CJ ( e , t ) { let { singleQuote : n } = t . options , r ; if ( n === ! 1 ) r = xJ ; else { let t = e . includes ( ` " ` ) , i = e . includes ( ` ' ` ) ; r = t && ! i ? SJ : i && ! t ? xJ : n ? SJ : xJ } return r ( e , t ) } var wJ ; try { wJ = RegExp ( ` (^|(?<!
` ,e+=2;o+=a,n[e+2]=== ` ` &&(o+= ` \ \ ` ),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:j J(o,a,A J,N J(t,!1))}function L J(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes( `
` )||/[ \t ] \n | \n [ \t ]/.test(e))return I J(e,t);let n=t.indent||(P J(e)? ` ` : ` ` ),r= ` '`+e.replace(/' / g , ` '' ` ) . replace ( /\n+/g , ` $ & \n ${ n } ` ) + ` ' ` ; return t . implicitKey ? r : jJ ( r , n , OJ , NJ ( t , ! 1 ) ) } function RJ ( e , t ) { let { singleQuote : n } = t . options , r ; if ( n === ! 1 ) r = IJ ; else { let t = e . includes ( ` " ` ) , i = e . includes ( ` ' ` ) ; r = t && ! i ? LJ : i && ! t ? IJ : n ? LJ : IJ } return r ( e , t ) } var zJ ; try { zJ = RegExp ( ` (^|(?<!
) )
+ ( ? !
| $ ) ` , ` g ` )}catch{w J=/ \n +(?! \n | $ )/g}function T J({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/ \n [ \t ]+ $ /.test(n))return C J(n,r);let l=r.indent||(r.forceBlockIndent||y J(n)? ` ` : ` ` ),u=o=== ` literal ` ?!0:o=== ` folded ` ||t===r J.BLOCK_FOLDED?!1:t===r J.BLOCK_LITERAL||!b J(n,c,l.length);if(!n)return u? ` |
| $ ) ` , ` g ` )}catch{z J=/ \n +(?! \n | $ )/g}function B J({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/ \n [ \t ]+ $ /.test(n))return R J(n,r);let l=r.indent||(r.forceBlockIndent||P J(n)? ` ` : ` ` ),u=o=== ` literal ` ?!0:o=== ` folded ` ||t===v J.BLOCK_FOLDED?!1:t===v J.BLOCK_LITERAL||!F J(n,c,l.length);if(!n)return u? ` |
` : ` >
` ;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!== `
` &&e!== ` ` &&e!== ` ` )break}let p=n.substring(f),m=p.indexOf( `
` );m===-1?d= ` - ` :n===p||m!==p.length-1?(d= ` + ` ,a&&a()):d= ` ` ,p&&=(n=n.slice(0,-p.length),p[p.length-1]=== `
` &&(p=p.slice(0,-1)),p.replace(w J, ` $ & $ { l } ` ));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e=== ` ` )h=!0;else if(e=== `
` &&(p=p.slice(0,-1)),p.replace(z J, ` $ & $ { l } ` ));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e=== ` ` )h=!0;else if(e=== `
` )_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/ \n +/g, ` $ & $ { l } ` ));let y=(h?l? ` 2 ` : ` 1 ` : ` ` )+d;if(e&&(y+= ` ` +s(e.replace(/ ?[ \r \n ]+/g, ` ` )),i&&i()),!u){let e=n.replace(/ \n +/g, `
$ & ` ).replace(/(?:^| \n )([ \t ].*)(?:([ \n \t ]*) \n (?![ \n \t ]))?/g, ` $1$2 ` ).replace(/ \n +/g, ` $ & $ { l } ` ),i=!1,a=v J(r,!0);o!== ` folded ` &&t!==r J.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=g J( ` $ { v } $ { e } $ { p } ` ,l,m J,a);if(!i)return ` > $ { y } \ n$ { l } $ { s } ` }return n=n.replace(/ \n +/g, ` $ & $ { l } ` ), ` | $ { y } \ n$ { l } $ { v } $ { n } $ { p } ` }function E J(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes( `
` )||u&&/[[ \] {},]/.test(a))return C J(a,t);if(/^[ \n \t ,[ \] {}#&*!|>'"%@ ` ] | ^ [ ? - ] $ | ^ [ ? - ] [ \ t ] | [ \ n : ] [ \ t ] | [ \ t ] \ n | [ \ n \ t ] # | [ \ n \ t : ] $ / . test ( a ) ) return s || u || ! a . includes ( `
` )?C J(a,t):T J(e,t,n,r);if(!s&&!u&&i!==r J.PLAIN&&a.includes( `
` ))return T J(e,t,n,r);if(y J(a)){if(c=== ` ` )return t.forceBlockIndent=!0,T J(e,t,n,r);if(s&&c===l)return C J(a,t)}let d=a.replace(/ \n +/g, ` $ & \ n$ { c } ` );if(o){let e=e=>e.default&&e.tag!== ` tag : yaml . org , 2002 : str ` &&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return C J(a,t)}return s?d:g J(d,c,p J,v J(t,!1))}function D J(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value== ` string ` ?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==r J.QUOTE_DOUBLE&&/[ \x 00- \x 08 \x 0b- \x 1f \x 7f- \x 9f \u {D800}- \u {DFFF}]/u.test(o.value)&&(s=r J.QUOTE_DOUBLE);let c=e=>{switch(e){case r J.BLOCK_FOLDED:case r J.BLOCK_LITERAL:return i||a?C J(o.value,t):T J(o,t,n,r);case r J.QUOTE_DOUBLE:return x J(o.value,t);case r J.QUOTE_SINGLE:return S J(o.value,t);case r J.PLAIN:return E J(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error( ` Unsupported default string type $ { r } ` )}return l}function O J(e,t){let n=Object.assign({blockQuote:!0,commentString:u J,defaultKeyType:null,defaultStringType: ` PLAIN ` ,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr: ` false ` ,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr: ` null ` ,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr: ` true ` ,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case ` block ` :r=!1;break;case ` flow ` :r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding? ` ` : ` ` ,indent: ` ` ,indentStep:typeof n.indent== ` number ` ? ` ` .repeat(n.indent): ` ` ,inFlow:r,options:n}}function k J(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(j q(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null? ` null ` :typeof r);throw Error( ` Tag not resolved for $ { e } value ` )}return n}function A J(e,t,{anchors:n,doc:r}){if(!r.directives)return ` ` ;let i=[],a=(j q(e)||N q(e))&&e.anchor;a&&qq (a)&&(n.add(a),i.push( ` & $ { a } ` ));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join( ` ` )}function j J(e,t,n,r){if(A q(e))return e.toString(t,n,r);if(D q(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError( ` Cannot stringify circular structure without alias nodes ` );t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=P q(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=k J(t.doc.schema.tags,a);let o=A J(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify== ` function ` ?i.stringify(a,t,n,r):j q(a)?D J(a,t,n,r):a.toString(t,n,r);return o?j q(a)||s[0]=== ` { ` ||s[0]=== ` [ ` ? ` $ { o } $ { s } ` : ` $ { o } \ n$ { t . indent } $ { s } ` :s}function M J({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=P q(e)&&e.comment||null;if(d){if(f)throw Error( ` With simple keys , key nodes cannot have comments ` );if(N q(e)||!P q(e)&&typeof e== ` object ` )throw Error( ` With simple keys , collection cannot be used as a key value ` )}let p=!d&&(!e||f&&t==null&&!n.inFlow||N q(e)||(j q(e)?e.type===r J.BLOCK_FOLDED||e.type===r J.BLOCK_LITERAL:typeof e== ` object ` ));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=j J(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error( ` With simple keys , single line scalar must not span more than 1024 characters ` );p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g=== ` ` ? ` ? ` :p? ` ? $ { g } ` :g}else if(a&&!d||t==null&&p)return g= ` ? $ { g } ` ,f&&!m?g+=f J(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=f J(g,n.indent,l(f))),g= ` ? $ { g } \ n$ { s } : ` ):(g= ` $ { g } : ` ,f&&(g+=f J(g,n.indent,l(f))));let _,v,y;P q(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t== ` object ` &&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&j q(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&M q(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=j J(t,n,()=>b=!0,()=>h=!0),S= ` ` ;if(f||_||v){if(S=_? `
` : ` ` ,v){let e=l(v);S+= ` \ n$ { dJ ( e , n . indent ) } ` }x=== ` ` &&!n.inFlow?S=== `
$ & ` ).replace(/(?:^| \n )([ \t ].*)(?:([ \n \t ]*) \n (?![ \n \t ]))?/g, ` $1$2 ` ).replace(/ \n +/g, ` $ & $ { l } ` ),i=!1,a=N J(r,!0);o!== ` folded ` &&t!==v J.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=j J( ` $ { v } $ { e } $ { p } ` ,l,k J,a);if(!i)return ` > $ { y } \ n$ { l } $ { s } ` }return n=n.replace(/ \n +/g, ` $ & $ { l } ` ), ` | $ { y } \ n$ { l } $ { v } $ { n } $ { p } ` }function V J(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes( `
` )||u&&/[[ \] {},]/.test(a))return R J(a,t);if(/^[ \n \t ,[ \] {}#&*!|>'"%@ ` ] | ^ [ ? - ] $ | ^ [ ? - ] [ \ t ] | [ \ n : ] [ \ t ] | [ \ t ] \ n | [ \ n \ t ] # | [ \ n \ t : ] $ / . test ( a ) ) return s || u || ! a . includes ( `
` )?R J(a,t):B J(e,t,n,r);if(!s&&!u&&i!==v J.PLAIN&&a.includes( `
` ))return B J(e,t,n,r);if(P J(a)){if(c=== ` ` )return t.forceBlockIndent=!0,B J(e,t,n,r);if(s&&c===l)return R J(a,t)}let d=a.replace(/ \n +/g, ` $ & \ n$ { c } ` );if(o){let e=e=>e.default&&e.tag!== ` tag : yaml . org , 2002 : str ` &&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return R J(a,t)}return s?d:j J(d,c,O J,N J(t,!1))}function H J(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value== ` string ` ?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==v J.QUOTE_DOUBLE&&/[ \x 00- \x 08 \x 0b- \x 1f \x 7f- \x 9f \u {D800}- \u {DFFF}]/u.test(o.value)&&(s=v J.QUOTE_DOUBLE);let c=e=>{switch(e){case v J.BLOCK_FOLDED:case v J.BLOCK_LITERAL:return i||a?R J(o.value,t):B J(o,t,n,r);case v J.QUOTE_DOUBLE:return I J(o.value,t);case v J.QUOTE_SINGLE:return L J(o.value,t);case v J.PLAIN:return V J(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error( ` Unsupported default string type $ { r } ` )}return l}function U J(e,t){let n=Object.assign({blockQuote:!0,commentString:T J,defaultKeyType:null,defaultStringType: ` PLAIN ` ,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr: ` false ` ,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr: ` null ` ,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr: ` true ` ,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case ` block ` :r=!1;break;case ` flow ` :r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding? ` ` : ` ` ,indent: ` ` ,indentStep:typeof n.indent== ` number ` ? ` ` .repeat(n.indent): ` ` ,inFlow:r,options:n}}function W J(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(K q(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null? ` null ` :typeof r);throw Error( ` Tag not resolved for $ { e } value ` )}return n}function G J(e,t,{anchors:n,doc:r}){if(!r.directives)return ` ` ;let i=[],a=(K q(e)||J q(e))&&e.anchor;a&&cJ (a)&&(n.add(a),i.push( ` & $ { a } ` ));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join( ` ` )}function K J(e,t,n,r){if(G q(e))return e.toString(t,n,r);if(H q(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError( ` Cannot stringify circular structure without alias nodes ` );t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=Y q(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=W J(t.doc.schema.tags,a);let o=G J(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify== ` function ` ?i.stringify(a,t,n,r):K q(a)?H J(a,t,n,r):a.toString(t,n,r);return o?K q(a)||s[0]=== ` { ` ||s[0]=== ` [ ` ? ` $ { o } $ { s } ` : ` $ { o } \ n$ { t . indent } $ { s } ` :s}function q J({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=Y q(e)&&e.comment||null;if(d){if(f)throw Error( ` With simple keys , key nodes cannot have comments ` );if(J q(e)||!Y q(e)&&typeof e== ` object ` )throw Error( ` With simple keys , collection cannot be used as a key value ` )}let p=!d&&(!e||f&&t==null&&!n.inFlow||J q(e)||(K q(e)?e.type===v J.BLOCK_FOLDED||e.type===v J.BLOCK_LITERAL:typeof e== ` object ` ));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=K J(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error( ` With simple keys , single line scalar must not span more than 1024 characters ` );p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g=== ` ` ? ` ? ` :p? ` ? $ { g } ` :g}else if(a&&!d||t==null&&p)return g= ` ? $ { g } ` ,f&&!m?g+=D J(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=D J(g,n.indent,l(f))),g= ` ? $ { g } \ n$ { s } : ` ):(g= ` $ { g } : ` ,f&&(g+=D J(g,n.indent,l(f))));let _,v,y;Y q(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t== ` object ` &&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&K q(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&q q(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=K J(t,n,()=>b=!0,()=>h=!0),S= ` ` ;if(f||_||v){if(S=_? `
` : ` ` ,v){let e=l(v);S+= ` \ n$ { EJ ( e , n . indent ) } ` }x=== ` ` &&!n.inFlow?S=== `
` &&y&&(S= `
` ):S+= ` \ n$ { n . indent } ` }else if(!p&&N q(t)){let e=x[0],r=x.indexOf( `
` ):S+= ` \ n$ { n . indent } ` }else if(!p&&J q(t)){let e=x[0],r=x.indexOf( `
` ),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e=== ` & ` ||e=== ` ! ` )){let n=x.indexOf( ` ` );e=== ` & ` &&n!==-1&&n<r&&x[n+1]=== ` ! ` &&(n=x.indexOf( ` ` ,n+1)),(n===-1||r<n)&&(t=!0)}t||(S= ` \ n$ { n . indent } ` )}}else(x=== ` ` ||x[0]=== `
` )&&(S= ` ` );return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=f J(g,n.indent,l(y)):h&&i&&i(),g}function N J(e,t){(e=== ` debug ` ||e=== ` warn ` )&&console.warn(t)}var P J= ` << ` ,F J={identify:e=>e===P J||typeof e== ` symbol ` &&e.description===P J,default: ` key ` ,tag: ` tag : yaml . org , 2002 : merge ` ,test:/^<< $ /,resolve:()=>Object.assign(new r J(Symbol(P J)),{addToJSMap:L J}),stringify:()=>P J},I J=(e,t)=>(F J.identify(t)||j q(t)&&(!t.type||t.type===r J.PLAIN)&&F J.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===F J.tag&&e.default);function L J(e,t,n){let r=zJ (e,n);if(M q(r))for(let n of r.items)R J(e,t,n);else if(Array.isArray(r))for(let n of r)R J(e,t,n);else R J(e,t,r)}function R J(e,t,n){let r=zJ (e,n);if(!k q(r))throw Error( ` Merge sources must be maps or map aliases ` );let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function zJ (e,t){return e&&D q(t)?t.resolve(e.doc,e):t}function BJ (e,t,{key:n,value:r}){if(P q(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(I J(e,n))L J(e,t,r);else{let i=Qq (n, ` ` ,e);if(t instanceof Map)t.set(i,Qq (r,i,e));else if(t instanceof Set)t.add(i);else{let a=VJ (n,i,e),o=Qq (r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function VJ (e,t,n){if(t===null)return ` ` ;if(typeof t!= ` object ` )return String(t);if(P q(e)&&n?.doc){let t=O J(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+ ` ... " ` ),N J(n.doc.options.logLevel, ` Keys with collection values will be stringified due to JS Object restrictions : $ { e } . Set mapAsMap : true to use object keys . ` ),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function HJ (e,t,n){return new UJ(o J(e,void 0,n),o J(t,void 0,n))}var UJ =class e{constructor(e,t=null){Object.defineProperty(this,E q,{value:C q}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return P q(n)&&(n=n.clone(t)),P q(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return BJ (t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?M J(this,e,t,n):JSON.stringify(this)}};function WJ (e,t,n){return(t.inFlow??e.flow?KJ:GJ )(e,t,n)}function GJ ({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(P q(i))!d&&i.spaceBefore&&f.push( ` ` ),qJ (n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(A q(i)){let e=P q(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push( ` ` ),qJ (n,f,e.commentBefore,d))}d=!1;let s=j J(i,u,()=>o=null,()=>d=!0);o&&(s+=f J(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t? ` \ n$ { c } $ { t } ` : `
` )&&(S= ` ` );return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=D J(g,n.indent,l(y)):h&&i&&i(),g}function J J(e,t){(e=== ` debug ` ||e=== ` warn ` )&&console.warn(t)}var Y J= ` << ` ,X J={identify:e=>e===Y J||typeof e== ` symbol ` &&e.description===Y J,default: ` key ` ,tag: ` tag : yaml . org , 2002 : merge ` ,test:/^<< $ /,resolve:()=>Object.assign(new v J(Symbol(Y J)),{addToJSMap:Q J}),stringify:()=>Y J},Z J=(e,t)=>(X J.identify(t)||K q(t)&&(!t.type||t.type===v J.PLAIN)&&X J.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===X J.tag&&e.default);function Q J(e,t,n){let r=eY (e,n);if(q q(r))for(let n of r.items) $ J(e,t,n);else if(Array.isArray(r))for(let n of r) $ J(e,t,n);else $ J(e,t,r)}function $ J(e,t,n){let r=eY (e,n);if(!W q(r))throw Error( ` Merge sources must be maps or map aliases ` );let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function eY (e,t){return e&&H q(t)?t.resolve(e.doc,e):t}function tY (e,t,{key:n,value:r}){if(Y q(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Z J(e,n))Q J(e,t,r);else{let i=pJ (n, ` ` ,e);if(t instanceof Map)t.set(i,pJ (r,i,e));else if(t instanceof Set)t.add(i);else{let a=nY (n,i,e),o=pJ (r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function nY (e,t,n){if(t===null)return ` ` ;if(typeof t!= ` object ` )return String(t);if(Y q(e)&&n?.doc){let t=U J(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+ ` ... " ` ),J J(n.doc.options.logLevel, ` Keys with collection values will be stringified due to JS Object restrictions : $ { e } . Set mapAsMap : true to use object keys . ` ),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function rY (e,t,n){return new iY(x J(e,void 0,n),x J(t,void 0,n))}var iY =class e{constructor(e,t=null){Object.defineProperty(this,V q,{value:R q}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return Y q(n)&&(n=n.clone(t)),Y q(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return tY (t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?q J(this,e,t,n):JSON.stringify(this)}};function aY (e,t,n){return(t.inFlow??e.flow?sY:oY )(e,t,n)}function oY ({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(Y q(i))!d&&i.spaceBefore&&f.push( ` ` ),cY (n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(G q(i)){let e=Y q(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push( ` ` ),cY (n,f,e.commentBefore,d))}d=!1;let s=K J(i,u,()=>o=null,()=>d=!0);o&&(s+=D J(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t? ` \ n$ { c } $ { t } ` : `
` }}return e?(p+= `
` +d J(l(e),c),s&&s()):d&&o&&o(),p}function KJ ({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(P q(i))i.spaceBefore&&d.push( ` ` ),qJ (t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(A q(i)){let e=P q(i.key)?i.key:null;e&&(e.spaceBefore&&d.push( ` ` ),qJ (t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=P q(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=j J(i,c,()=>a=null);l||=d.length>u||o.includes( `
` ),n<e.length-1?o+= ` , ` :t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+= ` , ` )),a&&(o+=f J(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t? ` \ n$ { a } $ { i } $ { t } ` : `
` ;return ` $ { e } \ n$ { i } $ { p } ` }return ` $ { f } $ { o } $ { d . join ( ` ` ) } $ { o } $ { p } ` }function qJ({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^ \n +/, ` ` )),r){let i=dJ(t(r),e);n.push(i.trimStart())}}function JJ(e,t){let n=jq(t)?t.value:t;for(let r of e)if(Aq(r)&&(r.key===t||r.key===n||jq(r.key)&&r.key.value===n))return r}var YJ=class extends lJ{static get tagName(){return ` tag : yaml . org , 2002 : map ` }constructor(e){super(Sq,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i== ` function ` )o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(HJ(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t== ` object ` )for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries== ` function ` &&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=Aq(e)?e:!e||typeof e!= ` object ` ||!( ` key ` in e)?new UJ(e,e?.value):new UJ(e.key,e.value);let r=JJ(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error( ` Key $ { n . key } already set ` );jq(r.value)&&nJ(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=JJ(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=JJ(this.items,e)?.value;return(!t&&jq(n)?n.value:n)??void 0}has(e){return!!JJ(this.items,e)}set(e,t){this.add(new UJ(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)BJ(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Aq(e))throw Error( ` Map items must all be pairs ; found $ { JSON . stringify ( e ) } instead ` );return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),WJ(this,e,{blockItemPrefix: ` ` ,flowChars:{start: ` { ` ,end: ` } ` },itemIndent:e.indent|| ` ` ,onChompKeep:n,onComment:t})}},XJ={collection: ` map ` ,default:!0,nodeClass:YJ,tag: ` tag : yaml . org , 2002 : map ` ,resolve(e,t){return kq(e)||t( ` Expected a mapping for this tag ` ),e},createNode:(e,t,n)=>YJ.from(e,t,n)},ZJ=class extends lJ{static get tagName(){return ` tag : yaml . org , 2002 : seq ` }constructor(e){super(Tq,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=QJ(e);return typeof t== ` number ` &&this.items.splice(t,1).length>0}get(e,t){let n=QJ(e);if(typeof n!= ` number ` )return;let r=this.items[n];return!t&&jq(r)?r.value:r}has(e){let t=QJ(e);return typeof t== ` number ` &&t<this.items.length}set(e,t){let n=QJ(e);if(typeof n!= ` number ` )throw Error( ` Expected a valid index , not $ { e } . ` );let r=this.items[n];jq(r)&&nJ(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Qq(e,String(r++),t));return n}toString(e,t,n){return e?WJ(this,e,{blockItemPrefix: ` - ` ,flowChars:{start: ` [ ` ,end: ` ] ` },itemIndent:(e.indent|| ` ` )+ ` ` ,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r== ` function ` ){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(oJ(a,void 0,n))}}return i}};function QJ(e){let t=jq(e)?e.value:e;return t&&typeof t== ` string ` &&(t=Number(t)),typeof t== ` number ` &&Number.isInteger(t)&&t>=0?t:null}var $ J={collection: ` seq ` ,default:!0,nodeClass:ZJ,tag: ` tag : yaml . org , 2002 : seq ` ,resolve(e,t){return Mq(e)||t( ` Expected a sequence for this tag ` ),e},createNode:(e,t,n)=>ZJ.from(e,t,n)},eY={identify:e=>typeof e== ` string ` ,default:!0,tag: ` tag : yaml . org , 2002 : str ` ,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),DJ(e,t,n,r)}},tY={identify:e=>e==null,createNode:()=>new rJ(null),default:!0,tag: ` tag : yaml . org , 2002 : null ` ,test:/^(?:~|[Nn]ull|NULL)? $ /,resolve:()=>new rJ(null),stringify:({source:e},t)=>typeof e== ` string ` &&tY.test.test(e)?e:t.options.nullStr},nY={identify:e=>typeof e== ` boolean ` ,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE) $ /,resolve:e=>new rJ(e[0]=== ` t ` ||e[0]=== ` T ` ),stringify({source:e,value:t},n){return e&&nY.test.test(e)&&t===(e[0]=== ` t ` ||e[0]=== ` T ` )?e:t?n.options.trueStr:n.options.falseStr}};function rY({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r== ` bigint ` )return String(r);let i=typeof r== ` number ` ?r:Number(r);if(!isFinite(i))return isNaN(i)? ` . nan ` :i<0? ` - . inf ` : ` . inf ` ;let a=Object.is(r,-0)? ` - 0 ` :JSON.stringify(r);if(!e&&t&&(!n||n=== ` tag : yaml . org , 2002 : float ` )&&/^-? \d /.test(a)&&!a.includes( ` e ` )){let e=a.indexOf( ` . ` );e<0&&(e=a.length,a+= ` . ` );let n=t-(a.length-e-1);for(;n-->0;)a+= ` 0 ` }return a}var iY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^(?:[-+]? \. (?:inf|Inf|INF)| \. nan| \. NaN| \. NAN) $ /,resolve:e=>e.slice(-3).toLowerCase()=== ` nan ` ?NaN:e[0]=== ` - ` ?-1/0:1/0,stringify:rY},aY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,format: ` EXP ` ,test:/^[-+]?(?: \. [0-9]+|[0-9]+(?: \. [0-9]*)?)[eE][-+]?[0-9]+ $ /,resolve:e=>parseFloat(e),string
Line truncated
` : ` ` )}return DJ({comment:e,type:t,value:s},r,i,a)}};function yY(e,t){if(Mq(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Aq(r)){if(kq(r)){r.items.length>1&&t( ` Each pair must have its own sequence indicator ` );let e=r.items[0]||new UJ(new rJ(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore? ` $ { r . commentBefore } \ n$ { e . key . commentBefore } ` :r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment? ` $ { r . comment } \ n$ { t . comment } ` :r.comment}r=e}e.items[n]=Aq(r)?r:new UJ(r)}}else t( ` Expected a sequence for this tag ` );return e}function bY(e,t,n){let{replacer:r}=n,i=new ZJ(e);i.tag= ` tag : yaml . org , 2002 : pairs ` ;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r== ` function ` &&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError( ` Expected [ key , value ] tuple : $ { e } ` )}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError( ` Expected tuple with one key , not $ { t . length } keys ` )}else o=e;i.items.push(HJ(o,s,n))}return i}var xY={collection: ` seq ` ,default:!1,tag: ` tag : yaml . org , 2002 : pairs ` ,resolve:yY,createNode:bY},SY=class e extends ZJ{constructor(){super(),this.add=YJ.prototype.add.bind(this),this.delete=YJ.prototype.delete.bind(this),this.get=YJ.prototype.get.bind(this),this.has=YJ.prototype.has.bind(this),this.set=YJ.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(Aq(e)?(r=Qq(e.key, ` ` ,t),i=Qq(e.value,r,t)):r=Qq(e, ` ` ,t),n.has(r))throw Error( ` Ordered maps must not include duplicate keys ` );n.set(r,i)}return n}static from(e,t,n){let r=bY(e,t,n),i=new this;return i.items=r.items,i}};SY.tag= ` tag : yaml . org , 2002 : omap ` ;var CY={collection: ` seq ` ,identify:e=>e instanceof Map,nodeClass:SY,default:!1,tag: ` tag : yaml . org , 2002 : omap ` ,resolve(e,t){let n=yY(e,t),r=[];for(let{key:e}of n.items)jq(e)&&(r.includes(e.value)?t( ` Ordered maps must not include duplicate keys : $ { e . value } ` ):r.push(e.value));return Object.assign(new SY,n)},createNode:(e,t,n)=>SY.from(e,t,n)};function wY({value:e,source:t},n){return t&&(e?TY:EY).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var TY={identify:e=>e===!0,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON) $ /,resolve:()=>new rJ(!0),stringify:wY},EY={identify:e=>e===!1,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF) $ /,resolve:()=>new rJ(!1),stringify:wY},DY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^(?:[-+]? \. (?:inf|Inf|INF)| \. nan| \. NaN| \. NAN) $ /,resolve:e=>e.slice(-3).toLowerCase()=== ` nan ` ?NaN:e[0]=== ` - ` ?-1/0:1/0,stringify:rY},OY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,format: ` EXP ` ,test:/^[-+]?(?:[0-9][0-9_]*)?(?: \. [0-9_]*)?[eE][-+]?[0-9]+ $ /,resolve:e=>parseFloat(e.replace(/_/g, ` ` )),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():rY(e)}},kY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^[-+]?(?:[0-9][0-9_]*)? \. [0-9_]* $ /,resolve(e){let t=new rJ(parseFloat(e.replace(/_/g, ` ` ))),n=e.indexOf( ` . ` );if(n!==-1){let r=e.substring(n+1).replace(/_/g, ` ` );r[r.length-1]=== ` 0 ` &&(t.minFractionDigits=r.length)}return t},stringify:rY},AY=e=>typeof e== ` bigint ` ||Number.isInteger(e);function jY(e,t,n,{intAsBigInt:r}){let i=e[0];if((i=== ` - ` ||i=== ` + ` )&&(t+=1),e=e.substring(t).replace(/_/g, ` ` ),r){switch(n){case 2:e= ` 0 b$ { e } ` ;break;case 8:e= ` 0 o$ { e } ` ;break;case 16:e= ` 0 x$ { e } ` }let t=BigInt(e);return i=== ` - ` ?BigInt(-1)*t:t}let a=parseInt(e,n);return i=== ` - ` ?-1*a:a}function MY(e,t,n){let{value:r}=e;if(AY(r)){let e=r.toString(t);return r<0? ` - ` +n+e.substr(1):n+e}return rY(e)}var NY={identify:AY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` BIN ` ,test:/^[-+]?0b[0-1_]+ $ /,resolve:(e,t,n)=>jY(e,2,2,n),stringify:e=>MY(e,2, ` 0 b ` )},PY={identify:AY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` OCT ` ,test:/^[-+]?0[0-7_]+ $ /,resolve:(e,t,n)=>jY(e,1,8,n),stringify:e=>MY(e,8, ` 0 ` )},FY={identify:AY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,test:/^[-+]?[0-9][0-9_]* $ /,resolve:(e,t,n)=>jY(e,0,10,n),stringify:rY},IY={identify:AY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` HEX ` ,test:/^[-+]?0x[0-9a-fA-F_]+ $ /,resolve:(e,t,n)=>jY(e,2,16,n),stringify:e=>MY(e,16, ` 0 x ` )},LY=class e extends YJ{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=Aq(e)?e:e&&typeof e== ` object ` && ` key ` in e&& ` value ` in e&&e.value===null?new UJ(e.key,null):new UJ(e,null),JJ(this.items,t.key)||this.items.push(t)}get(e,t){let n=JJ(this.items,e);return!t&&Aq(n)?jq(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!= ` boolean ` )throw Error( ` Expected boolean value for set ( key , value ) in a YAML set , not $ { typeof t } ` );let n=JJ(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new UJ(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return s
Line truncated
` )?(n.push( ` ... ` ),n.push(d J(t, ` ` ))):n.push( ` ... $ { t } ` )}else n.push( ` ... ` )}else{let t=e.comment;t&&o&&(t=t.replace(/^ \n +/, ` ` )),t&&((!o||s)&&n[n.length-1]!== ` ` &&n.push( ` ` ),n.push(d J(a(t), ` ` )))}return n.join( `
` +E J(l(e),c),s&&s()):d&&o&&o(),p}function sY ({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(Y q(i))i.spaceBefore&&d.push( ` ` ),cY (t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(G q(i)){let e=Y q(i.key)?i.key:null;e&&(e.spaceBefore&&d.push( ` ` ),cY (t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=Y q(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=K J(i,c,()=>a=null);l||=d.length>u||o.includes( `
` ),n<e.length-1?o+= ` , ` :t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+= ` , ` )),a&&(o+=D J(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t? ` \ n$ { a } $ { i } $ { t } ` : `
` ;return ` $ { e } \ n$ { i } $ { p } ` }return ` $ { f } $ { o } $ { d . join ( ` ` ) } $ { o } $ { p } ` }function cY({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^ \n +/, ` ` )),r){let i=EJ(t(r),e);n.push(i.trimStart())}}function lY(e,t){let n=Kq(t)?t.value:t;for(let r of e)if(Gq(r)&&(r.key===t||r.key===n||Kq(r.key)&&r.key.value===n))return r}var uY=class extends wJ{static get tagName(){return ` tag : yaml . org , 2002 : map ` }constructor(e){super(Lq,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i== ` function ` )o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(rY(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t== ` object ` )for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries== ` function ` &&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=Gq(e)?e:!e||typeof e!= ` object ` ||!( ` key ` in e)?new iY(e,e?.value):new iY(e.key,e.value);let r=lY(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error( ` Key $ { n . key } already set ` );Kq(r.value)&&_J(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=lY(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=lY(this.items,e)?.value;return(!t&&Kq(n)?n.value:n)??void 0}has(e){return!!lY(this.items,e)}set(e,t){this.add(new iY(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)tY(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Gq(e))throw Error( ` Map items must all be pairs ; found $ { JSON . stringify ( e ) } instead ` );return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),aY(this,e,{blockItemPrefix: ` ` ,flowChars:{start: ` { ` ,end: ` } ` },itemIndent:e.indent|| ` ` ,onChompKeep:n,onComment:t})}},dY={collection: ` map ` ,default:!0,nodeClass:uY,tag: ` tag : yaml . org , 2002 : map ` ,resolve(e,t){return Wq(e)||t( ` Expected a mapping for this tag ` ),e},createNode:(e,t,n)=>uY.from(e,t,n)},fY=class extends wJ{static get tagName(){return ` tag : yaml . org , 2002 : seq ` }constructor(e){super(Bq,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=pY(e);return typeof t== ` number ` &&this.items.splice(t,1).length>0}get(e,t){let n=pY(e);if(typeof n!= ` number ` )return;let r=this.items[n];return!t&&Kq(r)?r.value:r}has(e){let t=pY(e);return typeof t== ` number ` &&t<this.items.length}set(e,t){let n=pY(e);if(typeof n!= ` number ` )throw Error( ` Expected a valid index , not $ { e } . ` );let r=this.items[n];Kq(r)&&_J(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(pJ(e,String(r++),t));return n}toString(e,t,n){return e?aY(this,e,{blockItemPrefix: ` - ` ,flowChars:{start: ` [ ` ,end: ` ] ` },itemIndent:(e.indent|| ` ` )+ ` ` ,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r== ` function ` ){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(xJ(a,void 0,n))}}return i}};function pY(e){let t=Kq(e)?e.value:e;return t&&typeof t== ` string ` &&(t=Number(t)),typeof t== ` number ` &&Number.isInteger(t)&&t>=0?t:null}var mY={collection: ` seq ` ,default:!0,nodeClass:fY,tag: ` tag : yaml . org , 2002 : seq ` ,resolve(e,t){return qq(e)||t( ` Expected a sequence for this tag ` ),e},createNode:(e,t,n)=>fY.from(e,t,n)},hY={identify:e=>typeof e== ` string ` ,default:!0,tag: ` tag : yaml . org , 2002 : str ` ,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),HJ(e,t,n,r)}},gY={identify:e=>e==null,createNode:()=>new vJ(null),default:!0,tag: ` tag : yaml . org , 2002 : null ` ,test:/^(?:~|[Nn]ull|NULL)? $ /,resolve:()=>new vJ(null),stringify:({source:e},t)=>typeof e== ` string ` &&gY.test.test(e)?e:t.options.nullStr},_Y={identify:e=>typeof e== ` boolean ` ,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE) $ /,resolve:e=>new vJ(e[0]=== ` t ` ||e[0]=== ` T ` ),stringify({source:e,value:t},n){return e&&_Y.test.test(e)&&t===(e[0]=== ` t ` ||e[0]=== ` T ` )?e:t?n.options.trueStr:n.options.falseStr}};function vY({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r== ` bigint ` )return String(r);let i=typeof r== ` number ` ?r:Number(r);if(!isFinite(i))return isNaN(i)? ` . nan ` :i<0? ` - . inf ` : ` . inf ` ;let a=Object.is(r,-0)? ` - 0 ` :JSON.stringify(r);if(!e&&t&&(!n||n=== ` tag : yaml . org , 2002 : float ` )&&/^-? \d /.test(a)&&!a.includes( ` e ` )){let e=a.indexOf( ` . ` );e<0&&(e=a.length,a+= ` . ` );let n=t-(a.length-e-1);for(;n-->0;)a+= ` 0 ` }return a}var yY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^(?:[-+]? \. (?:inf|Inf|INF)| \. nan| \. NaN| \. NAN) $ /,resolve:e=>e.slice(-3).toLowerCase()=== ` nan ` ?NaN:e[0]=== ` - ` ?-1/0:1/0,stringify:vY},bY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,format: ` EXP ` ,test:/^[-+]?(?: \. [0-9]+|[0-9]+(?: \. [0-9]*)?)[eE][-+]?[0-9]+ $ /,resolve:e=>parseFloat(e),string
Line truncated
` : ` ` )}return HJ({comment:e,type:t,value:s},r,i,a)}};function PY(e,t){if(qq(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Gq(r)){if(Wq(r)){r.items.length>1&&t( ` Each pair must have its own sequence indicator ` );let e=r.items[0]||new iY(new vJ(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore? ` $ { r . commentBefore } \ n$ { e . key . commentBefore } ` :r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment? ` $ { r . comment } \ n$ { t . comment } ` :r.comment}r=e}e.items[n]=Gq(r)?r:new iY(r)}}else t( ` Expected a sequence for this tag ` );return e}function FY(e,t,n){let{replacer:r}=n,i=new fY(e);i.tag= ` tag : yaml . org , 2002 : pairs ` ;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r== ` function ` &&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError( ` Expected [ key , value ] tuple : $ { e } ` )}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError( ` Expected tuple with one key , not $ { t . length } keys ` )}else o=e;i.items.push(rY(o,s,n))}return i}var IY={collection: ` seq ` ,default:!1,tag: ` tag : yaml . org , 2002 : pairs ` ,resolve:PY,createNode:FY},LY=class e extends fY{constructor(){super(),this.add=uY.prototype.add.bind(this),this.delete=uY.prototype.delete.bind(this),this.get=uY.prototype.get.bind(this),this.has=uY.prototype.has.bind(this),this.set=uY.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(Gq(e)?(r=pJ(e.key, ` ` ,t),i=pJ(e.value,r,t)):r=pJ(e, ` ` ,t),n.has(r))throw Error( ` Ordered maps must not include duplicate keys ` );n.set(r,i)}return n}static from(e,t,n){let r=FY(e,t,n),i=new this;return i.items=r.items,i}};LY.tag= ` tag : yaml . org , 2002 : omap ` ;var RY={collection: ` seq ` ,identify:e=>e instanceof Map,nodeClass:LY,default:!1,tag: ` tag : yaml . org , 2002 : omap ` ,resolve(e,t){let n=PY(e,t),r=[];for(let{key:e}of n.items)Kq(e)&&(r.includes(e.value)?t( ` Ordered maps must not include duplicate keys : $ { e . value } ` ):r.push(e.value));return Object.assign(new LY,n)},createNode:(e,t,n)=>LY.from(e,t,n)};function zY({value:e,source:t},n){return t&&(e?BY:VY).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var BY={identify:e=>e===!0,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON) $ /,resolve:()=>new vJ(!0),stringify:zY},VY={identify:e=>e===!1,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF) $ /,resolve:()=>new vJ(!1),stringify:zY},HY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^(?:[-+]? \. (?:inf|Inf|INF)| \. nan| \. NaN| \. NAN) $ /,resolve:e=>e.slice(-3).toLowerCase()=== ` nan ` ?NaN:e[0]=== ` - ` ?-1/0:1/0,stringify:vY},UY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,format: ` EXP ` ,test:/^[-+]?(?:[0-9][0-9_]*)?(?: \. [0-9_]*)?[eE][-+]?[0-9]+ $ /,resolve:e=>parseFloat(e.replace(/_/g, ` ` )),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():vY(e)}},WY={identify:e=>typeof e== ` number ` ,default:!0,tag: ` tag : yaml . org , 2002 : float ` ,test:/^[-+]?(?:[0-9][0-9_]*)? \. [0-9_]* $ /,resolve(e){let t=new vJ(parseFloat(e.replace(/_/g, ` ` ))),n=e.indexOf( ` . ` );if(n!==-1){let r=e.substring(n+1).replace(/_/g, ` ` );r[r.length-1]=== ` 0 ` &&(t.minFractionDigits=r.length)}return t},stringify:vY},GY=e=>typeof e== ` bigint ` ||Number.isInteger(e);function KY(e,t,n,{intAsBigInt:r}){let i=e[0];if((i=== ` - ` ||i=== ` + ` )&&(t+=1),e=e.substring(t).replace(/_/g, ` ` ),r){switch(n){case 2:e= ` 0 b$ { e } ` ;break;case 8:e= ` 0 o$ { e } ` ;break;case 16:e= ` 0 x$ { e } ` }let t=BigInt(e);return i=== ` - ` ?BigInt(-1)*t:t}let a=parseInt(e,n);return i=== ` - ` ?-1*a:a}function qY(e,t,n){let{value:r}=e;if(GY(r)){let e=r.toString(t);return r<0? ` - ` +n+e.substr(1):n+e}return vY(e)}var JY={identify:GY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` BIN ` ,test:/^[-+]?0b[0-1_]+ $ /,resolve:(e,t,n)=>KY(e,2,2,n),stringify:e=>qY(e,2, ` 0 b ` )},YY={identify:GY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` OCT ` ,test:/^[-+]?0[0-7_]+ $ /,resolve:(e,t,n)=>KY(e,1,8,n),stringify:e=>qY(e,8, ` 0 ` )},XY={identify:GY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,test:/^[-+]?[0-9][0-9_]* $ /,resolve:(e,t,n)=>KY(e,0,10,n),stringify:vY},ZY={identify:GY,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` HEX ` ,test:/^[-+]?0x[0-9a-fA-F_]+ $ /,resolve:(e,t,n)=>KY(e,2,16,n),stringify:e=>qY(e,16, ` 0 x ` )},QY=class e extends uY{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=Gq(e)?e:e&&typeof e== ` object ` && ` key ` in e&& ` value ` in e&&e.value===null?new iY(e.key,null):new iY(e,null),lY(this.items,t.key)||this.items.push(t)}get(e,t){let n=lY(this.items,e);return!t&&Gq(n)?Kq(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!= ` boolean ` )throw Error( ` Expected boolean value for set ( key , value ) in a YAML set , not $ { typeof t } ` );let n=lY(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new iY(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return s
Line truncated
` )?(n.push( ` ... ` ),n.push(E J(t, ` ` ))):n.push( ` ... $ { t } ` )}else n.push( ` ... ` )}else{let t=e.comment;t&&o&&(t=t.replace(/^ \n +/, ` ` )),t&&((!o||s)&&n[n.length-1]!== ` ` &&n.push( ` ` ),n.push(E J(a(t), ` ` )))}return n.join( `
` )+ `
` }var QY =class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,E q,{value:x q});let r=null;typeof t== ` function ` ||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel: ` warn ` ,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version: ` 1.2 ` },n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Kq ({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[E q]:{value:x q}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=P q(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){ $ Y (this.contents)&&this.contents.add(e)}addIn(e,t){$ Y (this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Jq (this);e.anchor=!t||n.has(t)?Yq (t||` a ` ,n):t}return new e J(e.anchor)}createNode(e,t,n){let r;if(typeof t== ` function ` )e=t.call({"":e}, ` ` ,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e== ` number ` ||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Xq (this,a|| ` a ` ),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=o J(e,l,p);return o&&N q(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new UJ (this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return $ Y (this.contents)?this.contents.delete(e):!1}deleteIn(e){return c J(e)?this.contents!=null&&(this.contents=null,!0):$ Y (this.contents)?this.contents.deleteIn(e):!1}get(e,t){return N q(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return c J(e)?!t&&j q(this.contents)?this.contents.value:this.contents:N q(this.contents)?this.contents.getIn(e,t):void 0}has(e){return N q(this.contents)?this.contents.has(e):!1}hasIn(e){return c J(e)?this.contents!==void 0:N q(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=s J(this.schema,[e],t):$ Y (this.contents)&&this.contents.set(e,t)}setIn(e,t){c J(e)?this.contents=t:this.contents==null?this.contents=s J(this.schema,Array.from(e),t):$ Y (this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==` number ` &&(e=String(e));let n;switch(e){case ` 1.1 ` :this.directives?this.directives.yaml.version= ` 1.1 ` :this.directives=new Kq ({version: ` 1.1 ` }),n={resolveKnownTags:!1,schema: ` yaml - 1.1 ` };break;case ` 1.2 ` :case ` next ` :this.directives?this.directives.yaml.version=e:this.directives=new Kq ({version:e}),n={resolveKnownTags:!0,schema: ` core ` };break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error( ` Expected '1.1' , '1.2' or null as first argument , but found : $ { t } ` )}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new XY (Object.assign(n,t));else throw Error( ` With a null YAML version , the { schema : Schema } option is required ` )}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r== ` number ` ?r:100},s=Qq (this.contents,t?? ` ` ,o);if(typeof i== ` function ` )for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a== ` function ` ?Zq (a,{"":s}, ` ` ,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error( ` Document with errors cannot be stringified ` );if( ` indent ` in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error( ` "indent" option must be a positive integer , not $ { t } ` )}return ZY (this,e)}};function $ Y (e){if(N q(e))return!0;throw Error(` Expected a YAML collection as document contents ` )}var e X=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},t X=class extends e X{constructor(e,t,n){super( ` YAMLParseError ` ,e,t,n)}},n X=class extends e X{constructor(e,t,n){super( ` YAMLWarning ` ,e,t,n)}},r X=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+= ` at line $ { r } , column $ { i } ` ;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[ \n \r ]+ $ /, ` ` );if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o= ` … ` +o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+ ` … ` ),r>1&&/^ * $ /.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+ ` …
` ),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s= ` ` .repeat(a)+ ` ^ ` .repeat(e);n.message+= ` : \ n \ n$ { o } \ n$ { s } \ n ` }};function i X(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d= ` ` ,f= ` ` ,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!== ` space ` &&i.type!== ` newline ` &&i.type!== ` comma ` &&a(i.offset, ` MISSING _CHAR ` , ` Tags and anchors must be separated from the next token by white space ` ),!1),h&&=(l&&i.type!== ` comment ` &&i.type!== ` newline ` &&a(h, ` TAB _AS _INDENT ` , ` Tabs are not allowed as indentation ` ),null),i.type){case ` space ` :!t&&(n!== ` doc - start ` ||r?.type!== ` flow - collection ` )&&i.source.includes( ` ` )&&(h=i),u=!0;break;case ` comment ` :{u||a(i, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` );let e=i.source.substring(1)|| ` ` ;d?d+=f+e:d=e,f= ` ` ,l=!1;break}case ` newline ` :l?d?d+=i.source:(!b||n!== ` seq - item - ind ` )&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case ` anchor ` :g&&a(i, ` MULTIPLE _ANCHORS ` , ` A node can have at most one anchor ` ),i.source.endsWith( ` : ` )&&a(i.offset+i.source.length-1, ` BAD _ALIAS ` , ` Anchor ending in : is ambiguous ` ,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case ` tag ` :_&&a(i, ` MULTIPLE _TAGS ` , ` A node can have at most one tag ` ),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i, ` BAD _PROP _ORDER ` , ` Anchors and tags must be after the $ { i . source } indicator ` ),b&&a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { i . source } in $ { t ? ? ` collection ` } ` ),b=i,l=n=== ` seq - item - ind ` ||n=== ` explicit - key - ind ` ,u=!1;break;case ` comma ` :if(t){y&&a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { t } ` ),y=i,l=!1,u=!1;break}default:a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { i . type } token ` ),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!== ` space ` &&r.type!== ` newline ` &&r.type!== ` comma ` &&(r.type!== ` scalar ` ||r.source!== ` ` )&&a(r.offset, ` MISSING _CHAR ` , ` Tags and anchors must be separated from the next token by white space ` ),h&&(l&&h.indent<=o||r?.type=== ` block - map ` ||r?.type=== ` block - seq ` )&&a(h, ` TAB _AS _INDENT ` , ` Tabs are not allowed as indentation ` ),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function a X(e){if(!e)return null;switch(e.type){case ` alias ` :case ` scalar ` :case ` double - quoted - scalar ` :case ` single - quoted - scalar ` :if(e.source.includes( `
` ))return!0;if(e.end){for(let t of e.end)if(t.type=== ` newline ` )return!0}return!1;case ` flow - collection ` :for(let t of e.items){for(let e of t.start)if(e.type=== ` newline ` )return!0;if(t.sep){for(let e of t.sep)if(e.type=== ` newline ` )return!0}if(a X(t.key)||a X(t.value))return!0}return!1;default:return!0}}function o X(e,t,n){if(t?.type=== ` flow - collection ` ){let r=t.end[0];r.indent===e&&(r.source=== ` ] ` ||r.source=== ` } ` )&&a X(t)&&n(r, ` BAD _INDENT ` , ` Flow end indicator should be more indented than parent ` ,!0)}}function s X(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r== ` function ` ?r:(e,t)=>e===t||j q(e)&&j q(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var c X= ` All mapping items must start at the same column ` ;function l X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??YJ )(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=i X(l,{indicator: ` explicit - key - ind ` ,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type=== ` block - seq ` ?i(s, ` BLOCK _AS _IMPLICIT _KEY ` , ` A block sequence may not be used as an implicit map key ` ): ` indent ` in u&&u.indent!==r.indent&&i(s, ` BAD _INDENT ` ,c X)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+= `
` +p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||a X(u))&&i(u??l[l.length-1], ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys need to be on a single line ` )}else p.found?.indent!==r.indent&&i(s, ` BAD _INDENT ` ,c X);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&o X(r.indent,u,i),n.atKey=!1,s X(n,o.items,g)&&i(h, ` DUPLICATE _KEY ` , ` Map keys must be unique ` );let _=i X(d??[],{indicator: ` map - value - ind ` ,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type=== ` block - scalar ` });if(s=_.end,_.found){m&&(f?.type=== ` block - map ` &&!_.hasNewline&&i(s, ` BLOCK _AS _IMPLICIT _KEY ` , ` Nested mappings are not allowed in compact mappings ` ),n.options.strict&&p.start<_.found.offset-1024&&i(g.range, ` KEY _OVER _1024 _CHARS ` , ` The : indicator must be at most 1024 chars after the start of an implicit block mapping key ` ));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&o X(r.indent,f,i),s=c.range[2];let l=new UJ (g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range, ` MISSING _CHAR ` , ` Implicit map keys need to be followed by map values ` ),_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let e=new UJ (g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c, ` IMPOSSIBLE ` , ` Map comment with trailing content ` ),o.range=[r.offset,s,c??s],o}function u X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??ZJ )(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=i X(a,{indicator: ` seq - item - ind ` ,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type=== ` block - seq ` ?i(u.end, ` BAD _INDENT ` , ` All sequence items must start at the same column ` ):i(s, ` MISSING _CHAR ` , ` Sequence item without - indicator ` );else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&o X(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function d X(e,t,n,r){let i= ` ` ;if(e){let a=!1,o= ` ` ;for(let s of e){let{source:e,type:c}=s;switch(c){case ` space ` :a=!0;break;case ` comment ` :{n&&!a&&r(s, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` );let t=e.substring(1)|| ` ` ;i?i+=o+t:i=t,o= ` ` ;break}case ` newline ` :i&&(o+=e),a=!0;break;default:r(s, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { c } at node end ` )}t+=e.length}}return{comment:i,offset:t}}var f X= ` Block collections are not allowed within flow collections ` ,p X=e=>e&&(e.type=== ` block - map ` ||e.type=== ` block - seq ` );function m X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source=== ` { ` ,s=o? ` flow map ` : ` flow sequence ` ,c=new((a?.nodeClass)??(o?YJ:ZJ ))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=i X(d,{flow:s,indicator: ` explicit - key - ind ` ,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { s } ` ):a<r.items.length-1&&i(h.start, ` UNEXPECTED _TOKEN ` , ` Unexpected empty item in $ { s } ` ),h.comment&&(c.comment?c.comment+= `
` +h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&a X(f)&&i(f, ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys of flow sequence pairs need to be on a single line ` )}if(a===0)h.comma&&i(h.comma, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { s } ` );else if(h.comma||i(h.start, ` MISSING _CHAR ` , ` Missing , between $ { s } items ` ),h.comment){let e= ` ` ;loop:for(let t of d)switch(t.type){case ` comma ` :case ` space ` :break;case ` comment ` :e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];A q(t)&&(t=t.value??t.key),t.comment?t.comment+= `
` +e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],p X(m)&&i(r.range, ` BLOCK _IN _FLOW ` ,f X)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);p X(f)&&i(g.range, ` BLOCK _IN _FLOW ` ,f X),n.atKey=!1;let _=i X(p??[],{flow:s,indicator: ` map - value - ind ` ,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type=== ` newline ` ){i(e, ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys of flow sequence pairs need to be on a single line ` );break}}h.start<_.found.offset-1024&&i(_.found, ` KEY _OVER _1024 _CHARS ` , ` The : indicator must be at most 1024 chars after the start of an implicit flow sequence key ` )}}else m&&( ` source ` in m&&m.source?.[0]=== ` : ` ?i(m, ` MISSING _CHAR ` , ` Missing space after : in $ { s } ` ):i(_.start, ` MISSING _CHAR ` , ` Missing , or : between $ { s } items ` ));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?p X(m)&&i(v.range, ` BLOCK _IN _FLOW ` ,f X):_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let y=new UJ (g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;s X(n,e.items,g)&&i(a, ` DUPLICATE _KEY ` , ` Map keys must be unique ` ),e.items.push(y)}else{let e=new YJ (n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o? ` } ` : ` ] ` ,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l? ` $ { e } must end with a $ { d } ` : ` $ { e } in block collection must be sufficiently indented and end with a $ { d } ` ;i(u,l? ` MISSING _CHAR ` : ` BAD _INDENT ` ,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=d X(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+= `
` +e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function h X(e,t,n,r,i,a){let o=n.type=== ` block - map ` ?l X(e,t,n,r,a):n.type=== ` block - seq ` ?u X(e,t,n,r,a):m X(e,t,n,r,a),s=o.constructor;return i=== ` ! ` ||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function g X(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e)):null;if(n.type=== ` block - seq ` ){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n, ` MISSING _CHAR ` , ` Missing newline after block sequence props ` )}let s=n.type=== ` block - map ` ? ` map ` :n.type=== ` block - seq ` ? ` seq ` :n.start.source=== ` { ` ? ` map ` : ` seq ` ;if(!a||!o||o=== ` ! ` ||o===YJ .tagName&&s=== ` map ` ||o===ZJ .tagName&&s=== ` seq ` )return h X(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a, ` BAD _COLLECTION _TYPE ` , ` $ { r . tag } used for $ { s } collection , but expects $ { r . collection ? ? ` scalar ` } ` ,!0):i(a, ` TAG _RESOLVE _FAILED ` , ` Unresolved tag : $ { o } ` ,!0),h X(e,t,n,i,o)}let l=h X(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e),t.options)??l,d=P q(u)?u:new r J(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function _ X(e,t,n){let r=t.offset,i=vX (t,e.options.strict,n);if(!i)return{value: ` ` ,type:null,comment: ` ` ,range:[r,r,r]};let a=i.mode=== ` > ` ?r J.BLOCK_FOLDED:r J.BLOCK_LITERAL,o=t.source?y X(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t=== ` ` ||t=== ` \ r ` )s=e;else break}if(s===0){let e=i.chomp=== ` + ` &&o.length>0? `
` }var pX =class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,V q,{value:I q});let r=null;typeof t== ` function ` ||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel: ` warn ` ,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version: ` 1.2 ` },n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new sJ ({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[V q]:{value:I q}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Y q(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){mX (this.contents)&&this.contents.add(e)}addIn(e,t){mX (this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=l J(this);e.anchor=!t||n.has(t)?uJ (t|| ` a ` ,n):t}return new h J(e.anchor)}createNode(e,t,n){let r;if(typeof t== ` function ` )e=t.call({"":e}, ` ` ,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e== ` number ` ||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=dJ (this,a|| ` a ` ),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=x J(e,l,p);return o&&J q(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new iY (this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return mX (this.contents)?this.contents.delete(e):!1}deleteIn(e){return C J(e)?this.contents!=null&&(this.contents=null,!0):mX (this.contents)?this.contents.deleteIn(e):!1}get(e,t){return J q(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return C J(e)?!t&&K q(this.contents)?this.contents.value:this.contents:J q(this.contents)?this.contents.getIn(e,t):void 0}has(e){return J q(this.contents)?this.contents.has(e):!1}hasIn(e){return C J(e)?this.contents!==void 0:J q(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=S J(this.schema,[e],t):mX (this.contents)&&this.contents.set(e,t)}setIn(e,t){C J(e)?this.contents=t:this.contents==null?this.contents=S J(this.schema,Array.from(e),t):mX (this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e== ` number ` &&(e=String(e));let n;switch(e){case ` 1.1 ` :this.directives?this.directives.yaml.version= ` 1.1 ` :this.directives=new sJ ({version: ` 1.1 ` }),n={resolveKnownTags:!1,schema: ` yaml - 1.1 ` };break;case ` 1.2 ` :case ` next ` :this.directives?this.directives.yaml.version=e:this.directives=new sJ ({version:e}),n={resolveKnownTags:!0,schema: ` core ` };break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error( ` Expected '1.1' , '1.2' or null as first argument , but found : $ { t } ` )}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new d X(Object.assign(n,t));else throw Error( ` With a null YAML version , the { schema : Schema } option is required ` )}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r== ` number ` ?r:100},s=pJ (this.contents,t?? ` ` ,o);if(typeof i== ` function ` )for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a== ` function ` ?fJ (a,{"":s}, ` ` ,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error( ` Document with errors cannot be stringified ` );if( ` indent ` in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error( ` "indent" option must be a positive integer , not $ { t } ` )}return fX (this,e)}};function mX (e){if(J q(e))return!0;throw Error( ` Expected a YAML collection as document contents ` )}var h X=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},g X=class extends h X{constructor(e,t,n){super( ` YAMLParseError ` ,e,t,n)}},_ X=class extends h X{constructor(e,t,n){super( ` YAMLWarning ` ,e,t,n)}},v X=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+= ` at line $ { r } , column $ { i } ` ;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[ \n \r ]+ $ /, ` ` );if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o= ` … ` +o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+ ` … ` ),r>1&&/^ * $ /.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+ ` …
` ),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s= ` ` .repeat(a)+ ` ^ ` .repeat(e);n.message+= ` : \ n \ n$ { o } \ n$ { s } \ n ` }};function y X(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d= ` ` ,f= ` ` ,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!== ` space ` &&i.type!== ` newline ` &&i.type!== ` comma ` &&a(i.offset, ` MISSING _CHAR ` , ` Tags and anchors must be separated from the next token by white space ` ),!1),h&&=(l&&i.type!== ` comment ` &&i.type!== ` newline ` &&a(h, ` TAB _AS _INDENT ` , ` Tabs are not allowed as indentation ` ),null),i.type){case ` space ` :!t&&(n!== ` doc - start ` ||r?.type!== ` flow - collection ` )&&i.source.includes( ` ` )&&(h=i),u=!0;break;case ` comment ` :{u||a(i, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` );let e=i.source.substring(1)|| ` ` ;d?d+=f+e:d=e,f= ` ` ,l=!1;break}case ` newline ` :l?d?d+=i.source:(!b||n!== ` seq - item - ind ` )&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case ` anchor ` :g&&a(i, ` MULTIPLE _ANCHORS ` , ` A node can have at most one anchor ` ),i.source.endsWith( ` : ` )&&a(i.offset+i.source.length-1, ` BAD _ALIAS ` , ` Anchor ending in : is ambiguous ` ,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case ` tag ` :_&&a(i, ` MULTIPLE _TAGS ` , ` A node can have at most one tag ` ),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i, ` BAD _PROP _ORDER ` , ` Anchors and tags must be after the $ { i . source } indicator ` ),b&&a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { i . source } in $ { t ? ? ` collection ` } ` ),b=i,l=n=== ` seq - item - ind ` ||n=== ` explicit - key - ind ` ,u=!1;break;case ` comma ` :if(t){y&&a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { t } ` ),y=i,l=!1,u=!1;break}default:a(i, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { i . type } token ` ),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!== ` space ` &&r.type!== ` newline ` &&r.type!== ` comma ` &&(r.type!== ` scalar ` ||r.source!== ` ` )&&a(r.offset, ` MISSING _CHAR ` , ` Tags and anchors must be separated from the next token by white space ` ),h&&(l&&h.indent<=o||r?.type=== ` block - map ` ||r?.type=== ` block - seq ` )&&a(h, ` TAB _AS _INDENT ` , ` Tabs are not allowed as indentation ` ),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function b X(e){if(!e)return null;switch(e.type){case ` alias ` :case ` scalar ` :case ` double - quoted - scalar ` :case ` single - quoted - scalar ` :if(e.source.includes( `
` ))return!0;if(e.end){for(let t of e.end)if(t.type=== ` newline ` )return!0}return!1;case ` flow - collection ` :for(let t of e.items){for(let e of t.start)if(e.type=== ` newline ` )return!0;if(t.sep){for(let e of t.sep)if(e.type=== ` newline ` )return!0}if(b X(t.key)||b X(t.value))return!0}return!1;default:return!0}}function x X(e,t,n){if(t?.type=== ` flow - collection ` ){let r=t.end[0];r.indent===e&&(r.source=== ` ] ` ||r.source=== ` } ` )&&b X(t)&&n(r, ` BAD _INDENT ` , ` Flow end indicator should be more indented than parent ` ,!0)}}function S X(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r== ` function ` ?r:(e,t)=>e===t||K q(e)&&K q(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var C X= ` All mapping items must start at the same column ` ;function w X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??u Y)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=y X(l,{indicator: ` explicit - key - ind ` ,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type=== ` block - seq ` ?i(s, ` BLOCK _AS _IMPLICIT _KEY ` , ` A block sequence may not be used as an implicit map key ` ): ` indent ` in u&&u.indent!==r.indent&&i(s, ` BAD _INDENT ` ,C X)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+= `
` +p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||b X(u))&&i(u??l[l.length-1], ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys need to be on a single line ` )}else p.found?.indent!==r.indent&&i(s, ` BAD _INDENT ` ,C X);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&x X(r.indent,u,i),n.atKey=!1,S X(n,o.items,g)&&i(h, ` DUPLICATE _KEY ` , ` Map keys must be unique ` );let _=y X(d??[],{indicator: ` map - value - ind ` ,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type=== ` block - scalar ` });if(s=_.end,_.found){m&&(f?.type=== ` block - map ` &&!_.hasNewline&&i(s, ` BLOCK _AS _IMPLICIT _KEY ` , ` Nested mappings are not allowed in compact mappings ` ),n.options.strict&&p.start<_.found.offset-1024&&i(g.range, ` KEY _OVER _1024 _CHARS ` , ` The : indicator must be at most 1024 chars after the start of an implicit block mapping key ` ));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&x X(r.indent,f,i),s=c.range[2];let l=new iY (g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range, ` MISSING _CHAR ` , ` Implicit map keys need to be followed by map values ` ),_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let e=new iY (g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c, ` IMPOSSIBLE ` , ` Map comment with trailing content ` ),o.range=[r.offset,s,c??s],o}function T X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??fY )(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=y X(a,{indicator: ` seq - item - ind ` ,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type=== ` block - seq ` ?i(u.end, ` BAD _INDENT ` , ` All sequence items must start at the same column ` ):i(s, ` MISSING _CHAR ` , ` Sequence item without - indicator ` );else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&x X(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function E X(e,t,n,r){let i= ` ` ;if(e){let a=!1,o= ` ` ;for(let s of e){let{source:e,type:c}=s;switch(c){case ` space ` :a=!0;break;case ` comment ` :{n&&!a&&r(s, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` );let t=e.substring(1)|| ` ` ;i?i+=o+t:i=t,o= ` ` ;break}case ` newline ` :i&&(o+=e),a=!0;break;default:r(s, ` UNEXPECTED _TOKEN ` , ` Unexpected $ { c } at node end ` )}t+=e.length}}return{comment:i,offset:t}}var D X= ` Block collections are not allowed within flow collections ` ,O X=e=>e&&(e.type=== ` block - map ` ||e.type=== ` block - seq ` );function k X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source=== ` { ` ,s=o? ` flow map ` : ` flow sequence ` ,c=new((a?.nodeClass)??(o?uY:fY ))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=y X(d,{flow:s,indicator: ` explicit - key - ind ` ,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { s } ` ):a<r.items.length-1&&i(h.start, ` UNEXPECTED _TOKEN ` , ` Unexpected empty item in $ { s } ` ),h.comment&&(c.comment?c.comment+= `
` +h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&b X(f)&&i(f, ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys of flow sequence pairs need to be on a single line ` )}if(a===0)h.comma&&i(h.comma, ` UNEXPECTED _TOKEN ` , ` Unexpected , in $ { s } ` );else if(h.comma||i(h.start, ` MISSING _CHAR ` , ` Missing , between $ { s } items ` ),h.comment){let e= ` ` ;loop:for(let t of d)switch(t.type){case ` comma ` :case ` space ` :break;case ` comment ` :e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];G q(t)&&(t=t.value??t.key),t.comment?t.comment+= `
` +e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],O X(m)&&i(r.range, ` BLOCK _IN _FLOW ` ,D X)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);O X(f)&&i(g.range, ` BLOCK _IN _FLOW ` ,D X),n.atKey=!1;let _=y X(p??[],{flow:s,indicator: ` map - value - ind ` ,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type=== ` newline ` ){i(e, ` MULTILINE _IMPLICIT _KEY ` , ` Implicit keys of flow sequence pairs need to be on a single line ` );break}}h.start<_.found.offset-1024&&i(_.found, ` KEY _OVER _1024 _CHARS ` , ` The : indicator must be at most 1024 chars after the start of an implicit flow sequence key ` )}}else m&&( ` source ` in m&&m.source?.[0]=== ` : ` ?i(m, ` MISSING _CHAR ` , ` Missing space after : in $ { s } ` ):i(_.start, ` MISSING _CHAR ` , ` Missing , or : between $ { s } items ` ));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?O X(m)&&i(v.range, ` BLOCK _IN _FLOW ` ,D X):_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let y=new iY (g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;S X(n,e.items,g)&&i(a, ` DUPLICATE _KEY ` , ` Map keys must be unique ` ),e.items.push(y)}else{let e=new u Y(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o? ` } ` : ` ] ` ,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l? ` $ { e } must end with a $ { d } ` : ` $ { e } in block collection must be sufficiently indented and end with a $ { d } ` ;i(u,l? ` MISSING _CHAR ` : ` BAD _INDENT ` ,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=E X(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+= `
` +e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function A X(e,t,n,r,i,a){let o=n.type=== ` block - map ` ?w X(e,t,n,r,a):n.type=== ` block - seq ` ?T X(e,t,n,r,a):k X(e,t,n,r,a),s=o.constructor;return i=== ` ! ` ||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function j X(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e)):null;if(n.type=== ` block - seq ` ){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n, ` MISSING _CHAR ` , ` Missing newline after block sequence props ` )}let s=n.type=== ` block - map ` ? ` map ` :n.type=== ` block - seq ` ? ` seq ` :n.start.source=== ` { ` ? ` map ` : ` seq ` ;if(!a||!o||o=== ` ! ` ||o===u Y.tagName&&s=== ` map ` ||o===fY .tagName&&s=== ` seq ` )return A X(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a, ` BAD _COLLECTION _TYPE ` , ` $ { r . tag } used for $ { s } collection , but expects $ { r . collection ? ? ` scalar ` } ` ,!0):i(a, ` TAG _RESOLVE _FAILED ` , ` Unresolved tag : $ { o } ` ,!0),A X(e,t,n,i,o)}let l=A X(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e),t.options)??l,d=Y q(u)?u:new v J(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function M X(e,t,n){let r=t.offset,i=Aee (t,e.options.strict,n);if(!i)return{value: ` ` ,type:null,comment: ` ` ,range:[r,r,r]};let a=i.mode=== ` > ` ?v J.BLOCK_FOLDED:v J.BLOCK_LITERAL,o=t.source?N X(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t=== ` ` ||t=== ` \ r ` )s=e;else break}if(s===0){let e=i.chomp=== ` + ` &&o.length>0? `
` .repeat(Math.max(1,o.length-1)): ` ` ,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a=== ` ` ||a=== ` \ r ` )i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length, ` MISSING _CHAR ` , ` Block scalars with more - indented leading empty lines must use an explicit indentation indicator ` ),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l, ` BAD _INDENT ` , ` Block scalar values in collections must be indented ` );break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d= ` ` ,f= ` ` ,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+ `
` ;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]=== ` \ r ` ;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e= ` Block scalar lines must not be less indented than their $ { i . indent ? ` explicit indentation indicator ` : ` first line ` } ` ;n(l-r.length-(s?2:1), ` BAD _INDENT ` ,e),t= ` ` }a===r J.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f= `
` ;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]=== ` \ r ` ;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e= ` Block scalar lines must not be less indented than their $ { i . indent ? ` explicit indentation indicator ` : ` first line ` } ` ;n(l-r.length-(s?2:1), ` BAD _INDENT ` ,e),t= ` ` }a===v J.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f= `
` ):t.length>c||r[0]=== ` ` ?(f=== ` ` ?f= `
` :!p&&f=== `
` &&(f= `
@@ -81,58 +81,59 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
` +o[e][0].slice(c);d[d.length-1]!== `
` &&(d+= `
` );break;default:d+= `
` }let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function vX ({offset:e,props:t},n,r){if(t[0].type!== ` block - scalar - header ` )return r(t[0], ` IMPOSSIBLE ` , ` Block scalar header not found ` ),null;let{source:i}=t[0],a=i[0],o=0,s= ` ` ,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n=== ` - ` ||n=== ` + ` ))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c, ` UNEXPECTED _TOKEN ` , ` Block scalar header includes extra characters : $ { i } ` );let l=!1,u= ` ` ,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case ` space ` :l=!0;case ` newline ` :d+=i.source.length;break;case ` comment ` :n&&!l&&r(i, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` ),d+=i.source.length,u=i.source.substring(1);break;case ` error ` :r(i, ` UNEXPECTED _TOKEN ` ,i.message),d+=i.source.length;break;default:{r(i, ` UNEXPECTED _TOKEN ` , ` Unexpected token in block scalar header : $ { i . type } ` );let e=i.source;e&&typeof e== ` string ` &&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function y X(e){let t=e.split(/ \n ( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[ ` ` ,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function b X(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case ` scalar ` :s=r J.PLAIN,c=x X(a,l);break;case ` single - quoted - scalar ` :s=r J.QUOTE_SINGLE,c=S X(a,l);break;case ` double - quoted - scalar ` :s=r J.QUOTE_DOUBLE,c=w X(a,l);break;default:return n(e, ` UNEXPECTED _TOKEN ` , ` Expected a flow scalar value , but found : $ { i } ` ),{value: ` ` ,type:null,comment: ` ` ,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=d X(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function x X(e,t){let n= ` ` ;switch(e[0]){case ` ` :n= ` a tab character ` ;break;case ` , ` :n= ` flow indicator character , ` ;break;case ` % ` :n= ` directive indicator character % ` ;break;case ` | ` :case ` > ` :n= ` block scalar indicator $ { e [ 0 ] } ` ;break;case ` @ ` :case" ` " : n = ` reserved character ${ e [ 0 ] } ` } return n && t ( 0 , ` BAD_SCALAR_START ` , ` Plain value cannot start with ${ n } ` ) , CX ( e ) } function SX ( e , t ) { return ( e [ e . length - 1 ] !== ` ' ` || e . length === 1 ) && t ( e . length , ` MISSING_CHAR ` , ` Missing closing 'quote ` ) , CX ( e . slice ( 1 , - 1 ) ) . replace ( /''/g , ` ' ` ) } function CX ( e ) { let t = / ( . * ? ) \ r ? \ n / s y , n = t . e x e c ( e ) ; i f ( ! n ) r e t u r n e ; l e t r , i ; t r y { r = R e g E x p ( ` ( ? < ! [ ] ) [ ] + $ ` ) , i = R e g E x p ( ` ^ [ ] + | ( ? < ! [ ] ) [ ] + $ ` , ` g ` ) } c a t c h { r = / [ \ t ] + $ / , i = / ^ [ \ t ] + | [ \ t ] + $ / g } l e t a = n [ 1 ] . r e p l a c e ( r , ` ` ) , o = ` ` , s = t . l a s t I n d e x ; f o r ( ; n = t . e x e c ( e ) ; ) { l e t e = n [ 1 ] . r e p l a c e ( i , ` ` ) ; e = = = ` ` ? o = = = `
` }let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function Aee ({offset:e,props:t},n,r){if(t[0].type!== ` block - scalar - header ` )return r(t[0], ` IMPOSSIBLE ` , ` Block scalar header not found ` ),null;let{source:i}=t[0],a=i[0],o=0,s= ` ` ,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n=== ` - ` ||n=== ` + ` ))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c, ` UNEXPECTED _TOKEN ` , ` Block scalar header includes extra characters : $ { i } ` );let l=!1,u= ` ` ,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case ` space ` :l=!0;case ` newline ` :d+=i.source.length;break;case ` comment ` :n&&!l&&r(i, ` MISSING _CHAR ` , ` Comments must be separated from other tokens by white space characters ` ),d+=i.source.length,u=i.source.substring(1);break;case ` error ` :r(i, ` UNEXPECTED _TOKEN ` ,i.message),d+=i.source.length;break;default:{r(i, ` UNEXPECTED _TOKEN ` , ` Unexpected token in block scalar header : $ { i . type } ` );let e=i.source;e&&typeof e== ` string ` &&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function N X(e){let t=e.split(/ \n ( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[ ` ` ,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function P X(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case ` scalar ` :s=v J.PLAIN,c=F X(a,l);break;case ` single - quoted - scalar ` :s=v J.QUOTE_SINGLE,c=I X(a,l);break;case ` double - quoted - scalar ` :s=v J.QUOTE_DOUBLE,c=R X(a,l);break;default:return n(e, ` UNEXPECTED _TOKEN ` , ` Expected a flow scalar value , but found : $ { i } ` ),{value: ` ` ,type:null,comment: ` ` ,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=E X(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function F X(e,t){let n= ` ` ;switch(e[0]){case ` ` :n= ` a tab character ` ;break;case ` , ` :n= ` flow indicator character , ` ;break;case ` % ` :n= ` directive indicator character % ` ;break;case ` | ` :case ` > ` :n= ` block scalar indicator $ { e [ 0 ] } ` ;break;case ` @ ` :case" ` " : n = ` reserved character ${ e [ 0 ] } ` } return n && t ( 0 , ` BAD_SCALAR_START ` , ` Plain value cannot start with ${ n } ` ) , LX ( e ) } function IX ( e , t ) { return ( e [ e . length - 1 ] !== ` ' ` || e . length === 1 ) && t ( e . length , ` MISSING_CHAR ` , ` Missing closing 'quote ` ) , LX ( e . slice ( 1 , - 1 ) ) . replace ( /''/g , ` ' ` ) } function LX ( e ) { let t = / ( . * ? ) \ r ? \ n / s y , n = t . e x e c ( e ) ; i f ( ! n ) r e t u r n e ; l e t r , i ; t r y { r = R e g E x p ( ` ( ? < ! [ ] ) [ ] + $ ` ) , i = R e g E x p ( ` ^ [ ] + | ( ? < ! [ ] ) [ ] + $ ` , ` g ` ) } c a t c h { r = / [ \ t ] + $ / , i = / ^ [ \ t ] + | [ \ t ] + $ / g } l e t a = n [ 1 ] . r e p l a c e ( r , ` ` ) , o = ` ` , s = t . l a s t I n d e x ; f o r ( ; n = t . e x e c ( e ) ; ) { l e t e = n [ 1 ] . r e p l a c e ( i , ` ` ) ; e = = = ` ` ? o = = = `
` ?a+=o:o= `
` :(a+=o+e,o= ` ` ),s=t.lastIndex}let c=/[ \t ]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]?? ` ` )}function w X(e,t){let n= ` ` ;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!== ` \ r ` ||e[r+1]!== `
` :(a+=o+e,o= ` ` ),s=t.lastIndex}let c=/[ \t ]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]?? ` ` )}function R X(e,t){let n= ` ` ;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!== ` \ r ` ||e[r+1]!== `
` ){if(i=== `
` ){let{fold:t,offset:i}=T X(e,r);n+=t,r=i}else if(i=== ` \ \ ` ){let i=e[++r],a=E X[i];if(a)n+=a;else if(i=== `
` ){let{fold:t,offset:i}=z X(e,r);n+=t,r=i}else if(i=== ` \ \ ` ){let i=e[++r],a=B X[i];if(a)n+=a;else if(i=== `
` )for(i=e[r+1];i=== ` ` ||i=== ` ` ;)i=e[++r+1];else if(i=== ` \ r ` &&e[r+1]=== `
` )for(i=e[++r+1];i=== ` ` ||i=== ` ` ;)i=e[++r+1];else if(i=== ` x ` ||i=== ` u ` ||i=== ` U ` ){let a=i=== ` x ` ?2:i=== ` u ` ?4:8;n+=D X(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1, ` BAD _DQ _ESCAPE ` , ` Invalid escape sequence $ { i } ` ),n+=i}}else if(i=== ` ` ||i=== ` ` ){let t=r,a=e[r+1];for(;a=== ` ` ||a=== ` ` ;)a=e[++r+1];a!== `
` )for(i=e[++r+1];i=== ` ` ||i=== ` ` ;)i=e[++r+1];else if(i=== ` x ` ||i=== ` u ` ||i=== ` U ` ){let a=i=== ` x ` ?2:i=== ` u ` ?4:8;n+=V X(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1, ` BAD _DQ _ESCAPE ` , ` Invalid escape sequence $ { i } ` ),n+=i}}else if(i=== ` ` ||i=== ` ` ){let t=r,a=e[r+1];for(;a=== ` ` ||a=== ` ` ;)a=e[++r+1];a!== `
` &&(a!== ` \ r ` ||e[r+2]!== `
` )&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!== ` "`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing " quote ` ),n}function T X(e,t){let n= ` ` ,r=e[t+1];for(;(r=== ` ` ||r=== ` ` ||r=== `
` )&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!== ` "`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing " quote ` ),n}function z X(e,t){let n= ` ` ,r=e[t+1];for(;(r=== ` ` ||r=== ` ` ||r=== `
` ||r=== ` \ r ` )&&(r!== ` \ r ` ||e[t+2]=== `
` );)r=== `
` &&(n+= `
` ),t+=1,r=e[t+1];return n||= ` ` ,{fold:n,offset:t}}var E X={0: ` \ 0 ` ,a: ` \ x07 ` ,b: ` \ b ` ,e: ` \ x1B ` ,f: ` \ f ` ,n: `
` ,r: ` \ r ` ,t: ` ` ,v: ` \ v ` ,N: `
` ,_: ` \ xA0 ` ,L: ` \u2028 ` ,P: ` \u2029 ` ," ": ` ` ,'"': ` "`," / ":`/`," \ \ ":`\\`," " : ` ` } ; function DX ( e , t , n , r ) { let i = e . substr ( t , n ) , a = i . length === n && /^[0-9a-fA-F]+$/ . test ( i ) ? parseInt ( i , 16 ) : NaN ; try { return String . fromCodePoint ( a ) } catch { let i = e . substr ( t - 2 , n + 2 ) ; return r ( t - 2 , ` BAD_DQ_ESCAPE ` , ` Invalid escape sequence ${ i } ` ) , i } } function OX ( e , t , n , r ) { let { value : i , type : a , comment : o , range : s } = t . type === ` block-scalar ` ? _X ( e , t , r ) : bX ( t , e . options . strict , r ) , c = n ? e . directives . tagName ( n . source , e => r ( n , ` TAG_RESOLVE_FAILED ` , e ) ) : null , l ; l = e . options . stringKeys && e . atKey ? e . schema [ wq ] : c ? kX ( e . schema , i , c , n , r ) : t . type === ` scalar ` ? AX ( e , i , t , r ) : e . schema [ wq ] ; let u ; try { let a = l . resolve ( i , e => r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , e ) , e . options ) ; u = jq ( a ) ? a : new rJ ( a ) } catch ( e ) { let a = e instanceof Error ? e . message : String ( e ) ; r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , a ) , u = new rJ ( i ) } return u . range = s , u . source = i , a && ( u . type = a ) , c && ( u . tag = c ) , l . format && ( u . format = l . format ) , o && ( u . comment = o ) , u } function kX ( e , t , n , r , i ) { if ( n === ` ! ` ) return e [ wq ] ; let a = [ ] ; for ( let t of e . tags ) if ( ! t . collection && t . tag === n ) { if ( t . default && t . test ) a . push ( t ) ; else return t } for ( let e of a ) if ( e . test ? . test ( t ) ) return e ; let o = e . knownTags [ n ] ; return o && ! o . collection ? ( e . tags . push ( Object . assign ( { } , o , { default : ! 1 , test : void 0 } ) ) , o ) : ( i ( r , ` TAG_RESOLVE_FAILED ` , ` Unresolved tag: ${ n } ` , n !== ` tag:yaml.org,2002:str ` ) , e [ wq ] ) } function AX ( { atKey : e , directives : t , schema : n } , r , i , a ) { let o = n . tags . find ( t => ( t . default === ! 0 || e && t . default === ` key ` ) && t . test ? . test ( r ) ) || n [ wq ] ; if ( n . compat ) { let e = n . compat . find ( e => e . default && e . test ? . test ( r ) ) ? ? n [ wq ] ; o . tag !== e . tag && a ( i , ` TAG_RESOLVE_FAILED ` , ` Value may be parsed as either ${ t . tagString ( o . tag ) } or ${ t . tagString ( e . tag ) } ` , ! 0 ) } return o } function jX ( e , t , n ) { if ( t ) { n ? ? = t . length ; for ( let r = n - 1 ; r >= 0 ; -- r ) { let n = t [ r ] ; switch ( n . type ) { case ` space ` : case ` comment ` : case ` newline ` : e -= n . source . length ; continue } for ( n = t [ ++ r ] ; n ? . type === ` space ` ; ) e += n . source . length , n = t [ ++ r ] ; break } } return e } var MX = { composeNode : NX , composeEmptyNode : PX } ; function NX ( e , t , n , r ) { let i = e . atKey , { spaceBefore : a , comment : o , anchor : s , tag : c } = n , l , u = ! 0 ; switch ( t . type ) { case ` alias ` : l = FX ( e , t , r ) , ( s || c ) && r ( t , ` ALIAS_PROPS ` , ` An alias node must not specify any properties ` ) ; break ; case ` scalar ` : case ` single-quoted-scalar ` : case ` double-quoted-scalar ` : case ` block-scalar ` : l = OX ( e , t , c , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) ; break ; case ` block-map ` : case ` block-seq ` : case ` flow-collection ` : try { l = gX ( MX , e , t , n , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) } catch ( e ) { r ( t , ` RESOURCE_EXHAUSTION ` , e instanceof Error ? e . message : String ( e ) ) } break ; default : r ( t , ` UNEXPECTED_TOKEN ` , t . type === ` error ` ? t . message : ` Unsupported token (type: ${ t . type } ) ` ) , u = ! 1 } return l ? ? = PX ( e , t . offset , void 0 , null , n , r ) , s && l . anchor === ` ` && r ( s , ` BAD_ALIAS ` , ` Anchor cannot be an empty string ` ) , i && e . options . stringKeys && ( ! jq ( l ) || typeof l . value != ` string ` || l . tag && l . tag !== ` tag:yaml.org,2002:str ` ) && r ( c ? ? t , ` NON_STRING_KEY ` , ` With stringKeys, all keys must be strings ` ) , a && ( l . spaceBefore = ! 0 ) , o && ( t . type === ` scalar ` && t . source === ` ` ? l . comment = o : l . commentBefore = o ) , e . options . keepSourceTokens && u && ( l . srcToken = t ) , l } function PX ( e , t , n , r , { spaceBefore : i , comment : a , anchor : o , tag : s , end : c } , l ) { let u = OX ( e , { type : ` scalar ` , offset : jX ( t , n , r ) , indent : - 1 , source : ` ` } , s , l ) ; return o && ( u . anchor = o . source . substring ( 1 ) , u . anchor === ` ` && l ( o , ` BAD_ALIAS ` , ` Anchor cannot be an empty string ` ) ) , i && ( u . spaceBefore = ! 0 ) , a && ( u . comment = a , u . range [ 2 ] = c ) , u } function FX ( { options : e } , { offset : t , source : n , end : r } , i ) { let a = new eJ ( n . substring ( 1 ) ) ; a . source === ` ` && i ( t , ` BAD_ALIAS ` , ` Alias cannot be an empty string ` ) , a . source . endsWith ( ` : ` ) && i ( t + n . length - 1 , ` BAD_ALIAS ` , ` Alias ending in : is ambiguous ` , ! 0 ) ; let o = t + n . length , s = dX ( r , o , e . strict , i ) ; return a . range = [ t , o , s . offset ] , s . comment && ( a . comment = s . comment ) , a } function IX ( e , t , { offset : n , start : r , value : i , end : a } , o ) { let s = new QY ( void 0 , Object . assign ( { _directives : t } , e ) ) , c = { atKey : ! 1 , atRoot : ! 0 , directives : s . directives , options : s . options , schema : s . schema } , l = iX ( r , { indicator : ` doc-start ` , next : i ? ? a ? . [ 0 ] , offset : n , onError : o , parentIndent : 0 , startOnNewline : ! 0 } ) ; l . found && ( s . directives . docStart = ! 0 , i && ( i . type === ` block-map ` || i . type === ` block-seq ` ) && ! l . hasNewline && o ( l . end , ` MISSING_CHAR ` , ` Block collection cannot start on same line with directives-end marker ` ) ) , s . contents = i ? NX ( c , i , l , o ) : PX ( c , l . end , r , null , l , o ) ; let u = s . contents . range [ 2 ] , d = dX ( a , u , ! 1 , o ) ; return d . comment && ( s . comment = d . comment ) , s . range = [ n , u , d . offset ] , s } function LX ( e ) { if ( typeof e == ` number ` ) return [ e , e + 1 ] ; if ( Array . isArray ( e ) ) return e . length === 2 ? e : [ e [ 0 ] , e [ 1 ] ] ; let { offset : t , source : n } = e ; return [ t , t + ( typeof n == ` string ` ? n . length : 1 ) ] } function RX ( e ) { let t = ` ` , n = ! 1 , r = ! 1 ; for ( let i = 0 ; i < e . length ; ++ i ) { let a = e [ i ] ; switch ( a [ 0 ] ) { case ` # ` : t += ( t === ` ` ? ` ` : r ? `
` ),t+=1,r=e[t+1];return n||= ` ` ,{fold:n,offset:t}}var B X={0: ` \ 0 ` ,a: ` \ x07 ` ,b: ` \ b ` ,e: ` \ x1B ` ,f: ` \ f ` ,n: `
` ,r: ` \ r ` ,t: ` ` ,v: ` \ v ` ,N: `
` ,_: ` \ xA0 ` ,L: ` \u2028 ` ,P: ` \u2029 ` ," ": ` ` ,'"': ` "`," / ":`/`," \ \ ":`\\`," " : ` ` } ; function VX ( e , t , n , r ) { let i = e . substr ( t , n ) , a = i . length === n && /^[0-9a-fA-F]+$/ . test ( i ) ? parseInt ( i , 16 ) : NaN ; try { return String . fromCodePoint ( a ) } catch { let i = e . substr ( t - 2 , n + 2 ) ; return r ( t - 2 , ` BAD_DQ_ESCAPE ` , ` Invalid escape sequence ${ i } ` ) , i } } function HX ( e , t , n , r ) { let { value : i , type : a , comment : o , range : s } = t . type === ` block-scalar ` ? MX ( e , t , r ) : PX ( t , e . options . strict , r ) , c = n ? e . directives . tagName ( n . source , e => r ( n , ` TAG_RESOLVE_FAILED ` , e ) ) : null , l ; l = e . options . stringKeys && e . atKey ? e . schema [ zq ] : c ? UX ( e . schema , i , c , n , r ) : t . type === ` scalar ` ? WX ( e , i , t , r ) : e . schema [ zq ] ; let u ; try { let a = l . resolve ( i , e => r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , e ) , e . options ) ; u = Kq ( a ) ? a : new vJ ( a ) } catch ( e ) { let a = e instanceof Error ? e . message : String ( e ) ; r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , a ) , u = new vJ ( i ) } return u . range = s , u . source = i , a && ( u . type = a ) , c && ( u . tag = c ) , l . format && ( u . format = l . format ) , o && ( u . comment = o ) , u } function UX ( e , t , n , r , i ) { if ( n === ` ! ` ) return e [ zq ] ; let a = [ ] ; for ( let t of e . tags ) if ( ! t . collection && t . tag === n ) { if ( t . default && t . test ) a . push ( t ) ; else return t } for ( let e of a ) if ( e . test ? . test ( t ) ) return e ; let o = e . knownTags [ n ] ; return o && ! o . collection ? ( e . tags . push ( Object . assign ( { } , o , { default : ! 1 , test : void 0 } ) ) , o ) : ( i ( r , ` TAG_RESOLVE_FAILED ` , ` Unresolved tag: ${ n } ` , n !== ` tag:yaml.org,2002:str ` ) , e [ zq ] ) } function WX ( { atKey : e , directives : t , schema : n } , r , i , a ) { let o = n . tags . find ( t => ( t . default === ! 0 || e && t . default === ` key ` ) && t . test ? . test ( r ) ) || n [ zq ] ; if ( n . compat ) { let e = n . compat . find ( e => e . default && e . test ? . test ( r ) ) ? ? n [ zq ] ; o . tag !== e . tag && a ( i , ` TAG_RESOLVE_FAILED ` , ` Value may be parsed as either ${ t . tagString ( o . tag ) } or ${ t . tagString ( e . tag ) } ` , ! 0 ) } return o } function GX ( e , t , n ) { if ( t ) { n ? ? = t . length ; for ( let r = n - 1 ; r >= 0 ; -- r ) { let n = t [ r ] ; switch ( n . type ) { case ` space ` : case ` comment ` : case ` newline ` : e -= n . source . length ; continue } for ( n = t [ ++ r ] ; n ? . type === ` space ` ; ) e += n . source . length , n = t [ ++ r ] ; break } } return e } var KX = { composeNode : qX , composeEmptyNode : JX } ; function qX ( e , t , n , r ) { let i = e . atKey , { spaceBefore : a , comment : o , anchor : s , tag : c } = n , l , u = ! 0 ; switch ( t . type ) { case ` alias ` : l = YX ( e , t , r ) , ( s || c ) && r ( t , ` ALIAS_PROPS ` , ` An alias node must not specify any properties ` ) ; break ; case ` scalar ` : case ` single-quoted-scalar ` : case ` double-quoted-scalar ` : case ` block-scalar ` : l = HX ( e , t , c , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) ; break ; case ` block-map ` : case ` block-seq ` : case ` flow-collection ` : try { l = jX ( KX , e , t , n , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) } catch ( e ) { r ( t , ` RESOURCE_EXHAUSTION ` , e instanceof Error ? e . message : String ( e ) ) } break ; default : r ( t , ` UNEXPECTED_TOKEN ` , t . type === ` error ` ? t . message : ` Unsupported token (type: ${ t . type } ) ` ) , u = ! 1 } return l ? ? = JX ( e , t . offset , void 0 , null , n , r ) , s && l . anchor === ` ` && r ( s , ` BAD_ALIAS ` , ` Anchor cannot be an empty string ` ) , i && e . options . stringKeys && ( ! Kq ( l ) || typeof l . value != ` string ` || l . tag && l . tag !== ` tag:yaml.org,2002:str ` ) && r ( c ? ? t , ` NON_STRING_KEY ` , ` With stringKeys, all keys must be strings ` ) , a && ( l . spaceBefore = ! 0 ) , o && ( t . type === ` scalar ` && t . source === ` ` ? l . comment = o : l . commentBefore = o ) , e . options . keepSourceTokens && u && ( l . srcToken = t ) , l } function JX ( e , t , n , r , { spaceBefore : i , comment : a , anchor : o , tag : s , end : c } , l ) { let u = HX ( e , { type : ` scalar ` , offset : GX ( t , n , r ) , indent : - 1 , source : ` ` } , s , l ) ; return o && ( u . anchor = o . source . substring ( 1 ) , u . anchor === ` ` && l ( o , ` BAD_ALIAS ` , ` Anchor cannot be an empty string ` ) ) , i && ( u . spaceBefore = ! 0 ) , a && ( u . comment = a , u . range [ 2 ] = c ) , u } function YX ( { options : e } , { offset : t , source : n , end : r } , i ) { let a = new hJ ( n . substring ( 1 ) ) ; a . source === ` ` && i ( t , ` BAD_ALIAS ` , ` Alias cannot be an empty string ` ) , a . source . endsWith ( ` : ` ) && i ( t + n . length - 1 , ` BAD_ALIAS ` , ` Alias ending in : is ambiguous ` , ! 0 ) ; let o = t + n . length , s = EX ( r , o , e . strict , i ) ; return a . range = [ t , o , s . offset ] , s . comment && ( a . comment = s . comment ) , a } function XX ( e , t , { offset : n , start : r , value : i , end : a } , o ) { let s = new pX ( void 0 , Object . assign ( { _directives : t } , e ) ) , c = { atKey : ! 1 , atRoot : ! 0 , directives : s . directives , options : s . options , schema : s . schema } , l = yX ( r , { indicator : ` doc-start ` , next : i ? ? a ? . [ 0 ] , offset : n , onError : o , parentIndent : 0 , startOnNewline : ! 0 } ) ; l . found && ( s . directives . docStart = ! 0 , i && ( i . type === ` block-map ` || i . type === ` block-seq ` ) && ! l . hasNewline && o ( l . end , ` MISSING_CHAR ` , ` Block collection cannot start on same line with directives-end marker ` ) ) , s . contents = i ? qX ( c , i , l , o ) : JX ( c , l . end , r , null , l , o ) ; let u = s . contents . range [ 2 ] , d = EX ( a , u , ! 1 , o ) ; return d . comment && ( s . comment = d . comment ) , s . range = [ n , u , d . offset ] , s } function ZX ( e ) { if ( typeof e == ` number ` ) return [ e , e + 1 ] ; if ( Array . isArray ( e ) ) return e . length === 2 ? e : [ e [ 0 ] , e [ 1 ] ] ; let { offset : t , source : n } = e ; return [ t , t + ( typeof n == ` string ` ? n . length : 1 ) ] } function QX ( e ) { let t = ` ` , n = ! 1 , r = ! 1 ; for ( let i = 0 ; i < e . length ; ++ i ) { let a = e [ i ] ; switch ( a [ 0 ] ) { case ` # ` : t += ( t === ` ` ? ` ` : r ? `
` : `
` )+(a.substring(1)|| ` ` ),n=!0,r=!1;break;case ` % ` :e[i+1]?.[0]!== ` # ` &&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var z X=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=L X(e);r?this.warnings.push(new n X(i,t,n)):this.errors.push(new t X(i,t,n))},this.directives=new Kq ({version:e.version|| ` 1.2 ` }),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=R X(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment? ` $ { e . comment } \ n$ { n } ` :n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(N q(i)&&!i.flow&&i.items.length>0){let e=i.items[0];A q(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t? ` $ { n } \ n$ { t } ` :n}else{let e=i.commentBefore;i.commentBefore=e? ` $ { n } \ n$ { e } ` :n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:R X(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case ` directive ` :this.directives.add(e.source,(t,n,r)=>{let i=L X(e);i[0]+=t,this.onError(i, ` BAD _DIRECTIVE ` ,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case ` document ` :{let t=I X(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e, ` MISSING _CHAR ` , ` Missing directives - end / doc - start indicator line ` ),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case ` byte - order - mark ` :case ` space ` :break;case ` comment ` :case ` newline ` :this.prelude.push(e.source);break;case ` error ` :{let t=e.source? ` $ { e . message } : $ { JSON . stringify ( e . source ) } ` :e.message,n=new t X(L X(e), ` UNEXPECTED _TOKEN ` ,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case ` doc - end ` :{if(!this.doc){this.errors.push(new t X(L X(e), ` UNEXPECTED _TOKEN ` , ` Unexpected doc - end without preceding document ` ));break}this.doc.directives.docEnd=!0;let t=d X(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e? ` $ { e } \ n$ { t . comment } ` :t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new t X(L X(e), ` UNEXPECTED _TOKEN ` , ` Unsupported token $ { e . type } ` ))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new QY (void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t, ` MISSING _CHAR ` , ` Missing directives - end indicator line ` ),e.range=[0,t,t],this.decorate(e,!1),yield e}}},BX =Symbol( ` break visit ` ),VX =Symbol( ` skip children ` ),HX =Symbol( ` remove item ` );function UX (e,t){ ` type ` in e&&e.type=== ` document ` &&(e={start:e.start,value:e.value}),WX (Object.freeze([]),e,t)}UX .BREAK=BX,UX .SKIP=VX,UX .REMOVE=HX,UX .itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&& ` items ` in t)n=t.items[r];else return}return n},UX .parentCollection=(e,t)=>{let n=UX .itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&& ` items ` in i)return i;throw Error( ` Parent collection not found ` )};function WX (e,t,n){let r=n(t,e);if(typeof r== ` symbol ` )return r;for(let i of[ ` key ` , ` value ` ]){let a=t[i];if(a&& ` items ` in a){for(let t=0;t<a.items.length;++t){let r=WX (Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r== ` number ` )t=r-1;else if(r===BX )return BX ;else r===HX &&(a.items.splice(t,1),--t)}typeof r== ` function ` &&i=== ` key ` &&(r=r(t,e))}}return typeof r== ` function ` ?r(t,e):r}function GX (e){switch(e){case ` ` :return ` byte - order - mark ` ;case ` ` :return ` doc - mode ` ;case ` ` :return ` flow - error - end ` ;case ` ` :return ` scalar ` ;case ` -- - ` :return ` doc - start ` ;case ` ... ` :return ` doc - end ` ;case ` ` :case `
` )+(a.substring(1)|| ` ` ),n=!0,r=!1;break;case ` % ` :e[i+1]?.[0]!== ` # ` &&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var $ X=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Z X(e);r?this.warnings.push(new _ X(i,t,n)):this.errors.push(new g X(i,t,n))},this.directives=new sJ ({version:e.version|| ` 1.2 ` }),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=Q X(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment? ` $ { e . comment } \ n$ { n } ` :n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(J q(i)&&!i.flow&&i.items.length>0){let e=i.items[0];G q(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t? ` $ { n } \ n$ { t } ` :n}else{let e=i.commentBefore;i.commentBefore=e? ` $ { n } \ n$ { e } ` :n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Q X(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case ` directive ` :this.directives.add(e.source,(t,n,r)=>{let i=Z X(e);i[0]+=t,this.onError(i, ` BAD _DIRECTIVE ` ,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case ` document ` :{let t=X X(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e, ` MISSING _CHAR ` , ` Missing directives - end / doc - start indicator line ` ),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case ` byte - order - mark ` :case ` space ` :break;case ` comment ` :case ` newline ` :this.prelude.push(e.source);break;case ` error ` :{let t=e.source? ` $ { e . message } : $ { JSON . stringify ( e . source ) } ` :e.message,n=new g X(Z X(e), ` UNEXPECTED _TOKEN ` ,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case ` doc - end ` :{if(!this.doc){this.errors.push(new g X(Z X(e), ` UNEXPECTED _TOKEN ` , ` Unexpected doc - end without preceding document ` ));break}this.doc.directives.docEnd=!0;let t=E X(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e? ` $ { e } \ n$ { t . comment } ` :t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new g X(Z X(e), ` UNEXPECTED _TOKEN ` , ` Unsupported token $ { e . type } ` ))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new pX (void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t, ` MISSING _CHAR ` , ` Missing directives - end indicator line ` ),e.range=[0,t,t],this.decorate(e,!1),yield e}}},eZ =Symbol( ` break visit ` ),tZ =Symbol( ` skip children ` ),nZ =Symbol( ` remove item ` );function rZ (e,t){ ` type ` in e&&e.type=== ` document ` &&(e={start:e.start,value:e.value}),iZ (Object.freeze([]),e,t)}rZ .BREAK=eZ,rZ .SKIP=tZ,rZ .REMOVE=nZ,rZ .itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&& ` items ` in t)n=t.items[r];else return}return n},rZ .parentCollection=(e,t)=>{let n=rZ .itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&& ` items ` in i)return i;throw Error( ` Parent collection not found ` )};function iZ (e,t,n){let r=n(t,e);if(typeof r== ` symbol ` )return r;for(let i of[ ` key ` , ` value ` ]){let a=t[i];if(a&& ` items ` in a){for(let t=0;t<a.items.length;++t){let r=iZ (Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r== ` number ` )t=r-1;else if(r===eZ )return eZ ;else r===nZ &&(a.items.splice(t,1),--t)}typeof r== ` function ` &&i=== ` key ` &&(r=r(t,e))}}return typeof r== ` function ` ?r(t,e):r}function aZ (e){switch(e){case ` ` :return ` byte - order - mark ` ;case ` ` :return ` doc - mode ` ;case ` ` :return ` flow - error - end ` ;case ` ` :return ` scalar ` ;case ` -- - ` :return ` doc - start ` ;case ` ... ` :return ` doc - end ` ;case ` ` :case `
` :case ` \ r
` :return ` newline ` ;case ` - ` :return ` seq - item - ind ` ;case ` ? ` :return ` explicit - key - ind ` ;case ` : ` :return ` map - value - ind ` ;case ` { ` :return ` flow - map - start ` ;case ` } ` :return ` flow - map - end ` ;case ` [ ` :return ` flow - seq - start ` ;case ` ] ` :return ` flow - seq - end ` ;case ` , ` :return ` comma ` }switch(e[0]){case ` ` :case ` ` :return ` space ` ;case ` # ` :return ` comment ` ;case ` % ` :return ` directive - line ` ;case ` * ` :return ` alias ` ;case ` & ` :return ` anchor ` ;case ` ! ` :return ` tag ` ;case ` ' ` :return ` single - quoted - scalar ` ;case ` " ` :return ` double - quoted - scalar ` ;case ` | ` :case ` > ` :return ` block - scalar - header ` }return null}function KX (e){switch(e){case void 0:case ` ` :case `
` :case ` \ r ` :case ` ` :return!0;default:return!1}}var qX =new Set( ` 0123456789 ABCDEFabcdef ` ),JX =new Set( ` 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - # ; / ? : @ & = + $ _ . ! ~ * ' ( ) ` ) , Y X = n e w S e t ( ` , [ ] { } ` ) , X X = n e w S e t ( ` , [ ] { }
\ r ` ),ZX =e=>!e||XX .has(e),QX =class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer= ` ` ,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!= ` string ` )throw TypeError( ` source is not a string ` );this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next?? ` stream ` ;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t=== ` ` ||t=== ` ` ;)t=this.buffer[++e];return!t||t=== ` # ` ||t=== `
` :return ` newline ` ;case ` - ` :return ` seq - item - ind ` ;case ` ? ` :return ` explicit - key - ind ` ;case ` : ` :return ` map - value - ind ` ;case ` { ` :return ` flow - map - start ` ;case ` } ` :return ` flow - map - end ` ;case ` [ ` :return ` flow - seq - start ` ;case ` ] ` :return ` flow - seq - end ` ;case ` , ` :return ` comma ` }switch(e[0]){case ` ` :case ` ` :return ` space ` ;case ` # ` :return ` comment ` ;case ` % ` :return ` directive - line ` ;case ` * ` :return ` alias ` ;case ` & ` :return ` anchor ` ;case ` ! ` :return ` tag ` ;case ` ' ` :return ` single - quoted - scalar ` ;case ` " ` :return ` double - quoted - scalar ` ;case ` | ` :case ` > ` :return ` block - scalar - header ` }return null}function oZ (e){switch(e){case void 0:case ` ` :case `
` :case ` \ r ` :case ` ` :return!0;default:return!1}}var sZ =new Set( ` 0123456789 ABCDEFabcdef ` ),cZ =new Set( ` 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - # ; / ? : @ & = + $ _ . ! ~ * ' ( ) ` ) , l Z = n e w S e t ( ` , [ ] { } ` ) , u Z = n e w S e t ( ` , [ ] { }
\ r ` ),d Z=e=>!e||uZ .has(e),fZ =class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer= ` ` ,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!= ` string ` )throw TypeError( ` source is not a string ` );this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next?? ` stream ` ;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t=== ` ` ||t=== ` ` ;)t=this.buffer[++e];return!t||t=== ` # ` ||t=== `
` ||t=== ` \ r ` &&this.buffer[e+1]=== `
` }charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t=== ` ` ;)t=this.buffer[++n+e];if(t=== ` \ r ` ){let t=this.buffer[n+e+1];if(t=== `
` ||!t&&!this.atEnd)return e+n+1}return t=== `
` ||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t=== ` - ` ||t=== ` . ` ){let t=this.buffer.substr(e,3);if((t=== ` -- - ` ||t=== ` ... ` )&&KX (this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!= ` number ` ||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf( `
` ,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]=== ` \ r ` &&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case ` stream ` :return yield*this.parseStream();case ` line - start ` :return yield*this.parseLineStart();case ` block - start ` :return yield*this.parseBlockStart();case ` doc ` :return yield*this.parseDocument();case ` flow ` :return yield*this.parseFlowCollection();case ` quoted - scalar ` :return yield*this.parseQuotedScalar();case ` block - scalar ` :return yield*this.parseBlockScalar();case ` plain - scalar ` :return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext( ` stream ` );if(e[0]=== ` ` &&(yield*this.pushCount(1),e=e.substring(1)),e[0]=== ` % ` ){let t=e.length,n=e.indexOf( ` # ` );for(;n!==-1;){let r=e[n-1];if(r=== ` ` ||r=== ` ` ){t=n-1;break}n=e.indexOf( ` # ` ,n+1)}for(;;){let n=e[t-1];if(n=== ` ` ||n=== ` ` )--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(), ` stream ` }if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(), ` stream ` }return yield ` ` ,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext( ` line - start ` );if(e=== ` - ` ||e=== ` . ` ){if(!this.atEnd&&!this.hasChars(4))return this.setNext( ` line - start ` );let e=this.peek(3);if((e=== ` -- - ` ||e=== ` ... ` )&&KX (this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e=== ` -- - ` ? ` doc ` : ` stream ` }return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!KX (this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext( ` block - start ` );if((e=== ` - ` ||e=== ` ? ` ||e=== ` : ` )&&KX (t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e, ` block - start ` }return ` doc ` }*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext( ` doc ` );let t=yield*this.pushIndicators();switch(e[t]){case ` # ` :yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case ` { ` :case ` [ ` :return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1, ` flow ` ;case ` } ` :case ` ] ` :return yield*this.pushCount(1), ` doc ` ;case ` * ` :return yield*this.pushUntil(ZX ), ` doc ` ;case ` "`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&KX (r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield` `,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(ZX ),`flow`;case`" ` :case ` '`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||KX (e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`' ` )for(;t!==-1&&this.buffer[t+1]=== ` '`;)t=this.buffer.indexOf(`' ` ,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]=== ` \ \ ` ;)e+=1;if(e%2==0)break;t=this.buffer.indexOf( ` " ` ,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf( `
` ||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t=== ` - ` ||t=== ` . ` ){let t=this.buffer.substr(e,3);if((t=== ` -- - ` ||t=== ` ... ` )&&oZ (this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!= ` number ` ||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf( `
` ,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]=== ` \ r ` &&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case ` stream ` :return yield*this.parseStream();case ` line - start ` :return yield*this.parseLineStart();case ` block - start ` :return yield*this.parseBlockStart();case ` doc ` :return yield*this.parseDocument();case ` flow ` :return yield*this.parseFlowCollection();case ` quoted - scalar ` :return yield*this.parseQuotedScalar();case ` block - scalar ` :return yield*this.parseBlockScalar();case ` plain - scalar ` :return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext( ` stream ` );if(e[0]=== ` ` &&(yield*this.pushCount(1),e=e.substring(1)),e[0]=== ` % ` ){let t=e.length,n=e.indexOf( ` # ` );for(;n!==-1;){let r=e[n-1];if(r=== ` ` ||r=== ` ` ){t=n-1;break}n=e.indexOf( ` # ` ,n+1)}for(;;){let n=e[t-1];if(n=== ` ` ||n=== ` ` )--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(), ` stream ` }if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(), ` stream ` }return yield ` ` ,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext( ` line - start ` );if(e=== ` - ` ||e=== ` . ` ){if(!this.atEnd&&!this.hasChars(4))return this.setNext( ` line - start ` );let e=this.peek(3);if((e=== ` -- - ` ||e=== ` ... ` )&&oZ (this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e=== ` -- - ` ? ` doc ` : ` stream ` }return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!oZ (this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext( ` block - start ` );if((e=== ` - ` ||e=== ` ? ` ||e=== ` : ` )&&oZ (t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e, ` block - start ` }return ` doc ` }*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext( ` doc ` );let t=yield*this.pushIndicators();switch(e[t]){case ` # ` :yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case ` { ` :case ` [ ` :return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1, ` flow ` ;case ` } ` :case ` ] ` :return yield*this.pushCount(1), ` doc ` ;case ` * ` :return yield*this.pushUntil(d Z), ` doc ` ;case ` "`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&oZ (r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield` `,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(d Z),`flow`;case`" ` :case ` '`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||oZ (e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`' ` )for(;t!==-1&&this.buffer[t+1]=== ` '`;)t=this.buffer.indexOf(`' ` ,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]=== ` \ \ ` ;)e+=1;if(e%2==0)break;t=this.buffer.indexOf( ` " ` ,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf( `
` ,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf( `
` ,e)}r!==-1&&(t=r-(n[r-1]=== ` \ r ` ?2:1))}if(t===-1){if(!this.atEnd)return this.setNext( ` quoted - scalar ` );t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel? ` flow ` : ` doc ` }*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t=== ` + ` )this.blockScalarKeep=!0;else if(t> ` 0 ` &&t<= ` 9 ` )this.blockScalarIndent=Number(t)-1;else if(t!== ` - ` )break}return yield*this.pushUntil(e=>KX (e)||e=== ` # ` )}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case ` ` :t+=1;break;case `
` ,e)}r!==-1&&(t=r-(n[r-1]=== ` \ r ` ?2:1))}if(t===-1){if(!this.atEnd)return this.setNext( ` quoted - scalar ` );t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel? ` flow ` : ` doc ` }*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t=== ` + ` )this.blockScalarKeep=!0;else if(t> ` 0 ` &&t<= ` 9 ` )this.blockScalarIndent=Number(t)-1;else if(t!== ` - ` )break}return yield*this.pushUntil(e=>oZ (e)||e=== ` # ` )}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case ` ` :t+=1;break;case `
` :e=r,t=0;break;case ` \ r ` :{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext( ` block - scalar ` );if(e=== `
` )break}default:break loop}if(!n&&!this.atEnd)return this.setNext( ` block - scalar ` );if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf( `
` ,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext( ` block - scalar ` );e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n=== ` ` ;)n=this.buffer[++r];if(n=== ` ` ){for(;n=== ` ` ||n=== ` ` ||n=== ` \ r ` ||n=== `
` ;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r=== ` \ r ` &&(r=this.buffer[--n]);let i=n;for(;r=== ` ` ;)r=this.buffer[--n];if(r=== `
` &&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield ` ` ,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r=== ` : ` ){let r=this.buffer[n+1];if(KX (r)||e&&YX .has(r))break;t=n}else if(KX (r)){let i=this.buffer[n+1];if(r=== ` \ r ` &&(i=== `
` &&n>=this.pos&&n+1+t>i)e=n;else break}while(1);return yield ` ` ,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r=== ` : ` ){let r=this.buffer[n+1];if(oZ (r)||e&&lZ .has(r))break;t=n}else if(oZ (r)){let i=this.buffer[n+1];if(r=== ` \ r ` &&(i=== `
` ?(n+=1,r= `
` ,i=this.buffer[n+1]):t=n),i=== ` # ` ||e&&YX .has(i))break;if(r=== `
` ){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&YX .has(r))break;t=n}return!r&&!this.atEnd?this.setNext( ` plain - scalar ` ):(yield ` ` ,yield*this.pushToIndex(t+1,!0),e? ` flow ` : ` doc ` )}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield ` ` ),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case ` ! ` :e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case ` & ` :e+=yield*this.pushUntil(ZX ),e+=yield*this.pushSpaces(!0);continue loop;case ` - ` :case ` ? ` :case ` : ` :{let t=this.flowLevel>0,n=this.charAt(1);if(KX (n)||t&&YX .has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)=== ` < ` ){let e=this.pos+2,t=this.buffer[e];for(;!KX (t)&&t!== ` > ` ;)t=this.buffer[++e];return yield*this.pushToIndex(t=== ` > ` ?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(JX .has(t))t=this.buffer[++e];else if(t=== ` % ` &&qX .has(this.buffer[e+1])&&qX .has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e=== `
` ,i=this.buffer[n+1]):t=n),i=== ` # ` ||e&&lZ .has(i))break;if(r=== `
` ){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&lZ .has(r))break;t=n}return!r&&!this.atEnd?this.setNext( ` plain - scalar ` ):(yield ` ` ,yield*this.pushToIndex(t+1,!0),e? ` flow ` : ` doc ` )}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield ` ` ),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case ` ! ` :e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case ` & ` :e+=yield*this.pushUntil(d Z),e+=yield*this.pushSpaces(!0);continue loop;case ` - ` :case ` ? ` :case ` : ` :{let t=this.flowLevel>0,n=this.charAt(1);if(oZ (n)||t&&lZ .has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)=== ` < ` ){let e=this.pos+2,t=this.buffer[e];for(;!oZ (t)&&t!== ` > ` ;)t=this.buffer[++e];return yield*this.pushToIndex(t=== ` > ` ?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(cZ .has(t))t=this.buffer[++e];else if(t=== ` % ` &&sZ .has(this.buffer[e+1])&&sZ .has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e=== `
` ?yield*this.pushCount(1):e=== ` \ r ` &&this.charAt(1)=== `
` ?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n=== ` ` ||e&&n=== ` ` );let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}, $ X=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function eZ(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function tZ(e){for(let t=0;t<e.length;++t)switch(e[t].type){case ` space ` :case ` comment ` :case ` newline ` :break;default:return t}return-1}function nZ(e){switch(e?.type){case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :case ` flow - collection ` :return!0;default:return!1}}function rZ(e){switch(e.type){case ` document ` :return e.start;case ` block - map ` :{let t=e.items[e.items.length-1];return t.sep??t.start}case ` block - seq ` :return e.items[e.items.length-1].start;default:return[]}}function iZ(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case ` doc - start ` :case ` explicit - key - ind ` :case ` map - value - ind ` :case ` seq - item - ind ` :case ` newline ` :break loop}for(;e[++t]?.type=== ` space ` ;);return e.splice(t,e.length)}function aZ(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function oZ(e){if(e.start.type=== ` flow - seq - start ` )for(let t of e.items)t.sep&&!t.value&&!eZ(t.start, ` explicit - key - ind ` )&&!eZ(t.sep, ` map - value - ind ` )&&(t.key&&(t.value=t.key),delete t.key,nZ(t.value)?t.value.end?aZ(t.value.end,t.sep):t.value.end=t.sep:aZ(t.start,t.sep),delete t.sep)}var sZ=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source= ` ` ,this.type= ` ` ,this.lexer=new QX,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=GX(e);if(!t){let t= ` Not a YAML token : $ { e } ` ;yield*this.pop({type: ` error ` ,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t=== ` scalar ` )this.atNewLine=!1,this.atScalar=!0,this.type= ` scalar ` ;else{switch(this.type=t,yield*this.step(),t){case ` newline ` :this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case ` space ` :this.atNewLine&&e[0]=== ` ` &&(this.indent+=e.length);break;case ` explicit - key - ind ` :case ` map - value - ind ` :case ` seq - item - ind ` :this.atNewLine&&(this.indent+=e.length);break;case ` doc - mode ` :case ` flow - error - end ` :return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type=== ` doc - end ` &&e?.type!== ` doc - end ` ){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type: ` doc - end ` ,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case ` document ` :return yield*this.document(e);case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :return yield*this.scalar(e);case ` block - scalar ` :return yield*this.blockScalar(e);case ` block - map ` :return yield*this.blockMap(e);case ` block - seq ` :return yield*this.blockSequence(e);case ` flow - collection ` :return yield*this.flowCollection(e);case ` doc - end ` :return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type: ` error ` ,offset:this.offset,source: ` ` ,message: ` Tried to pop an empty stack ` };else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type=== ` block - scalar ` ?t.indent= ` indent ` in e?e.indent:0:t.type=== ` flow - collection ` &&e.type=== ` document ` &&(t.indent=0),t.type=== ` flow - collection ` &&oZ(t),e.type){case ` document ` :e.value=t;break;case ` block - scalar ` :e.props.push(t);break;case ` block - map ` :{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case ` block - seq ` :{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case ` flow - collection ` :{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type=== ` document ` ||e.type=== ` block - map ` ||e.type=== ` block - seq ` )&&(t.type=== ` block - map ` ||t.type=== ` block - seq ` )){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&tZ(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!== ` comment ` ||e.i
Line truncated
` ?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n=== ` ` ||e&&n=== ` ` );let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},pZ=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function mZ(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function hZ(e){for(let t=0;t<e.length;++t)switch(e[t].type){case ` space ` :case ` comment ` :case ` newline ` :break;default:return t}return-1}function gZ(e){switch(e?.type){case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :case ` flow - collection ` :return!0;default:return!1}}function _Z(e){switch(e.type){case ` document ` :return e.start;case ` block - map ` :{let t=e.items[e.items.length-1];return t.sep??t.start}case ` block - seq ` :return e.items[e.items.length-1].start;default:return[]}}function vZ(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case ` doc - start ` :case ` explicit - key - ind ` :case ` map - value - ind ` :case ` seq - item - ind ` :case ` newline ` :break loop}for(;e[++t]?.type=== ` space ` ;);return e.splice(t,e.length)}function yZ(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function bZ(e){if(e.start.type=== ` flow - seq - start ` )for(let t of e.items)t.sep&&!t.value&&!mZ(t.start, ` explicit - key - ind ` )&&!mZ(t.sep, ` map - value - ind ` )&&(t.key&&(t.value=t.key),delete t.key,gZ(t.value)?t.value.end?yZ(t.value.end,t.sep):t.value.end=t.sep:yZ(t.start,t.sep),delete t.sep)}var xZ=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source= ` ` ,this.type= ` ` ,this.lexer=new fZ,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=aZ(e);if(!t){let t= ` Not a YAML token : $ { e } ` ;yield*this.pop({type: ` error ` ,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t=== ` scalar ` )this.atNewLine=!1,this.atScalar=!0,this.type= ` scalar ` ;else{switch(this.type=t,yield*this.step(),t){case ` newline ` :this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case ` space ` :this.atNewLine&&e[0]=== ` ` &&(this.indent+=e.length);break;case ` explicit - key - ind ` :case ` map - value - ind ` :case ` seq - item - ind ` :this.atNewLine&&(this.indent+=e.length);break;case ` doc - mode ` :case ` flow - error - end ` :return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type=== ` doc - end ` &&e?.type!== ` doc - end ` ){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type: ` doc - end ` ,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case ` document ` :return yield*this.document(e);case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :return yield*this.scalar(e);case ` block - scalar ` :return yield*this.blockScalar(e);case ` block - map ` :return yield*this.blockMap(e);case ` block - seq ` :return yield*this.blockSequence(e);case ` flow - collection ` :return yield*this.flowCollection(e);case ` doc - end ` :return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type: ` error ` ,offset:this.offset,source: ` ` ,message: ` Tried to pop an empty stack ` };else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type=== ` block - scalar ` ?t.indent= ` indent ` in e?e.indent:0:t.type=== ` flow - collection ` &&e.type=== ` document ` &&(t.indent=0),t.type=== ` flow - collection ` &&bZ(t),e.type){case ` document ` :e.value=t;break;case ` block - scalar ` :e.props.push(t);break;case ` block - map ` :{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case ` block - seq ` :{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case ` flow - collection ` :{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type=== ` document ` ||e.type=== ` block - map ` ||e.type=== ` block - seq ` )&&(t.type=== ` block - map ` ||t.type=== ` block - seq ` )){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&hZ(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!== ` comment ` ||e.i
Line truncated
` )+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf( `
` ,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case ` newline ` :if(this.onKeyLine=!1,t.value){let n= ` end ` in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type=== ` comment ` ?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case ` space ` :case ` comment ` :if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){aZ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!== ` seq - item - ind ` ,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case ` newline ` :n.push(r);break;case ` space ` :break;case ` comment ` :i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case ` anchor ` :case ` tag ` :r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case ` explicit - key - ind ` :!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case ` map - value - ind ` :if(t.explicitKey){if(!t.sep){if(eZ(t.start, ` newline ` ))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=iZ(t.start);this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(eZ(t.sep, ` map - value - ind ` ))this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(nZ(t.key)&&!eZ(t.sep, ` newline ` )){let e=iZ(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):eZ(t.sep, ` map - value - ind ` )?this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type=== ` block - seq ` ){if(!t.explicitKey&&t.sep&&!eZ(t.sep, ` newline ` )){yield*this.pop({type: ` error ` ,offset:this.offset,message: ` Unexpected block - seq - ind on same line with key ` ,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case ` newline ` :if(t.value){let n= ` end ` in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type=== ` comment ` ?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case ` space ` :case ` comment ` :if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){aZ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case ` anchor ` :case ` tag ` :if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case ` seq - item - ind ` :if(this.indent!==e.indent)break;t.value||eZ(t.start, ` seq - item - ind ` )?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type=== ` flow - error - end ` ){let e;do yield*this.pop(),e=this.peek(1);while(e?.type=== ` flow - collection ` )}else if(e.end.length===0){switch(this.type){case ` comma ` :case ` explicit - key - ind ` :!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case ` map - value - ind ` :!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case ` space ` :case ` comment ` :case ` newline ` :case ` anchor ` :case ` tag ` :!t||t.value?e.ite
Line truncated
` ,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case ` newline ` :if(this.onKeyLine=!1,t.value){let n= ` end ` in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type=== ` comment ` ?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case ` space ` :case ` comment ` :if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){yZ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!== ` seq - item - ind ` ,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case ` newline ` :n.push(r);break;case ` space ` :break;case ` comment ` :i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case ` anchor ` :case ` tag ` :r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case ` explicit - key - ind ` :!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case ` map - value - ind ` :if(t.explicitKey){if(!t.sep){if(mZ(t.start, ` newline ` ))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=vZ(t.start);this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(mZ(t.sep, ` map - value - ind ` ))this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(gZ(t.key)&&!mZ(t.sep, ` newline ` )){let e=vZ(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):mZ(t.sep, ` map - value - ind ` )?this.stack.push({type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type=== ` block - seq ` ){if(!t.explicitKey&&t.sep&&!mZ(t.sep, ` newline ` )){yield*this.pop({type: ` error ` ,offset:this.offset,message: ` Unexpected block - seq - ind on same line with key ` ,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case ` newline ` :if(t.value){let n= ` end ` in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type=== ` comment ` ?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case ` space ` :case ` comment ` :if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){yZ(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case ` anchor ` :case ` tag ` :if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case ` seq - item - ind ` :if(this.indent!==e.indent)break;t.value||mZ(t.start, ` seq - item - ind ` )?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type=== ` flow - error - end ` ){let e;do yield*this.pop(),e=this.peek(1);while(e?.type=== ` flow - collection ` )}else if(e.end.length===0){switch(this.type){case ` comma ` :case ` explicit - key - ind ` :!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case ` map - value - ind ` :!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case ` space ` :case ` comment ` :case ` newline ` :case ` anchor ` :case ` tag ` :!t||t.value?e.ite
Line truncated
` )+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf( `
` ,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :return this.flowScalar(this.type);case ` block - scalar - header ` :return{type: ` block - scalar ` ,offset:this.offset,indent:this.indent,props:[this.sourceToken],source: ` ` };case ` flow - map - start ` :case ` flow - seq - start ` :return{type: ` flow - collection ` ,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case ` seq - item - ind ` :return{type: ` block - seq ` ,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case ` explicit - key - ind ` :{this.onKeyLine=!0;let t=iZ(rZ(e));return t.push(this.sourceToken),{type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case ` map - value - ind ` :{this.onKeyLine=!0;let t=iZ(rZ(e));return{type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!== ` comment ` ||this.indent<=t?!1:e.every(e=>e.type=== ` newline ` ||e.type=== ` space ` )}*documentEnd(e){this.type!== ` doc - mode ` &&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type=== ` newline ` &&(yield*this.pop()))}*lineEnd(e){switch(this.type){case ` comma ` :case ` doc - start ` :case ` doc - end ` :case ` flow - seq - end ` :case ` flow - map - end ` :case ` map - value - ind ` :yield*this.pop(),yield*this.step();break;case ` newline ` :this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type=== ` newline ` &&(yield*this.pop())}}};function cZ(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new $ X||null,prettyErrors:t}}function lZ(e,t={}){let{lineCounter:n,prettyErrors:r}=cZ(t),i=new sZ(n?.addNewLine),a=new zX(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!== ` silent ` ){o.errors.push(new tX(t.range.slice(0,2), ` MULTIPLE _DOCS ` , ` Source contains multiple documents ; please use YAML . parseAllDocuments ( ) ` ));break}return r&&n&&(o.errors.forEach(rX(e,n)),o.warnings.forEach(rX(e,n))),o}function uZ(e,t,n){let r;typeof t== ` function ` ?r=t:n===void 0&&t&&typeof t== ` object ` &&(n=t);let i=lZ(e,n);if(!i)return null;if(i.warnings.forEach(e=>NJ(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!== ` silent ` )throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function dZ(e,t,n){let r=null;if(typeof t== ` function ` ||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n== ` string ` &&(n=n.length),typeof n== ` number ` ){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Oq(e)&&!r?e.toString(n):new QY(e,r,n).toString(n)}function fZ(e,t){let n=new Map;for(let e of t)n.set(e.name,[...n.get(e.name)??[],e]);return{edges:e.edges,nodes:e.nodes.map(e=>{let{stage:t,occurrence:r}=e.data,i=t===void 0?void 0:n.get(t)?.[r??0];return i?{...e,data:{...e.data,run:i}}:e})}}var pZ=120,mZ=280,hZ={"agent.run": ` Agent ` ,"command.run": ` Run commands ` ,"repo.prepare": ` Prepare worktree ` ,"repo.commit": ` Commit ` ,"repo.open-pr": ` Open pull request ` ,"gate.repository": ` Repository gate ` ,"gate.diff-size": ` Diff size gate ` ,"gate.diff-rules": ` Diff rules gate ` ,"forge.comment": ` Comment ` ,"forge.close-issue": ` Close issue ` ,"human.approve": ` Human approval ` ,"workflow.call": ` Call workflow ` ,"workflow.handoff": ` Hand off ` ,"workflow.finish": ` Finish ` ,"review.pr": ` Review pull request ` ,"review.start-round": ` Start review round ` ,"review.reply": ` Reply to review ` };function gZ(e){return hZ[e]??e}var _Z=/ \{ \{ \s *steps \. ([A-Za-z0-9_-]+) \. [^}]* \} \} /g;function vZ(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function yZ(e,t){let n=e=>typeof t[e]== ` string ` ?t[e]: ` ` ;switch(e){case ` agent . run ` :return[n( ` role ` )|| ` builder ` ,t.read_only? ` read - only ` :n( ` gate ` )? ` gated : $ { n ( ` gate ` ) } ` : ` ` ].filter(Boolean).join( ` · ` );case ` repo . commit ` :return[n( ` message ` ),t.push? ` push ` : ` ` ].filter(Boolean).join( ` · ` );case ` workflow . call ` :case ` workflow . handoff ` :return n( ` workflow ` );case ` workflow . finish ` :return n( ` status ` )|| ` completed ` ;case ` human . approve ` :return n( ` then ` )? ` then $ { n ( ` then ` ) } ` : ` ` ;case ` gate . repository ` :return n( ` expect ` )=== ` test - failure ` ? ` tests must fail ` :t.repair? ` repair if red ` : ` ` }return ` ` }function bZ(e,t){let n=JSON.stringify(e??{})+ ` ` +(typeof t== ` string ` ? ` { { $ { t . replace ( /^!/ , ` ` ) } } } ` : ` ` );return[...new Set([...n.matchAll(_Z)].map(e=>e[1]))]}function xZ(e){let t=lZ(e).toJS(),n=vZ(t)&&Array.isArray(t.steps)?t.steps:[],r=[],i=[],a=new Map,o=[],s= ` start ` ;r.push({id:s,type: ` step ` ,position:{x:0,y:0},data:{kind: ` start ` ,key: ` start ` ,title: ` Starts when ` ,type: ` ` ,detail: ` ` }});let c=[s],l=1,u=new Map,d=e=>{let t=u.get(e)??0;return u.set(e,t+1),t},f=(e,t,n,i,s,c,l)=>{let u=vZ(e)?e:{},f=typeof u.type== ` string ` ?u.type: ` ` ,p=vZ(u.settings)?u.settings:{},m=typeof u.id== ` string ` ?u.id: ` ` ,h= ` step - $ { t } ` ;r.push({id:h,type: ` step ` ,position:{x:n,y:i},data:{kind: ` step ` ,key:m||t,title:m||gZ(f),type:f,detail:yZ(f,p),when:typeof u.when== ` string ` ?u.when:void 0,retry:vZ(u.ret
Line truncated
` ).map((e,t)=>({number:t+1,text:e,tokens:BZ(e)}))}var RZ=/^( \s *)(- \s +)?/,zZ=/^([^:# \s ][^:#]*?)(:)( \s *)(.*) $ /;function BZ(e){let{code:t,comment:n}=VZ(e),r=HZ(t);return n&&r.push({text:n,kind: ` comment ` }),r}function VZ(e){let t= ` ` ;for(let n=0;n<e.length;n++){let r=e[n];if(t){r===t&&(t= ` ` );continue}if(r=== ` "`||r===`'`){t=r;continue}if(r===`#`&&(n===0||/\s/.test(e[n-1]??``)))return{code:e.slice(0,n),comment:e.slice(n)}}return{code:e,comment:``}}function HZ(e){if(!e)return[];let t=[],n=RZ.exec(e);n?.[1]&&t.push({text:n[1],kind:`plain`}),n?.[2]&&t.push({text:n[2],kind:`punct`});let r=e.slice(n?.[0].length??0);if(!r)return t;let i=zZ.exec(r);return i?(t.push({text:i[1]??``,kind:`key`}),t.push({text:i[2]??`:`,kind:`punct`}),i[3]&&t.push({text:i[3],kind:`plain`}),[...t,...UZ(i[4]??``)]):[...t,...UZ(r)]}function UZ(e){if(!e)return[];let t=/^(" [ ^ "]*" ? | '[^' ] * ' ? ) ( [ \ s \ S ] * ) $ / . exec ( e ) ; if ( ! t ) return [ { text : e , kind : ` plain ` } ] ; let n = [ { text : t [ 1 ] ? ? ` ` , kind : ` string ` } ] ; return t [ 2 ] && n . push ( { text : t [ 2 ] , kind : ` plain ` } ) , n } function WZ ( e ) { return e . split ( `
` )[0]?.trim()|| ` invalid YAML ` }function GZ(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function KZ(e){return typeof e== ` string ` &&e.trim()!== ` ` }var qZ={class: ` flex h - [ 560 px ] flex - col gap - 3 overflow - y - auto rounded - lg border border - border bg - card p - 3 text - sm ` },JZ={class: ` flex items - start gap - 2 ` },YZ={class: ` min - w - 0 ` },XZ={class: ` truncate font - medium ` },ZZ={class: ` font - mono text - [ 11 px ] text - fg - subtle ` },QZ={key:0,class: ` rounded bg - danger / 10 px - 2 py - 1 text - xs text - danger ` ,role: ` alert ` }, $ Z={class: ` flex flex - col gap - 1 ` },eQ=[ ` title ` ],tQ=[ ` checked ` , ` onChange ` ],nQ={key:0,class: ` block text - xs text - fg - subtle ` },rQ={key:1,class: ` flex flex - col gap - 1 ` },iQ={class: ` text - xs text - muted - foreground ` },aQ=[ ` value ` , ` onChange ` ],oQ=[ ` value ` ],sQ={key:0,class: ` text - xs text - danger ` },cQ={key:6,class: ` text - xs text - fg - subtle ` },lQ={key:1,class: ` space - y - 1 ` },uQ={class: ` flex items - center gap - 1 text - xs text - muted - foreground ` },dQ={class: ` flex flex - wrap gap - 1 ` },fQ=[ ` onClick ` ],pQ=[ ` onClick ` ],mQ={class: ` space - y - 2 ` },hQ={class: ` mt - 2 flex flex - col gap - 1 ` },gQ={class: ` flex flex - col gap - 1 ` },_Q=[ ` value ` ],vQ={class: ` flex flex - col gap - 1 ` },yQ={class: ` mt - auto flex flex - wrap gap - 1.5 border - t border - border pt - 3 ` },bQ={key:1,class: ` text - xs text - fg - subtle ` },xQ=[ ` open ` ],SQ={class: ` cursor - pointer text - xs font - medium ` },CQ={class: ` text - [ 11 px ] tracking - wide text - fg - subtle uppercase ` },wQ={class: ` flex flex - wrap gap - 1 ` },TQ=[ ` title ` , ` onClick ` ],EQ=L({__name: ` StepPanel ` ,props:{yaml:{},path:{},vocabulary:{}},emits:[ ` update : yaml ` , ` select ` ],setup(e,{emit:t}){let n=e,r=t,i=Y(()=>n.path?SZ(n.yaml,n.path):void 0),a=Y(()=>typeof i.value?.type= =` string ` ?i.value.type: ` ` ),o=Y(()=>n.vocabulary.find(e=>e.name===a.value)),s=Y(()=>typeof i.value?.settings== ` object ` &&i.value.settings!==null?i.value.settings:{}),c=[ ` mission ` , ` workflow ` , ` message ` , ` body ` , ` plan ` , ` then ` , ` status ` , ` detail ` , ` run ` , ` rules ` ],l=Y(()=>Object.entries(o.value?.settings?.properties??{}).sort(([e],[t])=>{let n=e=>c.includes(e)?c.indexO f(e):c.length;return n(e)-n(t)})),u=Y(()=>n.path?DZ(n.yaml,n.path):[]),d=Y(()=>(n.path?.length??0)>2),f=Y(()=>o.value?.settings&&i.value?.settings?FZ(i.value.settings,o.value.settings, ` settings ` ): ` ` ),p=N(!0);I(()=>JSON.stringify(n.path),()=>p.value=!n.path,{immediate:!0});let m=Y(()=>{let e=new Map;for(let t of n.vocabulary){let n=t.nam e.sp lit( ` . ` )[0];e.set(n,[...e.get(n)??[],t])}return[...e.entries()]});function h(e){let{id:t,type:i,...a}=e;n.path&&r( ` update : yaml ` ,CZ(n.yaml,n.path,{id:t,type:i,...a}))}function g(e,t){h({...i.value,[e]:t})}function _(e,t){h({...i.value,settings:{...s.value,[e]:t}})}function v(e){let t=n.path &&n .path.length===2?Number(n.path[1]):2**53-1,i=wZ(n.yaml,t,e);r( ` update : yaml ` ,i.source),r( ` select ` ,i.path)}function y(e){if(!n.path)return;let t=EZ(n.yaml,n.path,e);r( ` update : yaml ` ,t.source),r( ` select ` ,t.path)}function b(){n.path&&(r( ` update : yaml ` ,TZ(n.yaml,n.path)),r( ` select ` ,null))}let x=N(null);function S(e,t){let n=x.value??l.value.find(([,e])=>e.type=== ` string ` )?.[0]; if(!n )return;let r=typeof s.value[n]== ` string ` ?s.value[n]: ` ` ,i=t=== ` summary ` ? ` { { steps . $ { e } . summary } } ` : ` { { steps . $ { e } . result } } ` ;_(n,r? ` $ { r . trimEnd ( ) } $ { i } ` :i)}let C=/mission|body|detail|plan|rules/;function w(e,t){return t.type=== ` string ` ?t.enum? ` select ` :C.test(e)? ` text ` : ` line ` :t.type=== ` boolean ` ? ` boolean ` :t.type=== ` integer ` ||t.type=== ` number ` ? ` number ` :t.type=== ` array ` &&t.items?.type=== ` string ` ? ` lines ` : ` yaml ` }let T=N({});function E(e,t){try{_(e,t.trim()?uZ(t):void 0),T.value={...T.value,[e]: ` ` }}catch(t){T.value={...T.value,[e]:String(t.message).split( `
` )[0]}} }function D (e){return e===void 0? ` ` :dZ(e).trimEnd( )}function O(e,t ){return t.title??e.replaceAll( ` _ ` , ` ` ).replace(/^./,e=>e.toUpperCase())}return(t,n)=>(V(),H( ` aside ` ,qZ,[i.value&&e.path?(V(),H(B,{key:0},[W( ` div ` ,JZ,[W( ` div ` ,YZ,[W( ` div ` ,XZ,M(P(gZ)(a.value)),1),W( ` div ` ,ZZ,M(a.value),1)]),G(P(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` icon ` ,class: ` ml - auto size - 7 ` ,"aria-label": ` Close ` ,onClick:n[0]||=e=>r( ` select ` ,null)},{default:F(()=>[G(P(cf))]),_:1})]),f.value?(V(),H( ` p ` ,QZ,M(f.value),1)):q( ` ` ,!0),W( ` label ` , $ Z,[n[8]||=W( ` span ` ,{ class: ` text - xs text - muted - foreground ` }, ` Step id ` ,-1),G(P(hk),{"model-value":i.value.id?? ` ` ,class: ` h - 8 font - mono ` ,placeholder: ` name it so later steps can use its result ` ,"onUpdate:modelValue":n[1]||=e=>g( ` id ` ,String(e))},null,8, [` model - value ` ])]),(V(!0),H(B,null,R(l.value,([e,t])=>(V(),H(B,{key:e},[w(e,t)=== ` boolean ` ?(V(),H( ` label ` ,{key:0, class:` flex items - start gap - 2 ` ,title:t.description},[W( ` input ` ,{type: ` checkbox ` ,class: ` mt - 0.5 ` ,checked:s.value[e]===!0,onChange:t=>_(e,t.target.checked||void 0)},null,40,tQ),W( ` span ` ,null,[K(M(O(e,t)),1),t.description?(V(),H( ` span ` ,nQ,M(t.description),1)):q( ` ` ,!0)])],8,eQ)):(V(),H( ` label ` ,rQ,[W( ` span ` ,iQ,M(O(e,t)),1),w(e,t)=== ` select ` ?(V(),H( ` select ` ,{key:0,class: ` h - 8 rounded - md border border - input bg - background px - 2 ` ,value:s.value[e]?? ` ` ,onChange:t=>_(e,t.target.value||void 0)},[n[9]||=W( ` option ` ,{value: ` ` } ,` ( default ) ` ,-1),(V(!0),H(B,null,R(t.enum,e=>(V(),H( ` option ` ,{key:e,value:e},M(e),9,oQ))),128))],40,aQ)):w(e,t) ===` text ` ?(V(),U(P(pT),{key:1,"model-value":s.value[e]? ? ` ` ,class: ` min - h - 28 font - mono text - xs ` ,onFocus:t=>x.value=e,"onUpdate:modelValue":t=>_(e,String(t))},null,8,[ ` model - value ` , ` onFocus ` , ` onUpdate : modelValue ` ])):w(e,t) ===` line ` ?(V(),U(P(hk),{key:2,"model-value":s.value[e]? ?` ` ,class :` h - 8 ` ,onFocus:t=>x.value=e,"onUpdate:modelValue":t=>_(e,String(t))},null,8,[ ` model - value ` , ` onFocus ` , ` onUpdate : modelValue ` ])):w(e,t)=== ` number ` ?(V(),U(P(hk),{key:3,type: ` number ` ,"model-value":s .value[e]?? ` ` ,class: ` h - 8 ` ,"onUpdate:modelValue":t=>_(e,t= ==` ` ?void 0:Number(t))},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):w(e,t)=== ` lines ` ?(V(),U(P(pT),{key:4,"model-value":Array.isArray(s .value[e])?s.value[e].join (`
` ): ` ` ,class: ` min - h - 16 font - mono text - xs ` ,placeholder: ` one per line ` ,"onUpdate:modelValue":t=>_(e,String(t).split (`
` ).filter(Boolean))},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):(V(),H(B,{key:5},[G(P(pT),{"model-value":D(s.value[e]),class: ` min - h - 24 font - mono text - xs ` ,placeholder: ` YAML ` ,onChange:t=>E(e,t.target.value)},null,8,[ ` model - value ` , ` onChange ` ]),T.value[e]?(V(),H( ` span ` ,sQ,M(T.value[e]),1)):q( ` ` ,!0)],64)),t.description?(V(),H( ` span ` ,cQ,M(t.description),1)):q( ` ` ,!0)]))],64))),128)),u.value.length&&l.value.some(([,e])=>e.type=== ` string ` )?(V(),H( ` div ` ,lQ,[W( ` span ` ,uQ,[G(P(Ad),{class: ` size - 3 ` ,"aria-hidden": ` true ` }),n[10]||=K( ` Use an earlier step ' s result ` ,-1)]),W( ` div ` ,dQ,[(V(!0),H(B,null,R(u.value,e=>(V(),H(B,{key:e},[W( ` button ` ,{type: ` button ` ,class: ` rounded bg - secondary px - 1.5 py - 0.5 font - mono text - [ 11 px ] hover : bg - secondary / 70 ` ,onClick:t=>S(e, ` summary ` )},M(e)+ ` . summary ` ,9,fQ),W( ` button ` ,{type: ` button ` ,class: ` rounded bg - secondary px - 1.5 py - 0.5 font - mono text - [ 11 px ] hover : bg - secondary / 70 ` ,onClick:t=>S(e, ` result ` )},M(e)+ ` . result ` ,9,pQ)],64))),128))])])):q( ` ` ,!0),W( ` details ` ,mQ,[n[15]||=W( ` summary ` ,{class: ` cursor - pointer text - xs text - muted - foreground ` }, ` When , failure and retry ` ,-1),W( ` label ` ,hQ,[n[11]||=W( ` span ` ,{class: ` text - xs text - muted - foreground ` }, ` Run only when ` ,-1),G(P(hk),{"model-value":i.value.when?? ` ` ,class: ` h - 8 font - mono ` ,placeholder: ` steps . assess . result . fit ` ,"onUpdate:modelValue":n[2]||=e=>g( ` when ` ,String(e))},null,8,[ ` model - value ` ])]),W( ` label ` ,gQ,[n[13]||=W( ` span ` ,{class: ` text - xs text - muted - foreground ` }, ` If it fails ` ,-1),W( ` select ` ,{class: ` h - 8 rounded - md border border - input bg - background px - 2 ` ,value:i.value.on_failure?? ` ` ,onChange:n[3]||=e=>g( ` on _failure ` ,e.target.value||void 0)},[...n[12]||=[W( ` option ` ,{value: ` ` }, ` Park the task ` ,-1),W( ` option ` ,{value: ` continue ` }, ` Continue to the next step ` ,-1)]],40,_Q)]),W( ` label ` ,vQ,[n[14]||=W( ` span ` ,{class: ` text - xs text - muted - foreground ` }, ` Attempts ` ,-1),G(P(hk),{type: ` number ` ,min: ` 1 ` ,max: ` 10 ` ,"model-value":i.value.retry?.attempts?? ` ` ,class: ` h - 8 ` ,"onUpdate:modelValue":n[4]||=e=>g( ` retry ` ,e=== ` ` ?void 0:{...i.value.retry,attempts:Number(e)})},null,8,[ ` model - value ` ])])]),W( ` div ` ,yQ,[G(P(Q),{type: ` button ` ,variant: ` outline ` ,size: ` sm ` ,onClick:n[5]||=e=>y(-1)},{default:F(()=>[G(P(dd)),n[16]||=K( ` Up ` ,-1)]),_:1}),G(P(Q),{type: ` button ` ,variant: ` outline ` ,size: ` sm ` ,onClick:n[6]||=e=>y(1)},{default:F(()=>[G(P(sd)),n[17]||=K( ` Down ` ,-1)]),_:1}),G(P(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` sm ` ,class: ` ml - auto text - danger ` ,onClick:b},{default:F(()=>[G(P( $ d)),n[18]||=K( ` Remove ` ,-1)]),_:1})])],64)):(V(),H( ` div ` ,bQ, ` Select a step to edit it . ` )),d.value?q( ` ` ,!0):(V(),H( ` details ` ,{key:2,open:p.value,class: ` space - y - 2 border - t border - border pt - 3 ` ,onToggle:n[7]||=e=>p.value=e.target.open},[W( ` summary ` ,SQ,M(i.value? ` Add a step after this one ` : ` Add a step ` ),1),(V(!0),H(B,null,R(m.value,([e,t])=>(V(),H( ` div ` ,{key:e,class: ` space - y - 1 ` },[W( ` div ` ,CQ,M(e),1),W( ` div ` ,wQ,[(V(!0),H(B,null,R(t,e=>(V(),H( ` button ` ,{key:e.name,type: ` button ` ,class: ` flex items - center gap - 1 rounded border border - border px - 1.5 py - 0.5 text - xs hover : bg - secondary ` ,title:e.name,onClick:t=>v(e.name)},[G(P(Vd),{class: ` size - 3 ` ,"aria-hidden": ` true ` }),K(M(P(gZ)(e.name)),1)],8,TQ))),128))])]))),128))],40,xQ))]))}});function DQ(e){return Fe()?(Ie(e),!0):!1}function OQ(e){return typeof e== ` function ` ?e():P(e)}var kQ=typeof window< ` u ` &&typeof document< ` u ` ,AQ=e=>e!==void 0,jQ=Object.prototype.toString,MQ=e=>jQ.call(e)=== ` [ object Object ] ` ,NQ=()=>{};function PQ(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var FQ=e=>e();function IQ(e=FQ){let t=N(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive: $ t(t),pause:n,resume:r,eventFilter:(...n)=>{t.value&&e(...n)}}}function LQ(e,t=!1,n= ` Timeout ` ){return new Promise((r,i)=>{setTimeout(t?()=>i(n):r,e)})}function RQ(e,t,n={}){let{eventFilter:r=FQ,...i}=n;return I(e,PQ(r,t),i)}function zQ(e,t,n={}){let{eventFilter:r,...i}=n,{eventFilter:a,pause:o,resume:s,isActive:c}=IQ(r);return{stop:RQ(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:c}}function BQ(e,t={}){if(!dn(e))return xn(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=bn(()=>({get(){return e.value[r]},set(n){if(OQ(t.replaceRef)??!0){if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}}else e.value[r]=n}}));return n}function VQ(e,t=!1){function n(n,{flush:r= ` sync ` ,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=[new Promise(a=>{s=I(e,e=>{n(e)!==t&&(s?.(),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&c.push(LQ(a,o).then(()=>OQ(e)).finally(()=>s?.())),Promise.race(c)}function r(r,i){if(!dn(r))return n(e=>e===r,i);let{flush:a= ` sync ` ,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=[new Promise(n=>{l=I([e,r],([e,r])=>{t!==(e===r)&&(l?.(),n(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&u.push(LQ(s,c).then(()=>OQ(e)).finally(()=>(l?.(),OQ(e)))),Promise.
Line truncated
` ,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case ` alias ` :case ` scalar ` :case ` single - quoted - scalar ` :case ` double - quoted - scalar ` :return this.flowScalar(this.type);case ` block - scalar - header ` :return{type: ` block - scalar ` ,offset:this.offset,indent:this.indent,props:[this.sourceToken],source: ` ` };case ` flow - map - start ` :case ` flow - seq - start ` :return{type: ` flow - collection ` ,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case ` seq - item - ind ` :return{type: ` block - seq ` ,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case ` explicit - key - ind ` :{this.onKeyLine=!0;let t=vZ(_Z(e));return t.push(this.sourceToken),{type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case ` map - value - ind ` :{this.onKeyLine=!0;let t=vZ(_Z(e));return{type: ` block - map ` ,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!== ` comment ` ||this.indent<=t?!1:e.every(e=>e.type=== ` newline ` ||e.type=== ` space ` )}*documentEnd(e){this.type!== ` doc - mode ` &&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type=== ` newline ` &&(yield*this.pop()))}*lineEnd(e){switch(this.type){case ` comma ` :case ` doc - start ` :case ` doc - end ` :case ` flow - seq - end ` :case ` flow - map - end ` :case ` map - value - ind ` :yield*this.pop(),yield*this.step();break;case ` newline ` :this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type=== ` newline ` &&(yield*this.pop())}}};function SZ(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new pZ||null,prettyErrors:t}}function CZ(e,t={}){let{lineCounter:n,prettyErrors:r}=SZ(t),i=new xZ(n?.addNewLine),a=new $ X(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!== ` silent ` ){o.errors.push(new gX(t.range.slice(0,2), ` MULTIPLE _DOCS ` , ` Source contains multiple documents ; please use YAML . parseAllDocuments ( ) ` ));break}return r&&n&&(o.errors.forEach(vX(e,n)),o.warnings.forEach(vX(e,n))),o}function wZ(e,t,n){let r;typeof t== ` function ` ?r=t:n===void 0&&t&&typeof t== ` object ` &&(n=t);let i=CZ(e,n);if(!i)return null;if(i.warnings.forEach(e=>JJ(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!== ` silent ` )throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function TZ(e,t,n){let r=null;if(typeof t== ` function ` ||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n== ` string ` &&(n=n.length),typeof n== ` number ` ){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Uq(e)&&!r?e.toString(n):new pX(e,r,n).toString(n)}var EZ={agent:sd,command:qd,repo:Sd,gate:Wd,forge:Ad,human: $ d,review:bd,workflow:nf},DZ={agent: ` Agents ` ,command: ` Commands ` ,repo: ` Repository ` ,gate: ` Checks ` ,forge: ` Issues and PRs ` ,human: ` People ` ,review: ` Review ` ,workflow: ` Flow ` };function OZ(e){return EZ[e.split( ` . ` )[0]]??nf}function kZ(e){return Object.keys(DZ).map(t=>({title:DZ[t],icon:EZ[t],types:e.filter(e=>e.split( ` . ` )[0]===t)})).filter(e=>e.types.length)}function AZ(e,t){let n=CZ(e).getIn(t,!0);if(Wq(n))return n.toJSON()}function jZ(e,t,n){let r=CZ(e);return r.setIn(t,r.createNode(LZ(n))),r.toString()}function MZ(e,t,n){let r=CZ(e),i=r.get( ` steps ` ,!0);if(qq(i)||(r.set( ` steps ` ,r.createNode([])),i=r.get( ` steps ` ,!0)),!qq(i))return{source:e,path:[]};let a=Math.min(Math.max(t+1,0),i.items.length);return i.items.splice(a,0,r.createNode({type:n})),{source:r.toString(),path:[ ` steps ` ,a]}}function NZ(e,t){let n=CZ(e),r=n.getIn(t.slice(0,-1),!0),i=t.at(-1);if(!qq(r)||typeof i!= ` number ` )return{source:e,path:t};let a=n.createNode(n.getIn(t));return Wq(a)&&a.delete( ` id ` ),r.items.splice(i+1,0,a),{source:n.toString(),path:[...t.slice(0,-1),i+1]}}function PZ(e,t){let n=CZ(e);n.deleteIn(t);let r=t.slice(0,-1);if(r.length>2){let e=n.getIn(r,!0);qq(e)&&e.items.length===0&&n.deleteIn(r)}return n.toString()}function FZ(e,t,n){let r=CZ(e),i=r.getIn(t.slice(0,-1),!0),a=t.at(-1);if(!qq(i)||typeof a!= ` number ` )return{source:e,path:t};let o=a+n;if(o<0||o>=i.items.length)return{source:e,path:t};let[s]=i.items.splice(a,1);return i.items.splice(o,0,s),{source:r.toString(),path:[...t.slice(0,-1),o]}}function IZ(e,t){let n=CZ(e).toJS(),r=Array.isArray(n?.steps)?n.steps:[],i=typeof t[1]== ` number ` ?t[1]:r.length,a=[],o=e=>{if(typeof e!= ` object ` ||!e)return;let t=e;if(typeof t.id== ` string ` &&a.push(t.id),typeof t.parallel== ` object ` &&t.parallel!==null)for(let e of Object.values(t.parallel))Array.isArray(e)&&e.forEach(o)};if(r.slice(0,i).forEach(o),t.length===5){let e=r[i]?.parallel?.[t[3]];Array.isArray(e)&&e.slice(0,t[4]).forEach(o)}return a}function LZ(e){if(Array.isArray(e))return e.map(LZ);if(typeof e!= ` object ` ||!e)return e;let t={};for(let[n,r]of Object.entries(e)){if(r===void 0||r=== ` ` ||r===null)continue;let e=LZ(r);(typeof e!= ` object ` ||!e||Array.isArray(e)||Object.keys(e).length!==0)&&(t[n]=e)}return t}function RZ(e,t){let n=new Map;for
Line truncated
` ).find(e=>e.trim())?.trim()}}function qZ(e,t){let n=JSON.stringify(e??{})+ ` ` +(typeof t== ` string ` ? ` { { $ { t . replace ( /^!/ , ` ` ) } } } ` : ` ` );return[...new Set([...n.matchAll(UZ)].map(e=>e[1]))]}function JZ(e){let t=CZ(e).toJS(),n=WZ(t)&&Array.isArray(t.steps)?t.steps:[],r=[],i=[],a=new Map,o=[],s= ` start ` ;r.push({id:s,type: ` step ` ,position:{x:0,y:0},data:{kind: ` start ` ,key: ` start ` ,title: ` Starts when ` ,type: ` ` ,detail: ` ` }});let c=[s],l=1,u=new Map,d=e=>{let t=u.get(e)??0;return u.set(e,t+1),t},f=(e,t,n,i,s,c,l)=>{let u=WZ(e)?e:{},f=typeof u.type== ` string ` ?u.type: ` ` ,p=WZ(u.settings)?u.settings:{},m=typeof u.id== ` string ` ?u.id: ` ` ,h= ` step - $ { t } ` ;r.push({id:h,type: ` step ` ,position:{x:n,y:i},data:{kind: ` step ` ,key:m||t,title:m||HZ(f),type:f,detail:GZ(f,p),summary:KZ(p),when:typeof u.when== ` string ` ?u.when:void 0,retry:WZ(u.retry)&&typeof u.retry.attempts== ` number ` ?u.retry.attempts:void 0,continues:u.on_failure=== ` continue ` ,branch:s,path:l,...c??{stage:m||f,occurrence:d(m||f)}}}),m&&a.set(m,h);for(let e of qZ(u.settings,u.when))o.push({from:e,to:h});return h},p=(e,t,n)=>{e.forEach((r,a)=>i.push({id: ` flow - $ { r } - $ { t } ` ,source:r,target:t,kind: ` flow ` ,insertAfter:a===e.length-1?n:void 0}))};for(let[e,t]of n.entries()){if(WZ(t)&&WZ(t.parallel)){let n=Object.entries(t.parallel),r=typeof t.id== ` string ` ?t.id: ` parallel ` ,i={stage:r,occurrence:d(r)},a=[],o=0;n.forEach(([t,r],s)=>{let u=(s-(n.length-1)/2)*BZ,d=c,m=c;(Array.isArray(r)?r:[]).forEach((r,a)=>{let c=f(r, ` $ { e + 1 } - $ { t } - $ { a + 1 } ` ,u,(l+a)*zZ,t,i,[ ` steps ` ,e, ` parallel ` ,t,a]);p(d,c,d===m&&s===n.length-1?e-1:void 0),d=[c],o=Math.max(o,a+1)}),a.push(...d)}),c=a,l+=Math.max(o,1);continue}let n=f(t,String(e+1),0,l*zZ,void 0,void 0,[ ` steps ` ,e]);p(c,n,e-1),c=[n],l++}r.push({id: ` add - end ` ,type: ` add ` ,position:{x:104,y:l*zZ-24},data:{kind: ` step ` ,key: ` add ` ,title: ` ` ,type: ` ` ,detail: ` ` }}),p(c, ` add - end ` );for(let{from:e,to:t}of o){let n=a.get(e);n&&(i.some(e=>e.kind=== ` flow ` &&e.source===n&&e.target===t)||i.push({id: ` data - $ { n } - $ { t } ` ,source:n,target:t,kind: ` data ` ,label:e,offset:24+14*i.filter(e=>e.kind=== ` data ` ).length,sourceHandle: ` data - out ` ,targetHandle: ` data - in ` }))}return{nodes:r,edges:i}}function YZ(e){return e.ok? ` Valid ` :e.line? ` Line $ { e . line } : $ { e . message } ` :e.message}function XZ(e,t=[]){let n=CZ(e),r=n.errors[0];if(r)return{ok:!1,message:uQ(r.message),line:r.linePos?.[0]?.line};let i=n.toJS();if(!dQ(i))return{ok:!1,message: ` A workflow is a mapping with an id and steps . ` };let a=typeof i.id== ` string ` ?i.id.trim(): ` ` ;if(!a)return{ok:!1,message: ` workflow id is required ` };let o=i.steps;if(o==null||o=== ` ` )return{ok:!1,message: ` workflow $ { a } has no steps ` };if(!Array.isArray(o))return{ok:!1,message: ` workflow $ { a } : steps must be a list ` };if(!o.length)return{ok:!1,message: ` workflow $ { a } has no steps ` };let s=new Map(t.map(e=>[e.name,e])),c=typeof i.repository== ` string ` &&i.repository.trim()?i.repository.trim(): ` required ` ,l=[],u=new Set;for(let[e,t]of o.entries()){let n= ` workflow $ { a } step $ { e + 1 } ` ;if(dQ(t)&&dQ(t.parallel)){for(let[e,r]of Object.entries(t.parallel)){if(!Array.isArray(r)||!r.length)return{ok:!1,message: ` $ { n } : branch $ { e } needs a list of steps ` };let t=new Set(u);for(let[i,a]of r.entries()){let r= ` $ { n } branch $ { e } step $ { i + 1 } ` ,o=eQ(a,r,s,c)||QZ(a,r,t);if(o)return{ok:!1,message:o}; $ Z(a,t)}for(let e of r) $ Z(e,u)} $ Z(t,u),l.push({index:e+1,type: ` parallel ` });continue}let r=eQ(t,n,s,c)||QZ(t,n,u);if(r)return{ok:!1,message:r}; $ Z(t,u),l.push({index:e+1,type:t.type.trim()})}return{ok:!0,id:a,steps:l}}var ZZ=/steps \. ([A-Za-z0-9_-]+)/g;function QZ(e,t,n){if(!dQ(e))return ` ` ;let r=JSON.stringify(e.settings??{})+ ` ` +(typeof e.when== ` string ` ?e.when: ` ` );for(let[,e]of r.matchAll(ZZ))if(!n.has(e))return ` $ { t } : no earlier step has id "${e}" ` ;return ` ` }function $ Z(e,t){dQ(e)&&typeof e.id== ` string ` &&t.add(e.id)}function eQ(e,t,n,r){if(!dQ(e)||!fQ(e.type))return ` $ { t } needs a type ` ;let i=e.type.trim(),a=n.get(i);return n.size&&!a? ` $ { t } : unknown step type "${i}" ` :a?.needs_repository&&r!== ` required ` ? ` $ { t } : "${i}" needs a repository , but the workflow ' s repository is $ { r } ` :!a||e.settings===void 0||e.settings===null? ` ` :a.settings?tQ(e.settings,a.settings, ` $ { t } settings ` ): ` $ { t } : "${i}" takes no settings ` }function tQ(e,t,n){let r=Array.isArray(e)? ` array ` :e===null? ` null ` :typeof e;switch(t.type){case ` object ` :if(!dQ(e))return ` $ { n } must be a mapping ` ;for(let[r,i]of Object.entries(e)){let e=t.properties?.[r]??t.additionalProperties;if(!e)return ` $ { n } : unknown setting "${r}" ` ;let a=tQ(i,e, ` $ { n } . $ { r } ` );if(a)return a}return ` ` ;case ` array ` :if(!Array.isArray(e))return ` $ { n } must be a list ` ;for(let[r,i]of e.entries()){let e=t.items?tQ(i,t.items, ` $ { n } [ $ { r } ] ` ): ` ` ;if(e)return e}return ` ` ;case ` string ` :return r=== ` string ` ?t.enum&&!t.enum.includes(e)&&!e.includes( ` { { ` )? ` $ { n } must be one of $ { t . enum . join ( ` , ` ) } ` : ` ` : ` $ { n } must be text ` ;case ` boolean ` :return r=== ` boolean ` ? ` ` : ` $ { n } must be true or false ` ;case ` integer ` :case ` number ` :return r=== ` number ` ? ` ` : ` $ { n } must be a number ` }return ` ` }function nQ(e){switch(e){case ` key ` :return ` text - fg - muted ` ;case ` string ` :return ` t Line truncated
` ).map((e,t)=>({number:t+1,text:e,tokens:oQ(e)}))}var iQ=/^( \s *)(- \s +)?/,aQ=/^([^:# \s ][^:#]*?)(:)( \s *)(.*) $ /;function oQ(e){let{code:t,comment:n}=sQ(e),r=cQ(t);return n&&r.push({text:n,kind: ` comment ` }),r}function sQ(e){let t= ` ` ;for(let n=0;n<e.length;n++){let r=e[n];if(t){r===t&&(t =` ` );continue}if(r=== ` "`||r===`'`){t=r;continue}if(r===`#`&&(n===0||/\s/.test(e[n-1]??``)))return{code:e.slice(0,n),comment:e.slice(n)}}return{code:e,comment:``}}function cQ(e){i f(! e)return[];let t=[],n=iQ.exec(e);n?.[1]&&t.push({text:n[1],kind:`plain`}),n?.[2]&&t.push({text:n[2],kind:`punct`});let r= e.slice(n?.[0].length??0);if(!r)return t;let i=aQ.exec(r);return i?(t.push({text:i[1]??``,kind:`key`}),t.push({text:i[2]??`:`,kind:`punct`}),i[3] &&t .push({text:i[3],kind:`plain`}),[...t,...lQ(i[4]??``)]):[...t,...lQ(r)]}function lQ(e){ if(!e )return[] ;let t=/^(" [ ^ "]*" ? | '[^' ] * ' ? ) ( [ \ s \ S ] * ) $ / . exec ( e ) ; if ( ! t ) return [ { text : e , kind : ` plain ` } ] ; let n = [ { text : t [ 1 ] ? ? ` ` , kind : ` string ` } ] ; return t [ 2 ] && n . push ( { text : t [ 2 ] , kind : ` plain ` } ) , n } function uQ ( e ) { return e . split ( `
` )[0]?.trim()|| ` invalid YAML ` }function dQ (e){return typeof e== ` object ` &&!!e&&!Array.isArray(e )}function fQ(e ){return typeof e== ` string ` &&e.trim()!== ` ` }var pQ={class: ` flex h - full w - [ 24 rem ] flex - col border - l border - border bg - card shadow - xl ` },mQ={class: ` flex items - center gap - 2.5 border - b border - border px - 4 py - 3 ` },hQ={class: ` flex size - 8 shrink - 0 items - center justify - center rounded - md bg - secondary text - primary ` },gQ={class: ` min - w - 0 flex - 1 ` },_Q=[ ` value ` , ` placeholder ` ],vQ={class: ` truncate font - mono text - [ 11 px ] text - fg - subtle ` },yQ={class: ` flex - 1 space - y - 5 overflow - y - auto px - 4 py - 4 ` },bQ={key:0,class: ` rounded - md bg - danger / 10 px - 2.5 py - 1.5 text - xs text - danger ` ,role: ` alert ` },xQ={key:1,class: ` space - y - 1.5 ` },SQ=[ ` title ` ],CQ=[ ` value ` ],wQ=[ ` value ` ],TQ={key:3,class: ` flex flex - wrap items - center gap - 1 pt - 0.5 ` },EQ=[ ` onClick ` ],DQ=[ ` onClick ` ],OQ={key:2,class: ` divide - y divide - border rounded - md border border - border ` },kQ=[ ` title ` ],AQ=[ ` value ` , ` onChange ` ],jQ=[ ` value ` ],MQ=[ ` value ` , ` onInput ` ],NQ=[ ` value ` , ` onFocus ` , ` onInput ` ],PQ=[ ` title ` ],FQ={key:0 ,class:` text - xs text - danger ` },IQ={class: ` space - y - 2 ` },LQ={class: ` divide - y divide - border rounded - md border border - border ` },RQ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },zQ=[ ` value ` ],BQ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },VQ= [` value ` ],HQ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },UQ=[ ` value ` ],WQ={ class:` flex items - center border - t border - border px - 4 py - 2.5 ` },GQ=L({__name: ` StepEditor ` ,props:{yaml:{},path:{},vocabulary:{}},emits:[ ` update : yaml ` , ` close ` , ` remove ` ],setup(e,{emit:t}){let n=e,r=t,i=X(()=>AZ(n.yaml,n.path)??{}),a=X(()=>typeof i.value.type== ` string ` ?i.value.type: ` ` ),o=X(()=>n.vocabulary.find(e=>e.name===a.value)),s=X(()=>typeof i.value.settings== ` object ` &&i.value.settings!==null?i.value.settings:{}),c=X(()=>IZ(n.yaml,n.path)),l=X(()=>o.value?.settings&&i.value.settings?tQ(i.value.settings,o.value.settings, ` settings ` ): ` ` ),u=[ ` mission ` , ` workflow ` , ` message ` , ` body ` , ` plan ` , ` then ` , ` status ` , ` detail ` , ` run ` , ` rules ` ],d=/mission|body|detail|plan|rules/;function f(e,t){return t.type ===` string ` ?t.enum? ` select ` :d.test(e) ?` text ` : ` line ` :t.type=== ` boolean ` ? ` boolean ` :t.type=== ` integer ` ||t.type=== ` number ` ? ` number ` :t.type ===` array ` &&t.items?.type=== ` string ` ? ` lines ` : ` yaml ` }let p=X(()=>{let e=Object.entries(o.value?.settings?.properties??{}).map(([e,t])=>({key:e,schema:t,kind:f(e,t)})),t=e.filter(e=>u.includes(e.key)&&e.kind!== ` boolean ` ).sort((e,t)=>u.indexOf(e.key)-u.indexOf(t.key))[0],n=e.filter(e=>e!==t);return{lead:t,compact:n.filter(e=>[ ` select ` , ` line ` , ` number ` , ` boolean ` ].includes(e.kind)),long:n.filter(e=>[ ` text ` , ` lines ` , ` yaml ` ].includes(e.kind))}});function m(e){let{id:t,type:i,...a}=e;r( ` update : yaml ` ,jZ(n.yaml,n.path,{id:t,type:i,...a}))}function h(e,t){m({...i .value, [e]:t})}function g(e,t){m({...i.value,settings:{...s.value,[e]:t}})}let _=N(null);function v(e,t){let n=_.value??p.value.lead?.key;if(!n)return;let r=typeof s.value[n] ==` string ` ?s.value[n]: ` ` ,i= ` { { steps . $ { e } . $ { t } } } ` ;g(n,r? ` $ { r . trimEnd ( ) } $ { i } ` :i)}let y=N({});function b(e,t){try{g(e,t.trim()?wZ(t):void 0),y.value={...y .value, [e]: ` ` }}catch(t){y.value={...y.value,[e]:String(t.message).split (`
` )[0]}}}let x=e=>e===void 0? ` ` :TZ(e).trimEnd(),S=(e,t)=>t.title??e.replaceAll( ` _ ` , ` ` ).replace(/^./,e=>e.toUpperCase()),C=e=>typeof s.value[e]== ` string ` ?s.value[e]: ` ` ;return(e,t)=>(H(),U( ` aside ` ,pQ,[G( ` header ` ,mQ,[G( ` span ` ,hQ,[(H(),W(ia(P(OZ)(a.value)),{class: ` size - 4 ` }))]),G( ` div ` ,gQ,[G( ` input ` ,{value:i.value.id?? ` ` ,class: ` w - full truncate bg - transparent text - sm font - medium outline - none placeholder : text - fg - subtle focus : underline ` ,placeholder:P(HZ)(a.value),"aria-label": ` Step id ` ,onInput:t[0]||=e=>h( ` id ` ,e.target.value)},null,40,_Q),G( ` div ` ,vQ,M(a.value),1)]),K(P( $ ),{type: ` button ` ,variant: ` ghost ` ,size: ` icon - sm ` ,"aria-label": ` Close ` ,onClick:t[1]||=e=>r( ` close ` )},{default:F(()=>[K(P(af))]),_:1})]),G( ` div ` ,yQ,[l.value?(H(),U( ` p ` ,bQ,M(l.value),1)):J( ` ` ,!0),p.value.lead?(H(),U( ` section ` ,xQ,[G( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:p.value.lead.schema.description},[q(M(S(p.value.lead.key,p.value.lead.schema))+ ` ` ,1),p.value.lead.schema.description?(H(),W(P(gd),{key:0,class: ` size - 3 text - fg - subtle ` })):J( ` ` ,!0)],8,SQ),p.value.lead.kind=== ` select ` ?(H(),U( ` select ` ,{key:0,class: ` h - 9 w - full rounded - md border border - input bg - background px - 2 ` ,value:C(p.value.lead.key),onChange:t[2]||=e=>g(p.value.lead.key,e.target.value||void 0)},[t[12]||=G( ` option ` ,{value: ` ` }, ` Default ` ,-1),(H(!0),U(V,null,z(p.value.lead.schema.enum,e=>(H(),U( ` option ` ,{key:e,value:e},M(e),9,wQ))),128))],40,CQ)):p.value.lead.kind=== ` text ` ?(H(),W(P(ET),{key:1,"model-value":C(p.value.lead.key),class: ` min - h - 40 text - [ 13 px ] leading - relaxed ` ,onFocus:t[3]||=e=>_.value=p.value.lead.key,"onUpdate:modelValue":t[4]||=e=>g(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])):(H(),W(P(Ek),{key:2,"model-value":C(p.value.lead.key),onFocus:t[5]||=e=>_.value=p.value.lead.key,"onUpdate:modelValue":t[6]||=e=>g(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])),c.value.length&&p.value.lead.kind!== ` select ` ?(H(),U( ` div ` ,TQ,[t[13]||=G( ` span ` ,{class: ` text - [ 11 px ] text - fg - subtle ` }, ` Insert ` ,-1),(H(!0),U(V,null,z(c.value,e=>(H(),U(V,{key:e},[G( ` button ` ,{type: ` button ` ,class: ` rounded - full border border - border px - 2 py - 0.5 font - mono text - [ 11 px ] hover : border - primary hover : text - primary ` ,onClick:t=>v(e, ` summary ` )},M(e),9,EQ),G( ` button ` ,{type: ` button ` ,class: ` rounded - full border border - border px - 2 py - 0.5 font - mono text - [ 11 px ] hover : border - primary hover : text - primary ` ,onClick:t=>v(e, ` result ` )},M(e)+ ` . result ` ,9,DQ)],64))),128))])):J( ` ` ,!0)])):J( ` ` ,!0),p.value.compact.length?(H(),U( ` section ` ,OQ,[(H(!0),U(V,null,z(p.value.compact,e=>(H(),U( ` div ` ,{key:e.key,class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },[G( ` span ` ,{class: ` flex flex - 1 items - center gap - 1 text - [ 13 px ] ` ,title:e.schema.description},[q(M(S(e.key,e.schema))+ ` ` ,1),e.schema.description?(H(),W(P(gd),{key:0,class: ` size - 3 text - fg - subtle ` })):J( ` ` ,!0)],8,kQ),e.kind=== ` boolean ` ?(H(),W(P(Zk),{key:0,"model-value":s.value[e.key]===!0,"onUpdate:modelValue":t=>g(e.key,t||void 0)},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):e.kind=== ` select ` ?(H(),U( ` select ` ,{key:1,class: ` h - 7 max - w - 40 rounded - md border border - input bg - background px - 1.5 text - [ 13 px ] ` ,value:C(e.key),onChange:t=>g(e.key,t.target.value||void 0)},[t[14]||=G( ` option ` ,{value: ` ` }, ` Default ` ,-1),(H(!0),U(V,null,z(e.schema.enum,e=>(H(),U( ` option ` ,{key:e,value:e},M(e),9,jQ))),128))],40,AQ)):e.kind=== ` number ` ?(H(),U( ` input ` ,{key:2,type: ` number ` ,class: ` h - 7 w - 24 rounded - md border border - input bg - background px - 2 text - right text - [ 13 px ] ` ,value:s.value[e.key]?? ` ` ,onInput:t=>g(e.key,t.target.value=== ` ` ?void 0:Number(t.target.value))},null,40,MQ)):(H(),U( ` input ` ,{key:3,class: ` h - 7 w - 40 rounded - md border border - input bg - background px - 2 text - [ 13 px ] ` ,value:C(e.key),onFocus:t=>_.value=e.key,onInput:t=>g(e.key,t.target.value)},null,40,NQ))]))),128))])):J( ` ` ,!0),(H(!0),U(V,null,z(p.value.long,e=>(H(),U( ` section ` ,{key:e.key,class: ` space - y - 1.5 ` },[G( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:e.schema.description},[q(M(S(e.key,e.schema))+ ` ` ,1),e.schema.description?(H(),W(P(gd),{key:0,class: ` size - 3 text - fg - subtle ` })):J( ` ` ,!0)],8,PQ),e.kind=== ` text ` ?(H(),W(P(ET),{key:0,"model-value":C(e.key),class: ` min - h - 20 text - [ 13 px ] ` ,onFocus:t=>_.value=e.key,"onUpdate:modelValue":t=>g(e.key,String(t))},null,8,[ ` model - value ` , ` onFocus ` , ` onUpdate : modelValue ` ])):e.kind=== ` lines ` ?(H(),W(P(ET),{key:1,"model-value":Array.isArray(s.value[e.key])?s.value[e.key].join (`
` ): ` ` ,class: ` min - h - 16 font - mono text - xs ` ,placeholder: ` One per line ` ,"onUpdate:modelValue":t=>g(e.key,String(t).split( `
` ).filter(Boolean))},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):(H(),U(V,{key:2},[K(P(ET),{"model-value":x(s.value[e.key]),class: ` min - h - 24 font - mono text - xs ` ,placeholder: ` YAML ` ,onChange:t=>b(e.key,t.target.value)},null,8,[ ` model - value ` , ` onChange ` ]),y.value[e.key]?(H(),U( ` span ` ,FQ,M(y.value[e.key]),1)):J( ` ` ,!0)],64))]))),128)),G( ` section ` ,IQ,[t[19]||=G( ` div ` ,{class: ` text - xs font - medium text - muted - foreground ` }, ` Flow ` ,-1),G( ` div ` ,LQ,[G( ` label ` ,RQ,[t[15]||=G( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Run only when ` ,-1),G( ` input ` ,{class: ` h - 7 w - 48 rounded - md border border - input bg - background px - 2 font - mono text - xs ` ,placeholder: ` always ` ,value:i.value.when?? ` ` ,onInput:t[7]||=e=>h( ` when ` ,e.target.value)},null,40,zQ)]),G( ` label ` ,BQ,[t[17]||=G( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` If it fails ` ,-1),G( ` select ` ,{class: ` h - 7 rounded - md border border - input bg - background px - 1.5 text - [ 13 px ] ` ,value:i.value.on_failure?? ` ` ,onChange:t[8]||=e=>h( ` on _failure ` ,e.target.value||void 0)},[...t[16]||=[G( ` option ` ,{value: ` ` }, ` Park the task ` ,-1),G( ` option ` ,{value: ` continue ` }, ` Continue ` ,-1)]],40,VQ)]),G( ` label ` ,HQ,[t[18]||=G( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Attempts ` ,-1),G( ` input ` ,{type: ` number ` ,min: ` 1 ` ,max: ` 10 ` ,placeholder: ` 1 ` ,class: ` h - 7 w - 20 rounded - md border border - input bg - background px - 2 text - right text - [ 13 px ] ` ,value:i.value.retry?.attempts?? ` ` ,onInput:t[9]||=e=>h( ` retry ` ,e.target.value=== ` ` ?void 0:{...i.value.retry,attempts:Number(e.target.value)})},null,40,UQ)])])])]),G( ` footer ` ,WQ,[K(P( $ ),{type: ` button ` ,variant: ` ghost ` ,size: ` sm ` ,class: ` text - danger ` ,onClick:t[10]||=e=>r( ` remove ` )},{default:F(()=>[K(P(Yd)),t[20]||=q( ` Delete step ` ,-1)]),_:1}),K(P( $ ),{type: ` button ` ,size: ` sm ` ,class: ` ml - auto ` ,onClick:t[11]||=e=>r( ` close ` )},{default:F(()=>[...t[21]||=[q( ` Done ` ,-1)]]),_:1})])]))}});function KQ(e){return Fe()?(Ie(e),!0):!1}function qQ(e){return typeof e== ` function ` ?e():P(e)}var JQ=typeof window< ` u ` &&typeof document< ` u ` ,YQ=e=>e!==void 0,XQ=Object.prototype.toString,ZQ=e=>XQ.call(e)=== ` [ object Object ] ` ,QQ=()=>{};function $ Q(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var e $ =e=>e();function t $ (e=e $ ){let t=N(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:Zt(t),pause:n,resume:r,eventFilter:(...n)=>{t.value&&e(...n)}}}function n $ (e,t=!1,n= ` Timeout ` ){return new Promise((r,i)=>{setTimeout(t?()=>i(n):r,e)})}function r $ (e,t,n={}){let{eventFilter:r=e $ ,...i}=n;return I(e, $ Q(r,t),i)}function i $ (e,t,n={}){let{eventFilter:r,...i}=n,{eventFilter:a,pause:o,resume:s,isActive:c}=t $ (r);return{stop:r $ (e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:c}}function a $ (e,t={}){if(!ln(e))return yn(e);let n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let r in e.value)n[r]=vn(()=>({get(){return e.value[r]},set(n){if(qQ(t.replaceRef)??!0){if(Array.isArray(e.value)){let t=[...e.value];t[r]=n,e.value=t}else{let t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}}else e.value[r]=n}}));return n}function o $ (e,t=!1){function n(n,{flush:r= ` sync ` ,deep:i=!1,timeout:a,throwOnTimeout:o}={}){let s=null,c=[new Promise(a=>{s=I(e,e=>{n(e)!==t&&(s?.(),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&c.push(n $ (a,o).then(()=>qQ(e)).finally(()=>s?.())),Promise.race(c)}function r(r,i){if(!ln(r))return n(e=>e===r,i);let{flush:a= ` sync ` ,deep:o=!1,timeout:s,throwOnTimeout:c}=i??{},l=null,u=[new Promise(n=>{l=I([e,r],([e,r])=>{t!==(e===r)&&(l?.(),n(e))},{flush:a,deep:o,immediate:!0})})];return s!=null&&u.push(n $ (s,c).then(()=>qQ(e)).finally(()=>(l?.(),qQ(e)))),Promise.race(u)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function o(e){return r(void 0,e)}function s(e){return n(Number.isNaN,e)}function c(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(qQ(e))},t)}function l(e){return u(1,e)}function u(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(qQ(e))?{toMatch:n,toContains:c,changed:l,changedTimes:u,get not(){return o $ (e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:s,toBeUndefined:o,changed:l,changedTimes:u,get not(){return o $ (e,!t)}}}function s $ (e){return o $ (e)}function c $ (e){let t=qQ(e);return t?. $ el??t}var l $ =JQ?window:void 0;function u $ (...e){let t,n,r,i;if(typeof e[0]== ` string ` ||Array.isArray(e[0])?([n,r,i]=e,t=l $ ):[t,n,r,i]=e,!t)return QQ;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=I(()=>[c $ (t),qQ(i)],([e,t])=>{if(o(),!e)return;let i=ZQ(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>s(e,t,n,i))))},{immediate:!0,flush: ` post ` }),l=()=>{c(),o()};return KQ(l),l}function d $ (e){return typeof e== ` function ` ?e:typeof e== ` string ` ?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function f $ (...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]== ` object ` ?(t=!0,n=e[0],r=e[1]):(t=e[0],n=
Line truncated
` ).replace( `
` , `
+ ` ).split( `
` ).map(e=>e.trim().toLowerCase());if(i.length===1)return e.toLowerCase()===t.toLowerCase();r||n.add(e.toLowerCase());let a=i.every((e,t)=>n.has(e)&&Array.from(n.values())[t]===i[t]);return r&&n.delete(e.toLowerCase()),a}function Z3(e,t){return n=>{if(!n.code&&!n.key)return!1;let r=Q3(n.code,e);return Array.isArray(e)?e.some(e=>X3(n[r],e,t,n.type=== ` keyup ` )):X3(n[r],e,t,n.type=== ` keyup ` )}}function Q3(e,t){return t.includes(e)? ` code ` : ` key ` }function $ 3(e,t){let n=Y(()=>gn(t?.target)??q3),r=fn(gn(e)===!0),i=!1,a=new Set,o=c(gn(e));I(()=>gn(e),(e,t)=>{typeof t== ` boolean ` &&typeof e!= ` boolean ` &&s(),o=c(e)},{immediate:!0}),GQ([ ` blur ` , ` contextmenu ` ],s),qQ((...e)=>o(...e),e=>{let n=gn(t?.actInsideInputWithModifier)??!0,a=gn(t?.preventDefault)??!1;if(i=Y3(e),(!i||i&&!n)&&J3(e))return;let o=e.composedPath?.call(e)?.[0]||e.target,s=o?.nodeName=== ` BUTTON ` ||o?.nodeName=== ` A ` ;!a&&(i||!s)&&e.preventDefault(),r.value=!0},{eventName: ` keydown ` ,target:n}),qQ((...e)=>o(...e),e=>{let n=gn(t?.actInsideInputWithModifier)??!0;if(r.value){if((!i||i&&!n)&&J3(e))return;i=!1,r.value=!1}},{eventName: ` keyup ` ,target:n});function s(){i=!1,a.clear(),r.value=gn(e)===!0}function c(e){return e===null?(s(),()=>!1):typeof e== ` boolean ` ?(s(),r.value=e,()=>!1):Array.isArray(e)||typeof e== ` string ` ?Z3(e,a):e}return r}var e6= ` vue - flow _ _node - desc ` ,t6= ` vue - flow _ _edge - desc ` ,n6= ` vue - flow _ _aria - live ` ,r6=[ ` Enter ` , ` ` , ` Escape ` ],i6={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function a6(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function o6(e,t){let n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)}function s6(e){return{width:e.offsetWidth,height:e.offsetHeight}}function c6(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function l6(e,t){return{x:c6(e.x,t[0][0],t[1][0]),y:c6(e.y,t[0][1],t[1][1])}}function u6(e){let t=e.getRootNode();return ` elementFromPoint ` in t?t:window.document}function d6(e){return e&&typeof e== ` object ` && ` id ` in e&& ` source ` in e&& ` target ` in e}function f6(e){return e&&typeof e== ` object ` && ` id ` in e&& ` position ` in e&&!d6(e)}function p6(e){return f6(e)&& ` computedPosition ` in e}function m6(e){return!Number.isNaN(e)&&Number.isFinite(e)}function h6(e){return m6(e.width)&&m6(e.height)&&m6(e.x)&&m6(e.y)}function g6(e,t,n){let r={id:e.id.toString(),type:e.type?? ` default ` ,dimensions:cn({width:0,height:0}),computedPosition:cn({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:N8(e.data)?e.data:{},events:cn(N8(e.events)?e.events:{})};return Object.assign(t??r,e,{id:e.id.toString(),parentNode:n})}function _6(e,t,n){let r={id:e.id.toString(),type:e.type??t?.type?? ` default ` ,source:e.source.toString(),target:e.target.toString(),sourceHandle:e.sourceHandle?.toString(),targetHandle:e.targetHandle?.toString(),updatable:e.updatable??n?.updatable,selectable:e.selectable??n?.selectable,focusable:e.focusable??n?.focusable,data:N8(e.data)?e.data:{},events:cn(N8(e.events)?e.events:{}),label:e.label?? ` ` ,interactionWidth:e.interactionWidth??n?.interactionWidth,...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function v6(e,t,n,r){let i=typeof e== ` string ` ?e:e.id,a=new Set,o=r=== ` source ` ? ` target ` : ` source ` ;for(let e of n)e[o]===i&&a.add(e[r]);return t.filter(e=>a.has(e.id))}function y6(...e){if(e.length===3){let[t,n,r]=e;return v6(t,n,r, ` target ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>d6(e)&&e.source===r).map(e=>n.find(t=>f6(t)&&t.id===e.target))}function b6(...e){if(e.length===3){let[t,n,r]=e;return v6(t,n,r, ` source ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>d6(e)&&e.target===r).map(e=>n.find(t=>f6(t)&&t.id===e.source))}function x6({source:e,sourceHandle:t,target:n,targetHandle:r}){return ` vueflow _ _edge - $ { e } $ { t ? ? ` ` } - $ { n } $ { r ? ? ` ` } ` }function S6(e,t){return t.some(t=>d6(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function C6({x:e,y:t},{x:n,y:r,zoom:i}){return{x:e*i+n,y:t*i+r}}function w6({x:e,y:t},{x:n,y:r,zoom:i},a=!1,o=[1,1]){let s={x:(e-n)/i,y:(t-r)/i};return a?g8(s,o):s}function T6(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function E6({x:e,y:t,width:n,height:r}){return{x:e,y:t,x2:e+n,y2:t+r}}function D6({x:e,y:t,x2:n,y2:r}){return{x:e,y:t,width:n-e,height:r-t}}function O6(e){let t={x:1/0,y:1/0,x2:-1/0,y2:-1/0};for(let n=0;n<e.length;n++){let r=e[n];t=T6(t,E6({...r.computedPosition,...r.dimensions}))}return D6(t)}function k6(e,t,n={x:0,y:0,zoom:1},r=!1,i=!1){let a={...w6(t,n),width:t.width/n.zoom,height:t.height/n.zoom},o=[];for(let t of e){let{dimensions:e,selectable:n=!0,hidden:s=
Line truncated
` ).map(e=>e.trim().toLowerCase());if(i.length===1)return e.toLowerCase()===t.toLowerCase();r||n.add(e.toLowerCase());let a=i.every((e,t)=>n.has(e)&&Array.from(n.values())[t]===i[t]);return r&&n.delete(e.toLowerCase()),a}function g6(e,t){return n=>{if(!n.code&&!n.key)return!1;let r=_6(n.code,e);return Array.isArray(e)?e.some(e=>h6(n[r],e,t,n.type=== ` keyup ` )):h6(n[r],e,t,n.type=== ` keyup ` )}}function _6(e,t){return t.includes(e)? ` code ` : ` key ` }function v6(e,t){let n=X(()=>mn(t?.target)??f6),r=un(mn(e)===!0),i=!1,a=new Set,o=c(mn(e));I(()=>mn(e),(e,t)=>{typeof t== ` boolean ` &&typeof e!= ` boolean ` &&s(),o=c(e)},{immediate:!0}),u $ ([ ` blur ` , ` contextmenu ` ],s),f $ ((...e)=>o(...e),e=>{let n=mn(t?.actInsideInputWithModifier)??!0,a=mn(t?.preventDefault)??!1;if(i=m6(e),(!i||i&&!n)&&p6(e))return;let o=e.composedPath?.call(e)?.[0]||e.target,s=o?.nodeName=== ` BUTTON ` ||o?.nodeName=== ` A ` ;!a&&(i||!s)&&e.preventDefault(),r.value=!0},{eventName: ` keydown ` ,target:n}),f $ ((...e)=>o(...e),e=>{let n=mn(t?.actInsideInputWithModifier)??!0;if(r.value){if((!i||i&&!n)&&p6(e))return;i=!1,r.value=!1}},{eventName: ` keyup ` ,target:n});function s(){i=!1,a.clear(),r.value=mn(e)===!0}function c(e){return e===null?(s(),()=>!1):typeof e== ` boolean ` ?(s(),r.value=e,()=>!1):Array.isArray(e)||typeof e== ` string ` ?g6(e,a):e}return r}var y6= ` vue - flow _ _node - desc ` ,b6= ` vue - flow _ _edge - desc ` ,x6= ` vue - flow _ _aria - live ` ,S6=[ ` Enter ` , ` ` , ` Escape ` ],C6={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function w6(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function T6(e,t){let n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)}function E6(e){return{width:e.offsetWidth,height:e.offsetHeight}}function D6(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function O6(e,t){return{x:D6(e.x,t[0][0],t[1][0]),y:D6(e.y,t[0][1],t[1][1])}}function k6(e){let t=e.getRootNode();return ` elementFromPoint ` in t?t:window.document}function A6(e){return e&&typeof e== ` object ` && ` id ` in e&& ` source ` in e&& ` target ` in e}function j6(e){return e&&typeof e== ` object ` && ` id ` in e&& ` position ` in e&&!A6(e)}function M6(e){return j6(e)&& ` computedPosition ` in e}function N6(e){return!Number.isNaN(e)&&Number.isFinite(e)}function P6(e){return N6(e.width)&&N6(e.height)&&N6(e.x)&&N6(e.y)}function F6(e,t,n){let r={id:e.id.toString(),type:e.type?? ` default ` ,dimensions:on({width:0,height:0}),computedPosition:on({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Q8(e.data)?e.data:{},events:on(Q8(e.events)?e.events:{})};return Object.assign(t??r,e,{id:e.id.toString(),parentNode:n})}function I6(e,t,n){let r={id:e.id.toString(),type:e.type??t?.type?? ` default ` ,source:e.source.toString(),target:e.target.toString(),sourceHandle:e.sourceHandle?.toString(),targetHandle:e.targetHandle?.toString(),updatable:e.updatable??n?.updatable,selectable:e.selectable??n?.selectable,focusable:e.focusable??n?.focusable,data:Q8(e.data)?e.data:{},events:on(Q8(e.events)?e.events:{}),label:e.label?? ` ` ,interactionWidth:e.interactionWidth??n?.interactionWidth,...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function L6(e,t,n,r){let i=typeof e== ` string ` ?e:e.id,a=new Set,o=r=== ` source ` ? ` target ` : ` source ` ;for(let e of n)e[o]===i&&a.add(e[r]);return t.filter(e=>a.has(e.id))}function R6(...e){if(e.length===3){let[t,n,r]=e;return L6(t,n,r, ` target ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>A6(e)&&e.source===r).map(e=>n.find(t=>j6(t)&&t.id===e.target))}function z6(...e){if(e.length===3){let[t,n,r]=e;return L6(t,n,r, ` source ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>A6(e)&&e.target===r).map(e=>n.find(t=>j6(t)&&t.id===e.source))}function B6({source:e,sourceHandle:t,target:n,targetHandle:r}){return ` vueflow _ _edge - $ { e } $ { t ? ? ` ` } - $ { n } $ { r ? ? ` ` } ` }function V6(e,t){return t.some(t=>A6(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function H6({x:e,y:t},{x:n,y:r,zoom:i}){return{x:e*i+n,y:t*i+r}}function U6({x:e,y:t},{x:n,y:r,zoom:i},a=!1,o=[1,1]){let s={x:(e-n)/i,y:(t-r)/i};return a?F8(s,o):s}function W6(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}}function G6({x:e,y:t,width:n,height:r}){return{x:e,y:t,x2:e+n,y2:t+r}}function K6({x:e,y:t,x2:n,y2:r}){return{x:e,y:t,width:n-e,height:r-t}}function q6(e){let t={x:1/0,y:1/0,x2:-1/0,y2:-1/0};for(let n=0;n<e.length;n++){let r=e[n];t=W6(t,G6({...r.computedPosition,...r.dimensions}))}return K6(t)}function J6(e,t,n={x:0,y:0,zoom:1},r=!1,i=!1){let a={...U6(t,n),width:t.width/n.zoom,height:t.height/n.zoom},o=[];for(let t of e){let{dimensions:e,selectable:n=!0,hidden:s=
Line truncated
Node : $ { e } ` ,NODE_NOT_FOUND:e=> ` Node not found
Node : $ { e } ` ,NODE_MISSING_PARENT:(e,t)=> ` Node is missing a parent
Node : $ { e }
@@ -152,4 +153,4 @@ Edge: ${e}
Source : $ { t }
Target : $ { n } ` ,EDGE_ORPHANED:e=> ` Edge was orphaned ( suddenly missing source or target ) and has been removed
Edge : $ { e } ` ,EDGE_NOT_FOUND:e=> ` Edge not found
Edge : $ { e } ` ,USEVUEFLOW_OPTIONS:()=> ` The options parameter is deprecated and will be removed in the next major version . Please use the id parameter instead ` },u8=class extends Error{constructor(e,...t){super(l8[e]?.call(l8,...t)),this.name= ` VueFlowError ` ,this.code=e,this.args=t}};function d8(e){return ` clientX ` in e}function f8(e){return ` sourceEvent ` in e}function p8(e,t){let n=d8(e),r,i;return n?(r=e.clientX,i=e.clientY): ` touches ` in e&&e.touches.length>0?(r=e.touches[0].clientX,i=e.touches[0].clientY): ` changedTouches ` in e&&e.changedTouches.length>0?(r=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(r=0,i=0),{x:r-(t?.left??0),y:i-(t?.top??0)}}var m8=()=>typeof navigator< ` u ` &&(navigator==null?void 0:navigator.userAgent)?.indexOf( ` Mac ` )>=0;function h8(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function g8(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var _8=()=>!0;function v8(e){e?.classList.remove( ` valid ` , ` connecting ` , ` vue - flow _ _handle - valid ` , ` vue - flow _ _handle - connecting ` )}function y8(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())o6(i,a6(e))>0&&r.push(e);return r}var b8=250;function x8(e,t,n,r){let i=[],a=1/0,o=y8(e,n,t+b8);for(let n of o){let o=[...n.handleBounds?.source??[],...n.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=i8(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type=== ` source ` ? ` target ` : ` source ` ;return i.find(t=>t.type===e)??i[0]}return i[0]}function S8(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=_8},u,d,f,p){let m=a=== ` target ` ,h=t?o.querySelector( ` . $ { s } - flow _ _handle [ data - id = "${c}-${t?.nodeId}-${t?.id}-${t?.type}" ] ` ):null,{x:g,y:_}=p8(e),v=o.elementFromPoint(g,_),y=v?.classList.contains( ` $ { s } - flow _ _handle ` )?v:h,b={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=C8(void 0,y),t=y.getAttribute( ` data - nodeid ` ),a=y.getAttribute( ` data - handleid ` ),o=y.classList.contains( ` connectable ` ),s=y.classList.contains( ` connectableend ` );if(!t||!e)return b;let c={source:m?t:r,sourceHandle:m?a:i,target:m?r:t,targetHandle:m?i:a};b.connection=c,b.isValid=o&&s&&(n===H3.Strict?m&&e=== ` source ` ||!m&&e=== ` target ` :t!==r||a!==i)&&l(c,{nodes:d,edges:u,sourceNode:f(c.source),targetNode:f(c.target)}),b.toHandle=E8(t,e,a,p,n,!0)}return b}function C8(e,t){return e||(t?.classList.contains( ` target ` )? ` target ` :t?.classList.contains( ` source ` )? ` source ` :null)}function w8(e,t){let n=null;return t?n= ` valid ` :e&&!t&&(n= ` invalid ` ),n}function T8(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function E8(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===H3.Strict?o.handleBounds?.[t]:[...o.handleBounds?.source??[],...o.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...i8(o,c,c.position,!0)}:c}var D8={[z3.Left]:z3.Right,[z3.Right]:z3.Left,[z3.Top]:z3.Bottom,[z3.Bottom]:z3.Top},O8=[ ` production ` , ` prod ` ];function k8(e,...t){A8()&&console.warn( ` [ Vue Flow ] : $ { e } ` ,...t)}function A8(){return!O8.includes( ` production ` )}function j8(e,t,n,r,i){let a=t.querySelectorAll( ` . vue - flow _ _handle . $ { e } ` );return a?.length?Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute( ` data - handleid ` ),type:e,nodeId:i,position:t.getAttribute( ` data - handlepos ` ),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...s6(t)}}):null}function M8(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),er(()=>{o.blur()})):n([e])}function N8(e){return P(e)!==void 0}function P8(e,t,n,r){if(!e||!e.source||!e.target)return n(new u8(c8.EDGE_INVALID,e?.id?? ` [ ID UNKNOWN ] ` )),!1;let i;return i=d6(e)?e:{...e,id:x6(e)},i=_6(i,void 0,r),!S6(i,t)&&i}function F8(e,t,n,r,i){if(!t.source||!t.target)return i(new u8(c8.EDGE_INVALID,e.id)),!1;if(!n)return i(new u8(c8.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r?x6(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function I8(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!f6(o)){n(new u8(c8.NODE_INVALID,o?.id));continue}let s=g6(o,t(o.id),o.parentNode);o.parentNode&&(r[o.parentNode]=!0),i[a]=s}for(let e of i){let a=t(e.parentNode)||i.find(t=>t.id===e.parentNode);e.parentNode&&!a&&n(new u8(c8.NODE_MISSING_PARENT,e.id,e.parentNode)),(e.parentNode||r[e.id])&&(r[e.id]&&(e.isParent=!0),a&&(a.isParent=!0))}return i}function L8(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o= ` $ { i } - $ { e } ` ;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o= ` $ { i } - $ { e } - $ { a } ` ;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function R8(e,t,n){e.clear();for(let t of n){let{source:n,target:r,sourceHandle:i=null,targetHandle:a=null}=t,o={edgeId:t.id,source:n,target:r,sourceHandle:i,targetHandle:a},s= ` $ { n } - $ { i } -- $ { r } - $ { a } ` ;L8( ` source ` ,o, ` $ { r } - $ { a } -- Line truncated
Edge : $ { e } ` ,USEVUEFLOW_OPTIONS:()=> ` The options parameter is deprecated and will be removed in the next major version . Please use the id parameter instead ` },k8=class extends Error{constructor(e,...t){super(O8[e]?.call(O8,...t)),this.name= ` VueFlowError ` ,this.code=e,this.args=t}};function A8(e){return ` clientX ` in e}function j8(e){return ` sourceEvent ` in e}function M8(e,t){let n=A8(e),r,i;return n?(r=e.clientX,i=e.clientY): ` touches ` in e&&e.touches.length>0?(r=e.touches[0].clientX,i=e.touches[0].clientY): ` changedTouches ` in e&&e.changedTouches.length>0?(r=e.changedTouches[0].clientX,i=e.changedTouches[0].clientY):(r=0,i=0),{x:r-(t?.left??0),y:i-(t?.top??0)}}var N8=()=>typeof navigator< ` u ` &&(navigator==null?void 0:navigator.userAgent)?.indexOf( ` Mac ` )>=0;function P8(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function F8(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var I8=()=>!0;function L8(e){e?.classList.remove( ` valid ` , ` connecting ` , ` vue - flow _ _handle - valid ` , ` vue - flow _ _handle - connecting ` )}function R8(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())T6(i,w6(e))>0&&r.push(e);return r}var z8=250;function B8(e,t,n,r){let i=[],a=1/0,o=R8(e,n,t+z8);for(let n of o){let o=[...n.handleBounds?.source??[],...n.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=C8(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type=== ` source ` ? ` target ` : ` source ` ;return i.find(t=>t.type===e)??i[0]}return i[0]}function V8(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=I8},u,d,f,p){let m=a=== ` target ` ,h=t?o.querySelector( ` . $ { s } - flow _ _handle [ data - id = "${c}-${t?.nodeId}-${t?.id}-${t?.type}" ] ` ):null,{x:g,y:_}=M8(e),v=o.elementFromPoint(g,_),y=v?.classList.contains( ` $ { s } - flow _ _handle ` )?v:h,b={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){let e=H8(void 0,y),t=y.getAttribute( ` data - nodeid ` ),a=y.getAttribute( ` data - handleid ` ),o=y.classList.contains( ` connectable ` ),s=y.classList.contains( ` connectableend ` );if(!t||!e)return b;let c={source:m?t:r,sourceHandle:m?a:i,target:m?r:t,targetHandle:m?i:a};b.connection=c,b.isValid=o&&s&&(n===s6.Strict?m&&e=== ` source ` ||!m&&e=== ` target ` :t!==r||a!==i)&&l(c,{nodes:d,edges:u,sourceNode:f(c.source),targetNode:f(c.target)}),b.toHandle=G8(t,e,a,p,n,!0)}return b}function H8(e,t){return e||(t?.classList.contains( ` target ` )? ` target ` :t?.classList.contains( ` source ` )? ` source ` :null)}function U8(e,t){let n=null;return t?n= ` valid ` :e&&!t&&(n= ` invalid ` ),n}function W8(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function G8(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===s6.Strict?o.handleBounds?.[t]:[...o.handleBounds?.source??[],...o.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...C8(o,c,c.position,!0)}:c}var K8={[i6.Left]:i6.Right,[i6.Right]:i6.Left,[i6.Top]:i6.Bottom,[i6.Bottom]:i6.Top},q8=[ ` production ` , ` prod ` ];function J8(e,...t){Y8()&&console.warn( ` [ Vue Flow ] : $ { e } ` ,...t)}function Y8(){return!q8.includes( ` production ` )}function X8(e,t,n,r,i){let a=t.querySelectorAll( ` . vue - flow _ _handle . $ { e } ` );return a?.length?Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute( ` data - handleid ` ),type:e,nodeId:i,position:t.getAttribute( ` data - handlepos ` ),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...E6(t)}}):null}function Z8(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),Jn(()=>{o.blur()})):n([e])}function Q8(e){return P(e)!==void 0}function $ 8(e,t,n,r){if(!e||!e.source||!e.target)return n(new k8(D8.EDGE_INVALID,e?.id?? ` [ ID UNKNOWN ] ` )),!1;let i;return i=A6(e)?e:{...e,id:B6(e)},i=I6(i,void 0,r),!V6(i,t)&&i}function e5(e,t,n,r,i){if(!t.source||!t.target)return i(new k8(D8.EDGE_INVALID,e.id)),!1;if(!n)return i(new k8(D8.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r?B6(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function t5(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!j6(o)){n(new k8(D8.NODE_INVALID,o?.id));continue}let s=F6(o,t(o.id),o.parentNode);o.parentNode&&(r[o.parentNode]=!0),i[a]=s}for(let e of i){let a=t(e.parentNode)||i.find(t=>t.id===e.parentNode);e.parentNode&&!a&&n(new k8(D8.NODE_MISSING_PARENT,e.id,e.parentNode)),(e.parentNode||r[e.id])&&(r[e.id]&&(e.isParent=!0),a&&(a.isParent=!0))}return i}function n5(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o= ` $ { i } - $ { e } ` ;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o= ` $ { i } - $ { e } - $ { a } ` ;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function r5(e,t,n){e.clear();for(let t of n){let{source:n,target:r,sourceHandle:i=null,targetHandle:a=null}=t,o={edgeId:t.id,source:n,target:r,sourceHandle:i,targetHandle:a},s= ` $ { n } - $ { i } -- $ { r } - $ { a } ` ;n5( ` source ` ,o, ` $ { r } - $ { a } -- Line truncated