2025-05-05 17:07:14 -07:00
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2025-06-06 13:32:09 -07:00
var LS = Object . defineProperty , US = Object . defineProperties ; var KS = Object . getOwnPropertyDescriptors ; var EC = Object . getOwnPropertySymbols ; var vD = Object . prototype . hasOwnProperty , FD = Object . prototype . propertyIsEnumerable ; var kD = ( t , e , A )=> e in t ? LS ( t , e ,{ enumerable :! 0 , configurable :! 0 , writable :! 0 , value : A }) : t [ e ] = A , v = ( t , e )=>{ for ( var A in e ||= {}) vD . call ( e , A ) && kD ( t , A , e [ A ]); if ( EC ) for ( var A of EC ( e )) FD . call ( e , A ) && kD ( t , A , e [ A ]); return t }, DA = ( t , e )=> US ( t , KS ( e )); var VE = ( t , e )=>{ var A = {}; for ( var i in t ) vD . call ( t , i ) && e . indexOf ( i ) < 0 && ( A [ i ] = t [ i ]); if ( t != null && EC ) for ( var i of EC ( t )) e . indexOf ( i ) < 0 && FD . call ( t , i ) && ( A [ i ] = t [ i ]); return A }; var gt = ( t , e , A )=> new Promise (( i , o )=>{ var n = s =>{ try { r ( A . next ( s ))} catch ( a ){ o ( a )}}, g = s =>{ try { r ( A . throw ( s ))} catch ( a ){ o ( a )}}, r = s => s . done ? i ( s . value ) : Promise . resolve ( s . value ). then ( n , g ); r (( A = A . apply ( t , e )). next ())}); function XE ( t , e ){ return Object . is ( t , e )} var je = null , lC =! 1 , $E = 1 , Nt = Symbol ( "SIGNAL" ); function XA ( t ){ let e = je ; return je = t , e } function Al (){ return je } var ir = { version : 0 , lastCleanEpoch : 0 , dirty :! 1 , producerNode : void 0 , producerLastReadVersion : void 0 , producerIndexOfThis : void 0 , nextProducerIndex : 0 , liveConsumerNode : void 0 , liveConsumerIndexOfThis : void 0 , consumerAllowSignalWrites :! 1 , consumerIsAlwaysLive :! 1 , kind : "unknown" , producerMustRecompute : ()=> ! 1 , producerRecomputeValue : ()=>{}, consumerMarkedDirty : ()=>{}, consumerOnSignalRead : ()=>{}}; function Ts ( t ){ if ( lC ) throw new Error ( "" ); if ( je === null ) return ; je . consumerOnSignalRead ( t ); let e = je . nextProducerIndex ++ ; if ( pC ( je ), e < je . producerNode . length && je . producerNode [ e ] !== t && Hs ( je )){ let A = je . producerNode [ e ]; mC ( A , je . producerIndexOfThis [ e ])} je . producerNode [ e ] !== t && ( je . producerNode [ e ] = t , je . producerIndexOfThis [ e ] = Hs ( je ) ? ND ( t , je , e ) : 0 ), je . producerLastReadVersion [ e ] = t . version } function SD (){ $E ++ } function el ( t ){ if ( ! ( Hs ( t ) &&! t . dirty ) &&! ( ! t . dirty && t . lastCleanEpoch === $E )){ if ( ! t . producerMustRecompute ( t ) &&! uC ( t )){ jE ( t ); return } t . producerRecomputeValue ( t ), jE ( t )}} function tl ( t ){ if ( t . liveConsumerNode === void 0 ) return ; let e = lC ; lC =! 0 ; try { for ( let A of t . liveConsumerNode ) A . dirty || xS ( A )} finally { lC = e }} function il (){ return je ? . consumerAllowSignalWrites !==! 1 } function xS ( t ){ t . dirty =! 0 , tl ( t ), t . consumerMarkedDirty ? .( t )} function jE ( t ){ t . dirty =! 1 , t . lastCleanEpoch = $E } function Os ( t ){ return t && ( t . nextProducerIndex = 0 ), XA ( t )} function hC ( t , e ){ if ( XA ( e ), ! ( ! t || t . producerNode === void 0 || t . producerIndexOfThis === void 0 || t . producerLastReadVersion === void 0 )){ if ( Hs ( t )) for ( let A = t . nextProducerIndex ; A < t . producerNode . length ; A ++ ) mC ( t . producerNode [ A ], t . producerIndexOfThis [ A ]); for (; t . producerNode . length > t . nextProducerIndex ;) t . producerNode . pop (), t . producerLastReadVersion . pop (), t . producerIndexOfThis . pop ()}} function uC ( t ){ pC ( t ); for ( let e = 0 ; e < t . producerNode . length ; e ++ ){ let A = t . producerNode [ e ], i = t . producerLastReadVersion [ e ]; if ( i !== A . version || ( el ( A ), i !== A . version )) return ! 0 } return ! 1 } function Ps ( t ){ if ( pC ( t ), Hs ( t )) for ( let e = 0 ; e < t . producerNode . length ; e ++ ) mC ( t . producerNode [ e ], t . producerIndexOfThis [ e ]); t . producerNode . length = t . producerLastReadVersion . length = t . producerIndexOfThis . length = 0 , t . liveConsumerNode && ( t . liveConsumerNode . length = t . liveConsumerIndexOfThis . length = 0 )} function ND ( t , e , A ){ if ( GD ( t ), t . liveConsumerNode . length === 0 && _D ( t )) for ( let i = 0 ; i < t . producerNode . length ; i ++ ) t . producerIndexOfThis [ i ] = ND ( t . producerNode [ i ], t , i ); return t . liveConsumerIndexOfThis . push ( A ), t . liveConsumerNode . push ( e ) - 1 } function mC ( t , e ){ if ( GD ( t ), t . liveConsumerNode . length === 1 && _D ( t )) for ( let i = 0 ; i < t . producerNode . length ; i ++ ) mC ( t . producerNode [ i ], t . producerIndexOfThis [ i ]); let A = t . liveConsumerNode . length - 1 ; if ( t . liveConsumerNode [ e ] = t . liveConsumerNode [ A ], t . liveConsumerIndexOfThis [ e ] = t . liveConsumerIndexOfThis [ A ], t . liveConsumerNode . length -- , t . liveConsumerIndexOfThis . length -- , e < t . liveConsumerNode . length ){ let i = t . liveConsumerIndexOfThis [ e ], o = t . liveConsumerNode [ e ]; pC ( o ), o . producerIndexOfThis [ i ] = e }} function Hs ( t ){ return t . consumerIsAlwaysLive || ( t ? . liveConsumerNode ? . length ?? 0 ) > 0 } function pC ( t ){ t . producerNode ??= [], t . producerIndexOfThis ??= [], t . producerLastReadVersion ??= []} function GD ( t ){ t . liveConsumerNode ??= [], t . liveConsumerIndexOfThis ??= []} function _D ( t ){ return t . producerNode !== void 0 } function DC ( t , e ){ let A = Object
2025-05-05 17:07:14 -07:00
$ { A . map (( i , o )=> ` ${ o + 1 } ) ${ i . toString () } ` ). join ( `
2025-06-06 13:32:09 -07:00
` )} `:"",this.name="UnsubscriptionError",this.errors=A});function $n(t,e){if(t){let A=t.indexOf(e);0<=A&&t.splice(A,1)}}var FA=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(let n of A)n.remove(this);else A.remove(this);let{initialTeardown:i}=this;if(vA(i))try{i()}catch(n){e=n instanceof yC?n.errors:[n]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let n of o)try{KD(n)}catch(g){e=e??[],g instanceof yC?e=[...e,...g.errors]:e.push(g)}}if(e)throw new yC(e)}}add(e){var A;if(e&&e!==this)if(this.closed)KD(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(A=this._finalizers)!==null&&A!==void 0?A:[]).push(e)}}_hasParent(e){let{_parentage:A}=this;return A===e||Array.isArray(A)&&A.includes(e)}_addParent(e){let{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(e),A):A?[A,e]:e}_removeParent(e){let{_parentage:A}=this;A===e?this._parentage=null:Array.isArray(A)&&$n(A,e)}remove(e){let{_finalizers:A}=this;A&&$n(A,e),e instanceof t&&e._removeParent(this)}};FA.EMPTY=(()=>{let t=new FA;return t.closed=!0,t})();var al=FA.EMPTY;function MC(t){return t instanceof FA||t&&"closed"in t&&vA(t.remove)&&vA(t.add)&&vA(t.unsubscribe)}function KD(t){vA(t)?t():t.unsubscribe()}var _i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nr={setTimeout(t,e,...A){let{delegate:i}=nr;return i?.setTimeout?i.setTimeout(t,e,...A):setTimeout(t,e,...A)},clearTimeout(t){let{delegate:e}=nr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function bC(t){nr.setTimeout(()=>{let{onUnhandledError:e}=_i;if(e)e(t);else throw t})}function Vs(){}var xD=Il("C",void 0,void 0);function YD(t){return Il("E",void 0,t)}function JD(t){return Il("N",t,void 0)}function Il(t,e,A){return{kind:t,value:e,error:A}}var Ag=null;function gr(t){if(_i.useDeprecatedSynchronousErrorHandling){let e=!Ag;if(e&&(Ag={errorThrown:!1,error:null}),t(),e){let{errorThrown:A,error:i}=Ag;if(Ag=null,A)throw i}}else t()}function HD(t){_i.useDeprecatedSynchronousErrorHandling&&Ag&&(Ag.errorThrown=!0,Ag.error=t)}var Ko=class extends FA{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,MC(e)&&e.add(this)):this.destination=WS}static create(e,A,i){return new xo(e,A,i)}next(e){this.isStopped?Bl(JD(e),this):this._next(e)}error(e){this.isStopped?Bl(YD(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Bl(xD,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qS=Function.prototype.bind;function Cl(t,e){return qS.call(t,e)}var cl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:A}=this;if(A.next)try{A.next(e)}catch(i){RC(i)}}error(e){let{partialObserver:A}=this;if(A.error)try{A.error(e)}catch(i){RC(i)}else RC(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(A){RC(A)}}},xo=class extends Ko{constructor(e,A,i){super();let o;if(vA(e)||!e)o={next:e??void 0,error:A??void 0,complete:i??void 0};else{let n;this&&_i.useDeprecatedNextContext?(n=Object.create(e),n.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Cl(e.next,n),error:e.error&&Cl(e.error,n),complete:e.complete&&Cl(e.complete,n)}):o=e}this.destination=new cl(o)}};function RC(t){_i.useDeprecatedSynchronousErrorHandling?HD(t):bC(t)}function VS(t){throw t}function Bl(t,e){let{onStoppedNotification:A}=_i;A&&nr.setTimeout(()=>A(t,e))}var WS={closed:!0,next:Vs,error:VS,complete:Vs};var rr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ft(t){return t}function Ql(...t){return El(t)}function El(t){return t.length===0?ft:t.length===1?t[0]:function(A){return t.reduce((i,o)=
` ); return i >= 0 ? A . slice ( 0 , i ) : A } function Ul ( t , e ){ return t ? e ? ` ${ t } ${ e } ` : t : e || "" } var yN = me ({ __forward_ref__ : me }); function Ye ( t ){ return t . __forward_ref__ = Ye , t . toString = function (){ return Lt ( this ())}, t } function Ct ( t ){ return sw ( t ) ? t () : t } function sw ( t ){ return typeof t == "function" && t . hasOwnProperty ( yN ) && t . __forward_ref__ === Ye } function F ( t ){ return { token : t . token , providedIn : t . providedIn || null , factory : t . factory , value : void 0 }} function X ( t ){ return { providers : t . providers || [], imports : t . imports || []}} function LB ( t ){ return Bf ( t , Iw ) || Bf ( t , Cw )} function aw ( t ){ return LB ( t ) !== null } function Bf ( t , e ){ return t . hasOwnProperty ( e ) ? t [ e ] : null } function MN ( t ){ let e = t && ( t [ Iw ] || t [ Cw ]); return e || null } function cf ( t ){ return t && ( t . hasOwnProperty ( Qf ) || t . hasOwnProperty ( bN )) ? t [ Qf ] : null } var Iw = me ({ \u0275prov : me }), Qf = me ({ \u0275inj : me }), Cw = me ({ ngInjectableDef : me }), bN = me ({ ngInjectorDef : me }), R = class { _desc ; ngMetadataName = "InjectionToken" ; \u0275prov ; constructor ( e , A ){ this . _desc = e , this . \u0275prov = void 0 , typeof A == "number" ? this . __NG_ELEMENT_ID__ = A : A !== void 0 && ( this . \u0275prov = F ({ token : this , providedIn : A . providedIn || "root" , factory : A . factory }))} get multi (){ return this } toString (){ return `InjectionToken ${ this . _desc } ` }}; function Bw ( t ){ return t &&!! t . \u0275providers } var RN = me ({ \u0275cmp : me }), kN = me ({ \u0275dir : me }), vN = me ({ \u0275pipe : me }), FN = me ({ \u0275mod : me }), gB = me ({ \u0275fac : me }), oa = me ({ __NG_ELEMENT_ID__ : me }), Ef = me ({ __NG_ENV_ID__ : me }); function gg ( t ){ return typeof t == "string" ? t : t == null ? "" : String ( t )} function SN ( t ){ return typeof t == "function" ? t . name || t . toString () : typeof t == "object" && t != null && typeof t . type == "function" ? t . type . name || t . type . toString () : gg ( t )} function cw ( t , e ){ throw new P ( - 200 , t )} function qd ( t , e ){ throw new P ( - 201 , ! 1 )} var ee = function ( t ){ return t [ t . Default = 0 ] = "Default" , t [ t . Host = 1 ] = "Host" , t [ t . Self = 2 ] = "Self" , t [ t . SkipSelf = 4 ] = "SkipSelf" , t [ t . Optional = 8 ] = "Optional" , t }( ee || {}), Kl ; function Qw (){ return Kl } function _t ( t ){ let e = Kl ; return Kl = t , e } function Ew ( t , e , A ){ let i = LB ( t ); if ( i && i . providedIn == "root" ) return i . value === void 0 ? i . value = i . factory () : i . value ; if ( A & ee . Optional ) return null ; if ( e !== void 0 ) return e ; qd ( t , "Injector" )} var NN = {}, og = NN , xl = "__NG_DI_FLAG__" , rB = class { injector ; constructor ( e ){ this . injector = e } retrieve ( e , A ){ let i = A ; return this . injector . get ( e , i . optional ? wC : og , i )}}, sB = "ngTempTokenPath" , GN = "ngTokenPath" , _N = /\n/gm , LN = "\u0275" , lf = "__source" ; function UN ( t , e = ee . Default ){ if ( qs () === void 0 ) throw new P ( - 203 , ! 1 ); if ( qs () === null ) return Ew ( t , void 0 , e );{ let A = qs (), i ; return A instanceof rB ? i = A . injector : i = A , i . get ( t , e & ee . Optional ? null : void 0 , e )}} function eA ( t , e = ee . Default ){ return ( Qw () || UN )( Ct ( t ), e )} function C ( t , e = ee . Default ){ return eA ( t , UB ( e ))} function UB ( t ){ return typeof t > "u" || typeof t == "number" ? t : 0 | ( t . optional && 8 ) | ( t . host && 1 ) | ( t . self && 2 ) | ( t . skipSelf && 4 )} function Yl ( t ){ let e = []; for ( let A = 0 ; A < t . length ; A ++ ){ let i = Ct ( t [ A ]); if ( Array . isArray ( i )){ if ( i . length === 0 ) throw new P ( 900 , ! 1 ); let o , n = ee . Default ; for ( let g = 0 ; g < i . length ; g ++ ){ let r = i [ g ], s = KN ( r ); typeof s == "number" ? s ===- 1 ? o = r . token : n |= s : o = r } e . push ( eA ( o , n ))} else e . push ( eA ( i ))} return e } function lw ( t , e ){ return t [ xl ] = e , t . prototype [ xl ] = e , t } function KN ( t ){ return t [ xl ]} function xN ( t , e , A , i ){ let o = t [ sB ]; throw e [ lf ] && o . unshift ( e [ lf ]), t . message = YN ( `
` + t . message , o , A , i ), t [ GN ] = o , t [ sB ] = null , t } function YN ( t , e , A , i = null ){ t = t && t . charAt ( 0 ) === `
` && t . charAt ( 1 ) == LN ? t . slice ( 2 ) : t ; let o = Lt ( e ); if ( Array . isArray ( e )) o = e . map ( Lt ). join ( " -> " ); else if ( typeof e == "object" ){ let n = []; for ( let g in e ) if ( e . hasOwnProperty ( g )){ let r = e [ g ]; n . push ( g + ":" + ( typeof r == "string" ? JSON . stringify ( r ) : Lt ( r )))} o = `{ ${ n . join ( ", " ) } }` } return ` ${ A }${ i ? "(" + i + ")" : "" } [ ${ o } ]: ${ t . replace ( _N , `
` ) } ` } var ug = lw ( rw ( "Optional" ), 8 ); var Qa = lw ( rw ( "SkipSelf" ), 4 ); function rg ( t , e ){ let A = t . hasOwnProperty ( gB ); return A ? t [ gB ] : null } function JN ( t , e , A ){ if ( t . length !== e . length ) return ! 1 ; for ( let i = 0 ; i < t . length ; i ++ ){ let o = t [ i ], n = e [ i ]; if ( A && ( o = A ( o ), n = A ( n )), n !== o ) return ! 1 } return ! 0 } function HN ( t ){ return t . flat ( Number . POSITIVE_INFINITY )} function Vd ( t , e ){ t . forEach ( A => Array . isArray ( A ) ? Vd ( A , e ) : e ( A ))} function dw ( t , e , A ){ e >= t . length ? t . push ( A ) : t . splice ( e , 0 , A )} function aB ( t , e ){ return e >= t . length - 1 ? t . pop () : t . splice ( e , 1 )[ 0 ]} function TN ( t , e ){ let A = []; for ( let i = 0 ; i < t ; i ++ ) A . push ( e ); return A } function ON ( t , e , A , i ){ let o = t . length ; if ( o == e ) t . push ( A , i ); else if ( o === 1 ) t . push ( i , t [ 0 ]), t [ 0 ] = A ; else { for ( o -- , t . push ( t [ o - 1 ], t [ o ]); o > e ;){ let n = o - 2 ; t [ o ] = t [ n ], o -- } t [ e ] = A , t [ e + 1 ] = i }} function KB ( t , e , A ){ let i = Ea ( t , e ); return i >= 0 ? t [ i | 1 ] = A : ( i =~ i , ON ( t , i , e , A )), i } function fl ( t , e ){ let A = Ea ( t , e ); if ( A >= 0 ) return t [ A | 1 ]} function Ea ( t , e ){ return PN ( t , e , 1 )} function PN ( t , e , A ){ let i = 0 , o = t . length >> A ; for (; o !== i ;){ let n = i + ( o - i >> 1 ), g = t [ n << A ]; if ( e === g ) return n << A ; g > e ? o = n : i = n + 1 } return ~ ( o << A )} var Io = {}, yt = [], Dr = new R ( "" ), hw = new R ( "" , - 1 ), uw = new R ( "" ), IB = class { get ( e , A = og ){ if ( A === og ){ let i = new Error ( `NullInjectorError: No provider for ${ Lt ( e ) } !` ); throw i . name = "NullInjectorError" , i } return A }}; function mw ( t , e ){ let A = t [ FN ] || null ; if ( ! A && e ===! 0 ) throw new Error ( `Type ${ Lt ( t ) } does not have '\u0275mod' property.` ); return A } function fn ( t ){ return t [ RN ] || null } function pw ( t ){ return t [ kN ] || null } function ZN ( t ){ return t [ vN ] || null } function la ( t ){ return { \u0275providers : t }} function qN (... t ){ return { \u0275providers : Dw ( ! 0 , t ), \u0275fromNgModule :! 0 }} function Dw ( t ,... e ){ let A = [], i = new Set , o , n = g =>{ A . push ( g )}; return Vd ( e , g =>{ let r = g ; Jl ( r , n ,[], i ) && ( o ||= [], o . push ( r ))}), o !== void 0 && fw ( o , n ), A } function fw ( t , e ){ for ( let A = 0 ; A < t . length ; A ++ ){ let { ngModule : i , providers : o } = t [ A ]; Wd ( o , n =>{ e ( n , i )})}} function Jl ( t , e , A , i ){ if ( t = Ct ( t ), ! t ) return ! 1 ; let o = null , n = cf ( t ), g =! n && fn ( t ); if ( ! n &&! g ){ let s = t . ngModule ; if ( n = cf ( s ), n ) o = s ; else return ! 1 } else { if ( g &&! g . standalone ) return ! 1 ; o = t } let r = i . has ( o ); if ( g ){ if ( r ) return ! 1 ; if ( i . add ( o ), g . dependencies ){ let s = typeof g . dependencies == "function" ? g . dependencies () : g . dependencies ; for ( let a of s ) Jl ( a , e , A , i )}} else if ( n ){ if ( n . imports != null &&! r ){ i . add ( o ); let a ; try { Vd ( n . imports , c =>{ Jl ( c , e , A , i ) && ( a ||= [], a . push ( c ))})} finally {} a !== void 0 && fw ( a , e )} if ( ! r ){ let a = rg ( o ) || (()=> new o ); e ({ provide : o , useFactory : a , deps : yt }, o ), e ({ provide : uw , useValue : o , multi :! 0 }, o ), e ({ provide : Dr , useValue : ()=> eA ( o ), multi :! 0 }, o )} let s = n . providers ; if ( s != null &&! r ){ let a = t ; Wd ( s , c =>{ e ( c , a )})}} else return ! 1 ; return o !== t && t . providers !== void 0 } function Wd ( t , e ){ for ( let A of t ) Bw ( A ) && ( A = A . \u0275providers ), Array . isArray ( A ) ? Wd ( A , e ) : e ( A )} var VN = me ({ provide : String , useValue : me }); function ww ( t ){ return t !== null && typeof t == "object" && VN in t } function WN ( t ){ return !! ( t && t . useExisting )} function zN ( t ){ return !! ( t && t . useFactory )} function fr ( t ){ return typeof t == "function" } function jN ( t ){ return !! t . useClass } var xB = new R ( "" ), eB = {}, df = {}, wl ; function YB (){ return wl === void 0 && ( wl = new IB ), wl } var Ze = class {}, ga = class extends Ze { parent ; source ; scopes ; records = new Map ; _ngOnDestroyHooks = new Set ; _onDestroyHooks = []; get destroyed (){ return this . _destroyed } _destroyed =! 1 ; injectorDefTypes ; constructor ( e , A , i , o ){ super (), this . parent = A , this . source = i , this . scopes = o , Tl ( e , g => this . processProvider ( g )), this . records . set ( hw , lr ( void 0 , this )), o . has ( "environment" ) && this . records . set ( Ze , lr ( void 0 , this )); let n = this . records . get ( xB ); n != null && typeof n . value == "string" && this . scopes . add ( n . value ), this . injectorDefTypes = new Set ( this . get ( uw , yt , ee . Self ))} retrieve ( e , A ){ let i = A ; return this . get ( e , i . optional ? wC : og , i )} destroy (){ ta ( this ), this . _destroyed =! 0 ; let e = XA ( null ); try { for ( let i of this . _ngOnDestroyHooks ) i . ngOnDestroy (); let A = this . _onDestroyHooks ; this . _onDestroyHooks = []; for ( let i of A ) i ()} finally { this . records . clear (), this . _ngOnDestroyHooks . clear (), this . injectorDefTypes . clear (), XA ( e )}} onDestroy ( e ){ return ta ( this ), this . _onDestroyHooks . push ( e ),()=> this . removeOnDestroy ( e )} runInContext ( e ){ ta ( this ); let A = Uo ( this ), i = _t ( void 0 ), o ; try { return e ()} finally { Uo ( A ), _t ( i )}} get ( e , A = og , i = ee . Default ){ if ( ta ( this ), e . hasOwnProperty ( Ef )) return e [ Ef ]( thi
`).forEach(A=>{let i=A.indexOf(":");if(i>0){let o=A.slice(0,i),n=A.slice(i+1).trim();this.addHeaderEntry(o,n)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((A,i)=>{this.addHeaderEntry(i,A)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([A,i])=>{this.setHeaderEntries(A,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let A=this.headers.get(e.toLowerCase());return A&&A.length>0?A[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,A){return this.clone({name:e,value:A,op:"a"})}set(e,A){return this.clone({name:e,value:A,op:"s"})}delete(e,A){return this.clone({name:e,value:A,op:"d"})}maybeSetNormalizedName(e,A){this.normalizedNames.has(A)||this.normalizedNames.set(A,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(A=>{this.headers.set(A,e.headers.get(A)),this.normalizedNames.set(A,e.normalizedNames.get(A))})}clone(e){let A=new t;return A.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,A.lazyUpdate=(this.lazyUpdate||[]).concat([e]),A}applyUpdate(e){let A=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,A);let o=(e.op==="a"?this.headers.get(A):void 0)||[];o.push(...i),this.headers.set(A,o);break;case"d":let n=e.value;if(!n)this.headers.delete(A),this.normalizedNames.delete(A);else{let g=this.headers.get(A);if(!g)return;g=g.filter(r=>n.indexOf(r)===-1),g.length===0?(this.headers.delete(A),this.normalizedNames.delete(A)):this.headers.set(A,g)}break}}addHeaderEntry(e,A){let i=e.toLowerCase();this.maybeSetNormalizedName(e,i),this.headers.has(i)?this.headers.get(i).push(A):this.headers.set(i,[A])}setHeaderEntries(e,A){let i=(Array.isArray(A)?A:[A]).map(n=>n.toString()),o=e.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(A=>e(this.normalizedNames.get(A),this.headers.get(A)))}};var wc=class{encodeKey(e){return RM(e)}encodeValue(e){return RM(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function jx(t,e){let A=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let n=o.indexOf("="),[g,r]=n==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,n)),e.decodeValue(o.slice(n+1))],s=A.get(g)||[];s.push(r),A.set(g,s)}),A}var Xx=/%(\d[a-f0-9])/gi,$x={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function RM(t){return encodeURIComponent(t).replace(Xx,(e,A)=>$x[A]??e)}function fc(t){return` $ { t } `}var en=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new wc,e.fromString){if(e.fromObject)throw new P(2805,!1);this.map=jx(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(A=>{let i=e.fromObject[A],o=Array.isArray(i)?i.map(fc):[fc(i)];this.map.set(A,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let A=this.map.get(e);return A?A[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,A){return this.clone({param:e,value:A,op:"a"})}appendAll(e){let A=[];return Object.keys(e).forEach(i=>{let o=e[i];Array.isArray(o)?o.forEach(n=>{A.push({param:i,value:n,op:"a"})}):A.push({param:i,value:o,op:"a"})}),this.clone(A)}set(e,A){return this.clone({param:e,value:A,op:"s"})}delete(e,A){return this.clone({param:e,value:A,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let A=this.encoder.encodeKey(e);return this.map.get(e).map(i=>A+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let A=new t({encoder:this.encoder});return A.clon
2025-05-05 17:07:14 -07:00
--mat-mdc-form-field-label-transform,
2025-06-06 13:32:09 -07:00
${ S2 } translateX( ${ w } )
)` ; let b = r + s + a + c ; this . _elementRef . nativeElement . style . setProperty ( "--mat-form-field-notch-max-width" , `calc(100% - ${ b } px)` )} _isAttachedToDom (){ let A = this . _elementRef . nativeElement ; if ( A . getRootNode ){ let i = A . getRootNode (); return i && i !== A } return document . documentElement . contains ( A )} static \u0275fac = function ( i ){ return new ( i || t )}; static \u0275cmp = H ({ type : t , selectors : [[ "mat-form-field" ]], contentQueries : function ( i , o , n ){ if ( i & 1 && ( Z0 ( n , o . _labelChild , ZQ , 5 ), qA ( n , vI , 5 ), qA ( n , b2 , 5 ), qA ( n , ck , 5 ), qA ( n , M2 , 5 ), qA ( n , gk , 5 )), i & 2 ){ q0 (); let g ; q ( g = V ()) && ( o . _formFieldControl = g . first ), q ( g = V ()) && ( o . _prefixChildren = g ), q ( g = V ()) && ( o . _suffixChildren = g ), q ( g = V ()) && ( o . _errorChildren = g ), q ( g = V ()) && ( o . _hintChildren = g )}}, viewQuery : function ( i , o ){ if ( i & 1 && ( IA ( t2 , 5 ), IA ( i2 , 5 ), IA ( o2 , 5 ), IA ( n2 , 5 ), IA ( g2 , 5 ), IA ( rk , 5 ), IA ( Ik , 5 ), IA ( ak , 5 )), i & 2 ){ let n ; q ( n = V ()) && ( o . _textField = n . first ), q ( n = V ()) && ( o . _iconPrefixContainer = n . first ), q ( n = V ()) && ( o . _textPrefixContainer = n . first ), q ( n = V ()) && ( o . _iconSuffixContainer = n . first ), q ( n = V ()) && ( o . _textSuffixContainer = n . first ), q ( n = V ()) && ( o . _floatingLabel = n . first ), q ( n = V ()) && ( o . _notchedOutline = n . first ), q ( n = V ()) && ( o . _lineRipple = n . first )}}, hostAttrs : [ 1 , "mat-mdc-form-field" ], hostVars : 42 , hostBindings : function ( i , o ){ i & 2 && iA ( "mat-mdc-form-field-label-always-float" , o . _shouldAlwaysFloat ())( "mat-mdc-form-field-has-icon-prefix" , o . _hasIconPrefix )( "mat-mdc-form-field-has-icon-suffix" , o . _hasIconSuffix )( "mat-form-field-invalid" , o . _control . errorState )( "mat-form-field-disabled" , o . _control . disabled )( "mat-form-field-autofilled" , o . _control . autofilled )( "mat-form-field-no-animations" , o . _animationMode === "NoopAnimations" )( "mat-form-field-appearance-fill" , o . appearance == "fill" )( "mat-form-field-appearance-outline" , o . appearance == "outline" )( "mat-form-field-hide-placeholder" , o . _hasFloatingLabel () &&! o . _shouldLabelFloat ())( "mat-focused" , o . _control . focused )( "mat-primary" , o . color !== "accent" && o . color !== "warn" )( "mat-accent" , o . color === "accent" )( "mat-warn" , o . color === "warn" )( "ng-untouched" , o . _shouldForward ( "untouched" ))( "ng-touched" , o . _shouldForward ( "touched" ))( "ng-pristine" , o . _shouldForward ( "pristine" ))( "ng-dirty" , o . _shouldForward ( "dirty" ))( "ng-valid" , o . _shouldForward ( "valid" ))( "ng-invalid" , o . _shouldForward ( "invalid" ))( "ng-pending" , o . _shouldForward ( "pending" ))}, inputs : { hideRequiredMarker : "hideRequiredMarker" , color : "color" , floatLabel : "floatLabel" , appearance : "appearance" , subscriptSizing : "subscriptSizing" , hintLabel : "hintLabel" }, exportAs : [ "matFormField" ], features : [ mA ([{ provide : FI , useExisting : t },{ provide : Ek , useExisting : t }])], ngContentSelectors : s2 , decls : 18 , vars : 21 , consts : [[ "labelTemplate" , "" ],[ "textField" , "" ],[ "iconPrefixContainer" , "" ],[ "textPrefixContainer" , "" ],[ "textSuffixContainer" , "" ],[ "iconSuffixContainer" , "" ],[ 1 , "mat-mdc-text-field-wrapper" , "mdc-text-field" , 3 , "click" ],[ 1 , "mat-mdc-form-field-focus-overlay" ],[ 1 , "mat-mdc-form-field-flex" ],[ "matFormFieldNotchedOutline" , "" , 3 , "matFormFieldNotchedOutlineOpen" ],[ 1 , "mat-mdc-form-field-icon-prefix" ],[ 1 , "mat-mdc-form-field-text-prefix" ],[ 1 , "mat-mdc-form-field-infix" ],[ 3 , "ngTemplateOutlet" ],[ 1 , "mat-mdc-form-field-text-suffix" ],[ 1 , "mat-mdc-form-field-icon-suffix" ],[ "matFormFieldLineRipple" , "" ],[ 1 , "mat-mdc-form-field-subscript-wrapper" , "mat-mdc-form-field-bottom-align" ],[ 1 , "mat-mdc-form-field-error-wrapper" ],[ 1 , "mat-mdc-form-field-hint-wrapper" ],[ "matFormFieldFloatingLabel" , "" , 3 , "floating" , "monitorResize" , "id" ],[ "aria-hidden" , "true" , 1 , "mat-mdc-form-field-required-marker" , "mdc-floating-label--required" ],[ 3 , "id" ],[ 1 , "mat-mdc-form-field-hint-spacer" ]], template : function ( i , o ){ if ( i & 1 ){ let n = sA (); _A ( r2 ), _ ( 0 , C2 , 1 , 1 , "ng-template" , null , 0 , ka ), d ( 2 , "div" , 6 , 1 ), S ( "click" , function ( r ){ return x ( n ), Y ( o . _control . onContainerClick ( r ))}), _ ( 4 , B2 , 1 , 0 , "div" , 7 ), d ( 5 , "div" , 8 ), _ ( 6 , E2 , 2 , 2 , "div" , 9 )( 7 , l2 , 3 , 0 , "div" , 10 )( 8 , d2 , 3 , 0 , "div" , 11 ), d ( 9 , "div" , 12 ), _ ( 10 , u2 , 1 , 1 , null , 13 ), rA ( 11 ), h (), _ ( 12 , m2 , 3 , 0 , "div" , 14 )( 13 , p2 , 3 , 0 , "div" , 15 ), h (), _ ( 14 , D2 , 1 , 0 , "div" , 16 ), h (), d ( 15 , "div" , 17 ), _ ( 16 , f2 , 2 , 1 , "div" , 18 )( 17 , y2 , 5 , 2 , "div" , 19 ), h ()} if ( i & 2 ){ let n ; u ( 2 ), iA ( "mdc-text-field--filled" , ! o . _hasOutline ())( "mdc-text-field--outlined" , o . _hasOutline ())( "mdc-text-field--no-label" , ! o . _hasFloatingLabel ())( "mdc-text-fie
`),u(),L(o.hasAction?2:-1))},dependencies:[at,hO,uO,mO],styles:[" . mat - mdc - simple - snack - bar { display : flex } "],encapsulation:2,changeDetection:0})}return t})(),DO={snackBarState:ko(" state ",[bi(" void , hidden ",Pe({transform:" scale ( 0.8 ) ",opacity:0})),bi(" visible ",Pe({transform:" scale ( 1 ) ",opacity:1})),zt(" * => visible ",di(" 150 ms cubic - bezier ( 0 , 0 , 0.2 , 1 ) ")),zt(" * => void , * => hidden ",di(" 75 ms cubic - bezier ( 0.4 , 0.0 , 1 , 1 ) ",Pe({opacity:0})))])},fO=(()=>{class t extends On{_ngZone=C(AA);_elementRef=C(j);_changeDetectorRef=C(pA);_platform=C(JA);snackBarConfig=C(ws);_document=C(lA);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new J;_onExit=new J;_onEnter=new J;_animationState=" void ";_live;_label;_role;_liveElementId=C(oe).getId(" mat - snack - bar - container - live - ");constructor(){super();let A=this.snackBarConfig;A.politeness===" assertive "&&!A.announcementMessage?this._live=" assertive ":A.politeness===" off "?this._live=" off ":this._live=" polite ",this._platform.FIREFOX&&(this._live===" polite "&&(this._role=" status "),this._live===" assertive "&&(this._role=" alert "))}attachComponentPortal(A){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(A);return this._afterPortalAttached(),i}attachTemplatePortal(A){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(A);return this._afterPortalAttached(),i}attachDomPortal=A=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(A);return this._afterPortalAttached(),i};onAnimationEnd(A){let{fromState:i,toState:o}=A;if((o===" void "&&i!==" void "||o===" hidden ")&&this._completeExit(),o===" visible "){let n=this._onEnter;this._ngZone.run(()=>{n.next(),n.complete()})}}enter(){this._destroyed||(this._animationState=" visible ",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState=" hidden ",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute(" mat - exit ",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let A=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(g=>A.classList.add(g)):A.classList.add(i)),this._exposeToModals();let o=this._label.nativeElement,n=" mdc - snackbar__label ";o.classList.toggle(n,!o.querySelector(`.${n}`))}_exposeToModals(){let A=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal=" true "]');for(let o=0;o<i.length;o++){let n=i[o],g=n.getAttribute(" aria - owns ");this._trackedModals.add(n),g?g.indexOf(A)===-1&&n.setAttribute(" aria - owns ",g+" "+A):n.setAttribute(" aria - owns ",A)}}_clearFromModals(){this._trackedModals.forEach(A=>{let i=A.getAttribute(" aria - owns ");if(i){let o=i.replace(this._liveElementId,"").trim();o.length>0?A.setAttribute(" aria - owns ",o):A.removeAttribute(" aria - owns ")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let A=this._elementRef.nativeElement.querySelector(" [ aria - hidden ] "),i=this._elementRef.nativeElement.querySelector(" [ aria - live ] ");if(A&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&A.contains(document.activeElement)&&(o=document.activeElement),A.removeAttribute(" aria - hidden "),i.appendChild(A),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=H({type:t,selectors:[[" mat - snack - bar - container "]],viewQuery:function(i,o){if(i&1&&(IA(Wt,7),IA(EO,7)),i&2){let n;q(n=V())&&(o._portalOutlet=n.first),q(n=V())&&(o._label=n.first)}},hostAttrs:[1," mdc - snackbar "," mat - mdc - snack - bar - container "],hostVars:1,hostBindings:function(i,o){i&1&&zh(" @ state . done ",function(g){return o.onAnim
`),!B)return null;Ne=Lo(B,!0)}return Ne.shift()})(),put_char(I,B){B===null||B===10?(p(tA(I.output)),I.output=[]):B!=0&&I.output.push(B)},fsync(I){I.output&&I.output.length>0&&(p(tA(I.output)),I.output=[])},ioctl_tcgets:I=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(I,B,l)=>0,ioctl_tiocgwinsz:I=>[24,80]},default_tty1_ops:{put_char(I,B){B===null||B===10?(e(tA(I.output)),I.output=[]):B!=0&&I.output.push(B)},fsync(I){I.output&&I.output.length>0&&(e(tA(I.output)),I.output=[])}}},to=(I,B)=>Math.ceil(I/B)*B,er=I=>{I=to(I,65536);var B=ze(65536,I);return B&&((l,m)=>{n.fill(0,l,l+m)})(B,I),B},PA={ops_table:null,mount:I=>PA.createNode(null," / ",16895,0),createNode(I,B,l,m){if(Q.isBlkdev(l)||Q.isFIFO(l))throw new Q.ErrnoError(63);PA.ops_table||={dir:{node:{getattr:PA.node_ops.getattr,setattr:PA.node_ops.setattr,lookup:PA.node_ops.lookup,mknod:PA.node_ops.mknod,rename:PA.node_ops.rename,unlink:PA.node_ops.unlink,rmdir:PA.node_ops.rmdir,readdir:PA.node_ops.readdir,symlink:PA.node_ops.symlink},stream:{llseek:PA.stream_ops.llseek}},file:{node:{getattr:PA.node_ops.getattr,setattr:PA.node_ops.setattr},stream:{llseek:PA.stream_ops.llseek,read:PA.stream_ops.read,write:PA.stream_ops.write,allocate:PA.stream_ops.allocate,mmap:PA.stream_ops.mmap,msync:PA.stream_ops.msync}},link:{node:{getattr:PA.node_ops.getattr,setattr:PA.node_ops.setattr,readlink:PA.node_ops.readlink},stream:{}},chrdev:{node:{getattr:PA.node_ops.getattr,setattr:PA.node_ops.setattr},stream:Q.chrdev_stream_ops}};var y=Q.createNode(I,B,l,m);return Q.isDir(y.mode)?(y.node_ops=PA.ops_table.dir.node,y.stream_ops=PA.ops_table.dir.stream,y.contents={}):Q.isFile(y.mode)?(y.node_ops=PA.ops_table.file.node,y.stream_ops=PA.ops_table.file.stream,y.usedBytes=0,y.contents=null):Q.isLink(y.mode)?(y.node_ops=PA.ops_table.link.node,y.stream_ops=PA.ops_table.link.stream):Q.isChrdev(y.mode)&&(y.node_ops=PA.ops_table.chrdev.node,y.stream_ops=PA.ops_table.chrdev.stream),y.timestamp=Date.now(),I&&(I.contents[B]=y,I.timestamp=y.timestamp),y},getFileDataAsTypedArray:I=>I.contents?I.contents.subarray?I.contents.subarray(0,I.usedBytes):new Uint8Array(I.contents):new Uint8Array(0),expandFileStorage(I,B){var l=I.contents?I.contents.length:0;if(!(l>=B)){B=Math.max(B,l*(l<1048576?2:1.125)>>>0),l!=0&&(B=Math.max(B,256));var m=I.contents;I.contents=new Uint8Array(B),I.usedBytes>0&&I.contents.set(m.subarray(0,I.usedBytes),0)}},resizeFileStorage(I,B){if(I.usedBytes!=B)if(B==0)I.contents=null,I.usedBytes=0;else{var l=I.contents;I.contents=new Uint8Array(B),l&&I.contents.set(l.subarray(0,Math.min(B,I.usedBytes))),I.usedBytes=B}},node_ops:{getattr(I){var B={};return B.dev=Q.isChrdev(I.mode)?I.id:1,B.ino=I.id,B.mode=I.mode,B.nlink=1,B.uid=0,B.gid=0,B.rdev=I.rdev,Q.isDir(I.mode)?B.size=4096:Q.isFile(I.mode)?B.size=I.usedBytes:Q.isLink(I.mode)?B.size=I.link.length:B.size=0,B.atime=new Date(I.timestamp),B.mtime=new Date(I.timestamp),B.ctime=new Date(I.timestamp),B.blksize=4096,B.blocks=Math.ceil(B.size/B.blksize),B},setattr(I,B){B.mode!==void 0&&(I.mode=B.mode),B.timestamp!==void 0&&(I.timestamp=B.timestamp),B.size!==void 0&&PA.resizeFileStorage(I,B.size)},lookup(I,B){throw Q.genericErrors[44]},mknod:(I,B,l,m)=>PA.createNode(I,B,l,m),rename(I,B,l){if(Q.isDir(I.mode)){var m;try{m=Q.lookupNode(B,l)}catch{}if(m)for(var y in m.contents)throw new Q.ErrnoError(55)}delete I.parent.contents[I.name],I.parent.timestamp=Date.now(),I.name=l,B.contents[l]=I,B.timestamp=I.parent.timestamp},unlink(I,B){delete I.contents[B],I.timestamp=Date.now()},rmdir(I,B){var l=Q.lookupNode(I,B);for(var m in l.contents)throw new Q.ErrnoError(55);delete I.contents[B],I.timestamp=Date.now()},readdir(I){var B=[" . "," .. "];for(var l of Object.keys(I.contents))B.push(l);return B},symlink(I,B,l){var m=PA.createNode(I,B,41471,0);return m.link=l,m},readlink(I){if(!Q.isLink(I.mode))throw new Q.ErrnoError(28);return I.link}},stream_ops:{read(I,B,l,m,y){var k=I.node.contents;if(y>=I.node.usedBytes)return 0;var N=Math.min(I.node.usedBytes-y,m);if(N>8&&k.s
2025-06-05 17:19:30 -07:00
<svg xmlns=" http : //www.w3.org/2000/svg" width="${E.width}" height="${E.height}"></svg>
2025-06-06 13:32:09 -07:00
`;return a.FS.createPath("/",a.PATH.dirname(D)),a.FS.writeFile(D,p),D}):[]}(t,i.images),typeof e=="string")o=function(a,c){let E;try{let D=a.lengthBytesUTF8(c);return E=a.ccall("malloc","number",["number"],[D+1]),a.stringToUTF8(c,E,D+1),a.ccall("viz_read_one_graph","number",["number"],[E])}finally{E&&a.ccall("free","number",["number"],[E])}}(t,e);else{if(typeof e!="object")throw new Error("input must be a string or object");o=function(a,c){let E=a.ccall("viz_create_graph","number",["string","number","number"],[c.name,c.directed===void 0||c.directed,c.strict!==void 0&&c.strict]);return vk(a,E,c),E}(t,e)}if(o===0)return{status:"failure",output:void 0,errors:NI(t)};if(Fk(t,o,i),t.ccall("viz_set_y_invert","number",["number"],[i.yInvert?1:0]),t.ccall("viz_set_reduce","number",["number"],[i.reduce?1:0]),n=t.ccall("viz_create_context"),t.ccall("viz_reset_errors"),t.ccall("viz_layout","number",["number","number","string"],[n,o,i.engine])!==0)return{status:"failure",output:void 0,errors:NI(t)};let s={};for(let a of A){if(g=t.ccall("viz_render","number",["number","number","string"],[n,o,a]),g===0)return{status:"failure",output:void 0,errors:NI(t)};s[a]=t.UTF8ToString(g),t.ccall("free","number",["number"],[g]),g=0}return{status:"success",output:s,errors:NI(t)}}catch(s){if(/^exit\(\d+\)/.test(s))return{status:"failure",output:void 0,errors:NI(t)};throw s}finally{n&&o&&t.ccall("viz_free_layout","number",["number"],[n,o]),o&&t.ccall("viz_free_graph","number",["number"],[o]),n&&t.ccall("viz_free_context","number",["number"],[n]),g&&t.ccall("free","number",["number"],[g]),r&&function(s,a){for(let c of a)s.FS.analyzePath(c).exists&&s.FS.unlink(c)}(t,r)}}function NI(t){return function(e){let A=[],i;for(let o=0;o<e.length;o++)e[o]=="Error"&&e[o+1]==": "?(i="error",o+=1):e[o]=="Warning"&&e[o+1]==": "?(i="warning",o+=1):A.push({message:e[o].trimEnd(),level:i});return A}(t.agerrMessages).concat(t.stderrMessages.map(e=>{for(let A=0;A<Mk.length;A++){let[i,o]=Mk[A],n;if((n=i.exec(e))!==null)return{message:n[1].trimEnd(),level:o}}return{message:e.trimEnd()}}))}function vk(t,e,A){Fk(t,e,A),A.nodes&&A.nodes.forEach(i=>{let o=t.ccall("viz_add_node","number",["number","string"],[e,String(i.name)]);i.attributes&&kk(t,e,o,i.attributes)}),A.edges&&A.edges.forEach(i=>{let o=t.ccall("viz_add_edge","number",["number","string","string"],[e,String(i.tail),String(i.head)]);i.attributes&&kk(t,e,o,i.attributes)}),A.subgraphs&&A.subgraphs.forEach(i=>{let o=t.ccall("viz_add_subgraph","number",["number","string"],[e,String(i.name)]);vk(t,o,i)})}function Fk(t,e,A){if(A.graphAttributes)for(let[i,o]of Object.entries(A.graphAttributes))zQ(t,e,o,n=>{t.ccall("viz_set_default_graph_attribute","number",["number","string","number"],[e,i,n])});if(A.nodeAttributes)for(let[i,o]of Object.entries(A.nodeAttributes))zQ(t,e,o,n=>{t.ccall("viz_set_default_node_attribute","number",["number","string","number"],[e,i,n])});if(A.edgeAttributes)for(let[i,o]of Object.entries(A.edgeAttributes))zQ(t,e,o,n=>{t.ccall("viz_set_default_edge_attribute","number",["number","string","number"],[e,i,n])})}function kk(t,e,A,i){for(let[o,n]of Object.entries(i))zQ(t,e,n,g=>{t.ccall("viz_set_attribute","number",["number","string","number"],[A,o,g])})}function zQ(t,e,A,i){let o;if(o=typeof A=="object"&&"html"in A?t.ccall("viz_string_dup_html","number",["number","string"],[e,String(A.html)]):t.ccall("viz_string_dup","number",["number","string"],[e,String(A)]),o==0)throw new Error("couldn't dup string");i(o),t.ccall("viz_string_free","number",["number","number"],[e,o])}var tp=class{constructor(e){this.module=e}get graphvizVersion(){return function(e){let A=e.ccall("viz_get_graphviz_version","number",[],[]);return e.UTF8ToString(A)}(this.module)}get formats(){return bk(this.module,"device")}get engines(){return bk(this.module,"layout")}renderFormats(e,A){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Rk(this.module,e,A,v({engine:"dot"},i))}render(e){let A,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A=i.format===void 0?"dot":i.format;let o=Rk(this.module,e,[A],v({engin
` ), h (), d ( 4 , "mat-form-field" , 1 )( 5 , "input" , 2 ), Ht ( "ngModelChange" , function ( n ){ return gi ( i . newCaseId , n ) || ( i . newCaseId = n ), n }), h ()(), d ( 6 , "mat-dialog-actions" , 3 )( 7 , "button" , 4 ), M ( 8 , "Cancel" ), h (), d ( 9 , "button" , 5 ), S ( "click" , function (){ return i . createNewEvalCase ()}), M ( 10 , "Create" ), h ()()), A & 2 && ( u ( 5 ), Jt ( "ngModel" , i . newCaseId ))}, dependencies : [ wi , Ot , Ci , vo , zn , at , jt , Ri , ki , Vn ], encapsulation : 2 })}; var HI = class t { constructor ( e , A , i ){ this . evalService = e ; this . data = A ; this . dialogRef = i } newSetId = "evalset" + YI (). slice ( 0 , 6 ); createNewEvalSet (){ ! this . newSetId || this . newSetId == "" ? alert ( "Cannot create eval set with empty id!" ) : this . evalService . createNewEvalSet ( this . data . appName , this . newSetId ). subscribe ( e =>{ this . dialogRef . close ( ! 0 )})} static \u0275fac = function ( A ){ return new ( A || t )( z ( Fi ), z ( vt ), z ( ot ))}; static \u0275cmp = H ({ type : t , selectors : [[ "app-new-eval-set-dialog-component" ]], standalone :! 1 , decls : 11 , vars : 1 , consts : [[ "mat-dialog-title" , "" ],[ 2 , "padding-left" , "20px" , "padding-right" , "24px" ],[ "matInput" , "" , 3 , "ngModelChange" , "ngModel" ],[ "align" , "end" ],[ "mat-button" , "" , "mat-dialog-close" , "" ],[ "mat-button" , "" , "cdkFocusInitial" , "" , 3 , "click" ]], template : function ( A , i ){ A & 1 && ( d ( 0 , "h2" , 0 ), M ( 1 , "Create New Eval Set" ), h (), d ( 2 , "mat-dialog-content" ), M ( 3 , ` Please enter the eval set name
` ), h (), d ( 4 , "mat-form-field" , 1 )( 5 , "input" , 2 ), Ht ( "ngModelChange" , function ( n ){ return gi ( i . newSetId , n ) || ( i . newSetId = n ), n }), h ()(), d ( 6 , "mat-dialog-actions" , 3 )( 7 , "button" , 4 ), M ( 8 , "Cancel" ), h (), d ( 9 , "button" , 5 ), S ( "click" , function (){ return i . createNewEvalSet ()}), M ( 10 , "Create" ), h ()()), A & 2 && ( u ( 5 ), Jt ( "ngModel" , i . newSetId ))}, dependencies : [ wi , Ot , Ci , vo , zn , at , jt , Ri , ki , Vn ], encapsulation : 2 })}; var x8 = [ "knob" ], Y8 = [ "valueIndicatorContainer" ]; function J8 ( t , e ){ if ( t & 1 && ( d ( 0 , "div" , 2 , 1 )( 2 , "div" , 5 )( 3 , "span" , 6 ), M ( 4 ), h ()()()), t & 2 ){ let A = f (); u ( 4 ), LA ( A . valueIndicatorText )}} var H8 = [ "trackActive" ], T8 = [ "*" ]; function O8 ( t , e ){ if ( t & 1 && K ( 0 , "div" ), t & 2 ){ let A = e . $implicit , i = e . $index , o = f ( 3 ); Le ( A === 0 ? "mdc-slider__tick-mark--active" : "mdc-slider__tick-mark--inactive" ), pe ( "transform" , o . _calcTickMarkTransform ( i ))}} function P8 ( t , e ){ if ( t & 1 && ne ( 0 , O8 , 1 , 4 , "div" , 8 , Kr ), t & 2 ){ let A = f ( 2 ); ge ( A . _tickMarks )}} function Z8 ( t , e ){ if ( t & 1 && ( d ( 0 , "div" , 6 , 1 ), _ ( 2 , P8 , 2 , 0 ), h ()), t & 2 ){ let A = f (); u ( 2 ), L ( A . _cachedWidth ? 2 :- 1 )}} function q8 ( t , e ){ if ( t & 1 && K ( 0 , "mat-slider-visual-thumb" , 7 ), t & 2 ){ let A = f (); G ( "discrete" , A . discrete )( "thumbPosition" , 1 )( "valueIndicatorText" , A . startValueIndicatorText )}} var OA = function ( t ){ return t [ t . START = 1 ] = "START" , t [ t . END = 2 ] = "END" , t }( OA || {}), Rs = function ( t ){ return t [ t . ACTIVE = 0 ] = "ACTIVE" , t [ t . INACTIVE = 1 ] = "INACTIVE" , t }( Rs || {}), yp = new R ( "_MatSlider" ), Dv = new R ( "_MatSliderThumb" ), V8 = new R ( "_MatSliderRangeThumb" ), fv = new R ( "_MatSliderVisualThumb" ); var W8 = (()=>{ class t { _cdr = C ( pA ); _ngZone = C ( AA ); _slider = C ( yp ); _renderer = C ( ie ); _listenerCleanups ; discrete ; thumbPosition ; valueIndicatorText ; _ripple ; _knob ; _valueIndicatorContainer ; _sliderInput ; _sliderInputEl ; _hoverRippleRef ; _focusRippleRef ; _activeRippleRef ; _isHovered =! 1 ; _isActive =! 1 ; _isValueIndicatorVisible =! 1 ; _hostElement = C ( j ). nativeElement ; _platform = C ( JA ); constructor (){} ngAfterViewInit (){ let A = this . _slider . _getInput ( this . thumbPosition ); A && ( this . _ripple . radius = 24 , this . _sliderInput = A , this . _sliderInputEl = this . _sliderInput . _hostElement , this . _ngZone . runOutsideAngular (()=>{ let i = this . _sliderInputEl , o = this . _renderer ; this . _listenerCleanups = [ o . listen ( i , "pointermove" , this . _onPointerMove ), o . listen ( i , "pointerdown" , this . _onDragStart ), o . listen ( i , "pointerup" , this . _onDragEnd ), o . listen ( i , "pointerleave" , this . _onMouseLeave ), o . listen ( i , "focus" , this . _onFocus ), o . listen ( i , "blur" , this . _onBlur )]}))} ngOnDestroy (){ this . _listenerCleanups ? . forEach ( A => A ())} _onPointerMove = A =>{ if ( this . _sliderInput . _isFocused ) return ; let i = this . _hostElement . getBoundingClientRect (), o = this . _slider . _isCursorOnSliderThumb ( A , i ); this . _isHovered = o , o ? this . _showHoverRipple () : this . _hideRipple ( this . _hoverRippleRef )}; _onMouseLeave = ()=>{ this . _isHovered =! 1 , this . _hideRipple ( this . _hoverRippleRef )}; _onFocus = ()=>{ this . _hideRipple ( this . _hoverRippleRef ), this . _showFocusRipple (), this . _hostElement . classList . add ( "mdc-slider__thumb--focused" )}; _onBlur = ()=>{ this . _isActive || this . _hideRipple ( this . _focusRippleRef ), this . _isHovered && this . _showHoverRipple (), this . _hostElement . classList . remove ( "mdc-slider__thumb--focused" )}; _onDragStart = A =>{ A . button === 0 && ( this . _isActive =! 0 , this . _showActiveRipple ())}; _onDragEnd = ()=>{ this . _isActive =! 1 , this . _hideRipple ( this . _activeRippleRef ), this . _sliderInput . _isFocused || this . _hideRipple ( this . _focusRippleRef ), this . _platform . SAFARI && this . _showHoverRipple ()}; _showHoverRipple (){ this . _isShowingRipple ( this . _hoverRippleRef ) || ( this . _hoverRippleRef = this . _showRipple ({ enterDuration : 0 , exitDuration : 0 }), this . _hoverRippleRef ? . element . classList . add ( "mat-mdc-slider-hover-ripple" ))} _showFocusRipple (){ this . _isShowingRipple ( this . _focusRippleRef ) || ( this . _focusRippleRef = this . _showRipple ({ enterDuration : 0 , exitDuration : 0 }, ! 0 ), this . _focusRippleRef ? . element . classList . add ( "mat-mdc-slider-focus-ripple" ))} _showActiveRipple (){ this . _isShowingRipple ( this . _activeRippleRef ) || ( this . _activeRippleRef = this . _showRipple ({ enterDuration : 225 , exitDuration : 400 }), this . _activeRippleRef ? . element . classList . add ( "mat-mdc-slider-active-ripple" ))} _isShowingRipple ( A ){ return A ? . state === Rt . FADING_IN || A ? . state === Rt . VISIBLE } _showRipple ( A , i ){ if ( ! this . _slider . disabled && ( this . _showValueIndicator (), this . _slider . _isRange && this . _slider . _getThumb ( this . thumbPositi
] `).replace("lheading",aF).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),_Z=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_` { | } ~ ]) / , LZ = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , CF = /^( {2,}|\\)\n(?!\s*$)/ , UZ = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , mE = /[\p{P}\p{S}]/u , Vp = /[\s\p{P}\p{S}]/u , BF = /[^\s\p{P}\p{S}]/u , KZ = Ce ( /^((?![*_])punctSpace)/ , "u" ). replace ( /punctSpace/g , Vp ). getRegex (), cF = /(?!~)[\p{P}\p{S}]/u , xZ = /(?!~)[\s\p{P}\p{S}]/u , YZ = /(?:[^\s\p{P}\p{S}]|~)/u , JZ = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g , QF = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/ , HZ = Ce ( QF , "u" ). replace ( /punct/g , mE ). getRegex (), TZ = Ce ( QF , "u" ). replace ( /punct/g , cF ). getRegex (), EF = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)" , OZ = Ce ( EF , "gu" ). replace ( /notPunctSpace/g , BF ). replace ( /punctSpace/g , Vp ). replace ( /punct/g , mE ). getRegex (), PZ = Ce ( EF , "gu" ). replace ( /notPunctSpace/g , YZ ). replace ( /punctSpace/g , xZ ). replace ( /punct/g , cF ). getRegex (), ZZ = Ce ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)" , "gu" ). replace ( /notPunctSpace/g , BF ). replace ( /punctSpace/g , Vp ). replace ( /punct/g , mE ). getRegex (), qZ = Ce ( /\\(punct)/ , "gu" ). replace ( /punct/g , mE ). getRegex (), VZ = Ce ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ). replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ). replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ). getRegex (), WZ = Ce ( Zp ). replace ( "(?:-->|$)" , "-->" ). getRegex (), zZ = Ce ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ). replace ( "comment" , WZ ). replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ). getRegex (), hE = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , jZ = Ce ( /^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/ ). replace ( "label" , hE ). replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/ ). replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ). getRegex (), lF = Ce ( /^!?\[(label)\]\[(ref)\]/ ). replace ( "label" , hE ). replace ( "ref" , Pp ). getRegex (), dF = Ce ( /^!?\[(ref)\](?:\[\])?/ ). replace ( "ref" , Pp ). getRegex (), XZ = Ce ( "reflink|nolink(?!\\()" , "g" ). replace ( "reflink" , lF ). replace ( "nolink" , dF ). getRegex (), Wp = { _backpedal : zI , anyPunctuation : qZ , autolink : VZ , blockSkip : JZ , br : CF , code : LZ , del : zI , emStrongLDelim : HZ , emStrongRDelimAst : OZ , emStrongRDelimUnd : ZZ , escape : _Z , link : jZ , nolink : dF , punctuation : KZ , reflink : lF , reflinkSearch : XZ , tag : zZ , text : UZ , url : zI }, $Z = DA ( v ({}, Wp ),{ link : Ce ( /^!?\[(label)\]\((.*?)\)/ ). replace ( "label" , hE ). getRegex (), reflink : Ce ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ). replace ( "label" , hE ). getRegex ()}), Yp = DA ( v ({}, Wp ),{ emStrongRDelimAst : PZ , emStrongLDelim : TZ , url : Ce ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ). replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ). getRegex (), _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }), Aq = DA ( v ({}, Yp ),{ br : Ce ( CF ). replace ( "{2,}" , "*" ). getRegex (), text : Ce ( Yp . text ). replace ( "\\b_" , "\\b_| {2,}\\n" ). replace ( /\{2,\}/g , "*" ). getRegex ()}), dE = { normal : qp , gfm : NZ , pedantic : GZ }, VI = { normal : Wp , gfm : Yp , breaks : Aq , pedantic : $Z }, eq = { "&" : "&" , "<" : "<" , ">" : ">" , '"' : """ , "'" : "&
2025-05-05 17:07:14 -07:00
`).map(n=>{let g=n.match(A.other.beginningSpace);if(g===null)return n;let[r]=g;return r.length>=o.length?n.slice(o.length):n}).join(`
2025-06-06 13:32:09 -07:00
`)}var Gs=class{options;rules;lexer;constructor(e){this.options=e||zg}space(e){let A=this.rules.block.newline.exec(e);if(A&&A[0].length>0)return{type:" space ",raw:A[0]}}code(e){let A=this.rules.block.code.exec(e);if(A){let i=A[0].replace(this.rules.other.codeRemoveIndent,"");return{type:" code ",raw:A[0],codeBlockStyle:" indented ",text:this.options.pedantic?i:WI(i,`
`)}}}fences(e){let A=this.rules.block.fences.exec(e);if(A){let i=A[0],o=iq(i,A[3]||"",this.rules);return{type:" code ",raw:i,lang:A[2]?A[2].trim().replace(this.rules.inline.anyPunctuation," $1 "):A[2],text:o}}}heading(e){let A=this.rules.block.heading.exec(e);if(A){let i=A[2].trim();if(this.rules.other.endingHash.test(i)){let o=WI(i," # ");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:" heading ",raw:A[0],depth:A[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let A=this.rules.block.hr.exec(e);if(A)return{type:" hr ",raw:WI(A[0],`
`)}}blockquote(e){let A=this.rules.block.blockquote.exec(e);if(A){let i=WI(A[0],`
2025-05-05 17:07:14 -07:00
`).split(`
2025-06-05 17:19:30 -07:00
`),o="",n="",g=[];for(;i.length>0;){let r=!1,s=[],a;for(a=0;a<i.length;a++)if(this.rules.other.blockquoteStart.test(i[a]))s.push(i[a]),r=!0;else if(!r)s.push(i[a]);else break;i=i.slice(a);let c=s.join(`
`),E=c.replace(this.rules.other.blockquoteSetextReplace,`
2025-06-03 22:16:31 -07:00
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
2025-06-05 17:19:30 -07:00
${c}`:c,n=n?`${n}
2025-06-06 13:32:09 -07:00
${E}`:E;let D=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(E,g,!0),this.lexer.state.top=D,i.length===0)break;let p=g.at(-1);if(p?.type===" code ")break;if(p?.type===" blockquote "){let w=p,b=w.raw+`
2025-06-03 22:16:31 -07:00
`+i.join(`
2025-06-06 13:32:09 -07:00
`),O=this.blockquote(b);g[g.length-1]=O,o=o.substring(0,o.length-w.raw.length)+O.raw,n=n.substring(0,n.length-w.text.length)+O.text;break}else if(p?.type===" list "){let w=p,b=w.raw+`
2025-06-03 22:16:31 -07:00
`+i.join(`
2025-06-06 13:32:09 -07:00
`),O=this.list(b);g[g.length-1]=O,o=o.substring(0,o.length-p.raw.length)+O.raw,n=n.substring(0,n.length-w.raw.length)+O.raw,i=b.substring(g.at(-1).raw.length).split(`
`);continue}}return{type:" blockquote ",raw:o,tokens:g,text:n}}}list(e){let A=this.rules.block.list.exec(e);if(A){let i=A[1].trim(),o=i.length>1,n={type:" list ",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:" [ *+- ] ");let g=this.rules.other.listItemRegex(i),r=!1;for(;e;){let a=!1,c="",E="";if(!(A=g.exec(e))||this.rules.block.hr.test(e))break;c=A[0],e=e.substring(c.length);let D=A[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,wA=>" ".repeat(3*wA.length)),p=e.split(`
`,1)[0],w=!D.trim(),b=0;if(this.options.pedantic?(b=2,E=D.trimStart()):w?b=A[1].length+1:(b=A[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,E=D.slice(b),b+=A[1].length),w&&this.rules.other.blankLine.test(p)&&(c+=p+`
`,e=e.substring(p.length+1),a=!0),!a){let wA=this.rules.other.nextBulletRegex(b),TA=this.rules.other.hrRegex(b),kA=this.rules.other.fencesBeginRegex(b),St=this.rules.other.headingBeginRegex(b),ve=this.rules.other.htmlBeginRegex(b);for(;e;){let Ne=e.split(`
2025-06-05 17:19:30 -07:00
`,1)[0],be;if(p=Ne,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),be=p):be=p.replace(this.rules.other.tabCharGlobal," "),kA.test(p)||St.test(p)||ve.test(p)||wA.test(p)||TA.test(p))break;if(be.search(this.rules.other.nonSpaceChar)>=b||!p.trim())E+=`
2025-06-06 13:32:09 -07:00
`+be.slice(b);else{if(w||D.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||kA.test(D)||St.test(D)||TA.test(D))break;E+=`
`+p}!w&&!p.trim()&&(w=!0),c+=Ne+`
`,e=e.substring(Ne.length+1),D=be.slice(b)}}n.loose||(r?n.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(r=!0));let O=null,tA;this.options.gfm&&(O=this.rules.other.listIsTask.exec(E),O&&(tA=O[0]!==" [ ] ",E=E.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:" list_item ",raw:c,task:!!O,checked:tA,loose:!1,text:E,tokens:[]}),n.raw+=c}let s=n.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let a=0;a<n.items.length;a++)if(this.lexer.state.top=!1,n.items[a].tokens=this.lexer.blockTokens(n.items[a].text,[]),!n.loose){let c=n.items[a].tokens.filter(D=>D.type===" space "),E=c.length>0&&c.some(D=>this.rules.other.anyLine.test(D.raw));n.loose=E}if(n.loose)for(let a=0;a<n.items.length;a++)n.items[a].loose=!0;return n}}html(e){let A=this.rules.block.html.exec(e);if(A)return{type:" html ",block:!0,raw:A[0],pre:A[1]===" pre "||A[1]===" script "||A[1]===" style ",text:A[0]}}def(e){let A=this.rules.block.def.exec(e);if(A){let i=A[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=A[2]?A[2].replace(this.rules.other.hrefBrackets," $1 ").replace(this.rules.inline.anyPunctuation," $1 "):"",n=A[3]?A[3].substring(1,A[3].length-1).replace(this.rules.inline.anyPunctuation," $1 "):A[3];return{type:" def ",tag:i,raw:A[0],href:o,title:n}}}table(e){let A=this.rules.block.table.exec(e);if(!A||!this.rules.other.tableDelimiter.test(A[2]))return;let i=nF(A[1]),o=A[2].replace(this.rules.other.tableAlignChars,"").split(" | "),n=A[3]?.trim()?A[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],g={type:" table ",raw:A[0],header:[],align:[],rows:[]};if(i.length===o.length){for(let r of o)this.rules.other.tableAlignRight.test(r)?g.align.push(" right "):this.rules.other.tableAlignCenter.test(r)?g.align.push(" center "):this.rules.other.tableAlignLeft.test(r)?g.align.push(" left "):g.align.push(null);for(let r=0;r<i.length;r++)g.header.push({text:i[r],tokens:this.lexer.inline(i[r]),header:!0,align:g.align[r]});for(let r of n)g.rows.push(nF(r,g.header.length).map((s,a)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:g.align[a]})));return g}}lheading(e){let A=this.rules.block.lheading.exec(e);if(A)return{type:" heading ",raw:A[0],depth:A[2].charAt(0)===" = "?1:2,text:A[1],tokens:this.lexer.inline(A[1])}}paragraph(e){let A=this.rules.block.paragraph.exec(e);if(A){let i=A[1].charAt(A[1].length-1)===`
`?A[1].slice(0,-1):A[1];return{type:" paragraph ",raw:A[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let A=this.rules.block.text.exec(e);if(A)return{type:" text ",raw:A[0],text:A[0],tokens:this.lexer.inline(A[0])}}escape(e){let A=this.rules.inline.escape.exec(e);if(A)return{type:" escape ",raw:A[0],text:A[1]}}tag(e){let A=this.rules.inline.tag.exec(e);if(A)return!this.lexer.state.inLink&&this.rules.other.startATag.test(A[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(A[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(A[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(A[0])&&(this.lexer.state.inRawBlock=!1),{type:" html ",raw:A[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:A[0]}}link(e){let A=this.rules.inline.link.exec(e);if(A){let i=A[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let g=WI(i.slice(0,-1)," \\ ");if((i.length-g.length)%2===0)return}else{let g=tq(A[2]," () ");if(g===-2)return;if(g>-1){let s=(A[0].indexOf(" ! ")===0?5:4)+A[1].length+g;A[2]=A[2].substring(0,g),A[0]=A[0].substring(0,s).trim(),A[3]=""}}let o=A[2],n="";if(this.options.pedantic){let g=this.rules.other.pedanticHrefTitle.exec(o);g&&(o=g[1],n=g[3])}else n=A[3]?A[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o=o.slice(1):o=o.slice(1,-1)),gF(A,{href:o&&o.replace(this.rules.inline.anyPunctuation," $1 "),title:n&&n.replace(this.rules.inline.anyPunctuation," $1 ")},A[0],this.lexer,this.rules)}}reflink(e,A){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=A[o.toLowerCase()];if(!n){let g=i[0].charAt(0);return{type:" text ",raw:g,text:g}}return gF(i,n,i[0],this.lexer,this.rules)}}emStrong(e,A,i=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(o[1]||o[2]||"")||!i||this.rules.inline.punctuation.exec(i)){let g=[...o[0]].length-1,r,s,a=g,c=0,E=o[0][0]===" * "?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,A=A.slice(-1*e.length+g);(o=E.exec(A))!=null;){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(s=[...r].length,o[3]||o[4]){a+=s;continue}else if((o[5]||o[6])&&g%3&&!((g+s)%3)){c+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a+c);let D=[...o[0]][0].length,p=e.slice(0,g+o.index+D+s);if(Math.min(g,s)%2){let b=p.slice(1,-1);return{type:" em ",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}let w=p.slice(2,-2);return{type:" strong ",raw:p,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let A=this.rules.inline.code.exec(e);if(A){let i=A[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&n&&(i=i.substring(1,i.length-1)),{type:" codespan ",raw:A[0],text:i}}}br(e){let A=this.rules.inline.br.exec(e);if(A)return{type:" br ",raw:A[0]}}del(e){let A=this.rules.inline.del.exec(e);if(A)return{type:" del ",raw:A[0],text:A[2],tokens:this.lexer.inlineTokens(A[2])}}autolink(e){let A=this.rules.inline.autolink.exec(e);if(A){let i,o;return A[2]===" @ "?(i=A[1],o=" mailto : "+i):(i=A[1],o=i),{type:" link ",raw:A[0],text:i,href:o,tokens:[{type:" text ",raw:i,text:i}]}}}url(e){let A;if(A=this.rules.inline.url.exec(e)){let i,o;if(A[2]===" @ ")i=A[0],o=" mailto : "+i;else{let n;do n=A[0],A[0]=this.rules.inline._backpedal.exec(A[0])?.[0]??"";while(n!==A[0]);i=A[0],A[1]===" www . "?o=" http : //"+A[0]:o=A[0]}return{type:"link",raw:A[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let A=this.rules.inline.text.exec(e);if(A){let i=this.lexer.state.inRawBlock;return{type:"text",raw:A[0],text:A[0],escaped:i}}}},ji=class t{tokens;options;state;tokenizer;inlineQueue;constructor(e){th
`),this.blockTokens(e,this.tokens);for(let A=0;A<this.inlineQueue.length;A++){let i=this.inlineQueue[A];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,A=[],i=!1){for(this.options.pedantic&&(e=e.replace(Ft.tabCharGlobal," ").replace(Ft.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(g=>(o=g.call({lexer:this},e,A))?(e=e.substring(o.raw.length),A.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let g=A.at(-1);o.raw.length===1&&g!==void 0?g.raw+=`
`:A.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=`
2025-05-05 17:07:14 -07:00
`+o.raw,g.text+=`
2025-06-06 13:32:09 -07:00
`+o.text,this.inlineQueue.at(-1).src=g.text):A.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="paragraph"||g?.type==="text"?(g.raw+=`
2025-05-05 17:07:14 -07:00
`+o.raw,g.text+=`
2025-06-06 13:32:09 -07:00
`+o.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),A.push(o);continue}let n=e;if(this.options.extensions?.startBlock){let g=1/0,r=e.slice(1),s;this.options.extensions.startBlock.forEach(a=>{s=a.call({lexer:this},r),typeof s=="number"&&s>=0&&(g=Math.min(g,s))}),g<1/0&&g>=0&&(n=e.substring(0,g+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let g=A.at(-1);i&&g?.type==="paragraph"?(g.raw+=`
2025-05-05 17:07:14 -07:00
`+o.raw,g.text+=`
2025-06-06 13:32:09 -07:00
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):A.push(o),i=n.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let g=A.at(-1);g?.type==="text"?(g.raw+=`
2025-05-05 17:07:14 -07:00
`+o.raw,g.text+=`
2025-06-06 13:32:09 -07:00
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):A.push(o);continue}if(e){let g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,A}inline(e,A=[]){return this.inlineQueue.push({src:e,tokens:A}),A}inlineTokens(e,A=[]){let i=e,o=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)r.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let n=!1,g="";for(;e;){n||(g=""),n=!1;let r;if(this.options.extensions?.inline?.some(a=>(r=a.call({lexer:this},e,A))?(e=e.substring(r.raw.length),A.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let a=A.at(-1);r.type==="text"&&a?.type==="text"?(a.raw+=r.raw,a.text+=r.text):A.push(r);continue}if(r=this.tokenizer.emStrong(e,i,g)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),A.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),A.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),A.push(r);continue}let s=e;if(this.options.extensions?.startInline){let a=1/0,c=e.slice(1),E;this.options.extensions.startInline.forEach(D=>{E=D.call({lexer:this},c),typeof E=="number"&&E>=0&&(a=Math.min(a,E))}),a<1/0&&a>=0&&(s=e.substring(0,a+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(g=r.raw.slice(-1)),n=!0;let a=A.at(-1);a?.type==="text"?(a.raw+=r.raw,a.text+=r.text):A.push(r);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return A}},Go=class{options;parser;constructor(e){this.options=e||zg}space(e){return""}code({text:e,lang:A,escaped:i}){let o=(A||"").match(Ft.notSpaceStart)?.[0],n=e.replace(Ft.endingNewline,"")+`
2025-06-05 17:19:30 -07:00
`;return o?'<pre><code class="language-'+No(o)+'">'+(i?n:No(n,!0))+` < /code></pre>
`:"<pre><code>"+(i?n:No(n,!0))+` < /code></pre>
2025-06-06 13:32:09 -07:00
`}blockquote({tokens:e}){return` < blockquote >
$ { this . parser . parse ( e )} < /blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:A}){return` < h$ { A } > $ { this . parser . parseInline ( e )} < /h${A}>
`}hr(e){return` < hr >
`}list(e){let A=e.ordered,i=e.start,o="";for(let r=0;r<e.items.length;r++){let s=e.items[r];o+=this.listitem(s)}let n=A?"ol":"ul",g=A&&i!==1?' start="'+i+'"':"";return"<"+n+g+` >
2025-06-03 22:16:31 -07:00
`+o+"</"+n+` >
2025-06-06 13:32:09 -07:00
`}listitem(e){let A="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+No(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):A+=i+" "}return A+=this.parser.parse(e.tokens,!!e.loose),` < li > $ { A } < /li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return` < p > $ { this . parser . parseInline ( e )} < /p>
`}table(e){let A="",i="";for(let n=0;n<e.header.length;n++)i+=this.tablecell(e.header[n]);A+=this.tablerow({text:i});let o="";for(let n=0;n<e.rows.length;n++){let g=e.rows[n];i="";for(let r=0;r<g.length;r++)i+=this.tablecell(g[r]);o+=this.tablerow({text:i})}return o&&(o=` < tbody > $ { o } < /tbody>`),`<table>
2025-05-05 17:07:14 -07:00
< thead >
2025-06-03 22:16:31 -07:00
`+A+` < /thead>
`+o+` < /table>
2025-06-06 13:32:09 -07:00
`}tablerow({text:e}){return` < tr >
$ { e } < /tr>
`}tablecell(e){let A=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?` < $ { i } align = "${e.align}" > `:` < $ { i } > `)+A+` < /${i}>
`}strong({tokens:e}){return` < strong > $ { this . parser . parseInline ( e )} < /strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${No(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:A,tokens:i}){let o=this.parser.parseInline(i),n=oF(e);if(n===null)return o;e=n;let g='<a href="'+e+'"';return A&&(g+=' title="'+No(A)+'"'),g+=">"+o+"</a>",g}image({href:e,title:A,text:i,tokens:o}){o&&(i=this.parser.parseInline(o,this.parser.textRenderer));let n=oF(e);if(n===null)return No(i);e=n;let g=`<img src="${e}" alt="${i}"`;return A&&(g+=` title="${No(A)}"`),g+=">",g}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:No(e.text)}},jI=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Xi=class t{options;renderer;textRenderer;constructor(e){this.options=e||zg,this.options.renderer=this.options.renderer||new Go,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new jI}static parse(e,A){return new t(A).parse(e)}static parseInline(e,A){return new t(A).parseInline(e)}parse(e,A=!0){let i="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let r=n,s=this.options.extensions.renderers[r.type].call({parser:this},r);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){i+=s||"";continue}}let g=n;switch(g.type){case"space":{i+=this.renderer.space(g);continue}case"hr":{i+=this.renderer.hr(g);continue}case"heading":{i+=this.renderer.heading(g);continue}case"code":{i+=this.renderer.code(g);continue}case"table":{i+=this.renderer.table(g);continue}case"blockquote":{i+=this.renderer.blockquote(g);continue}case"list":{i+=this.renderer.list(g);continue}case"html":{i+=this.renderer.html(g);continue}case"paragraph":{i+=this.renderer.paragraph(g);continue}case"text":{let r=g,s=this.renderer.text(r);for(;o+1<e.length&&e[o+1].type==="text";)r=e[++o],s+=`
`+this.renderer.text(r);A?i+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):i+=s;continue}default:{let r='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return i}parseInline(e,A=this.renderer){let i="";for(let o=0;o<e.length;o++){let n=e[o];if(this.options.extensions?.renderers?.[n.type]){let r=this.options.extensions.renderers[n.type].call({parser:this},n);if(r!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=r||"";continue}}let g=n;switch(g.type){case"escape":{i+=A.text(g);break}case"html":{i+=A.html(g);break}case"link":{i+=A.link(g);break}case"image":{i+=A.image(g);break}case"strong":{i+=A.strong(g);break}case"em":{i+=A.em(g);break}case"codespan":{i+=A.codespan(g);break}case"br":{i+=A.br(g);break}case"del":{i+=A.del(g);break}case"text":{i+=A.text(g);break}default:{let r='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(r),"";throw new Error(r)}}}return i}},Ns=class{options;block;constructor(e){this.options=e||zg}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ji.lex:ji.lexInline}provideParser(){return this.block?Xi.parse:Xi.parseInline}},Jp=class{defaults=Hp();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Xi;Renderer=Go;TextRenderer=jI;Lexer=ji;Tokenizer=Gs;Hooks=Ns;constructor(...e){this.use(...e)}walkTokens(e,A){let i=[];for(let o of e)switch(i=i.concat(A.call(this,o)),o.type){case"table":{let n=o;for(let g of n.header)i=i.concat(this.walkTokens(g.tokens,A));for(let g of n.rows)for(let r of g)i=i.concat(this.walkTokens(r.tokens,A));break}case"list":{let n=o;i=i.concat(this.walkTokens(n.items,A));break}default:{let n=o;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(g=>{let r=n[g].flat(1/0);i=i.concat(this.walkTokens(r,A))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,A)))}}return i}use(...e){let A=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let o=v({},i);if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let g=A.renderers[n.name];g?A.renderers[n.name]=function(...r){let s=n.renderer.apply(this,r);return s===!1&&(s=g.apply(this,r)),s}:A.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let g=A[n.level];g?g.unshift(n.tokenizer):A[n.level]=[n.tokenizer],n.start&&(n.level==="block"?A.startBlock?A.startBlock.push(n.start):A.startBlock=[n.start]:n.level==="inline"&&(A.startInline?A.startInline.push(n.start):A.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(A.childTokens[n.name]=n.childTokens)}),o.extensions=A),i.renderer){let n=this.defaults.renderer||new Go(this.defaults);for(let g in i.renderer){if(!(g in n))throw new Error(` renderer '${g}' does not exist `);if(["options","parser"].includes(g))continue;let r=g,s=i.renderer[r],a=n[r];n[r]=(...c)=>{let E=s.apply(n,c);return E===!1&&(E=a.apply(n,c)),E||""}}o.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new Gs(this.defaults);for(let g in i.tokenizer){if(!(g in n))throw new Error(` tokenizer '${g}' does not exist `);if(["options","rules","lexer"].includes(g))continue;let r=g,s=i.tokenizer[r],a=n[r];n[r]=(...c)=>{let E=s.apply(n,c);return E===!1&&(E=a.apply(n,c)),E}}o.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new Ns;for(let g in i.hooks){if(!(g in n))throw new Error(` hook '${g}' does not exist `);if(["options","block"].includes(g))continue;let r=g,s=i.hooks[r],a=n[r];Ns.passThroughHooks.has(g)?n[r]=c=>{if(this.defaults.async)return Promise.resolve(s.call(n,c)).then(D=>a.call(n,D));let E=s.call(n,c);return a.call(n,E)}:n[r]=(...c)=>{let E=s.
Please report this to https://github.com/markedjs/marked.` , e ){ let o = "<p>An error occurred:</p><pre>" + No ( i . message + "" , ! 0 ) + "</pre>" ; return A ? Promise . resolve ( o ) : o } if ( A ) return Promise . reject ( i ); throw i }}}, Wg = new Jp ; function re ( t , e ){ return Wg . parse ( t , e )} re . options = re . setOptions = function ( t ){ return Wg . setOptions ( t ), re . defaults = Wg . defaults , rF ( re . defaults ), re }; re . getDefaults = Hp ; re . defaults = zg ; re . use = function (... t ){ return Wg . use (... t ), re . defaults = Wg . defaults , rF ( re . defaults ), re }; re . walkTokens = function ( t , e ){ return Wg . walkTokens ( t , e )}; re . parseInline = Wg . parseInline ; re . Parser = Xi ; re . parser = Xi . parse ; re . Renderer = Go ; re . TextRenderer = jI ; re . Lexer = ji ; re . lexer = ji . lex ; re . Tokenizer = Gs ; re . Hooks = Ns ; re . parse = re ; var bcA = re . options , RcA = re . setOptions , kcA = re . use , vcA = re . walkTokens , FcA = re . parseInline ; var ScA = Xi . parse , NcA = ji . lex ; var oq = [ "*" ], nq = "Copy" , gq = "Copied" , rq = (()=>{ class t { constructor (){ this . _buttonClick$ = new J , this . copied$ = this . _buttonClick$ . pipe ( he (()=> we ( oA ( ! 0 ), tg ( 3e3 ). pipe ( Qr ( ! 1 )))), Ki (), Jo ( 1 )), this . copiedText$ = this . copied$ . pipe ( ye ( ! 1 ), CA ( A => A ? gq : nq ))} onCopyToClipboardClick (){ this . _buttonClick$ . next ()} static { this . \u0275fac = function ( i ){ return new ( i || t )}} static { this . \u0275cmp = H ({ type : t , selectors : [[ "markdown-clipboard" ]], decls : 4 , vars : 7 , consts : [[ 1 , "markdown-clipboard-button" , 3 , "click" ]], template : function ( i , o ){ i & 1 && ( d ( 0 , "button" , 0 ), Oi ( 1 , "async" ), S ( "click" , function (){ return o . onCopyToClipboardClick ()}), M ( 2 ), Oi ( 3 , "async" ), h ()), i & 2 && ( iA ( "copied" , xr ( 1 , 3 , o . copied$ )), u ( 2 ), LA ( xr ( 3 , 5 , o . copiedText$ )))}, dependencies : [ _a ], encapsulation : 2 , changeDetection : 0 })}} return t })(), sq = new R ( "CLIPBOARD_OPTIONS" ); var zp = function ( t ){ return t . CommandLine = "command-line" , t . LineHighlight = "line-highlight" , t . LineNumbers = "line-numbers" , t }( zp || {}), hF = new R ( "MARKED_EXTENSIONS" ), aq = new R ( "MARKED_OPTIONS" ), Iq = new R ( "MERMAID_OPTIONS" ), Cq = "[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information" , Bq = "[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information" , cq = "[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information" , Qq = "[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information" , Eq = "[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function" , lq = "[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information" , uF = new R ( "SECURITY_CONTEXT" ); var mF = (()=>{ class t { get options (){ return this . _options } set options ( A ){ this . _options = v ( v ({}, this . DEFAULT_MARKED_OPTIONS ), A )} get renderer (){ return this . options . renderer } set renderer ( A ){ this . options . renderer = A } constructor ( A , i , o , n , g , r , s , a ){ this . clipboardOptions = A , this . extensions = i , this . mermaidOptions = n , this . platform = g , this . securityContext = r , this . http = s , this . sanitizer = a , this . DEFAULT_MARKED_OPTIONS = { renderer : new Go }, this . DEFAULT_KATEX_OPTIONS = { delimiters : [{ left : "$$" , right : "$$" , display :! 0 },{ left : "$" , right : "$" , display :! 1 },{ left : "\\(" , right : "\\)" , display :! 1 },{ left : "\\begin{equation}" , right : "\\end{equation}" , display :! 0 },{ left : "\\begin{align}" , right : "\\end{align}" , display :! 0 },{ left : "\\begin{alignat}" , right : "\\end{alignat}" , display :! 0 },{ left : "\\begin{gather}" , right : "\\end{gather}" , display :! 0 },{ left : "\\begin{CD}" , right : "\\end{CD}" , display :! 0 },{ left : "\\[" , right : "\\]" , display :! 0 }]}, this . DEFAULT_MERMAID_OPTIONS = { startOnLoad :! 1 }, this . DEFAULT_CLIPBOARD_OPTIONS = { buttonComponent : void 0 }, this . DEFAULT_PARSE_OPTIONS = { decodeHtml :! 1 , inline :! 1 , emoji :! 1 , mermaid :! 1 , markedOptions : void 0 , disableSanitizer :! 1 }, this . DEFAULT_RENDER_OPTIONS = { clipboard :! 1 , clipboardOptions : void 0 , katex :! 1 , katexOptions : void 0 , mermaid :! 1 , mermaidOptions : void 0 }, this . _reload$ = new J , this . reload$ = this . _reload$ . asObservable (), this . options = o } parse ( A , i = this . DEFAUL
`+i+"\n``` ":i}parseMarked(A,i,o=!1){if(i.renderer){let n=v({},i.renderer);delete n.\u0275NgxMarkdownRendererExtendedForExtensions,delete n.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,re.use({renderer:n})}return o?re.parseInline(A,i):re.parse(A,i)}parseEmoji(A){if(!mo(this.platform))return A;if(typeof joypixels>" u "||typeof joypixels.shortnameToUnicode>" u ")throw new Error(Cq);return joypixels.shortnameToUnicode(A)}renderKatex(A,i){if(mo(this.platform)){if(typeof katex>" u "||typeof renderMathInElement>" u ")throw new Error(Bq);renderMathInElement(A,i)}}renderClipboard(A,i,o){if(!mo(this.platform))return;if(typeof ClipboardJS>" u ")throw new Error(Qq);if(!i)throw new Error(Eq);let{buttonComponent:n,buttonTemplate:g}=o,r=A.querySelectorAll(" pre ");for(let s=0;s<r.length;s++){let a=r.item(s),c=document.createElement(" div ");c.style.position=" relative ",a.parentNode.insertBefore(c,a),c.appendChild(a);let E=document.createElement(" div ");E.classList.add(" markdown - clipboard - toolbar "),E.style.position=" absolute ",E.style.top=" . 5 em ",E.style.right=" . 5 em ",E.style.zIndex=" 1 ",c.insertAdjacentElement(" beforeend ",E),c.onmouseenter=()=>E.classList.add(" hover "),c.onmouseleave=()=>E.classList.remove(" hover ");let D;if(n){let w=i.createComponent(n);D=w.hostView,w.changeDetectorRef.markForCheck()}else if(g)D=i.createEmbeddedView(g);else{let w=i.createComponent(rq);D=w.hostView,w.changeDetectorRef.markForCheck()}let p;D.rootNodes.forEach(w=>{E.appendChild(w),p=new ClipboardJS(w,{text:()=>a.innerText})}),D.onDestroy(()=>p.destroy())}}renderMermaid(A,i=this.DEFAULT_MERMAID_OPTIONS){if(!mo(this.platform))return;if(typeof mermaid>" u "||typeof mermaid.initialize>" u ")throw new Error(cq);let o=A.querySelectorAll(" . mermaid ");o.length!==0&&(mermaid.initialize(i),mermaid.run({nodes:o}))}trimIndentation(A){if(!A)return"";let i;return A.split(`
2025-05-05 17:07:14 -07:00
`).map(o=>{let n=i;return o.length>0&&(n=isNaN(n)?o.search(/\S|$/):Math.min(o.search(/\S|$/),n)),isNaN(i)&&(i=n),n?o.substring(n):o}).join(`
2025-06-06 13:32:09 -07:00
`)}static{this.\u0275fac=function(i){return new(i||t)(eA(sq,8),eA(hF,8),eA(aq,8),eA(Iq,8),eA(Di),eA(uF),eA(dt,8),eA(tn))}}static{this.\u0275prov=F({token:t,factory:t.\u0275fac})}}return t})(),pF=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(A){this._disableSanitizer=this.coerceBooleanProperty(A)}get inline(){return this._inline}set inline(A){this._inline=this.coerceBooleanProperty(A)}get clipboard(){return this._clipboard}set clipboard(A){this._clipboard=this.coerceBooleanProperty(A)}get emoji(){return this._emoji}set emoji(A){this._emoji=this.coerceBooleanProperty(A)}get katex(){return this._katex}set katex(A){this._katex=this.coerceBooleanProperty(A)}get mermaid(){return this._mermaid}set mermaid(A){this._mermaid=this.coerceBooleanProperty(A)}get lineHighlight(){return this._lineHighlight}set lineHighlight(A){this._lineHighlight=this.coerceBooleanProperty(A)}get lineNumbers(){return this._lineNumbers}set lineNumbers(A){this._lineNumbers=this.coerceBooleanProperty(A)}get commandLine(){return this._commandLine}set commandLine(A){this._commandLine=this.coerceBooleanProperty(A)}constructor(A,i,o){this.element=A,this.markdownService=i,this.viewContainerRef=o,this.error=new Z,this.load=new Z,this.ready=new Z,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new J}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(bA(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,i=!1){return gt(this,null,function*(){let o={decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},n={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},g=yield this.markdownService.parse(A,o);this.element.nativeElement.innerHTML=g,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,n,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(A){return A!=null&&`${String(A)}`!=" false "}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:A=>{this.render(A).then(()=>{this.load.emit(A)})},error:A=>this.error.emit(A)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,zp.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,zp.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(A,i){let o=A.querySelectorAll(" pre ");for(let n=0;n<o.length;n++){let g=i instanceof Array?i:[i];o.item(n).classList.add(...g)}}setPluginOptions(A,i){let o=A.querySelectorAll(" pre ");for(let n=0;n<o.length;n++)Object.keys(i).forEach(g=>{let r=i[g];if(r){let s=this.toLispCase(g);o.item(n).setAttribute(s,r.toString())}})}toLispCase(A){let i=A.match(/([A-Z])/g);if(!i)return A;let o=A.toString();for(let n=0,g=i.length;n<g;n++)o=o.replace(new RegExp(i[n])," - "+i[n].toLowerCase());return o.slice(0,1)===" - "&&(o=o.slice(1)),o}static{this.\u0275fac=function(i){return new(i||t)(z(j),z(mF),z(Qe))}}static{this.\u0275cmp=H({type:t,selectors:[[" markdown "],[""," markdown ",""]],
`+i;this.openSnackBar(o," OK ")}),new URL(window.location.href).searchParams.has(" code ")){let i=window.location.href;window.opener?.postMessage({authResponseUrl:i},window.origin),window.close()}this.agentService.getApp().subscribe(i=>{this.appName=i}),wt([this.agentService.getLoadingState(),this.isModelThinkingSubject]).subscribe(([i,o])=>{let n=this.messages[this.messages.length-1];i?!n?.isLoading&&!this.streamingTextMessage&&(this.messages.push({role:" bot ",isLoading:!0}),this.messagesSubject.next(this.messages)):n?.isLoading&&!o&&(this.messages.pop(),this.messagesSubject.next(this.messages),this.changeDetectorRef.detectChanges())}),wt([this.messagesSubject,this.scrollInterruptedSubject,this.streamingTextMessageSubject]).subscribe(([i,o,n])=>{o||setTimeout(()=>{this.scrollToBottom()},100)})}ngAfterViewInit(){this.showSidePanel=!0,this.sideDrawer.open()}scrollToBottom(){setTimeout(()=>{this.scrollContainer.nativeElement.scrollTo({top:this.scrollContainer.nativeElement.scrollHeight,behavior:" smooth "})})}selectApp(e){e!=this.appName&&(this.agentService.setApp(e),this.createSession(),this.eventData=new Map,this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[],this.userInput="",this.longRunningEvents=[])}createSession(){this.sessionService.createSession(this.userId,this.appName).subscribe(e=>{this.currentSessionState=e.state,this.sessionId=e.id,this.sessionTab.refreshSession()})}sendMessage(e){return gt(this,null,function*(){if(this.messages.length===0&&(this.scrollContainer.nativeElement.addEventListener(" wheel ",()=>{this.scrollInterruptedSubject.next(!0)}),this.scrollContainer.nativeElement.addEventListener(" touchmove ",()=>{this.scrollInterruptedSubject.next(!0)})),this.scrollInterruptedSubject.next(!1),e.preventDefault(),!this.userInput.trim())return;if(this.messages.push({role:" user ",text:this.userInput}),this.messagesSubject.next(this.messages),this.selectedFiles.length>0){let o=this.selectedFiles.map(n=>({file:n.file,url:n.url}));this.messages.push({role:" user ",attachments:o}),this.messagesSubject.next(this.messages)}let A={appName:this.appName,userId:this.userId,sessionId:this.sessionId,newMessage:{role:" user ",parts:yield this.getUserMessageParts()},streaming:this.useSse};this.selectedFiles=[];let i=this.eventMessageIndexArray.length-1;this.streamingTextMessage=null,this.agentService.runSse(A).subscribe({next:o=>gt(this,null,function*(){if(o.startsWith('{" error "')){this.openSnackBar(o," OK ");return}let n=JSON.parse(o);if(n.error){this.openSnackBar(n.error," OK ");return}if(n.content)for(let g of n.content.parts)i+=1,this.processPart(n,g,i);this.changeDetectorRef.detectChanges()}),error:o=>console.error(" SSE error : ",o),complete:()=>{this.streamingTextMessage=null,this.sessionTab.reloadSession(this.sessionId),this.eventService.getTrace(this.sessionId).pipe(Xe(o=>o.status===404?oA(null):oA([]))).subscribe(o=>{this.traceData=o})}}),this.userInput="",this.changeDetectorRef.detectChanges()})}processPart(e,A,i){let o=e.groundingMetadata?.searchEntryPoint?.renderedContent;if(A.text){this.isModelThinkingSubject.next(!1);let n=A.text;if(A.thought){if(n!==this.latestThought){this.storeEvents(A,e,i);let g={role:" bot ",text:this.processThoughtText(n),thought:!0,eventId:e.id};this.insertMessageBeforeLoadingMessage(g)}this.latestThought=n}else if(this.streamingTextMessage){if(o&&(this.streamingTextMessage.renderedContent=e.groundingMetadata.searchEntryPoint.renderedContent),n==this.streamingTextMessage.text){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=n,this.streamingTextMessage=null;return}this.streamingTextMessage.text+=n,this.streamingTextMessageSubject.next(this.streamingTextMessage)}else if(this.streamingTextMessage={role:" bot " , text : this . processThoughtText ( n ), thought :!! A . thought , eventId : e . id }, o && ( this . streamingTextMessage . renderedContent = e . groundingMetadata . searchEntryPoint . renderedContent ), this . insertMessageBeforeLoadingMessage ( this . streamingTextMessage ), ! this . useSse ){ this . storeEvents ( A , e , i ), this . eventMessageIndexArray [ i ] = n , this . streamingTextMessage = null ; return }} else A . thought ? this . isModelThinkingSubject . next