@@ -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 , ne = ee ( e => e . replace ( te , e => e . slice ( 1 ) . toUpperCase ( ) ) ) , re = /\B([A-Z])/g , ie = ee ( e => e . replace ( re , ` - $ 1 ` ) . toLowerCase ( ) ) , ae = ee ( e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) ) , oe = ee ( e => e ? ` on ${ ae ( e ) } ` : ` ` ) , k = ( e , t ) => ! Object . is ( e , t ) , se = ( e , ... t ) => { for ( let n = 0 ; n < e . length ; n ++ ) e [ n ] ( ... t ) } , ce = ( e , t , n , r = ! 1 ) => { Object . defineProperty ( e , t , { configurable : ! 0 , enumerable : ! 1 , writable : r , value : n } ) } , le = e => { let t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } , ue = e => { let t = y ( e ) ? Number ( e ) : NaN ; return isNaN ( t ) ? e : t } , de , fe = ( ) => de || = typeof globalThis < ` u ` ? globalThis : typeof self < ` u ` ? self : typeof window < ` u ` ? window : typeof global < ` u ` ? global : { } , pe = 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 me ( e ) { if ( p ( e ) ) { let t = { } ; for ( let n = 0 ; n < e . length ; n ++ ) { let r = e [ n ] , i = y ( r ) ? ve ( r ) : me ( r ) ; if ( i ) for ( let e in i ) t [ e ] = i [ e ] } return t } if ( y ( e ) || x ( e ) ) return e } var he = /;(?![^(]*\))/g , ge = /:([^]+)/ , _e = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g ; function ve ( e ) { let t = { } ; return e . replace ( _e , e => e . startsWith ( ` /* ` ) ? ` ` : e ) . split ( he ) . forEach ( e => { if ( e ) { let n = e . split ( ge ) ; n . length > 1 && ( t [ n [ 0 ] . trim ( ) ] = n [ 1 ] . trim ( ) ) } } ) , t } function A ( e ) { let t = ` ` ; if ( y ( e ) ) t = e ; else if ( p ( e ) ) for ( let n = 0 ; n < e . length ; n ++ ) { let r = A ( e [ n ] ) ; r && ( t += r + ` ` ) } else if ( x ( e ) ) for ( let n in e ) e [ n ] && ( t += n + ` ` ) ; return t . trim ( ) } function ye ( e ) { if ( ! e ) return null ; let { class : t , style : n } = e ; return t && ! y ( t ) && ( e . class = A ( t ) ) , n && ( e . style = me ( n ) ) , e } var be = ` itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly ` , xe = n ( be ) ; be + ` ` ; function Se ( e ) { return ! ! e || e === ` ` } function Ce ( e , t , n ) { if ( e . length !== t . length ) return ! 1 ; let r = ! 0 ; for ( let i = 0 ; r && i < e . length ; i ++ ) r = De ( e [ i ] , t [ i ] , n ) ; return r } function we ( 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 ] && De ( t , r [ a ] , n ) ) { e = a ; break } if ( e < 0 ) return ! 1 ; i [ e ] = 1 } return ! 0 } function Te ( e , t , n ) { let r = m ( e ) , i = m ( t ) ; if ( r || i || ( r = h ( e ) , i = h ( t ) , r || i ) ) return r && i ? we ( 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 || ! De ( e [ r ] , t [ r ] , n ) ) return ! 1 } return String ( e ) === String ( t ) } function Ee ( 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 De ( 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 ? Ee ( e , t , n , Ce ) : ! 1 : ( r = x ( e ) , i = x ( t ) , r || i ? ! r || ! i ? ! 1 : Ee ( e , t , n , Te ) : String ( e ) === String ( t ) ) ) ) } function Oe ( e , t ) { return e . findIndex ( e => De ( e , t ) ) } var ke = e => ! ! ( e && e . _ _v _isRef === ! 0 ) , j = e => y ( e ) ? e : e == null ? ` ` : p ( e ) || x ( e ) && ( e . toString === C || ! v ( e . toString ) ) ? ke ( e ) ? j ( e . value ) : JSON . stringify ( e , Ae , 2 ) : String ( e ) , Ae = ( e , t ) => ke ( t ) ? Ae ( e , t . value ) : m ( t ) ? { [ ` Map( ${ t . size } ) ` ] : [ ... t . entries ( ) ] . reduce ( ( e , [ t , n ] , r ) => ( e [ je ( t , r ) + ` => ` ] = n , e ) , { } ) } : h ( t ) ? { [ ` Set( ${ t . size } ) ` ] : [ ... t . values ( ) ] . map ( e => je ( e ) ) } : b ( t ) ? je ( t ) : x ( t ) && ! p ( t ) && ! E ( t ) ? String ( t ) : t , je = ( e , t = ` ` ) => b ( e ) ? ` Symbol( ${ e . description ? ? t } ) ` : e ; function Me ( e ) { return e == null ? ` initial ` : typeof
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 , ne = ee ( e => e . replace ( te , e => e . slice ( 1 ) . toUpperCase ( ) ) ) , re = /\B([A-Z])/g , ie = ee ( e => e . replace ( re , ` - $ 1 ` ) . toLowerCase ( ) ) , ae = ee ( e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) ) , oe = ee ( e => e ? ` on ${ ae ( e ) } ` : ` ` ) , k = ( e , t ) => ! Object . is ( e , t ) , se = ( e , ... t ) => { for ( let n = 0 ; n < e . length ; n ++ ) e [ n ] ( ... t ) } , ce = ( e , t , n , r = ! 1 ) => { Object . defineProperty ( e , t , { configurable : ! 0 , enumerable : ! 1 , writable : r , value : n } ) } , le = e => { let t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } , ue = e => { let t = y ( e ) ? Number ( e ) : NaN ; return isNaN ( t ) ? e : t } , de , fe = ( ) => de || = typeof globalThis < ` u ` ? globalThis : typeof self < ` u ` ? self : typeof window < ` u ` ? window : typeof global < ` u ` ? global : { } , pe = 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 me ( e ) { if ( p ( e ) ) { let t = { } ; for ( let n = 0 ; n < e . length ; n ++ ) { let r = e [ n ] , i = y ( r ) ? ve ( r ) : me ( r ) ; if ( i ) for ( let e in i ) t [ e ] = i [ e ] } return t } if ( y ( e ) || x ( e ) ) return e } var he = /;(?![^(]*\))/g , ge = /:([^]+)/ , _e = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g ; function ve ( e ) { let t = { } ; return e . replace ( _e , e => e . startsWith ( ` /* ` ) ? ` ` : e ) . split ( he ) . forEach ( e => { if ( e ) { let n = e . split ( ge ) ; n . length > 1 && ( t [ n [ 0 ] . trim ( ) ] = n [ 1 ] . trim ( ) ) } } ) , t } function A ( e ) { let t = ` ` ; if ( y ( e ) ) t = e ; else if ( p ( e ) ) for ( let n = 0 ; n < e . length ; n ++ ) { let r = A ( e [ n ] ) ; r && ( t += r + ` ` ) } else if ( x ( e ) ) for ( let n in e ) e [ n ] && ( t += n + ` ` ) ; return t . trim ( ) } function ye ( e ) { if ( ! e ) return null ; let { class : t , style : n } = e ; return t && ! y ( t ) && ( e . class = A ( t ) ) , n && ( e . style = me ( n ) ) , e } var be = ` itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly ` , xe = n ( be ) ; be + ` ` ; function Se ( e ) { return ! ! e || e === ` ` } function Ce ( e , t , n ) { if ( e . length !== t . length ) return ! 1 ; let r = ! 0 ; for ( let i = 0 ; r && i < e . length ; i ++ ) r = De ( e [ i ] , t [ i ] , n ) ; return r } function we ( 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 ] && De ( t , r [ a ] , n ) ) { e = a ; break } if ( e < 0 ) return ! 1 ; i [ e ] = 1 } return ! 0 } function Te ( e , t , n ) { let r = m ( e ) , i = m ( t ) ; if ( r || i || ( r = h ( e ) , i = h ( t ) , r || i ) ) return r && i ? we ( 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 || ! De ( e [ r ] , t [ r ] , n ) ) return ! 1 } return String ( e ) === String ( t ) } function Ee ( 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 De ( 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 ? Ee ( e , t , n , Ce ) : ! 1 : ( r = x ( e ) , i = x ( t ) , r || i ? ! r || ! i ? ! 1 : Ee ( e , t , n , Te ) : String ( e ) === String ( t ) ) ) ) } function Oe ( e , t ) { return e . findIndex ( e => De ( e , t ) ) } var ke = e => ! ! ( e && e . _ _v _isRef === ! 0 ) , j = e => y ( e ) ? e : e == null ? ` ` : p ( e ) || x ( e ) && ( e . toString === C || ! v ( e . toString ) ) ? ke ( e ) ? j ( e . value ) : JSON . stringify ( e , Ae , 2 ) : String ( e ) , Ae = ( e , t ) => ke ( t ) ? Ae ( e , t . value ) : m ( t ) ? { [ ` Map( ${ t . size } ) ` ] : [ ... t . entries ( ) ] . reduce ( ( e , [ t , n ] , r ) => ( e [ je ( t , r ) + ` => ` ] = n , e ) , { } ) } : h ( t ) ? { [ ` Set( ${ t . size } ) ` ] : [ ... t . values ( ) ] . map ( e => je ( e ) ) } : b ( t ) ? je ( t ) : x ( t ) && ! p ( t ) && ! E ( t ) ? String ( t ) : t , je = ( e , t = ` ` ) => b ( e ) ? ` Symbol( ${ e . description ? ? t } ) ` : e ; function Me ( e ) { return e == null ? ` initial ` : typeof
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, `
` )&&(pi(e,0)||ri(),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(ui(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&& $ t(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&us(x,n,t),h&&lr(t,null,n, ` beforeMount ` ),((x=d&&d.onVnodeMounted)||h||l)&&Ho(()=>{x&&us(x,n,t),l&&g.enter(e),h&&lr(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]=ss(d[t]),g=h.type===Wo;e?(g&&!u&&t+1<p&&ss(d[t+1]).type===Wo&&(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,pi(r,1)||ri()),n(null,h,r,null,o,s,oi(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&&si(f)&&f.data=== ` ] ` ?a(t.anchor=f):(ri(),l(t.anchor=u( ` ] ` ),d,f),f)},g=(e,t,r,i,s,l)=>{if(hi(e,t)||ri(),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,oi(d),s),r&&(r.vnode.el=t.el,eo(r,t.el)),u},_=(e,t= ` [ ` ,n= ` ] ` )=>{let r=0;for(;e;)if(e=a(e),e&&si(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 li=new Set([ ` src ` , ` srcset ` , ` href ` , ` poster ` ]);function ui(e,t,n){return li.has(t)?e.getAttribute(t)===(n==null?null: ` $ { n } ` ):!1}var di= ` data - allow - mismatch ` ,fi={0: ` text ` ,1: ` children ` ,2: ` class ` ,3: ` style ` ,4: ` attribute ` };function pi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(di);)e=e.parentElement;return mi(e&&e.getAttribute(di),t)}function mi(e,t){if(e==null)return!1;if(e=== ` ` )return!0;{let n=e.split( ` , ` );return t===0&&n.includes( ` children ` )?!0:n.includes(fi[t])}}function hi(e,t){return pi(e.parentElement,1)||gi(e)||_i(t)}function gi(e){return e.nodeType===1&&mi(e.getAttribute(di),1)}function _i({props:e}){let t=e&&e[di];return typeof t== ` string ` &&mi(t,1)}var vi=fe().requestIdleCallback||(e=>setTimeout(e,1)),yi=fe().cancelIdleCallback||(e=>clearTimeout(e)),bi=(e=1e4)=>t=>{let n=vi(t,{timeout:e});return()=>yi(n)};function xi(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 Si=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(xi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ci=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener( ` change ` ,t,{once:!0}),()=>n.removeEventListener( ` change ` ,t)}},wi=(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 Ti(e,t){if(si(e)&&e.data=== ` [ ` ){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(si(r)){if(r.data=== ` ] ` ){if(--n===0)break}else r.data=== ` [ ` &&n++}r=r.nextSibling}}else t(e)}var Ei=e=>!!e.type.__asyncLoader;function Di(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 I({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=>Ti(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=ms;if(Xr(e),u)return()=>Oi(u,e);let t=t=>{l=null,Rn(t,e,13,!r)};if(s&&e.suspense||xs)return p().then(t=>()=>Oi(t,e)).catch(e=>(t(e),()=>r?W(r,{error:e}):null));let a=M(!1),c=M(),d=M(!!i),f,m;return Gi(()=>{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&&ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Oi(u,e);if(c.value&&r)return W(r,{error:c.value});if(n&&!d
Line truncated
` ))),e[Sl]=yl(i);let a=r||i.props&&i.props.type=== ` number ` ;Bc(e,t? ` change ` : ` input ` ,t=>{t.target.composing||e[Sl](wl(e.value,n,a))}),(n||a)&&Bc(e, ` change ` ,()=>{e.value=wl(e.value,n,a)}),t||(Bc(e, ` compositionstart ` ,bl),Bc(e, ` compositionend ` ,xl),Bc(e, ` change ` ,xl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t?? ` ` ,a=e[Cl];delete e[Cl],a!==void 0&&(e.type=== ` text ` ||e.type=== ` textarea ` )&&e.value!==a?e[Sl](wl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Sl]=yl(o),e.composing)return;let s=(a||e.type=== ` number ` )&&!/^0 \d /.test(e.value)?le(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)}},El={deep:!0,created(e,t,n){e[Sl]=yl(n),Bc(e, ` change ` ,()=>{let t=e._modelValue,n=jl(e),r=e.checked,i=e[Sl];if(p(t)){let e=Oe(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(Ml(e,r))})},mounted:Dl,beforeUpdate(e,t,n){e[Sl]=yl(n),Dl(e,t,n)}};function Dl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Oe(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=De(t,Ml(e,!0))}e.checked!==i&&(e.checked=i)}var Ol={created(e,{value:t},n){e.checked=De(t,n.props.value),e[Sl]=yl(n),Bc(e, ` change ` ,()=>{e[Sl](jl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Sl]=yl(r),t!==n&&(e.checked=De(t,r.props.value))}},kl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Bc(e, ` change ` ,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?le(jl(e)):jl(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[Sl](i)}finally{qn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Sl]=yl(r)},mounted(e,{value:t}){Al(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Sl]=yl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!yee(t,n[1],n[0]))&&Al(e,t)}};function yee(e,t,n){if(!n||p(e))return De(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 Al(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=jl(a);if(n){if(r){let e=typeof o;a.selected=e=== ` string ` ||e=== ` number ` ?t.some(e=>String(e)===String(o)):Oe(t,o)>-1}else a.selected=t.has(o)}else if(De(jl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jl(e){return ` _value ` in e?e._value:e.value}function Ml(e,t){let n=t? ` _trueValue ` : ` _falseValue ` ;return n in e?e[n]:t}var Nl={created(e,t,n){Fl(e,t,n,null, ` created ` )},mounted(e,t,n){Fl(e,t,n,null, ` mounted ` )},beforeUpdate(e,t,n,r){Fl(e,t,n,r, ` beforeUpdate ` )},updated(e,t,n,r){Fl(e,t,n,r, ` updated ` )}};function Pl(e,t){switch(e){case ` SELECT ` :return kl;case ` TEXTAREA ` :return Tl;default:switch(t){case ` checkbox ` :return El;case ` radio ` :return Ol;default:return Tl}}}function Fl(e,t,n,r,i){let a=Pl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function bee(){Tl.getSSRProps=({value:e})=>({value:e}),Ol.getSSRProps=({value:e},t)=>{if(t.props&&De(t.props.value,e))return{checked:!0}},El.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Oe(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}},Nl.getSSRProps=(e,t)=>{if(typeof t.type!= ` string ` )return;let n=Pl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var xee=[ ` ctrl ` , ` shift ` , ` alt ` , ` meta ` ],See={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)=>xee.some(n=>e[ ` $ { n } Key ` ]&&!t.includes(n))},Il=(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=See[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Cee={esc: ` escape ` ,space: ` ` ,up: ` arrow - up ` ,left: ` arrow - left ` ,right: ` arrow - right ` ,down: ` arrow - down ` ,delete: ` backspace ` },Ll=(e,t)=>{let n=e._withKeys||={},r=t.join( ` . ` );return n[r]||(n[r]=(n=>{if(!( ` key ` in n))return;let r=ie(n.key);if(t.some(e=>e===r||Cee[e]===r))return e(n)}))},Rl=l({patchProp:Qc},Qs),zl,Bl=!1;function Vl(){return zl||=xo(Rl)}function Hl(){return zl=Bl?zl:So(Rl),Bl=!0,zl}var Ul=((...e)=>{Vl().render(...e)}),Wl=((...e)=>{Hl().hydrate(...e)}),Gl=((...e)=>{let t=Vl().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Jl(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,ql(r));return r instanceof Element&&(r.removeAttribute( ` v - cloak ` ),r.setAttribute( ` data - v - app ` , ` ` )),a},
Line truncated
` )[0].slice(0,200)}catch{}return ` $ { e . status } $ { e . statusText } ` }var Mp;function Np(e){Mp=e}var Pp=class extends Error{status;constructor(e,t){super(e),this.name= ` ApiError ` ,this.status=t}};function Fp(e){let t=e instanceof Pp?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 Ip(e,t){let n=await fetch(e,t);if(Mp?.(n.status===401),!n.ok)throw new Pp(await jp(n),n.status);return n}async function Lp(e,t={}){let{method:n= ` GET ` ,body:r,timeoutMs:i=kp,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 Ip(e,s);return a?await c.json():void 0}var X={health:()=>Lp( ` / health / detailed ` ),services:()=>Lp( ` / api / services ` ),policies:()=>Lp( ` / api / access / policies ` ),putPolicy:e=>Lp( ` / api / access / policies ` ,{method: ` PUT ` ,body:e}),deletePolicy:e=>Lp( ` / api / access / policies ` ,{method: ` DELETE ` ,body:e,parse:!1}),orgs:()=>Lp( ` / api / orgs ` ),orgCreate:e=>Lp( ` / api / orgs ` ,{method: ` POST ` ,body:e}),org:e=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } ` ),orgWorkspaces:e=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / workspaces ` ),createOrgWorkspace:(e,t)=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / workspaces ` ,{method: ` POST ` ,body:t}),orgMembers:e=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members ` ),setOrgMember:(e,t,n)=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members / $ { encodeURIComponent ( t ) } ` ,{method: ` PUT ` ,body:n}),removeOrgMember:(e,t,n)=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members / $ { encodeURIComponent ( t ) } ` +Ap({workspace:n}),{method: ` DELETE ` ,parse:!1}),assignOrgAgent:(e,t)=>Lp( ` / api / orgs / $ { encodeURIComponent ( e ) } / agents / $ { encodeURIComponent ( t ) } ` ,{method: ` PUT ` }),summary:()=>Lp( ` / api / summary ` ),tasks:()=>Lp( ` / api / tasks ` ),taskPage:async e=>{let t=await Ip( ` / api / tasks ` +Ap(e),{headers:{Accept: ` application / json ` },signal:AbortSignal.timeout(kp)});return{tasks:await t.json(),next:t.headers.get( ` X - Next - Cursor ` )}},taskMeta:()=>Lp( ` / api / task - meta ` ),task:e=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } ` ),taskAttempts:e=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } / attempts ` ),taskChanges:(e,t)=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } / changes ` +Ap(t)),taskDebug:(e,t)=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } / debug ` +Ap(t)),taskAction:(e,t,n)=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } / action ` ,{method: ` POST ` ,body:{action:t,...n}}),setup:()=>Lp( ` / api / setup ` ),capabilities:()=>Lp( ` / api / capabilities ` ),workflows:()=>Lp( ` / api / workflows ` ),workflowEnabled:(e,t)=>Lp( ` / api / workflows / $ { encodeURIComponent ( e ) } / enabled ` ,{method: ` PUT ` ,body:{enabled:t},parse:!1}),workRequest:e=>Lp( ` / api / work - requests ` ,{method: ` POST ` ,body:e}),skills:()=>Lp( ` / api / skills ` ),channels:()=>Lp( ` / api / channels ` ),curators:()=>Lp( ` / api / curators ` ),channelReload:e=>Lp( ` / api / channels / $ { encodeURIComponent ( e ) } / reload ` ,{method: ` POST ` ,body:{}}),config:()=>Lp( ` / api / config ` ),logs:e=>Lp( ` / api / logs ` +Ap(e)),taskLogs:(e,t)=>Lp( ` / api / tasks / $ { encodeURIComponent ( e ) } / logs ` +Ap(t)),taskLogDownloadURL:(e,t)=> ` / api / tasks / $ { encodeURIComponent ( e ) } / logs / download ` +(t==null? ` ` : ` ? attempt = $ { t } ` ),version:()=>Lp( ` / api / version ` ),updateSnapshot:()=>Lp( ` / api / chat / update ` ),updateInstall:e=>Lp( ` / api / chat / update / install ` ,{method: ` POST ` ,body:{snapshot:e},timeoutMs:9e5}),captures:e=>Lp( ` / api / captures ` +Ap({limit:e})),eventTypes:()=>Lp( ` / api / event - types ` ),eventTypeCreate:e=>Lp( ` / api / event - types ` ,{method: ` POST ` ,body:e}),eventTypeUpdate:(e,t)=>Lp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` PUT ` ,body:t}),eventTypeDelete:e=>Lp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappings:()=>Lp( ` / api / mappings ` ),mappingCreate:e=>Lp( ` / api / mappings ` ,{method: ` POST ` ,body:e}),mappingUpdate:(e,t)=>Lp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),mappingDelete:e=>Lp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappingPreview:(e,t)=>Lp( ` / api / mappings / preview ` ,{method: ` POST ` ,body:{capture_id:e,fields:t}}),bindings:()=>Lp( ` / api / bindings ` ),dispatches:(e,t)=>Lp( ` / api / $ { e } / $ { encodeURIComponent ( t ) } / dispatches ` ),bindingCreate:e=>Lp( ` / api / bindings ` ,{method: ` POST ` ,body:e}),bindingUpdate:(e,t)=>Lp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),bindingDelete:e=>Lp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),bindingApprove:e=>Lp( ` / api / bindings / $ { encodeURIComponent ( e ) } / approve ` ,{method: ` POST ` }),bindingPause:e=>Lp( ` / api / bindings / $ { encodeURIComponent ( e ) } / pause ` ,{method: ` POST ` }),bindingResume:e=>Lp( ` / api / bindings / $ { encodeURIComponent ( e ) } / resume ` ,{method: ` POST ` }),harnessBindings:()=>Lp( ` / api / harness / bindings ` ),sources:()=>Lp( ` / api / sources ` ),sourceCreate:e=>Lp( ` / api / sources ` ,{method: ` POST ` ,body:{path:e}}),sourceSigning:(e,t)=>Lp( ` / api / sources / $ { encodeURIComponent ( e ) } / signing ` ,{method: ` POST ` ,body:{signed:t}}),sourceApproveUnsigned:e=>Lp( ` / api / sources / $ { encodeURIComponent ( e ) } / a Line truncated
` )&&(pi(e,0)||ri(),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(ui(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&& $ t(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&ds(x,n,t),h&&lr(t,null,n, ` beforeMount ` ),((x=d&&d.onVnodeMounted)||h||l)&&Uo(()=>{x&&ds(x,n,t),l&&g.enter(e),h&&lr(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]=cs(d[t]),g=h.type===Go;e?(g&&!u&&t+1<p&&cs(d[t+1]).type===Go&&(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,pi(r,1)||ri()),n(null,h,r,null,o,s,oi(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&&si(f)&&f.data=== ` ] ` ?a(t.anchor=f):(ri(),l(t.anchor=u( ` ] ` ),d,f),f)},g=(e,t,r,i,s,l)=>{if(hi(e,t)||ri(),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,oi(d),s),r&&(r.vnode.el=t.el,to(r,t.el)),u},_=(e,t= ` [ ` ,n= ` ] ` )=>{let r=0;for(;e;)if(e=a(e),e&&si(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 li=new Set([ ` src ` , ` srcset ` , ` href ` , ` poster ` ]);function ui(e,t,n){return li.has(t)?e.getAttribute(t)===(n==null?null: ` $ { n } ` ):!1}var di= ` data - allow - mismatch ` ,fi={0: ` text ` ,1: ` children ` ,2: ` class ` ,3: ` style ` ,4: ` attribute ` };function pi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(di);)e=e.parentElement;return mi(e&&e.getAttribute(di),t)}function mi(e,t){if(e==null)return!1;if(e=== ` ` )return!0;{let n=e.split( ` , ` );return t===0&&n.includes( ` children ` )?!0:n.includes(fi[t])}}function hi(e,t){return pi(e.parentElement,1)||gi(e)||_i(t)}function gi(e){return e.nodeType===1&&mi(e.getAttribute(di),1)}function _i({props:e}){let t=e&&e[di];return typeof t== ` string ` &&mi(t,1)}var vi=fe().requestIdleCallback||(e=>setTimeout(e,1)),yi=fe().cancelIdleCallback||(e=>clearTimeout(e)),bi=(e=1e4)=>t=>{let n=vi(t,{timeout:e});return()=>yi(n)};function xi(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 Si=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(xi(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ci=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener( ` change ` ,t,{once:!0}),()=>n.removeEventListener( ` change ` ,t)}},wi=(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 Ti(e,t){if(si(e)&&e.data=== ` [ ` ){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(si(r)){if(r.data=== ` ] ` ){if(--n===0)break}else r.data=== ` [ ` &&n++}r=r.nextSibling}}else t(e)}var Ei=e=>!!e.type.__asyncLoader;function Di(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 I({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=>Ti(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=hs;if(Xr(e),u)return()=>Oi(u,e);let t=t=>{l=null,Rn(t,e,13,!r)};if(s&&e.suspense||Ss)return p().then(t=>()=>Oi(t,e)).catch(e=>(t(e),()=>r?W(r,{error:e}):null));let a=M(!1),c=M(),d=M(!!i),f,m;return Gi(()=>{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&&ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Oi(u,e);if(c.value&&r)return W(r,{error:c.value});if(n&&!d
Line truncated
` ))),e[Cl]=bl(i);let a=r||i.props&&i.props.type=== ` number ` ;Vc(e,t? ` change ` : ` input ` ,t=>{t.target.composing||e[Cl](Tl(e.value,n,a))}),(n||a)&&Vc(e, ` change ` ,()=>{e.value=Tl(e.value,n,a)}),t||(Vc(e, ` compositionstart ` ,xl),Vc(e, ` compositionend ` ,Sl),Vc(e, ` change ` ,Sl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t?? ` ` ,a=e[wl];delete e[wl],a!==void 0&&(e.type=== ` text ` ||e.type=== ` textarea ` )&&e.value!==a?e[Cl](Tl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Cl]=bl(o),e.composing)return;let s=(a||e.type=== ` number ` )&&!/^0 \d /.test(e.value)?le(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)}},Dl={deep:!0,created(e,t,n){e[Cl]=bl(n),Vc(e, ` change ` ,()=>{let t=e._modelValue,n=Ml(e),r=e.checked,i=e[Cl];if(p(t)){let e=Oe(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(Nl(e,r))})},mounted:Ol,beforeUpdate(e,t,n){e[Cl]=bl(n),Ol(e,t,n)}};function Ol(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Oe(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=De(t,Nl(e,!0))}e.checked!==i&&(e.checked=i)}var kl={created(e,{value:t},n){e.checked=De(t,n.props.value),e[Cl]=bl(n),Vc(e, ` change ` ,()=>{e[Cl](Ml(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Cl]=bl(r),t!==n&&(e.checked=De(t,r.props.value))}},Al={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Vc(e, ` change ` ,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?le(Ml(e)):Ml(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[Cl](i)}finally{qn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Cl]=bl(r)},mounted(e,{value:t}){jl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Cl]=bl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!vee(t,n[1],n[0]))&&jl(e,t)}};function vee(e,t,n){if(!n||p(e))return De(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 jl(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=Ml(a);if(n){if(r){let e=typeof o;a.selected=e=== ` string ` ||e=== ` number ` ?t.some(e=>String(e)===String(o)):Oe(t,o)>-1}else a.selected=t.has(o)}else if(De(Ml(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ml(e){return ` _value ` in e?e._value:e.value}function Nl(e,t){let n=t? ` _trueValue ` : ` _falseValue ` ;return n in e?e[n]:t}var Pl={created(e,t,n){Il(e,t,n,null, ` created ` )},mounted(e,t,n){Il(e,t,n,null, ` mounted ` )},beforeUpdate(e,t,n,r){Il(e,t,n,r, ` beforeUpdate ` )},updated(e,t,n,r){Il(e,t,n,r, ` updated ` )}};function Fl(e,t){switch(e){case ` SELECT ` :return Al;case ` TEXTAREA ` :return El;default:switch(t){case ` checkbox ` :return Dl;case ` radio ` :return kl;default:return El}}}function Il(e,t,n,r,i){let a=Fl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function yee(){El.getSSRProps=({value:e})=>({value:e}),kl.getSSRProps=({value:e},t)=>{if(t.props&&De(t.props.value,e))return{checked:!0}},Dl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Oe(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}},Pl.getSSRProps=(e,t)=>{if(typeof t.type!= ` string ` )return;let n=Fl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var bee=[ ` ctrl ` , ` shift ` , ` alt ` , ` meta ` ],xee={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)=>bee.some(n=>e[ ` $ { n } Key ` ]&&!t.includes(n))},Ll=(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=xee[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},See={esc: ` escape ` ,space: ` ` ,up: ` arrow - up ` ,left: ` arrow - left ` ,right: ` arrow - right ` ,down: ` arrow - down ` ,delete: ` backspace ` },Rl=(e,t)=>{let n=e._withKeys||={},r=t.join( ` . ` );return n[r]||(n[r]=(n=>{if(!( ` key ` in n))return;let r=ie(n.key);if(t.some(e=>e===r||See[e]===r))return e(n)}))},zl=l({patchProp: $ c}, $ s),Bl,Vl=!1;function Hl(){return Bl||=So(zl)}function Ul(){return Bl=Vl?Bl:Co(zl),Vl=!0,Bl}var Wl=((...e)=>{Hl().render(...e)}),Gl=((...e)=>{Ul().hydrate(...e)}),Kl=((...e)=>{let t=Hl().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Yl(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,Jl(r));return r instanceof Element&&(r.removeAttribute( ` v - cloak ` ),r.setAttribute( ` data - v - app ` , ` ` )),a},
Line truncated
` )[0].slice(0,200)}catch{}return ` $ { e . status } $ { e . statusText } ` }var Np;function Pp(e){Np=e}var Fp=class extends Error{status;constructor(e,t){super(e),this.name= ` ApiError ` ,this.status=t}};function Ip(e){let t=e instanceof Fp?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 Lp(e,t){let n=await fetch(e,t);if(Np?.(n.status===401),!n.ok)throw new Fp(await Mp(n),n.status);return n}async function Rp(e,t={}){let{method:n= ` GET ` ,body:r,timeoutMs:i=Ap,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 Lp(e,s);return a?await c.json():void 0}var X={health:()=>Rp( ` / health / detailed ` ),services:()=>Rp( ` / api / services ` ),policies:()=>Rp( ` / api / access / policies ` ),putPolicy:e=>Rp( ` / api / access / policies ` ,{method: ` PUT ` ,body:e}),deletePolicy:e=>Rp( ` / api / access / policies ` ,{method: ` DELETE ` ,body:e,parse:!1}),orgs:()=>Rp( ` / api / orgs ` ),orgCreate:e=>Rp( ` / api / orgs ` ,{method: ` POST ` ,body:e}),org:e=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } ` ),orgWorkspaces:e=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / workspaces ` ),createOrgWorkspace:(e,t)=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / workspaces ` ,{method: ` POST ` ,body:t}),orgMembers:e=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members ` ),setOrgMember:(e,t,n)=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members / $ { encodeURIComponent ( t ) } ` ,{method: ` PUT ` ,body:n}),removeOrgMember:(e,t,n)=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / members / $ { encodeURIComponent ( t ) } ` +jp({workspace:n}),{method: ` DELETE ` ,parse:!1}),assignOrgAgent:(e,t)=>Rp( ` / api / orgs / $ { encodeURIComponent ( e ) } / agents / $ { encodeURIComponent ( t ) } ` ,{method: ` PUT ` }),summary:()=>Rp( ` / api / summary ` ),tasks:()=>Rp( ` / api / tasks ` ),taskPage:async e=>{let t=await Lp( ` / api / tasks ` +jp(e),{headers:{Accept: ` application / json ` },signal:AbortSignal.timeout(Ap)});return{tasks:await t.json(),next:t.headers.get( ` X - Next - Cursor ` )}},taskMeta:()=>Rp( ` / api / task - meta ` ),task:e=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } ` ),taskAttempts:e=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } / attempts ` ),taskChanges:(e,t)=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } / changes ` +jp(t)),taskDebug:(e,t)=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } / debug ` +jp(t)),taskAction:(e,t,n)=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } / action ` ,{method: ` POST ` ,body:{action:t,...n}}),setup:()=>Rp( ` / api / setup ` ),capabilities:()=>Rp( ` / api / capabilities ` ),workflows:()=>Rp( ` / api / workflows ` ),workflowEnabled:(e,t)=>Rp( ` / api / workflows / $ { encodeURIComponent ( e ) } / enabled ` ,{method: ` PUT ` ,body:{enabled:t},parse:!1}),workRequest:e=>Rp( ` / api / work - requests ` ,{method: ` POST ` ,body:e}),skills:()=>Rp( ` / api / skills ` ),channels:()=>Rp( ` / api / channels ` ),curators:()=>Rp( ` / api / curators ` ),channelReload:e=>Rp( ` / api / channels / $ { encodeURIComponent ( e ) } / reload ` ,{method: ` POST ` ,body:{}}),config:()=>Rp( ` / api / config ` ),logs:e=>Rp( ` / api / logs ` +jp(e)),taskLogs:(e,t)=>Rp( ` / api / tasks / $ { encodeURIComponent ( e ) } / logs ` +jp(t)),taskLogDownloadURL:(e,t)=> ` / api / tasks / $ { encodeURIComponent ( e ) } / logs / download ` +(t==null? ` ` : ` ? attempt = $ { t } ` ),version:()=>Rp( ` / api / version ` ),updateSnapshot:()=>Rp( ` / api / chat / update ` ),updateInstall:e=>Rp( ` / api / chat / update / install ` ,{method: ` POST ` ,body:{snapshot:e},timeoutMs:9e5}),captures:e=>Rp( ` / api / captures ` +jp({limit:e})),eventTypes:()=>Rp( ` / api / event - types ` ),eventTypeCreate:e=>Rp( ` / api / event - types ` ,{method: ` POST ` ,body:e}),eventTypeUpdate:(e,t)=>Rp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` PUT ` ,body:t}),eventTypeDelete:e=>Rp( ` / api / event - types / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappings:()=>Rp( ` / api / mappings ` ),mappingCreate:e=>Rp( ` / api / mappings ` ,{method: ` POST ` ,body:e}),mappingUpdate:(e,t)=>Rp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),mappingDelete:e=>Rp( ` / api / mappings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),mappingPreview:(e,t)=>Rp( ` / api / mappings / preview ` ,{method: ` POST ` ,body:{capture_id:e,fields:t}}),bindings:()=>Rp( ` / api / bindings ` ),dispatches:(e,t)=>Rp( ` / api / $ { e } / $ { encodeURIComponent ( t ) } / dispatches ` ),bindingCreate:e=>Rp( ` / api / bindings ` ,{method: ` POST ` ,body:e}),bindingUpdate:(e,t)=>Rp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` PATCH ` ,body:t}),bindingDelete:e=>Rp( ` / api / bindings / $ { encodeURIComponent ( e ) } ` ,{method: ` DELETE ` ,parse:!1}),bindingApprove:e=>Rp( ` / api / bindings / $ { encodeURIComponent ( e ) } / approve ` ,{method: ` POST ` }),bindingPause:e=>Rp( ` / api / bindings / $ { encodeURIComponent ( e ) } / pause ` ,{method: ` POST ` }),bindingResume:e=>Rp( ` / api / bindings / $ { encodeURIComponent ( e ) } / resume ` ,{method: ` POST ` }),harnessBindings:()=>Rp( ` / api / harness / bindings ` ),sources:()=>Rp( ` / api / sources ` ),sourceCreate:e=>Rp( ` / api / sources ` ,{method: ` POST ` ,body:{path:e}}),sourceSigning:(e,t)=>Rp( ` / api / sources / $ { encodeURIComponent ( e ) } / signing ` ,{method: ` POST ` ,body:{signed:t}}),sourceApproveUnsigned:e=>Rp( ` / api / sources / $ { encodeURIComponent ( e ) } / a 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&&( $ p.value=n.session_id),n.type=== ` delta ` &&(o+=n.text,im.value=im.value?{...im.value,text:o}:null),(n.type=== ` tool ` ||n.type=== ` navigate ` )&&(a=[...a,n],im.value=im.value?{...im.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 ` );em.value=[...em.value,{from: ` assistant ` ,text:o,tool_calls:a}],im.value=null,nm.value= ` Ready ` ,await ym()}catch(e){let t=e;t.name=== ` AbortError ` &&!c?(im.value={text: ` Turn stopped . ` ,tools:a,isError:!1,turn:r,isRetry:i},nm.value= ` Stopped ` ):(im.value={text: ` Unable to complete that turn : $ { t . message || t } ` ,tools:a,isError:!0,turn:r?Jp(r):void 0,isRetry:i},nm.value= ` Error — retry available ` )}finally{clearTimeout(l),_m=null,rm.value=!1}}function Mee(){nm.value= ` Stopping … ` , $ p.value&&X.chatCancel( $ p.value).catch(()=>{}),vm()}function Nee(){Vi(()=>{ym().catch(e=>{nm.value=e.message|| ` Chat unavailable ` })}),Gi(()=>{vm()})}var Pee=[ ` aria - label ` , ` title ` , ` aria - expanded ` , ` aria - controls ` ],Fee=I({__name: ` ChatFab ` ,props:{open:{type:Boolean}},emits:[ ` toggle ` ],setup(e,{emit:t}){let n=t;function r(e){return Y( ` 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)=>(B(),V( ` 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":N(Xp),onClick:i[0]||=e=>n( ` toggle ` )},[U( ` span ` ,{"aria-hidden": ` true ` ,class:A(r(!e.open))},[W(N(_d),{size:22})],2),U( ` span ` ,{"aria-hidden": ` true ` ,class:A(r(e.open))},[W(N(qd),{size:22})],2)],8,Pee))}});function Tm(e){return typeof e== ` string ` ? ` '${e}' ` :new Lee().serialize(e)}var Iee= ` _ - , ; : ! ? . '"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Em=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Iee.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Dm(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&&Em[n]?Em[n]:n+128,s=a<128&&Em[a]?Em[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 Lee=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Dm(e,t):n===`number`&&r===`number`?e-t:Dm(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(Dm),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 ` , ` Float Line truncated
` ).find(e=>e.startsWith( ` data : ` ));if(!t)continue;let n=JSON.parse(t.slice(6));if(n.session_id&&(em.value=n.session_id),n.type=== ` delta ` &&(o+=n.text,am.value=am.value?{...am.value,text:o}:null),(n.type=== ` tool ` ||n.type=== ` navigate ` )&&(a=[...a,n],am.value=am.value?{...am.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 ` );tm.value=[...tm.value,{from: ` assistant ` ,text:o,tool_calls:a}],am.value=null,rm.value= ` Ready ` ,await bm()}catch(e){let t=e;t.name=== ` AbortError ` &&!c?(am.value={text: ` Turn stopped . ` ,tools:a,isError:!1,turn:r,isRetry:i},rm.value= ` Stopped ` ):(am.value={text: ` Unable to complete that turn : $ { t . message || t } ` ,tools:a,isError:!0,turn:r?Yp(r):void 0,isRetry:i},rm.value= ` Error — retry available ` )}finally{clearTimeout(l),vm=null,im.value=!1}}function jee(){rm.value= ` Stopping … ` ,em.value&&X.chatCancel(em.value).catch(()=>{}),ym()}function Mee(){Vi(()=>{bm().catch(e=>{rm.value=e.message|| ` Chat unavailable ` })}),Gi(()=>{ym()})}var Nee=[ ` aria - label ` , ` title ` , ` aria - expanded ` , ` aria - controls ` ],Pee=I({__name: ` ChatFab ` ,props:{open:{type:Boolean}},emits:[ ` toggle ` ],setup(e,{emit:t}){let n=t;function r(e){return Y( ` 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)=>(B(),V( ` 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":N(Zp),onClick:i[0]||=e=>n( ` toggle ` )},[U( ` span ` ,{"aria-hidden": ` true ` ,class:A(r(!e.open))},[W(N(vd),{size:22})],2),U( ` span ` ,{"aria-hidden": ` true ` ,class:A(r(e.open))},[W(N(Jd),{size:22})],2)],8,Nee))}});function Em(e){return typeof e== ` string ` ? ` '${e}' ` :new Iee().serialize(e)}var Fee= ` _ - , ; : ! ? . '"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Dm=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Fee.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Om(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&&Dm[n]?Dm[n]:n+128,s=a<128&&Dm[a]?Dm[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 Iee=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Om(e,t):n===`number`&&r===`number`?e-t:Om(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(Om),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 ` , ` Float Line truncated
` )].join( `
` ))}return()=>i.value||r.value||o.value?Fs(t.default({present:o.value})[0],{ref:e=>{let t=Qm(e);return t?.hasAttribute===void 0||(t?.hasAttribute( ` data - reka - popper - content - wrapper ` )?a.value=t.firstElementChild:a.value=t),t}}):null}}),gg=I({name: ` PrimitiveSlot ` ,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=mh(n.default()),r=e.findIndex(e=>e.type!==Go);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?q(t,i.props):t,o=as({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),_g=[ ` area ` , ` img ` , ` input ` ],vg=I({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 ` &&_g.includes(r)?()=>Fs(r,t):r=== ` template ` ?()=>Fs(gg,t,{default:n.default}):()=>Fs(e.as,t,{default:n.default})}});function yg(){let e=M();return{primitiveElement:e,currentElement:J(()=>[ ` # text ` , ` # comment ` ].includes(e.value?. $ el.nodeName)?e.value?. $ el.nextElementSibling:Qm(e))}}var[bg,xg]=Mm( ` CollapsibleRoot ` ),Sg=I({__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=ph(r, ` open ` ,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=vn(r);return xg({contentId: ` ` ,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),Z(),(e,t)=>(B(),H(N(vg),{as:e.as,"as-child":r.asChild,"data-state":N(i)? ` open ` : ` closed ` ,"data-disabled":N(a)? ` ` :void 0},{default:P(()=>[R(e. $ slots, ` default ` ,{open:N(i)})]),_:3},8,[ ` as ` , ` as - child ` , ` data - state ` , ` data - disabled ` ]))}}),Cg=I({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=bg();i.contentId||=ag(void 0, ` reka - collapsible - content ` );let a=M(),{forwardRef:o,currentElement:s}=Z(),c=M(0),l=M(0),u=J(()=>i.open.value),d=M(u.value),f=M();F(()=>[u.value,a.value?.present],async()=>{await qn();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=J(()=>d.value&&i.open.value);return Vi(()=>{requestAnimationFrame(()=>{d.value=!1})}), $ m(s, ` beforematch ` ,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r( ` contentFound ` )})}),(e,t)=>(B(),H(N(hg),{ref_key: ` presentRef ` ,ref:a,present:e.forceMount||N(i).open.value,"force-mount":!0},{default:P(({present:t})=>[W(N(vg),q(e. $ attrs,{id:N(i).contentId,ref:N(o),"as-child":n.asChild,as:e.as,hidden:t?void 0:N(i).unmountOnHide.value? ` ` : ` until - found ` ,"data-state":p.value?void 0:N(i).open.value? ` open ` : ` closed ` ,"data-disabled":N(i).disabled?.value? ` ` :void 0,style:{"--reka-collapsible-content-height": ` $ { l . value } px ` ,"--reka-collapsible-content-width": ` $ { c . value } px ` }}),{default:P(()=>[!N(i).unmountOnHide.value||t?R(e. $ slots, ` default ` ,{key:0}):K( ` v - if ` ,!0)]),_:2},1040,[ ` id ` , ` as - child ` , ` as ` , ` hidden ` , ` data - state ` , ` data - disabled ` , ` style ` ])]),_:3},8,[ ` present ` ]))}}),wg=I({__name: ` CollapsibleTrigger ` ,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default: ` button ` }},setup(e){let t=e;Z();let n=bg();return(e,r)=>(B(),H(N(vg),{type:e.as=== ` button ` ? ` button ` :void 0,as:e.as,"as-child":t.asChild,"aria-controls":N(n).contentId,"aria-expanded":N(n).open.value,"data-state":N(n).open.value? ` open ` : ` closed ` ,"data-disabled":N(n).disabled?.value? ` ` :void 0,disabled:N(n).disabled?.value,onClick:N(n).onOpenToggle},{default:P(()=>[R(e. $ slots, ` default ` )]),_:3},8,[ ` type ` , ` as ` , ` as - child ` , ` aria - controls ` , ` aria - expanded ` , ` data - state ` , ` data - disabled ` , ` disabled ` , ` onClick ` ]))}});function Tg({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 Eg({type:e,defaultValue:t,modelValue:n}){return e||Tg({type:e,defaultValue:t,modelValue:n})}function Dg({type:e,defaultValue:t}){return t===void 0?e=== ` single ` ?void 0:[]:t}function Og(e,t){let n=J(()=>Eg(e)),r=ph(e, ` modelValue ` ,t,{defaultValue:Dg(e),passive:e.modelValue===void 0,deep:!0});function i(e){if(n.value=== ` single ` )r.value=Om(e,r.value)?void 0:e;else{let t=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(Im(t,e)){let n=t.findIndex(t=>Om(t,e));t.splice(n,1)}else t.push(e);r.value=t}}return{modelValue:r,changeModelValue:i,isSingle:J(()=>n.value=== ` single ` )}}var[kg,Ag]=Mm( ` AccordionRoot ` ),jg=I({__name: ` AccordionRoot ` ,props:{collapsible:{type:Boolean,required:!
Line truncated
` ))}return()=>i.value||r.value||o.value?Is(t.default({present:o.value})[0],{ref:e=>{let t= $ m(e);return t?.hasAttribute===void 0||(t?.hasAttribute( ` data - reka - popper - content - wrapper ` )?a.value=t.firstElementChild:a.value=t),t}}):null}}),_g=I({name: ` PrimitiveSlot ` ,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=hh(n.default()),r=e.findIndex(e=>e.type!==Ko);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?q(t,i.props):t,o=os({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),vg=[ ` area ` , ` img ` , ` input ` ],yg=I({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 ` &&vg.includes(r)?()=>Is(r,t):r=== ` template ` ?()=>Is(_g,t,{default:n.default}):()=>Is(e.as,t,{default:n.default})}});function bg(){let e=M();return{primitiveElement:e,currentElement:J(()=>[ ` # text ` , ` # comment ` ].includes(e.value?. $ el.nodeName)?e.value?. $ el.nextElementSibling: $ m(e))}}var[xg,Sg]=Nm( ` CollapsibleRoot ` ),Cg=I({__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=mh(r, ` open ` ,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:a,unmountOnHide:o}=vn(r);return Sg({contentId: ` ` ,disabled:a,open:i,unmountOnHide:o,onOpenToggle:()=>{a.value||(i.value=!i.value)}}),t({open:i}),Z(),(e,t)=>(B(),H(N(yg),{as:e.as,"as-child":r.asChild,"data-state":N(i)? ` open ` : ` closed ` ,"data-disabled":N(a)? ` ` :void 0},{default:P(()=>[R(e. $ slots, ` default ` ,{open:N(i)})]),_:3},8,[ ` as ` , ` as - child ` , ` data - state ` , ` data - disabled ` ]))}}),wg=I({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=xg();i.contentId||=og(void 0, ` reka - collapsible - content ` );let a=M(),{forwardRef:o,currentElement:s}=Z(),c=M(0),l=M(0),u=J(()=>i.open.value),d=M(u.value),f=M();F(()=>[u.value,a.value?.present],async()=>{await qn();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=J(()=>d.value&&i.open.value);return Vi(()=>{requestAnimationFrame(()=>{d.value=!1})}),eh(s, ` beforematch ` ,e=>{requestAnimationFrame(()=>{i.onOpenToggle(),r( ` contentFound ` )})}),(e,t)=>(B(),H(N(gg),{ref_key: ` presentRef ` ,ref:a,present:e.forceMount||N(i).open.value,"force-mount":!0},{default:P(({present:t})=>[W(N(yg),q(e. $ attrs,{id:N(i).contentId,ref:N(o),"as-child":n.asChild,as:e.as,hidden:t?void 0:N(i).unmountOnHide.value? ` ` : ` until - found ` ,"data-state":p.value?void 0:N(i).open.value? ` open ` : ` closed ` ,"data-disabled":N(i).disabled?.value? ` ` :void 0,style:{"--reka-collapsible-content-height": ` $ { l . value } px ` ,"--reka-collapsible-content-width": ` $ { c . value } px ` }}),{default:P(()=>[!N(i).unmountOnHide.value||t?R(e. $ slots, ` default ` ,{key:0}):K( ` v - if ` ,!0)]),_:2},1040,[ ` id ` , ` as - child ` , ` as ` , ` hidden ` , ` data - state ` , ` data - disabled ` , ` style ` ])]),_:3},8,[ ` present ` ]))}}),Tg=I({__name: ` CollapsibleTrigger ` ,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default: ` button ` }},setup(e){let t=e;Z();let n=xg();return(e,r)=>(B(),H(N(yg),{type:e.as=== ` button ` ? ` button ` :void 0,as:e.as,"as-child":t.asChild,"aria-controls":N(n).contentId,"aria-expanded":N(n).open.value,"data-state":N(n).open.value? ` open ` : ` closed ` ,"data-disabled":N(n).disabled?.value? ` ` :void 0,disabled:N(n).disabled?.value,onClick:N(n).onOpenToggle},{default:P(()=>[R(e. $ slots, ` default ` )]),_:3},8,[ ` type ` , ` as ` , ` as - child ` , ` aria - controls ` , ` aria - expanded ` , ` data - state ` , ` data - disabled ` , ` disabled ` , ` onClick ` ]))}});function Eg({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 Dg({type:e,defaultValue:t,modelValue:n}){return e||Eg({type:e,defaultValue:t,modelValue:n})}function Og({type:e,defaultValue:t}){return t===void 0?e=== ` single ` ?void 0:[]:t}function kg(e,t){let n=J(()=>Dg(e)),r=mh(e, ` modelValue ` ,t,{defaultValue:Og(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(Lm(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:J(()=>n.value=== ` single ` )}}var[Ag,jg]=Nm( ` AccordionRoot ` ),Mg=I({__name: ` AccordionRoot ` ,props:{collapsible:{type:Boolean,required:!
Line truncated
- a positive number
- less than the value passed to \ ` max \` (or ${ lS } if no \` max \` prop is set)
- less than the value passed to \ ` max \` (or ${ uS } if no \` max \` prop is set)
- \ ` null \` or \` undefined \` if the progress is indeterminate.
Defaulting to \ ` null \` . ` ) , null ) } function mS ( e ) { return fS ( 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 \` ${ lS } \` . ` ) , lS ) } var hS = I ( { _ _name : ` ProgressRoot ` , props : { modelValue : { type : [ Number , null ] , required : ! 1 } , max : { type : Number , required : ! 1 , default : lS } , getValueLabel : { type : Function , required : ! 1 , default : ( e , t ) => fS ( e ) ? ` ${ Math . round ( e / t * lS ) } % ` : 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 = ph ( n , ` modelValue ` , r , { passive : n . modelValue === void 0 } ) , a = ph ( n , ` max ` , r , { passive : n . max === void 0 } ) ; F ( ( ) => i . value , async e => { let t = pS ( e , n . max ) ; t !== e && ( await qn ( ) , i . value = t ) } , { immediate : ! 0 } ) , F ( ( ) => n . max , e => { let t = mS ( n . max ) ; t !== e && ( a . value = t ) } , { immediate : ! 0 } ) ; let o = J ( ( ) => Fm ( i . value ) ? ` indeterminate ` : i . value === a . value ? ` complete ` : ` loading ` ) ; return dS ( { modelValue : i , max : a , progressState : o } ) , ( e , t ) => ( B ( ) , H ( N ( vg ) , { "as-child" : e . asChild , as : e . as , "aria-valuemax" : N ( a ) , "aria-valuemin" : 0 , "aria-valuenow" : fS ( N ( i ) ) ? N ( i ) : void 0 , "aria-valuetext" : e . getValueText ? . ( N ( i ) , N ( a ) ) , "aria-label" : e . getValueLabel ( N ( i ) , N ( a ) ) , role : ` progressbar ` , "data-state" : o . value , "data-value" : N ( i ) ? ? void 0 , "data-max" : N ( a ) } , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { modelValue : N ( i ) } ) ] ) , _ : 3 } , 8 , [ ` as-child ` , ` as ` , ` aria-valuemax ` , ` aria-valuenow ` , ` aria-valuetext ` , ` aria-label ` , ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , gS = I ( { _ _name : ` ProgressIndicator ` , props : { asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , setup ( e ) { let t = e , n = uS ( ) ; return Z ( ) , ( e , r ) => ( B ( ) , H ( N ( vg ) , q ( t , { "data-state" : N ( n ) . progressState . value , "data-value" : N ( n ) . modelValue ? . value ? ? void 0 , "data-max" : N ( n ) . max . value } ) , { default : P ( ( ) => [ R ( e . $slots , ` default ` ) ] ) , _ : 3 } , 16 , [ ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , _S = ` radio.select ` ; function vS ( e , t , n ) { Pm ( _S , n , { originalEvent : e , value : t } ) } var yS = I ( { 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 = ph ( n , ` checked ` , r , { passive : n . checked === void 0 } ) , { value : a } = vn ( n ) , { forwardRef : o , currentElement : s } = Z ( ) , c = Lh ( s ) , l = Bh ( ) , u = J ( ( ) => n . id && s . value ? document . querySelector ( ` [for=" ${ n . id } "] ` ) ? . innerText : void 0 ) ; function d ( e ) { n . disabled || vS ( e , n . value , e => { r ( ` select ` , e ) , ! e ? . defaultPrevented && ( i . value = ! 0 , c . value && e . stopPropagation ( ) ) } ) } return ( e , t ) => ( B ( ) , V ( z , null , [ W ( N ( vg ) , q ( { id : e . id , ref : N ( o ) , role : ` radio ` , type : e . as === ` button ` ? ` button ` : void 0 , as : e . as , "aria-checked" : N ( i ) ? ? ! 1 , "aria-label" : u . value , "as-child" : e . asChild , disabled : e . disabled ? ` ` : void 0 , "data-state" : N ( i ) ? ` checked ` : ` unchecked ` , "data-disabled" : e . disabled ? ` ` : void 0 , value : N ( a ) , required : e . required , name : e . name } , { ... N ( l ) , ... e . $attrs } , { onClick : Il ( d , [ ` stop ` ] ) } ) , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { checked : N ( i ) } ) ] ) , _ : 3 } , 16 , [ ` id ` , ` type ` , ` as ` , ` aria-checked ` , ` aria-label ` , ` as-child ` , ` disabled ` , ` data-state ` , ` data-disabled ` , ` value ` , ` required ` , ` name ` ] ) , N ( c ) && e . name ? ( B ( ) , H ( N ( q _ ) , q ( { key : 0 , type : ` radio ` , tabindex : ` -1 ` , value : N ( a ) , checked : ! ! N ( i ) , name : e . name , disabled : e . disabled , required : e . required } , N ( l ) ) , null , 16 , [ ` value ` , ` checked ` , ` name ` , ` disabled ` , ` required ` ] ) ) : K ( ` v-if ` , ! 0 ) ] , 64 ) ) } } ) , [ bS , xS ] = Mm ( ` RadioGroupRoot ` ) , SS = I ( { _ _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 = ph ( n , ` modelValue ` , r , { defaultValue : n . defaultValue , passive : n . modelValue === void 0 } ) , { disabled : s , loop : c , orientation : l , name : u , required : d , dir : f } = vn ( n ) , p = Mh ( f ) , m = Lh ( a ) ; return xS ( { modelValue : o , changeModelValue : e => { o . value = e } , disabled : s , loop : c , orientation : l , name : u ? . value , required : d } ) , ( e , t ) => ( B ( ) , H ( N ( kb ) , { "as-child" : ` ` , orientation : N ( l ) , dir : N ( p ) , loop : N ( c ) } , { default : P ( ( ) => [ W ( N ( vg ) , { ref : N ( i ) , role : ` radiogroup ` , "data-disabled" : N ( s ) ? ` ` : void 0 , "as-child" : e . asChild , as : e . as , "aria-orientation" : N ( l ) , "aria-required" : N ( d ) , dir : N ( p ) } , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { modelValue : N ( o ) } ) , N ( m ) && N ( u ) ? ( B ( ) , H ( N ( q _ ) , { key : 0 , required : N ( d ) , disabled : N ( s ) , value : N ( o ) , name : N ( u ) } , null , 8 , [ ` required ` , ` disabled ` , ` value ` , ` name ` ] ) ) : K ( ` v-if ` , ! 0 ) ] ) , _ : 3 } , 8 , [ ` data-disabled ` , ` as-child ` , ` as ` , ` aria-orientation ` , ` aria-required ` , ` dir ` ] ) ] ) , _ : 3 } , 8 , [ ` orientation ` , ` dir ` , ` loop ` ] ) ) } } ) , [ Jee , Yee ] = Mm ( ` RadioGroupItem ` ) , CS = I ( { inheritAttrs : ! 1 , _ _name : ` RadioGroupItem ` , props : { id : { type : String , required : ! 1 } , value : { type : n Line truncated
` ),r=[],i=null,a=null,o=()=>{r.length&&(t.push({kind: ` p ` ,inline:U T(r.join( ` ` ))}),r=[])},s=()=>{i&&=(t.push({kind:i.tag,items:i.items.map(e=>U T(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=W T(c),u=e+1<n.length?W T(n[e+1]):null;if(l&&u&&E te(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=W T(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind: ` table ` ,head:l.map(e=>U T(e)),rows:r.map(e=>e.map(e=>U T(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:U T(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:U T(c.replace(/^> \s ?/, ` ` ))});continue}r.push(c)}return o(),s(),a&&t.push({kind: ` pre ` ,code:a.join( `
` )}),t}function WT(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 Ete(e){return e.every(e=>/^:?-{3,}:? $ /.test(e))}var Dte={class: ` [ overflow - wrap : anywhere ] ` },Ote={key:0,class: ` my - 2 overflow - auto rounded - md border border - border bg - background / 60 p - 3 ` },kte={class: ` font - mono text - [ 0.85 em ] ` },Ate={key:1,class: ` my - 3 w - full border - collapse text - [ 0.92 em ] ` },jte={key:2,class: ` my - 2 border - l - [ 3 px ] border - primary pl - 3 text - fg - muted ` },Mte={key:3,class: ` mt - 1 mb - 2 text - xl leading - tight font - semibold tracking - [ - 0.02 em ] ` },Nte={key:4,class: ` mt - 1 mb - 2 text - lg leading - tight font - semibold tracking - [ - 0.02 em ] ` },Pte={key:5,class: ` mt - 1 mb - 2 text - base leading - tight font - semibold tracking - [ - 0.02 em ] ` },Fte={key:6,class: ` my - 2.5 flex list - disc flex - col gap - 1 pl - 5 ` },Ite={key:7,class: ` my - 2.5 flex list - decimal flex - col gap - 1 pl - 5 ` },Lte={key:8,class: ` mb - 2.5 last : mb - 0 ` },Rte=I({__name: ` ChatMarkdown ` ,props:{text:{}},setup(e){let t=e,n=J(()=>Tte(t.text));return(e,t)=>(B(),V( ` div ` ,Dte,[(B(!0),V(z,null,L(n.value,(e,t)=>(B(),V(z,{key:t},[e.kind=== ` pre ` ?(B(),V( ` pre ` ,Ote,[U( ` code ` ,kte,j(e.code),1)])):e.kind=== ` table ` ?(B(),V( ` table ` ,Ate,[U( ` thead ` ,null,[U( ` tr ` ,null,[(B(!0),V(z,null,L(e.head,(e,t)=>(B(),V( ` th ` ,{key:t,class: ` border border - border bg - muted px - 2 py - 1.5 text - left font - semibold ` },[W(HT,{inline:e},null,8,[ ` inline ` ])]))),128))])]),U( ` tbody ` ,null,[(B(!0),V(z,null,L(e.rows,(e,t)=>(B(),V( ` tr ` ,{key:t},[(B(!0),V(z,null,L(e,(e,t)=>(B(),V( ` td ` ,{key:t,class: ` border border - border px - 2 py - 1.5 text - left ` },[W(HT,{inline:e},null,8,[ ` inline ` ])]))),128))]))),128))])])):e.kind=== ` blockquote ` ?(B(),V( ` blockquote ` ,jte,[W(HT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h1 ` ?(B(),V( ` h1 ` ,Mte,[W(HT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h2 ` ?(B(),V( ` h2 ` ,Nte,[W(HT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h3 ` ?(B(),V( ` h3 ` ,Pte,[W(HT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` ul ` ?(B(),V( ` ul ` ,Fte,[(B(!0),V(z,null,L(e.items,(e,t)=>(B(),V( ` li ` ,{key:t},[W(HT,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` ol ` ?(B(),V( ` ol ` ,Ite,[(B(!0),V(z,null,L(e.items,(e,t)=>(B(),V( ` li ` ,{key:t},[W(HT,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` p ` ?(B(),V( ` p ` ,Lte,[W(HT,{inline:e.inline},null,8,[ ` inline ` ])])):K( ` ` ,!0)],64))),128))]))}}),zte={class: ` truncate ` },Bte=I({__name: ` ChatNavChip ` ,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=Qi( ` RouterLink ` );return B(),H(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:P(()=>[W(N(Gu),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 ` }),U( ` span ` ,zte,j(e.label||e.path),1)]),_:1},8,[ ` to ` , ` title ` ])}}}),Vte={key:1,class: ` flex items - baseline gap - 1.5 [ overflow - wrap : anywhere ] ` },Hte={class: ` font - semibold text - foreground ` },Ute={key:0,class: ` font - mono text - [ 0.95 em ] text - fg - subtle ` },Wte=I({__name: ` ChatToolCall ` ,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=J(()=>t.tool.name||t.tool.Name||t.tool.tool|| ` tool ` ),r=J(()=>t.tool.parameters||t.tool.Parameters|| ` ` ),i=J(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=J(()=>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?(B(),H(Bte,{key:0,path:e.tool.path,label:e.tool.label},null,8,[ ` path ` , ` label ` ])):(B(),V( ` div ` ,Vte,[W(N(Kd),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 self - center text - fg - subtle ` }),U( ` span ` ,Hte,j(n.value),1),r.value?(B(),V( ` code ` ,Ute,j(r.value),1)):K( ` ` ,!0),U( ` span ` ,{class:A(N(Y)( ` text - fg - muted ` ,i.value&& ` text - danger ` ))},j(a.value),3)]))}}),Gte={key:0,class: ` mb - 2 grid gap - 0.5 text - xs ` },Kte={key:1,class: ` mb - 2 flex flex - wrap gap - 1.5 ` },qte={key:3,class: ` whitespace - pre - wrap ` },GT=I({__name: ` ChatBubble ` ,props:{text:{},tools:{default:()=>[]},media:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(B(),V( ` div ` ,{class:A([ ` flex ` ,e.assistant? ` justify - start ` : ` justify - end ` ])},[U( ` div ` ,{class:A(N(Y)( ` 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?(B(),V( ` div ` ,Gte,[(B(!0),V(z,null,L(e.tools,(t,n)=>(B(),H(Wte,{key:n,tool:t,streaming:e.streaming},null,8,[ ` tool ` , ` streaming ` ]))),128))])):K( ` ` ,!0),e.media.length?(B(),V( ` div ` ,Kte,[(B(!0),V(z,null,L(e.media,(e,t)=>(B(),H(_te,{key:t,attachment:e},null,8,[ ` attachment ` ]))),128))])):K( ` ` ,!0),e.assistant?(B(),H(Rte,{key:2,text:e.text},null,8,[ ` text ` ])):(B(),V( ` div ` ,qte,j(e.text),1)),R(t. $ slots, ` default ` )],2)],2))}}),Jte={class: ` w - full self - center justify - self - center py - 6 text - center ` },Yte={class: ` grid gap - 2 ` },Xte=[ ` onC Line truncated
` ).map(e=>e.trim()).find(Boolean)|| ` ` ,r=n.length>NA? ` $ { n . slice ( 0 , NA ) . trimEnd ( ) } … ` :n;return{text:r,full:t,truncated:r!==t}}var FA=[ ` title ` ],IA=I({__name: ` ActivityRow ` ,props:{event:{}},emits:[ ` open ` ],setup(e,{emit:t}){let n=e,r=t,i=J(()=>oA(n.event)),a=J(()=>PA(n.event));function o(){i.value>0&&r( ` open ` ,i.value)}let s=J(()=>n.event.at?mk(n.event.at): ` — ` );return(e,t)=>(B(),H(N(AA),{class:A(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:[Ll(Il(o,[ ` prevent ` ]),[ ` enter ` ]),Ll(Il(o,[ ` prevent ` ]),[ ` space ` ])]},{default:P(()=>[W(N( $ ),{class: ` font - medium ` },{default:P(()=>[G(j(n.event.kind||n.event.type|| ` event ` ),1)]),_:1}),W(N( $ ),{class: ` font - mono ` },{default:P(()=>[G(j(i.value>0? ` # $ { i . value } ` : ` — ` ),1)]),_:1}),W(N( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:P(()=>[U( ` span ` ,{class: ` block truncate ` ,title:a.value.truncated?a.value.full:void 0},j(a.value.text),9,FA)]),_:1}),W(N( $ ),null,{default:P(()=>[G(j(s.value),1)]),_:1})]),_:1},8,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onKeydown ` ]))}}),LA=[{value: ` all ` ,label: ` All ` },{value: ` tasks ` ,label: ` Tasks ` },{value: ` system ` ,label: ` System ` }];function RA(e){return(Number(e?.task_id)||0)>0}function zA(e,t){return t=== ` tasks ` ?RA(e):t!== ` system ` ||!RA(e)}function BA(e,t){return e.filter(e=>zA(e,t))}function VA(e,t){return e>0? ` ` :t=== ` all ` ? ` Waiting for activity ` :t=== ` tasks ` ? ` No task events yet ` : ` No system events yet ` }function HA(e,t){return ` $ { e } : $ { t ? ? 0 } ` }function UA(e){let t=[];for(let n of e){let e=n.kind||n.type|| ` event ` ,r=Number(n.task_id)||0,i=HA(PA(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 WA={role: ` region ` ,"aria-label": ` Live activity ` ,"aria-live": ` polite ` },GA={class: ` max - h - [ 28 rem ] overflow - y - auto ` },KA=[ ` aria - expanded ` , ` aria - label ` , ` onClick ` ],qA=[ ` title ` ],JA=I({__name: ` LiveActivityCard ` ,setup(e){let t=oE(),{activity:n,streamKind:r,streamState:i}=Au(gO()),a=M( ` all ` ),o=J(()=>BA(n.value,a.value)),s=J(()=>VA(o.value.length,a.value)),c=Jt(new Set),l=J(()=>UA(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 PA(e.representative)}function p(e){return e.representative.at?mk(e.representative.at): ` — ` }function m(e){t.push( ` / tasks ? task = $ { encodeURIComponent ( e ) } ` )}return(e,t)=>(B(),H(N(sk),null,{default:P(()=>[W(N(fk),null,{default:P(()=>[W(N(pk),null,{default:P(()=>[...t[1]||=[G( ` Live activity ` ,-1)]]),_:1}),W(N(ck),{class: ` flex items - center gap - 2 ` },{default:P(()=>[W(N(EA),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,label: ` Filter activity ` ,options:N(LA)},null,8,[ ` modelValue ` , ` options ` ]),W(N(ik),{variant:N(r)},{default:P(()=>[G(j(N(i)),1)]),_:1},8,[ ` variant ` ])]),_:1})]),_:1}),W(N(lk),null,{default:P(()=>[U( ` div ` ,WA,[U( ` div ` ,GA,[W(N(OA),null,{default:P(()=>[W(N(MA),{class: ` sticky top - 0 z - 10 bg - card ` },{default:P(()=>[W(N(AA),null,{default:P(()=>[W(N(jA),null,{default:P(()=>[...t[2]||=[G( ` Event ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[3]||=[G( ` Task ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[4]||=[G( ` Detail ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[5]||=[G( ` When ` ,-1)]]),_:1})]),_:1})]),_:1}),W(N(kA),null,{default:P(()=>[o.value.length?K( ` ` ,!0):(B(),H(N(AA),{key:0},{default:P(()=>[W(N( $ ),{colspan: ` 4 ` },{default:P(()=>[W(N(XO),null,{default:P(()=>[W(N( $ O),null,{default:P(()=>[W(N(nk),null,{default:P(()=>[G(j(s.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),o.value.length?(B(!0),V(z,{key:1},L(l.value,e=>(B(),V(z,{key:e.key},[e.count===1?(B(),H(IA,{key:0,event:e.representative,onOpen:m},null,8,[ ` event ` ])):(B(),V(z,{key:1},[W(N(AA),{class:A(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:[Ll(Il(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` enter ` ]),Ll(Il(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` space ` ])]},{default:P(()=>[W(N( $ ),{class: ` font - medium ` },{default:P(()=>[U( ` 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:Il(t=>u(e.key),[ ` stop ` ])},[d(e)?(B(),H(N(Qu),{key:0,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })):(B(),H(N( $ u),{key:1,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })),G( ` ` +j(e.label)+ ` ` ,1),W(N(ik),{variant: ` idle ` },{default:P(()=>[G( ` × ` +j(e.count),1)]),_:2},1024)],8,KA)]),_:2},1024),W(N( $ ),{class: ` font - mono ` },{default:P(()=>[G(j(e.taskID>0? ` # $ { e . taskID } ` : ` — ` ),1)]),_:2},1024),W(N( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:P(()=>[U( ` span ` ,{class: ` block truncate ` ,title:f(e).truncated?f(e).full:void 0},j(f(e).text),9,qA)]),_:2},1024),W(N( $ ),null,{default:P(()=>[G(j(p(e)),1)]),_:2},1024)]),_:2},1032,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onClick ` , ` onKeydown ` ]),d(e)?(B(!0),V(z,{key:0},L(e.events,(t,n)=>(B(),H(IA,{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 hM(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 gM(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 _M(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 vM(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 yM=M([]),bM=M([]),xM=M(!0),SM=M(null),CM=M(null),wM=M(!1),TM=M(null);async function EM(){try{let e=await X.eventTypes();xM.value=e.enabled!==!1,yM.value=e.event_types||[],bM.value=e.proposals||[],SM.value=null}catch(e){SM.value=e.message||String(e)}}function DM(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function OM(e){TM.value=null,CM.value=e}function kM(e){let t=LM.value.find(t=>String(t.id)===e.sample_id);OM({mode: ` proposal ` ,id:null,source:e.source,name: ` ` ,rule:DM(e.rule),headersText: ` ` ,body:t?.body|| ` ` ,exampleHeaders:e.headers||{}})}function AM(e= ` ` ){OM({mode: ` paste ` ,id:null,source:e,name: ` ` ,rule:{headers:[],payload:[]},headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function jM(e){OM({mode: ` edit ` ,id:e.id,source:e.source,name:e.name,rule:DM(e.rule),headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function MM(){CM.value=null}async function NM(){let e=CM.value;if(e){wM.value=!0;try{if(e.mode=== ` edit ` &&e.id)await X.eventTypeUpdate(e.id,{name:e.name,rule:vM(e.rule)});else{let t=e.mode=== ` paste ` ?mM(e.headersText):e.exampleHeaders;await X.eventTypeCreate({source:e.source,name:e.name,rule:e.mode=== ` paste ` ?void 0:vM(e.rule),example:{headers:t,body:e.body}})}CM.value=null,await EM()}catch(e){TM.value=e.message||String(e)}finally{wM.value=!1}}}var PM=M(null);async function FM(){let e=PM.value;if(PM.value=null,e)try{await X.eventTypeDelete(e.id),await EM()}catch(e){SM.value=e.message||String(e)}}var IM=100,LM=M([]),RM=M(!0),zM=M(null),BM=M(!0),VM=M(null);async function HM(){try{let e=await X.captures(IM);RM.value=e.enabled!==!1,LM.value=e.captures||[],zM.value=null}catch(e){zM.value=e.message||String(e)}finally{BM.value=!1}}function UM(e){let t=LM.value.find(t=>t.id===e);return t&&(VM.value=t),!!t}function WM(){LM.value.length&&(VM.value=LM.value[0])}function GM(){_O( ` captures ` ,()=>{HM(),EM()})}var KM={key:0,class: ` text - xs text - fg - muted ` },qM={key:1,class: ` flex flex - col gap - 1 text - xs ` },JM={key:1},YM={key:2,class: ` text - xs text - fg - muted ` },XM=I({__name: ` DispatchLinks ` ,props:{kind:{},id:{}},setup(e){let t=e,n=M([]),r=M(!1);F(()=>[t.kind,t.id],async()=>{r.value=!1;try{n.value=await X.dispatches(t.kind,t.id)}catch{n.value=[],r.value=!0}},{immediate:!0});let i=e=>({path: ` / events ` ,query:{tab: ` inspector ` ,capture:e}});return(e,a)=>{let o=Qi( ` RouterLink ` );return r.value?(B(),V( ` p ` ,KM, ` Dispatches unavailable . ` )):n.value.length?(B(),V( ` ul ` ,qM,[(B(!0),V(z,null,L(n.value,e=>(B(),V( ` li ` ,{key:e.binding_id+e.capture_id,class: ` flex flex - wrap items - center gap - x - 2 font - mono text - fg - muted ` },[t.kind=== ` bindings ` ?K( ` ` ,!0):(B(),H(o,{key:0,to:{path: ` / events ` ,query:{tab: ` bindings ` }},class: ` hover : text - foreground ` },{default:P(()=>[G( ` binding ` +j(e.binding_id.slice(0,8))+ ` v ` +j(e.binding_version),1)]),_:2},1024)),t.kind=== ` captures ` ?K( ` ` ,!0):(B(),H(o,{key:1,to:i(e.capture_id),class: ` hover : text - foreground ` },{default:P(()=>[G( ` capture ` +j(e.capture_id.slice(0,8)),1)]),_:2},1032,[ ` to ` ])),t.kind=== ` tasks ` ?K( ` ` ,!0):(B(),V(z,{key:2},[e.task_id?(B(),H(o,{key:0,to: ` / tasks / $ { e . task _id } ` ,class: ` text - foreground hover : underline ` },{default:P(()=>[G( ` task # ` +j(e.task_id),1)]),_:2},1032,[ ` to ` ])):(B(),V( ` span ` ,JM,j(e.reason|| ` claimed , no task recorded ` ),1))],64)),U( ` span ` ,null,j(N(mk)(e.dispatched_at)),1)]))),128))])):t.kind=== ` tasks ` ?K( ` ` ,!0):(B(),V( ` p ` ,YM, ` No dispatches yet . ` ))}}}),ZM=I({__name: ` Spinner ` ,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(B(),H(N(pd),{role: ` status ` ,"aria-label": ` Loading ` ,class:A(N(Y)( ` size - 4 animate - spin ` ,t.class))},null,8,[ ` class ` ]))}});function QM(e,t){return t?e.filter(e=>e.event_type_id===t):[]}function $ M(e){return(e?.repository?? ` required ` )!== ` none ` }function eN(e,t){return e.filter(e=>t=== ` any ` ||e.type=== ` any ` ||e.type===t)}function tN(e,t){switch(t){case ` string ` :return e;case ` number ` :return e.trim()!== ` ` &&!Number.isNaN(Number(e))?Number(e):e;case ` bool ` :return e=== ` true ` ||e!== ` false ` &&e;default:try{return JSON.parse(e)}catch{return e}}}var nN={pending_approval: ` pending approval ` ,armed: ` armed ` ,paused: ` paused ` },rN={pending_approval: ` warn ` ,armed: ` ok ` ,paused: ` idle ` };function iN(e)
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 wJ(e){let t=new Set;return hJ(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function TJ(e,t){for(let n=1;;++n){let r= ` $ { e } $ { n } ` ;if(!t.has(r))return r}}function EJ(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=wJ(e);let a=TJ(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t== ` object ` &&t.anchor&&(sJ(t.node)||lJ(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 DJ(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=DJ(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=DJ(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=DJ(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=DJ(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function OJ(e,t,n){if(Array.isArray(e))return e.map((e,t)=>OJ(e,String(t),n));if(e&&typeof e.toJSON== ` function ` ){if(!n||!dJ(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 kJ=class{constructor(e){Object.defineProperty(this,nJ,{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(!iJ(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=OJ(this, ` ` ,a);if(typeof r== ` function ` )for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i== ` function ` ?DJ(i,{"":o}, ` ` ,o):o}},AJ=class extends kJ{constructor(e){super(Xq),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=[],hJ(e,{Node:(e,t)=>{(rJ(t)||dJ(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||=(OJ(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=jJ(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 jJ(e,t,n){if(rJ(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(lJ(t)){let r=0;for(let i of t.items){let t=jJ(e,i,n);t>r&&(r=t)}return r}if(oJ(t)){let r=jJ(e,t.key,n),i=jJ(e,t.value,n);return Math.max(r,i)}return 1}var MJ=e=>!e||typeof e!= ` function ` &&typeof e!= ` object ` ,NJ=class extends kJ{constructor(e){super(eJ),this.value=e}toJSON(e,t){return t?.keep?this.value:OJ(this.value,e,t)}toString(){return String(this.value)}};NJ.BLOCK_FOLDED= ` BLOCK _FOLDED ` ,NJ.BLOCK_LITERAL= ` BLOCK _LITERAL ` ,NJ.PLAIN= ` PLAIN ` ,NJ.QUOTE_DOUBLE= ` QUOTE _DOUBLE ` ,NJ.QUOTE_SINGLE= ` QUOTE _SINGLE ` ;var PJ= ` tag : yaml . org , 2002 : ` ;function FJ(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 IJ(e,t,n){if(iJ(e)&&(e=e.contents),uJ(e))return e;if(oJ(e)){let t=n.schema[Qq].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 AJ(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith( ` ! ! ` )&&(t=PJ+t.slice(2));let l=FJ(e,t,o.tags);if(!l){if(e&&typeof e.toJSON== ` function ` &&(e=e.toJSON()),!e||typeof e!= ` object ` ){let t=new NJ(e);return c&&(c.node=t),t
Line truncated
` )?V J(n,t):n.includes( `
Defaulting to \ ` null \` . ` ) , null ) } function hS ( e ) { return pS ( 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 \` ${ uS } \` . ` ) , uS ) } var gS = I ( { _ _name : ` ProgressRoot ` , props : { modelValue : { type : [ Number , null ] , required : ! 1 } , max : { type : Number , required : ! 1 , default : uS } , getValueLabel : { type : Function , required : ! 1 , default : ( e , t ) => pS ( e ) ? ` ${ Math . round ( e / t * uS ) } % ` : 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 = mh ( n , ` modelValue ` , r , { passive : n . modelValue === void 0 } ) , a = mh ( n , ` max ` , r , { passive : n . max === void 0 } ) ; F ( ( ) => i . value , async e => { let t = mS ( e , n . max ) ; t !== e && ( await qn ( ) , i . value = t ) } , { immediate : ! 0 } ) , F ( ( ) => n . max , e => { let t = hS ( n . max ) ; t !== e && ( a . value = t ) } , { immediate : ! 0 } ) ; let o = J ( ( ) => Im ( i . value ) ? ` indeterminate ` : i . value === a . value ? ` complete ` : ` loading ` ) ; return fS ( { modelValue : i , max : a , progressState : o } ) , ( e , t ) => ( B ( ) , H ( N ( yg ) , { "as-child" : e . asChild , as : e . as , "aria-valuemax" : N ( a ) , "aria-valuemin" : 0 , "aria-valuenow" : pS ( N ( i ) ) ? N ( i ) : void 0 , "aria-valuetext" : e . getValueText ? . ( N ( i ) , N ( a ) ) , "aria-label" : e . getValueLabel ( N ( i ) , N ( a ) ) , role : ` progressbar ` , "data-state" : o . value , "data-value" : N ( i ) ? ? void 0 , "data-max" : N ( a ) } , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { modelValue : N ( i ) } ) ] ) , _ : 3 } , 8 , [ ` as-child ` , ` as ` , ` aria-valuemax ` , ` aria-valuenow ` , ` aria-valuetext ` , ` aria-label ` , ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , _S = I ( { _ _name : ` ProgressIndicator ` , props : { asChild : { type : Boolean , required : ! 1 } , as : { type : null , required : ! 1 } } , setup ( e ) { let t = e , n = dS ( ) ; return Z ( ) , ( e , r ) => ( B ( ) , H ( N ( yg ) , q ( t , { "data-state" : N ( n ) . progressState . value , "data-value" : N ( n ) . modelValue ? . value ? ? void 0 , "data-max" : N ( n ) . max . value } ) , { default : P ( ( ) => [ R ( e . $slots , ` default ` ) ] ) , _ : 3 } , 16 , [ ` data-state ` , ` data-value ` , ` data-max ` ] ) ) } } ) , vS = ` radio.select ` ; function yS ( e , t , n ) { Fm ( vS , n , { originalEvent : e , value : t } ) } var bS = I ( { 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 = mh ( n , ` checked ` , r , { passive : n . checked === void 0 } ) , { value : a } = vn ( n ) , { forwardRef : o , currentElement : s } = Z ( ) , c = Rh ( s ) , l = Vh ( ) , u = J ( ( ) => n . id && s . value ? document . querySelector ( ` [for=" ${ n . id } "] ` ) ? . innerText : void 0 ) ; function d ( e ) { n . disabled || yS ( e , n . value , e => { r ( ` select ` , e ) , ! e ? . defaultPrevented && ( i . value = ! 0 , c . value && e . stopPropagation ( ) ) } ) } return ( e , t ) => ( B ( ) , V ( z , null , [ W ( N ( yg ) , q ( { id : e . id , ref : N ( o ) , role : ` radio ` , type : e . as === ` button ` ? ` button ` : void 0 , as : e . as , "aria-checked" : N ( i ) ? ? ! 1 , "aria-label" : u . value , "as-child" : e . asChild , disabled : e . disabled ? ` ` : void 0 , "data-state" : N ( i ) ? ` checked ` : ` unchecked ` , "data-disabled" : e . disabled ? ` ` : void 0 , value : N ( a ) , required : e . required , name : e . name } , { ... N ( l ) , ... e . $attrs } , { onClick : Ll ( d , [ ` stop ` ] ) } ) , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { checked : N ( i ) } ) ] ) , _ : 3 } , 16 , [ ` id ` , ` type ` , ` as ` , ` aria-checked ` , ` aria-label ` , ` as-child ` , ` disabled ` , ` data-state ` , ` data-disabled ` , ` value ` , ` required ` , ` name ` ] ) , N ( c ) && e . name ? ( B ( ) , H ( N ( J _ ) , q ( { key : 0 , type : ` radio ` , tabindex : ` -1 ` , value : N ( a ) , checked : ! ! N ( i ) , name : e . name , disabled : e . disabled , required : e . required } , N ( l ) ) , null , 16 , [ ` value ` , ` checked ` , ` name ` , ` disabled ` , ` required ` ] ) ) : K ( ` v-if ` , ! 0 ) ] , 64 ) ) } } ) , [ xS , SS ] = Nm ( ` RadioGroupRoot ` ) , CS = I ( { _ _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 = mh ( n , ` modelValue ` , r , { defaultValue : n . defaultValue , passive : n . modelValue === void 0 } ) , { disabled : s , loop : c , orientation : l , name : u , required : d , dir : f } = vn ( n ) , p = Nh ( f ) , m = Rh ( a ) ; return SS ( { modelValue : o , changeModelValue : e => { o . value = e } , disabled : s , loop : c , orientation : l , name : u ? . value , required : d } ) , ( e , t ) => ( B ( ) , H ( N ( Ab ) , { "as-child" : ` ` , orientation : N ( l ) , dir : N ( p ) , loop : N ( c ) } , { default : P ( ( ) => [ W ( N ( yg ) , { ref : N ( i ) , role : ` radiogroup ` , "data-disabled" : N ( s ) ? ` ` : void 0 , "as-child" : e . asChild , as : e . as , "aria-orientation" : N ( l ) , "aria-required" : N ( d ) , dir : N ( p ) } , { default : P ( ( ) => [ R ( e . $slots , ` default ` , { modelValue : N ( o ) } ) , N ( m ) && N ( u ) ? ( B ( ) , H ( N ( J _ ) , { key : 0 , required : N ( d ) , disabled : N ( s ) , value : N ( o ) , name : N ( u ) } , null , 8 , [ ` required ` , ` disabled ` , ` value ` , ` name ` ] ) ) : K ( ` v-if ` , ! 0 ) ] ) , _ : 3 } , 8 , [ ` data-disabled ` , ` as-child ` , ` as ` , ` aria-orientation ` , ` aria-required ` , ` dir ` ] ) ] ) , _ : 3 } , 8 , [ ` orientation ` , ` dir ` , ` loop ` ] ) ) } } ) , [ qee , wS ] = Nm ( ` RadioGroupItem ` ) , TS = I ( { 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:H T(r.join( ` ` ))}),r=[])},s=()=>{i&&=(t.push({kind:i.tag,items:i.items.map(e=>H T(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=U T(c),u=e+1<n.length?U T(n[e+1]):null;if(l&&u&&D te(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=U T(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind: ` table ` ,head:l.map(e=>H T(e)),rows:r.map(e=>e.map(e=>H T(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:H T(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:H T(c.replace(/^> \s ?/, ` ` ))});continue}r.push(c)}return o(),s(),a&&t.push({kind: ` pre ` ,code:a.join( `
` )}),t}function UT(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 Dte(e){return e.every(e=>/^:?-{3,}:? $ /.test(e))}var Ote={class: ` [ overflow - wrap : anywhere ] ` },kte={key:0,class: ` my - 2 overflow - auto rounded - md border border - border bg - background / 60 p - 3 ` },Ate={class: ` font - mono text - [ 0.85 em ] ` },jte={key:1,class: ` my - 3 w - full border - collapse text - [ 0.92 em ] ` },Mte={key:2,class: ` my - 2 border - l - [ 3 px ] border - primary pl - 3 text - fg - muted ` },Nte={key:3,class: ` mt - 1 mb - 2 text - xl leading - tight font - semibold tracking - [ - 0.02 em ] ` },Pte={key:4,class: ` mt - 1 mb - 2 text - lg leading - tight font - semibold tracking - [ - 0.02 em ] ` },Fte={key:5,class: ` mt - 1 mb - 2 text - base leading - tight font - semibold tracking - [ - 0.02 em ] ` },Ite={key:6,class: ` my - 2.5 flex list - disc flex - col gap - 1 pl - 5 ` },Lte={key:7,class: ` my - 2.5 flex list - decimal flex - col gap - 1 pl - 5 ` },Rte={key:8,class: ` mb - 2.5 last : mb - 0 ` },zte=I({__name: ` ChatMarkdown ` ,props:{text:{}},setup(e){let t=e,n=J(()=>Ete(t.text));return(e,t)=>(B(),V( ` div ` ,Ote,[(B(!0),V(z,null,L(n.value,(e,t)=>(B(),V(z,{key:t},[e.kind=== ` pre ` ?(B(),V( ` pre ` ,kte,[U( ` code ` ,Ate,j(e.code),1)])):e.kind=== ` table ` ?(B(),V( ` table ` ,jte,[U( ` thead ` ,null,[U( ` tr ` ,null,[(B(!0),V(z,null,L(e.head,(e,t)=>(B(),V( ` th ` ,{key:t,class: ` border border - border bg - muted px - 2 py - 1.5 text - left font - semibold ` },[W(VT,{inline:e},null,8,[ ` inline ` ])]))),128))])]),U( ` tbody ` ,null,[(B(!0),V(z,null,L(e.rows,(e,t)=>(B(),V( ` tr ` ,{key:t},[(B(!0),V(z,null,L(e,(e,t)=>(B(),V( ` td ` ,{key:t,class: ` border border - border px - 2 py - 1.5 text - left ` },[W(VT,{inline:e},null,8,[ ` inline ` ])]))),128))]))),128))])])):e.kind=== ` blockquote ` ?(B(),V( ` blockquote ` ,Mte,[W(VT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h1 ` ?(B(),V( ` h1 ` ,Nte,[W(VT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h2 ` ?(B(),V( ` h2 ` ,Pte,[W(VT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` h3 ` ?(B(),V( ` h3 ` ,Fte,[W(VT,{inline:e.inline},null,8,[ ` inline ` ])])):e.kind=== ` ul ` ?(B(),V( ` ul ` ,Ite,[(B(!0),V(z,null,L(e.items,(e,t)=>(B(),V( ` li ` ,{key:t},[W(VT,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` ol ` ?(B(),V( ` ol ` ,Lte,[(B(!0),V(z,null,L(e.items,(e,t)=>(B(),V( ` li ` ,{key:t},[W(VT,{inline:e},null,8,[ ` inline ` ])]))),128))])):e.kind=== ` p ` ?(B(),V( ` p ` ,Rte,[W(VT,{inline:e.inline},null,8,[ ` inline ` ])])):K( ` ` ,!0)],64))),128))]))}}),Bte={class: ` truncate ` },Vte=I({__name: ` ChatNavChip ` ,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=Qi( ` RouterLink ` );return B(),H(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:P(()=>[W(N(Ku),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 ` }),U( ` span ` ,Bte,j(e.label||e.path),1)]),_:1},8,[ ` to ` , ` title ` ])}}}),Hte={key:1,class: ` flex items - baseline gap - 1.5 [ overflow - wrap : anywhere ] ` },Ute={class: ` font - semibold text - foreground ` },Wte={key:0,class: ` font - mono text - [ 0.95 em ] text - fg - subtle ` },Gte=I({__name: ` ChatToolCall ` ,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=J(()=>t.tool.name||t.tool.Name||t.tool.tool|| ` tool ` ),r=J(()=>t.tool.parameters||t.tool.Parameters|| ` ` ),i=J(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=J(()=>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?(B(),H(Vte,{key:0,path:e.tool.path,label:e.tool.label},null,8,[ ` path ` , ` label ` ])):(B(),V( ` div ` ,Hte,[W(N(qd),{"aria-hidden": ` true ` ,class: ` size - 3.5 shrink - 0 self - center text - fg - subtle ` }),U( ` span ` ,Ute,j(n.value),1),r.value?(B(),V( ` code ` ,Wte,j(r.value),1)):K( ` ` ,!0),U( ` span ` ,{class:A(N(Y)( ` text - fg - muted ` ,i.value&& ` text - danger ` ))},j(a.value),3)]))}}),Kte={key:0,class: ` mb - 2 grid gap - 0.5 text - xs ` },qte={key:1,class: ` mb - 2 flex flex - wrap gap - 1.5 ` },Jte={key:3,class: ` whitespace - pre - wrap ` },WT=I({__name: ` ChatBubble ` ,props:{text:{},tools:{default:()=>[]},media:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(B(),V( ` div ` ,{class:A([ ` flex ` ,e.assistant? ` justify - start ` : ` justify - end ` ])},[U( ` div ` ,{class:A(N(Y)( ` 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?(B(),V( ` div ` ,Kte,[(B(!0),V(z,null,L(e.tools,(t,n)=>(B(),H(Gte,{key:n,tool:t,streaming:e.streaming},null,8,[ ` tool ` , ` streaming ` ]))),128))])):K( ` ` ,!0),e.media.length?(B(),V( ` div ` ,qte,[(B(!0),V(z,null,L(e.media,(e,t)=>(B(),H(vte,{key:t,attachment:e},null,8,[ ` attachment ` ]))),128))])):K( ` ` ,!0),e.assistant?(B(),H(zte,{key:2,text:e.text},null,8,[ ` text ` ])):(B(),V( ` div ` ,Jte,j(e.text),1)),R(t. $ slots, ` default ` )],2)],2))}}),Yte={class: ` w - full self - center justify - self - center py - 6 text - center ` },Xte={class: ` grid gap - 2 ` },Zte=[ ` onC Line truncated
` ).map(e=>e.trim()).find(Boolean)|| ` ` ,r=n.length>NA? ` $ { n . slice ( 0 , NA ) . trimEnd ( ) } … ` :n;return{text:r,full:t,truncated:r!==t}}var FA=[ ` title ` ],IA=I({__name: ` ActivityRow ` ,props:{event:{}},emits:[ ` open ` ],setup(e,{emit:t}){let n=e,r=t,i=J(()=>oA(n.event)),a=J(()=>PA(n.event));function o(){i.value>0&&r( ` open ` ,i.value)}let s=J(()=>n.event.at?mk(n.event.at): ` — ` );return(e,t)=>(B(),H(N(AA),{class:A(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:[Rl(Ll(o,[ ` prevent ` ]),[ ` enter ` ]),Rl(Ll(o,[ ` prevent ` ]),[ ` space ` ])]},{default:P(()=>[W(N( $ ),{class: ` font - medium ` },{default:P(()=>[G(j(n.event.kind||n.event.type|| ` event ` ),1)]),_:1}),W(N( $ ),{class: ` font - mono ` },{default:P(()=>[G(j(i.value>0? ` # $ { i . value } ` : ` — ` ),1)]),_:1}),W(N( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:P(()=>[U( ` span ` ,{class: ` block truncate ` ,title:a.value.truncated?a.value.full:void 0},j(a.value.text),9,FA)]),_:1}),W(N( $ ),null,{default:P(()=>[G(j(s.value),1)]),_:1})]),_:1},8,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onKeydown ` ]))}}),LA=[{value: ` all ` ,label: ` All ` },{value: ` tasks ` ,label: ` Tasks ` },{value: ` system ` ,label: ` System ` }];function RA(e){return(Number(e?.task_id)||0)>0}function zA(e,t){return t=== ` tasks ` ?RA(e):t!== ` system ` ||!RA(e)}function BA(e,t){return e.filter(e=>zA(e,t))}function VA(e,t){return e>0? ` ` :t=== ` all ` ? ` Waiting for activity ` :t=== ` tasks ` ? ` No task events yet ` : ` No system events yet ` }function HA(e,t){return ` $ { e } : $ { t ? ? 0 } ` }function UA(e){let t=[];for(let n of e){let e=n.kind||n.type|| ` event ` ,r=Number(n.task_id)||0,i=HA(PA(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 WA={role: ` region ` ,"aria-label": ` Live activity ` ,"aria-live": ` polite ` },GA={class: ` max - h - [ 28 rem ] overflow - y - auto ` },KA=[ ` aria - expanded ` , ` aria - label ` , ` onClick ` ],qA=[ ` title ` ],JA=I({__name: ` LiveActivityCard ` ,setup(e){let t=aE(),{activity:n,streamKind:r,streamState:i}=ju(gO()),a=M( ` all ` ),o=J(()=>BA(n.value,a.value)),s=J(()=>VA(o.value.length,a.value)),c=Jt(new Set),l=J(()=>UA(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 PA(e.representative)}function p(e){return e.representative.at?mk(e.representative.at): ` — ` }function m(e){t.push( ` / tasks ? task = $ { encodeURIComponent ( e ) } ` )}return(e,t)=>(B(),H(N(sk),null,{default:P(()=>[W(N(fk),null,{default:P(()=>[W(N(pk),null,{default:P(()=>[...t[1]||=[G( ` Live activity ` ,-1)]]),_:1}),W(N(ck),{class: ` flex items - center gap - 2 ` },{default:P(()=>[W(N(EA),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,label: ` Filter activity ` ,options:N(LA)},null,8,[ ` modelValue ` , ` options ` ]),W(N(ik),{variant:N(r)},{default:P(()=>[G(j(N(i)),1)]),_:1},8,[ ` variant ` ])]),_:1})]),_:1}),W(N(lk),null,{default:P(()=>[U( ` div ` ,WA,[U( ` div ` ,GA,[W(N(OA),null,{default:P(()=>[W(N(MA),{class: ` sticky top - 0 z - 10 bg - card ` },{default:P(()=>[W(N(AA),null,{default:P(()=>[W(N(jA),null,{default:P(()=>[...t[2]||=[G( ` Event ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[3]||=[G( ` Task ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[4]||=[G( ` Detail ` ,-1)]]),_:1}),W(N(jA),null,{default:P(()=>[...t[5]||=[G( ` When ` ,-1)]]),_:1})]),_:1})]),_:1}),W(N(kA),null,{default:P(()=>[o.value.length?K( ` ` ,!0):(B(),H(N(AA),{key:0},{default:P(()=>[W(N( $ ),{colspan: ` 4 ` },{default:P(()=>[W(N(XO),null,{default:P(()=>[W(N( $ O),null,{default:P(()=>[W(N(nk),null,{default:P(()=>[G(j(s.value),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),o.value.length?(B(!0),V(z,{key:1},L(l.value,e=>(B(),V(z,{key:e.key},[e.count===1?(B(),H(IA,{key:0,event:e.representative,onOpen:m},null,8,[ ` event ` ])):(B(),V(z,{key:1},[W(N(AA),{class:A(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:[Rl(Ll(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` enter ` ]),Rl(Ll(t=>e.taskID>0&&m(e.taskID),[ ` prevent ` ]),[ ` space ` ])]},{default:P(()=>[W(N( $ ),{class: ` font - medium ` },{default:P(()=>[U( ` 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:Ll(t=>u(e.key),[ ` stop ` ])},[d(e)?(B(),H(N( $ u),{key:0,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })):(B(),H(N(ed),{key:1,class: ` size - 3.5 shrink - 0 text - fg - subtle ` })),G( ` ` +j(e.label)+ ` ` ,1),W(N(ik),{variant: ` idle ` },{default:P(()=>[G( ` × ` +j(e.count),1)]),_:2},1024)],8,KA)]),_:2},1024),W(N( $ ),{class: ` font - mono ` },{default:P(()=>[G(j(e.taskID>0? ` # $ { e . taskID } ` : ` — ` ),1)]),_:2},1024),W(N( $ ),{class: ` w - [ 55 % ] max - w - 0 ` },{default:P(()=>[U( ` span ` ,{class: ` block truncate ` ,title:f(e).truncated?f(e).full:void 0},j(f(e).text),9,qA)]),_:2},1024),W(N( $ ),null,{default:P(()=>[G(j(p(e)),1)]),_:2},1024)]),_:2},1032,[ ` class ` , ` role ` , ` tabindex ` , ` title ` , ` onClick ` , ` onKeydown ` ]),d(e)?(B(!0),V(z,{key:0},L(e.events,(t,n)=>(B(),H(IA,{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 mM(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 hM(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 gM(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 _M(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 vM=M([]),yM=M([]),bM=M(!0),xM=M(null),SM=M(null),CM=M(!1),wM=M(null);async function TM(){try{let e=await X.eventTypes();bM.value=e.enabled!==!1,vM.value=e.event_types||[],yM.value=e.proposals||[],xM.value=null}catch(e){xM.value=e.message||String(e)}}function EM(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function DM(e){wM.value=null,SM.value=e}function OM(e){let t=IM.value.find(t=>String(t.id)===e.sample_id);DM({mode: ` proposal ` ,id:null,source:e.source,name: ` ` ,rule:EM(e.rule),headersText: ` ` ,body:t?.body|| ` ` ,exampleHeaders:e.headers||{}})}function kM(e= ` ` ){DM({mode: ` paste ` ,id:null,source:e,name: ` ` ,rule:{headers:[],payload:[]},headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function AM(e){DM({mode: ` edit ` ,id:e.id,source:e.source,name:e.name,rule:EM(e.rule),headersText: ` ` ,body: ` ` ,exampleHeaders:{}})}function jM(){SM.value=null}async function MM(){let e=SM.value;if(e){CM.value=!0;try{if(e.mode=== ` edit ` &&e.id)await X.eventTypeUpdate(e.id,{name:e.name,rule:_M(e.rule)});else{let t=e.mode=== ` paste ` ?pM(e.headersText):e.exampleHeaders;await X.eventTypeCreate({source:e.source,name:e.name,rule:e.mode=== ` paste ` ?void 0:_M(e.rule),example:{headers:t,body:e.body}})}SM.value=null,await TM()}catch(e){wM.value=e.message||String(e)}finally{CM.value=!1}}}var NM=M(null);async function PM(){let e=NM.value;if(NM.value=null,e)try{await X.eventTypeDelete(e.id),await TM()}catch(e){xM.value=e.message||String(e)}}var FM=100,IM=M([]),LM=M(!0),RM=M(null),zM=M(!0),BM=M(null);async function VM(){try{let e=await X.captures(FM);LM.value=e.enabled!==!1,IM.value=e.captures||[],RM.value=null}catch(e){RM.value=e.message||String(e)}finally{zM.value=!1}}function HM(e){let t=IM.value.find(t=>t.id===e);return t&&(BM.value=t),!!t}function UM(){IM.value.length&&(BM.value=IM.value[0])}function WM(){_O( ` captures ` ,()=>{VM(),TM()})}var GM={key:0,class: ` text - xs text - fg - muted ` },KM={key:1,class: ` flex flex - col gap - 1 text - xs ` },qM={key:1},JM={key:2,class: ` text - xs text - fg - muted ` },YM=I({__name: ` DispatchLinks ` ,props:{kind:{},id:{}},setup(e){let t=e,n=M([]),r=M(!1);F(()=>[t.kind,t.id],async()=>{r.value=!1;try{n.value=await X.dispatches(t.kind,t.id)}catch{n.value=[],r.value=!0}},{immediate:!0});let i=e=>({path: ` / events ` ,query:{tab: ` inspector ` ,capture:e}});return(e,a)=>{let o=Qi( ` RouterLink ` );return r.value?(B(),V( ` p ` ,GM, ` Dispatches unavailable . ` )):n.value.length?(B(),V( ` ul ` ,KM,[(B(!0),V(z,null,L(n.value,e=>(B(),V( ` li ` ,{key:e.binding_id+e.capture_id,class: ` flex flex - wrap items - center gap - x - 2 font - mono text - fg - muted ` },[t.kind=== ` bindings ` ?K( ` ` ,!0):(B(),H(o,{key:0,to:{path: ` / events ` ,query:{tab: ` bindings ` }},class: ` hover : text - foreground ` },{default:P(()=>[G( ` binding ` +j(e.binding_id.slice(0,8))+ ` v ` +j(e.binding_version),1)]),_:2},1024)),t.kind=== ` captures ` ?K( ` ` ,!0):(B(),H(o,{key:1,to:i(e.capture_id),class: ` hover : text - foreground ` },{default:P(()=>[G( ` capture ` +j(e.capture_id.slice(0,8)),1)]),_:2},1032,[ ` to ` ])),t.kind=== ` tasks ` ?K( ` ` ,!0):(B(),V(z,{key:2},[e.task_id?(B(),H(o,{key:0,to: ` / tasks / $ { e . task _id } ` ,class: ` text - foreground hover : underline ` },{default:P(()=>[G( ` task # ` +j(e.task_id),1)]),_:2},1032,[ ` to ` ])):(B(),V( ` span ` ,qM,j(e.reason|| ` claimed , no task recorded ` ),1))],64)),U( ` span ` ,null,j(N(mk)(e.dispatched_at)),1)]))),128))])):t.kind=== ` tasks ` ?K( ` ` ,!0):(B(),V( ` p ` ,JM, ` No dispatches yet . ` ))}}}),XM=I({__name: ` Spinner ` ,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(B(),H(N(md),{role: ` status ` ,"aria-label": ` Loading ` ,class:A(N(Y)( ` size - 4 animate - spin ` ,t.class))},null,8,[ ` class ` ]))}});function ZM(e,t){return t?e.filter(e=>e.event_type_id===t):[]}function QM(e){return(e?.repository?? ` required ` )!== ` none ` }function $ M(e,t){return e.filter(e=>t=== ` any ` ||e.type=== ` any ` ||e.type===t)}function eN(e,t){switch(t){case ` string ` :return e;case ` number ` :return e.trim()!== ` ` &&!Number.isNaN(Number(e))?Number(e):e;case ` bool ` :return e=== ` true ` ||e!== ` false ` &&e;default:try{return JSON.parse(e)}catch{return e}}}var tN={pending_approval: ` pending approval ` ,armed: ` armed ` ,paused: ` paused ` },nN={pending_approval: ` warn ` ,armed: ` ok ` ,paused: ` idle ` };function rN(e)
Line truncated
` )}};wJ.defaultYaml={explicit:!1,version: ` 1.2 ` },wJ.defaultTags={"!!": ` tag : yaml . org , 2002 : ` };function TJ(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 EJ(e){let t=new Set;return _J(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function DJ(e,t){for(let n=1;;++n){let r= ` $ { e } $ { n } ` ;if(!t.has(r))return r}}function OJ(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=EJ(e);let a=DJ(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t== ` object ` &&t.anchor&&(lJ(t.node)||dJ(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 kJ(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=kJ(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=kJ(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=kJ(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=kJ(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function AJ(e,t,n){if(Array.isArray(e))return e.map((e,t)=>AJ(e,String(t),n));if(e&&typeof e.toJSON== ` function ` ){if(!n||!pJ(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 jJ=class{constructor(e){Object.defineProperty(this,iJ,{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(!oJ(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=AJ(this, ` ` ,a);if(typeof r== ` function ` )for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i== ` function ` ?kJ(i,{"":o}, ` ` ,o):o}},MJ=class extends jJ{constructor(e){super(Qq),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=[],_J(e,{Node:(e,t)=>{(aJ(t)||pJ(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||=(AJ(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=NJ(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(TJ(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 NJ(e,t,n){if(aJ(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(dJ(t)){let r=0;for(let i of t.items){let t=NJ(e,i,n);t>r&&(r=t)}return r}if(cJ(t)){let r=NJ(e,t.key,n),i=NJ(e,t.value,n);return Math.max(r,i)}return 1}var PJ=e=>!e||typeof e!= ` function ` &&typeof e!= ` object ` ,FJ=class extends jJ{constructor(e){super(nJ),this.value=e}toJSON(e,t){return t?.keep?this.value:AJ(this.value,e,t)}toString(){return String(this.value)}};FJ.BLOCK_FOLDED= ` BLOCK _FOLDED ` ,FJ.BLOCK_LITERAL= ` BLOCK _LITERAL ` ,FJ.PLAIN= ` PLAIN ` ,FJ.QUOTE_DOUBLE= ` QUOTE _DOUBLE ` ,FJ.QUOTE_SINGLE= ` QUOTE _SINGLE ` ;var IJ= ` tag : yaml . org , 2002 : ` ;function LJ(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 RJ(e,t,n){if(oJ(e)&&(e=e.contents),fJ(e))return e;if(cJ(e)){let t=n.schema[eJ].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 MJ(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith( ` ! ! ` )&&(t=IJ+t.slice(2));let l=LJ(e,t,o.tags);if(!l){if(e&&typeof e.toJSON== ` function ` &&(e=e.toJSON()),!e||typeof e!= ` object ` ){let t=new FJ(e);return c&&(c.node=t),t
Line truncated
` )?U J(n,t):n.includes( `
` )? `
` +V J(n,t):(e.endsWith( ` ` )? ` ` : ` ` )+n,U J= ` flow ` ,W J= ` block ` ,G J= ` quoted ` ;function K 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=q 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=q J(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r=== ` ` &&p&&p!== ` ` &&p!== `
` +U J(n,t):(e.endsWith( ` ` )? ` ` : ` ` )+n,G J= ` flow ` ,K J= ` block ` ,q 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=Y 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=Y 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 q 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 J 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 X 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 Z 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 Y 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 X J=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Z J=e=>/^(%|---| \. \. \. )/m.test(e);function Q 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 $ 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||(Z 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:K J(o,a,G J,J J(t,!1))}function QJ (e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes( `
` )||/[ \t ] \n | \n [ \t ]/.test(e))return Z J(e,t);let n=t.indent||(Y J(e)? ` ` : ` ` ),r= ` '`+e.replace(/' / g , ` '' ` ) . replace ( /\n+/g , ` $ & \n ${ n } ` ) + ` ' ` ; return t . implicitKey ? r : KJ ( r , n , UJ , JJ ( t , ! 1 ) ) } function $J ( e , t ) { let { singleQuote : n } = t . options , r ; if ( n === ! 1 ) r = ZJ ; else { let t = e . includes ( ` " ` ) , i = e . includes ( ` ' ` ) ; r = t && ! i ? QJ : i && ! t ? ZJ : n ? QJ : ZJ } return r ( e , t ) } var eY ; try { eY = 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,q J,X J(t,!1))}function eY (e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes( `
` )||/[ \t ] \n | \n [ \t ]/.test(e))return $ J(e,t);let n=t.indent||(Z J(e)? ` ` : ` ` ),r= ` '`+e.replace(/' / g , ` '' ` ) . replace ( /\n+/g , ` $ & \n ${ n } ` ) + ` ' ` ; return t . implicitKey ? r : JJ ( r , n , GJ , XJ ( t , ! 1 ) ) } function tY ( e , t ) { let { singleQuote : n } = t . options , r ; if ( n === ! 1 ) r = $J ; else { let t = e . includes ( ` " ` ) , i = e . includes ( ` ' ` ) ; r = t && ! i ? eY : i && ! t ? $J : n ? eY : $J } return r ( e , t ) } var nY ; try { nY = RegExp ( ` (^|(?<!
) )
+ ( ? !
| $ ) ` , ` g ` )}catch{e Y=/ \n +(?! \n | $ )/g}function t Y({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 $ J (n,r);let l=r.indent||(r.forceBlockIndent||Y J(n)?` ` : ` ` ),u=o=== ` literal ` ?!0:o=== ` folded ` ||t===N J.BLOCK_FOLDED?!1:t===N J.BLOCK_LITERAL||!X J(n,c,l.length);if(!n)return u? ` |
| $ ) ` , ` g ` )}catch{n Y=/ \n +(?! \n | $ )/g}function r Y({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 tY (n,r);let l=r.indent||(r.forceBlockIndent||Z J(n)? ` ` : ` ` ),u=o=== ` literal ` ?!0:o=== ` folded ` ||t===F J.BLOCK_FOLDED?!1:t===F J.BLOCK_LITERAL||!Q 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(e Y, ` $ & $ { 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(n Y, ` $ & $ { 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=J J(r,!0);o!== ` folded ` &&t!==N J.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=K J( ` $ { v } $ { e } $ { p } ` ,l,W J,a);if(!i)return ` > $ { y } \ n$ { l } $ { s } ` }return n=n.replace(/ \n +/g, ` $ & $ { l } ` ), ` | $ { y } \ n$ { l } $ { v } $ { n } $ { p } ` }function n Y(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 $ J (a,t);if(/^[\n \t ,[ \] {}#&*!|>'"%@ ` ] | ^ [ ? - ] $ | ^ [ ? - ] [ \ t ] | [ \ n : ] [ \ t ] | [ \ t ] \ n | [ \ n \ t ] # | [ \ n \ t : ] $ / . test ( a ) ) return s || u || ! a . includes ( `
` )? $ J (a,t):t Y(e,t,n,r);if(!s&&!u&&i!==N J.PLAIN&&a.includes(`
` ))return t Y(e,t,n,r);if(Y J(a)){if(c=== ` ` )return t.forceBlockIndent=!0,t Y(e,t,n,r);if(s&&c===l)return $ 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 $ J (a,t)}return s?d:K J(d,c,U J,J J(t,!1))}function r Y(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!==N J.QUOTE_DOUBLE&&/[ \x 00- \x 08 \x 0b- \x 1f \x 7f- \x 9f \u {D800}- \u {DFFF}]/u.test(o.value)&&(s=N J.QUOTE_DOUBLE);let c=e=>{switch(e){case N J.BLOCK_FOLDED:case N J.BLOCK_LITERAL:return i||a? $ J (o.value,t):t Y(o,t,n,r);case N J.QUOTE_DOUBLE:return Z J(o.value,t);case N J.QUOTE_SINGLE:return QJ (o.value,t);case N J.PLAIN:return n Y(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 i Y(e,t){let n=Object.assign({blockQuote:!0,commentString:B 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 a Y(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(s J(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 o Y(e,t,{anchors:n,doc:r}){if(!r.directives)return ` ` ;let i=[],a=(s J(e)||l J(e))&&e.anchor;a&&C J(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 s Y(e,t,n,r){if(o J(e))return e.toString(t,n,r);if(r J(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=u J(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=a Y(t.doc.schema.tags,a);let o=o Y(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):s J(a)?r Y(a,t,n,r):a.toString(t,n,r);return o?s J(a)||s[0]=== ` { ` ||s[0]=== ` [ ` ? ` $ { o } $ { s } ` : ` $ { o } \ n$ { t . indent } $ { s } ` :s}function c Y({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=u J(e)&&e.comment||null;if(d){if(f)throw Error( ` With simple keys , key nodes cannot have comments ` );if(l J(e)||!u J(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||l J(e)||(s J(e)?e.type===N J.BLOCK_FOLDED||e.type===N 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=s Y(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+=H J(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=H J(g,n.indent,l(f))),g= ` ? $ { g } \ n$ { s } : ` ):(g= ` $ { g } : ` ,f&&(g+=H J(g,n.indent,l(f))));let _,v,y;u J(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&&s J(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&c J(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=s Y(t,n,()=>b=!0,()=>h=!0),S= ` ` ;if(f||_||v){if(S=_? `
` : ` ` ,v){let e=l(v);S+= ` \ n$ { VJ ( 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=X J(r,!0);o!== ` folded ` &&t!==F 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 i Y(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 tY (a,t);if(/^[ \n \t ,[ \] {}#&*!|>'"%@ ` ] | ^ [ ? - ] $ | ^ [ ? - ] [ \ t ] | [ \ n : ] [ \ t ] | [ \ t ] \ n | [ \ n \ t ] # | [ \ n \ t : ] $ / . test ( a ) ) return s || u || ! a . includes ( `
` )?tY (a,t):r Y(e,t,n,r);if(!s&&!u&&i!==F J.PLAIN&&a.includes( `
` ))return r Y(e,t,n,r);if(Z J(a)){if(c=== ` ` )return t.forceBlockIndent=!0,r Y(e,t,n,r);if(s&&c===l)return tY (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 tY (a,t)}return s?d:J J(d,c,G J,X J(t,!1))}function a Y(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!==F J.QUOTE_DOUBLE&&/[ \x 00- \x 08 \x 0b- \x 1f \x 7f- \x 9f \u {D800}- \u {DFFF}]/u.test(o.value)&&(s=F J.QUOTE_DOUBLE);let c=e=>{switch(e){case F J.BLOCK_FOLDED:case F J.BLOCK_LITERAL:return i||a?tY (o.value,t):r Y(o,t,n,r);case F J.QUOTE_DOUBLE:return $ J(o.value,t);case F J.QUOTE_SINGLE:return eY (o.value,t);case F J.PLAIN:return i Y(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 Y(e,t){let n=Object.assign({blockQuote:!0,commentString:H 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 s Y(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(l J(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 c Y(e,t,{anchors:n,doc:r}){if(!r.directives)return ` ` ;let i=[],a=(l J(e)||d J(e))&&e.anchor;a&&T J(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 l Y(e,t,n,r){if(c J(e))return e.toString(t,n,r);if(a J(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=f J(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=s Y(t.doc.schema.tags,a);let o=c Y(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):l J(a)?a Y(a,t,n,r):a.toString(t,n,r);return o?l J(a)||s[0]=== ` { ` ||s[0]=== ` [ ` ? ` $ { o } $ { s } ` : ` $ { o } \ n$ { t . indent } $ { s } ` :s}function u Y({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=f J(e)&&e.comment||null;if(d){if(f)throw Error( ` With simple keys , key nodes cannot have comments ` );if(d J(e)||!f J(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||d J(e)||(l J(e)?e.type===F J.BLOCK_FOLDED||e.type===F 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=l Y(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+=W J(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=W J(g,n.indent,l(f))),g= ` ? $ { g } \ n$ { s } : ` ):(g= ` $ { g } : ` ,f&&(g+=W J(g,n.indent,l(f))));let _,v,y;f J(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&&l J(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&u J(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=l Y(t,n,()=>b=!0,()=>h=!0),S= ` ` ;if(f||_||v){if(S=_? `
` : ` ` ,v){let e=l(v);S+= ` \ n$ { UJ ( e , n . indent ) } ` }x=== ` ` &&!n.inFlow?S=== `
` &&y&&(S= `
` ):S+= ` \ n$ { n . indent } ` }else if(!p&&l J(t)){let e=x[0],r=x.indexOf( `
` ):S+= ` \ n$ { n . indent } ` }else if(!p&&d J(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+=H J(g,n.indent,l(y)):h&&i&&i(),g}function l Y(e,t){(e=== ` debug ` ||e=== ` warn ` )&&console.warn(t)}var u Y= ` << ` ,d Y={identify:e=>e===u Y||typeof e== ` symbol ` &&e.description===u Y,default: ` key ` ,tag: ` tag : yaml . org , 2002 : merge ` ,test:/^<< $ /,resolve:()=>Object.assign(new N J(Symbol(u Y)),{addToJSMap:p Y}),stringify:()=>u Y},f Y=(e,t)=>(d Y.identify(t)||s J(t)&&(!t.type||t.type===N J.PLAIN)&&d Y.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===d Y.tag&&e.default);function p Y(e,t,n){let r=h Y(e,n);if(c J(r))for(let n of r.items)m Y(e,t,n);else if(Array.isArray(r))for(let n of r)m Y(e,t,n);else m Y(e,t,r)}function m Y(e,t,n){let r=h Y(e,n);if(!a J(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 h Y(e,t){return e&&r J(t)?t.resolve(e.doc,e):t}function g Y(e,t,{key:n,value:r}){if(u J(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(f Y(e,n))p Y(e,t,r);else{let i=O J(n, ` ` ,e);if(t instanceof Map)t.set(i,O J(r,i,e));else if(t instanceof Set)t.add(i);else{let a=_ Y(n,i,e),o=O J(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function _ Y(e,t,n){if(t===null)return ` ` ;if(typeof t!= ` object ` )return String(t);if(u J(e)&&n?.doc){let t=i Y(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)+ ` ... " ` ),l Y(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 v Y(e,t,n){return new y Y(I J(e,void 0,n),I J(t,void 0,n))}var y Y=class e{constructor(e,t=null){Object.defineProperty(this,n J,{value: $ q }),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return u J(n)&&(n=n.clone(t)),u J(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return g Y(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?c Y(this,e,t,n):JSON.stringify(this)}};function b Y(e,t,n){return(t.inFlow??e.flow?S Y:x Y)(e,t,n)}function x Y({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(u J(i))!d&&i.spaceBefore&&f.push(` ` ),C Y(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(o J(i)){let e=u J(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push( ` ` ),C Y(n,f,e.commentBefore,d))}d=!1;let s=s Y(i,u,()=>o=null,()=>d=!0);o&&(s+=H 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+=W J(g,n.indent,l(y)):h&&i&&i(),g}function d Y(e,t){(e=== ` debug ` ||e=== ` warn ` )&&console.warn(t)}var f Y= ` << ` ,p Y={identify:e=>e===f Y||typeof e== ` symbol ` &&e.description===f Y,default: ` key ` ,tag: ` tag : yaml . org , 2002 : merge ` ,test:/^<< $ /,resolve:()=>Object.assign(new F J(Symbol(f Y)),{addToJSMap:h Y}),stringify:()=>f Y},m Y=(e,t)=>(p Y.identify(t)||l J(t)&&(!t.type||t.type===F J.PLAIN)&&p Y.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===p Y.tag&&e.default);function h Y(e,t,n){let r=_ Y(e,n);if(u J(r))for(let n of r.items)g Y(e,t,n);else if(Array.isArray(r))for(let n of r)g Y(e,t,n);else g Y(e,t,r)}function g Y(e,t,n){let r=_ Y(e,n);if(!s J(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 _ Y(e,t){return e&&a J(t)?t.resolve(e.doc,e):t}function v Y(e,t,{key:n,value:r}){if(f J(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(m Y(e,n))h Y(e,t,r);else{let i=A J(n, ` ` ,e);if(t instanceof Map)t.set(i,A J(r,i,e));else if(t instanceof Set)t.add(i);else{let a=y Y(n,i,e),o=A J(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function y Y(e,t,n){if(t===null)return ` ` ;if(typeof t!= ` object ` )return String(t);if(f J(e)&&n?.doc){let t=o Y(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)+ ` ... " ` ),d Y(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 b Y(e,t,n){return new x Y(R J(e,void 0,n),R J(t,void 0,n))}var x Y=class e{constructor(e,t=null){Object.defineProperty(this,i J,{value:tJ }),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return f J(n)&&(n=n.clone(t)),f J(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return v Y(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?u Y(this,e,t,n):JSON.stringify(this)}};function S Y(e,t,n){return(t.inFlow??e.flow?w Y:C Y)(e,t,n)}function C Y({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(f J(i))!d&&i.spaceBefore&&f.push( ` ` ),T Y(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(c J(i)){let e=f J(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push( ` ` ),T Y(n,f,e.commentBefore,d))}d=!1;let s=l Y(i,u,()=>o=null,()=>d=!0);o&&(s+=W 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+= `
` +V J(l(e),c),s&&s()):d&&o&&o(),p}function S Y({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(u J(i))i.spaceBefore&&d.push( ` ` ),C Y(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(o J(i)){let e=u J(i.key)?i.key:null;e&&(e.spaceBefore&&d.push( ` ` ),C Y(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=u J(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=s Y(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+=H 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=VJ(t(r),e);n.push(i.trimStart())}}function wY(e,t){let n=sJ(t)?t.value:t;for(let r of e)if(oJ(r)&&(r.key===t||r.key===n||sJ(r.key)&&r.key.value===n))return r}var TY=class extends zJ{static get tagName(){return ` tag : yaml . org , 2002 : map ` }constructor(e){super(Qq,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(vY(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=oJ(e)?e:!e||typeof e!= ` object ` ||!( ` key ` in e)?new yY(e,e?.value):new yY(e.key,e.value);let r=wY(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error( ` Key $ { n . key } already set ` );sJ(r.value)&&MJ(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=wY(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=wY(this.items,e)?.value;return(!t&&sJ(n)?n.value:n)??void 0}has(e){return!!wY(this.items,e)}set(e,t){this.add(new yY(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)gY(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!oJ(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})),bY(this,e,{blockItemPrefix: ` ` ,flowChars:{start: ` { ` ,end: ` } ` },itemIndent:e.indent|| ` ` ,onChompKeep:n,onComment:t})}},EY={collection: ` map ` ,default:!0,nodeClass:TY,tag: ` tag : yaml . org , 2002 : map ` ,resolve(e,t){return aJ(e)||t( ` Expected a mapping for this tag ` ),e},createNode:(e,t,n)=>TY.from(e,t,n)},DY=class extends zJ{static get tagName(){return ` tag : yaml . org , 2002 : seq ` }constructor(e){super(tJ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=OY(e);return typeof t== ` number ` &&this.items.splice(t,1).length>0}get(e,t){let n=OY(e);if(typeof n!= ` number ` )return;let r=this.items[n];return!t&&sJ(r)?r.value:r}has(e){let t=OY(e);return typeof t== ` number ` &&t<this.items.length}set(e,t){let n=OY(e);if(typeof n!= ` number ` )throw Error( ` Expected a valid index , not $ { e } . ` );let r=this.items[n];sJ(r)&&MJ(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(OJ(e,String(r++),t));return n}toString(e,t,n){return e?bY(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(IJ(a,void 0,n))}}return i}};function OY(e){let t=sJ(e)?e.value:e;return t&&typeof t== ` string ` &&(t=Number(t)),typeof t== ` number ` &&Number.isInteger(t)&&t>=0?t:null}var kY={collection: ` seq ` ,default:!0,nodeClass:DY,tag: ` tag : yaml . org , 2002 : seq ` ,resolve(e,t){return cJ(e)||t( ` Expected a sequence for this tag ` ),e},createNode:(e,t,n)=>DY.from(e,t,n)},AY={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),rY(e,t,n,r)}},jY={identify:e=>e==null,createNode:()=>new NJ(null),default:!0,tag: ` tag : yaml . org , 2002 : null ` ,test:/^(?:~|[Nn]ull|NULL)? $ /,resolve:()=>new NJ(null),stringify:({source:e},t)=>typeof e== ` string ` &&jY.test.test(e)?e:t.options.nullStr},MY={identify:e=>typeof e== ` boolean ` ,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE) $ /,resolve:e=>new NJ(e[0]=== ` t ` ||e[0]=== ` T ` ),stringify({source:e,value:t},n){return e&&MY.test.test(e)&&t===(e[0]=== ` t ` ||e[0]=== ` T ` )?e:t?n.options.trueStr:n.options.falseStr}};function NY({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 PY={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:NY},FY={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 rY({comment:e,type:t,value:s},r,i,a)}};function YY(e,t){if(cJ(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!oJ(r)){if(aJ(r)){r.items.length>1&&t( ` Each pair must have its own sequence indicator ` );let e=r.items[0]||new yY(new NJ(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]=oJ(r)?r:new yY(r)}}else t( ` Expected a sequence for this tag ` );return e}function XY(e,t,n){let{replacer:r}=n,i=new DY(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(vY(o,s,n))}return i}var ZY={collection: ` seq ` ,default:!1,tag: ` tag : yaml . org , 2002 : pairs ` ,resolve:YY,createNode:XY},QY=class e extends DY{constructor(){super(),this.add=TY.prototype.add.bind(this),this.delete=TY.prototype.delete.bind(this),this.get=TY.prototype.get.bind(this),this.has=TY.prototype.has.bind(this),this.set=TY.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(oJ(e)?(r=OJ(e.key, ` ` ,t),i=OJ(e.value,r,t)):r=OJ(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=XY(e,t,n),i=new this;return i.items=r.items,i}};QY.tag= ` tag : yaml . org , 2002 : omap ` ;var $ Y={collection: ` seq ` ,identify:e=>e instanceof Map,nodeClass:QY,default:!1,tag: ` tag : yaml . org , 2002 : omap ` ,resolve(e,t){let n=YY(e,t),r=[];for(let{key:e}of n.items)sJ(e)&&(r.includes(e.value)?t( ` Ordered maps must not include duplicate keys : $ { e . value } ` ):r.push(e.value));return Object.assign(new QY,n)},createNode:(e,t,n)=>QY.from(e,t,n)};function eX({value:e,source:t},n){return t&&(e?tX:nX).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var tX={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 NJ(!0),stringify:eX},nX={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 NJ(!1),stringify:eX},rX={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:NY},iX={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():NY(e)}},aX={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 NJ(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:NY},oX=e=>typeof e== ` bigint ` ||Number.isInteger(e);function sX(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 cX(e,t,n){let{value:r}=e;if(oX(r)){let e=r.toString(t);return r<0? ` - ` +n+e.substr(1):n+e}return NY(e)}var lX={identify:oX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` BIN ` ,test:/^[-+]?0b[0-1_]+ $ /,resolve:(e,t,n)=>sX(e,2,2,n),stringify:e=>cX(e,2, ` 0 b ` )},uX={identify:oX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` OCT ` ,test:/^[-+]?0[0-7_]+ $ /,resolve:(e,t,n)=>sX(e,1,8,n),stringify:e=>cX(e,8, ` 0 ` )},dX={identify:oX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,test:/^[-+]?[0-9][0-9_]* $ /,resolve:(e,t,n)=>sX(e,0,10,n),stringify:NY},fX={identify:oX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` HEX ` ,test:/^[-+]?0x[0-9a-fA-F_]+ $ /,resolve:(e,t,n)=>sX(e,2,16,n),stringify:e=>cX(e,16, ` 0 x ` )},pX=class e extends TY{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=oJ(e)?e:e&&typeof e== ` object ` && ` key ` in e&& ` value ` in e&&e.value===null?new yY(e.key,null):new yY(e,null),wY(this.items,t.key)||this.items.push(t)}get(e,t){let n=wY(this.items,e);return!t&&oJ(n)?sJ(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=wY(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new yY(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(V 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(V J(a(t), ` ` )))}return n.join( `
` +U J(l(e),c),s&&s()):d&&o&&o(),p}function w Y({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(f J(i))i.spaceBefore&&d.push( ` ` ),T Y(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(c J(i)){let e=f J(i.key)?i.key:null;e&&(e.spaceBefore&&d.push( ` ` ),T Y(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=f J(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=l Y(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+=W 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 TY({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^ \n +/, ` ` )),r){let i=UJ(t(r),e);n.push(i.trimStart())}}function EY(e,t){let n=lJ(t)?t.value:t;for(let r of e)if(cJ(r)&&(r.key===t||r.key===n||lJ(r.key)&&r.key.value===n))return r}var DY=class extends VJ{static get tagName(){return ` tag : yaml . org , 2002 : map ` }constructor(e){super(eJ,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(bY(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=cJ(e)?e:!e||typeof e!= ` object ` ||!( ` key ` in e)?new xY(e,e?.value):new xY(e.key,e.value);let r=EY(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error( ` Key $ { n . key } already set ` );lJ(r.value)&&PJ(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=EY(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=EY(this.items,e)?.value;return(!t&&lJ(n)?n.value:n)??void 0}has(e){return!!EY(this.items,e)}set(e,t){this.add(new xY(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)vY(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!cJ(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})),SY(this,e,{blockItemPrefix: ` ` ,flowChars:{start: ` { ` ,end: ` } ` },itemIndent:e.indent|| ` ` ,onChompKeep:n,onComment:t})}},OY={collection: ` map ` ,default:!0,nodeClass:DY,tag: ` tag : yaml . org , 2002 : map ` ,resolve(e,t){return sJ(e)||t( ` Expected a mapping for this tag ` ),e},createNode:(e,t,n)=>DY.from(e,t,n)},kY=class extends VJ{static get tagName(){return ` tag : yaml . org , 2002 : seq ` }constructor(e){super(rJ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=AY(e);return typeof t== ` number ` &&this.items.splice(t,1).length>0}get(e,t){let n=AY(e);if(typeof n!= ` number ` )return;let r=this.items[n];return!t&&lJ(r)?r.value:r}has(e){let t=AY(e);return typeof t== ` number ` &&t<this.items.length}set(e,t){let n=AY(e);if(typeof n!= ` number ` )throw Error( ` Expected a valid index , not $ { e } . ` );let r=this.items[n];lJ(r)&&PJ(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(AJ(e,String(r++),t));return n}toString(e,t,n){return e?SY(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(RJ(a,void 0,n))}}return i}};function AY(e){let t=lJ(e)?e.value:e;return t&&typeof t== ` string ` &&(t=Number(t)),typeof t== ` number ` &&Number.isInteger(t)&&t>=0?t:null}var jY={collection: ` seq ` ,default:!0,nodeClass:kY,tag: ` tag : yaml . org , 2002 : seq ` ,resolve(e,t){return uJ(e)||t( ` Expected a sequence for this tag ` ),e},createNode:(e,t,n)=>kY.from(e,t,n)},MY={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),aY(e,t,n,r)}},NY={identify:e=>e==null,createNode:()=>new FJ(null),default:!0,tag: ` tag : yaml . org , 2002 : null ` ,test:/^(?:~|[Nn]ull|NULL)? $ /,resolve:()=>new FJ(null),stringify:({source:e},t)=>typeof e== ` string ` &&NY.test.test(e)?e:t.options.nullStr},PY={identify:e=>typeof e== ` boolean ` ,default:!0,tag: ` tag : yaml . org , 2002 : bool ` ,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE) $ /,resolve:e=>new FJ(e[0]=== ` t ` ||e[0]=== ` T ` ),stringify({source:e,value:t},n){return e&&PY.test.test(e)&&t===(e[0]=== ` t ` ||e[0]=== ` T ` )?e:t?n.options.trueStr:n.options.falseStr}};function FY({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:FY},LY={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 aY({comment:e,type:t,value:s},r,i,a)}};function ZY(e,t){if(uJ(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!cJ(r)){if(sJ(r)){r.items.length>1&&t( ` Each pair must have its own sequence indicator ` );let e=r.items[0]||new xY(new FJ(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]=cJ(r)?r:new xY(r)}}else t( ` Expected a sequence for this tag ` );return e}function QY(e,t,n){let{replacer:r}=n,i=new kY(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(bY(o,s,n))}return i}var $ Y={collection: ` seq ` ,default:!1,tag: ` tag : yaml . org , 2002 : pairs ` ,resolve:ZY,createNode:QY},eX=class e extends kY{constructor(){super(),this.add=DY.prototype.add.bind(this),this.delete=DY.prototype.delete.bind(this),this.get=DY.prototype.get.bind(this),this.has=DY.prototype.has.bind(this),this.set=DY.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(cJ(e)?(r=AJ(e.key, ` ` ,t),i=AJ(e.value,r,t)):r=AJ(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=QY(e,t,n),i=new this;return i.items=r.items,i}};eX.tag= ` tag : yaml . org , 2002 : omap ` ;var tX={collection: ` seq ` ,identify:e=>e instanceof Map,nodeClass:eX,default:!1,tag: ` tag : yaml . org , 2002 : omap ` ,resolve(e,t){let n=ZY(e,t),r=[];for(let{key:e}of n.items)lJ(e)&&(r.includes(e.value)?t( ` Ordered maps must not include duplicate keys : $ { e . value } ` ):r.push(e.value));return Object.assign(new eX,n)},createNode:(e,t,n)=>eX.from(e,t,n)};function nX({value:e,source:t},n){return t&&(e?rX:iX).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var rX={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 FJ(!0),stringify:nX},iX={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 FJ(!1),stringify:nX},aX={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:FY},oX={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():FY(e)}},sX={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 FJ(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:FY},cX=e=>typeof e== ` bigint ` ||Number.isInteger(e);function lX(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 uX(e,t,n){let{value:r}=e;if(cX(r)){let e=r.toString(t);return r<0? ` - ` +n+e.substr(1):n+e}return FY(e)}var dX={identify:cX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` BIN ` ,test:/^[-+]?0b[0-1_]+ $ /,resolve:(e,t,n)=>lX(e,2,2,n),stringify:e=>uX(e,2, ` 0 b ` )},fX={identify:cX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` OCT ` ,test:/^[-+]?0[0-7_]+ $ /,resolve:(e,t,n)=>lX(e,1,8,n),stringify:e=>uX(e,8, ` 0 ` )},pX={identify:cX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,test:/^[-+]?[0-9][0-9_]* $ /,resolve:(e,t,n)=>lX(e,0,10,n),stringify:FY},mX={identify:cX,default:!0,tag: ` tag : yaml . org , 2002 : int ` ,format: ` HEX ` ,test:/^[-+]?0x[0-9a-fA-F_]+ $ /,resolve:(e,t,n)=>lX(e,2,16,n),stringify:e=>uX(e,16, ` 0 x ` )},hX=class e extends DY{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=cJ(e)?e:e&&typeof e== ` object ` && ` key ` in e&& ` value ` in e&&e.value===null?new xY(e.key,null):new xY(e,null),EY(this.items,t.key)||this.items.push(t)}get(e,t){let n=EY(this.items,e);return!t&&cJ(n)?lJ(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=EY(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new xY(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(U 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(U J(a(t), ` ` )))}return n.join( `
` )+ `
` }var O X=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,n J,{value:Z 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 S J({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[n J]:{value:Z 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=u J(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){k X(this.contents)&&this.contents.add(e)}addIn(e,t){k X(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=w J(this);e.anchor=!t||n.has(t)?T J(t|| ` a ` ,n):t}return new A 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}=E J(this,a|| ` a ` ),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=I J(e,l,p);return o&&l J(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new y Y(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return k X(this.contents)?this.contents.delete(e):!1}deleteIn(e){return R J(e)?this.contents!=null&&(this.contents=null,!0):k X(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return l J(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return R J(e)?!t&&s J(this.contents)?this.contents.value:this.contents:l J(this.contents)?this.contents.getIn(e,t):void 0}has(e){return l J(this.contents)?this.contents.has(e):!1}hasIn(e){return R J(e)?this.contents!==void 0:l J(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=L J(this.schema,[e],t):k X(this.contents)&&this.contents.set(e,t)}setIn(e,t){R J(e)?this.contents=t:this.contents==null?this.contents=L J(this.schema,Array.from(e),t):k X(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 S J({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 S J({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 E 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=O J(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 ` ?D J(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 D X(this,e)}};function k X(e){if(l J(e))return!0;throw Error( ` Expected a YAML collection as document contents ` )}var A X=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},j X=class extends A X{constructor(e,t,n){super( ` YAMLParseError ` ,e,t,n)}},M X=class extends A X{constructor(e,t,n){super( ` YAMLWarning ` ,e,t,n)}},N 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 P 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 F 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(F X(t.key)||F X(t.value))return!0}return!1;default:return!0}}function I X(e,t,n){if(t?.type=== ` flow - collection ` ){let r=t.end[0];r.indent===e&&(r.source=== ` ] ` ||r.source=== ` } ` )&&F X(t)&&n(r, ` BAD _INDENT ` , ` Flow end indicator should be more indented than parent ` ,!0)}}function L X(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r== ` function ` ?r:(e,t)=>e===t||s J(e)&&s J(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var R X= ` All mapping items must start at the same column ` ;function zX ({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??T 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=P 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 ` ,R X)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+= `
` +p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||F 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 ` ,R 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&&I X(r.indent,u,i),n.atKey=!1,L X(n,o.items,g)&&i(h, ` DUPLICATE _KEY ` , ` Map keys must be unique ` );let _=P 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&&I X(r.indent,f,i),s=c.range[2];let l=new y Y(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 y Y(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 B X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??D Y)(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=P 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&&I X(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function V 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 H X= ` Block collections are not allowed within flow collections ` ,U X=e=>e&&(e.type=== ` block - map ` ||e.type=== ` block - seq ` );function W 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?T Y:D Y))(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=P 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&&F 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];o J(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],U X(m)&&i(r.range, ` BLOCK _IN _FLOW ` ,H X)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);U X(f)&&i(g.range, ` BLOCK _IN _FLOW ` ,H X),n.atKey=!1;let _=P 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?U X(m)&&i(v.range, ` BLOCK _IN _FLOW ` ,H X):_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let y=new y Y(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;L X(n,e.items,g)&&i(a, ` DUPLICATE _KEY ` , ` Map keys must be unique ` ),e.items.push(y)}else{let e=new T 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=V 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 G X(e,t,n,r,i,a){let o=n.type=== ` block - map ` ?zX (e,t,n,r,a):n.type=== ` block - seq ` ?B X(e,t,n,r,a):W 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 K 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===T Y.tagName&&s=== ` map ` ||o===D Y.tagName&&s=== ` seq ` )return G 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),G X(e,t,n,i,o)}let l=G X(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e),t.options)??l,d=u J(u)?u:new N J(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function q X(e,t,n){let r=t.offset,i=J X(t,e.options.strict,n);if(!i)return{value: ` ` ,type:null,comment: ` ` ,range:[r,r,r]};let a=i.mode=== ` > ` ?N J.BLOCK_FOLDED:N 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 A X=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,i J,{value: $ 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 w J({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[i J]:{value: $ 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=f J(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){j X(this.contents)&&this.contents.add(e)}addIn(e,t){j X(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=E J(this);e.anchor=!t||n.has(t)?D J(t|| ` a ` ,n):t}return new M 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}=O J(this,a|| ` a ` ),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=R J(e,l,p);return o&&d J(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new x Y(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return j X(this.contents)?this.contents.delete(e):!1}deleteIn(e){return B J(e)?this.contents!=null&&(this.contents=null,!0):j X(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return d J(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return B J(e)?!t&&l J(this.contents)?this.contents.value:this.contents:d J(this.contents)?this.contents.getIn(e,t):void 0}has(e){return d J(this.contents)?this.contents.has(e):!1}hasIn(e){return B J(e)?this.contents!==void 0:d J(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=z J(this.schema,[e],t):j X(this.contents)&&this.contents.set(e,t)}setIn(e,t){B J(e)?this.contents=t:this.contents==null?this.contents=z J(this.schema,Array.from(e),t):j X(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 w J({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 w J({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 O 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=A J(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 ` ?k J(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 k X(this,e)}};function j X(e){if(d J(e))return!0;throw Error( ` Expected a YAML collection as document contents ` )}var M X=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},N X=class extends M X{constructor(e,t,n){super( ` YAMLParseError ` ,e,t,n)}},P X=class extends M X{constructor(e,t,n){super( ` YAMLWarning ` ,e,t,n)}},F 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 L 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(L X(t.key)||L X(t.value))return!0}return!1;default:return!0}}function R X(e,t,n){if(t?.type=== ` flow - collection ` ){let r=t.end[0];r.indent===e&&(r.source=== ` ] ` ||r.source=== ` } ` )&&L X(t)&&n(r, ` BAD _INDENT ` , ` Flow end indicator should be more indented than parent ` ,!0)}}function z X(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r== ` function ` ?r:(e,t)=>e===t||l J(e)&&l J(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var B X= ` All mapping items must start at the same column ` ;function Fne ({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??D 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=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 ` ,B X)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+= `
` +p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||L 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 ` ,B 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&&R X(r.indent,u,i),n.atKey=!1,z 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&&R X(r.indent,f,i),s=c.range[2];let l=new x Y(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 x Y(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 V X({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??k Y)(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&&R X(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function H 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 U X= ` Block collections are not allowed within flow collections ` ,W X=e=>e&&(e.type=== ` block - map ` ||e.type=== ` block - seq ` );function G 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?D Y:k Y))(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&&L 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];c J(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],W X(m)&&i(r.range, ` BLOCK _IN _FLOW ` ,U X)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);W X(f)&&i(g.range, ` BLOCK _IN _FLOW ` ,U 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?W X(m)&&i(v.range, ` BLOCK _IN _FLOW ` ,U X):_.comment&&(g.comment?g.comment+= `
` +_.comment:g.comment=_.comment);let y=new x Y(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;z X(n,e.items,g)&&i(a, ` DUPLICATE _KEY ` , ` Map keys must be unique ` ),e.items.push(y)}else{let e=new D 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=H 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 K X(e,t,n,r,i,a){let o=n.type=== ` block - map ` ?Fne (e,t,n,r,a):n.type=== ` block - seq ` ?V X(e,t,n,r,a):G 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 q 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===D Y.tagName&&s=== ` map ` ||o===k Y.tagName&&s=== ` seq ` )return K 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),K X(e,t,n,i,o)}let l=K X(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a, ` TAG _RESOLVE _FAILED ` ,e),t.options)??l,d=f J(u)?u:new F J(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function J X(e,t,n){let r=t.offset,i=Y X(t,e.options.strict,n);if(!i)return{value: ` ` ,type:null,comment: ` ` ,range:[r,r,r]};let a=i.mode=== ` > ` ?F J.BLOCK_FOLDED:F J.BLOCK_LITERAL,o=t.source?X 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===N 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===F J.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f= `
` ):t.length>c||r[0]=== ` ` ?(f=== ` ` ?f= `
` :!p&&f=== `
` &&(f= `
@@ -81,59 +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 J X({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 X 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=N J.PLAIN,c=Z X(a,l);break;case ` single - quoted - scalar ` :s=N J.QUOTE_SINGLE,c=Q X(a,l);break;case ` double - quoted - scalar ` :s=N J.QUOTE_DOUBLE,c=e Z(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=V X(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function Z 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 } ` ) , $X ( e ) } function QX ( e , t ) { return ( e [ e . length - 1 ] !== ` ' ` || e . length === 1 ) && t ( e . length , ` MISSING_CHAR ` , ` Missing closing 'quote ` ) , $X ( e . slice ( 1 , - 1 ) ) . replace ( /''/g , ` ' ` ) } function $X ( 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 Y X({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 X 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 Z 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=F J.PLAIN,c=Q X(a,l);break;case ` single - quoted - scalar ` :s=F J.QUOTE_SINGLE,c= $ X(a,l);break;case ` double - quoted - scalar ` :s=F J.QUOTE_DOUBLE,c=t Z(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=H X(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function Q 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 } ` ) , eZ ( e ) } function $X ( e , t ) { return ( e [ e . length - 1 ] !== ` ' ` || e . length === 1 ) && t ( e . length , ` MISSING_CHAR ` , ` Missing closing 'quote ` ) , eZ ( e . slice ( 1 , - 1 ) ) . replace ( /''/g , ` ' ` ) } function eZ ( 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 e Z(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 t Z(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 Z(e,r);n+=t,r=i}else if(i=== ` \ \ ` ){let i=e[++r],a=n Z[i];if(a)n+=a;else if(i=== `
` ){let{fold:t,offset:i}=n Z(e,r);n+=t,r=i}else if(i=== ` \ \ ` ){let i=e[++r],a=r Z[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+=r Z(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+=i Z(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 Z(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 n Z(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 n Z={0: ` \ 0 ` ,a: ` \ x07 ` ,b: ` \ b ` ,e: ` \ x1B ` ,f: ` \ f ` ,n: `
` ,r: ` \ r ` ,t: ` ` ,v: ` \ v ` ,N: `
` ,_: ` \ xA0 ` ,L: ` \u2028 ` ,P: ` \u2029 ` ," ": ` ` ,'"': ` "`," / ":`/`," \ \ ":`\\`," " : ` ` } ; function rZ ( 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 iZ ( e , t , n , r ) { let { value : i , type : a , comment : o , range : s } = t . type === ` block-scalar ` ? qX ( e , t , r ) : XX ( 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 [ eJ ] : c ? aZ ( e . schema , i , c , n , r ) : t . type === ` scalar ` ? oZ ( e , i , t , r ) : e . schema [ eJ ] ; let u ; try { let a = l . resolve ( i , e => r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , e ) , e . options ) ; u = sJ ( a ) ? a : new NJ ( a ) } catch ( e ) { let a = e instanceof Error ? e . message : String ( e ) ; r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , a ) , u = new NJ ( 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 aZ ( e , t , n , r , i ) { if ( n === ` ! ` ) return e [ eJ ] ; 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 [ eJ ] ) } function oZ ( { 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 [ eJ ] ; if ( n . compat ) { let e = n . compat . find ( e => e . default && e . test ? . test ( r ) ) ? ? n [ eJ ] ; 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 sZ ( 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 cZ = { composeNode : lZ , composeEmptyNode : uZ } ; function lZ ( 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 = dZ ( 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 = iZ ( e , t , c , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) ; break ; case ` block-map ` : case ` block-seq ` : case ` flow-collection ` : try { l = KX ( cZ , 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 ? ? = uZ ( 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 && ( ! sJ ( 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 uZ ( e , t , n , r , { spaceBefore : i , comment : a , anchor : o , tag : s , end : c } , l ) { let u = iZ ( e , { type : ` scalar ` , offset : sZ ( 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 dZ ( { options : e } , { offset : t , source : n , end : r } , i ) { let a = new AJ ( 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 = VX ( r , o , e . strict , i ) ; return a . range = [ t , o , s . offset ] , s . comment && ( a . comment = s . comment ) , a } function fZ ( e , t , { offset : n , start : r , value : i , end : a } , o ) { let s = new OX ( void 0 , Object . assign ( { _directives : t } , e ) ) , c = { atKey : ! 1 , atRoot : ! 0 , directives : s . directives , options : s . options , schema : s . schema } , l = PX ( 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 ? lZ ( c , i , l , o ) : uZ ( c , l . end , r , null , l , o ) ; let u = s . contents . range [ 2 ] , d = VX ( a , u , ! 1 , o ) ; return d . comment && ( s . comment = d . comment ) , s . range = [ n , u , d . offset ] , s } function pZ ( 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 mZ ( 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 r Z={0: ` \ 0 ` ,a: ` \ x07 ` ,b: ` \ b ` ,e: ` \ x1B ` ,f: ` \ f ` ,n: `
` ,r: ` \ r ` ,t: ` ` ,v: ` \ v ` ,N: `
` ,_: ` \ xA0 ` ,L: ` \u2028 ` ,P: ` \u2029 ` ," ": ` ` ,'"': ` "`," / ":`/`," \ \ ":`\\`," " : ` ` } ; function iZ ( 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 aZ ( e , t , n , r ) { let { value : i , type : a , comment : o , range : s } = t . type === ` block-scalar ` ? JX ( e , t , r ) : ZX ( 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 [ nJ ] : c ? oZ ( e . schema , i , c , n , r ) : t . type === ` scalar ` ? sZ ( e , i , t , r ) : e . schema [ nJ ] ; let u ; try { let a = l . resolve ( i , e => r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , e ) , e . options ) ; u = lJ ( a ) ? a : new FJ ( a ) } catch ( e ) { let a = e instanceof Error ? e . message : String ( e ) ; r ( n ? ? t , ` TAG_RESOLVE_FAILED ` , a ) , u = new FJ ( 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 oZ ( e , t , n , r , i ) { if ( n === ` ! ` ) return e [ nJ ] ; 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 [ nJ ] ) } function sZ ( { 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 [ nJ ] ; if ( n . compat ) { let e = n . compat . find ( e => e . default && e . test ? . test ( r ) ) ? ? n [ nJ ] ; 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 cZ ( 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 lZ = { composeNode : uZ , composeEmptyNode : dZ } ; function uZ ( 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 = fZ ( 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 = aZ ( e , t , c , r ) , s && ( l . anchor = s . source . substring ( 1 ) ) ; break ; case ` block-map ` : case ` block-seq ` : case ` flow-collection ` : try { l = qX ( lZ , 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 ? ? = dZ ( 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 && ( ! lJ ( 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 dZ ( e , t , n , r , { spaceBefore : i , comment : a , anchor : o , tag : s , end : c } , l ) { let u = aZ ( e , { type : ` scalar ` , offset : cZ ( 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 fZ ( { options : e } , { offset : t , source : n , end : r } , i ) { let a = new MJ ( 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 = HX ( r , o , e . strict , i ) ; return a . range = [ t , o , s . offset ] , s . comment && ( a . comment = s . comment ) , a } function pZ ( e , t , { offset : n , start : r , value : i , end : a } , o ) { let s = new AX ( 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 ? uZ ( c , i , l , o ) : dZ ( c , l . end , r , null , l , o ) ; let u = s . contents . range [ 2 ] , d = HX ( a , u , ! 1 , o ) ; return d . comment && ( s . comment = d . comment ) , s . range = [ n , u , d . offset ] , s } function mZ ( 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 hZ ( 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 h Z=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=p Z(e);r?this.warnings.push(new M X(i,t,n)):this.errors.push(new j X(i,t,n))},this.directives=new S J({version:e.version|| ` 1.2 ` }),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=m Z(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(l J(i)&&!i.flow&&i.items.length>0){let e=i.items[0];o J(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:m Z(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=p Z(e);i[0]+=t,this.onError(i, ` BAD _DIRECTIVE ` ,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case ` document ` :{let t=f Z(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 j X(p Z(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 j X(p Z(e), ` UNEXPECTED _TOKEN ` , ` Unexpected doc - end without preceding document ` ));break}this.doc.directives.docEnd=!0;let t=V 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 j X(p Z(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 O X(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}}},g Z=Symbol( ` break visit ` ),_ Z=Symbol( ` skip children ` ),v Z=Symbol( ` remove item ` );function y Z(e,t){ ` type ` in e&&e.type=== ` document ` &&(e={start:e.start,value:e.value}),b Z(Object.freeze([]),e,t)}y Z.BREAK=g Z,y Z.SKIP=_ Z,y Z.REMOVE=v Z,y Z.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},y Z.parentCollection=(e,t)=>{let n=y Z.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 b Z(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=b Z(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r== ` number ` )t=r-1;else if(r===g Z)return g Z;else r===v Z&&(a.items.splice(t,1),--t)}typeof r== ` function ` &&i=== ` key ` &&(r=r(t,e))}}return typeof r== ` function ` ?r(t,e):r}function x Z(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 g Z=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=m Z(e);r?this.warnings.push(new P X(i,t,n)):this.errors.push(new N X(i,t,n))},this.directives=new w J({version:e.version|| ` 1.2 ` }),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=h Z(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(d J(i)&&!i.flow&&i.items.length>0){let e=i.items[0];c J(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:h Z(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=m Z(e);i[0]+=t,this.onError(i, ` BAD _DIRECTIVE ` ,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case ` document ` :{let t=p Z(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 N X(m Z(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 N X(m Z(e), ` UNEXPECTED _TOKEN ` , ` Unexpected doc - end without preceding document ` ));break}this.doc.directives.docEnd=!0;let t=H 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 N X(m Z(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 A X(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}}},_ Z=Symbol( ` break visit ` ),v Z=Symbol( ` skip children ` ),y Z=Symbol( ` remove item ` );function b Z(e,t){ ` type ` in e&&e.type=== ` document ` &&(e={start:e.start,value:e.value}),x Z(Object.freeze([]),e,t)}b Z.BREAK=_ Z,b Z.SKIP=v Z,b Z.REMOVE=y Z,b Z.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},b Z.parentCollection=(e,t)=>{let n=b Z.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 x Z(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=x Z(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r== ` number ` )t=r-1;else if(r===_ Z)return _ Z;else r===y Z&&(a.items.splice(t,1),--t)}typeof r== ` function ` &&i=== ` key ` &&(r=r(t,e))}}return typeof r== ` function ` ?r(t,e):r}function S Z(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 S Z(e){switch(e){case void 0:case ` ` :case `
` :case ` \ r ` :case ` ` :return!0;default:return!1}}var C Z=new Set( ` 0123456789 ABCDEFabcdef ` ),w Z=new Set( ` 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - # ; / ? : @ & = + $ _ . ! ~ * ' ( ) ` ) , T Z = n e w S e t ( ` , [ ] { } ` ) , E Z = n e w S e t ( ` , [ ] { }
\ r ` ),D Z=e=>!e||E Z.has(e),O Z=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 C Z(e){switch(e){case void 0:case ` ` :case `
` :case ` \ r ` :case ` ` :return!0;default:return!1}}var w Z=new Set( ` 0123456789 ABCDEFabcdef ` ),T Z=new Set( ` 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz - # ; / ? : @ & = + $ _ . ! ~ * ' ( ) ` ) , E Z = n e w S e t ( ` , [ ] { } ` ) , D Z = n e w S e t ( ` , [ ] { }
\ r ` ),O Z=e=>!e||D Z.has(e),k Z=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=== ` ... ` )&&S Z(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=== ` ... ` )&&S Z(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&&!S Z(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=== ` : ` )&&S Z(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(`...`))&&S Z(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||S Z(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=== ` ... ` )&&C Z(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=== ` ... ` )&&C Z(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&&!C Z(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=== ` : ` )&&C Z(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(O 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(`...`))&&C Z(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(O Z),`flow`;case`" ` :case ` '`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||C Z(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=>S Z(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=>C Z(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(S Z(r)||e&&T Z.has(r))break;t=n}else if(S Z(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(C Z(r)||e&&E Z.has(r))break;t=n}else if(C Z(r)){let i=this.buffer[n+1];if(r=== ` \ r ` &&(i=== `
` ?(n+=1,r= `
` ,i=this.buffer[n+1]):t=n),i=== ` # ` ||e&&T Z.has(i))break;if(r=== `
` ){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&T Z.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(S Z(n)||t&&T Z.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(;!S Z(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(w Z.has(t))t=this.buffer[++e];else if(t=== ` % ` &&C Z.has(this.buffer[e+1])&&C Z.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&&E Z.has(i))break;if(r=== `
` ){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&E Z.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(O Z),e+=yield*this.pushSpaces(!0);continue loop;case ` - ` :case ` ? ` :case ` : ` :{let t=this.flowLevel>0,n=this.charAt(1);if(C Z(n)||t&&E Z.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(;!C Z(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(T Z.has(t))t=this.buffer[++e];else if(t=== ` % ` &&w Z.has(this.buffer[e+1])&&w Z.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)}},kZ=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 AZ(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function jZ(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 MZ(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 NZ(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 PZ(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 FZ(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 IZ(e){if(e.start.type=== ` flow - seq - start ` )for(let t of e.items)t.sep&&!t.value&&!AZ(t.start, ` explicit - key - ind ` )&&!AZ(t.sep, ` map - value - ind ` )&&(t.key&&(t.value=t.key),delete t.key,MZ(t.value)?t.value.end?FZ(t.value.end,t.sep):t.value.end=t.sep:FZ(t.start,t.sep),delete t.sep)}var LZ=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 OZ,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=xZ(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 ` &&IZ(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&&jZ(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)}},AZ=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 jZ(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function MZ(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 PZ(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 FZ(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 IZ(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 LZ(e){if(e.start.type=== ` flow - seq - start ` )for(let t of e.items)t.sep&&!t.value&&!jZ(t.start, ` explicit - key - ind ` )&&!jZ(t.sep, ` map - value - ind ` )&&(t.key&&(t.value=t.key),delete t.key,NZ(t.value)?t.value.end?IZ(t.value.end,t.sep):t.value.end=t.sep:IZ(t.start,t.sep),delete t.sep)}var RZ=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 kZ,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=SZ(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 ` &&LZ(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&&MZ(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)){FZ(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(AZ(t.start, ` newline ` ))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=PZ(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(AZ(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(MZ(t.key)&&!AZ(t.sep, ` newline ` )){let e=PZ(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]}):AZ(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&&!AZ(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)){FZ(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||AZ(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)){IZ(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(jZ(t.start, ` newline ` ))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=FZ(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(jZ(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)&&!jZ(t.sep, ` newline ` )){let e=FZ(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]}):jZ(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&&!jZ(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)){IZ(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||jZ(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=P Z(N 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=P Z(N 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 R Z(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new k Z||null,prettyErrors:t}}function z Z(e,t={}){let{lineCounter:n,prettyErrors:r}=R Z(t),i=new L Z(n?.addNewLine),a=new h Z(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 j X(t.range.slice(0,2), ` MULTIPLE _DOCS ` , ` Source contains multiple documents ; please use YAML . parseAllDocuments ( ) ` ));break}return r&&n&&(o.errors.forEach(N X(e,n)),o.warnings.forEach(N X(e,n))),o}function B Z(e,t,n){let r;typeof t== ` function ` ?r=t:n===void 0&&t&&typeof t== ` object ` &&(n=t);let i=z Z(e,n);if(!i)return null;if(i.warnings.forEach(e=>l Y(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 V Z(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 i J(e)&&!r?e.toString(n):new O X(e,r,n).toString(n)}function H Z(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})}}function U Z(e,t){let n=e=>e.path&&e.path.length>=2?Number(e.path[1]):-1,r=e.nodes.find(e=>JSON.stringify(e.data.path)===JSON.stringify(t))?.data,i=r?.resume??r?.stage;if(!r||!i)return null;let a=Math.max(-1,...e.nodes.filter(e=>e.data.run).map(e=>n(e.data))),o=n(r);if(o<0||o>a)return null;let s=e.nodes.filter(e=>e.data.path?.length===2).sort((e,t)=>n(e.data)-n(t.data)).map(e=>e.data.resume??e.data.stage?? ` ` ),c=e=>!!e&&s.filter(t=>t===e).length>1;return c(i)||o>0&&c(s[o-1])?{label: ` Add an id to resume here ` ,from:i,blocked:!0}:{label:o===a? ` Resume from here ` : ` Re - run from here ` ,from:i}}var W Z=140,G Z=280,K Z={"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 q Z(e){return K Z[e]??e}var J Z=/ \{ \{ \s *steps \. ([A-Za-z0-9_-]+) \. [^}]* \} \} /g;function Y Z(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function X Z(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 Z Z(e){for(let t of[ ` mission ` , ` message ` , ` body ` , ` plan ` , ` detail ` ]){let n=e[t];if(typeof n== ` string ` &&n.trim())return n.replace(/ \{ \{ \s *([^}]+?) \s * \} \} /g, ` ‹ $1 › ` ).split( `
` ).find(e=>e.trim())?.trim()}}function QZ(e,t){let n=JSON.stringify(e??{})+ ` ` +(typeof t== ` string ` ? ` { { $ { t . replace ( /^!/ , ` ` ) } } } ` : ` ` );return[...new Set([...n.matchAll(JZ)].map(e=>e[1]))]}function $ Z(e){let t=zZ(e).toJS(),n=YZ(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=YZ(e)?e:{},f=typeof u.type== ` string ` ?u.type: ` ` ,p=YZ(u.settings)?u.settings:{},m=typeof u.id== ` string ` ?u.id: ` ` ,h= ` step - $ { t } ` ,g=s? ` $ { s } / $ { m || f } ` :m||f;r.push({id:h,type: ` step ` ,position:{x:n,y:i},data:{kind: ` step ` ,key:m||t,title:m||qZ(f),type:f,detail:XZ(f,p),summary:ZZ(p),when:typeof u.when== ` string ` ?u.when:void 0,retry:YZ(u.retry)&&typeof u.retry.attempts== ` number ` ?u.retry.attempts:void 0,continues:u.on_failure=== ` continue ` ,branch:s,path:l,stage:g,occurrence:d(g),...c?{resume:c}:{}}}),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(YZ(t)&&YZ(t.parallel)){let n=Object.entries(t.parallel),r=typeof t.id== ` string ` ?t.id: ` parallel ` ,i=[],a=0;n.forEach(([t,o],s)=>{let u=(s-(n.length-1)/2)*GZ,d=c,m=c;(Array.isArray(o)?o:[]).forEach((i,o)=>{let c=f(i, ` $ { e + 1 } - $ { t } - $ { o + 1 } ` ,u,(l+o)*WZ,t,r,[ ` steps ` ,e, ` parallel ` ,t,o]);p(d,c,d===m&&s===n.length-1?e-1:void 0),d=[c],a=Math.max(a,o+1)}),i.push(...d)}),c=i,l+=Math.max(a,1);continue}let n=f(t,String(e+1),0,l*WZ,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*WZ-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}}var eQ={agent:Ju,command:Fd,repo:ud,gate:Md,forge:vd,human:Hd,review:cd,workflow:Gd},tQ={agent: ` Agents ` ,command: ` Commands ` ,repo: ` Repository ` ,gate: ` Checks ` ,forge: ` Issues and PRs ` ,human: ` People ` ,review: ` Review ` ,workflow: ` Flow ` };function nQ(e){return eQ[e.split( ` . ` )[0]]??Gd}function rQ(e){return Object.keys(tQ).map(t=>({title:tQ[t],icon:eQ[t],types:e.filter(e=>e.split( ` . ` )[0]===t)})).filter(e=>e.types.length)}function iQ(e,t){let n=zZ(e).getIn(t,!0);if(aJ(n))return n.toJSON()}function aQ(e,t,n){let r=zZ(e);return r.setIn(t,r.createNode(dQ(n))),r.toString()}function oQ(e,t,n){let r=zZ(e),i=r.get( ` steps ` ,!0);if(cJ(i)||(r.set( ` steps ` ,r.createNode([])),i=r.get( ` steps ` ,!0)),!cJ(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 sQ(e,t){let n=zZ(e),r=n.getIn(t.slice(0,-1),!0),i=t.at(-1);if(!cJ(r)||typeof i!= ` number ` )return{source:e,path:t};let a=n.createNode(n.getIn(t));return aJ(a)&&a.delete( ` id ` ),r.items.splice(i+1,0,a),{source:n.toString(),path:[...t.slice(0,-1),i+1]}}function cQ(e,t){let n=zZ(e);n.deleteIn(t);let r=t.slice(0,-1);if(r.length>2){let e=n.getIn(r,!0);cJ(e)&&e.items.length===0&&n.deleteIn(r)}return n.toString()}function lQ(e,t,n){let r=zZ(e),i=r.getIn(t.slice(0,-1),!0),a=t.at(-1);if(!cJ(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 uQ(e,t){let n=zZ(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 dQ(e){if(Array.isArray(e))return e.map(dQ);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=dQ(r);(typeof e!= ` object ` ||!e||Array.isArray(e)||Object.keys(e).length!==0)&&(t[n]=e)}return t}function fQ(e,t){let n=zZ(e).get(t,!0);return n&&typeof n== ` object ` && ` toJSON ` in n?n.toJSON():zZ(e).get(t)}function pQ(e,t,n){let r=zZ(e),i=dQ({[t]:n})[t];return i===void 0?r.delete(t):r.set(t,r.createNode(i)),r.toString()}function mQ(e){return e.ok? ` Valid ` :e.line? ` Line $ { e . line } : $ { e . message } ` :e.message}function hQ(e,t=[]){let n=zZ(e),r=n.errors[0];if(r)return{ok:!1,message:kQ(r.message),line:r.linePos?.[0]?.line};let i=n.toJS();if(!AQ(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 ` };le
Line truncated
` ).map((e,t)=>({number:t+1,text:e,tokens:T Q(e)}))}var C Q=/^( \s *)(- \s +)?/,w Q=/^([^:# \s ][^:#]*?)(:)( \s *)(.*) $ /;function T Q(e){let{code:t,comment:n}=E Q(e),r=D Q(t);return n&&r.push({text:n,kind: ` comment ` }),r}function E Q(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 D Q(e){if(!e)return[];let t=[],n=C Q.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=w Q.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,...O Q(i[4]??``)]):[...t,...O Q(r)]}function O Q(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 kQ ( e ) { return e . split ( `
` )[0]?.trim()|| ` invalid YAML ` }function A Q(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function j Q(e){return typeof e== ` string ` &&e.trim()!== ` ` }var M Q={class: ` flex h - full w - [ 24 rem ] flex - col border - l border - border bg - card shadow - xl ` },N Q={class: ` flex items - center gap - 2.5 border - b border - border px - 4 py - 3 ` },P Q={class: ` flex size - 8 shrink - 0 items - center justify - center rounded - md bg - secondary text - primary ` },F Q={class: ` min - w - 0 flex - 1 ` },I Q=[ ` value ` , ` placeholder ` ],L Q={class: ` truncate font - mono text - [ 11 px ] text - fg - subtle ` },R Q={class: ` flex - 1 space - y - 5 overflow - y - auto px - 4 py - 4 ` },z Q={key:0,class: ` rounded - md bg - danger / 10 px - 2.5 py - 1.5 text - xs text - danger ` ,role: ` alert ` },B Q={key:1,class: ` space - y - 1.5 ` },V Q=[ ` title ` ],H Q=[ ` value ` ],U Q=[ ` value ` ],W Q={key:3,class: ` flex flex - wrap items - center gap - 1 pt - 0.5 ` },G Q=[ ` onClick ` ],K Q=[ ` onClick ` ],q Q={key:2,class: ` divide - y divide - border rounded - md border border - border ` },J Q=[ ` title ` ],Y Q=[ ` value ` , ` onChange ` ],X Q=[ ` value ` ],Z Q=[ ` value ` , ` onInput ` ],Q Q=[ ` value ` , ` onFocus ` , ` onInput ` ], $ Q =[` title ` ],e $ ={key:0,class: ` text - xs text - danger ` },t $ ={class: ` space - y - 2 ` },n $ ={class: ` divide - y divide - border rounded - md border border - border ` },r $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },i $ =[ ` value ` ],a $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },o $ =[ ` value ` ],s $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },c $ =[ ` value ` ],l $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },u $ ={class: ` flex items - center border - t border - border px - 4 py - 2.5 ` },d $ =I({__name: ` StepEditor ` ,props:{yaml:{},path:{},vocabulary:{}},emits:[ ` update : yaml ` , ` close ` , ` remove ` ],setup(e,{emit:t}){let n=e,r=t,i=J(()=>i Q(n.yaml,n.path)??{}),a=J(()=>typeof i.value.type== ` string ` ?i.value.type: ` ` ),o=J(()=>n.vocabulary.find(e=>e.name===a.value)),s=J(()=>typeof i.value.settings== ` object ` &&i.value.settings!==null?i.value.settings:{}),c=J(()=>u Q(n.yaml,n.path)),l=J(()=>o.value?.settings&&i.value.settings?b Q(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=J(()=>{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 ` ,a Q(n.yaml,n.path,{id:t,type:i,...a}))}function h(e,t){m({...i.value,[e]:t})}function g(e){h( ` retry ` ,{...i.value.retry,...e})}function _(e,t){m({...i.value,settings:{...s.value,[e]:t}})}let v=M(null);function y(e,t){let n=v.value??p.value.lead?.key;if(!n)return;let r=typeof s.value[n]== ` string ` ?s.value[n]: ` ` ,i= ` { { steps . $ { e } . $ { t } } } ` ;_(n,r? ` $ { r . trimEnd ( ) } $ { i } ` :i)}let b=M({});function x(e,t){try{_(e,t.trim()?B Z(t):void 0),b.value={...b.value,[e]: ` ` }}catch(t){b.value={...b.value,[e]:String(t.message).split( `
` )[0]}}}let S=e=>e===void 0? ` ` :V Z(e).trimEnd(),C=(e,t)=>t.title??e.replaceAll( ` _ ` , ` ` ).replace(/^./,e=>e.toUpperCase()),w=e=>typeof s.value[e]== ` string ` ?s.value[e]: ` ` ;return(e,t)=>(B(),V( ` aside ` ,M Q,[U( ` header ` ,N Q,[U( ` span ` ,P Q,[(B(),H(ea(N(n Q)(a.value)),{class: ` size - 4 ` }))]),U( ` div ` ,F Q,[U( ` input ` ,{value:i.value.id?? ` ` ,class: ` w - full truncate bg - transparent text - sm font - medium outline - none placeholder : text - fg - subtle focus : underline ` ,placeholder:N(q Z)(a.value),"aria-label": ` Step id ` ,onInput:t[0]||=e=>h( ` id ` ,e.target.value)},null,40,I Q),U( ` div ` ,L Q,j(a.value),1)]),W(N(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` icon - sm ` ,"aria-label": ` Close ` ,onClick:t[1]||=e=>r( ` close ` )},{default:P(()=>[W(N(q d))]),_:1})]),U( ` div ` ,R Q,[l.value?(B(),V( ` p ` ,z Q,j(l.value),1)):K( ` ` ,!0),p.value.lead?(B(),V( ` section ` ,B Q,[U( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:p.value.lead.schema.description},[G(j(C(p.value.lead.key,p.value.lead.schema))+ ` ` ,1),p.value.lead.schema.description?(B(),H(N(i d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8,V Q),p.value.lead.kind=== ` select ` ?(B(),V( ` select ` ,{key:0,class: ` h - 9 w - full rounded - md border border - input bg - background px - 2 ` ,value:w(p.value.lead.key),onChange:t[2]||=e=>_(p.value.lead.key,e.target.value||void 0)},[t[13]||=U( ` option ` ,{value: ` ` }, ` Default ` ,-1),(B(!0),V(z,null,L(p.value.lead.schema.enum,e=>(B(),V( ` option ` ,{key:e,value:e},j(e),9,U Q))),128))],40,H Q)):p.value.lead.kind=== ` text ` ?(B(),H(N(Qw ),{key:1,"model-value":w(p.value.lead.key),class: ` min - h - 40 text - [ 13 px ] leading - relaxed ` ,onFocus:t[3]||=e=>v.value=p.value.lead.key,"onUpdate:modelValue":t[4]||=e=>_(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])):(B(),H(N(wD),{key:2,"model-value":w(p.value.lead.key),onFocus:t[5]||=e=>v.value=p.value.lead.key,"onUpdate:modelValue":t[6]||=e=>_(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])),c.value.length&&p.value.lead.kind!== ` select ` ?(B(),V( ` div ` ,W Q,[t[14]||=U( ` span ` ,{class: ` text - [ 11 px ] text - fg - subtle ` }, ` Insert ` ,-1),(B(!0),V(z,null,L(c.value,e=>(B(),V(z,{key:e},[U( ` 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=>y(e, ` summary ` )},j(e),9,G Q),U( ` 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=>y(e, ` result ` )},j(e)+ ` . result ` ,9,K Q)],64))),128))])):K( ` ` ,!0)])):K( ` ` ,!0),p.value.compact.length?(B(),V( ` section ` ,q Q,[(B(!0),V(z,null,L(p.value.compact,e=>(B(),V( ` div ` ,{key:e.key,class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },[U( ` span ` ,{class: ` flex flex - 1 items - center gap - 1 text - [ 13 px ] ` ,title:e.schema.description},[G(j(C(e.key,e.schema))+ ` ` ,1),e.schema.description?(B(),H(N(i d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8,J Q),e.kind=== ` boolean ` ?(B(),H(N(YD),{key:0,"model-value":s.value[e.key]===!0,"onUpdate:modelValue":t=>_(e.key,t||void 0)},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):e.kind=== ` select ` ?(B(),V( ` select ` ,{key:1,class: ` h - 7 max - w - 40 rounded - md border border - input bg - background px - 1.5 text - [ 13 px ] ` ,value:w(e.key),onChange:t=>_(e.key,t.target.value||void 0)},[t[15]||=U( ` option ` ,{value: ` ` }, ` Default ` ,-1),(B(!0),V(z,null,L(e.schema.enum,e=>(B(),V( ` option ` ,{key:e,value:e},j(e),9,X Q))),128))],40,Y Q)):e.kind=== ` number ` ?(B(),V( ` 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=>_(e.key,t.target.value=== ` ` ?void 0:Number(t.target.value))},null,40,Z Q)):(B(),V( ` input ` ,{key:3,class: ` h - 7 w - 40 rounded - md border border - input bg - background px - 2 text - [ 13 px ] ` ,value:w(e.key),onFocus:t=>v.value=e.key,onInput:t=>_(e.key,t.target.value)},null,40,Q Q))]))),128))])):K( ` ` ,!0),(B(!0),V(z,null,L(p.value.long,e=>(B(),V( ` section ` ,{key:e.key,class: ` space - y - 1.5 ` },[U( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:e.schema.description},[G(j(C(e.key,e.schema))+ ` ` ,1),e.schema.description?(B(),H(N(i d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8, $ Q ),e.kind===` text ` ?(B(),H(N(Qw ),{key:0,"model-value":w(e.key),class: ` min - h - 20 text - [ 13 px ] ` ,onFocus:t=>v.value=e.key,"onUpdate:modelValue":t=>_(e.key,String(t))},null,8,[ ` model - value ` , ` onFocus ` , ` onUpdate : modelValue ` ])):e.kind=== ` lines ` ?(B(),H(N(Qw ),{key:1,"model-value":Array.isArray(s.value[e.key])?s.value[e.key].join( `
` ,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=F Z(P 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=F Z(P 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 z Z(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new A Z||null,prettyErrors:t}}function B Z(e,t={}){let{lineCounter:n,prettyErrors:r}=z Z(t),i=new R Z(n?.addNewLine),a=new g Z(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 N X(t.range.slice(0,2), ` MULTIPLE _DOCS ` , ` Source contains multiple documents ; please use YAML . parseAllDocuments ( ) ` ));break}return r&&n&&(o.errors.forEach(F X(e,n)),o.warnings.forEach(F X(e,n))),o}function V Z(e,t,n){let r;typeof t== ` function ` ?r=t:n===void 0&&t&&typeof t== ` object ` &&(n=t);let i=B Z(e,n);if(!i)return null;if(i.warnings.forEach(e=>d Y(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 H Z(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 o J(e)&&!r?e.toString(n):new A X(e,r,n).toString(n)}function U Z(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})}}function W Z(e,t){let n=e=>e.path&&e.path.length>=2?Number(e.path[1]):-1,r=e.nodes.find(e=>JSON.stringify(e.data.path)===JSON.stringify(t))?.data,i=r?.resume??r?.stage;if(!r||!i)return null;let a=Math.max(-1,...e.nodes.filter(e=>e.data.run).map(e=>n(e.data))),o=n(r);if(o<0||o>a)return null;let s=e.nodes.filter(e=>e.data.path?.length===2).sort((e,t)=>n(e.data)-n(t.data)).map(e=>e.data.resume??e.data.stage?? ` ` ),c=e=>!!e&&s.filter(t=>t===e).length>1;return c(i)||o>0&&c(s[o-1])?{label: ` Add an id to resume here ` ,from:i,blocked:!0}:{label:o===a? ` Resume from here ` : ` Re - run from here ` ,from:i}}var G Z=140,K Z=280,q Z={"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 J Z(e){return q Z[e]??e}var Y Z=/ \{ \{ \s *steps \. ([A-Za-z0-9_-]+) \. [^}]* \} \} /g;function X Z(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function Z Z(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 Q Z(e){for(let t of[ ` mission ` , ` message ` , ` body ` , ` plan ` , ` detail ` ]){let n=e[t];if(typeof n== ` string ` &&n.trim())return n.replace(/ \{ \{ \s *([^}]+?) \s * \} \} /g, ` ‹ $1 › ` ).split( `
` ).find(e=>e.trim())?.trim()}}function $ Z(e,t){let n=JSON.stringify(e??{})+ ` ` +(typeof t== ` string ` ? ` { { $ { t . replace ( /^!/ , ` ` ) } } } ` : ` ` );return[...new Set([...n.matchAll(YZ)].map(e=>e[1]))]}function eQ(e){let t=BZ(e).toJS(),n=XZ(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=XZ(e)?e:{},f=typeof u.type== ` string ` ?u.type: ` ` ,p=XZ(u.settings)?u.settings:{},m=typeof u.id== ` string ` ?u.id: ` ` ,h= ` step - $ { t } ` ,g=s? ` $ { s } / $ { m || f } ` :m||f;r.push({id:h,type: ` step ` ,position:{x:n,y:i},data:{kind: ` step ` ,key:m||t,title:m||JZ(f),type:f,detail:ZZ(f,p),summary:QZ(p),when:typeof u.when== ` string ` ?u.when:void 0,retry:XZ(u.retry)&&typeof u.retry.attempts== ` number ` ?u.retry.attempts:void 0,continues:u.on_failure=== ` continue ` ,branch:s,path:l,stage:g,occurrence:d(g),...c?{resume:c}:{}}}),m&&a.set(m,h);for(let e of $ Z(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(XZ(t)&&XZ(t.parallel)){let n=Object.entries(t.parallel),r=typeof t.id== ` string ` ?t.id: ` parallel ` ,i=[],a=0;n.forEach(([t,o],s)=>{let u=(s-(n.length-1)/2)*KZ,d=c,m=c;(Array.isArray(o)?o:[]).forEach((i,o)=>{let c=f(i, ` $ { e + 1 } - $ { t } - $ { o + 1 } ` ,u,(l+o)*GZ,t,r,[ ` steps ` ,e, ` parallel ` ,t,o]);p(d,c,d===m&&s===n.length-1?e-1:void 0),d=[c],a=Math.max(a,o+1)}),i.push(...d)}),c=i,l+=Math.max(a,1);continue}let n=f(t,String(e+1),0,l*GZ,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*GZ-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}}var tQ={agent:Yu,command:Id,repo:dd,gate:Nd,forge:yd,human:Ud,review:ld,workflow:Kd},nQ={agent: ` Agents ` ,command: ` Commands ` ,repo: ` Repository ` ,gate: ` Checks ` ,forge: ` Issues and PRs ` ,human: ` People ` ,review: ` Review ` ,workflow: ` Flow ` };function rQ(e){return tQ[e.split( ` . ` )[0]]??Kd}function iQ(e){return Object.keys(nQ).map(t=>({title:nQ[t],icon:tQ[t],types:e.filter(e=>e.split( ` . ` )[0]===t)})).filter(e=>e.types.length)}function aQ(e,t){let n=BZ(e).getIn(t,!0);if(sJ(n))return n.toJSON()}function oQ(e,t,n){let r=BZ(e);return r.setIn(t,r.createNode(fQ(n))),r.toString()}function sQ(e,t,n){let r=BZ(e),i=r.get( ` steps ` ,!0);if(uJ(i)||(r.set( ` steps ` ,r.createNode([])),i=r.get( ` steps ` ,!0)),!uJ(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 cQ(e,t){let n=BZ(e),r=n.getIn(t.slice(0,-1),!0),i=t.at(-1);if(!uJ(r)||typeof i!= ` number ` )return{source:e,path:t};let a=n.createNode(n.getIn(t));return sJ(a)&&a.delete( ` id ` ),r.items.splice(i+1,0,a),{source:n.toString(),path:[...t.slice(0,-1),i+1]}}function lQ(e,t){let n=BZ(e);n.deleteIn(t);let r=t.slice(0,-1);if(r.length>2){let e=n.getIn(r,!0);uJ(e)&&e.items.length===0&&n.deleteIn(r)}return n.toString()}function uQ(e,t,n){let r=BZ(e),i=r.getIn(t.slice(0,-1),!0),a=t.at(-1);if(!uJ(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 dQ(e,t){let n=BZ(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 fQ(e){if(Array.isArray(e))return e.map(fQ);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=fQ(r);(typeof e!= ` object ` ||!e||Array.isArray(e)||Object.keys(e).length!==0)&&(t[n]=e)}return t}function pQ(e,t){let n=BZ(e).get(t,!0);return n&&typeof n== ` object ` && ` toJSON ` in n?n.toJSON():BZ(e).get(t)}function mQ(e,t,n){let r=BZ(e),i=fQ({[t]:n})[t];return i===void 0?r.delete(t):r.set(t,r.createNode(i)),r.toString()}function hQ(e){return e.ok? ` Valid ` :e.line? ` Line $ { e . line } : $ { e . message } ` :e.message}function gQ(e,t=[]){let n=BZ(e),r=n.errors[0];if(r)return{ok:!1,message:AQ(r.message),line:r.linePos?.[0]?.line};let i=n.toJS();if(!jQ(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 ` };le
Line truncated
` ).map((e,t)=>({number:t+1,text:e,tokens:E Q(e)}))}var w Q=/^( \s *)(- \s +)?/,T Q=/^([^:# \s ][^:#]*?)(:)( \s *)(.*) $ /;function E Q(e){let{code:t,comment:n}=D Q(e),r=O Q(t);return n&&r.push({text:n,kind: ` comment ` }),r}function D Q(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 O Q(e){if(!e)return[];let t=[],n=w Q.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=T Q.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,...k Q(i[4]??``)]):[...t,...k Q(r)]}function k Q(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 AQ ( e ) { return e . split ( `
` )[0]?.trim()|| ` invalid YAML ` }function j Q(e){return typeof e== ` object ` &&!!e&&!Array.isArray(e)}function M Q(e){return typeof e== ` string ` &&e.trim()!== ` ` }var N Q={class: ` flex h - full w - [ 24 rem ] flex - col border - l border - border bg - card shadow - xl ` },P Q={class: ` flex items - center gap - 2.5 border - b border - border px - 4 py - 3 ` },F Q={class: ` flex size - 8 shrink - 0 items - center justify - center rounded - md bg - secondary text - primary ` },I Q={class: ` min - w - 0 flex - 1 ` },L Q=[ ` value ` , ` placeholder ` ],R Q={class: ` truncate font - mono text - [ 11 px ] text - fg - subtle ` },z Q={class: ` flex - 1 space - y - 5 overflow - y - auto px - 4 py - 4 ` },B Q={key:0,class: ` rounded - md bg - danger / 10 px - 2.5 py - 1.5 text - xs text - danger ` ,role: ` alert ` },V Q={key:1,class: ` space - y - 1.5 ` },H Q=[ ` title ` ],U Q=[ ` value ` ],W Q=[ ` value ` ],G Q={key:3,class: ` flex flex - wrap items - center gap - 1 pt - 0.5 ` },K Q=[ ` onClick ` ],q Q=[ ` onClick ` ],J Q={key:2,class: ` divide - y divide - border rounded - md border border - border ` },Y Q=[ ` title ` ],X Q=[ ` value ` , ` onChange ` ],Z Q=[ ` value ` ],Q Q=[ ` value ` , ` onInput ` ], $ Q=[ ` value ` , ` onFocus ` , ` onInput ` ],e $ =[ ` title ` ],t $ ={key:0,class: ` text - xs text - danger ` },n $ ={class: ` space - y - 2 ` },r $ ={class: ` divide - y divide - border rounded - md border border - border ` },i $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },a $ =[ ` value ` ],o $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },s $ =[ ` value ` ],c $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },l $ =[ ` value ` ],u $ ={class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },d $ ={class: ` flex items - center border - t border - border px - 4 py - 2.5 ` },f $ =I({__name: ` StepEditor ` ,props:{yaml:{},path:{},vocabulary:{}},emits:[ ` update : yaml ` , ` close ` , ` remove ` ],setup(e,{emit:t}){let n=e,r=t,i=J(()=>a Q(n.yaml,n.path)??{}),a=J(()=>typeof i.value.type== ` string ` ?i.value.type: ` ` ),o=J(()=>n.vocabulary.find(e=>e.name===a.value)),s=J(()=>typeof i.value.settings== ` object ` &&i.value.settings!==null?i.value.settings:{}),c=J(()=>d Q(n.yaml,n.path)),l=J(()=>o.value?.settings&&i.value.settings?x Q(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=J(()=>{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 ` ,o Q(n.yaml,n.path,{id:t,type:i,...a}))}function h(e,t){m({...i.value,[e]:t})}function g(e){h( ` retry ` ,{...i.value.retry,...e})}function _(e,t){m({...i.value,settings:{...s.value,[e]:t}})}let v=M(null);function y(e,t){let n=v.value??p.value.lead?.key;if(!n)return;let r=typeof s.value[n]== ` string ` ?s.value[n]: ` ` ,i= ` { { steps . $ { e } . $ { t } } } ` ;_(n,r? ` $ { r . trimEnd ( ) } $ { i } ` :i)}let b=M({});function x(e,t){try{_(e,t.trim()?V Z(t):void 0),b.value={...b.value,[e]: ` ` }}catch(t){b.value={...b.value,[e]:String(t.message).split( `
` )[0]}}}let S=e=>e===void 0? ` ` :H Z(e).trimEnd(),C=(e,t)=>t.title??e.replaceAll( ` _ ` , ` ` ).replace(/^./,e=>e.toUpperCase()),w=e=>typeof s.value[e]== ` string ` ?s.value[e]: ` ` ;return(e,t)=>(B(),V( ` aside ` ,N Q,[U( ` header ` ,P Q,[U( ` span ` ,F Q,[(B(),H(ea(N(r Q)(a.value)),{class: ` size - 4 ` }))]),U( ` div ` ,I Q,[U( ` input ` ,{value:i.value.id?? ` ` ,class: ` w - full truncate bg - transparent text - sm font - medium outline - none placeholder : text - fg - subtle focus : underline ` ,placeholder:N(J Z)(a.value),"aria-label": ` Step id ` ,onInput:t[0]||=e=>h( ` id ` ,e.target.value)},null,40,L Q),U( ` div ` ,R Q,j(a.value),1)]),W(N(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` icon - sm ` ,"aria-label": ` Close ` ,onClick:t[1]||=e=>r( ` close ` )},{default:P(()=>[W(N(J d))]),_:1})]),U( ` div ` ,z Q,[l.value?(B(),V( ` p ` ,B Q,j(l.value),1)):K( ` ` ,!0),p.value.lead?(B(),V( ` section ` ,V Q,[U( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:p.value.lead.schema.description},[G(j(C(p.value.lead.key,p.value.lead.schema))+ ` ` ,1),p.value.lead.schema.description?(B(),H(N(a d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8,H Q),p.value.lead.kind=== ` select ` ?(B(),V( ` select ` ,{key:0,class: ` h - 9 w - full rounded - md border border - input bg - background px - 2 ` ,value:w(p.value.lead.key),onChange:t[2]||=e=>_(p.value.lead.key,e.target.value||void 0)},[t[13]||=U( ` option ` ,{value: ` ` }, ` Default ` ,-1),(B(!0),V(z,null,L(p.value.lead.schema.enum,e=>(B(),V( ` option ` ,{key:e,value:e},j(e),9,W Q))),128))],40,U Q)):p.value.lead.kind=== ` text ` ?(B(),H(N(eT ),{key:1,"model-value":w(p.value.lead.key),class: ` min - h - 40 text - [ 13 px ] leading - relaxed ` ,onFocus:t[3]||=e=>v.value=p.value.lead.key,"onUpdate:modelValue":t[4]||=e=>_(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])):(B(),H(N(wD),{key:2,"model-value":w(p.value.lead.key),onFocus:t[5]||=e=>v.value=p.value.lead.key,"onUpdate:modelValue":t[6]||=e=>_(p.value.lead.key,String(e))},null,8,[ ` model - value ` ])),c.value.length&&p.value.lead.kind!== ` select ` ?(B(),V( ` div ` ,G Q,[t[14]||=U( ` span ` ,{class: ` text - [ 11 px ] text - fg - subtle ` }, ` Insert ` ,-1),(B(!0),V(z,null,L(c.value,e=>(B(),V(z,{key:e},[U( ` 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=>y(e, ` summary ` )},j(e),9,K Q),U( ` 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=>y(e, ` result ` )},j(e)+ ` . result ` ,9,q Q)],64))),128))])):K( ` ` ,!0)])):K( ` ` ,!0),p.value.compact.length?(B(),V( ` section ` ,J Q,[(B(!0),V(z,null,L(p.value.compact,e=>(B(),V( ` div ` ,{key:e.key,class: ` flex min - h - 10 items - center gap - 3 px - 3 py - 1.5 ` },[U( ` span ` ,{class: ` flex flex - 1 items - center gap - 1 text - [ 13 px ] ` ,title:e.schema.description},[G(j(C(e.key,e.schema))+ ` ` ,1),e.schema.description?(B(),H(N(a d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8,Y Q),e.kind=== ` boolean ` ?(B(),H(N(YD),{key:0,"model-value":s.value[e.key]===!0,"onUpdate:modelValue":t=>_(e.key,t||void 0)},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):e.kind=== ` select ` ?(B(),V( ` select ` ,{key:1,class: ` h - 7 max - w - 40 rounded - md border border - input bg - background px - 1.5 text - [ 13 px ] ` ,value:w(e.key),onChange:t=>_(e.key,t.target.value||void 0)},[t[15]||=U( ` option ` ,{value: ` ` }, ` Default ` ,-1),(B(!0),V(z,null,L(e.schema.enum,e=>(B(),V( ` option ` ,{key:e,value:e},j(e),9,Z Q))),128))],40,X Q)):e.kind=== ` number ` ?(B(),V( ` 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=>_(e.key,t.target.value=== ` ` ?void 0:Number(t.target.value))},null,40,Q Q)):(B(),V( ` input ` ,{key:3,class: ` h - 7 w - 40 rounded - md border border - input bg - background px - 2 text - [ 13 px ] ` ,value:w(e.key),onFocus:t=>v.value=e.key,onInput:t=>_(e.key,t.target.value)},null,40, $ Q))]))),128))])):K( ` ` ,!0),(B(!0),V(z,null,L(p.value.long,e=>(B(),V( ` section ` ,{key:e.key,class: ` space - y - 1.5 ` },[U( ` div ` ,{class: ` flex items - center gap - 1 text - xs font - medium text - muted - foreground ` ,title:e.schema.description},[G(j(C(e.key,e.schema))+ ` ` ,1),e.schema.description?(B(),H(N(a d),{key:0,class: ` size - 3 text - fg - subtle ` })):K( ` ` ,!0)],8,e $ ),e.kind=== ` text ` ?(B(),H(N(eT ),{key:0,"model-value":w(e.key),class: ` min - h - 20 text - [ 13 px ] ` ,onFocus:t=>v.value=e.key,"onUpdate:modelValue":t=>_(e.key,String(t))},null,8,[ ` model - value ` , ` onFocus ` , ` onUpdate : modelValue ` ])):e.kind=== ` lines ` ?(B(),H(N(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=>_(e.key,String(t).split( `
` ).filter(Boolean))},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):(B(),V(z,{key:2},[W(N(Qw),{"model-value":S(s.value[e.key]),class: ` min - h - 24 font - mono text - xs ` ,placeholder: ` YAML ` ,onChange:t=>x(e.key,t.target.value)},null,8,[ ` model - value ` , ` onChange ` ]),b.value[e.key]?(B(),V( ` span ` ,e $ ,j(b.value[e.key]),1)):K( ` ` ,!0)],64))]))),128)),U( ` section ` ,t $ ,[t[21]||=U( ` div ` ,{class: ` text - xs font - medium text - muted - foreground ` }, ` Flow ` ,-1),U( ` div ` ,n $ ,[U( ` label ` ,r $ ,[t[16]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Run only when ` ,-1),U( ` 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,i $ )]),U( ` label ` ,a $ ,[t[18]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` If it fails ` ,-1),U( ` 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[17]||=[U( ` option ` ,{value: ` ` }, ` Park the task ` ,-1),U( ` option ` ,{value: ` continue ` }, ` Continue ` ,-1)]],40,o $ )]),U( ` label ` ,s $ ,[t[19]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Attempts ` ,-1),U( ` 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=>g({attempts:e.target.value=== ` ` ?void 0:Number(e.target.value)})},null,40,c $ )]),U( ` label ` ,l $ ,[t[20]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Retry backoff ` ,-1),W(N(LD),{"model-value":i.value.retry?.backoff?? ` ` ,units:[ ` s ` , ` m ` , ` h ` ],"onUpdate:modelValue":t[10]||=e=>g({backoff:e||void 0})},null,8,[ ` model - value ` ])])])])]),U( ` footer ` ,u $ ,[W(N(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` sm ` ,class: ` text - danger ` ,onClick:t[11]||=e=>r( ` remove ` )},{default:P(()=>[W(N(Ld)),t[22]||=G( ` Delete step ` ,-1)]),_:1}),W(N(Q),{type: ` button ` ,size: ` sm ` ,class: ` ml - auto ` ,onClick:t[12]||=e=>r( ` close ` )},{default:P(()=>[...t[23]||=[G( ` Done ` ,-1)]]),_:1})])]))}}),f $ = ` repository _path ` ;function p $ (e,t,n){let r=[];for(let[n,i]of e){let e=t[n];e?.from=== ` path ` &&e.path.trim()&&r.push({name:n,path:e.path.trim(),type:i.type?? ` string ` ,required:i.required===!0})}return n.trim()&&r.push({name:f $ ,path:n.trim(),type: ` string ` ,required:!0}),r}function m $ (e){return Array.isArray(e)? ` array ` :e===null? ` null ` :typeof e== ` boolean ` ? ` bool ` :typeof e== ` object ` ? ` object ` :typeof e}function h $ (e,t,n){let r=[];for(let[i,a]of e){let e=t[i],o=a.type?? ` string ` ;if(!(e&&(e.from=== ` path ` ?e.path.trim():e.value!== ` ` ))){a.required&&r.push( ` $ { i } is required ` );continue}if(e.from=== ` path ` ){let e=n?.failures?.find(e=>e.field_name===i);e&&r.push( ` $ { i } : $ { e . reason } ` );continue}let s=m $ (tN(e.value,o));o!== ` any ` &&s!==o&&r.push( ` $ { i } is $ { o } , but $ { JSON . stringify ( e . value ) } is not ` )}return n?.failures?.some(e=>e.field_name=== ` repository _path ` )&&r.push( ` the repository path does not resolve ` ),r}function g $ (e,t){let n={};for(let[r,i]of e){let e=t[r];e?.from=== ` path ` &&e.path.trim()?n[r]={param:r}:e?.from=== ` value ` &&e.value!== ` ` &&(n[r]={value:tN(e.value,i.type?? ` string ` )})}return n}function _ $ (e,t){let n=e=>t.find(t=>t.name===e)?.path?? ` ` ,r={};for(let[t,i]of Object.entries(e.inputs??{}))r[t]=i.param?{from: ` path ` ,path:n(i.param),value: ` ` }:{from: ` value ` ,path: ` ` ,value:typeof i.value== ` string ` ?i.value:JSON.stringify(i.value)};return{rows:r,repositoryPath:n(e.repo_param)}}function v $ (e,t= ` ` ){return Array.isArray(e)?e.slice(0,3).flatMap((e,n)=>{let r= ` $ { t } [ $ { n } ] ` ;return[r,...v $ (e,r)]}):e&&typeof e== ` object ` ?Object.entries(e).flatMap(([e,n])=>{let r=t? ` $ { t } . $ { e } ` :e;return[r,...v $ (n,r)]}):[]}function y $ (e){try{return e?.body?JSON.parse(e.body):null}catch{return null}}function b $ (e){try{let t=JSON.parse(e.headers?? ` { } ` );return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,Array.isArray(t)?t.join( ` , ` ):String(t)]))}catch{return{}}}function x $ (e){let t=typeof e== ` string ` ?e:JSON.stringify(e);return t.length>80? ` $ { t . slice ( 0 , 80 ) } … ` :t}var S $ ={class: ` flex h - full flex - col ` },C $ ={class: ` flex items - center gap - 2 border - b border - border px - 4 py - 3 ` },w $ ={class: ` min - w - 0 flex - 1 truncate text - sm font - medium ` },T $ ={key:0,class: ` flex flex - 1 items - center justify - center ` },E $ ={class: ` space - y - 1.5 ` },D $ =[ ` disabled ` ],O $ =[ ` value ` ],k $ ={key:1,class: ` space - y - 1.5 ` },A $ =[ ` value ` ],j $ =[ ` title ` ],M $ ={class: ` space - y - 1.5 ` },N $ ={id: ` bind - paths ` },P $ =[ ` value ` ],F $ ={class: ` divide - y divide - border rounded - md border border - border ` },I $ ={class: ` flex items - center gap - 1.5 text - xs ` },L $ ={class: ` font - mono ` },R $ ={class: ` text - fg - subtle ` },z $ ={key:0,class: ` text - danger ` ,title: ` Required ` },B $ =[ ` title ` , ` aria - label ` , ` onClick ` ],V $ =[ ` onUpdate : modelValue ` , ` aria - label ` ],H $ =[ ` onUpdate : modelValue ` , ` aria - label ` ],U $ ={key:2,class: ` text - xs text - danger ` },W $ =[ ` title ` ],G $ ={key:0,class: ` space - y - 1 px - 3 py - 2 ` },K $ ={key:0,class: ` text - xs text - danger ` },q $ ={key:1,class: ` truncate font - mono text - xs text - success ` },J $ ={key:1,class: ` px - 3 py - 2 text - xs text - fg - subtle ` },Y $ ={class: ` space - y - 2 ` },X $ ={key:0,role: ` alert ` ,class: ` text - xs text - danger ` },Z $ ={key:1,class: ` tex Line truncated
` ).filter(Boolean))},null,8,[ ` model - value ` , ` onUpdate : modelValue ` ])):(B(),V(z,{key:2},[W(N(eT),{"model-value":S(s.value[e.key]),class: ` min - h - 24 font - mono text - xs ` ,placeholder: ` YAML ` ,onChange:t=>x(e.key,t.target.value)},null,8,[ ` model - value ` , ` onChange ` ]),b.value[e.key]?(B(),V( ` span ` ,t $ ,j(b.value[e.key]),1)):K( ` ` ,!0)],64))]))),128)),U( ` section ` ,n $ ,[t[21]||=U( ` div ` ,{class: ` text - xs font - medium text - muted - foreground ` }, ` Flow ` ,-1),U( ` div ` ,r $ ,[U( ` label ` ,i $ ,[t[16]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Run only when ` ,-1),U( ` 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,a $ )]),U( ` label ` ,o $ ,[t[18]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` If it fails ` ,-1),U( ` 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[17]||=[U( ` option ` ,{value: ` ` }, ` Park the task ` ,-1),U( ` option ` ,{value: ` continue ` }, ` Continue ` ,-1)]],40,s $ )]),U( ` label ` ,c $ ,[t[19]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Attempts ` ,-1),U( ` 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=>g({attempts:e.target.value=== ` ` ?void 0:Number(e.target.value)})},null,40,l $ )]),U( ` label ` ,u $ ,[t[20]||=U( ` span ` ,{class: ` flex - 1 text - [ 13 px ] ` }, ` Retry backoff ` ,-1),W(N(LD),{"model-value":i.value.retry?.backoff?? ` ` ,units:[ ` s ` , ` m ` , ` h ` ],"onUpdate:modelValue":t[10]||=e=>g({backoff:e||void 0})},null,8,[ ` model - value ` ])])])])]),U( ` footer ` ,d $ ,[W(N(Q),{type: ` button ` ,variant: ` ghost ` ,size: ` sm ` ,class: ` text - danger ` ,onClick:t[11]||=e=>r( ` remove ` )},{default:P(()=>[W(N(Rd)),t[22]||=G( ` Delete step ` ,-1)]),_:1}),W(N(Q),{type: ` button ` ,size: ` sm ` ,class: ` ml - auto ` ,onClick:t[12]||=e=>r( ` close ` )},{default:P(()=>[...t[23]||=[G( ` Done ` ,-1)]]),_:1})])]))}}),p $ = ` repository _path ` ;function m $ (e,t,n){let r=[];for(let[n,i]of e){let e=t[n];e?.from=== ` path ` &&e.path.trim()&&r.push({name:n,path:e.path.trim(),type:i.type?? ` string ` ,required:i.required===!0})}return n.trim()&&r.push({name:p $ ,path:n.trim(),type: ` string ` ,required:!0}),r}function h $ (e){return Array.isArray(e)? ` array ` :e===null? ` null ` :typeof e== ` boolean ` ? ` bool ` :typeof e== ` object ` ? ` object ` :typeof e}function g $ (e,t,n){let r=[];for(let[i,a]of e){let e=t[i],o=a.type?? ` string ` ;if(!(e&&(e.from=== ` path ` ?e.path.trim():e.value!== ` ` ))){a.required&&r.push( ` $ { i } is required ` );continue}if(e.from=== ` path ` ){let e=n?.failures?.find(e=>e.field_name===i);e&&r.push( ` $ { i } : $ { e . reason } ` );continue}let s=h $ (eN(e.value,o));o!== ` any ` &&s!==o&&r.push( ` $ { i } is $ { o } , but $ { JSON . stringify ( e . value ) } is not ` )}return n?.failures?.some(e=>e.field_name=== ` repository _path ` )&&r.push( ` the repository path does not resolve ` ),r}function _ $ (e,t){let n={};for(let[r,i]of e){let e=t[r];e?.from=== ` path ` &&e.path.trim()?n[r]={param:r}:e?.from=== ` value ` &&e.value!== ` ` &&(n[r]={value:eN(e.value,i.type?? ` string ` )})}return n}function v $ (e,t){let n=e=>t.find(t=>t.name===e)?.path?? ` ` ,r={};for(let[t,i]of Object.entries(e.inputs??{}))r[t]=i.param?{from: ` path ` ,path:n(i.param),value: ` ` }:{from: ` value ` ,path: ` ` ,value:typeof i.value== ` string ` ?i.value:JSON.stringify(i.value)};return{rows:r,repositoryPath:n(e.repo_param)}}function y $ (e,t= ` ` ){return Array.isArray(e)?e.slice(0,3).flatMap((e,n)=>{let r= ` $ { t } [ $ { n } ] ` ;return[r,...y $ (e,r)]}):e&&typeof e== ` object ` ?Object.entries(e).flatMap(([e,n])=>{let r=t? ` $ { t } . $ { e } ` :e;return[r,...y $ (n,r)]}):[]}function b $ (e){try{return e?.body?JSON.parse(e.body):null}catch{return null}}function x $ (e){try{let t=JSON.parse(e.headers?? ` { } ` );return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,Array.isArray(t)?t.join( ` , ` ):String(t)]))}catch{return{}}}function S $ (e){let t=typeof e== ` string ` ?e:JSON.stringify(e);return t.length>80? ` $ { t . slice ( 0 , 80 ) } … ` :t}var C $ ={class: ` flex h - full flex - col ` },w $ ={class: ` flex items - center gap - 2 border - b border - border px - 4 py - 3 ` },T $ ={class: ` min - w - 0 flex - 1 truncate text - sm font - medium ` },E $ ={key:0,class: ` flex flex - 1 items - center justify - center ` },D $ ={class: ` space - y - 1.5 ` },O $ =[ ` disabled ` ],k $ =[ ` value ` ],A $ ={key:1,class: ` space - y - 1.5 ` },j $ =[ ` value ` ],M $ =[ ` title ` ],N $ ={class: ` space - y - 1.5 ` },P $ ={id: ` bind - paths ` },F $ =[ ` value ` ],I $ ={class: ` divide - y divide - border rounded - md border border - border ` },L $ ={class: ` flex items - center gap - 1.5 text - xs ` },R $ ={class: ` font - mono ` },z $ ={class: ` text - fg - subtle ` },B $ ={key:0,class: ` text - danger ` ,title: ` Required ` },V $ =[ ` title ` , ` aria - label ` , ` onClick ` ],H $ =[ ` onUpdate : modelValue ` , ` aria - label ` ],U $ =[ ` onUpdate : modelValue ` , ` aria - label ` ],W $ ={key:2,class: ` text - xs text - danger ` },G $ =[ ` title ` ],K $ ={key:0,class: ` space - y - 1 px - 3 py - 2 ` },q $ ={key:0,class: ` text - xs text - danger ` },J $ ={key:1,class: ` truncate font - mono text - xs text - success ` },Y $ ={key:1,class: ` px - 3 py - 2 text - xs text - fg - subtle ` },X $ ={class: ` space - y - 2 ` },Z $ ={key:0,role: ` alert ` ,class: ` text - xs text - danger ` },Q $ ={key:1,class: ` tex 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 Une(e,t){return n=>{if(!n.code&&!n.key)return!1;let r=Wne(n.code,e);return Array.isArray(e)?e.some(e=>F5(n[r],e,t,n.type=== ` keyup ` )):F5(n[r],e,t,n.type=== ` keyup ` )}}function Wne(e,t){return t.includes(e)? ` code ` : ` key ` }function I5(e,t){let n=J(()=>pn(t?.target)??Vne),r=ln(pn(e)===!0),i=!1,a=new Set,o=c(pn(e));F(()=>pn(e),(e,t)=>{typeof t== ` boolean ` &&typeof e!= ` boolean ` &&s(),o=c(e)},{immediate:!0}),R0([ ` blur ` , ` contextmenu ` ],s),B0((...e)=>o(...e),e=>{let n=pn(t?.actInsideInputWithModifier)??!0,a=pn(t?.preventDefault)??!1;if(i=Hne(e),(!i||i&&!n)&&P5(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}),B0((...e)=>o(...e),e=>{let n=pn(t?.actInsideInputWithModifier)??!0;if(r.value){if((!i||i&&!n)&&P5(e))return;i=!1,r.value=!1}},{eventName: ` keyup ` ,target:n});function s(){i=!1,a.clear(),r.value=pn(e)===!0}function c(e){return e===null?(s(),()=>!1):typeof e== ` boolean ` ?(s(),r.value=e,()=>!1):Array.isArray(e)||typeof e== ` string ` ?Une(e,a):e}return r}var L5= ` vue - flow _ _node - desc ` ,R5= ` vue - flow _ _edge - desc ` ,Gne= ` vue - flow _ _aria - live ` ,z5=[ ` Enter ` , ` ` , ` Escape ` ],B5={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function V5(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function H5(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 U5(e){return{width:e.offsetWidth,height:e.offsetHeight}}function W5(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function G5(e,t){return{x:W5(e.x,t[0][0],t[1][0]),y:W5(e.y,t[0][1],t[1][1])}}function K5(e){let t=e.getRootNode();return ` elementFromPoint ` in t?t:window.document}function q5(e){return e&&typeof e== ` object ` && ` id ` in e&& ` source ` in e&& ` target ` in e}function J5(e){return e&&typeof e== ` object ` && ` id ` in e&& ` position ` in e&&!q5(e)}function Y5(e){return J5(e)&& ` computedPosition ` in e}function X5(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Kne(e){return X5(e.width)&&X5(e.height)&&X5(e.x)&&X5(e.y)}function qne(e,t,n){let r={id:e.id.toString(),type:e.type?? ` default ` ,dimensions:an({width:0,height:0}),computedPosition:an({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:W7(e.data)?e.data:{},events:an(W7(e.events)?e.events:{})};return Object.assign(t??r,e,{id:e.id.toString(),parentNode:n})}function Z5(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:W7(e.data)?e.data:{},events:an(W7(e.events)?e.events:{}),label:e.label?? ` ` ,interactionWidth:e.interactionWidth??n?.interactionWidth,...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function Q5(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 Jne(...e){if(e.length===3){let[t,n,r]=e;return Q5(t,n,r, ` target ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>q5(e)&&e.source===r).map(e=>n.find(t=>J5(t)&&t.id===e.target))}function Yne(...e){if(e.length===3){let[t,n,r]=e;return Q5(t,n,r, ` source ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>q5(e)&&e.target===r).map(e=>n.find(t=>J5(t)&&t.id===e.source))}function $ 5({source:e,sourceHandle:t,target:n,targetHandle:r}){return ` vueflow _ _edge - $ { e } $ { t ? ? ` ` } - $ { n } $ { r ? ? ` ` } ` }function Xne(e,t){return t.some(t=>q5(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 e7({x:e,y:t},{x:n,y:r,zoom:i}){return{x:e*i+n,y:t*i+r}}function t7({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?P7(s,o):s}function Zne(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 n7({x:e,y:t,width:n,height:r}){return{x:e,y:t,x2:e+n,y2:t+r}}function Qne({x:e,y:t,x2:n,y2:r}){return{x:e,y:t,width:n-e,height:r-t}}function r7(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=Zne(t,n7({...r.computedPosition,...r.dimensions}))}return Qne(t)}function i7(e,t,n={x:0,y:0,zoom:1},r=!1,i=!1){let a={...t7(t,n),width:t.width/n.zoom,height:t.height/n.zoom},o=[];for(let t of e){let{dimensions:e,selectabl
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 Gne(e,t){return n=>{if(!n.code&&!n.key)return!1;let r=Kne(n.code,e);return Array.isArray(e)?e.some(e=>F5(n[r],e,t,n.type=== ` keyup ` )):F5(n[r],e,t,n.type=== ` keyup ` )}}function Kne(e,t){return t.includes(e)? ` code ` : ` key ` }function I5(e,t){let n=J(()=>pn(t?.target)??Une),r=ln(pn(e)===!0),i=!1,a=new Set,o=c(pn(e));F(()=>pn(e),(e,t)=>{typeof t== ` boolean ` &&typeof e!= ` boolean ` &&s(),o=c(e)},{immediate:!0}),z0([ ` blur ` , ` contextmenu ` ],s),V0((...e)=>o(...e),e=>{let n=pn(t?.actInsideInputWithModifier)??!0,a=pn(t?.preventDefault)??!1;if(i=Wne(e),(!i||i&&!n)&&P5(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}),V0((...e)=>o(...e),e=>{let n=pn(t?.actInsideInputWithModifier)??!0;if(r.value){if((!i||i&&!n)&&P5(e))return;i=!1,r.value=!1}},{eventName: ` keyup ` ,target:n});function s(){i=!1,a.clear(),r.value=pn(e)===!0}function c(e){return e===null?(s(),()=>!1):typeof e== ` boolean ` ?(s(),r.value=e,()=>!1):Array.isArray(e)||typeof e== ` string ` ?Gne(e,a):e}return r}var L5= ` vue - flow _ _node - desc ` ,R5= ` vue - flow _ _edge - desc ` ,qne= ` vue - flow _ _aria - live ` ,z5=[ ` Enter ` , ` ` , ` Escape ` ],B5={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function V5(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function H5(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 U5(e){return{width:e.offsetWidth,height:e.offsetHeight}}function W5(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function G5(e,t){return{x:W5(e.x,t[0][0],t[1][0]),y:W5(e.y,t[0][1],t[1][1])}}function K5(e){let t=e.getRootNode();return ` elementFromPoint ` in t?t:window.document}function q5(e){return e&&typeof e== ` object ` && ` id ` in e&& ` source ` in e&& ` target ` in e}function J5(e){return e&&typeof e== ` object ` && ` id ` in e&& ` position ` in e&&!q5(e)}function Y5(e){return J5(e)&& ` computedPosition ` in e}function X5(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Jne(e){return X5(e.width)&&X5(e.height)&&X5(e.x)&&X5(e.y)}function Yne(e,t,n){let r={id:e.id.toString(),type:e.type?? ` default ` ,dimensions:an({width:0,height:0}),computedPosition:an({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:W7(e.data)?e.data:{},events:an(W7(e.events)?e.events:{})};return Object.assign(t??r,e,{id:e.id.toString(),parentNode:n})}function Z5(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:W7(e.data)?e.data:{},events:an(W7(e.events)?e.events:{}),label:e.label?? ` ` ,interactionWidth:e.interactionWidth??n?.interactionWidth,...n??{}};return Object.assign(t??r,e,{id:e.id.toString()})}function Q5(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 Xne(...e){if(e.length===3){let[t,n,r]=e;return Q5(t,n,r, ` target ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>q5(e)&&e.source===r).map(e=>n.find(t=>J5(t)&&t.id===e.target))}function Zne(...e){if(e.length===3){let[t,n,r]=e;return Q5(t,n,r, ` source ` )}let[t,n]=e,r=typeof t== ` string ` ?t:t.id;return n.filter(e=>q5(e)&&e.target===r).map(e=>n.find(t=>J5(t)&&t.id===e.source))}function $ 5({source:e,sourceHandle:t,target:n,targetHandle:r}){return ` vueflow _ _edge - $ { e } $ { t ? ? ` ` } - $ { n } $ { r ? ? ` ` } ` }function Qne(e,t){return t.some(t=>q5(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 e7({x:e,y:t},{x:n,y:r,zoom:i}){return{x:e*i+n,y:t*i+r}}function t7({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?P7(s,o):s}function $ ne(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 n7({x:e,y:t,width:n,height:r}){return{x:e,y:t,x2:e+n,y2:t+r}}function ere({x:e,y:t,x2:n,y2:r}){return{x:e,y:t,width:n-e,height:r-t}}function r7(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= $ ne(t,n7({...r.computedPosition,...r.dimensions}))}return ere(t)}function i7(e,t,n={x:0,y:0,zoom:1},r=!1,i=!1){let a={...t7(t,n),width:t.width/n.zoom,height:t.height/n.zoom},o=[];for(let t of e){let{dimensions:e,selectabl
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 }
@@ -153,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 ` },A7=class extends Error{constructor(e,...t){super(k7[e]?.call(k7,...t)),this.name= ` VueFlowError ` ,this.code=e,this.args=t}};function j7(e){return ` clientX ` in e}function cre(e){return ` sourceEvent ` in e}function M7(e,t){let n=j7(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 N7=()=>typeof navigator< ` u ` &&(navigator==null?void 0:navigator.userAgent)?.indexOf( ` Mac ` )>=0;function lre(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function P7(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var ure=()=>!0;function F7(e){e?.classList.remove( ` valid ` , ` connecting ` , ` vue - flow _ _handle - valid ` , ` vue - flow _ _handle - connecting ` )}function dre(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())H5(i,V5(e))>0&&r.push(e);return r}var fre=250;function pre(e,t,n,r){let i=[],a=1/0,o=dre(e,n,t+fre);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}=E7(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 I7(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=ure},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:_}=M7(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=L7(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===A5.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=R7(t,e,a,p,n,!0)}return b}function L7(e,t){return e||(t?.classList.contains( ` target ` )? ` target ` :t?.classList.contains( ` source ` )? ` source ` :null)}function mre(e,t){let n=null;return t?n= ` valid ` :e&&!t&&(n= ` invalid ` ),n}function hre(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function R7(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===A5.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,...E7(o,c,c.position,!0)}:c}var z7={[D5.Left]:D5.Right,[D5.Right]:D5.Left,[D5.Top]:D5.Bottom,[D5.Bottom]:D5.Top},gre=[ ` production ` , ` prod ` ];function B7(e,...t){V7()&&console.warn( ` [ Vue Flow ] : $ { e } ` ,...t)}function V7(){return!gre.includes( ` production ` )}function H7(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,...U5(t)}}):null}function U7(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),qn(()=>{o.blur()})):n([e])}function W7(e){return N(e)!==void 0}function _re(e,t,n,r){if(!e||!e.source||!e.target)return n(new A7(O7.EDGE_INVALID,e?.id?? ` [ ID UNKNOWN ] ` )),!1;let i;return i=q5(e)?e:{...e,id: $ 5(e)},i=Z5(i,void 0,r),!Xne(i,t)&&i}function vre(e,t,n,r,i){if(!t.source||!t.target)return i(new A7(O7.EDGE_INVALID,e.id)),!1;if(!n)return i(new A7(O7.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r? $ 5(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function G7(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!J5(o)){n(new A7(O7.NODE_INVALID,o?.id));continue}let s=qne(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 A7(O7.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 K7(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 q7(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 } ` ;K7( ` sourc 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 ` },A7=class extends Error{constructor(e,...t){super(k7[e]?.call(k7,...t)),this.name= ` VueFlowError ` ,this.code=e,this.args=t}};function j7(e){return ` clientX ` in e}function ure(e){return ` sourceEvent ` in e}function M7(e,t){let n=j7(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 N7=()=>typeof navigator< ` u ` &&(navigator==null?void 0:navigator.userAgent)?.indexOf( ` Mac ` )>=0;function dre(e){return{width:e.dimensions?.width??e.width??0,height:e.dimensions?.height??e.height??0}}function P7(e,t=[1,1]){return{x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}}var fre=()=>!0;function F7(e){e?.classList.remove( ` valid ` , ` connecting ` , ` vue - flow _ _handle - valid ` , ` vue - flow _ _handle - connecting ` )}function pre(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())H5(i,V5(e))>0&&r.push(e);return r}var mre=250;function hre(e,t,n,r){let i=[],a=1/0,o=pre(e,n,t+mre);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}=E7(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 I7(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=fre},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:_}=M7(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=L7(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===A5.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=R7(t,e,a,p,n,!0)}return b}function L7(e,t){return e||(t?.classList.contains( ` target ` )? ` target ` :t?.classList.contains( ` source ` )? ` source ` :null)}function gre(e,t){let n=null;return t?n= ` valid ` :e&&!t&&(n= ` invalid ` ),n}function _re(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}function R7(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===A5.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,...E7(o,c,c.position,!0)}:c}var z7={[D5.Left]:D5.Right,[D5.Right]:D5.Left,[D5.Top]:D5.Bottom,[D5.Bottom]:D5.Top},vre=[ ` production ` , ` prod ` ];function B7(e,...t){V7()&&console.warn( ` [ Vue Flow ] : $ { e } ` ,...t)}function V7(){return!vre.includes( ` production ` )}function H7(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,...U5(t)}}):null}function U7(e,t,n,r,i,a=!1,o){i.value=!1,e.selected?(a||e.selected&&t)&&(r([e]),qn(()=>{o.blur()})):n([e])}function W7(e){return N(e)!==void 0}function yre(e,t,n,r){if(!e||!e.source||!e.target)return n(new A7(O7.EDGE_INVALID,e?.id?? ` [ ID UNKNOWN ] ` )),!1;let i;return i=q5(e)?e:{...e,id: $ 5(e)},i=Z5(i,void 0,r),!Qne(i,t)&&i}function bre(e,t,n,r,i){if(!t.source||!t.target)return i(new A7(O7.EDGE_INVALID,e.id)),!1;if(!n)return i(new A7(O7.EDGE_NOT_FOUND,e.id)),!1;let{id:a,...o}=e;return{...o,id:r? $ 5(t):a,source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle}}function G7(e,t,n){let r={},i=[];for(let a=0;a<e.length;++a){let o=e[a];if(!J5(o)){n(new A7(O7.NODE_INVALID,o?.id));continue}let s=Yne(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 A7(O7.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 K7(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 q7(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 } ` ;K7( ` sourc Line truncated