MCPcopy
hub / github.com/google/adk-python / sn

Function sn

src/google/adk/cli/browser/main-3CUQG2IN.js:94–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92`],encapsulation:2,changeDetection:0})}return i})(),f7="_mat-snack-bar-enter",m7="_mat-snack-bar-exit",RrA=(()=>{class i extends n2{_ngZone=w(We);_elementRef=w(ce);_changeDetectorRef=w(Mt);_platform=w(Qi);_animationsDisabled=In();snackBarConfig=w(hB);_document=w(ci);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=w(St);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new ne;_onExit=new ne;_onEnter=new ne;_animationState="void";_live;_label;_role;_liveElementId=w(Dn).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 t=this._portalOutlet.attachComponentPortal(A);return this._afterPortalAttached(),t}attachTemplatePortal(A){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(A);return this._afterPortalAttached(),t}attachDomPortal=A=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(A);return this._afterPortalAttached(),t};onAnimationEnd(A){A===m7?this._completeExit():A===f7&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?ao(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(f7)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(f7)},200)))}exit(){return this._destroyed?oe(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?ao(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(m7)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(m7),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let A=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(a=>A.classList.add(a)):A.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,o="mdc-snackbar__label";n.classList.toggle(o,!n.querySelector(`.${o}`))}_exposeToModals(){let A=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let o=t[n],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?a.indexOf(A)===-1&&o.setAttribute("aria-owns",a+" "+A):o.setAttribute("aria-owns",A)}}_clearFromModals(){this._trackedModals.forEach(A=>{let t=A.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?A.setAttribute("aria-owns",n):A.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let A=this._elementRef.nativeElement,t=A.querySelector("[aria-hidden]"),n=A.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&Wt(Ag,7)(vrA,7),t&2){let o;se(o=le())&&(n._portalOutlet=o.first),se(o=le())&&(n._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&U("animationend",function(a){return n.onAnimationEnd(a.animationName)})("animationcancel",function(a){return n.onAnimationEnd(a.animationName)}),t&2&&_A("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[bt],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(I(0,"div",1)(1,"div",2,0)(3,"div",3),kt(4,brA,0,0,"ng-template",4),h(),lA(5,"div"),h()()),t&2&&(Q(5),ie("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[Ag],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
93`],encapsulation:2})}return i})(),NrA=new MA("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new hB}),QT=(()=>{class i{_live=w(hQ);_injector=w(St);_breakpointObserver=w(IQ);_parentSnackBar=w(i,{optional:!0,skipSelf:!0});_defaultConfig=w(NrA);_animationsDisabled=In();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=xrA;snackBarContainerComponent=RrA;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let A=this._parentSnackBar;return A?A._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(A){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=A:this._snackBarRefAtThisLevel=A}constructor(){}openFromComponent(A,t){return this._attach(A,t)}openFromTemplate(A,t){return this._attach(A,t)}open(A,t="",n){let o=P(P({},this._defaultConfig),n);return o.data={message:A,action:t},o.announcementMessage===A&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(A,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=St.create({parent:n||this._injector,providers:[{provide:hB,useValue:t}]}),a=new Fs(this.snackBarContainerComponent,t.viewContainerRef,o),r=A.attach(a);return r.instance.snackBarConfig=t,r.instance}_attach(A,t){let n=P(P(P({},new hB),this._defaultConfig),t),o=this._createOverlay(n),a=this._attachSnackBarContainer(o,n),r=new ru(a,o);if(A instanceof wo){let s=new jr(A,null,{$implicit:n.data,snackBarRef:r});r.instance=a.attachTemplatePortal(s)}else{let s=this._createInjector(n,r),l=new Fs(A,void 0,s),g=a.attachComponentPortal(l);r.instance=g.instance}return this._breakpointObserver.observe(NL.HandsetPortrait).pipe(yt(o.detachments())).subscribe(s=>{o.overlayElement.classList.toggle(this.handsetCssClass,s.matches)}),n.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(r,n),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(A,t){A.afterDismissed().subscribe(()=>{this._openedSnackBarRef==A&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&A.afterOpened().subscribe(()=>A._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{A.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):A.containerInstance.enter()}_createOverlay(A){let t=new Hg;t.direction=A.direction;let n=o2(this._injector),o=A.direction==="rtl",a=A.horizontalPosition==="left"||A.horizontalPosition==="start"&&!o||A.horizontalPosition==="end"&&o,r=!a&&A.horizontalPosition!=="center";return a?n.left("0"):r?n.right("0"):n.centerHorizontally(),A.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,Pg(this._injector,t)}_createInjector(A,t){let n=A&&A.viewContainerRef&&A.viewContainerRef.injector;return St.create({parent:n||this._injector,providers:[{provide:ru,useValue:t},{provide:ET,useValue:A.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Xc=class i{snackBar=w(QT);MAX_LENGTH=250;open(e,A,t){let n=this.truncate(e,this.MAX_LENGTH);return this.snackBar.open(n,A,t)}truncate(e,A){return e?e.length>A?e.substring(0,A)+"...":e:""}static \u0275fac=function(A){return new(A||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})};var FrA=["*",[["mat-toolbar-row"]]],LrA=["*","mat-toolbar-row"],GrA=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return i})(),uT=(()=>{class i{_elementRef=w(ce);_platform=w(Qi);_document=w(ci);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-toolbar"]],contentQueries:function(t,n,o){if(t&1&&ra(o,GrA,5),t&2){let a;se(a=le())&&(n._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(t,n){t&2&&(Ao(n.color?"mat-"+n.color:""),_A("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",n._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:LrA,decls:2,vars:0,template:function(t,n){t&1&&(Ot(FrA),Ze(0),Ze(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}
94`],encapsulation:2,changeDetection:0})}return i})();var Rr=class i{static getBaseUrlWithoutPath(){let e=window.location.href;return new URL(e).origin+"/dev-ui/"}static getApiServerBaseUrl(){return window.runtimeConfig?.backendUrl||""}static getWSServerUrl(){let e=i.getApiServerBaseUrl();return!e||e==""?window.location.host:e.startsWith("http://")?e.slice(7):e.startsWith("https://")?e.slice(8):e}};var su=class{role;text;thought;isLoading;isEditing;evalStatus;failedMetric;attachments;renderedContent;a2uiData;textParts;executableCode;codeExecutionResult;event;inlineData;functionCalls;functionResponses;actualInvocationToolUses;expectedInvocationToolUses;actualFinalResponse;expectedFinalResponse;evalScore;evalThreshold;invocationIndex;finalResponsePartIndex;toolUseIndex;error;constructor(e){if(Object.assign(this,e),this.event?.actions)for(let[A,t]of Object.entries(this.event.actions))t!==null&&typeof t=="object"&&Object.keys(t).length===0&&delete this.event.actions[A]}get stateDelta(){return this.event?.actions?.stateDelta}get artifactDelta(){return this.event?.actions?.artifactDelta}get route(){return this.event?.actions?.route}get transferToAgent(){return this.event?.actions?.transferToAgent}get nodePath(){return this.event?.nodeInfo?.path||null}get bareNodePath(){let e=this.nodePath;return e?e.split("/").map(A=>A.split("@")[0]).join("/"):null}get author(){return this.event?.author??"root_agent"}};var el=new MA("AgentService");var $c=new MA("AgentBuilderService");var EB=new MA("ArtifactService");var QB=new MA("DownloadService");var A0=new MA("EvalService");var fm=new MA("EventService");var pT="edit_function_args";var fT="a2a_card",mT="tests",wT="eval_v2",Nr=new MA("FeatureFlagService");var uB=new MA("GraphService");var mm=new MA("LocalFileService");var Qs=new MA("SafeValuesService"),wm=class{openBase64InNewTab(e,A){try{if(!e)return;let t=e;if(e.startsWith("data:")&&e.includes(";base64,")&&(t=t.substring(t.indexOf(";base64,")+8)),!A||!t)return;let n=atob(t),o=new Array(n.length);for(let l=0;l<n.length;l++)o[l]=n.charCodeAt(l);let a=new Uint8Array(o),r=new Blob([a],{type:A}),s=this.openBlobUrl(r);s?s.focus():alert("Pop-up blocked! Please allow pop-ups for this site to open the data in a new tab.")}catch(t){alert("Could not open the data. It might be invalid or too large. Check the browser console for errors.")}}};var tl=new MA("SessionService");var ym=new MA("StreamChatService");var pB=new MA("AudioRecordingService"),Dm=new MA("AudioWorkletModulePath");var fB=new MA("AudioPlayingService");var g2=new MA("StringToColorService");var ng=new MA("TraceService");var og=new MA("ThemeService");var mB=new MA("WebSocketService");var wB=new MA("LOGO_COMPONENT");var ag=new MA("UiStateService");var vm=new MA("Location");var c2=class i{http=w(Mr);zone=w(We);apiServerDomain=Rr.getApiServerBaseUrl();listTests(e){let A=`${this.apiServerDomain}/dev/apps/${e}/tests`;return this.http.get(A)}getTest(e,A){let t=`${this.apiServerDomain}/dev/apps/${e}/tests/${A}`;return this.http.get(t)}createTest(e,A,t){let n=`${this.apiServerDomain}/dev/apps/${e}/tests/${A}`;return this.http.put(n,{session_data:t})}deleteTest(e,A){let t=`${this.apiServerDomain}/dev/apps/${e}/tests/${A}`;return this.http.delete(t)}rebuildTests(e,A){let t=`${this.apiServerDomain}/dev/apps/${e}/tests/rebuild`;return A&&(t+=`?test_name=${A}`),this.http.post(t,{})}runTests(e,A){let t=`${this.apiServerDomain}/dev/apps/${e}/tests/run`;return A&&(t+=`?test_name=${A}`),new Fi(n=>{fetch(t,{method:"POST"}).then(o=>{if(!o.body){n.error("No response body");return}let a=o.body.getReader(),r=new TextDecoder("utf-8"),s=()=>{a.read().then(({done:l,value:g})=>{if(l){this.zone.run(()=>n.complete());return}let C=r.decode(g,{stream:!0});this.zone.run(()=>n.next(C)),s()}).catch(l=>{this.zone.run(()=>n.error(l))})};s()}).catch(o=>{this.zone.run(()=>n.error(o))})})}static \u0275fac=function(A){return new(A||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})};var bm=class i{constructor(e,A){this.el=e;this.renderer=A}sideDrawerMinWidth=360;sideDrawerMaxWidth=window.innerWidth/2;resizeHandle=null;resizingEvent={isResizing:!1,startingCursorX:0,startingWidth:0};ngAfterViewInit(){this.sideDrawerMaxWidth=window.innerWidth/2,this.resizeHandle=document.getElementsByClassName("resize-handler")[0],this.resizeHandle&&this.renderer.listen(this.resizeHandle,"mousedown",e=>this.onResizeHandleMouseDown(e)),document.documentElement.style.setProperty("--side-drawer-width","480px"),this.renderer.setStyle(this.el.nativeElement,"width","var(--side-drawer-width)")}onResizeHandleMouseDown(e){this.resizingEvent={isResizing:!0,startingCursorX:e.clientX,startingWidth:this.sideDrawerWidth},e.preventDefault()}onMouseMove(e){if(!this.resizingEvent.isResizing)return;let A=e.clientX-this.resizingEvent.startingCursorX,t=this.resizingEvent.startingWidth+A;this.sideDrawerWidth=t,this.renderer.addClass(document.body,"resizing")}onMouseUp(){this.resizingEvent.isResizing=!1,this.renderer.removeClass(document.body,"resizing")}onResize(){this.sideDrawerMaxWidth=window.innerWidth/2,this.sideDrawerWidth=this.sideDrawerWidth}set sideDrawerWidth(e){let A=Math.min(Math.max(e,this.sideDrawerMinWidth),this.sideDrawerMaxWidth);document.documentElement.style.setProperty("--side-drawer-width",`${A}px`)}get sideDrawerWidth(){let e=getComputedStyle(document.documentElement).getPropertyValue("--side-drawer-width"),A=parseFloat(e);return isNaN(A)?480:A}static \u0275fac=function(A){return new(A||i)(st(ce),st(on))};static \u0275dir=VA({type:i,selectors:[["","appResizableDrawer",""]],hostBindings:function(A,t){A&1&&U("mousemove",function(o){return t.onMouseMove(o)},mI)("mouseup",function(){return t.onMouseUp()},mI)("resize",function(){return t.onResize()},Fg)}})};var Mm=Symbol.for("yaml.alias"),Sm=Symbol.for("yaml.document"),jg=Symbol.for("yaml.map"),w7=Symbol.for("yaml.pair"),_l=Symbol.for("yaml.scalar"),Z0=Symbol.for("yaml.seq"),Ks=Symbol.for("yaml.node.type"),rg=i=>!!i&&typeof i=="object"&&i[Ks]===Mm,Vg=i=>!!i&&typeof i=="object"&&i[Ks]===Sm,qg=i=>!!i&&typeof i=="object"&&i[Ks]===jg,Tn=i=>!!i&&typeof i=="object"&&i[Ks]===w7,sn=i=>!!i&&typeof i=="object"&&i[Ks]===_l,Wg=i=>!!i&&typeof i=="object"&&i[Ks]===Z0;function vo(i){if(i&&typeof i=="object")switch(i[Ks]){case jg:case Z0:return!0}return!1}function Pn(i){if(i&&typeof i=="object")switch(i[Ks]){case Mm:case jg:case _l:case Z0:return!0}return!1}var km=i=>(sn(i)||vo(i))&&!!i.anchor;var il=Symbol("break visit"),yT=Symbol("skip children"),e0=Symbol("remove node");function t0(i,e){let A=DT(e);Vg(i)?yB(null,i.contents,A,Object.freeze([i]))===e0&&(i.contents=null):yB(null,i,A,Object.freeze([]))}t0.BREAK=il;t0.SKIP=yT;t0.REMOVE=e0;function yB(i,e,A,t){let n=vT(i,e,A,t);if(Pn(n)||Tn(n))return bT(i,t,n),yB(i,n,A,t);if(typeof n!="symbol"){if(vo(e)){t=Object.freeze(t.concat(e));for(let o=0;o<e.items.length;++o){let a=yB(o,e.items[o],A,t);if(typeof a=="number")o=a-1;else{if(a===il)return il;a===e0&&(e.items.splice(o,1),o-=1)}}}else if(Tn(e)){t=Object.freeze(t.concat(e));let o=yB("key",e.key,A,t);if(o===il)return il;o===e0&&(e.key=null);let a=yB("value",e.value,A,t);if(a===il)return il;a===e0&&(e.value=null)}}return n}function _m(i,e){return re(this,null,function*(){let A=DT(e);Vg(i)?(yield DB(null,i.contents,A,Object.freeze([i])))===e0&&(i.contents=null):yield DB(null,i,A,Object.freeze([]))})}_m.BREAK=il;_m.SKIP=yT;_m.REMOVE=e0;function DB(i,e,A,t){return re(this,null,function*(){let n=yield vT(i,e,A,t);if(Pn(n)||Tn(n))return bT(i,t,n),DB(i,n,A,t);if(typeof n!="symbol"){if(vo(e)){t=Object.freeze(t.concat(e));for(let o=0;o<e.items.length;++o){let a=yield DB(o,e.items[o],A,t);if(typeof a=="number")o=a-1;else{if(a===il)return il;a===e0&&(e.items.splice(o,1),o-=1)}}}else if(Tn(e)){t=Object.freeze(t.concat(e));let o=yield DB("key",e.key,A,t);if(o===il)return il;o===e0&&(e.key=null);let a=yield DB("value",e.value,A,t);if(a===il)return il;a===e0&&(e.value=null)}}return n})}function DT(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function vT(i,e,A,t){if(typeof A=="function")return A(i,e,t);if(qg(e))return A.Map?.(i,e,t);if(Wg(e))return A.Seq?.(i,e,t);if(Tn(e))return A.Pair?.(i,e,t);if(sn(e))return A.Scalar?.(i,e,t);if(rg(e))return A.Alias?.(i,e,t)}function bT(i,e,A){let t=e[e.length-1];if(vo(t))t.items[i]=A;else if(Tn(t))i==="key"?t.key=A:t.value=A;else if(Vg(t))t.contents=A;else{let n=rg(t)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}var KrA={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},UrA=i=>i.replace(/[!,[\]{}]/g,e=>KrA[e]),vB=(()=>{class i{constructor(A,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,A),this.tags=Object.assign({},i.defaultTags,t)}clone(){let A=new i(this.yaml,this.tags);return A.docStart=this.docStart,A}atDocument(){let A=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags);break}return A}add(A,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);let n=A.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[a,r]=n;return this.tags[a]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[a]=n;if(a==="1.1"||a==="1.2")return this.yaml.version=a,!0;{let r=/^\d+\.\d+$/.test(a);return t(6,`Unsupported YAML version ${a}`,r),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(A,t){if(A==="!")return"!";if(A[0]!=="!")return t(`Not a valid tag: ${A}`),null;if(A[1]==="<"){let r=A.slice(2,-1);return r==="!"||r==="!!"?(t(`Verbatim tags aren't resolved, so ${A} is invalid.`),null):(A[A.length-1]!==">"&&t("Verbatim tags must end with a >"),r)}let[,n,o]=A.match(/^(.*!)([^!]*)$/s);o||t(`The ${A} tag has no suffix`);let a=this.tags[n];if(a)try{return a+decodeURIComponent(o)}catch(r){return t(String(r)),null}return n==="!"?A:(t(`Could not resolve tag: ${A}`),null)}tagString(A){for(let[t,n]of Object.entries(this.tags))if(A.startsWith(n))return t+UrA(A.substring(n.length));return A[0]==="!"?A:`!<${A}>`}toString(A){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),o;if(A&&n.length>0&&Pn(A.contents)){let a={};t0(A.contents,(r,s)=>{Pn(s)&&s.tag&&(a[s.tag]=!0)}),o=Object.keys(a)}else o=[];for(let[a,r]of n)a==="!!"&&r==="tag:yaml.org,2002:"||(!A||o.some(s=>s.startsWith(r)))&&t.push(`%TAG ${a} ${r}`);return t.join(`
95`)}}return i.defaultYaml={explicit:!1,version:"1.2"},i.defaultTags={"!!":"tag:yaml.org,2002:"},i})();function xm(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){let A=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(A)}return!0}function y7(i){let e=new Set;return t0(i,{Value(A,t){t.anchor&&e.add(t.anchor)}}),e}function D7(i,e){for(let A=1;;++A){let t=`${i}${A}`;if(!e.has(t))return t}}function MT(i,e){let A=[],t=new Map,n=null;return{onAnchor:o=>{A.push(o),n??(n=y7(i));let a=D7(e,n);return n.add(a),a},setAnchors:()=>{for(let o of A){let a=t.get(o);if(typeof a=="object"&&a.anchor&&(sn(a.node)||vo(a.node)))a.node.anchor=a.anchor;else{let r=new Error("Failed to resolve repeated object (this should not happen)");throw r.source=o,r}}},sourceObjects:t}}function C2(i,e,A,t){if(t&&typeof t=="object")if(Array.isArray(t))for(let n=0,o=t.length;n<o;++n){let a=t[n],r=C2(i,t,String(n),a);r===void 0?delete t[n]:r!==a&&(t[n]=r)}else if(t instanceof Map)for(let n of Array.from(t.keys())){let o=t.get(n),a=C2(i,t,n,o);a===void 0?t.delete(n):a!==o&&t.set(n,a)}else if(t instanceof Set)for(let n of Array.from(t)){let o=C2(i,t,n,n);o===void 0?t.delete(n):o!==n&&(t.delete(n),t.add(o))}else for(let[n,o]of Object.entries(t)){let a=C2(i,t,n,o);a===void 0?delete t[n]:a!==o&&(t[n]=a)}return i.call(e,A,t)}function pr(i,e,A){if(Array.isArray(i))return i.map((t,n)=>pr(t,String(n),A));if(i&&typeof i.toJSON=="function"){if(!A||!km(i))return i.toJSON(e,A);let t={aliasCount:0,count:1,res:void 0};A.anchors.set(i,t),A.onCreate=o=>{t.res=o,delete A.onCreate};let n=i.toJSON(e,A);return A.onCreate&&A.onCreate(n),n}return typeof i=="bigint"&&!A?.keep?Number(i):i}var d2=class{constructor(e){Object.defineProperty(this,Ks,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:A,maxAliasCount:t,onAnchor:n,reviver:o}={}){if(!Vg(e))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:e,keep:!0,mapAsMap:A===!0,mapKeyWarned:!1,maxAliasCount:typeof t=="number"?t:100},r=pr(this,"",a);if(typeof n=="function")for(let{count:s,res:l}of a.anchors.values())n(l,s);return typeof o=="function"?C2(o,{"":r},"",r):r}};var X0=class extends d2{constructor(e){super(Mm),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,A){let t;A?.aliasResolveCache?t=A.aliasResolveCache:(t=[],t0(e,{Node:(o,a)=>{(rg(a)||km(a))&&t.push(a)}}),A&&(A.aliasResolveCache=t));let n;for(let o of t){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(e,A){if(!A)return{source:this.source};let{anchors:t,doc:n,maxAliasCount:o}=A,a=this.resolve(n,A);if(!a){let s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let r=t.get(a);if(r||(pr(a,null,A),r=t.get(a)),r?.res===void 0){let s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(o>=0&&(r.count+=1,r.aliasCount===0&&(r.aliasCount=Rm(n,a,t)),r.count*r.aliasCount>o)){let s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return r.res}toString(e,A,t){let n=`*${this.source}`;if(e){if(xm(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(e.implicitKey)return`${n} `}return n}};function Rm(i,e,A){if(rg(e)){let t=e.resolve(i),n=A&&t&&A.get(t);return n?n.count*n.aliasCount:0}else if(vo(e)){let t=0;for(let n of e.items){let o=Rm(i,n,A);o>t&&(t=o)}return t}else if(Tn(e)){let t=Rm(i,e.key,A),n=Rm(i,e.value,A);return Math.max(t,n)}return 1}var Nm=i=>!i||typeof i!="function"&&typeof i!="object",$t=(()=>{class i extends d2{constructor(A){super(_l),this.value=A}toJSON(A,t){return t?.keep?this.value:pr(this.value,A,t)}toString(){return String(this.value)}}return i.BLOCK_FOLDED="BLOCK_FOLDED",i.BLOCK_LITERAL="BLOCK_LITERAL",i.PLAIN="PLAIN",i.QUOTE_DOUBLE="QUOTE_DOUBLE",i.QUOTE_SINGLE="QUOTE_SINGLE",i})();var TrA="tag:yaml.org,2002:";function OrA(i,e,A){if(e){let t=A.filter(o=>o.tag===e),n=t.find(o=>!o.format)??t[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return A.find(t=>t.identify?.(i)&&!t.format)}function $0(i,e,A){if(Vg(i)&&(i=i.contents),Pn(i))return i;if(Tn(i)){let C=A.schema[jg].createNode?.(A.schema,null,A);return C.items.push(i),C}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());let{aliasDuplicateObjects:t,onAnchor:n,onTagObj:o,schema:a,sourceObjects:r}=A,s;if(t&&i&&typeof i=="object"){if(s=r.get(i),s)return s.anchor??(s.anchor=n(i)),new X0(s.anchor);s={anchor:null,node:null},r.set(i,s)}e?.startsWith("!!")&&(e=TrA+e.slice(2));let l=OrA(i,e,a.tags);if(!l){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){let C=new $t(i);return s&&(s.node=C),C}l=i instanceof Map?a[jg]:Symbol.iterator in Object(i)?a[Z0]:a[jg]}o&&(o(l),delete A.onTagObj);let g=l?.createNode?l.createNode(A.schema,i,A):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(A.schema,i,A):new $t(i);return e?g.tag=e:l.default||(g.tag=l.tag),s&&(s.node=g),g}function lu(i,e,A){let t=A;for(let n=e.length-1;n>=0;--n){let o=e[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=t,t=a}else t=new Map([[o,t]])}return $0(t,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}var MB=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done,bB=class extends d2{constructor(e,A){super(e),Object.defineProperty(this,"schema",{value:A,configurable:!0,enumerable:!1,writable:!0})}clone(e){let A=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(A.schema=e),A.items=A.items.map(t=>Pn(t)||Tn(t)?t.clone(e):t),this.range&&(A.range=this.range.slice()),A}addIn(e,A){if(MB(e))this.add(A);else{let[t,...n]=e,o=this.get(t,!0);if(vo(o))o.addIn(n,A);else if(o===void 0&&this.schema)this.set(t,lu(this.schema,n,A));else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}deleteIn(e){let[A,...t]=e;if(t.length===0)return this.delete(A);let n=this.get(A,!0);if(vo(n))return n.deleteIn(t);throw new Error(`Expected YAML collection at ${A}. Remaining path: ${t}`)}getIn(e,A){let[t,...n]=e,o=this.get(t,!0);return n.length===0?!A&&sn(o)?o.value:o:vo(o)?o.getIn(n,A):void 0}hasAllNullValues(e){return this.items.every(A=>{if(!Tn(A))return!1;let t=A.value;return t==null||e&&sn(t)&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn(e){let[A,...t]=e;if(t.length===0)return this.has(A);let n=this.get(A,!0);return vo(n)?n.hasIn(t):!1}setIn(e,A){let[t,...n]=e;if(n.length===0)this.set(t,A);else{let o=this.get(t,!0);if(vo(o))o.setIn(n,A);else if(o===void 0&&this.schema)this.set(t,lu(this.schema,n,A));else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}}};var ST=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function sg(i,e){return/^\n+$/.test(i)?i.substring(1):e?i.replace(/^(?! *$)/gm,e):i}var i0=(i,e,A)=>i.endsWith(`
96`)?sg(A,e):A.includes(`
97`)?`

Callers 15

kmFunction · 0.70
vTFunction · 0.70
MTFunction · 0.70
getInMethod · 0.70
hasAllNullValuesMethod · 0.70
HrAFunction · 0.70
zrAFunction · 0.70
ACFunction · 0.70
_TFunction · 0.70
xTFunction · 0.70
I2Function · 0.70
addMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected