"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
__._F_toggles_initialize=function(a){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=a||[]};(0,__._F_toggles_initialize)([0x600, ]);
/*

 Copyright 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald
 SPDX-License-Identifier: MIT
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
 @param {!tsickle_zone_impl_1.ZonePrivate} api
 @param {?} target
 @param {string} targetName
 @param {string} method
 @param {!Array<string>} callbacks
 @return {void}
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 The MIT License

 Copyright (c) 2014-2016 Google, Inc. http://angular.io

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 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.
*/
/*
 @license
 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var g,aa=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},baa=function(){var a=aaa;return aa(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},daa=function(a){return aa(function(b){return caa(b)?b.every(function(c){return a(c)}):!1})},eaa=function(a,b){return Object.defineProperty(b,"type",{value:a,writable:!1})},faa=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,u){q&&q.prototype&&e.forEach(function(A){var G=
c+"."+d+"::"+A,H=q.prototype;try{if(H.hasOwnProperty(A)){var N=a.ObjectGetOwnPropertyDescriptor(H,A);N&&N.value?(N.value=a.wrapWithCurrentZone(N.value,G),a._redefineProperty(q.prototype,A,N)):H[A]&&(H[A]=a.wrapWithCurrentZone(H[A],G))}else H[A]&&(H[A]=a.wrapWithCurrentZone(H[A],G))}catch(O){}});return h.call(b,k,q,u)};a.attachOriginToPatched(b[d],h)}},ca=function(a){return(ba.__Zone_symbol_prefix||"__zone_symbol__")+a},gaa=function(){function a(va){h&&h.mark&&h.mark(va)}function b(va,Ja){h&&h.measure&&
h.measure(va,Ja)}function c(va){da||ba[H]&&(da=ba[H].resolve(0));if(da){var Ja=da[N];Ja||(Ja=da.then);Ja.call(da,va)}else ba[G](va,0)}function d(va){gb===0&&O.length===0&&c(e);va&&O.push(va)}function e(){if(!U){for(U=!0;O.length;){var va=O;O=[];for(var Ja=0;Ja<va.length;Ja++){var La=va[Ja];try{La.zone.runTask(La,null,null)}catch(Lb){Ga.onUnhandledError(Lb)}}}Ga.microtaskDrainDone();U=!1}}function f(){}var h=ba.performance;a("Zone");var k=function(va,Ja){this._parent=va;this._name=Ja?Ja.name||"unnamed":
"<root>";this._properties=Ja&&Ja.properties||{};this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,Ja)};k.assertZonePatched=function(){if(ba.Promise!==ra.ZoneAwarePromise)throw Error("x");};k.__load_patch=function(va,Ja,La){La=La===void 0?!1:La;if(ra.hasOwnProperty(va)){if(Ja=ba[ca("forceDuplicateZoneCheck")]===!0,!La&&Ja)throw Error("y`"+va);}else ba["__Zone_disable_"+va]||(La="Zone:"+va,a(La),ra[va]=Ja(ba,k,Ga),b(La,La))};k.prototype.get=function(va){var Ja=this.getZoneWith(va);
if(Ja)return Ja._properties[va]};k.prototype.getZoneWith=function(va){for(var Ja=this;Ja;){if(Ja._properties.hasOwnProperty(va))return Ja;Ja=Ja._parent}return null};k.prototype.fork=function(va){if(!va)throw Error("z");return this._zoneDelegate.fork(this,va)};k.prototype.wrap=function(va,Ja){if(typeof va!=="function")throw Error("A`"+va);var La=this._zoneDelegate.intercept(this,va,Ja),Lb=this;return function(){return Lb.runGuarded(La,this,arguments,Ja)}};k.prototype.run=function(va,Ja,La,Lb){Na={parent:Na,
zone:this};try{return this._zoneDelegate.invoke(this,va,Ja,La,Lb)}finally{Na=Na.parent}};k.prototype.runGuarded=function(va,Ja,La,Lb){Na={parent:Na,zone:this};try{try{return this._zoneDelegate.invoke(this,va,Ja===void 0?null:Ja,La,Lb)}catch(Eb){if(this._zoneDelegate.handleError(this,Eb))throw Eb;}}finally{Na=Na.parent}};k.prototype.runTask=function(va,Ja,La){if(va.zone!=this)throw Error("B`"+(va.zone||ma).name+"`"+this.name);var Lb=va.type,Eb=va.data===void 0?{}:va.data,jc=Eb.isPeriodic===void 0?
!1:Eb.isPeriodic;Eb=Eb.isRefreshable===void 0?!1:Eb.isRefreshable;if(va.state!=="notScheduled"||Lb!=="eventTask"&&Lb!=="macroTask"){var nc=va.state!="running";nc&&va._transitionTo("running","scheduled");var Jc=Qa;Qa=va;Na={parent:Na,zone:this};try{Lb!="macroTask"||!va.data||jc||Eb||(va.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,va,Ja,La)}catch(ec){if(this._zoneDelegate.handleError(this,ec))throw ec;}}finally{Ja=va.state,Ja!=="notScheduled"&&Ja!=="unknown"&&(Lb=="eventTask"||jc||
Eb&&Ja==="scheduling"?nc&&va._transitionTo("scheduled","running","scheduling"):(Lb=va._zoneDelegates,this._updateTaskCount(va,-1),nc&&va._transitionTo("notScheduled","running","notScheduled"),Eb&&(va._zoneDelegates=Lb))),Na=Na.parent,Qa=Jc}}};k.prototype.scheduleTask=function(va){if(va.zone&&va.zone!==this)for(var Ja=this;Ja;){if(Ja===va.zone)throw Error("C`"+this.name+"`"+va.zone.name);Ja=Ja.parent}va._transitionTo("scheduling","notScheduled");Ja=[];va._zoneDelegates=Ja;va._zone=this;try{va=this._zoneDelegate.scheduleTask(this,
va)}catch(La){throw va._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,La),La;}va._zoneDelegates===Ja&&this._updateTaskCount(va,1);va.state=="scheduling"&&va._transitionTo("scheduled","scheduling");return va};k.prototype.scheduleMicroTask=function(va,Ja,La,Lb){return this.scheduleTask(new A("microTask",va,Ja,La,Lb,void 0))};k.prototype.scheduleMacroTask=function(va,Ja,La,Lb,Eb){return this.scheduleTask(new A("macroTask",va,Ja,La,Lb,Eb))};k.prototype.scheduleEventTask=
function(va,Ja,La,Lb,Eb){return this.scheduleTask(new A("eventTask",va,Ja,La,Lb,Eb))};k.prototype.cancelTask=function(va){if(va.zone!=this)throw Error("D`"+(va.zone||ma).name+"`"+this.name);if(va.state==="scheduled"||va.state==="running"){va._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,va)}catch(Ja){throw va._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Ja),Ja;}this._updateTaskCount(va,-1);va._transitionTo("notScheduled","canceling");
va.runCount=-1;return va}};k.prototype._updateTaskCount=function(va,Ja){var La=va._zoneDelegates;Ja==-1&&(va._zoneDelegates=null);for(var Lb=0;Lb<La.length;Lb++)La[Lb]._updateTaskCount(va.type,Ja)};ea.Object.defineProperties(k.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});ea.Object.defineProperties(k,{root:{configurable:!0,enumerable:!0,get:function(){for(var va=k.current;va.parent;)va=
va.parent;return va}},current:{configurable:!0,enumerable:!0,get:function(){return Na.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return Qa}}});k.__symbol__=ca;var q={name:"",onHasTask:function(va,Ja,La,Lb){return va.hasTask(La,Lb)},onScheduleTask:function(va,Ja,La,Lb){return va.scheduleTask(La,Lb)},onInvokeTask:function(va,Ja,La,Lb,Eb,jc){return va.invokeTask(La,Lb,Eb,jc)},onCancelTask:function(va,Ja,La,Lb){return va.cancelTask(La,Lb)}},u=function(va,Ja,La){this._taskCounts=
{microTask:0,macroTask:0,eventTask:0};this._zone=va;this._parentDelegate=Ja;this._forkZS=La&&(La&&La.onFork?La:Ja._forkZS);this._forkDlgt=La&&(La.onFork?Ja:Ja._forkDlgt);this._forkCurrZone=La&&(La.onFork?this._zone:Ja._forkCurrZone);this._interceptZS=La&&(La.onIntercept?La:Ja._interceptZS);this._interceptDlgt=La&&(La.onIntercept?Ja:Ja._interceptDlgt);this._interceptCurrZone=La&&(La.onIntercept?this._zone:Ja._interceptCurrZone);this._invokeZS=La&&(La.onInvoke?La:Ja._invokeZS);this._invokeDlgt=La&&
(La.onInvoke?Ja:Ja._invokeDlgt);this._invokeCurrZone=La&&(La.onInvoke?this._zone:Ja._invokeCurrZone);this._handleErrorZS=La&&(La.onHandleError?La:Ja._handleErrorZS);this._handleErrorDlgt=La&&(La.onHandleError?Ja:Ja._handleErrorDlgt);this._handleErrorCurrZone=La&&(La.onHandleError?this._zone:Ja._handleErrorCurrZone);this._scheduleTaskZS=La&&(La.onScheduleTask?La:Ja._scheduleTaskZS);this._scheduleTaskDlgt=La&&(La.onScheduleTask?Ja:Ja._scheduleTaskDlgt);this._scheduleTaskCurrZone=La&&(La.onScheduleTask?
this._zone:Ja._scheduleTaskCurrZone);this._invokeTaskZS=La&&(La.onInvokeTask?La:Ja._invokeTaskZS);this._invokeTaskDlgt=La&&(La.onInvokeTask?Ja:Ja._invokeTaskDlgt);this._invokeTaskCurrZone=La&&(La.onInvokeTask?this._zone:Ja._invokeTaskCurrZone);this._cancelTaskZS=La&&(La.onCancelTask?La:Ja._cancelTaskZS);this._cancelTaskDlgt=La&&(La.onCancelTask?Ja:Ja._cancelTaskDlgt);this._cancelTaskCurrZone=La&&(La.onCancelTask?this._zone:Ja._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=
this._hasTaskZS=null;va=La&&La.onHasTask;var Lb=Ja&&Ja._hasTaskZS;if(va||Lb)this._hasTaskZS=va?La:q,this._hasTaskDlgt=Ja,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,La.onScheduleTask||(this._scheduleTaskZS=q,this._scheduleTaskDlgt=Ja,this._scheduleTaskCurrZone=this._zone),La.onInvokeTask||(this._invokeTaskZS=q,this._invokeTaskDlgt=Ja,this._invokeTaskCurrZone=this._zone),La.onCancelTask||(this._cancelTaskZS=q,this._cancelTaskDlgt=Ja,this._cancelTaskCurrZone=this._zone)};u.prototype.fork=
function(va,Ja){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,va,Ja):new k(va,Ja)};u.prototype.intercept=function(va,Ja,La){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,va,Ja,La):Ja};u.prototype.invoke=function(va,Ja,La,Lb,Eb){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,va,Ja,La,Lb,Eb):Ja.apply(La,Lb)};u.prototype.handleError=function(va,Ja){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,va,Ja):!0};u.prototype.scheduleTask=function(va,Ja){var La=Ja;if(this._scheduleTaskZS)this._hasTaskZS&&La._zoneDelegates.push(this._hasTaskDlgtOwner),(La=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,va,Ja))||(La=Ja);else if(Ja.scheduleFn)Ja.scheduleFn(Ja);else if(Ja.type=="microTask")d(Ja);else throw Error("E");return La};u.prototype.invokeTask=function(va,Ja,La,Lb){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,va,Ja,La,Lb):Ja.callback.apply(La,Lb)};u.prototype.cancelTask=function(va,Ja){if(this._cancelTaskZS)va=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,va,Ja);else{if(!Ja.cancelFn)throw Error("F");va=Ja.cancelFn(Ja)}return va};u.prototype.hasTask=function(va,Ja){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,va,Ja)}catch(La){this.handleError(va,La)}};u.prototype._updateTaskCount=function(va,Ja){var La=this._taskCounts,
Lb=La[va];Ja=La[va]=Lb+Ja;if(Ja<0)throw Error("G");Lb!=0&&Ja!=0||this.hasTask(this._zone,{microTask:La.microTask>0,macroTask:La.macroTask>0,eventTask:La.eventTask>0,change:va})};ea.Object.defineProperties(u.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}}});var A=function(va,Ja,La,Lb,Eb,jc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=va;this.source=Ja;this.data=Lb;this.scheduleFn=Eb;this.cancelFn=jc;if(!La)throw Error("H");
this.callback=La;var nc=this;this.invoke=va==="eventTask"&&Lb&&Lb.useG?A.invokeTask:function(){return A.invokeTask.call(ba,nc,this,arguments)}};A.invokeTask=function(va,Ja,La){va||(va=this);gb++;try{return va.runCount++,va.zone.runTask(va,Ja,La)}finally{gb==1&&e(),gb--}};A.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};A.prototype._transitionTo=function(va,Ja,La){if(this._state===Ja||this._state===La)this._state=va,va=="notScheduled"&&(this._zoneDelegates=
null);else throw Error("I`"+this.type+"`"+this.source+"`"+va+"`"+Ja+"`"+(La?" or '"+La+"'":"")+"`"+this._state);};A.prototype.toString=function(){return this.data&&typeof this.data.handleId!=="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)};A.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};ea.Object.defineProperties(A.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},
state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var G=ca("setTimeout"),H=ca("Promise"),N=ca("then"),O=[],U=!1,da,ma={name:"NO ZONE"},ra={},Ga={symbol:ca,currentZoneFrame:function(){return Na},onUnhandledError:f,microtaskDrainDone:f,scheduleMicroTask:d,showUncaughtError:function(){return!k[ca("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:f,patchMethod:function(){return f},bindArguments:function(){return[]},patchThen:function(){return f},
patchMacroTask:function(){return f},patchEventPrototype:function(){return f},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return f},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return f},wrapWithCurrentZone:function(){return f},filterProperties:function(){return[]},attachOriginToPatched:function(){return f},_redefineProperty:function(){return f},patchCallbacks:function(){return f},
nativeScheduleMicroTask:c},Na={parent:null,zone:new k(null,null)},Qa=null,gb=0;b("Zone","Zone");return k},haa=function(a,b){return Zone.current.wrap(a,b)},iaa=function(a,b){for(var c=a.length-1;c>=0;c--)typeof a[c]==="function"&&(a[c]=haa(a[c],b+"_"+c));return a},kaa=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$111:void 0},e++){d.name$jscomp$111=b[e];var f=a[d.name$jscomp$111];if(f){var h=fa(a,d.name$jscomp$111);jaa(h)&&(a[d.name$jscomp$111]=
function(k){return function(q){var u=function(){return q.apply(this,iaa(arguments,c+"."+k.name$jscomp$111))};ha(u,q);return u}}(d)(f))}}},jaa=function(a){return a?a.writable===!1?!1:!(typeof a.get==="function"&&typeof a.set==="undefined"):!0},oaa=function(a,b,c){var d=fa(a,b);!d&&c&&fa(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=ca("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,h=b.slice(2),k=laa[h];k||(k=laa[h]=ca("ON_PROPERTY"+
h));d.set=function(q){var u=this;u||a!==ia||(u=ia);u&&(typeof u[k]==="function"&&u.removeEventListener(h,maa),f&&f.call(u,null),u[k]=q,typeof q==="function"&&u.addEventListener(h,maa,!1))};d.get=function(){var q=this;q||a!==ia||(q=ia);if(!q)return null;var u=q[k];return u?u:e&&(u=e.call(this))?(d.set.call(this,u),typeof q.removeAttribute==="function"&&q.removeAttribute(b),u):null};naa(a,b,d);a[c]=!0}},paa=function(a,b,c){if(b)for(var d=0;d<b.length;d++)oaa(a,"on"+b[d],c);else{b=[];for(d in a)d.slice(0,
2)=="on"&&b.push(d);for(d=0;d<b.length;d++)oaa(a,b[d],c)}},ka=function(a){var b=ia[a];if(b){ia[ca(a)]=b;ia[a]=function(){var e=iaa(arguments,a);switch(e.length){case 0:this[ja]=new b;break;case 1:this[ja]=new b(e[0]);break;case 2:this[ja]=new b(e[0],e[1]);break;case 3:this[ja]=new b(e[0],e[1],e[2]);break;case 4:this[ja]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("J");}};ha(ia[a],b);var c=new b(function(){}),d;for(d in c)a==="XMLHttpRequest"&&d==="responseBlob"||function(e){typeof c[e]===
"function"?ia[a].prototype[e]=function(){return this[ja][e].apply(this[ja],arguments)}:naa(ia[a].prototype,e,{set:function(f){typeof f==="function"?(this[ja][e]=haa(f,a+"."+e),ha(this[ja][e],f)):this[ja][e]=f},get:function(){return this[ja][e]}})}(d);for(d in b)d!=="prototype"&&b.hasOwnProperty(d)&&(ia[a][d]=b[d])}},la=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=qaa(d);!d&&a[b]&&(d=a);a=ca(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&fa(d,b);if(jaa(f)){var h=
c(e,a,b);d[b]=function(){return h(this,arguments)};ha(d[b],e)}}return e},raa=function(a,b,c){function d(f){var h=f.data;h.args[h.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(h.target,h.args);return f}var e=null;e=la(a,b,function(f){return function(h,k){var q=c(h,k);return q.cbIdx>=0&&typeof k[q.cbIdx]==="function"?Zone.current.scheduleMacroTask(q.name,k[q.cbIdx],q,d,void 0):f.apply(h,k)}})},ha=function(a,b){a[ca("OriginalDelegate")]=b},uaa=function(){if(saa)return taa;saa=!0;try{var a=
na.navigator.userAgent;if(a.indexOf("MSIE ")!==-1||a.indexOf("Trident/")!==-1||a.indexOf("Edge/")!==-1)taa=!0}catch(b){}return taa},vaa=function(a,b,c){if(!c||c.length===0)return b;c=c.filter(function(e){return e.target===a});if(!c||c.length===0)return b;var d=c[0].ignoreProperties;return b.filter(function(e){return d.indexOf(e)===-1})},waa=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&b.length>2}).map(function(b){return b.substring(2)})},xaa=function(a,
b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=oa+c;b=oa+b;pa[a]={};pa[a]["false"]=c;pa[a]["true"]=b},Eaa=function(a,b,c,d){function e(ma,ra,Ga){if(ra=ra||a.event){ma=ma||ra.target||a;var Na=ma[pa[ra.type][Ga?"true":"false"]];if(Na){Ga=[];if(Na.length===1)(ra=H(Na[0],ma,ra))&&Ga.push(ra);else{Na=Na.slice();for(var Qa=0;Qa<Na.length&&(!ra||ra[yaa]!==!0);Qa++){var gb=H(Na[Qa],ma,ra);gb&&Ga.push(gb)}}if(Ga.length===1)throw Ga[0];ra={};for(ma=0;ma<Ga.length;ra={err$jscomp$18:void 0},ma++)ra.err$jscomp$18=
Ga[ma],b.nativeScheduleMicroTask(function(va){return function(){throw va.err$jscomp$18;}}(ra))}}}function f(ma,ra){function Ga(Jb,Cc){return!qa&&typeof Jb==="object"&&Jb?!!Jb.capture:qa&&Cc?typeof Jb==="boolean"?{capture:Jb,passive:!0}:Jb?typeof Jb==="object"&&Jb.passive!==!1?Object.assign({},Jb,{passive:!0}):Jb:{passive:!0}:Jb}function Na(Jb){if(typeof Jb==="object"&&Jb!==null){var Cc=Object.assign({},Jb);Jb.signal&&(Cc.signal=Jb.signal);return Cc}return Jb}if(!ma)return!1;var Qa=!0;ra&&ra.useG!==
void 0&&(Qa=ra.useG);var gb=ra&&ra.vh,va=!0;ra&&ra.chkDup!==void 0&&(va=ra.chkDup);var Ja=!1;ra&&ra.rt!==void 0&&(Ja=ra.rt);for(var La=ma;La&&!La.hasOwnProperty(h);)La=qaa(La);!La&&ma[h]&&(La=ma);if(!La||La[A])return!1;var Lb=ra&&ra.eventNameToString,Eb={},jc=La[A]=La[h],nc=La[ca(k)]=La[k];ma=La[ca(q)]=La[q];var Jc=La[ca(u)]=La[u],ec;ra&&ra.prepend&&(ec=La[ca(ra.prepend)]=La[ra.prepend]);var ye=function(Jb){if(!Jb.isRemoved){var Cc=pa[Jb.eventName],Gc;Cc&&(Gc=Cc[Jb.capture?"true":"false"]);if(Cc=
Gc&&Jb.target[Gc])for(var Qd=0;Qd<Cc.length;Qd++)if(Cc[Qd]===Jb){Cc.splice(Qd,1);Jb.isRemoved=!0;Jb.removeAbortListener&&(Jb.removeAbortListener(),Jb.removeAbortListener=null);Cc.length===0&&(Jb.allRemoved=!0,Jb.target[Gc]=null);break}}if(Jb.allRemoved)return nc.call(Jb.target,Jb.eventName,Jb.capture?O:N,Jb.options)},yb=function(Jb){return jc.call(Eb.target,Eb.eventName,Jb.invoke,Eb.options)},Pb=function(Jb){return ec.call(Eb.target,Eb.eventName,Jb.invoke,Eb.options)},Ya=function(Jb){return nc.call(Jb.target,
Jb.eventName,Jb.invoke,Jb.options)};ye=Qa?ye:Ya;Ya=function(Jb,Cc){var Gc=typeof Cc;return Gc==="function"&&Jb.callback===Cc||Gc==="object"&&Jb.originalDelegate===Cc};var dc=ra&&ra.diff?ra.diff:Ya,uc=Zone[ca("UNPATCHED_EVENTS")],rd=a[ca("PASSIVE_EVENTS")];Ya=function(Jb,Cc,Gc,Qd,Ed,Vf){Ed=Ed===void 0?!1:Ed;Vf=Vf===void 0?!1:Vf;return function(){var Qh=this||a,yh=arguments[0];ra&&ra.transferEventName&&(yh=ra.transferEventName(yh));var yq=arguments[1];if(!yq||zaa&&yh==="uncaughtException")return Jb.apply(this,
arguments);var jUa=!1;if(typeof yq!=="function"){if(!yq.handleEvent)return Jb.apply(this,arguments);jUa=!0}if(!gb||gb(Jb,yq,Qh,arguments)){var YV=qa&&!!rd&&rd.indexOf(yh)!==-1,Bs=Na(Ga(arguments[2],YV)),SL=Bs==null?void 0:Bs.signal;if(SL==null||!SL.aborted){if(uc)for(var ZV=0;ZV<uc.length;ZV++)if(yh===uc[ZV])return YV?Jb.call(Qh,yh,yq,Bs):Jb.apply(this,arguments);YV=Bs?typeof Bs==="boolean"?!0:Bs.capture:!1;ZV=Bs&&typeof Bs==="object"?Bs.once:!1;var Gwb=Zone.current,pv=pa[yh];pv||(xaa(yh,Lb),pv=pa[yh]);
var Gz=pv[YV?"true":"false"];pv=Qh[Gz];var TL=!1;if(pv){if(TL=!0,va)for(Gz=0;Gz<pv.length;Gz++)if(dc(pv[Gz],yq))return}else pv=Qh[Gz]=[];var dka;Gz=Qh.constructor.name;var lUa=Aaa[Gz];lUa&&(dka=lUa[yh]);dka||(dka=Gz+Cc+(Lb?Lb(yh):yh));Eb.options=Bs;ZV&&(Eb.options.once=!1);Eb.target=Qh;Eb.capture=YV;Eb.eventName=yh;Eb.isExisting=TL;if(TL=Qa?Baa:void 0)TL.taskData=Eb;SL&&(Eb.options.signal=void 0);var Cs=Gwb.scheduleEventTask(dka,yq,TL,Gc,Qd);if(SL){Eb.options.signal=SL;var mUa=function(){return Cs.zone.cancelTask(Cs)};
Jb.call(SL,"abort",mUa,{once:!0});Cs.removeAbortListener=function(){return SL.removeEventListener("abort",mUa)}}Eb.target=null;TL&&(TL.taskData=null);ZV&&(Eb.options.once=!0);if(qa||typeof Cs.options!=="boolean")Cs.options=Bs;Cs.target=Qh;Cs.capture=YV;Cs.eventName=yh;jUa&&(Cs.originalDelegate=yq);Vf?pv.unshift(Cs):pv.push(Cs);if(Ed)return Qh}}}};La[h]=Ya(jc,G,Qa?function(){if(!Eb.isExisting)return jc.call(Eb.target,Eb.eventName,Eb.capture?O:N,Eb.options)}:yb,ye,Ja);ec&&(La.prependListener=Ya(ec,
".prependListener:",Pb,ye,Ja,!0));La[k]=function(){var Jb=this||a,Cc=arguments[0];ra&&ra.transferEventName&&(Cc=ra.transferEventName(Cc));var Gc=arguments[2];Gc=Gc?typeof Gc==="boolean"?!0:Gc.capture:!1;var Qd=arguments[1];if(!Qd)return nc.apply(this,arguments);if(!gb||gb(nc,Qd,Jb,arguments)){var Ed=pa[Cc],Vf;Ed&&(Vf=Ed[Gc?"true":"false"]);if(Ed=Vf&&Jb[Vf])for(var Qh=0;Qh<Ed.length;Qh++){var yh=Ed[Qh];if(dc(yh,Qd)){Ed.splice(Qh,1);yh.isRemoved=!0;Ed.length===0&&(yh.allRemoved=!0,Jb[Vf]=null,Gc||typeof Cc!==
"string"||(Jb[oa+"ON_PROPERTY"+Cc]=null));yh.zone.cancelTask(yh);if(Ja)return Jb;return}}return nc.apply(this,arguments)}};La[q]=function(){var Jb=this||a,Cc=arguments[0];ra&&ra.transferEventName&&(Cc=ra.transferEventName(Cc));var Gc=[];Jb=Caa(Jb,Lb?Lb(Cc):Cc);for(Cc=0;Cc<Jb.length;Cc++){var Qd=Jb[Cc];Gc.push(Qd.originalDelegate?Qd.originalDelegate:Qd.callback)}return Gc};La[u]=function(){var Jb=this||a,Cc=arguments[0];if(Cc){ra&&ra.transferEventName&&(Cc=ra.transferEventName(Cc));var Gc=pa[Cc];if(Gc){var Qd=
Jb[Gc["false"]];Jb=Jb[Gc["true"]];if(Qd)for(Qd=Qd.slice(),Gc=0;Gc<Qd.length;Gc++){var Ed=Qd[Gc];this[k].call(this,Cc,Ed.originalDelegate?Ed.originalDelegate:Ed.callback,Ed.options)}if(Jb)for(Jb=Jb.slice(),Qd=0;Qd<Jb.length;Qd++)Gc=Jb[Qd],this[k].call(this,Cc,Gc.originalDelegate?Gc.originalDelegate:Gc.callback,Gc.options)}}else{Cc=Object.keys(Jb);for(Jb=0;Jb<Cc.length;Jb++)(Qd=(Qd=Daa.exec(Cc[Jb]))&&Qd[1])&&Qd!=="removeListener"&&this[u].call(this,Qd);this[u].call(this,"removeListener")}if(Ja)return this};
ha(La[h],jc);ha(La[k],nc);Jc&&ha(La[u],Jc);ma&&ha(La[q],ma);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",u=d&&d.rmAll||"removeAllListeners",A=ca(h),G="."+h+":",H=function(ma,ra,Ga){if(!ma.isRemoved){var Na=ma.callback;typeof Na==="object"&&Na.handleEvent&&(ma.callback=function(va){return Na.handleEvent(va)},ma.originalDelegate=Na);try{ma.invoke(ma,ra,[Ga])}catch(va){var Qa=va}var gb=ma.options;gb&&typeof gb==="object"&&gb.once&&
ra[k].call(ra,Ga.type,ma.originalDelegate?ma.originalDelegate:ma.callback,gb);return Qa}},N=function(ma){return e(this,ma,!1)},O=function(ma){return e(this,ma,!0)},U=[],da=0;da<c.length;da++)U[da]=f(c[da],d);return U},Caa=function(a,b){if(!b){var c=[],d;for(d in a){var e=Daa.exec(d);if((e=e&&e[1])&&(!b||e===b)&&(e=a[d]))for(var f=0;f<e.length;f++)c.push(e[f])}return c}c=pa[b];c||(xaa(b),c=pa[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Faa=function(a,b){(a=a.Event)&&
a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[yaa]=!0;c&&c.apply(d,e)}})},Kaa=function(){sa.__load_patch("util",function(a,b,c){var d=waa(a);c.patchOnProperties=paa;c.patchMethod=la;c.bindArguments=iaa;c.patchMacroTask=raa;var e=b.__symbol__("BLACK_LISTED_EVENTS"),f=b.__symbol__("UNPATCHED_EVENTS");a[f]&&(a[e]=a[f]);a[e]&&(b[e]=b[f]=a[e]);c.patchEventPrototype=Faa;c.patchEventTarget=Eaa;c.isIEOrEdge=uaa;c.ObjectDefineProperty=naa;c.ObjectGetOwnPropertyDescriptor=
fa;c.ObjectCreate=Gaa;c.ArraySlice=Haa;c.patchClass=ka;c.wrapWithCurrentZone=haa;c.filterProperties=vaa;c.attachOriginToPatched=ha;c._redefineProperty=Object.defineProperty;c.patchCallbacks=faa;c.getGlobalObjects=function(){return{globalSources:Aaa,zoneSymbolEventNames:pa,eventNames:d,isBrowser:Iaa,isMix:Jaa,isNode:zaa,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:oa,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})},Raa=function(){Laa=Zone.__symbol__;
Maa=Object[Laa("defineProperty")]=Object.defineProperty;Naa=Object[Laa("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;Oaa=Object.create;ta=Laa("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[ta]&&a[ta][b])throw new TypeError("K`"+b+"`"+a);var d=c.configurable;b!=="prototype"&&(c=Paa(a,b,c));return Qaa(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=l(Object.getOwnPropertySymbols(b)),d=c.next();!d.done;d=
c.next()){d=d.value;var e=void 0;((e=Object.getOwnPropertyDescriptor(b,d))==null?0:e.enumerable)&&Object.defineProperty(a,d,b[d])}return a};Object.create=function(a,b){typeof b!=="object"||Object.isFrozen(b)||Object.keys(b).forEach(function(c){b[c]=Paa(a,c,b[c])});return Oaa(a,b)};Object.getOwnPropertyDescriptor=function(a,b){var c=Naa(a,b);c&&a&&a[ta]&&a[ta][b]&&(c.configurable=!1);return c}},Saa=function(a,b,c){var d=c.configurable;c=Paa(a,b,c);return Qaa(a,b,c,d)},Paa=function(a,b,c){Object.isFrozen(c)||
(c.configurable=!0);c.configurable||(a[ta]||Object.isFrozen(a)||Maa(a,ta,{writable:!0,value:{}}),a[ta]&&(a[ta][b]=!0));return c},Qaa=function(a,b,c,d){try{return Maa(a,b,c)}catch(e){if(c.configurable){typeof d=="undefined"?delete c.configurable:c.configurable=d;try{return Maa(a,b,c)}catch(f){d=!1;if(b==="createdCallback"||b==="attachedCallback"||b==="detachedCallback"||b==="attributeChangedCallback")d=!0;if(!d)throw f;d=null;try{d=JSON.stringify(c)}catch(h){d=c.toString()}console.log("Attempting to configure '"+
b+"' with descriptor '"+d+"' on object '"+a+"' and got error, giving up: "+f)}}else throw e;}},Taa=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,u="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var A="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=A.map(function(ra){return"HTML"+ra+"Element"}).concat(u):
a.EventTarget?c.push("EventTarget"):c=u;var G=a.__Zone_disable_IE_check||!1,H=a.__Zone_enable_cross_context_check||!1,N=b.isIEOrEdge(),O={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(u=0;u<d.length;u++){var U=d[u],da=q+(U+k),ma=q+(U+h);f[U]={};f[U][k]=da;f[U][h]=ma}for(f=0;f<A.length;f++)for(h=
A[f],k=e[h]={},q=0;q<d.length;q++)u=d[q],k[u]=h+".addEventListener:"+u;d=[];for(e=0;e<c.length;e++)A=a[c[e]],d.push(A&&A.prototype);b.patchEventTarget(a,b,d,{vh:function(ra,Ga,Na,Qa){if(!G&&N)if(H)try{var gb=Ga.toString();if(gb==="[object FunctionWrapper]"||gb=="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }")return ra.apply(Na,Qa),!1}catch(va){return ra.apply(Na,Qa),!1}else{if(Ga=Ga.toString(),Ga==="[object FunctionWrapper]"||Ga=="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }")return ra.apply(Na,
Qa),!1}else if(H)try{Ga.toString()}catch(va){return ra.apply(Na,Qa),!1}return!0},transferEventName:function(ra){return O[ra]||ra}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},Uaa=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var u=arguments.length>1?new f(k,q):new f(k),A=a.ObjectGetOwnPropertyDescriptor(u,"onmessage");if(A&&A.configurable===!1){var G=
a.ObjectCreate(u);var H=u;[d,e,"send","close"].forEach(function(N){G[N]=function(){var O=a.ArraySlice.call(arguments);if(N===d||N===e){var U=O.length>0?O[0]:void 0;U&&(U=Zone.__symbol__("ON_PROPERTY"+U),u[U]=G[U])}return u[N].apply(u,O)}})}else G=u;a.patchOnProperties(G,["close","error","message","open"],H);return G};c=b.WebSocket;for(var h in f)c[h]=f[h]},Vaa=function(a,b){var c=a.getGlobalObjects(),d=c.isMix;if((c.isBrowser||d)&&!a.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&
typeof Element!=="undefined"){if((c=a.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick"))&&!c.configurable)return!1;if(c)return a.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}}),d=!!document.createElement("div").onclick,a.ObjectDefineProperty(Element.prototype,"onclick",c),d}var e=b.XMLHttpRequest;if(!e)return!1;c=e.prototype;if(d=a.ObjectGetOwnPropertyDescriptor(c,"onreadystatechange"))return a.ObjectDefineProperty(c,"onreadystatechange",
{enumerable:!0,configurable:!0,get:function(){return!0}}),e=!!(new e).onreadystatechange,a.ObjectDefineProperty(c,"onreadystatechange",d||{}),e;var f=a.symbol("fake");a.ObjectDefineProperty(c,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[f]},set:function(h){this[f]=h}});a=new e;c=function(){};a.onreadystatechange=c;c=a[f]===c;a.onreadystatechange=null;return c},Xaa=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<Waa.length;c={onproperty:void 0},d++){var e=Waa[d];
c.onproperty="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.onproperty:"unknown."+f.onproperty;h;){if(h[f.onproperty]&&!h[f.onproperty][b]){var q=a.wrapWithCurrentZone(h[f.onproperty],k);q[b]=h[f.onproperty];h[f.onproperty]=q}h=h.parentElement}}}(c),!0)}},Yaa=function(){var a=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};a[(a.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=
function(){var b=a.Zone;b.__load_patch("defineProperty",function(c,d,e){e._redefineProperty=Saa;Raa()});b.__load_patch("registerElement",function(c,d,e){d=e.getGlobalObjects();var f=d.isMix;(d.isBrowser||f)&&"registerElement"in c.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])});b.__load_patch("EventTargetLegacy",function(c,d,e){Taa(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||Vaa(e,
c)||(d=typeof WebSocket!=="undefined",Xaa(e),e.patchClass("XMLHttpRequest"),d&&Uaa(e,c),Zone[e.symbol("patchEvents")]=!0)})}},Zaa=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},ua=function(a,b,c,d){function e(u){var A=u.data;A.args[0]=function(){return u.invoke.apply(this,arguments)};var G=h.apply(a,A.args);typeof G==="number"?A.handleId=G:(A.handle=G,A.isRefreshable=typeof G.refresh==="function");return u}function f(u){u=
u.data;var A=u.handleId,G;return k.call(a,(G=u.handle)!=null?G:A)}var h=null,k=null;b+=d;c+=d;var q={};h=la(a,b,function(u){return function(A,G){if(typeof G[0]==="function"){var H={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?G[1]||0:void 0,args:G},N=G[0];G[0]=function(){try{return N.apply(this,arguments)}finally{var Ga=H.handle,Na=H.handleId,Qa=H.isRefreshable;H.isPeriodic||Qa||(Na?delete q[Na]:Ga&&(Ga[$aa]=null))}};var O=Zone.current.scheduleMacroTask(b,G[0],H,
e,f);if(!O)return O;var U=O.data;A=U.handleId;G=U.handle;var da=U.isRefreshable;U=U.isPeriodic;if(A)q[A]=O;else if(G&&(G[$aa]=O,da&&!U)){var ma=G.refresh;G.refresh=function(){var Ga=O.zone,Na=O.state;Na==="notScheduled"?(O._state="scheduled",Ga._updateTaskCount(O,1)):Na==="running"&&(O._state="scheduling");return ma.call(this)}}var ra;return(ra=G!=null?G:A)!=null?ra:O}return u.apply(a,G)}});k=la(a,c,function(u){return function(A,G){A=G[0];if(typeof A==="number"){var H=q[A];delete q[A]}else(H=A==null?
void 0:A[$aa])?A[$aa]=null:H=A;var N;((N=H)==null?0:N.type)?H.cancelFn&&H.zone.cancelTask(H):u.apply(a,G)}})},cba=function(){var a=sa;a.__load_patch("legacy",function(b){(b=b[a.__symbol__("legacyPatch")])&&b()});a.__load_patch("timers",function(b){ua(b,"set","clear","Timeout");ua(b,"set","clear","Interval");ua(b,"set","clear","Immediate")});a.__load_patch("requestAnimationFrame",function(b){ua(b,"request","cancel","AnimationFrame");ua(b,"mozRequest","mozCancel","AnimationFrame");ua(b,"webkitRequest",
"webkitCancel","AnimationFrame")});a.__load_patch("blocking",function(b,c){for(var d=["alert","prompt","confirm"],e=0;e<d.length;e++)la(b,d[e],function(f,h,k){return function(q,u){return c.current.run(f,b,u,k)}})});a.__load_patch("EventTarget",function(b,c,d){d.patchEventPrototype(b,d);if(!Zone[d.symbol("patchEventTarget")]){var e=d.getGlobalObjects();c=e.eventNames;var f=e.zoneSymbolEventNames,h=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var q=0;q<c.length;q++){var u=c[q],A=e+(u+k),G=e+
(u+h);f[u]={};f[u][k]=A;f[u][h]=G}(c=b.EventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c&&c.prototype])}(c=b.XMLHttpRequestEventTarget)&&c.prototype&&d.patchEventTarget(b,d,[c.prototype])});a.__load_patch("MutationObserver",function(){ka("MutationObserver");ka("WebKitMutationObserver")});a.__load_patch("IntersectionObserver",function(){ka("IntersectionObserver")});a.__load_patch("FileReader",function(){ka("FileReader")});a.__load_patch("on_property",function(b,c,d){if((!zaa||Jaa)&&!Zone[d.symbol("patchEvents")]){c=
b.__Zone_ignore_on_properties;d=[];if(Iaa){var e=window;d=d.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var f=na.navigator.userAgent;if(f.indexOf("MSIE ")!==-1||f.indexOf("Trident/")!==-1){var h=!0;break a}}catch(q){}h=!1}f=h?[{target:e,ignoreProperties:["error"]}]:[];h=waa(e);var k=c?c.concat(f):c;f=qaa(e);e&&(h=vaa(e,h,k),paa(e,h,f))}d=d.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));
for(e=0;e<d.length;e++)(f=b[d[e]])&&f.prototype&&(h=f.prototype,f=waa(f.prototype),h&&(f=vaa(h,f,c),paa(h,f,void 0)))}});a.__load_patch("customElements",function(b,c,d){c=d.getGlobalObjects();var e=c.isMix;(c.isBrowser||e)&&b.customElements&&"customElements"in b&&d.patchCallbacks(d,b.customElements,"customElements","define","connectedCallback disconnectedCallback adoptedCallback attributeChangedCallback formAssociatedCallback formDisabledCallback formResetCallback formStateRestoreCallback".split(" "))});
a.__load_patch("XHR",function(b,c){(function(u){function A(Qa){var gb=Qa.data,va=gb.target;va[h]=!1;va[q]=!1;var Ja=va[f];O||(O=va[aba],U=va[bba]);Ja&&U.call(va,"readystatechange",Ja);Ja=va[f]=function(){if(va.readyState===va.DONE)if(!gb.aborted&&va[h]&&Qa.state==="scheduled"){var La=va[c.__symbol__("loadfalse")];if(va.status!==0&&La&&La.length>0){var Lb=Qa.invoke;Qa.invoke=function(){for(var Eb=va[c.__symbol__("loadfalse")],jc=0;jc<Eb.length;jc++)Eb[jc]===Qa&&Eb.splice(jc,1);gb.aborted||Qa.state!==
"scheduled"||Lb.call(Qa)};La.push(Qa)}else Qa.invoke()}else gb.aborted||va[h]!==!1||(va[q]=!0)};O.call(va,"readystatechange",Ja);va[d]||(va[d]=Qa);Ga.apply(va,gb.args);va[h]=!0;return Qa}function G(){}function H(Qa){Qa=Qa.data;Qa.aborted=!0;return Na.apply(Qa.target,Qa.args)}var N=u.XMLHttpRequest;if(N){N=N.prototype;var O=N[aba],U=N[bba];!O&&(u=u.XMLHttpRequestEventTarget)&&(u=u.prototype,O=u[aba],U=u[bba]);var da=la(N,"open",function(){return function(Qa,gb){Qa[e]=gb[2]==0;Qa[k]=gb[1];return da.apply(Qa,
gb)}}),ma=ca("fetchTaskAborting"),ra=ca("fetchTaskScheduling"),Ga=la(N,"send",function(){return function(Qa,gb){if(c.current[ra]===!0||Qa[e])return Ga.apply(Qa,gb);gb={target:Qa,url:Qa[k],isPeriodic:!1,args:gb,aborted:!1};var va=Zone.current.scheduleMacroTask("XMLHttpRequest.send",G,gb,A,H);Qa&&Qa[q]===!0&&!gb.aborted&&va.state==="scheduled"&&va.invoke()}}),Na=la(N,"abort",function(){return function(Qa,gb){var va=Qa[d];if(va&&typeof va.type=="string")va.cancelFn==null||va.data&&va.data.aborted||va.zone.cancelTask(va);
else if(c.current[ma]===!0)return Na.apply(Qa,gb)}})}})(b);var d=ca("xhrTask"),e=ca("xhrSync"),f=ca("xhrListener"),h=ca("xhrScheduled"),k=ca("xhrURL"),q=ca("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&kaa(b.navigator.geolocation)});a.__load_patch("PromiseRejectionEvent",function(b,c){function d(e){return function(f){Caa(b,e).forEach(function(h){var k=b.PromiseRejectionEvent;k&&(k=new k(e,{promise:f.promise,reason:f.rejection}),h.invoke(k))})}}
b.PromiseRejectionEvent&&(c[ca("unhandledPromiseRejectionHandler")]=d("unhandledrejection"),c[ca("rejectionHandledHandler")]=d("rejectionhandled"))});a.__load_patch("queueMicrotask",function(b,c,d){Zaa(b,d)})},dba=function(){sa.__load_patch("canvas",function(a,b,c){a=a.HTMLCanvasElement;typeof a!=="undefined"&&a.prototype&&a.prototype.toBlob&&c.patchMacroTask(a.prototype,"toBlob",function(d,e){return{name:"HTMLCanvasElement.toBlob",target:d,cbIdx:0,args:e}})})},wa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,
wa);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b);this.reportErrorToServer=!0},eba=function(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");wa.call(this,c+a[d])},xa=function(a,b){if(a)throw Error("L");b.push(65533)},fba=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b},gba=function(a,b,c,d){c=b+c;for(var e=[],f=null,h,k,q,u;b<c;)h=a[b++],h<128?e.push(h):h<224?b>=c?xa(d,e):(k=a[b++],
h<194||(k&192)!==128?(b--,xa(d,e)):e.push((h&31)<<6|k&63)):h<240?b>=c-1?xa(d,e):(k=a[b++],(k&192)!==128||h===224&&k<160||h===237&&k>=160||((q=a[b++])&192)!==128?(b--,xa(d,e)):e.push((h&15)<<12|(k&63)<<6|q&63)):h<=244?b>=c-2?xa(d,e):(k=a[b++],(k&192)!==128||(h<<28)+(k-144)>>30!==0||((q=a[b++])&192)!==128||((u=a[b++])&192)!==128?(b--,xa(d,e)):(h=(h&7)<<18|(k&63)<<12|(q&63)<<6|u&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):xa(d,e),e.length>=8192&&(f=fba(f,e),e.length=0);return fba(f,e)},kba=
function(a,b,c,d){var e;d?(e=hba)||(e=hba=new TextDecoder("utf-8",{fatal:!0})):(e=iba)||(e=iba=new TextDecoder("utf-8",{fatal:!1}));c=b+c;a=b===0&&c===a.length?a:a.subarray(b,c);try{return e.decode(a)}catch(f){if(b=d){if(jba===void 0){try{e.decode(new Uint8Array([128]))}catch(h){}try{e.decode(new Uint8Array([97])),jba=!0}catch(h){jba=!1}}b=!jba}b&&(hba=void 0);throw f;}},oba=function(a,b){b=b===void 0?!1:b;if(lba){if(b&&(mba?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("M");
a=(nba||(nba=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var h=a.charCodeAt(++e);if(h>=56320&&h<=57343){f=(f-55296)*1024+h-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("M");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,
c)}return a},za=function(a){ya.setTimeout(function(){throw a;},0)},Aa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},pba=function(a){return Ba("@ldap.google.com",a.slice(a.length-16))==0},Ca=function(a){return/^[\s\xa0]*$/.test(a)},Ba=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},Da=function(a,b){return a.indexOf(b)!=-1},Ea=function(a,b){return Da(a.toLowerCase(),b.toLowerCase())},rba=function(a,b){var c=0;a=Fa(String(a)).split(".");
b=Fa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(f[0].length==0&&h[0].length==0)break;c=qba(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||qba(f[2].length==0,h[2].length==0)||qba(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c},qba=function(a,b){return a<b?-1:a>b?1:0},Ha=function(){var a=ya.navigator;return a&&(a=a.userAgent)?
a:""},sba=function(a){if(!Ia||!Ka)return!1;for(var b=0;b<Ka.brands.length;b++){var c=Ka.brands[b].brand;if(c&&Da(c,a))return!0}return!1},Ma=function(a){return Da(Ha(),a)},Oa=function(){return Ia?!!Ka&&Ka.brands.length>0:!1},tba=function(){return Oa()?!1:Ma("Opera")},uba=function(){return Oa()?!1:Ma("Trident")||Ma("MSIE")},Pa=function(){return Ma("Firefox")||Ma("FxiOS")},vba=function(){return Ma("Safari")&&!(Ra()||(Oa()?0:Ma("Coast"))||tba()||(Oa()?0:Ma("Edge"))||(Oa()?sba("Microsoft Edge"):Ma("Edg/"))||
(Oa()?sba("Opera"):Ma("OPR"))||Pa()||Ma("Silk")||Ma("Android"))},Ra=function(){return Oa()?sba("Chromium"):(Ma("Chrome")||Ma("CriOS"))&&!(Oa()?0:Ma("Edge"))||Ma("Silk")},wba=function(){return Ma("Android")&&!(Ra()||Pa()||tba()||Ma("Silk"))},xba=function(){var a=Ha();if(uba()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),c[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b=
"10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}}else a="";return a},yba=function(){if(Oa()){var a=Ka.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=xba();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},Sa=function(){return Ia?!!Ka&&!!Ka.platform:!1},zba=function(){return Sa()?Ka.platform==="Android":Ma("Android")},Aba=function(){return Ma("iPhone")&&!Ma("iPod")&&!Ma("iPad")},Ta=function(){return Aba()||
Ma("iPad")||Ma("iPod")},Bba=function(){return Sa()?Ka.platform==="macOS":Ma("Macintosh")},Cba=function(){return Sa()?Ka.platform==="Windows":Ma("Windows")},Dba=function(){return Sa()?Ka.platform==="Chrome OS":Ma("CrOS")},Eba=function(){var a=Ha(),b="";Cba()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Ta()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Bba()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):Ea(Ha(),"KaiOS")?
(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):zba()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Dba()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""},Ua=function(a){return a[a.length-1]},Fba=function(a,b){var c=0;Va(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},Gba=function(a,b){for(var c=typeof a==="string"?a.split(""):a,d=a.length-1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},Hba=function(a){if(!Array.isArray(a))for(var b=
a.length-1;b>=0;b--)delete a[b];a.length=0},Za=function(a,b){b=Wa(a,b);var c;(c=b>=0)&&Xa(a,b);return c},Xa=function(a,b){Array.prototype.splice.call(a,b,1)},$a=function(a,b){a:{for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}b>=0&&Xa(a,b)},ab=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},Iba=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(bb(d)){var e=a.length||
0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}},Kba=function(a,b,c,d){return Array.prototype.splice.apply(a,Jba(arguments,1))},Jba=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Lba=function(a,b,c){b=b||a;var d=function(q){return cb(q)?"o"+db(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Nba=function(a,
b){a.sort(b||Mba)},Oba=function(a,b){for(var c=Array(a.length),d=0;d<a.length;d++)c[d]={index:d,value:a[d]};var e=b||Mba;Nba(c,function(f,h){return e(f.value,h.value)||f.index-h.index});for(b=0;b<a.length;b++)a[b]=c[b].value},Mba=function(a,b){return a>b?1:a<b?-1:0},Pba=function(){for(var a=[],b=0;b<5;b+=1)a.push(b);return a},Qba=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Sba=function(a){return Rba[a]||""},Wba=function(a){if(!Tba)return Uba(a);Vba.test(a)&&
(a=a.replace(Vba,Sba));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b},eb=function(a){return Xba&&a!=null&&a instanceof Uint8Array},Yba=function(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0},Zba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b},$ba=function(){var a=Error();Zba(a,"incident");za(a)},fb=function(a){a=
Error(a);Zba(a,"warning");return a},bca=function(a,b){if(a!=null){var c;var d=(c=aca)!=null?c:aca={};c=d[a]||0;c>=b||(d[a]=c+1,$ba())}},hb=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b},kb=function(a,b){ib||jb in a||cca(a,dca);a[jb]|=b},lb=function(a,b){ib||jb in a||cca(a,dca);a[jb]=b},mb=function(a,b){a[jb]&=~b},eca=function(a){if(4&a)return 2048&a?2048:4096&a?4096:0},nb=function(a){return!!((a[jb]|
0)&2)},ob=function(a){kb(a,34);return a},fca=function(a){kb(a,32);return a},gca=function(a){return a.length==0?pb():new qb(a,rb)},sb=function(a){a=a[hca];var b=a===ica;jca&&a&&!b&&bca(kca,3);return b},tb=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object},ub=function(a,b,c){if(a==null){if(!c)throw Error();}else if(typeof a==="string")a=a?new qb(a,rb):pb();else if(a.constructor!==qb)if(eb(a))a=a.length?new qb(new Uint8Array(a),rb):pb();else{if(!b)throw Error();
a=void 0}return a},lca=function(a){return!Array.isArray(a)||a.length?!1:(a[jb]|0)&1?!0:!1},vb=function(a){if(a&2)throw Error();},wb=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();},mca=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},nca=function(a,b,c){var d=b&512?0:-1,e=a.length;b=b&64?b&256:!!e&&tb(a[e-1]);for(var f=e+(b?-1:0),h=0;h<f;h++)c(h-d,a[h]);if(b){a=a[e-1];for(var k in a)!isNaN(k)&&c(+k,a[k])}},xb=function(){return typeof BigInt==="function"},
oca=function(a){return a},zb=function(a){var b=a;if(pca(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(qca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return rca?BigInt(a):a=sca(a)?a?"1":"0":pca(a)?a.trim()||"0":String(a)},tca=function(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}},uca=function(a){var b=a>>>0;Ab=b;Bb=(a-b)/4294967296>>>0},Cb=function(a){if(a<
0){uca(-a);var b=l(vca(Ab,Bb));a=b.next().value;b=b.next().value;Ab=a>>>0;Bb=b>>>0}else uca(a)},wca=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:Db(a,b)},xca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=wca(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},Db=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else xb()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+
b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+yca(c)+yca(a));return c},yca=function(a){a=String(a);return"0000000".slice(a.length)+a},zca=function(){var a=Ab,b=Bb;b&2147483648?xb()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=l(vca(a,b)),a=b.next().value,b=b.next().value,a="-"+Db(a,b)):a=Db(a,b);return a},Aca=function(a){if(a.length<16)Cb(Number(a));else if(xb())a=BigInt(a),Ab=Number(a&BigInt(4294967295))>>>0,Bb=Number(a>>BigInt(32)&BigInt(4294967295));
else{var b=+(a[0]==="-");Bb=Ab=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),Bb*=1E6,Ab=Ab*1E6+d,Ab>=4294967296&&(Bb+=Math.trunc(Ab/4294967296),Bb>>>=0,Ab>>>=0);b&&(b=l(vca(Ab,Bb)),a=b.next().value,b=b.next().value,Ab=a,Bb=b)}},vca=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},Fb=function(a){return Array.prototype.slice.call(a)},Gb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);},Bca=function(a){if(typeof a!=="number")throw Error("R`"+typeof a+"`"+a);
return a},Hb=function(a){return a==null?a:Bca(a)},Cca=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)},Dca=function(a){if(typeof a!=="boolean")throw Error("S`"+Ib(a)+"`"+a);return a},Kb=function(a){return a==null?a:Dca(a)},Eca=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a},Nb=function(a){switch(typeof a){case "bigint":return!0;case "number":return Mb(a);case "string":return Fca.test(a);default:return!1}},
Ob=function(a){if(!Mb(a))throw fb("enum");return a|0},Gca=function(a){return a==null?a:Ob(a)},Qb=function(a){return a==null?a:Mb(a)?a|0:void 0},Rb=function(a){if(typeof a!=="number")throw fb("int32");if(!Mb(a))throw fb("int32");return a|0},Sb=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Mb(a)?a|0:void 0},Hca=function(){if(!Mb(0))throw fb("uint32");return 0},Ica=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!==
"number")return;return Mb(a)?a>>>0:void 0},Wb=function(a,b){b=b===void 0?0:b;if(!Nb(a))throw fb("int64");var c=typeof a;switch(b){case 2048:switch(c){case "string":return Tb(a);case "bigint":return String(Ub(64,a));default:return Jca(a)}case 4096:switch(c){case "string":return Kca(a);case "bigint":return zb(Ub(64,a));default:return Lca(a)}case 0:switch(c){case "string":return Tb(a);case "bigint":return zb(Ub(64,a));default:return Vb(a)}default:return Gb(b,"Unknown format requested type for int64")}},
Xb=function(a){return a==null?a:Wb(a,0)},Mca=function(a){if(a[0]==="-")return!1;var b=a.length;return b<20?!0:b===20&&Number(a.substring(0,6))<184467},Nca=function(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,6))<922337},Oca=function(a){if(a<0){Cb(a);var b=Db(Ab,Bb);a=Number(b);return Yb(a)?a:b}b=String(a);if(Mca(b))return b;Cb(a);return wca(Ab,Bb)},Pca=function(a){if(Nca(a))return a;Aca(a);return zca()},Qca=function(a){if(Mca(a))return a;
Aca(a);return Db(Ab,Bb)},Vb=function(a){a=Zb(a);Yb(a)||(Cb(a),a=xca(Ab,Bb));return a},Rca=function(a){a=Zb(a);return a>=0&&Yb(a)?a:Oca(a)},Jca=function(a){a=Zb(a);if(Yb(a))a=String(a);else{var b=String(a);Nca(b)?a=b:(Cb(a),a=zca())}return a},Sca=function(a){a=Zb(a);if(a>=0&&Yb(a))a=String(a);else{var b=String(a);Mca(b)?a=b:(Cb(a),a=Db(Ab,Bb))}return a},Tb=function(a){var b=Zb(Number(a));if(Yb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Pca(a)},Kca=function(a){var b=Zb(Number(a));
if(Yb(b))return zb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return xb()?zb(Ub(64,BigInt(a))):zb(Pca(a))},Lca=function(a){return Yb(a)?zb(Vb(a)):zb(Jca(a))},Tca=function(a){var b=Zb(Number(a));if(Yb(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Qca(a)},ac=function(a){if(a==null)return a;if(typeof a==="bigint")return $b(a)?a=Number(a):(a=Ub(64,a),a=$b(a)?Number(a):String(a)),a;if(Nb(a))return typeof a==="number"?Vb(a):Tb(a)},bc=function(a,b){b=b===void 0?!1:
b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Ub(64,a));if(Nb(a))return c==="string"?Tb(a):b?Jca(a):Vb(a)},cc=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return zb(Ub(64,a));if(Nb(a))return b==="string"?Kca(a):Lca(a)},Uca=function(a){var b=0;b=b===void 0?0:b;if(!Nb(a))throw fb("uint64");var c=typeof a;switch(b){case 2048:switch(c){case "string":return Tca(a);case "bigint":return String(fc(64,a));default:return Sca(a)}case 4096:switch(c){case "string":return b=
Zb(Number(a)),Yb(b)&&b>=0?a=zb(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=xb()?zb(fc(64,BigInt(a))):zb(Qca(a))),a;case "bigint":return zb(fc(64,a));default:return Yb(a)?zb(Rca(a)):zb(Sca(a))}case 0:switch(c){case "string":return Tca(a);case "bigint":return zb(fc(64,a));default:return Rca(a)}default:return Gb(b,"Unknown format requested type for int64")}},gc=function(a){if(a==null)return a;if(typeof a==="bigint")return a>=0&&$b(a)?a=Number(a):(a=fc(64,a),a=$b(a)?Number(a):String(a)),a;if(Nb(a))return typeof a===
"number"?Rca(a):Tca(a)},Vca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Ub(64,a));if(Nb(a)){if(b==="string")return Tb(a);if(b==="number")return Vb(a)}},Wca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(fc(64,a));if(Nb(a)){if(b==="string")return Tca(a);if(b==="number")return Rca(a)}},hc=function(a){if(typeof a!=="string")throw Error();return a},Xca=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},ic=function(a){return a==
null||typeof a==="string"?a:void 0},kc=function(a,b,c,d){if(a!=null&&typeof a==="object"&&sb(a))return a;if(!Array.isArray(a))return c?d&2?((a=b[Yca])||(a=new b,ob(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),a=b[Yca]=a),b=a):b=new b:b=void 0,b;var e=c=a[jb]|0;e===0&&(e|=d&32);e|=d&2;e!==c&&lb(a,e);return new b(a)},lc=function(a,b,c){if(b)return Dca(a);var d;return(d=Eca(a))!=null?d:c?!1:void 0},mc=function(a,b,c){a=b?Wb(a,4096):cc(a);return a==null?c?Zca:void 0:a},oc=function(a,b,c){if(b)return hc(a);
var d;return(d=ic(a))!=null?d:c?"":void 0},$ca=function(a,b,c){a=b?Ob(a):Qb(a);return a==null?c?0:void 0:a},ada=function(a,b){if(typeof b==="string")try{b=Wba(b)}catch(c){return!1}return eb(b)&&Yba(a,b)},bda=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},dda=function(a,b){if(sb(a))a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(a))return!1;if(sb(b))b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(b))return!1;
return cda(a,b,void 0,2)},eda=function(a,b,c){return cda(a,b,c,0)},cda=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return fda(a,b,c);if(b instanceof Map)return fda(b,a,c);if(a==null||b==null)return!1;if(a instanceof qb)return gda(a,b);if(b instanceof qb)return gda(b,a);if(eb(a))return ada(a,b);if(eb(b))return ada(b,a);var e=typeof a,f=typeof b;if(e!=="object"||f!=="object")return Number.isNaN(a)||Number.isNaN(b)?String(a)===String(b):bda(e)&&bda(f)?""+a===""+b:e==="boolean"&&
f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(sb(a)||sb(b))return dda(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=a[jb]|0;var h=b[jb]|0,k=a.length,q=b.length,u=Math.max(k,q);e=(f|h)&512?0:-1;(d===1||(f|h)&1)&&(d=1);f=k&&a[k-1];h=q&&b[q-1];tb(f)||(f=null);tb(h)||(h=null);k=k-e-+!!f;q=q-e-+!!h;for(var A=0;A<u;A++)if(!hda(A-e,a,f,k,b,h,q,e,c,d))return!1;if(f)for(var G in f){d=a;u=f;A=k;var H=b,N=h,O=q,U=e,da=c,ma=+G;if(!(!Number.isFinite(ma)||ma<A||ma<O||hda(ma,
d,u,A,H,N,O,U,da,2)))return!1}if(h)for(var ra in h)if((G=f&&ra in f)||(G=a,d=f,u=k,A=b,H=h,N=q,O=e,U=c,da=+ra,G=!Number.isFinite(da)||da<u||da<N?!0:hda(da,G,d,u,A,H,N,O,U,2)),!G)return!1;return!0}if(a.constructor===Object)return eda([a],[b]);throw Error();},hda=function(a,b,c,d,e,f,h,k,q,u){b=ida(a,b,c,d,k);e=ida(a,e,f,h,k);u=u===1;if(e==null&&lca(b)||b==null&&lca(e))return!0;a=u?q:q==null?void 0:q.getFieldComparisonTypeInfo(a);return cda(b,e,a,0)},ida=function(a,b,c,d,e){var f;return(f=a<d?b[a+e]:
void 0)!=null?f:c==null?void 0:c[a]},jda=function(a){return a},kda=function(a,b,c,d,e,f){a=kc(a,d,c,f);e&&(a=pc(a));return a},lda=function(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){eda(e,b.get(f),c==null?void 0:c.getFieldComparisonTypeInfo(2))||(d=!1)});return d},mda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return 0;a=a[0];b=b[0];return a===b?0:a<b?-1:1},nda=function(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=Array.prototype.slice.call(b);
b.sort(mda);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var h=b[f];if(!h||!Array.isArray(h)||h.length!==2)return!1;var k=h[0];if(k!==e){e=void 0;if(!eda(a.get(k),h[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1;e=k;d++}}return d===a.size},oda=function(a){return[a,this.get(a)]},rda=function(){return pda||(pda=new qc(ob([]),void 0,void 0,void 0,qda))},tc=function(a){var b=rc(sc);return b?a[b]:void 0},uda=function(a,b){var c=rc(sc),d;ib&&!sda&&c&&((d=a[c])==null?void 0:d[b])!=null&&
bca(tda,3)},vc=function(a,b,c,d,e){var f=d?!!(b&32):void 0;d=[];var h=a.length,k=!1;if(b&64){if(b&256){h--;var q=a[h];var u=h}else u=4294967295,q=void 0;if(!(e||b&512)){k=!0;var A;var G=((A=vda)!=null?A:oca)(q?u- -1:b>>15&1023||536870912,-1,a,q);u=G+-1}}else u=4294967295,b&1||(q=h&&a[h-1],tb(q)?(h--,u=h,G=0):q=void 0);A=void 0;for(var H=0;H<h;H++){var N=a[H];if(N!=null&&(N=c(N,f))!=null)if(H>=u){var O=void 0;((O=A)!=null?O:A={})[H- -1]=N}else d[H]=N}if(q)for(var U in q)h=q[U],h!=null&&(h=c(h,f))!=
null&&(H=+U,H<G?d[H+-1]=h:(H=void 0,((H=A)!=null?H:A={})[U]=h));A&&(k?d.push(A):d[u]=A);e&&(lb(d,b&33522241|(A!=null?290:34)),rc(sc)&&(a=tc(a))&&a instanceof wda&&(d[sc]=xda(a)));return d},yda=function(a){a[0]=wc(a[0]);a[1]=wc(a[1]);return a},wc=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return $b(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[jb]|0;return a.length===0&&b&1?void 0:vc(a,b,wc,!1,!1)}if(sb(a))return zda(a);
if(a instanceof qb)return Ada(a);if(a instanceof qc)return a=a.size!==0?Array.from(xc.prototype.entries.call(a),yda):void 0,a;return}return a},Cda=function(a){var b;(b=tc(a))==null||Bda(b,a);return vc(a,0,wc,void 0,!1)},Fda=function(a,b){if(b){vda=b==null||b===oca||b[Dda]!==Eda?oca:b;try{return zda(a)}finally{vda=void 0}}return zda(a)},zda=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vc(a,a[jb]|0,wc,void 0,!1)},Ida=function(a){switch(typeof a){case "boolean":return Gda||
(Gda=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Hda||(Hda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},yc=function(a,b,c){a=Jda(a,b[0],b[1],c?1:2);b!==Gda&&c&&kb(a,8192);return a},m=function(a,b,c){return Jda(a,b,c,3)},Jda=function(a,b,c,d){if(a==null){var e=96;c?(a=[c],e|=512):a=[];b&&(e=e&-33521665|(b&1023)<<15)}else{if(!Array.isArray(a))throw Error("W");e=a[jb]|0;8192&e||!(64&e)||2&e||Kda();if(e&1024)throw Error("Y");if(e&64)return d!==3||e&16384||lb(a,e|
16384),a;d===1||d===2||(e|=64);if(c&&(e|=512,c!==a[0]))throw Error("Z");a:{c=a;var f=c.length;if(f){var h=f-1,k=c[h];if(tb(k)){e|=256;b=e&512?0:-1;h-=b;if(h>=1024)throw Error("aa");for(var q in k)f=+q,f<h&&(c[f+b]=k[q],delete k[q]);e=e&-33521665|(h&1023)<<15;break a}}if(b){q=Math.max(b,f-(e&512?0:-1));if(q>1024)throw Error("ba");e=e&-33521665|(q&1023)<<15}}}d===3&&(e|=16384);lb(a,e);return a},Kda=function(){bca(Lda,5)},Mda=function(a,b){if(typeof a==="string")return{buffer:Wba(a),isImmutable:b};if(Array.isArray(a))return{buffer:new Uint8Array(a),
isImmutable:b};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===qb)return{buffer:zc(a)||new Uint8Array(0),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("ka");},Ac=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[jb]|0;return a.length===0&&c&1?void 0:c&2?a:b&&(c===0||c&32&&!(c&
64)&&c&16)?(kb(a,34),c&4&&Object.freeze(a),a):vc(a,c,Ac,b!==void 0,!0)}if(sb(a))return Nda(a);if(a instanceof qc){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=ob(Array.from(xc.prototype.entries.call(a)));if(a.valueCtor)for(a=0;a<c.length;a++){var d=c[a],e=d[1];if(e==null||typeof e!=="object")e=void 0;else if(sb(e))e=Nda(e);else if(Array.isArray(e)){var f=e[jb]|0;b&32&&(f===0||f&32&&!(f&64)&&f&16)?kb(e,34):e=vc(e,f,Ac,!0,!0)}else e=void 0;d[1]=e}return c}if(a instanceof qb)return a},Nda=function(a){var b=
a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[jb]|0;return c&2?a:vc(b,c,Ac,!0,!0)},pc=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(!((b[jb]|0)&2))return a;a=new a.constructor(vc(b,b[jb]|0,Ac,!0,!0));mb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return a},Oda=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[jb]|0;return c&2?a:new a.constructor(vc(b,c,Ac,!0,!0))},Bc=function(a,b,c,d){var e=b&512?0:-1,f=c+
e,h=a.length-1;if(f>=h&&b&256)return a[h][c]=d,b;if(f<=h)return a[f]=d,b;d!==void 0&&(h=b>>15&1023||536870912,c>=h?d!=null&&(f={},a[h+e]=(f[c]=d,f),b|=256,lb(a,b)):a[f]=d);return b},Hc=function(a,b,c,d,e,f){var h=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=h[jb]|0,q=2&k?1:d;e=!!e;d=Pda(h,k,b);var u=d[jb]|0;var A=u;4&A?f==null?a=!1:(!e&&f===0&&(2048&A||4096&A)&&(a.constructor[Qda]=(a.constructor[Qda]|0)+1)<5&&$ba(),a=f===0?!1:!(f&A)):a=!0;if(a){4&u&&(d=Fb(d),u=Dc(u,k),k=Bc(h,k,b,d));
for(A=a=0;a<d.length;a++){var G=c(d[a]);G!=null&&(d[A++]=G)}A<a&&(d.length=A);u=Rda(u,k);u=(u|20)&-2049;u&=-4097;f&&(u|=f);lb(d,u);2&u&&Object.freeze(d)}q===1||q===4&&32&u?Ec(u)||(e=u,u|=2,u!==e&&lb(d,u),Object.freeze(d)):(q===2&&Ec(u)&&(d=Fb(d),u=Dc(u,k),u=Fc(u,k,e),lb(d,u),k=Bc(h,k,b,d)),Ec(u)||(b=u,u=Fc(u,k,e),u!==b&&lb(d,u)));return d},Pda=function(a,b,c){a=Ic(a,b,c);return Array.isArray(a)?a:Sda},Rda=function(a,b){a===0&&(a=Dc(a,b));return a|1},Ec=function(a){return!!(2&a)&&!!(4&a)||!!(1024&
a)},Tda=function(a){return ub(a,!0,!0)},Uda=function(a,b,c,d,e,f,h){var k=b&2;a:{var q=c,u=b&2;c=!1;if(q==null){if(u){a=rda();break a}q=[]}else if(q.constructor===qc){if((q.arrayState&2)==0||u){a=q;break a}q=Array.from(xc.prototype.entries.call(q))}else Array.isArray(q)?c=nb(q):q=[];if(u){if(!q.length){a=rda();break a}c||(c=!0,ob(q))}else if(c){c=!1;u=Fb(q);for(q=0;q<u.length;q++){var A=u[q]=Fb(u[q]);Array.isArray(A[1])&&(A[1]=ob(A[1]))}q=u}c||((q[jb]|0)&64?mb(q,32):32&b&&fca(q));f=new qc(q,e,f,h);
Bc(a,b,d,f);a=f}!k&&e&&(a.callToMutableOnAccess=!0);return a},Kc=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var d=a[jb]|0;return Uda(a,d,Ic(a,d,b),b,void 0,oc,c)},Lc=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var e=a[jb]|0;return Uda(a,e,Ic(a,e,b),b,c,d)},Mc=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[jb]|0;vb(f);if(c==null)return Bc(e,f,b),a;var h=c[jb]|0,k=h,q=Ec(h),u=q||Object.isFrozen(c);
q||(h=0);u||(c=Fb(c),k=0,h=Dc(h,f),h=Fc(h,f,!0),u=!1);h|=21;var A;q=(A=eca(h))!=null?A:0;for(A=0;A<c.length;A++){var G=c[A],H=d(G,q);Object.is(G,H)||(u&&(c=Fb(c),k=0,h=Dc(h,f),h=Fc(h,f,!0),u=!1),c[A]=H)}h!==k&&(u&&(c=Fb(c),h=Dc(h,f),h=Fc(h,f,!0)),lb(c,h));Bc(e,f,b,c);return a},Nc=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[jb]|0;vb(f);Bc(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a},Vda=function(a){if(ib){var b;return(b=a[Oc])!=null?b:a[Oc]=new Map}if(Oc in
a)return a[Oc];b=new Map;Object.defineProperty(a,Oc,{value:b});return b},Wda=function(a,b,c,d){var e=a.get(d);if(e!=null)return e;for(var f=e=0;f<d.length;f++){var h=d[f];Ic(b,c,h)!=null&&(e!==0&&(c=Bc(b,c,e)),e=h)}a.set(d,e);return e},Xda=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var d=a[jb]|0,e=Ic(a,d,c);b=kc(e,b,!1,d);b!==e&&b!=null&&Bc(a,d,c,b);return b},Yda=function(a,b,c,d,e,f,h){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var k=!!(2&b),q=k?1:
e;f=!!f;h&&(h=!k);e=Pda(a,b,d);var u=e[jb]|0;k=!!(4&u);if(!k){u=Rda(u,b);var A=e,G=b,H=!!(2&u);H&&(G|=2);for(var N=!H,O=!0,U=0,da=0;U<A.length;U++){var ma=kc(A[U],c,!1,G);if(ma instanceof c){if(!H){var ra=nb(ma.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);N&&(N=!ra);O&&(O=ra)}A[da++]=ma}}da<U&&(A.length=da);u|=4;u=O?u|16:u&-17;u=N?u|8:u&-9;lb(A,u);H&&Object.freeze(A)}if(h&&!(8&u||!e.length&&(q===1||q===4&&32&u))){Ec(u)&&(e=Fb(e),u=Dc(u,b),b=Bc(a,b,d,e));c=e;h=u;for(A=0;A<c.length;A++)u=
c[A],G=pc(u),u!==G&&(c[A]=G);h|=8;h=c.length?h&-17:h|16;lb(c,h);u=h}q===1||q===4&&32&u?Ec(u)||(b=u,u|=!e.length||16&u&&(!k||32&u)?2:1024,u!==b&&lb(e,u),Object.freeze(e)):(q===2&&Ec(u)&&(e=Fb(e),u=Dc(u,b),u=Fc(u,b,f),lb(e,u),b=Bc(a,b,d,e)),Ec(u)||(d=u,u=Fc(u,b,f),u!==d&&lb(e,u)));return e},Dc=function(a,b){a=(2&b?a|2:a&-3)|32;return a&=-1025},Fc=function(a,b,c){32&b&&c||(a&=-33);return a},Pc=function(a,b,c,d,e,f,h,k,q){vb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[jb]|0);b=Hc(a,b,f,2,
!0);var u;f=(u=eca(b[jb]|0))!=null?u:0;if(k)if(Array.isArray(d))for(e=d.length,h=0;h<e;h++)b.push(c(d[h],f));else for(d=l(d),e=d.next();!e.done;e=d.next())b.push(c(e.value,f));else h&&q?(e!=null||(e=b.length-1),wb(b,e),b.splice(e,h)):(h&&mca(b,e),e!=void 0?b.splice(e,h,c(d,f)):b.push(c(d,f)));return a},Qc=function(a,b,c,d,e,f,h){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[jb]|0;vb(k);a=Yda(a,k,c,b,2,!0);if(f&&h)e!=null||(e=a.length-1),wb(a,e),a.splice(e,f);else return f?mca(a,e):
d=d!=null?d:new c,e!=void 0?a.splice(e,f,d):a.push(d),nb(d.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows)?mb(a,8):mb(a,16),d},Zda=function(a){return bc(a,!0)},$da=function(a){return ub(a,!1,!1)},aea=function(a,b){if(b==null)return new a;if(!Array.isArray(b))throw Error("U");if(Object.isFrozen(b)||Object.isSealed(b)||!Object.isExtensible(b))throw Error("V");kb(b,128);return new a(fca(b))},bea=function(){sa.__load_patch("Error",function(a,b,c){function d(Ga){for(var Na={zoneName:Ga.zone.name},
Qa=Na;Ga.parent;){Ga=Ga.parent;var gb={zoneName:Ga.zone.name};Na=Na.parent=gb}return Qa}function e(Ga,Na,Qa){Qa=Qa===void 0?!0:Qa;Ga=Ga.split("\n");for(var gb=0;Ga[gb]!==A&&Ga[gb]!==G&&Ga[gb]!==H&&Ga[gb]!==N&&Ga[gb]!==O&&gb<Ga.length;)gb++;for(;gb<Ga.length&&Na;gb++){var va=Ga[gb];if(va.trim())switch(u[va]){case h.zoneJsInternal:Ga.splice(gb,1);gb--;break;case h.transition:Na.parent?Na=Na.parent:Na=null;Ga.splice(gb,1);gb--;break;default:Ga[gb]+=Qa?" ["+Na.zone.name+"]":" ["+Na.zoneName+"]"}}return Ga.join("\n")}
function f(){var Ga=this,Na=q.apply(this,arguments),Qa=Na.originalStack=Na.stack;if(f.stackRewrite&&Qa){var gb=c.currentZoneFrame();if(U==="lazy")Na[c.symbol("zoneFrameNames")]=d(gb);else if(U==="default")try{Na.stack=Na.zoneAwareStack=e(Qa,gb)}catch(va){}}return this instanceof q&&this.constructor!=q?(Object.keys(Na).concat("stack","message").forEach(function(va){var Ja=Na[va];if(Ja!==void 0)try{Ga[va]=Ja}catch(La){}}),this):Na}var h={zoneJsInternal:0,transition:1},k=c.symbol("zoneJsInternalStackFrames"),
q=a[c.symbol("Error")]=a.Error,u={},A,G,H,N,O;a.Error=f;var U=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=q.prototype;f[k]=u;f.stackRewrite=!1;var da=c.symbol("zoneAwareStack");U==="lazy"&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[da]||(this[da]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[da]},set:function(Ga){this.originalStack=Ga;this[da]=
e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var ma=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(q))&&a.forEach(function(Ga){ma.filter(function(Na){return Na===Ga}).length===0&&Object.defineProperty(f,Ga,{get:function(){return q[Ga]},set:function(Na){q[Ga]=Na}})});q.hasOwnProperty("stackTraceLimit")&&(q.stackTraceLimit=Math.max(q.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return q.stackTraceLimit},set:function(Ga){return q.stackTraceLimit=
Ga}}));q.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(Ga,Na){q.captureStackTrace(Ga,Na)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return q.prepareStackTrace},set:function(Ga){return Ga&&typeof Ga==="function"?q.prepareStackTrace=function(Na,Qa){if(Qa)for(var gb=0;gb<Qa.length;gb++)if(Qa[gb].getFunctionName()==="zoneCaptureStackTrace"){Qa.splice(gb,1);break}return Ga.call(this,Na,Qa)}:q.prepareStackTrace=Ga}});if(U!=="disable"){var ra=
b.current.fork({name:"detect",onHandleError:function(Ga,Na,Qa,gb){if(gb.originalStack&&Error===f)for(Ga=gb.originalStack.split(/\n/),gb=Qa=Na=!1;Ga.length;){var va=Ga.shift();if(/:\d+:\d+/.test(va)||va==="ZoneAwareError"){var Ja=va.split("(")[0].split("@")[0],La=h.transition;Ja.indexOf("ZoneAwareError")!==-1&&(Ja.indexOf("new ZoneAwareError")!==-1?(A=va,G=va.replace("new ZoneAwareError","new Error.ZoneAwareError")):(H=va,N=va.replace("Error.",""),va.indexOf("Error.ZoneAwareError")===-1&&(O=va.replace("ZoneAwareError",
"Error.ZoneAwareError"))),u[G]=h.zoneJsInternal);Ja.indexOf("runGuarded")!==-1?Qa=!0:Ja.indexOf("runTask")!==-1?gb=!0:Ja.indexOf("run")!==-1?Na=!0:La=h.zoneJsInternal;u[va]=La;if(Na&&Qa&&gb){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(Ga,Na,Qa,gb){return Ga.scheduleTask(Qa,gb)},onInvokeTask:function(Ga,Na,Qa,gb,va,Ja){return Ga.invokeTask(Qa,gb,va,Ja)},onCancelTask:function(Ga,Na,Qa,gb){return Ga.cancelTask(Qa,gb)},onInvoke:function(Ga,Na,Qa,gb,va,Ja,La){return Ga.invoke(Qa,
gb,va,Ja,La)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;ra.run(function(){ra.runGuarded(function(){var Ga=function(){};ra.scheduleEventTask(k,function(){ra.scheduleMacroTask(k,function(){ra.scheduleMicroTask(k,function(){throw Error();},void 0,function(Na){Na._transitionTo=Ga;Na.invoke()});ra.scheduleMicroTask(k,function(){throw Error();},void 0,function(Na){Na._transitionTo=Ga;Na.invoke()})},void 0,function(Na){Na._transitionTo=Ga;Na.invoke()},function(){})},void 0,function(Na){Na._transitionTo=
Ga;Na.invoke()},function(){})})});Error.stackTraceLimit=b}})},cea=function(){sa.__load_patch("ZoneAwarePromise",function(a,b,c){function d(yb){if(yb&&yb.toString===Object.prototype.toString){var Pb=yb.constructor&&yb.constructor.name;return(Pb?Pb:"")+": "+JSON.stringify(yb)}return yb?yb.toString():Object.prototype.toString.call(yb)}function e(yb){c.onUnhandledError(yb);try{var Pb=b[Na];typeof Pb==="function"&&Pb.call(this,yb)}catch(Ya){}}function f(yb){return yb}function h(yb){return ec.reject(yb)}
function k(yb,Pb){return function(Ya){try{q(yb,Pb,Ya)}catch(dc){q(yb,!1,dc)}}}function q(yb,Pb,Ya){var dc=Lb();if(yb===Ya)throw new TypeError("qa");if(yb[Qa]===null){var uc=null;try{if(typeof Ya==="object"||typeof Ya==="function")uc=Ya&&Ya.then}catch(rd){return dc(function(){q(yb,!1,rd)})(),yb}if(Pb!==!1&&Ya instanceof ec&&Ya.hasOwnProperty(Qa)&&Ya.hasOwnProperty(gb)&&Ya[Qa]!==null)u(Ya),q(yb,Ya[Qa],Ya[gb]);else if(Pb!==!1&&typeof uc==="function")try{uc.call(Ya,dc(k(yb,Pb)),dc(k(yb,!1)))}catch(rd){dc(function(){q(yb,
!1,rd)})()}else{yb[Qa]=Pb;dc=yb[gb];yb[gb]=Ya;yb[va]===va&&Pb===!0&&(yb[Qa]=yb[La],yb[gb]=yb[Ja]);Pb===!1&&Ya instanceof Error&&(uc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&O(Ya,Eb,{configurable:!0,enumerable:!1,writable:!0,value:uc});for(uc=0;uc<dc.length;)A(yb,dc[uc++],dc[uc++],dc[uc++],dc[uc++]);if(dc.length==0&&Pb==0){yb[Qa]=0;Pb=Ya;try{throw Error("ra`"+d(Ya)+"`"+(Ya&&Ya.stack?"\n"+Ya.stack:""));}catch(rd){Pb=rd}ma&&(Pb.throwOriginal=!0);Pb.rejection=Ya;Pb.promise=
yb;Pb.zone=b.current;Pb.task=b.currentTask;da.push(Pb);c.scheduleMicroTask()}}}return yb}function u(yb){if(yb[Qa]===0){try{var Pb=b[jc];Pb&&typeof Pb==="function"&&Pb.call(this,{rejection:yb[gb],promise:yb})}catch(Ya){}yb[Qa]=!1;for(Pb=0;Pb<da.length;Pb++)yb===da[Pb].promise&&da.splice(Pb,1)}}function A(yb,Pb,Ya,dc,uc){u(yb);var rd=yb[Qa],Jb=rd?typeof dc==="function"?dc:f:typeof uc==="function"?uc:h;Pb.scheduleMicroTask("Promise.then",function(){try{var Cc=yb[gb],Gc=!!Ya&&va===Ya[va];Gc&&(Ya[Ja]=
Cc,Ya[La]=rd);var Qd=Pb.run(Jb,void 0,Gc&&Jb!==h&&Jb!==f?[]:[Cc]);q(Ya,!0,Qd)}catch(Ed){q(Ya,!1,Ed)}},Ya)}function G(yb){var Pb=yb.prototype,Ya=N(Pb,"then");if(!Ya||Ya.writable!==!1&&Ya.configurable){var dc=Pb.then;Pb[Ga]=dc;yb.prototype.then=function(uc,rd){var Jb=this;return(new ec(function(Cc,Gc){dc.call(Jb,Cc,Gc)})).then(uc,rd)};yb[ye]=!0}}function H(yb){return function(Pb,Ya){Pb=yb.apply(Pb,Ya);if(Pb instanceof ec)return Pb;Ya=Pb.constructor;Ya[ye]||G(Ya);return Pb}}var N=Object.getOwnPropertyDescriptor,
O=Object.defineProperty,U=c.symbol,da=[],ma=a[U("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ra=U("Promise"),Ga=U("then");c.onUnhandledError=function(yb){if(c.showUncaughtError()){var Pb=yb&&yb.rejection;Pb?console.error("Unhandled Promise rejection:",Pb instanceof Error?Pb.message:Pb,"; Zone:",yb.zone.name,"; Task:",yb.task&&yb.task.source,"; Value:",Pb,Pb instanceof Error?Pb.stack:void 0):console.error(yb)}};c.microtaskDrainDone=function(){for(var yb={};da.length;yb={uncaughtPromiseError:void 0}){yb.uncaughtPromiseError=
da.shift();try{yb.uncaughtPromiseError.zone.runGuarded(function(Pb){return function(){if(Pb.uncaughtPromiseError.throwOriginal)throw Pb.uncaughtPromiseError.rejection;throw Pb.uncaughtPromiseError;}}(yb))}catch(Pb){e(Pb)}}};var Na=U("unhandledPromiseRejectionHandler"),Qa=U("state"),gb=U("value"),va=U("finally"),Ja=U("parentPromiseValue"),La=U("parentPromiseState"),Lb=function(){var yb=!1;return function(Pb){return function(){yb||(yb=!0,Pb.apply(null,arguments))}}},Eb=U("currentTaskTrace"),jc=U("rejectionHandledHandler"),
nc=function(){},Jc=a.AggregateError,ec=function(yb){if(!(this instanceof ec))throw Error("sa");this[Qa]=null;this[gb]=[];try{var Pb=Lb();yb&&yb(Pb(k(this,!0)),Pb(k(this,!1)))}catch(Ya){q(this,!1,Ya)}};ec.toString=function(){return"function ZoneAwarePromise() { [native code] }"};ec.resolve=function(yb){return yb instanceof ec?yb:q(new this(null),!0,yb)};ec.reject=function(yb){return q(new this(null),!1,yb)};ec.withResolvers=function(){var yb={};yb.promise=new ec(function(Pb,Ya){yb.resolve=Pb;yb.reject=
Ya});return yb};ec.any=function(yb){if(!yb||typeof yb[Symbol.iterator]!=="function")return Promise.reject(new Jc([],"All promises were rejected"));var Pb=[],Ya=0;try{for(var dc=l(yb),uc=dc.next();!uc.done;uc=dc.next()){var rd=uc.value;Ya++;Pb.push(ec.resolve(rd))}}catch(Gc){return Promise.reject(new Jc([],"All promises were rejected"))}if(Ya===0)return Promise.reject(new Jc([],"All promises were rejected"));var Jb=!1,Cc=[];return new ec(function(Gc,Qd){for(var Ed=0;Ed<Pb.length;Ed++)Pb[Ed].then(function(Vf){Jb||
(Jb=!0,Gc(Vf))},function(Vf){Cc.push(Vf);Ya--;Ya===0&&(Jb=!0,Qd(new Jc(Cc,"All promises were rejected")))})})};ec.race=function(yb){function Pb(Cc){dc(Cc)}function Ya(Cc){uc(Cc)}var dc,uc,rd=new this(function(Cc,Gc){dc=Cc;uc=Gc});yb=l(yb);for(var Jb=yb.next();!Jb.done;Jb=yb.next())(Jb=Jb.value)&&typeof Jb.then==="function"||(Jb=this.resolve(Jb)),Jb.then(Pb,Ya);return rd};ec.all=function(yb){return ec.allWithCallback(yb)};ec.allSettled=function(yb){return(this&&this.prototype instanceof ec?this:ec).allWithCallback(yb,
{thenCallback:function(Pb){return{status:"fulfilled",value:Pb}},errorCallback:function(Pb){return{status:"rejected",reason:Pb}}})};ec.allWithCallback=function(yb,Pb){var Ya,dc,uc=new this(function(Ed,Vf){Ya=Ed;dc=Vf}),rd=2,Jb=0,Cc=[];yb=l(yb);for(var Gc=yb.next(),Qd={};!Gc.done;Qd={curValueIndex:void 0},Gc=yb.next()){(Gc=Gc.value)&&typeof Gc.then==="function"||(Gc=this.resolve(Gc));Qd.curValueIndex=Jb;try{Gc.then(function(Ed){return function(Vf){Cc[Ed.curValueIndex]=Pb?Pb.thenCallback(Vf):Vf;rd--;
rd===0&&Ya(Cc)}}(Qd),function(Ed){return function(Vf){Pb?(Cc[Ed.curValueIndex]=Pb.errorCallback(Vf),rd--,rd===0&&Ya(Cc)):dc(Vf)}}(Qd))}catch(Ed){dc(Ed)}rd++;Jb++}rd-=2;rd===0&&Ya(Cc);return uc};ea.Object.defineProperty(ec.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});ea.Object.defineProperty(ec.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return ec}});ec.prototype.then=function(yb,Pb){var Ya,dc=(Ya=this.constructor)==null?void 0:
Ya[Symbol.species];dc&&typeof dc==="function"||(dc=this.constructor||ec);Ya=new dc(nc);dc=b.current;this[Qa]==null?this[gb].push(dc,Ya,yb,Pb):A(this,dc,Ya,yb,Pb);return Ya};ec.prototype.catch=function(yb){return this.then(null,yb)};ec.prototype.finally=function(yb){var Pb,Ya=(Pb=this.constructor)==null?void 0:Pb[Symbol.species];Ya&&typeof Ya==="function"||(Ya=ec);Pb=new Ya(nc);Pb[va]=va;Ya=b.current;this[Qa]==null?this[gb].push(Ya,Pb,yb,yb):A(this,Ya,Pb,yb,yb);return Pb};ec.resolve=ec.resolve;ec.reject=
ec.reject;ec.race=ec.race;ec.all=ec.all;ra=a[ra]=a.Promise;a.Promise=ec;var ye=U("thenPatched");c.patchThen=G;ra&&(G(ra),la(a,"fetch",function(yb){return H(yb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=da;return ec})},dea=function(){sa.__load_patch("toString",function(a){var b=Function.prototype.toString,c=ca("OriginalDelegate"),d=ca("Promise"),e=ca("Error"),f=function(){if(typeof this==="function"){var k=this[c];if(k)return typeof k==="function"?b.call(k):Object.prototype.toString.call(k);
if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var h=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&this instanceof Promise?"[object Promise]":h.call(this)}})},Rc=function(a){for(var b in a)if(a[b]===Rc)return b;throw Error("ua");},Sc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},Tc=function(a){return{providers:a.providers||
[],imports:a.imports||[]}},gea=function(a){var b;(b=a.hasOwnProperty(eea)?a[eea]:null)||(b=a.hasOwnProperty(fea)?a[fea]:null);return b},hea=function(a){return(a=a&&(a[eea]||a[fea]))?a:null},kea=function(a){return a&&(a.hasOwnProperty(iea)||a.hasOwnProperty(jea))?a[iea]:null},Uc=function(a){return typeof a==="string"?a:a==null?"":String(a)},Vc=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Vc).join(", ")+"]";if(a==null)return""+a;var b=a.overriddenName||a.name;if(b)return""+
b;a=a.toString();if(a==null)return""+a;b=a.indexOf("\n");return b>=0?a.slice(0,b):a},lea=function(a,b){return a?b?a+" "+b:a:b||""},mea=function(){throw new Wc(-201,!1);},nea=function(a,b){return Object.is(a,b)},Yc=function(a){var b=Xc;Xc=a;return b},sea=function(a){if(oea)throw Error("wa");if(Xc!==null){Xc.consumerOnSignalRead(a);var b=Xc.nextProducerIndex++;pea(Xc);b<Xc.producerNode.length&&Xc.producerNode[b]!==a&&Zc(Xc)&&qea(Xc.producerNode[b],Xc.producerIndexOfThis[b]);Xc.producerNode[b]!==a&&
(Xc.producerNode[b]=a,Xc.producerIndexOfThis[b]=Zc(Xc)?rea(a,Xc,b):0);Xc.producerLastReadVersion[b]=a.version}},ad=function(a){if(!Zc(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==$c)(a.producerMustRecompute(a)||tea(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=$c},uea=function(a){if(a.liveConsumerNode!==void 0){var b=oea;oea=!0;try{for(var c=l(a.liveConsumerNode),d=c.next();!d.done;d=c.next()){var e=d.value;e.dirty||(a=void 0,e.dirty=!0,uea(e),(a=e.consumerMarkedDirty)==null||a.call(e,
e))}}finally{oea=b}}},vea=function(){var a;return((a=Xc)==null?void 0:a.consumerAllowSignalWrites)!==!1},bd=function(a){a&&(a.nextProducerIndex=0);return Yc(a)},cd=function(a,b){Yc(b);if(a&&a.producerNode!==void 0&&a.producerIndexOfThis!==void 0&&a.producerLastReadVersion!==void 0){if(Zc(a))for(b=a.nextProducerIndex;b<a.producerNode.length;b++)qea(a.producerNode[b],a.producerIndexOfThis[b]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}},
tea=function(a){pea(a);for(var b=0;b<a.producerNode.length;b++){var c=a.producerNode[b],d=a.producerLastReadVersion[b];if(d!==c.version)return!0;ad(c);if(d!==c.version)return!0}return!1},wea=function(a){pea(a);if(Zc(a))for(var b=0;b<a.producerNode.length;b++)qea(a.producerNode[b],a.producerIndexOfThis[b]);a.producerNode.length=a.producerLastReadVersion.length=a.producerIndexOfThis.length=0;a.liveConsumerNode&&(a.liveConsumerNode.length=a.liveConsumerIndexOfThis.length=0)},rea=function(a,b,c){xea(a);
if(a.liveConsumerNode.length===0&&a.producerNode!==void 0)for(var d=0;d<a.producerNode.length;d++)a.producerIndexOfThis[d]=rea(a.producerNode[d],a,d);a.liveConsumerIndexOfThis.push(c);return a.liveConsumerNode.push(b)-1},qea=function(a,b){xea(a);if(a.liveConsumerNode.length===1&&a.producerNode!==void 0)for(var c=0;c<a.producerNode.length;c++)qea(a.producerNode[c],a.producerIndexOfThis[c]);c=a.liveConsumerNode.length-1;a.liveConsumerNode[b]=a.liveConsumerNode[c];a.liveConsumerIndexOfThis[b]=a.liveConsumerIndexOfThis[c];
a.liveConsumerNode.length--;a.liveConsumerIndexOfThis.length--;b<a.liveConsumerNode.length&&(c=a.liveConsumerIndexOfThis[b],a=a.liveConsumerNode[b],pea(a),a.producerIndexOfThis[c]=b)},Zc=function(a){var b,c;return a.consumerIsAlwaysLive||((c=a==null?void 0:(b=a.liveConsumerNode)==null?void 0:b.length)!=null?c:0)>0},pea=function(a){a.producerNode!=null||(a.producerNode=[]);a.producerIndexOfThis!=null||(a.producerIndexOfThis=[]);a.producerLastReadVersion!=null||(a.producerLastReadVersion=[])},xea=function(a){a.liveConsumerNode!=
null||(a.liveConsumerNode=[]);a.liveConsumerIndexOfThis!=null||(a.liveConsumerIndexOfThis=[])},zea=function(a,b){var c=Object.create(yea);c.computation=a;b!==void 0&&(c.equal=b);a=function(){ad(c);sea(c);if(c.value===dd)throw c.error;return c.value};a[ed]=c;return a},Bea=function(a){var b=Object.create(Aea);b.value=a;a=function(){sea(b);return b.value};a[ed]=b;return a},fd=function(a,b){vea()||Cea();a.equal(a.value,b)||(a.value=b,a.version++,$c++,uea(a))},Eea=function(a,b,c){var d=Object.create(Dea);
d.source=a;d.computation=b;c!=void 0&&(d.equal=c);a=function(){ad(d);sea(d);if(d.value===dd)throw d.error;return d.value};a[ed]=d;return a},gd=function(a){var b=Yc(null);try{return a()}finally{Yc(b)}},id=function(a){var b=hd;hd=a;return b},Fea=function(a,b,c){if((a=gea(a))&&a.providedIn=="root")return a.value===void 0?a.value=a.factory():a.value;if(c&8)return null;if(b!==void 0)return b;mea()},kd=function(a){var b=jd;jd=a;return b},ld=function(a){a.__forward_ref__=ld;a.toString=function(){return Vc(this())};
return a},md=function(a){return Gea(a)?a():a},Gea=function(a){return typeof a==="function"&&a.hasOwnProperty(Hea)&&a.__forward_ref__===ld},Iea=function(a,b){b=b===void 0?0:b;var c=jd;if(c===void 0)throw new Wc(-203,!1);return c===null?Fea(a,void 0,b):c.retrieve(a,{optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)})},nd=function(a,b){b=b===void 0?0:b;return(hd||Iea)(md(a),b)},n=function(a,b){return nd(a,od(b))},od=function(a){return typeof a==="undefined"||typeof a==="number"?a:0|(a.optional&&
8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},Jea=function(a){for(var b=[],c=0;c<a.length;c++){var d=md(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Wc(900,!1);for(var e=void 0,f=0,h=0;h<d.length;h++){var k=d[h],q=k.__NG_DI_FLAG__;typeof q==="number"?q===-1?e=k.token:f|=q:e=k}b.push(nd(e,f))}else b.push(nd(d))}return b},pd=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},Lea=function(a,b){a=a[Kea]||null;if(!a&&b)throw new Wc(916,!1);return a},Nea=function(a){return a[Mea]||
null},qd=function(a){return a.hasOwnProperty(Oea)?a[Oea]:null},Pea=function(a,b){a.forEach(function(c){return Array.isArray(c)?Pea(c,b):b(c)})},Qea=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},td=function(a,b,c){var d=sd(a,b);if(d>=0)a[d|1]=c;else{var e=d=~d,f=a.length;if(f==e)a.push(b,c);else if(f===1)a.push(c,a[0]),a[0]=b;else{f--;for(a.push(a[f-1],a[f]);f>e;)a[f]=a[f-2],f--;a[e]=b;a[e+1]=c}}return d},Rea=function(a,b){b=sd(a,b);if(b>=0)return a[b|1]},sd=function(a,b){for(var c=
0,d=a.length>>1;d!==c;){var e=c+(d-c>>1),f=a[e<<1];if(b===f)return e<<1;f>b?d=e:c=e+1}return~(d<<1)},Tea=function(){return{"\u0275providers":Sea(!0,ud.apply(0,arguments)),"\u0275fromNgModule":!0}},Sea=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};Pea(ud.apply(1,arguments),function(f){Uea(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&Vea(d,e);return b},Vea=function(a,b){for(var c={},d=0;d<a.length;c={providers$jscomp$2:void 0,ngModule:void 0},d++){var e=a[d];c.ngModule=e.ngModule;c.providers$jscomp$2=
e.providers;Wea(c.providers$jscomp$2,function(f){return function(h){b(h,f.ngModule)}}(c))}},Uea=function(a,b,c,d){a=md(a);if(!a)return!1;var e=null,f=kea(a),h=!f&&(a[vd]||null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=kea(k))e=k;else return!1}k=d.has(e);if(h){if(k)return!1;d.add(e);if(h.dependencies)for(f=typeof h.dependencies==="function"?h.dependencies():h.dependencies,f=l(f),k=f.next();!k.done;k=f.next())Uea(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);
var q;Pea(f.imports,function(A){Uea(A,b,c,d)&&(q||(q=[]),q.push(A))});q!==void 0&&Vea(q,b)}k||(h=qd(e)||function(){return new e},b({provide:e,useFactory:h,deps:wd},e),b({provide:Xea,useValue:e,multi:!0},e),b({provide:Yea,useValue:function(){return nd(e)},multi:!0},e));f=f.providers;if(f!=null&&!k){var u=a;Wea(f,function(A){b(A,u)})}}else return!1;return e!==a&&a.providers!==void 0},Wea=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),
Array.isArray(c)?Wea(c,b):b(c)},$ea=function(a){return a!==null&&typeof a=="object"&&Zea in a},xd=function(a){return typeof a==="function"},cfa=function(){afa===void 0&&(afa=new bfa);return afa},efa=function(a){var b=gea(a);b=b!==null?b.factory:qd(a);if(b!==null)return b;if(a instanceof yd)throw new Wc(204,!1);if(a instanceof Function)return dfa(a);throw new Wc(204,!1);},dfa=function(a){if(a.length>0)throw new Wc(204,!1);var b=hea(a);return b!==null?function(){return b.factory(a)}:function(){return new a}},
hfa=function(a){if($ea(a))return zd(void 0,a.useValue);a=ffa(a);return zd(a,gfa)},ffa=function(a){var b=void 0;if(xd(a))return b=md(a),qd(b)||efa(b);if($ea(a))b=function(){return md(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,p(Jea(a.deps||[])))};else if(a&&a.useExisting)b=function(){return nd(md(a.useExisting))};else{var c=md(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(p(Jea(a.deps)))))};else return qd(c)||
efa(c)}return b},ifa=function(a){if(a.destroyed)throw new Wc(205,!1);},zd=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},jfa=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?jfa(c,b):c&&c&&c.\u0275providers?jfa(c.\u0275providers,b):b(c)},Bd=function(a,b){a instanceof Ad?ifa(a):a=new kfa(a);a=kd(a);var c=id();try{return b()}finally{kd(a),id(c)}},Cd=function(){if(hd===void 0&&jd==null)throw new Wc(-203,!1);},Dd=function(a){return Array.isArray(a)&&
typeof a[1]==="object"},Fd=function(a){return Array.isArray(a)&&a[1]===!0},nfa=function(a){a.type.prototype.ngOnChanges&&(a.setInput=lfa);return mfa},mfa=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===Gd)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},lfa=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__={previous:Gd,current:null});var h=f;f=h.current||
(h.current={});h=h.previous;var k=h[d];f[d]=new ofa(k&&k.currentValue,c,h===Gd);b!==null?b.applyValueToInputSignal(b,c):a[e]=c},Hd=function(a){for(;Array.isArray(a);)a=a[0];return a},Id=function(a,b){return Hd(b[a.index])},Jd=function(a,b){a=b[a];return Dd(a)?a:a[0]},Kd=function(a,b){return b===null||b===void 0?null:a[b]},pfa=function(a){a[2]&1024||(a[2]|=1024,(a[2]&128)===128&&Ld(a))},qfa=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},rfa=function(a){var b;(b=a[10].changeDetectionScheduler)==
null||b.notify(8);a[2]&64&&(a[2]|=1024);qfa(a)&&Ld(a)},Ld=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=Md(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;a=Md(a)}},sfa=function(a,b){if((a[2]&256)===256)throw new Wc(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},Md=function(a){a=a[3];return Fd(a)?a[3]:a},tfa=function(a){var b;return(b=a[7])!=null?b:a[7]=[]},ufa=function(a){var b;return(b=a.cleanup)!=null?b:a.cleanup=[]},r=function(){return Nd.lView},
Od=function(){return Nd.tView},t=function(a){Nd.contextLView=a;return a[8]},v=function(a){Nd.contextLView=null;return a},Pd=function(){for(var a=Nd.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},Rd=function(a,b){var c=Nd;c.currentTNode=a;c.isParent=b},wfa=function(a){var b=vfa;vfa=a;return b},Sd=function(){var a=Nd,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},Td=function(a){var b=Nd,c=b.bindingIndex;b.bindingIndex+=a;return c},xfa=function(a){var b=
Nd.currentDirectiveIndex;return b===-1?null:a[b]},zfa=function(a,b,c){if(c&4){for(;!(b=b.parent,b!==null||c&1);){b=a[1];b=b.type===2?b.declTNode:b.type===1?a[5]:null;if(b===null)break;a=a[14];if(b.type&10)break}if(b===null)return!1}c=Nd=yfa();c.currentTNode=b;c.lView=a;return!0},Afa=function(a){var b=yfa(),c=a[1];Nd=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},yfa=function(){var a=Nd,b=a===null?null:a.child;return b===null?Bfa(a):
b},Bfa=function(a){var b={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:a,child:null,inI18n:!1};a!==null&&(a.child=b);return b},Cfa=function(){var a=Nd;Nd=a.parent;a.currentTNode=null;a.lView=null;return a},Dfa=function(){var a=Cfa();a.isParent=!0;a.tView=null;a.selectedIndex=-1;a.contextLView=null;a.elementDepthCount=0;a.currentDirectiveIndex=
-1;a.currentNamespace=null;a.bindingRootIndex=-1;a.bindingIndex=-1;a.currentQueryIndex=0},Ud=function(){var a=Nd;return a.tView.data[a.selectedIndex]},Vd=function(){Nd.currentNamespace="svg"},Wd=function(){Nd.currentNamespace=null},Efa=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,h=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var q=void 0,u=void 0;((u=(q=a).contentHooks)!=null?u:
q.contentHooks=[]).push(-c,e)}f&&(q=e=void 0,((q=(e=a).contentHooks)!=null?q:e.contentHooks=[]).push(c,f),q=e=void 0,((q=(e=a).contentCheckHooks)!=null?q:e.contentCheckHooks=[]).push(c,f));h&&(e=f=void 0,((e=(f=a).viewHooks)!=null?e:f.viewHooks=[]).push(-c,h));k&&(f=h=void 0,((f=(h=a).viewHooks)!=null?f:h.viewHooks=[]).push(c,k),f=h=void 0,((f=(h=a).viewCheckHooks)!=null?f:h.viewCheckHooks=[]).push(c,k));d!=null&&(h=k=void 0,((h=(k=a).destroyHooks)!=null?h:k.destroyHooks=[]).push(c,d))}},Ffa=function(a,
b,c,d){(a[2]&3)===c&&Xd(a,b,c,d)},Gfa=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},Xd=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-1,h=0,k=d!==void 0?a[17]&65535:0;k<f;k++)if(typeof b[k+1]==="number"){if(h=b[k],d!=null&&h>=d)break}else{b[k]<0&&(a[17]+=65536);if(h<e||e==-1){var q=b[k]<0,u=b[k+1],A=a[q?-b[k]:b[k]];q?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,Hfa(A,u)):Hfa(A,u);a[17]=(a[17]&4294901760)+k+2}k++}},Hfa=function(a,b){var c=Yc(null);try{b.call(a)}finally{Yc(c)}},Yd=
function(a,b){if(b!==null&&b.length!==0)if(a===null||a.length===0)a=b.slice();else for(var c=-1,d=0;d<b.length;d++){var e=b[d];typeof e==="number"?c=e:c!==0&&(c===-1||c===2?Ifa(a,c,e,b[++d]):Ifa(a,c,e,null))}return a},Ifa=function(a,b,c,d){var e=0,f=a.length;if(b===-1)f=-1;else for(;e<a.length;){var h=a[e++];if(typeof h==="number")if(h===b){f=-1;break}else if(h>b){f=e-1;break}}for(;e<a.length;){h=a[e];if(typeof h==="number")break;else if(h===c){d!==null&&(a[e+1]=d);return}e++;d!==null&&e++}f!==-1&&
(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);d!==null&&a.splice(e++,0,d)},Jfa=function(a,b){for(a>>=16;a>0;)b=b[14],a--;return b},Zd=function(a){return{toString:a}.toString()},Lfa=function(a){var b=Kfa;Kfa=a;return b},Nfa=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty($d)&&(d=c[$d]);d==null&&(d=c[$d]=Mfa++);c=d&255;b.data[a+(c>>5)]|=1<<c},Rfa=function(a,b){var c=Ofa(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Pfa(c.data,a),Pfa(b,null),
Pfa(c.blueprint,null));c=Qfa(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=Jfa(c,b),f=e[1].data,h=0;h<8;h++)b[a+h]=e[d+h]|f[d+h];b[a+8]=c;return a},Pfa=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Ofa=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},Qfa=function(a,b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=Sfa(c);if(b===null)break;a++;c=c[14];
if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},ae=function(a){var b=Pd();if(a==="class")return b.classes;if(a==="style")return b.styles;if(b=b.attrs)for(var c=b.length,d=0;d<c;){var e=b[d];if(e===3||e===4||e===6)break;if(e===0)d+=2;else if(typeof e==="number")for(d++;d<c&&typeof b[d]==="string";)d++;else{if(e===a)return b[d+1];d+=2}}return null},Tfa=function(a,b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=id();try{return a?a.get(b,d,c&8):Fea(b,d,c&8)}finally{id(e)}}c&
8||d!==void 0?b=d:(mea(),b=void 0);return b},Vfa=function(a,b,c,d,e){d=d===void 0?0:d;if(a!==null){if(b[2]&2048&&!(d&2)){a:{var f=d;for(var h=be,k=a,q=b;k!==null&&q!==null&&q[2]&2048&&(q[2]&512)===0;){var u=Ufa(k,q,c,f|2);if(u!==be){f=u;break a}k=k.parent;if(!k){if(k=q[20])if(k=k.get(c,be,f),k!==be){f=k;break a}k=Sfa(q);q=q[14]}}f=h}if(f!==be)return f}a=Ufa(a,b,c,d);if(a!==be)return a}return Tfa(b,c,d,e)},Ufa=function(a,b,c,d){var e=be;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty($d)?
c[$d]:void 0,f=typeof f==="number"?f>=0?f&255:Wfa:f;if(typeof f==="function"){if(!zfa(b,a,d))return d&1?d&8||e!==void 0?b=e:(mea(),b=void 0):b=Tfa(b,c,d,e),b;try{var h=f(d);if(h!=null||d&8)return h;mea()}finally{Cfa()}}else if(typeof f==="number"){h=null;var k=Ofa(a,b),q=d&1?b[15][5]:null;if(k===-1||d&4){var u=k===-1?Qfa(a,b):b[k+8];u===-1||d&2?k=-1:(h=b[1],k=u&32767,b=Jfa(u,b))}for(;k!==-1;){a=b[1];if(a.data[k+(f>>5)]&1<<f){u=b[1];var A=u.data[k+8],G=Xfa(A,u,c,h==null?A.componentOffset>-1&&Kfa:h!=
u&&(A.type&3)!==0,d&1&&q===A);u=G!==null?ce(b,u,G,A):be;if(u!==be)return u}u=b[k+8];u!==-1&&!(d&2||d&1&&b[1].data[k+8]===q)&&b[k+(f>>5)]&1<<f?(h=a,k=u&32767,b=Jfa(u,b)):k=-1}}return e},Xfa=function(a,b,c,d,e){var f=a.providerIndexes,h=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var q=f>>20;f=e?k+q:a;for(d=d?k:k+q;d<f;d++)if(k=h[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=h[b])&&e.template&&e.type===c?b:null},ce=function(a,b,c,d){var e=a[c],f=b.data;if(e instanceof de){var h=e;
if(h.resolving)throw a=f[c],new Wc(-200,typeof a==="function"?a.name||a.toString():typeof a==="object"&&a!=null&&typeof a.type==="function"?a.type.name||a.type.toString():Uc(a));var k=Lfa(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?id(h.injectImpl):null;zfa(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var u=f[c],A=u.type.prototype,G=A.ngOnInit,H=A.ngDoCheck;if(A.ngOnChanges){var N=nfa(u),O;((O=b.preOrderHooks)!=null?O:b.preOrderHooks=[]).push(c,
N);var U;((U=b.preOrderCheckHooks)!=null?U:b.preOrderCheckHooks=[]).push(c,N)}if(G){var da;((da=b.preOrderHooks)!=null?da:b.preOrderHooks=[]).push(-c,G)}if(H){var ma;((ma=b.preOrderHooks)!=null?ma:b.preOrderHooks=[]).push(c,H);var ra;((ra=b.preOrderCheckHooks)!=null?ra:b.preOrderCheckHooks=[]).push(c,H)}}}finally{q!==null&&id(q),Lfa(k),h.resolving=!1,Cfa()}}return e},Wfa=function(){return new ee(Pd(),r())},fe=function(a){return Zd(function(){var b=a.prototype.constructor;b=b[Oea]||Yfa(b);for(var c=
Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[Oea]||Yfa(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Yfa=function(a){return Gea(a)?function(){var b=Yfa(md(a));return b&&b()}:qd(a)},Sfa=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:c===1?a[5]:null},Zfa=function(a){return function(){var b=ud.apply(0,arguments);if(a){b=a.apply(null,p(b));for(var c in b)this[c]=b[c]}}},ge=function(a){return Zd(function(){function b(){function d(h,
k,q){for(k=h.hasOwnProperty("__parameters__")?h.__parameters__:Object.defineProperty(h,"__parameters__",{value:[]}).__parameters__;k.length<=q;)k.push(null);(k[q]=k[q]||[]).push(f);return h}var e=ud.apply(0,arguments);if(this instanceof b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(p(e))));d.annotation=f;return d}var c=Zfa(a);return b})},aga=function(a,b,c,d){a=$fa(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},$fa=function(a,
b,c,d,e){b=b===void 0?null:b;e=e===void 0?new Set:e;c=[(c===void 0?null:c)||wd,Tea(a)];d=d||(typeof a==="object"?void 0:Vc(a));return new Ad(c,b||cfa(),d||null,e)},bga=function(a){return a.type===4&&a.value!=="ng-template"},cga=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=0;f<e.length;f++){var h=e[f];if(h===3||h===4||h===6)break a}f=e.length}else f=0;h=!1;for(var k=0;k<b.length;k++){var q=b[k];if(typeof q==="number"){if(!h&&(d&1)!==0&&(q&1)!==0)return!1;h&&(q&1)===0||(h=!1,d=q|d&1)}else if(!h)if(d&
4){if(d=2|d&1,q!==""&&q!==(a.type!==4||c?a.value:"ng-template")||q===""&&b.length===1){if((d&1)===0)return!1;h=!0}}else if(d&8){var u;if(!(u=e===null)){a:{u=void 0;var A=a,G=0;if(c)for(;G<e.length&&typeof e[G]==="string";G+=2){if(A=e[G]==="class"){b:{A=e[G+1].toLowerCase();for(var H=0,N=A.length;;){H=A.indexOf(q,H);if(H===-1){A=H;break b}if(H===0||A.charCodeAt(H-1)<=32){var O=q.length;if(H+O===N||A.charCodeAt(H+O)<=32){A=H;break b}}H+=1}A=void 0}A=A!==-1}if(A){q=!0;break a}}else if(bga(A)){q=!1;break a}G=
e.indexOf(1,G);if(G>-1)for(;++G<e.length&&typeof(u=e[G])==="string";)if(u.toLowerCase()===q){q=!0;break a}q=!1}u=!q}if(u){if((d&1)===0)return!1;h=!0}}else{u=b[++k];a:if(e===null)q=-1;else if(G=0,c||!bga(a)){for(A=!1;G<e.length;){N=e[G];if(N===q){q=G;break a}if(N===3||N===6)A=!0;else if(N===1||N===2){for(N=e[++G];typeof N==="string";)N=e[++G];continue}else if(N===4)break;else if(N===0){G+=4;continue}G+=A?1:2}q=-1}else b:{G=e.indexOf(4);if(G>-1)for(G++;G<e.length;){A=e[G];if(typeof A==="number")break;
if(A===q){q=G;break b}G++}q=-1}if(q===-1){if((d&1)===0)return!1;h=!0}else if(u!==""&&(q=q>f?"":e[q+1].toLowerCase(),d&2&&u!==q)){if((d&1)===0)return!1;h=!0}}}return(d&1)===0||h},dga=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<b.length;d++)if(cga(a,b[d],c))return!0;return!1},ega=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if(typeof h==="string")if(d&2){var k=a[++c];e+="["+h+(k.length>0?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);else e!==""&&(h&1)!==0&&(b+=f?":not("+
e.trim()+")":e,e=""),d=h,f=f||(d&1)!==0;c++}e!==""&&(b+=f?":not("+e.trim()+")":e);return b},fga=function(){return new he(r())},ie=function(a){a=a(function(b){b.stack=Error().stack});a.prototype=Object.create(Error.prototype);return a.prototype.constructor=a},gga=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))},je=function(a){return typeof a==="function"},hga=function(a){return a instanceof ke||a&&"closed"in a&&je(a.remove)&&je(a.add)&&je(a.unsubscribe)},le=function(){},me=function(a){iga(function(){throw a;
})},ne=function(a){return a},oe=function(){return jga(ud.apply(0,arguments))},jga=function(a){return a.length===0?ne:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},kga=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},lga=function(a,b){return new pe(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})},mga=function(a,b){if(!a)throw Error("Ca");return new pe(function(c){var d=new ke;d.add(b.schedule(function(){var e=
a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(h){h.done?c.complete():(c.next(h.value),f.schedule())})}))}));return d})},nga=function(a,b,c,d){b=b.schedule(function(){try{c.call(this)}catch(e){a.error(e)}},d===void 0?0:d);a.add(b);return b},pga=function(a,b){return new pe(function(c){var d;c.add(b.schedule(function(){d=a[oga]();nga(c,b,function(){var e=d.next(),f=e.value;e.done?c.complete():(c.next(f),this.schedule())})}));return function(){var e;return je((e=
d)==null?void 0:e.return)&&d.return()}})},qga=function(a,b){return new pe(function(c){var d=new ke;d.add(b.schedule(function(){var e=a[qe]();d.add(e.subscribe({next:function(f){d.add(b.schedule(function(){return c.next(f)}))},error:function(f){d.add(b.schedule(function(){return c.error(f)}))},complete:function(){d.add(b.schedule(function(){return c.complete()}))}}))}));return d})},rga=function(a,b){return new pe(function(c){return b.schedule(function(){return a.then(function(d){c.add(b.schedule(function(){c.next(d);
c.add(b.schedule(function(){return c.complete()}))}))},function(d){c.add(b.schedule(function(){return c.error(d)}))})})})},sga=function(a){return new TypeError("Da`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},uga=function(a,b){if(a!=null){if(je(a[qe]))return qga(a,b);if(tga(a))return lga(a,b);if(je(a==null?void 0:a.then))return rga(a,b);if(Symbol.asyncIterator&&je(a==null?void 0:a[Symbol.asyncIterator]))return mga(a,b);if(je(a==null?void 0:a[oga]))return pga(a,b)}throw sga(a);
},se=function(a,b){return b?uga(a,b):re(a)},re=function(a){if(a instanceof pe)return a;if(a!=null){if(je(a[qe]))return vga(a);if(tga(a))return wga(a);if(je(a==null?void 0:a.then))return xga(a);if(Symbol.asyncIterator&&je(a==null?void 0:a[Symbol.asyncIterator]))return yga(a);if(je(a==null?void 0:a[oga]))return zga(a)}throw sga(a);},vga=function(a){return new pe(function(b){var c=a[qe]();if(je(c.subscribe))return c.subscribe(b);throw new TypeError("Ea");})},wga=function(a){return new pe(function(b){for(var c=
0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},xga=function(a){return new pe(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,me)})},zga=function(a){return new pe(function(b){for(var c=a[oga]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return je(c==null?void 0:c.return)&&c.return()}})},yga=function(a){return new pe(function(b){Aga(a,b).catch(function(c){return b.error(c)})})},Aga=function(a,
b){var c,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:te(q,2,3);var u=a[Symbol.asyncIterator];f=u!==void 0?u.call(a):new Bga(l(a));case 5:return x(q,f.next(),8);case 8:d=q.yieldResult;if(d.done){q.jumpTo(3);break}h=d.value;b.next(h);q.jumpTo(5);break;case 3:ue(q);ve(q,9);if(!d||d.done||!(e=f.return)){q.jumpTo(9);break}return x(q,e.call(f),9);case 9:ue(q,0,0,1);if(c)throw c.error;we(q,10,1);break;case 10:we(q,4);break;case 2:k=xe(q);c={error:k};q.jumpTo(3);break;case 4:b.complete(),
ze(q)}})},Ae=function(a,b){return b?lga(a,b):wga(a)},Cga=function(a){return je(a[a.length-1])?a.pop():void 0},Be=function(a){var b=a[a.length-1];return b&&je(b.schedule)?a.pop():void 0},Dga=function(a){return typeof a[a.length-1]==="number"?a.pop():Infinity},Ce=function(){var a=ud.apply(0,arguments),b=Be(a);return b?lga(a,b):Ae(a)},De=function(a){var b=je(a)?a:function(){return a};return new pe(function(c){return c.error(b())})},Ge=function(a){return new Promise(function(b,c){var d=new Ee({next:function(e){b(e);
d.unsubscribe()},error:c,complete:function(){c(new Fe)}});a.subscribe(d)})},He=function(a){return function(b){if(je(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});throw new TypeError("Fa");}},Ega=function(){return He(function(a,b){var c=null;a._refCount++;var d=new Ie(b,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)c=null;else{var e=a._connection,f=c;c=null;!e||f&&e!==f||e.unsubscribe();b.unsubscribe()}});a.subscribe(d);d.closed||
(c=a.connect())})},y=function(a){return He(function(b,c){var d=0;b.subscribe(new Ie(c,function(e){c.next(a.call(void 0,e,d++))}))})},Gga=function(a){return y(function(b){return Fga(b)?a.apply(null,p(b)):a(b)})},Lga=function(a){if(a.length===1){var b=a[0];if(Hga(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Iga(b)===Jga)return a=Kga(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},Je=function(){var a=ud.apply(0,arguments),b=Be(a),c=Cga(a);a=Lga(a);var d=a.args,e=
a.keys;if(d.length===0)return se([],b);b=new pe(Mga(d,b,e?function(f){for(var h={},k=0;k<f.length;k++)h[e[k]]=f[k];return h}:ne));return c?b.pipe(Gga(c)):b},Mga=function(a,b,c){c=c===void 0?ne:c;return function(d){Nga(b,function(){for(var e=a.length,f=Array(e),h=e,k=a.map(function(){return!1}),q=!0,u={i$jscomp$243:0};u.i$jscomp$243<e;u={i$jscomp$243:u.i$jscomp$243},u.i$jscomp$243++)Nga(b,function(A){return function(){se(a[A.i$jscomp$243],b).subscribe(new Ke(d,function(G){f[A.i$jscomp$243]=G;q&&(k[A.i$jscomp$243]=
!0,q=!k.every(ne));q||d.next(c(f.slice()))},function(){return--h===0}))}}(u),d)},d)}},Nga=function(a,b,c){a?c.add(a.schedule(b)):b()},Oga=function(a,b,c,d){var e=[],f=0,h=0,k=!1,q=function(u){f++;re(c(u,h++)).subscribe(new Ie(b,function(A){b.next(A)},void 0,function(){f--;for(var A={};e.length&&f<d;A={bufferedValue:void 0})A.bufferedValue=e.shift(),q(A.bufferedValue);!k||e.length||f||b.complete()}))};a.subscribe(new Ie(b,function(u){return f<d?q(u):e.push(u)},void 0,function(){k=!0;!k||e.length||
f||b.complete()}));return function(){e=null}},Le=function(a,b,c){c=c===void 0?Infinity:c;if(je(b))return Le(function(d,e){return y(function(f,h){return b(d,f,e,h)})(re(a(d,e)))},c);typeof b==="number"&&(c=b);return He(function(d,e){return Oga(d,e,a,c)})},Me=function(a){a=a===void 0?Infinity:a;return Le(ne,a)},Ne=function(){var a=ud.apply(0,arguments);return Me(1)(Ae(a,Be(a)))},Oe=function(a){return new pe(function(b){re(a()).subscribe(b)})},Pe=function(){var a=ud.apply(0,arguments),b=Cga(a),c=Lga(a);
a=c.args;c=c.keys;return b?Pga(a,c).pipe(y(function(d){return b.apply(null,p(d))})):Pga(a,c)},Pga=function(a,b){return new pe(function(c){var d=a.length;if(d===0)c.complete();else for(var e=Array(d),f=0,h=0,k={sourceIndex:0};k.sourceIndex<d;k={hasValue$jscomp$2:void 0,sourceIndex:k.sourceIndex},k.sourceIndex++){var q=re(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(q.subscribe({next:function(u){return function(A){u.hasValue$jscomp$2||(u.hasValue$jscomp$2=!0,h++);e[u.sourceIndex]=A}}(k),error:function(u){return c.error(u)},
complete:function(u){return function(){f++;f!==d&&u.hasValue$jscomp$2||(h===d&&c.next(b?b.reduce(function(A,G,H){return A[G]=e[H],A},{}):e),c.complete())}}(k)}))}})},Qe=function(a,b,c){if(je(c)){var d=c;c=void 0}if(d)return Qe(a,b,c).pipe(Gga(d));d=l(je(a.addEventListener)&&je(a.removeEventListener)?Qga.map(function(h){return function(k){return a[h](b,k,c)}}):je(a.addListener)&&je(a.removeListener)?Rga.map(Sga(a,b)):je(a.on)&&je(a.off)?Tga.map(Sga(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&
tga(a)?Le(function(h){return Qe(h,b,c)})(Ae(a)):new pe(function(h){if(!e)throw new TypeError("Ga");var k=function(){var q=ud.apply(0,arguments);return h.next(1<q.length?q:q[0])};e(k);return function(){return f(k)}})},Sga=function(a,b){return function(c){return function(d){return a[c](b,d)}}},Uga=function(a,b){return new pe(function(c){var d=function(){var f=ud.apply(0,arguments);return c.next(f.length===1?f[0]:f)},e=a(d);return je(b)?function(){return b(d,e)}:void 0})},Se=function(a,b,c){a=a===void 0?
0:a;c=c===void 0?Re:c;var d=-1;b!=null&&(b&&je(b.schedule)?c=b:d=b);return new pe(function(e){var f=a instanceof Date&&!isNaN(a)?+a-c.now():a;f<0&&(f=0);var h=0;return c.schedule(function(){e.closed||(e.next(h++),0<=d?this.schedule(void 0,d):e.complete())},f)})},Vga=function(a,b){a=a===void 0?0:a;b=b===void 0?Re:b;a<0&&(a=0);return Se(a,a,b)},Ue=function(){var a=ud.apply(0,arguments),b=Be(a),c=Dga(a);return a.length?a.length===1?re(a[0]):Me(c)(Ae(a,b)):Te},Xga=function(a){return a.length===1&&Wga(a[0])?
a[0]:a},Ve=function(a){return He(function(b,c){var d=0;b.subscribe(new Ie(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})},Zga=function(){var a=ud.apply(0,arguments);a=Xga(a);return a.length===1?re(a[0]):new pe(Yga(a))},Yga=function(a){return function(b){for(var c=[],d={i$jscomp$246:0};c&&!b.closed&&d.i$jscomp$246<a.length;d={i$jscomp$246:d.i$jscomp$246},d.i$jscomp$246++)c.push(re(a[d.i$jscomp$246]).subscribe(new Ie(b,function(e){return function(f){if(c){for(var h=0;h<c.length;h++)h!==e.i$jscomp$246&&
c[h].unsubscribe();c=null}b.next(f)}}(d))))}},We=function(a){a=a instanceof Date&&!isNaN(a)?{first:a}:typeof a==="number"?{each:a}:a;var b=a.first,c=a.each,d=a.with===void 0?$ga:a.with,e=a.scheduler===void 0?Re:a.scheduler,f=a.meta===void 0?null:a.meta;if(b==null&&c==null)throw new TypeError("Ia");return He(function(h,k){var q,u=null,A=0,G=function(N){q=nga(k,e,function(){H.unsubscribe();re(d({meta:f,lastValue:u,seen:A})).subscribe(k)},N)};var H=h.subscribe(new Ie(k,function(N){var O;(O=q)==null||
O.unsubscribe();A++;k.next(u=N);c>0&&G(c)},void 0,void 0,function(){var N;if((N=q)==null||!N.closed){var O;(O=q)==null||O.unsubscribe()}u=null}));G(b!=null?typeof b==="number"?b:+b-e.now():c)})},$ga=function(a){throw new aha(a);},cha=function(a){return a in bha?(delete bha[a],!0):!1},dha=function(a){return!!a&&(a instanceof pe||je(a.lift)&&je(a.subscribe))},Xe=function(){},eha=function(a){function b(){a=Xe;try{c!==void 0&&typeof cancelAnimationFrame==="function"&&cancelAnimationFrame(c),d!==void 0&&
clearTimeout(d)}catch(e){}}var c;var d=setTimeout(function(){a();b()});typeof requestAnimationFrame==="function"&&(c=requestAnimationFrame(function(){a();b()}));return function(){return b()}},fha=function(a){queueMicrotask(function(){return a()});return function(){a=Xe}},gha=function(a){if(a._nesting==0&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(function(){return a.onStable.emit(null)})}finally{a.isStable=
!0}}},iha=function(a){function b(){eha(function(){a.callbackScheduled=!1;hha(a);a.isCheckStableRunning=!0;gha(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?Zone.root.run(function(){b()}):a._outer.run(function(){b()}),hha(a))},mha=function(a){var b=jha++,c={};a._inner=a._inner.fork({name:"angular",properties:(c.isAngularZone=!0,c.isAngularZone_ID=b,c["isAngularZone_ID"+b]=!0,c),onInvokeTask:function(d,e,f,h,k,q){if(kha(q,"__ignore_ng_zone__"))return d.invokeTask(f,
h,k,q);try{return lha(a),d.invokeTask(f,h,k,q)}finally{(a.shouldCoalesceEventChangeDetection&&h.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&iha(a),a._nesting--,gha(a)}},onInvoke:function(d,e,f,h,k,q,u){try{return lha(a),d.invoke(f,h,k,q,u)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||kha(q,"__scheduler_tick__")||iha(a),a._nesting--,gha(a)}},onHasTask:function(d,e,f,h){d.hasTask(f,h);e===f&&(h.change=="microTask"?(a._hasPendingMicrotasks=h.microTask,hha(a),gha(a)):
h.change=="macroTask"&&(a.hasPendingMacrotasks=h.macroTask))},onHandleError:function(d,e,f,h){d.handleError(f,h);a.runOutsideAngular(function(){return a.onError.emit(h)});return!1}})},hha=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&a.callbackScheduled===!0?!0:!1},lha=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},kha=function(a,b){if(!Array.isArray(a)||a.length!==1)return!1;var c,
d;return((c=a[0])==null?void 0:(d=c.data)==null?void 0:d[b])===!0},oha=function(){return new nha(r(),Pd())},Ye=function(a){if(!pha.has(a)){pha.add(a);var b,c;(b=performance)==null||(c=b.mark)==null||c.call(b,"mark_feature_usage",{detail:{feature:a}})}},rha=function(a,b){(b==null?0:b.injector)||Cd();var c,d=(c=b==null?void 0:b.injector)!=null?c:n(Ze);Ye("NgAfterRender");return qha(a,d,b,!1)},$e=function(a,b){(b==null?0:b.injector)||Cd();var c,d=(c=b==null?void 0:b.injector)!=null?c:n(Ze);Ye("NgAfterNextRender");
return qha(a,d,b,!0)},qha=function(a,b,c,d){var e=b.get(af);e.impl!=null||(e.impl=b.get(bf));var f=b.get(cf,null,{optional:!0}),h,k=(h=c==null?void 0:c.phase)!=null?h:2;c=(c==null?void 0:c.manualCleanup)!==!0?b.get(df):null;b=b.get(nha,null,{optional:!0});a instanceof Function?(h=[void 0,void 0,void 0,void 0],h[k]=a,a=h):a=[a.earlyRead,a.write,a.mixedReadWrite,a.read];d=new sha(e.impl,a,b==null?void 0:b.view,d,c,f==null?void 0:f.snapshot(null));e.impl.register(d);return d},uha=function(){if(tha!==
void 0)return tha;if(typeof document!=="undefined")return document;throw new Wc(210,!1);},ef=function(a,b){Dd(b)?(a.__ngContext__=b[19],vha.set(b[19],b)):a.__ngContext__=b},wha=function(a){for(;a!==null&&!Fd(a);)a=a[4];return a},gf=function(a,b){return new ff(Id(a,b))},xha=function(a){return a instanceof ff?a.nativeElement:a},hf=function(a){return a.ownerDocument.defaultView},yha=function(a){return a.ownerDocument},Bha=function(){return"".replace(zha,function(a){return a.replace(Aha,"\u200b$1\u200b")})},
Cha=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;if(d!==null)for(var f=0;f<d.length;){var h=d[f];if(typeof h==="number"){if(h!==0)break;f++;h=d[f++];var k=d[f++],q=d[f++];a.setAttribute(b,k,q,h)}else k=d[++f],h.charCodeAt(0)===64?a.setProperty(b,h,k):a.setAttribute(b,h,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},Eha=function(a){return Dha(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},Fha=
function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[Symbol.iterator]();!(c=a.next()).done;)b(c.value)},Dha=function(a){return a!==null&&(typeof a==="function"||typeof a==="object")},jf=function(a,b,c){return a[b]=c},kf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},lf=function(a,b,c,d){c=kf(a,b,c);return kf(a,b+1,d)||c},z=function(a){Gha(Od(),r(),Nd.selectedIndex+(a===void 0?1:a))},Gha=function(a,b,c){(b[2]&3)===3?(a=a.preOrderCheckHooks,a!==null&&Xd(b,
a,3,c)):(a=a.preOrderHooks,a!==null&&Ffa(b,a,0,c));Nd.selectedIndex=c},Hha=function(a,b,c,d){var e=Yc(null);try{var f=l(a.inputs[c]),h=f.next().value,k=f.next().value,q=f.next().value;f=null;(k&1)!==0&&(f=b[h][ed]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):q!==null&&(d=q.call(b,d));a.setInput!==null?a.setInput(b,f,d,c,h):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[h]=d)}finally{Yc(e)}},Iha=function(a,b,c,d,e,f,h,k,q,u,A){d=26+d;e=d+e;for(var G=[],H=0;H<e;H++)G.push(H<d?null:mf);u=typeof u===
"function"?u():u;return G[1]={type:a,blueprint:G,template:c,queries:null,viewQuery:k,declTNode:b,data:G.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:e,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof f==="function"?f():
f,pipeRegistry:typeof h==="function"?h():h,firstChild:null,schemas:q,consts:u,incompleteFirstPass:!1,ssrId:A}},Kha=function(a,b,c,d,e,f,h,k,q,u,A){var G=b.blueprint.slice();G[0]=e;G[2]=d|1228;if(u!==null||a&&a[2]&2048)G[2]|=2048;G[17]=0;G[3]=G[14]=a;G[8]=c;G[10]=h||a&&a[10];G[11]=k||a&&a[11];G[9]=q||a&&a[9]||null;G[5]=f;G[19]=Jha++;G[6]=A;G[20]=u;G[15]=b.type==2?a[15]:G;return G},Lha=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},Mha=function(a,b,c,d){if(c===0)return-1;for(var e=
b.length,f=0;f<c;f++)b.push(d),a.blueprint.push(d),a.data.push(null);return e},Nha=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=b},of=function(a){return a instanceof nf?a.changingThisBreaksApplicationSecurity:a},pf=function(a,b){a=a instanceof nf&&a.getTypeName()||null;if(a!=null&&a!==b){if(a==="ResourceURL"&&b==="URL")return!0;throw Error("Ja`"+b+"`"+a);}return a===b},Pha=function(){if(Oha===void 0&&(Oha=null,qf.trustedTypes))try{Oha=qf.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},
createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Oha},Qha=function(a){var b;return((b=Pha())==null?void 0:b.createHTML(a))||a},Sha=function(a){a=String(a);return a.match(Rha)?a:"unsafe:"+a},rf=function(a){var b={};a=l(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},sf=function(){for(var a={},b=l(ud.apply(0,arguments)),c=b.next();!c.done;c=b.next()){c=c.value;for(var d in c)c.hasOwnProperty(d)&&(a[d]=!0)}return a},Tha=function(a){a=
a.nodeName;return typeof a==="string"?a:"FORM"},Wha=function(a){return a.replace(/&/g,"&amp;").replace(Uha,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Vha,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},eia=function(a,b){var c=null;try{var d;if(!(d=Xha)){var e=new Yha(a);try{var f=!!(new window.DOMParser).parseFromString(Qha(""),"text/html")}catch(ra){f=!1}d=f?new Zha(e):e}Xha=d;var h=b?String(b):"";c=Xha.getInertBodyElement(h);
a=5;b=h;do{if(a===0)throw Error("La");a--;h=b;b=c.innerHTML;c=Xha.getInertBodyElement(h)}while(h!==b);var k=new $ha,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="TEMPLATE"?c.content:null)||c).firstChild;h=!0;for(a=[];q;){if(q.nodeType===Node.ELEMENT_NODE){b=k;d=q;var u=Tha(d).toLowerCase();if(aia.hasOwnProperty(u)){b.buf.push("<");b.buf.push(u);var A=d.attributes;for(d=0;d<A.length;d++){var G=A.item(d),H=G.name,N=H.toLowerCase();if(bia.hasOwnProperty(N)){var O=G.value;cia[N]&&(O=
Sha(O));b.buf.push(" ",H,'="',Wha(O),'"')}}b.buf.push(">");h=!0}else h=!dia.hasOwnProperty(u)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Wha(q.nodeValue));if(h&&q.firstChild){a.push(q);var U=q.firstChild;if(U&&(q.compareDocumentPosition(U)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("Ka`"+U.outerHTML);q=U}else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var da,ma=q.nextSibling;if(ma&&q!==ma.previousSibling)throw Error("Ka`"+ma.outerHTML);if(da=
ma){q=da;break}q=a.pop()}}return Qha(k.buf.join(""))}finally{if(c)for(c=("content"in c&&c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="TEMPLATE"?c.content:null)||c;c.firstChild;)c.firstChild.remove()}},gia=function(){if(fia===void 0&&(fia=null,qf.trustedTypes))try{fia=qf.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return fia},hia=function(a){var b;return((b=gia())==null?void 0:
b.createHTML(a))||a},iia=function(a){var b;return((b=gia())==null?void 0:b.createScriptURL(a))||a},tf=function(a){var b=jia();return b?hia(b.sanitize(1,a)||""):pf(a,"HTML")?hia(of(a)):eia(uha(),Uc(a))},kia=function(a){var b=jia();return b?b.sanitize(2,a)||"":pf(a,"Style")?of(a):Uc(a)},uf=function(a){var b=jia();return b?b.sanitize(4,a)||"":pf(a,"URL")?of(a):Sha(Uc(a))},lia=function(a){var b=jia();if(b)return iia(b.sanitize(5,a)||"");if(pf(a,"ResourceURL"))return iia(of(a));throw new Wc(904,!1);},
jia=function(){var a=r();return a&&a[10].sanitizer},mia=function(a,b,c,d,e){var f=Nd.selectedIndex;try{Nd.selectedIndex=-1,d&2&&b.length>26&&Gha(a,b,26),c(d,e)}finally{Nd.selectedIndex=f}},nia=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],h=Id(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?f.tView=Iha(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=Nha(b,Kha(b,k,null,Lha(f),
h,c,null,b[10].rendererFactory.createRenderer(h,f),null,null,null));b[c.index]=f}a.firstCreatePass||Rfa(c,b);f=c.initialInputs;for(h=d;h<e;h++){k=a.data[h];var q=ce(b,a,h,c);ef(q,b);if(f!==null){var u=f[h-d];if(u!==null)for(var A=0;A<u.length;A+=2)Hha(k,q,u[A],u[A+1])}k.template&&(Jd(c.index,b)[8]=ce(b,a,h,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;f=c.index;c=Nd.currentDirectiveIndex;try{for(Nd.selectedIndex=f;e<d;e++){var G=a.data[e],H=b[e];Nd.currentDirectiveIndex=e;G.hostBindings===
null&&G.hostVars===0&&G.hostAttrs===null||G.hostBindings===null||G.hostBindings(1,H)}}finally{Nd.selectedIndex=-1,Nd.currentDirectiveIndex=c}}},oia=function(a,b,c){c=c===void 0?Id:c;var d=b.localNames;if(d!==null)for(var e=b.index+1,f=0;f<d.length;f+=2){var h=d[f+1];h=h===-1?c(b,a):a[h];a[e++]=h}},qia=function(a,b,c,d){c=d.get(pia,!1)||c===3;return a.selectRootElement(b,c)},wf=function(a,b,c,d,e,f,h,k){!k&&vf(b,a,c,d,e)?b.componentOffset>-1&&(b=Jd(b.index,c),b[2]&16||(b[2]|=64)):b.type&3&&(a=Id(b,
c),d=d==="class"?"className":d==="for"?"htmlFor":d==="formaction"?"formAction":d==="innerHtml"?"innerHTML":d==="readonly"?"readOnly":d==="tabindex"?"tabIndex":d,e=h!=null?h(e,b.value||"",d):e,f.setProperty(a,d,e))},ria=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=a[d];dga(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},sia=function(a,b,c,d,e,f){var h=Id(a,b);b=b[11];a=a.value;d==null?b.removeAttribute(h,c,f):(d=e==null?Uc(d):
e(d,a||"",c),b.setAttribute(h,c,d,f))},tia=function(a,b,c){if(a===null||a.template)a:{for(a=c[b.index];Array.isArray(a);){if(typeof a[1]==="object"){c=a;break a}a=a[0]}c=null}return c[11]},vf=function(a,b,c,d,e){var f,h=(f=a.inputs)==null?void 0:f[d],k;a=(k=a.hostDirectiveInputs)==null?void 0:k[d];k=!1;if(a)for(f=0;f<a.length;f+=2)k=a[f],Hha(b.data[k],c[k],a[f+1],e),k=!0;if(h)for(h=l(h),a=h.next();!a.done;a=h.next())a=a.value,Hha(b.data[a],c[a],d,e),k=!0;return k},uia=function(a,b){var c=vfa?64:1088,
d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=Md(a);if((a[2]&512)!==0&&!b)break;a=b}},wia=function(a,b,c){return function f(e){if(e===Function)return c;var h=a.componentOffset>-1?Jd(a.index,b):b;uia(h,5);h=via(b,c,e);for(var k=f.__ngNextListenerFn__;k;)h=via(b,k,e)&&h,k=k.__ngNextListenerFn__;return h}},via=function(a,b,c){var d=Yc(null);try{return b(c)!==!1}catch(h){b=h;var e=a[9];if(e){var f;(f=e.get(xf,null))==null||f.handleError(b)}return!1}finally{Yc(d)}},xia=function(a,
b,c,d,e,f,h,k,q){b=c[d][b.data[d].outputs[e]].subscribe(h);c=k.length;k.push(h,b);q&&q.push(f,a.index,c,-(c+1))},yia=function(a,b){var c=a.contentQueries;if(c!==null){var d=Yc(null);try{for(var e=0;e<c.length;e+=2){var f=c[e],h=c[e+1];if(h!==-1){var k=a.data[h];Nd.currentQueryIndex=f;k.contentQueries(2,b[h],h)}}}finally{Yc(d)}}},zia=function(a,b,c){Nd.currentQueryIndex=0;var d=Yc(null);try{b(a,c)}finally{Yc(d)}},Aia=function(a,b,c){if((b.flags&4)!==0){var d=Yc(null);try{for(var e=b.directiveEnd,f=
b.directiveStart;f<e;f++){var h=a.data[f];h.contentQueries&&h.contentQueries(1,c[f],f)}}finally{Yc(d)}}},Cia=function(a,b,c){Afa(b);try{var d=a.viewQuery;d!==null&&zia(1,d,c);var e=a.template;e!==null&&mia(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);var f;(f=b[18])!=null&&Bia(f,a);a.staticContentQueries&&yia(a,b);a.staticViewQueries&&zia(2,a.viewQuery,c);var h=a.components;if(h!==null)for(c=0;c<h.length;c++){var k=Jd(h[c],b),q=k[1];d=q;e=k;for(var u=e.length;u<d.blueprint.length;u++)e.push(d.blueprint[u]);
k[0]!==null&&k[6]===null&&(k[6]=null);Cia(q,k,k[8])}}catch(A){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),A;}finally{b[2]&=-5,Dfa()}},Dia=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(b!==null)for(var h=0;h<b.length;h++){var k=b[h];if(typeof k==="number")f=k;else if(f==1)e=lea(e,k);else if(f==2){var q=b[++h];d=lea(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},yf=function(a,b,c,d,e){var f=a.data[b];if(f===null){f=
Nd.currentTNode;var h=Nd.isParent,k=a.data,q=h?f:f&&f.parent,u=q?q.injectorIndex:-1,A=0;Eia!==null&&(A|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:u,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,
child:null,parent:q,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};a.firstChild===null&&(a.firstChild=b);f!==null&&(h?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&(f.next=b,b.prev=f));f=b;Nd.inI18n&&(f.flags|=32)}else f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=Nd,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=a===null?-1:a.injectorIndex);Rd(f,!0);return f},
zf=function(a,b){b=b===void 0?0:b;var c=r();return c===null?nd(a,b):Vfa(Pd(),c,md(a),b)},Fia=function(){throw Error("Na");},Jia=function(a,b,c,d,e){var f=d===null?null:{"":-1},h=e(a,c);if(h!==null){for(var k=h,q=e=null,u=l(h),A=u.next();!A.done;A=u.next())if(A=A.value,A.resolveHostDirectives!==null){q=l(A.resolveHostDirectives(h));k=q.next().value;e=q.next().value;q=q.next().value;break}h=k.length;u=!1;for(A=0;A<h;A++){var G=k[A];if(!u&&G.template){u=!0;var H=void 0,N=a,O=c;O.componentOffset=A;((H=
N.components)!=null?H:N.components=[]).push(O.index)}H=Rfa(c,b);Nfa(H,a,G.type)}u=a.data.length;c.flags|=1;c.directiveStart=u;c.directiveEnd=u+h;c.providerIndexes=u;for(u=0;u<h;u++)A=k[u],A.providersResolver&&A.providersResolver(A);H=G=!1;u=Mha(a,b,h,null);h>0&&(c.directiveToIndex=new Map);for(A=0;A<h;A++){N=k[A];c.mergedAttrs=Yd(c.mergedAttrs,N.hostAttrs);var U=a,da=c,ma=b;O=u;U.data[O]=N;var ra=N.factory||(N.factory=qd(N.type));ra=new de(ra,!!N.template);U.blueprint[O]=ra;ma[O]=ra;ma=Mha(U,ma,N.hostVars,
mf);if(ra=N.hostBindings){var Ga=U.hostBindingOpCodes;Ga===null&&(Ga=U.hostBindingOpCodes=[]);U=~da.index;a:{for(da=Ga.length;da>0;){var Na=Ga[--da];if(typeof Na==="number"&&Na<0){da=Na;break a}}da=0}da!=U&&Ga.push(U);Ga.push(O,ma,ra)}O=u;if(f){if(N.exportAs)for(ma=0;ma<N.exportAs.length;ma++)f[N.exportAs[ma]]=O;N.template&&(f[""]=O)}q!==null&&q.has(N)?(ma=l(q.get(N)),O=ma.next().value,ma=ma.next().value,c.directiveToIndex.set(N.type,[u,O+c.directiveStart,ma+c.directiveStart])):e!==null&&e.has(N)||
c.directiveToIndex.set(N.type,u);N.contentQueries!==null&&(c.flags|=4);if(N.hostBindings!==null||N.hostAttrs!==null||N.hostVars!==0)c.flags|=64;N=N.type.prototype;!G&&(N.ngOnChanges||N.ngOnInit||N.ngDoCheck)&&(O=G=void 0,((O=(G=a).preOrderHooks)!=null?O:G.preOrderHooks=[]).push(c.index),G=!0);H||!N.ngOnChanges&&!N.ngDoCheck||(N=H=void 0,((N=(H=a).preOrderCheckHooks)!=null?N:H.preOrderCheckHooks=[]).push(c.index),H=!0);u++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==null&&e.has(k)?
(k=e.get(k),Gia(0,c,k,b),Gia(1,c,k,b),Hia(c,b,!0)):(Iia(0,c,k,b),Iia(1,c,k,b),Hia(c,b,!1))}if(f!==null&&d!==null)for(a=c.localNames=[],c=0;c<d.length;c+=2){b=f[d[c+1]];if(b==null)throw new Wc(-301,!1);a.push(d[c],b)}},Iia=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){if(a===0){var f=void 0,h=void 0;var k=(h=(f=b).inputs)!=null?h:f.inputs={}}else h=f=void 0,k=(h=(f=b).outputs)!=null?h:f.outputs={};h=f=void 0;(f=k)[h=e]!=null||(f[h]=[]);k[e].push(d);Kia(b,e)}},
Gia=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){var f=c[e];if(a===0){var h=void 0,k=void 0;var q=(k=(h=b).hostDirectiveInputs)!=null?k:h.hostDirectiveInputs={}}else k=h=void 0,q=(k=(h=b).hostDirectiveOutputs)!=null?k:h.hostDirectiveOutputs={};k=h=void 0;(h=q)[k=f]!=null||(h[k]=[]);q[f].push(d,e);Kia(b,f)}},Kia=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},Hia=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===null||!c&&
e===null||c&&f===null||bga(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);else{for(var h=null,k=0;k<d.length;){var q=d[k];if(q===0)k+=4;else{if(q!==5){if(typeof q==="number")break;if(!c&&e.hasOwnProperty(q))for(var u=l(e[q]),A=u.next();!A.done;A=u.next()){if(A.value===b){h!=null||(h=[]);h.push(q,d[k+1]);break}}else if(c&&f.hasOwnProperty(q))for(q=f[q],u=0;u<q.length;u+=2)if(q[u]===b){h!=null||(h=[]);h.push(q[u+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=
[]);a.initialInputs.push(h)}},Lia=function(a,b,c,d,e,f,h){var k=b.consts;f=Kd(k,f);a=yf(b,a,2,d,f);Jia(b,c,a,Kd(k,h),e);a.mergedAttrs=Yd(a.mergedAttrs,a.attrs);a.attrs!==null&&Dia(a,a.attrs,!1);a.mergedAttrs!==null&&Dia(a,a.mergedAttrs,!0);b.queries!==null&&b.queries.elementStart(b,a);return a},Af=function(a,b,c,d,e){if(d!=null){var f=!1;if(Fd(d))var h=d;else Dd(d)&&(f=!0,d=d[0]);d=Hd(d);a===0&&c!==null?e==null?b.appendChild(c,d):b.insertBefore(c,d,e||null,!0):a===1&&c!==null?b.insertBefore(c,d,e||
null,!0):a===2?b.removeChild(null,d,f):a===3&&b.destroyNode(d);if(h!=null)for(f=h[7],f!==Hd(h)&&Af(a,b,c,f,e),e=10;e<h.length;e++)d=h[e],Bf(b,a,d[1].firstChild,d,c,f,!1)}},Mia=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);Bf(b[11],2,a.firstChild,b,null,null,!1)},Nia=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Pia=function(a,b){if((b[2]&256)!==256){var c=b[11];c.destroyNode&&Bf(c,3,a.firstChild,b,null,null,!1);if(a=b[12])for(;a;){c=null;if(Dd(a))c=a[12];else{var d=
a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)Dd(a)&&Oia(a[1],a),a=a[3];a===null&&(a=b);Dd(a)&&Oia(a[1],a);c=a&&a[4]}a=c}else Oia(b[1],b)}},Oia=function(a,b){if((b[2]&256)!==256){var c=Yc(null);try{b[2]&=-129;b[2]|=256;b[24]&&wea(b[24]);var d;if(a!=null&&(d=a.destroyHooks)!=null)for(var e=0;e<d.length;e+=2){var f=b[d[e]];if(!(f instanceof de)){var h=d[e+1];if(Array.isArray(h))for(var k=0;k<h.length;k+=2)h[k+1].call(f[h[k]]);else h.call(f)}}var q=a.cleanup,u=b[7];if(q!==null)for(d=0;d<q.length-1;d+=
2)if(typeof q[d]==="string"){var A=q[d+3];if(A>=0)u[A]();else u[-A].unsubscribe();d+=2}else q[d].call(u[q[d+1]]);u!==null&&(b[7]=null);var G=b[21];if(G!==null)for(b[21]=null,q=0;q<G.length;q++)(0,G[q])();var H=b[23];if(H!==null){b[23]=null;for(var N=l(H),O=N.next();!O.done;O=N.next())O.value.destroy()}b[1].type===1&&b[11].destroy();var U=b[16];if(U!==null&&Fd(b[3])){U!==b[3]&&Nia(U,b);var da=b[18];da!==null&&da.detachView(a)}vha.delete(b[19])}finally{Yc(c)}}},Qia=function(a,b,c){for(;b!==null&&b.type&
168;)b=b.parent;return b===null?c[0]:b.componentOffset>-1&&(a=a.data[b.directiveStart+b.componentOffset].encapsulation,a===2||a===0)?null:Id(b,c)},Ria=function(a,b,c,d){a=Qia(a,d.parent,b);var e=b[11];d=d.parent||b[5];b=d.type&40?Id(d,b):null;if(a!=null)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=e,h=a,k=c[d];b!==null?f.insertBefore(h,k,b,!1):f.appendChild(h,k)}else b!==null?e.insertBefore(a,c,b,!1):e.appendChild(a,c)},Cf=function(a,b){if(b!==null){var c=b.type;if(c&3)return Id(b,a);if(c&4)return Sia(-1,
a[b.index]);if(c&8){c=b.child;if(c!==null)return Cf(a,c);a=a[b.index];return Fd(a)?Sia(-1,a):Hd(a)}if(c&128)return Cf(a,b.next);if(c&32)return(void 0)(b,a)()||Hd(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:null;if(c!==null){if(Array.isArray(c))return c[0];a=Md(a[15]);return Cf(a,c)}return Cf(a,b.next)}return null},Sia=function(a,b){a=10+a+1;if(a<b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return Cf(a,c)}return b[7]},Bf=function(a,b,c,d,e,f,h){for(;c!=null;)if(c.type===128)c=c.next;
else{var k=d[c.index],q=c.type;h&&b===0&&(k&&ef(Hd(k),d),c.flags|=2);if((c.flags&32)!==32)if(q&8)Bf(a,b,c.child,d,e,f,!1),Af(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var u;u=q();)Af(b,a,e,u,f);Af(b,a,e,k,f)}else q&16?Tia(a,b,d,c,e,f):Af(b,a,e,k,f);c=h?c.projectionNext:c.next}},Tia=function(a,b,c,d,e,f){var h=c[15];c=h[5].projection[d.projection];if(Array.isArray(c))for(d=0;d<c.length;d++)Af(b,a,e,c[d],f);else h=h[3],(d.flags&128)===128&&(c.flags|=128),Bf(a,b,c,h,e,f,!0)},Uia=function(a,b,c,d,
e){for(e=e===void 0?!1:e;c!==null;){if(c.type!==128){var f=b[c.index];f!==null&&d.push(Hd(f));if(Fd(f)){for(var h=d,k=10;k<f.length;k++){var q=f[k],u=q[1].firstChild;u!==null&&Uia(q[1],q,u,h)}f[7]!==f[0]&&h.push(f[7])}f=c.type;if(f&8)Uia(a,b,c.child,d);else if(f&32)for(f=(void 0)(c,b);h=f();)d.push(h);else f&16&&(f=c!==null?b[15][5].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,p(f)):(h=Md(b[15]),Uia(h[1],h,f,d,!0)))}c=e?c.projectionNext:c.next}return d},Via=function(a){if(a[25]!==
null){for(var b=l(a[25]),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.impl;d.sequences.add(c);d.scheduler.notify(7)}a[25].length=0}},Wia=function(a){if(a[23]!==null)for(var b=!0;b;){b=!1;for(var c=l(a[23]),d=c.next(),e={};!d.done;e={effect$jscomp$4:void 0},d=c.next())e.effect$jscomp$4=d.value,e.effect$jscomp$4.dirty&&(b=!0,e.effect$jscomp$4.zone===null||Zone.current===e.effect$jscomp$4.zone?e.effect$jscomp$4.run():e.effect$jscomp$4.zone.run(function(f){return function(){return f.effect$jscomp$4.run()}}(e)));
b=b&&!!(a[2]&8192)}},Yia=function(a,b){b=b===void 0?0:b;var c=a[10].rendererFactory,d;(d=c.begin)==null||d.call(c);try{d=b;b=vfa;try{for(wfa(!0),Xia(a,d),d=0;qfa(a);){if(d===100)throw new Wc(103,!1);d++;Xia(a,1)}}finally{wfa(b)}}finally{var e;(e=c.end)==null||e.call(c)}},Zia=function(a,b){for(a=wha(a[12]);a!==null;a=wha(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&Xia(d,b)}},Xia=function(a,b){var c=a[1],d=a[2],e=a[24],f=!!(b===0&&d&16);f||(f=!!(d&64&&b===0));f||(f=!!(d&1024));f||
(f=!!((e==null?0:e.dirty)&&tea(e)));f||(f=!1);e&&(e.dirty=!1);a[2]&=-9217;if(f){var h=c.template;b=a[8];if((a[2]&256)!==256){var k=a[2];Afa(a);d=!0;f=e=null;if(c.type!==2){if((e=a[24])!=null)var q=e;else e=(q=$ia.pop())!=null?q:Object.create(aja),e.lView=a,q=e;f=q;e=bd(f)}else if(Xc===null){d=!1;var u;q=(u=a[24])!=null?u:Object.create(bja);q.lView=a;f=q;e=bd(f)}else a[24]&&(wea(a[24]),a[24]=null);try{a[17]=0;Nd.bindingIndex=c.bindingStartIndex;h!==null&&mia(c,a,h,2,b);if(q=(k&3)===3){var A=c.preOrderCheckHooks;
A!==null&&Xd(a,A,3,null)}else{var G=c.preOrderHooks;G!==null&&Ffa(a,G,0,null);Gfa(a,0)}for(var H=wha(a[12]);H!==null;H=wha(H[4]))if(H[2]&2){var N=H[9];for(A=0;A<N.length;A++)pfa(N[A])}Wia(a);Zia(a,0);c.contentQueries!==null&&yia(c,a);if(q){var O=c.contentCheckHooks;O!==null&&Xd(a,O,3)}else{var U=c.contentHooks;U!==null&&Ffa(a,U,1);Gfa(a,1)}var da=c.hostBindingOpCodes;if(da!==null)try{for(H=0;H<da.length;H++){var ma=da[H];if(ma<0)Nd.selectedIndex=~ma;else{N=ma;var ra=da[++H],Ga=da[++H];O=Nd;O.bindingIndex=
O.bindingRootIndex=ra;Nd.currentDirectiveIndex=N;Ga(2,a[N])}}}finally{Nd.selectedIndex=-1}var Na=c.components;Na!==null&&cja(a,Na,0);var Qa=c.viewQuery;Qa!==null&&zia(2,Qa,b);if(q){var gb=c.viewCheckHooks;gb!==null&&Xd(a,gb,3)}else{var va=c.viewHooks;va!==null&&Ffa(a,va,2);Gfa(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var Ja=l(a[22]),La=Ja.next();!La.done;La=Ja.next()){var Lb=La.value;Lb()}a[22]=null}Via(a);a[2]&=-73}catch(Eb){throw Ld(a),Eb;}finally{f!==null&&(cd(f,e),d&&
(a=f,a.lView[24]!==a&&(a.lView=null,$ia.push(a)))),Dfa()}}}else d&8192&&(Wia(a),Zia(a,1),c=c.components,c!==null&&cja(a,c,1),Via(a))},cja=function(a,b,c){for(var d=0;d<b.length;d++){var e=c,f=Jd(b[d],a);(f[2]&128)===128&&Xia(f,e)}},dja=function(a,b){b=10+b;if(b<a.length)return a[b]},fja=function(a,b,c,d){d=d===void 0?!0:d;var e=b[1],f=10+c,h=a.length;c>0&&(a[f-1][4]=b);c<h-10?(b[4]=a[f],f=10+c,f>=a.length?a.push(b):a.splice(f,0,b)):(a.push(b),b[4]=null);b[3]=a;f=b[16];f!==null&&a!==f&&eja(f,b);f=
b[18];f!==null&&Bia(f,e);rfa(b);b[2]|=128;d&&(c=Sia(c,a),d=b[11],f=d.parentNode(a[7]),f!==null&&(a=a[5],b[0]=f,b[5]=a,Bf(d,1,e.firstChild,b,f,c,!1)));b=b[6];b!==null&&b.firstChild!==null&&(b.firstChild=null)},gja=function(a){a=Df(a,0);a!==void 0&&Pia(a[1],a)},Df=function(a,b){if(!(a.length<=10)){var c=10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Nia(e,d);b>0&&(a[c-1][4]=d[4]);a=Qea(a,10+b);Mia(d[1],d);d[0]=null;d[5]=null;b=a[18];b!==null&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-129}return d}},
eja=function(a,b){var c=a[9],d=b[3];Dd(d)?a[2]|=2:b[15]!==d[3][15]&&(a[2]|=2);c===null?a[9]=[b]:c.push(b)},hja=function(a){return Object.keys(a).map(function(b){var c=l(a[b]),d=c.next().value,e=c.next().value;c=c.next().value;b={propName:d,templateName:b,isSignal:(e&1)!==0};c&&(b.transform=c);return b})},ija=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},kja=function(a,b,c){(b=b instanceof Ef?b:b==null?void 0:b.injector)&&a.getStandaloneInjector!==null&&
(b=a.getStandaloneInjector(b)||b);return b?new jja(c,b):c},mja=function(a){var b=a.get(Ff,null);if(b===null)throw new Wc(407,!1);var c=a.get(lja,null);a=a.get(Gf,null);return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a}},nja=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},qja=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],h=1,k=2;h<a.length;){var q=a[h];if(typeof q===
"string")k===2?q!==""&&e.push(q,a[++h]):k===8&&f.push(q);else{if((k&1)!==0)break;k=q}h++}f.length&&e.push.apply(e,[1].concat(p(f)));a=e}f=e=null;h=0;if(c)for(c=l(c),k=c.next();!k.done;k=c.next())k=k.value,h+=k[oja].requiredVars,k.create&&(k.target=b,q=void 0,((q=e)!=null?q:e=[]).push(k)),k.update&&(k.target=b,q=void 0,((q=f)!=null?q:f=[]).push(k));if(d)for(b=l(d),d=b.next();!d.done;d=b.next())if(c=d.value,typeof c!=="function")for(d=Lea(c.type,!0),c=l(c.bindings),k=c.next();!k.done;k=c.next())k=k.value,
h+=k[oja].requiredVars,k.create&&(k.target=d,q=void 0,((q=e)!=null?q:e=[]).push(k)),k.update&&(k.target=d,q=void 0,((q=f)!=null?q:f=[]).push(k));return Iha(0,null,pja(e,f),1,h,null,null,null,null,[a],null)},pja=function(a,b){return a||b?function(c){if(c&1&&a)for(var d=l(a),e=d.next();!e.done;e=d.next())e.value.create();if(c&2&&b)for(c=l(b),d=c.next();!d.done;d=c.next())d.value.update()}:null},rja=function(a){a=a[oja].kind;return a==="input"||a==="twoWay"},sja=function(a,b,c){a=a.projection=[];for(var d=
0;d<b.length;d++){var e=c[d];a.push(e!=null&&e.length?Array.from(e):null)}},tja=function(a,b,c){return new Hf(a,b,c,!1)},vja=function(a,b,c){return(new uja({providers:a,parent:b,debugName:c===void 0?null:c,runEnvironmentInitializers:!0})).injector},B=function(a){return Zd(function(){var b=wja(a),c,d=Object.assign({},b,{decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===0,directiveDefs:null,pipeDefs:null,dependencies:b.standalone&&
a.dependencies||null,getStandaloneInjector:b.standalone?function(e){e=e.get(If);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=Sea(!1,d.type);f=f.length>0?vja([f],e._injector,"Standalone["+d.type.name+"]"):null;e.cachedInjectors.set(d,f)}e=e.cachedInjectors.get(d)}else e=null;return e}:null,getExternalStyles:null,signals:(c=a.signals)!=null?c:!1,data:a.data||{},encapsulation:a.encapsulation||0,styles:a.styles||wd,_:null,schemas:a.schemas||null,tView:null,id:""});b.standalone&&Ye("NgStandalone");
xja(d);b=a.dependencies;d.directiveDefs=yja(b,!1);d.pipeDefs=yja(b,!0);d.id=zja(d);return d})},Aja=function(a){return a[vd]||Lea(a)},Bja=function(a){return a!==null},Jf=function(a){return Zd(function(){return{type:a.type,bootstrap:a.bootstrap||wd,declarations:a.declarations||wd,imports:a.imports||wd,exports:a.exports||wd,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},Kf=function(a){return Zd(function(){var b=wja(a);xja(b);return b})},Lf=function(a){var b;return{type:a.type,
name:a.name,factory:null,pure:a.pure!==!1,standalone:(b=a.standalone)!=null?b:!0,onDestroy:a.type.prototype.ngOnDestroy||null}},wja=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,h=a.hostAttrs||null,k=a.contentQueries||null,q=a.inputs||Gd,u=a.exportAs||null,A=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var G=a.selectors||wd,H=a.viewQuery||null,N=a.features||null;var O=a.inputs;if(O==null)var U=Gd;else{var da={};for(U in O)if(O.hasOwnProperty(U)){var ma=O[U];if(Array.isArray(ma)){var ra=
ma[0];var Ga=ma[1];var Na=void 0;var Qa=(Na=ma[2])!=null?Na:Ga;ma=ma[3]||null}else Qa=Ga=ma,ra=0,ma=null;da[Ga]=[U,ra,ma];b[Ga]=Qa}U=da}a=a.outputs;if(a==null)var gb=Gd;else{O={};for(gb in a)a.hasOwnProperty(gb)&&(O[a[gb]]=gb);gb=O}return{type:d,providersResolver:null,factory:null,hostBindings:e,hostVars:f,hostAttrs:h,contentQueries:k,declaredInputs:b,inputConfig:q,exportAs:u,standalone:A,signals:c,selectors:G,viewQuery:H,features:N,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:U,
outputs:gb,debugInfo:null}},xja=function(a){var b;(b=a.features)==null||b.forEach(function(c){return c(a)})},yja=function(a,b){if(!a)return null;var c=b?Nea:Aja;return function(){return(typeof a==="function"?a():a).map(function(d){return c(d)}).filter(Bja)}},zja=function(a){var b=0;a=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,typeof a.consts==="function"?"":a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),
!!a.contentQueries,!!a.viewQuery];a=l(a.join("|"));for(var c=a.next();!c.done;c=a.next())b=Math.imul(31,b)+c.value.charCodeAt(0)<<0;return"c"+(b+2147483648)},Mf=function(a){return!!a&&typeof a.then==="function"},Cja=function(a){return!!a&&typeof a.subscribe==="function"},Nf=function(a){return typeof a==="function"&&a[ed]!==void 0},Dja=function(a){return He(function(b,c){var d=!1,e=null,f=null,h=!1,k=function(){var u;(u=f)==null||u.unsubscribe();f=null;d&&(d=!1,u=e,e=null,c.next(u));h&&c.complete()},
q=function(){f=null;h&&c.complete()};b.subscribe(new Ie(c,function(u){d=!0;e=u;f||re(a(u)).subscribe(f=new Ie(c,k,void 0,q))},void 0,function(){h=!0;d&&f&&!f.closed||c.complete()}))})},Of=function(a,b){b=b===void 0?Re:b;return Dja(function(){return Se(a,b)})},Eja=function(a){return He(function(b,c){var d=[];b.subscribe(new Ie(c,function(e){return d.push(e)},void 0,function(){c.next(d);c.complete()}));a.subscribe(new Ie(c,function(){var e=d;d=[];c.next(e)},void 0,le));return function(){d=null}})},
Pf=function(a){return He(function(b,c){var d=null,e=!1,f;d=b.subscribe(new Ie(c,void 0,function(h){f=re(a(h,Pf(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null,f.subscribe(c))})},Fja=function(a,b,c){return function(d,e){var f=c,h=b,k=0;d.subscribe(new Ie(e,function(q){var u=k++;h=f?a(h,q,u):(f=!0,q);e.next(h)},void 0,void 0))}},Gja=function(){var a=ud.apply(0,arguments),b=Cga(a);return b?oe(Gja.apply(null,p(a)),Gga(b)):He(function(c,d){Mga([c].concat(p(Xga(a))))(d)})},
Qf=function(){return Gja.apply(null,p(ud.apply(0,arguments)))},Rf=function(a){return je()?Le(a,void 0,1):Le(a,1)},Ija=function(){return Hja.apply(null,p(ud.apply(0,arguments)))},Hja=function(){var a=ud.apply(0,arguments),b=Be(a);return He(function(c,d){Me(1)(Ae([c].concat(p(a)),b)).subscribe(d)})},Jja=function(a){return He(function(b,c){var d=!1,e=null,f=null,h=function(){var k;(k=f)==null||k.unsubscribe();f=null;d&&(d=!1,k=e,e=null,c.next(k))};b.subscribe(new Ie(c,function(k){var q;(q=f)==null||
q.unsubscribe();d=!0;e=k;f=new Ie(c,h,void 0,le);re(a(k)).subscribe(f)},void 0,function(){h();c.complete()},function(){e=f=null}))})},Sf=function(a,b){b=b===void 0?Re:b;var c=Se(a,b);return Jja(function(){return c})},Kja=function(a){a=a===void 0?null:a;return He(function(b,c){var d=!1;b.subscribe(new Ie(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);c.complete()}))})},Lja=function(){return He(function(a,b){a.subscribe(new Ie(b,le))})},Tf=function(a){return He(function(b,c){b.subscribe(new Ie(c,
function(){return c.next(a)}))})},Uf=function(){return He(function(a,b){var c=0;a.subscribe(new Ie(b,function(d){++c<=1&&(b.next(d),1<=c&&b.complete())}))})},Mja=function(a){return Le(function(b,c){return a(b,c).pipe(Uf(),Tf(b))})},Wf=function(a,b){b=b===void 0?Re:b;var c=Se(a,b);return Mja(function(){return c})},Xf=function(a){var b=b===void 0?ne:b;var c;a=(c=a)!=null?c:Nja;return He(function(d,e){var f,h=!0;d.subscribe(new Ie(e,function(k){var q=b(k);if(h||!a(f,q))h=!1,f=q,e.next(k)}))})},Nja=function(a,
b){return a===b},Pja=function(a){a=a===void 0?Oja:a;return He(function(b,c){var d=!1;b.subscribe(new Ie(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})},Oja=function(){return new Fe},Yf=function(a){return He(function(b,c){b.subscribe(c);c.add(a)})},Zf=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?Ve(function(e,f){return a(e,f,d)}):ne,Uf(),c?Kja(b):Pja(function(){return new Fe}))}},Qja=function(){return He(function(a,b){var c=[];
a.subscribe(new Ie(b,function(d){c.push(d);1<c.length&&c.shift()},void 0,function(){for(var d=l(c),e=d.next();!e.done;e=d.next())b.next(e.value);b.complete()},function(){c=null}))})},Rja=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?Ve(function(e,f){return a(e,f,d)}):ne,Qja(),c?Kja(b):Pja(function(){return new Fe}))}},Sja=function(){var a=ud.apply(0,arguments),b=Be(a),c=Dga(a);a=Xga(a);return He(function(d,e){Me(c)(Ae([d].concat(p(a)),b)).subscribe(e)})},Tja=function(){return Sja.apply(null,
p(ud.apply(0,arguments)))},Uja=function(a){var b=je(a)?a:function(){return a};return je()?He(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new $f(c,b);je(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}},Vja=function(){return He(function(a,b){var c,d=!1;a.subscribe(new Ie(b,function(e){var f=c;c=e;d&&b.next([f,e]);d=!0}))})},Wja=function(){var a=new ag(1,void 0,void 0);return function(b){return Uja(function(){return a})(b)}},
Xja=function(){var a=ud.apply(0,arguments);return a.length?He(function(b,c){Yga([b].concat(p(a)))(c)}):ne},Yja=function(a,b){return He(Fja(a,b,arguments.length>=2))},Zja=function(){var a=a||{};var b=a.connector===void 0?function(){return new bg}:a.connector,c=a.resetOnComplete===void 0?!0:a.resetOnComplete,d=a.resetOnError===void 0?!0:a.resetOnError,e=a.resetOnRefCountZero===void 0?!0:a.resetOnRefCountZero;return function(f){var h=null,k=null,q=0,u=!1,A=!1,G=function(){h=k=null;u=A=!1};return He(function(H,
N){q++;var O;k=(O=k)!=null?O:b();N.add(function(){q--;if(e&&!q&&!A&&!u){var U=h;G();U==null||U.unsubscribe()}});k.subscribe(N);!h&&q>0&&(h=new Ee({next:function(U){return k.next(U)},error:function(U){A=!0;var da=k;d&&G();da.error(U)},complete:function(){u=!0;var U=k;c&&G();U.complete()}}),se(H).subscribe(h))})(f)}},cg=function(a){var b;a&&typeof a==="object"?b=a:b={bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0};return function(c){return He($ja(b))(c)}},$ja=function(a){var b=a.bufferSize===
void 0?Infinity:a.bufferSize;var c=a.windowTime===void 0?Infinity:a.windowTime;var d=a.refCount;var e=a.scheduler;var f,h=0,k;return function(q,u){h++;if(f)var A=f.subscribe(u);else f=new ag(b,c,e),A=f.subscribe(u),k=q.subscribe({next:function(G){f.next(G)},error:function(G){var H=f;f=k=void 0;H.error(G)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);u.add(function(){h--;A.unsubscribe();d&&h===0&&k&&(k.unsubscribe(),f=k=void 0)})}},dg=function(a){return Ve(function(b,c){return a<=
c})},eg=function(){var a=ud.apply(0,arguments),b=Be(a);return He(function(c,d){(b?Ne(a,c,b):Ne(a,c)).subscribe(d)})},fg=function(a){return He(function(b,c){var d=null,e=0,f=!1;b.subscribe(new Ie(c,function(h){var k;(k=d)==null||k.unsubscribe();k=e++;re(a(h,k)).subscribe(d=new Ie(c,function(q){return c.next(q)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},aka=function(a){return fg(function(){return a})},gg=function(a){return He(function(b,c){re(a).subscribe(new Ie(c,
function(){return c.complete()},void 0,le));!c.closed&&b.subscribe(c)})},bka=function(a){var b=b===void 0?!1:b;return He(function(c,d){var e=0;c.subscribe(new Ie(d,function(f){var h=a(f,e++);(h||b)&&d.next(f);!h&&d.complete()}))})},hg=function(a,b){var c=je(a)||b?{next:a,error:b,complete:void 0}:a;return c?He(function(d,e){d.subscribe(new Ie(e,function(f){var h;(h=c.next)==null||h.call(c,f);e.next(f)},function(f){var h;(h=c.error)==null||h.call(c,f);e.error(f)},function(){var f;(f=c.complete)==null||
f.call(c);e.complete()}))}):ne},eka=function(a){var b=cka.leading;var c=cka.trailing;return He(function(d,e){var f=!1,h=null,k=null,q=!1,u=function(){var N;(N=k)==null||N.unsubscribe();k=null;c&&(H(),q&&e.complete())},A=function(){k=null;q&&e.complete()},G=function(N){return k=re(a(N)).subscribe(new Ie(e,u,void 0,A))},H=function(){f&&(e.next(h),!q&&G(h));f=!1;h=null};d.subscribe(new Ie(e,function(N){f=!0;h=N;(!k||k.closed)&&(b?H():G(N))},void 0,function(){q=!0;c&&f&&k&&!k.closed||e.complete()}))})},
ig=function(){var a=ud.apply(0,arguments),b=Cga(a);return He(function(c,d){for(var e=a.length,f=Array(e),h=a.map(function(){return!1}),k=!1,q={i$jscomp$310:0};q.i$jscomp$310<e;q={i$jscomp$310:q.i$jscomp$310},q.i$jscomp$310++)re(a[q.i$jscomp$310]).subscribe(new Ie(d,function(u){return function(A){f[u.i$jscomp$310]=A;k||h[u.i$jscomp$310]||(h[u.i$jscomp$310]=!0,(k=h.every(ne))&&(h=null))}}(q),void 0,le));c.subscribe(new Ie(d,function(u){k&&(u=[u].concat(p(f)),d.next(b?b.apply(null,p(u)):u))}))})},fka=
function(){Cea=function(){throw new Wc(600,!1);}},gka=function(a,b){return Array.isArray(b)?b.reduce(gka,a):Object.assign({},a,b)},hka=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},ika=function(a,b,c,d){var e=Yc(null);try{var f=b.tView,h,k,q,u=Kha(a,f,c,a[2]&4096?4096:16,null,b,null,null,(h=d==null?void 0:d.injector)!=null?h:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,(q=d==null?void 0:d.dehydratedView)!=null?q:null);u[16]=a[b.index];var A=a[18];A!==null&&(u[18]=A.createEmbeddedView(f));
Cia(f,u,c);return u}finally{Yc(e)}},jg=function(a,b){return!b||b.firstChild===null||(a.flags&128)===128},kg=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,c=!0,d=[a];b;){if(a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new Wc(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=jka(a.inputs);f.declaredInputs=jka(a.declaredInputs);f.outputs=jka(a.outputs);(f=e.hostBindings)&&kka(a,f);f=e.viewQuery;var h=e.contentQueries;f&&lka(a,f);h&&mka(a,
h);f=void 0;h=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&!h.inputs.hasOwnProperty(f)){var q=k.inputs[f];q!==void 0&&(h.inputs[f]=q,h.declaredInputs[f]=k.declaredInputs[f])}f=void 0;h=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!h.hasOwnProperty(f)&&(h[f]=k[f]);e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=0;f<e.length;f++)(h=e[f])&&h.ngInherit&&h(a),h===kg&&(c=!1)}b=Object.getPrototypeOf(b)}a=0;b=null;
for(c=d.length-1;c>=0;c--)e=d[c],e.hostVars=a+=e.hostVars,e.hostAttrs=Yd(e.hostAttrs,b=Yd(b,e.hostAttrs))},jka=function(a){return a===Gd?{}:a===wd?[]:a},lka=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,e);c(d,e)}:b},mka=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);c(d,e,f)}:b},kka=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},oka=function(a){for(var b=[],c=!1,d=null,e=null,f=0;f<a.length;f++){var h=a[f];if(h.hostDirectives!==
null){var k=b.length;d!=null||(d=new Map);e!=null||(e=new Map);nka(h,b,d);e.set(h,[k,b.length-1])}f===0&&h.template&&(c=!0,b.push(h))}for(c=c?1:0;c<a.length;c++)b.push(a[c]);return[b,d,e]},nka=function(a,b,c){if(a.hostDirectives!==null){a=l(a.hostDirectives);for(var d=a.next();!d.done;d=a.next())if(d=d.value,typeof d==="function"){d=d();d=l(d);for(var e=d.next();!e.done;e=d.next())pka(qka(e.value),b,c)}else pka(d,b,c)}},pka=function(a,b,c){var d=Lea(a.directive),e=d.declaredInputs,f=a.inputs,h;for(h in f)f.hasOwnProperty(h)&&
(e[f[h]]=e[h]);nka(d,b,c);c.set(d,a);b.push(d)},qka=function(a){return typeof a==="function"?{directive:md(a),inputs:Gd,outputs:Gd}:{directive:md(a.directive),inputs:rka(a.inputs),outputs:rka(a.outputs)}},rka=function(a){if(a===void 0||a.length===0)return Gd;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},tka=function(){return ska(Pd(),r())},uka=function(a){return a[8]||(a[8]=[])},ska=function(a,b){var c=b[a.index];if(Fd(c))var d=c;else d=[c,!0,0,b,null,a,null,null,null,null],b[a.index]=
d,Nha(b,d);vka(d,b,a,c);return new lg(d,a,b)},wka=function(a,b,c,d){if(!a[7]){if(c.type&8)d=Hd(d);else{d=b[11];var e=d.createComment("");c=Id(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},yka=function(a,b,c,d,e,f,h,k,q,u,A){var G=c+26;if(b.firstCreatePass){var H=b.consts;h=yf(b,G,4,h||null,k||null);Jia(b,a,h,Kd(H,u),ria);h.mergedAttrs=Yd(h.mergedAttrs,h.attrs);Efa(b,h);d=h.tView=Iha(2,h,d,e,f,b.directiveRegistry,b.pipeRegistry,null,b.schemas,H,null);b.queries!==null&&
(b.queries.template(b,h),d.queries=b.queries.embeddedTView(h));d=h}else d=b.data[G];q&&(d.flags|=q);Rd(d,!1);c=xka(b,a,d,c);mg&&Ria(b,a,c,d);ef(c,a);c=[c,!0,0,a,null,d,null,c,null,null];a[G]=c;Nha(a,c);(d.flags&1)===1&&nia(b,a,d);u!=null&&oia(a,d,A)},C=function(a,b,c,d,e,f,h,k){var q=r(),u=Od();f=Kd(u.consts,f);yka(q,u,a,b,c,d,e,f,void 0,h,k);return C},zka=function(a,b){mg=!0;return b[11].createComment("")},ng=function(a,b,c,d){var e=r(),f=Nd.bindingIndex++;kf(e,f,b)&&(f=Ud(),sia(f,e,a,b,c,d));return ng},
og=function(a,b,c,d){d=d===void 0?"":d;return kf(a,Nd.bindingIndex++,c)?b+Uc(c)+d:mf},Aka=function(a,b,c,d,e,f){f=f===void 0?"":f;a=lf(a,Nd.bindingIndex,c,e);Td(2);return a?b+Uc(c)+d+Uc(e)+f:mf},pg=function(a,b,c,d,e,f){var h=r();b=og(h,b,c,d);b!==mf&&(c=Ud(),sia(c,h,a,b,e,f));return pg},qg=function(a,b,c,d,e,f,h,k){var q=r();b=Aka(q,b,c,d,e,f);b!==mf&&(c=Ud(),sia(c,q,a,b,h,k));return qg},Bka=function(a,b,c,d,e,f,h,k,q,u){var A=r();k=k===void 0?"":k;var G=Nd.bindingIndex;var H=lf(A,G,c,e);G=kf(A,
G+2,h)||H;Td(3);b=G?b+Uc(c)+d+Uc(e)+f+Uc(h)+k:mf;b!==mf&&(c=Ud(),sia(c,A,a,b,q,u));return Bka},D=function(a,b,c){var d=r(),e=Nd.bindingIndex++;if(kf(d,e,b)){e=Od();var f=Ud();wf(e,f,d,a,b,d[11],c,!1)}return D},Cka=function(a,b,c,d){for(var e=a[c+1],f=b===null,h=d?e>>17&32767:(e&131068)>>2,k=!1;h!==0&&(k===!1||f);){var q=a[h+1],u=a[h];if(u===null||b==null||(Array.isArray(u)?u[1]:u)===b||Array.isArray(u)&&typeof b==="string"&&sd(u,b)>=0)k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=
d?e|2:e|1)},Dka=function(a,b){var c=rg;if(c===b)return-1;for(b=sg=b;b<c&&a.charCodeAt(b)>32;)b++;b=tg=b;return ug(a,b,c)},Ika=function(a,b){var c=rg;b=sg=ug(a,b,c);if(c===b)return-1;for(var d;b<c&&((d=a.charCodeAt(b))===45||d===95||(d&-33)>=65&&(d&-33)<=90||d>=48&&d<=57);)b++;b=tg=b;b=Eka(a,b,c);d=b=Fka=ug(a,b,c);for(var e=b=-1,f=-1,h=d,k=h;h<c;){var q=a.charCodeAt(h++);if(q===59)break;else q===34||q===39?k=h=Gka(a,q,h,c):d===h-4&&f===85&&e===82&&b===76&&q===40?k=h=Gka(a,41,h,c):q>32&&(k=h);f=e;e=
b;b=q&-33}b=Hka=k;return Eka(a,b,c)},ug=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},Eka=function(a,b,c){b=ug(a,b,c);b<c&&b++;return b},Gka=function(a,b,c,d){for(var e=-1;c<d;){var f=a.charCodeAt(c++);if(f==b&&e!==92)return c;e=f==92&&e===92?0:f}throw Error();},vg=function(a,b,c){Jka(a,b,c,!1);return vg},wg=function(a,b){Jka(a,b,null,!0);return wg},Lka=function(a,b){var c;Hka=Fka=tg=sg=0;rg=b.length;for(c=Ika(b,ug(b,0,rg));c>=0;c=Ika(b,c))Kka(a,b.substring(sg,tg),b.substring(Fka,Hka))},
xg=function(a){Mka(Nka,Oka,a,!0)},Oka=function(a,b){var c;Hka=Fka=tg=sg=0;rg=b.length;for(c=Dka(b,ug(b,0,rg));c>=0;c=Dka(b,c))td(a,b.substring(sg,tg),!0)},Jka=function(a,b,c,d){var e=r(),f=Od(),h=Td(2);f.firstUpdatePass&&Pka(f,a,h,d);if(b!==mf&&kf(e,h,b)){var k=f.data[Nd.selectedIndex],q=e[11];b!=null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Vc(of(b))));Qka(f,k,e,q,a,e[h+1]=b,d,h)}},Mka=function(a,b,c,d){var e=Od(),f=Td(2);e.firstUpdatePass&&Pka(e,null,f,d);var h=r();if(c!==mf&&
kf(h,f,c)){var k=e.data[Nd.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var q=h[11],u=h[f+1];if(c==null||c==="")a=wd;else{var A=[];c=of(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(A,c[b],!0);else if(typeof c==="object")for(var G in c)c.hasOwnProperty(G)&&a(A,G,c[G]);else typeof c==="string"&&b(A,c);a=A}a=h[f+1]=a;u===mf&&(u=wd);b=A=0;c=0<u.length?u[0]:null;for(G=0<a.length?a[0]:null;c!==null||G!==null;){var H=A<u.length?u[A+1]:void 0,N=b<a.length?a[b+1]:void 0,O=null,U=void 0;
c===G?(A+=2,b+=2,H!==N&&(O=G,U=N)):G===null||c!==null&&c<G?(A+=2,O=c):(b+=2,O=G,U=N);O!==null&&Qka(e,k,h,q,O,U,d,f);c=A<u.length?u[A]:null;G=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=lea(f,c?c:"")),vf(k,e,h,d?"class":"style",c)}},Pka=function(a,b,c,d){var e=a.data;if(e[c+1]===null){var f=e[Nd.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var h=xfa(e),k=d?f.residualClasses:f.residualStyles;if(h===null)(d?f.classBindings:
f.styleBindings)===0&&(b=Rka(null,e,f,b,d),b=yg(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(q===-1||e[q]!==h)if(b=Rka(h,e,f,b,d),k===null)h=d?f.classBindings:f.styleBindings,h=(h&131068)>>2!==0?e[h>>17&32767]:void 0,h!==void 0&&Array.isArray(h)&&(h=Rka(null,e,f,h[1],d),h=yg(h,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=h);else{k=void 0;h=f.directiveEnd;for(q=1+f.directiveStylingLast;q<h;q++)k=yg(k,e[q].hostAttrs,d);k=yg(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=
k:f.residualStyles=k);h=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=h;q=!1;if(Array.isArray(h)){var u=h[1];if(u===null||sd(h,u)>0)q=!0}else u=h;a?k!==0?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,a!==0&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,b!==0&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,b===0?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);q&&(e[c+1]|=2);Cka(e,u,c,!0);Cka(e,u,c,!1);a=u;h=d?f.residualClasses:f.residualStyles;h!=null&&typeof a==
"string"&&sd(h,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},Rka=function(a,b,c,d,e){var f=c.directiveEnd,h=c.directiveStylingLast;for(h===-1?h=c.directiveStart:h++;h<f;){var k=b[h];d=yg(d,k.hostAttrs,e);if(k===a)break;h++}a!==null&&(c.directiveStylingLast=h);return d},yg=function(a,b,c){var d=c?1:2,e=-1;if(b!==null)for(var f=0;f<b.length;f++){var h=b[f];typeof h==="number"?e=h:e===d&&(Array.isArray(a)||(a=a===void 0?[]:["",a]),td(a,h,c?!0:b[++f]))}return a===void 0?null:
a},Kka=function(a,b,c){td(a,b,of(c))},Nka=function(a,b,c){b=String(b);b===""||b.includes(" ")||td(a,b,c)},Qka=function(a,b,c,d,e,f,h,k){if(b.type&3){a=a.data;var q=a[k+1];((q&1)===1?Ska(a,b,c,e,(q&131068)>>2,h):void 0)===void 0&&(f!==void 0||(q&2)==2&&(f=Ska(a,null,c,e,k,h)),b=Hd(c[Nd.selectedIndex]),h?f?d.addClass(b,e):d.removeClass(b,e):(h=e.indexOf("-")===-1?void 0:2,f==null?d.removeStyle(b,e,h):(typeof f==="string"&&f.endsWith("!important")&&(f=f.slice(0,-10),h|=1),d.setStyle(b,e,f,h))))}},Ska=
function(a,b,c,d,e,f){for(var h=b===null,k=void 0;e>0;){var q=a[e],u=Array.isArray(q),A=u?q[1]:q,G=A===null,H=c[e+1];H===mf&&(H=G?wd:void 0);A=G?Rea(H,d):A===d?H:void 0;u&&A===void 0&&(A=Rea(q,d));if(A!==void 0&&(k=A,h))return k;e=a[e+1];e=h?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:b.residualStyles,a!=null&&(k=Rea(a,d)));return k},zg=function(a,b,c){a=og(r(),a,b,c);Mka(td,Oka,a,!0)},Tka=function(a,b,c,d,e){return a===c&&Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},Zka=function(a,
b,c){var d=void 0,e=void 0,f=0,h=a.length-1;if(Array.isArray(b)){for(var k=b.length-1;f<=h&&f<=k;){var q=a.at(f),u=b[f],A=Tka(f,q,f,u,c);if(A!==0)A<0&&a.updateValue(f,u),f++;else{var G=a.at(h);A=b[k];var H=Tka(h,G,k,A,c);H!==0?(H<0&&a.updateValue(h,A),h--,k--):(q=c(f,q),G=c(h,G),H=c(f,u),Object.is(H,G)?(G=c(k,A),Object.is(G,q)?(Uka(a,f,h),a.updateValue(h,A),k--,h--):a.move(h,f),a.updateValue(f,u),f++):(d!=null||(d=new Vka),e!=null||(e=Wka(a,f,h,c)),Xka(a,d,f,H)?(a.updateValue(f,u),f++,h++):e.has(H)?
(d.set(q,a.detach(f)),h--):(u=a.create(f,b[f]),a.attach(f,u),f++,h++)))}}for(;f<=k;)Yka(a,d,c,f,b[f]),f++}else if(b!=null){b=b[Symbol.iterator]();for(k=b.next();!k.done&&f<=h;)u=a.at(f),A=k.value,q=Tka(f,u,f,A,c),q!==0?(q<0&&a.updateValue(f,A),f++,k=b.next()):(d!=null||(d=new Vka),e!=null||(e=Wka(a,f,h,c)),q=c(f,A),Xka(a,d,f,q)?(a.updateValue(f,A),f++,h++,k=b.next()):e.has(q)?(u=c(f,u),d.set(u,a.detach(f)),h--):(a.attach(f,a.create(f,A)),f++,h++,k=b.next()));for(;!k.done;)Yka(a,d,c,a.length,k.value),
k=b.next()}for(;f<=h;)a.destroy(a.detach(h--));var N;(N=d)==null||N.forEach(function(O){a.destroy(O)})},Xka=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),b.delete(d),!0):!1},Yka=function(a,b,c,d,e){Xka(a,b,d,c(d,e))?a.updateValue(d,e):(b=a.create(d,e),a.attach(d,b))},Wka=function(a,b,c,d){for(var e=new Set;b<=c;b++)e.add(d(b,a.at(b)));return e},E=function(a,b,c,d,e,f){Ye("NgControlFlow");var h=r(),k=Od();f=Kd(k.consts,f);yka(h,k,a,b,c,d,e,f,256);return Ag},Ag=function(a,b,c,
d,e,f,h,k){Ye("NgControlFlow");var q=r(),u=Od();f=Kd(u.consts,f);yka(q,u,a,b,c,d,e,f,512,h,k);return Ag},F=function(a,b){Ye("NgControlFlow");var c=r(),d=Nd.bindingIndex++,e=c[d]!==mf?c[d]:-1;e=e!==-1?c[26+e]:void 0;if(kf(c,d,a)){d=Yc(null);try{if(e!==void 0&&gja(e),a!==-1){a=26+a;var f=c[a],h=c[1].data[a],k=ika(c,h,b,{dehydratedView:null});fja(f,k,0,jg(h,null))}}finally{Yc(d)}}else e!==void 0&&(c=dja(e,0),c!==void 0&&(c[8]=b))},Bg=function(a){return a},Cg=function(a,b){return b},Dg=function(a,b,c,
d,e,f,h,k){Ye("NgControlFlow");var q=r(),u=Od(),A=r();h=k?h.bind(A[15][8]):h;A[26+a]=new $ka(h);yka(q,u,a+1,b,c,d,e,Kd(u.consts,f),256)},Eg=function(a){var b=Yc(null),c=Nd.selectedIndex;try{var d=r(),e=d[1],f=d[c],h=c+1,k=d[h];f.liveCollection===void 0?f.liveCollection=new ala(k,d,e.data[h]):f.liveCollection.reset();var q=f.liveCollection;Zka(q,a,f.trackByFn);if(q.needsIndexUpdate)for(a=0;a<q.length;a++)dja(q.lContainer,a)[8].$index=a;if(f.hasEmptyBlock){var u=Nd.bindingIndex++,A=q.length===0;if(kf(d,
u,A)){c+=2;var G=d[c];if(A){var H=e.data[c],N=ika(d,H,void 0,{dehydratedView:null});fja(G,N,0,jg(H,null))}else{if(e.firstUpdatePass){var O,U=(O=G[6])!=null?O:[],da=G[3][11];d=[];for(var ma=l(U),ra=ma.next();!ra.done;ra=ma.next()){var Ga=ra.value;if(Ga.data.di!==void 0)d.push(Ga);else{U=0;var Na=Ga.firstChild;if(Na)for(var Qa=Ga.data.r;U<Qa;){var gb=Na.nextSibling;da.removeChild(null,Na,!1);Na=gb;U++}}}G[6]=d}gja(G)}}}}finally{Yc(b)}},I=function(a,b,c,d){var e=r(),f=Od(),h=26+a;a=e[11];c=f.firstCreatePass?
Lia(h,f,e,b,ria,c,d):f.data[h];mg=!0;b=a.createElement(b,Nd.currentNamespace);e[h]=b;h=(c.flags&1)===1;Rd(c,!0);Cha(a,b,c);(c.flags&32)!==32&&mg&&Ria(f,e,b,c);(Nd.elementDepthCount===0||h)&&ef(b,e);Nd.elementDepthCount++;h&&(nia(f,e,c),Aia(f,c,e));d!==null&&oia(e,c);return I},J=function(){var a=Pd();Nd.isParent?Nd.isParent=!1:(a=a.parent,Rd(a,!1));Eia===a&&(Eia=null);Nd.elementDepthCount--;var b=Od();b.firstCreatePass&&(Efa(b,a),(a.flags&4)!==0&&b.queries.elementEnd(a));a.classesWithoutHost!=null&&
(a.flags&8)!==0&&vf(a,b,r(),"class",a.classesWithoutHost);a.stylesWithoutHost!=null&&(a.flags&16)!==0&&vf(a,b,r(),"style",a.stylesWithoutHost);return J},K=function(a,b,c,d){I(a,b,c,d);J();return K},Fg=function(a,b,c){var d=r(),e=Od();a+=26;if(e.firstCreatePass){var f=e.consts;var h=Kd(f,b);b=yf(e,a,8,"ng-container",h);h!==null&&Dia(b,h,!0);f=Kd(f,c);Jia(e,d,b,f,ria);b.mergedAttrs=Yd(b.mergedAttrs,b.attrs);e.queries!==null&&e.queries.elementStart(e,b);f=b}else f=e.data[a];Rd(f,!0);mg=!0;b=d[11].createComment(Bha());
d[a]=b;mg&&Ria(e,d,b,f);ef(b,d);(f.flags&1)===1&&(nia(e,d,f),Aia(e,f,d));c!=null&&oia(d,f);return Fg},Gg=function(){var a=Pd(),b=Od();Nd.isParent?Nd.isParent=!1:(a=a.parent,Rd(a,!1));b.firstCreatePass&&(Efa(b,a),(a.flags&4)!==0&&b.queries.elementEnd(a));return Gg},Hg=function(a,b,c){Fg(a,b,c);Gg();return Hg},Ig=function(a,b,c){var d=r(),e=Nd.bindingIndex++;if(kf(d,e,b)){e=Od();var f=Ud();wf(e,f,d,a,b,d[11],c,!0)}return Ig},bla=function(a,b,c){var d=r(),e=Nd.bindingIndex++;if(kf(d,e,b)){e=Od();var f=
Ud();wf(e,f,d,a,b,tia(xfa(e.data),f,d),c,!0)}return bla},Jg=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=cla(b))return a;b=b.split("-")[0];if(a=cla(b))return a;if(b==="en")return dla;throw new Wc(701,!1);},cla=function(a){a in ela||(ela[a]=qf.ng&&qf.ng.common&&qf.ng.common.locales&&qf.ng.common.locales[a]);return ela[a]},fla=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);b[c]=d},L=function(a){return Nd.contextLView[26+a]},Kg=function(a){var b=Od(),c=r();a+=26;
var d=yf(b,a,128,null,null);Rd(d,!1);fla(b,c,a,gla);return Kg},Lg=function(a){Ye("NgLet");fla(Od(),r(),Nd.selectedIndex,a);return a},Mg=function(a){a=Nd.contextLView[26+a];if(a===gla)throw new Wc(314,!1);return a},M=function(a,b,c){var d=r();hla(Od(),d,d[11],Pd(),a,b,c);return M},ila=function(a,b){var c=Pd(),d=r(),e=Od();hla(e,d,tia(xfa(e.data),c,d),c,a,b);return ila},jla=function(a,b,c,d){a=a.cleanup;if(a!=null)for(var e=0;e<a.length-1;e+=2){var f=a[e];if(f===c&&a[e+1]===d)return b=b[7],c=a[e+2],
b.length>c?b[c]:null;typeof f==="string"&&(e+=2)}return null},hla=function(a,b,c,d,e,f,h){var k=(d.flags&1)===1,q=a.firstCreatePass?ufa(a):null,u=tfa(b),A=!0;if(d.type&3||h){var G=Id(d,b),H=h?h(G):G;G=u.length;var N=h?function(ma){return h(Hd(ma[d.index]))}:d.index,O=null;!h&&k&&(O=jla(a,b,e,d.index));O!==null?((O.__ngLastListenerFn__||O).__ngNextListenerFn__=f,O.__ngLastListenerFn__=f,A=!1):(f=wia(d,b,f),c=c.listen(H,e,f),u.push(f,c),q&&q.push(e,N,G,G+1))}else f=wia(d,b,f);if(A){var U;A=(U=d.outputs)==
null?void 0:U[e];var da;if((U=(da=d.hostDirectiveOutputs)==null?void 0:da[e])&&U.length)for(da=0;da<U.length;da+=2)xia(d,a,b,U[da],U[da+1],e,f,u,q);if(A&&A.length)for(da=l(A),U=da.next();!U.done;U=da.next())xia(d,a,b,U.value,e,e,f,u,q)}},P=function(a){a=a===void 0?1:a;for(var b=Nd.contextLView;a>0;)b=b[14],a--;return(Nd.contextLView=b)[8]},Ng=function(a){var b=r()[15][5];if(!b.projection){for(var c=a?a.length:1,d=[],e=0;e<c;e++)d.push(null);c=b.projection=d;d=c.slice();for(b=b.child;b!==null;){if(b.type!==
128){if(a)a:{e=b;var f=a,h=null;b:{var k=e.attrs;if(k!=null){var q=k.indexOf(5);if((q&1)===0){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var u=f[q];if(u==="*")h=q;else{if(k===null)u=dga(e,u,!0);else b:{var A=0;c:for(;A<u.length;A++){var G=u[A];if(k.length===G.length){for(var H=0;H<k.length;H++)if(k[H]!==G[H])continue c;u=!0;break b}}u=!1}if(u){e=q;break a}}}e=h}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},Og=function(a,b,c){b=b===void 0?0:b;var d=r(),e=Od();a=yf(e,
26+a,16,null,c||null);a.projection===null&&(a.projection=b);Nd.isParent=!1;d[6]&&Eia===null||(a.flags&32)===32||(b=d[11],e=Qia(e,a.parent,d),c=a.parent||d[5],c=c.type&40?Id(c,d):null,Tia(b,0,d,a,e,c))},Qg=function(a,b,c){Pg(a,"",b,"",c);return Qg},Pg=function(a,b,c,d,e){var f=r();b=og(f,b,c,d);b!==mf&&(c=Od(),d=Ud(),wf(c,d,f,a,b,f[11],e,!1));return Pg},Rg=function(a,b,c,d,e,f,h){var k=r();b=Aka(k,b,c,d,e,f);b!==mf&&(c=Od(),d=Ud(),wf(c,d,k,a,b,k[11],h,!1));return Rg},kla=function(){return this._results[Symbol.iterator]()},
mla=function(){return lla(Pd(),r())},lla=function(a,b){return a.type&4?new Sg(b,a,gf(a,b)):null},nla=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=c.matches,f=[],h=0;e!==null&&h<e.length;h+=2){var k=e[h];if(k<0)f.push(null);else{var q=f,u=q.push,A=b,G=a[k],H=e[h+1];k=c.metadata.read;H===-1?(k=G,A=k.type&11?gf(k,A):k.type&4?lla(k,A):null):H===-2?A=k===ff?gf(G,A):k===Tg?lla(G,A):k===Ug?ska(G,A):void 0:A=ce(A,A[1],H,G);u.call(q,A)}}d.matches=f}return d.matches},ola=function(a,
b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=nla(a,b,e,c),c=0;c<f.length;c+=2){var h=f[c];if(h>0)d.push(a[c/2]);else{e=f[c+1];h=b[-h];for(var k=10;k<h.length;k++){var q=h[k];q[16]===q[3]&&ola(q[1],q,e,d)}if(h[9]!==null)for(h=h[9],k=0;k<h.length;k++)q=h[k],ola(q[1],q,e,d)}}return d},rla=function(a,b){var c=r();b=new Vg((b&4)===4);var d=b.destroy,e=tfa(c);e.push(b);a.firstCreatePass&&ufa(a).push(d,e.length-1);var f;return((f=c[18])!=null?f:c[18]=new pla).queries.push(new qla(b))-
1},Wg=function(a,b,c){var d=Od();d.firstCreatePass&&(sla(d,new tla(a,b,c),-1),(b&2)===2&&(d.staticViewQueries=!0));rla(d,b)},Xg=function(a,b,c,d){var e=Od();if(e.firstCreatePass){var f=Pd();sla(e,new tla(b,c,d),f.index);b=e.contentQueries||(e.contentQueries=[]);a!==(b.length?b[b.length-1]:-1)&&b.push(e.queries.length-1,a);(c&2)===2&&(e.staticContentQueries=!0)}return rla(e,c)},ula=function(a){return a.split(",").map(function(b){return b.trim()})},sla=function(a,b,c){a.queries===null&&(a.queries=new vla);
a.queries.track(new Yg(b,c))},wla=function(a,b){var c=a[1],d=c.queries.queries[b];return d.crossesNgTemplate?ola(c,a,b,[]):nla(c,a,d,b)},$g=function(a){var b=r(),c=Od(),d=Nd.currentQueryIndex;Nd.currentQueryIndex=d+1;c=c.queries.queries[d];return a.dirty&&(b[2]&4)===4===((c.metadata.flags&2)===2)?(c.matches===null?a.reset([]):(b=wla(b,d),a.reset(b,xha),Zg(a)),!0):!1},ah=function(){return r()[18].queries[Nd.currentQueryIndex].queryList},bh=function(a){a=Bea(a);var b=a[ed];a.set=function(c){return fd(b,
c)};a.update=function(c){vea()||Cea();fd(b,c(b.value))};a.asReadonly=xla.bind(a);return a},xla=function(){var a=this,b=this[ed];if(b.readonlyFn===void 0){var c=function(){return a()};c[ed]=b;b.readonlyFn=c}return b.readonlyFn},yla=function(a){var b=zea(function(){c._dirtyCounter();var d=c;var e=d._lView;var f=d._queryIndex;e===void 0||f===void 0||e[2]&4?e=void 0:(d=e[18].queries[f].queryList,e=wla(e,f),d.reset(e,xha),e=d.first);if(a&&e===void 0)throw new Wc(-951,!1);return e});var c=b[ed];c._dirtyCounter=
bh(0);c._flatValue=void 0;return b},Ala=function(a,b){var c=a[ed];c._lView=r();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;zla(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},Q=function(a,b){b=b===void 0?"":b;var c=r(),d=Od();a+=26;var e=d.firstCreatePass?yf(d,a,1,b,null):d.data[a];mg=!0;b=c[11].createText(b);c[a]=b;mg&&Ria(d,c,b,e);Rd(e,!1)},ch=function(a){R("",a);return ch},R=function(a,b,c){var d=r();a=og(d,a,b,c);a!==mf&&Bla(d,a);return R},
dh=function(a,b,c,d,e){var f=r();a=Aka(f,a,b,c,d,e);a!==mf&&Bla(f,a);return dh},Cla=function(a,b,c,d,e,f,h,k,q){var u=r();q=q===void 0?"":q;var A=Nd.bindingIndex;var G=lf(u,A,b,d);A=lf(u,A+2,f,k)||G;Td(4);a=A?a+Uc(b)+c+Uc(d)+e+Uc(f)+h+Uc(k)+q:mf;a!==mf&&Bla(u,a);return Cla},Bla=function(a,b){a[11].setValue(Hd(a[Nd.selectedIndex]),b)},eh=function(a,b,c){Nf(b)&&typeof b.set==="function"&&(b=b());var d=r(),e=Nd.bindingIndex++;if(kf(d,e,b)){e=Od();var f=Ud();wf(e,f,d,a,b,d[11],c,!1)}return eh},fh=function(a,
b){var c=Nf(a)&&typeof a.set==="function";c&&a.set(b);return c},gh=function(a,b){var c=r();hla(Od(),c,c[11],Pd(),a,b);return gh},Dla=function(a,b,c,d,e){a=md(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)Dla(a[f],b,c,d,e);else{f=Od();var h=r(),k=Pd(),q=xd(a)?a:md(a.provide),u=ffa(a),A=k.providerIndexes&1048575,G=k.directiveStart,H=k.providerIndexes>>20;if(xd(a)||!a.multi)d=new de(u,e),u=Ela(q,b,e?A:A+H,G),u===-1?(u=Rfa(k,h),Nfa(u,f,q),Fla(f,a,b.length),b.push(q),k.directiveStart++,k.directiveEnd++,
e&&(k.providerIndexes+=1048576),c.push(d),h.push(d)):(c[u]=d,h[u]=d);else{G=Ela(q,b,A+H,G);A=Ela(q,b,A,A+H);var N=G>=0&&c[G];H=A>=0&&c[A];e&&!H||!e&&!N?(G=Rfa(k,h),Nfa(G,f,q),G=c.length,N=new de(e?Gla:Hla,e),N.multi=[],N.index=G,N.componentProviders=0,d&&!e&&N.componentProviders++,N.multi.push(u),!e&&H&&(c[A].providerFactory=N),Fla(f,a,b.length,0),b.push(q),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(N),h.push(N)):(b=c[e?A:G],!e&&d&&b.componentProviders++,b=b.multi.push(u)-
1,Fla(f,a,G>-1?G:A,b));!e&&d&&H&&c[A].componentProviders++}}},Fla=function(a,b,c,d){var e=xd(b),f=!!b.useClass;if(e||f)if(f=(f?md(b.useClass):b).prototype.ngOnDestroy)a=a.destroyHooks||(a.destroyHooks=[]),!e&&b.multi?(b=a.indexOf(c),b===-1?a.push(c,[d,f]):a[b+1].push(d,f)):a.push(c,f)},Ela=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},Hla=function(){return Ila(this.multi,[])},Gla=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;
d=ce(c,c[1],this.providerFactory.index,d);c=d.slice(0,e);Ila(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],Ila(b,c);return c},Ila=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},hh=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Od();f.firstCreatePass&&(d=!!d.template,Dla(b,f.data,f.blueprint,d,!0),Dla(e,f.data,f.blueprint,d,!1))}}},ih=function(a,b){a=Sd()+a;var c=r();return c[a]===mf?jf(c,a,b()):c[a]},jh=function(a,
b,c){return Jla(r(),Sd(),a,b,c)},kh=function(a,b,c,d){return Kla(r(),Sd(),a,b,c,d)},lh=function(a,b,c,d,e){return Lla(r(),Sd(),a,b,c,d,e)},Nla=function(a,b,c,d,e,f){var h=Mla,k=Sd()+6,q=r();var u=lf(q,k,a,b);u=lf(q,k+2,c,d)||u;return lf(q,k+4,e,f)||u?jf(q,k+6,h(a,b,c,d,e,f)):q[k+6]},Ola=function(a,b){a=a[b];return a===mf?void 0:a},Jla=function(a,b,c,d,e,f){b+=c;return kf(a,b,e)?jf(a,b+1,f?d.call(f,e):d(e)):Ola(a,b+1)},Kla=function(a,b,c,d,e,f,h){b+=c;return lf(a,b,e,f)?jf(a,b+2,h?d.call(h,e,f):d(e,
f)):Ola(a,b+2)},Lla=function(a,b,c,d,e,f,h,k){b+=c;c=lf(a,b,e,f);return kf(a,b+2,h)||c?jf(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):Ola(a,b+3)},S=function(a,b){var c=Od();a+=26;if(c.firstCreatePass){a:{var d=c.pipeRegistry;if(d)for(var e=d.length-1;e>=0;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;if(b.onDestroy){var h;((h=c.destroyHooks)!=null?h:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];h=b.factory||(b.factory=qd(b.type));b=id(zf);try{var k=Lfa(!1),q=h();Lfa(k);fla(c,r(),
a,q)}finally{id(b)}},T=function(a,b,c){a+=26;var d=r(),e=d[a];return d[1].data[a].pure?Jla(d,Sd(),b,e.transform,c,e):e.transform(c)},mh=function(a,b,c,d){a+=26;var e=r(),f=e[a];return e[1].data[a].pure?Kla(e,Sd(),b,f.transform,c,d,f):f.transform(c,d)},Pla=function(a,b,c,d){a+=26;var e=r(),f=e[a];return e[1].data[a].pure?Lla(e,Sd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},Qla=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=yja(b,!1);a.pipeDefs=yja(c,!0)},nh=function(a,b){return lla(a,b)},Tla=function(){function a(){sea(b);
if(b.value===Rla)throw new Wc(-950,null);return b.value}var b=Object.create(Sla);b.value=void 0;b.transformFn=void 0;a[ed]=b;return a},Ula=function(){return yla(!1)},Vla=function(a){var b=Pd(),c=r();b.componentOffset>-1&&(a&16)!==16?(a=Jd(b.index,c),a=new oh(a,a)):a=b.type&175?new oh(c[15],c):null;return a},Wla=function(a,b,c){a=a.previousIndex;if(a===null)return a;var d=0;c&&a<c.length&&(d=c[a]);return a+b+d},$la=function(a){var b=a.ngZoneFactory;var c=a.ignoreChangesOutsideZone;var d=a.scheduleInRootZone;
b!=null||(b=function(){return new ph(Object.assign({},Xla(),{scheduleInRootZone:d}))});return[{provide:ph,useFactory:b},{provide:Yea,multi:!0,useFactory:function(){var e=n(qh,{optional:!0});return function(){return e.initialize()}}},{provide:Yea,multi:!0,useFactory:function(){var e=n(rh);return function(){e.initialize()}}},c===!0?{provide:Yla,useValue:!0}:[],{provide:Zla,useValue:d!=null?d:!1},{provide:sh,useFactory:function(){var e=n(ph),f=n(xf);return function(h){return e.runOutsideAngular(function(){return f.handleError(h)})}}}]},
Xla=function(a){var b,c;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(b=a==null?void 0:a.eventCoalescing)!=null?b:!1,shouldCoalesceRunChangeDetection:(c=a==null?void 0:a.runCoalescing)!=null?c:!1}},fma=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(ph);return c.run(function(){a.moduleRef?a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();var d=b.get(xf,null),e;c.runOutsideAngular(function(){e=c.onError.subscribe({next:function(u){d.handleError(u)}})});
if(a.moduleRef){var f=function(){return a.moduleRef.destroy()},h=a.platformInjector.get(ama);h.add(f);a.moduleRef.onDestroy(function(){hka(a.allPlatformModules,a.moduleRef);e.unsubscribe();h.delete(f)})}else{var k=function(){return b.destroy()},q=a.platformInjector.get(ama);q.add(k);b.onDestroy(function(){e.unsubscribe();q.delete(k)})}return bma(d,c,function(){var u=b.get(th);cma(u);return u.donePromise.then(function(){b.get(uh,"en-US");if(!b.get(dma,!0)){if(!a.moduleRef)return b.get(vh);a.allPlatformModules.push(a.moduleRef);
return a.moduleRef}if(!a.moduleRef){var A=b.get(vh);a.rootComponent!==void 0&&A.bootstrap(a.rootComponent);return A}ema(a.moduleRef,a.allPlatformModules);return a.moduleRef})})})},ema=function(a,b){var c=a.injector.get(vh);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(function(d){return c.bootstrap(d)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(c);else throw new Wc(-403,!1);b.push(a)},bma=function(a,b,c){try{var d=c();return Mf(d)?d.catch(function(e){b.runOutsideAngular(function(){return a.handleError(e)});
throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a.handleError(e)}),e;}},kma=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new yd(d);return function(f){f=f===void 0?[]:f;var h=gma();if(!h||h.injector.get(hma,!1))if(f=[].concat(p(c),p(f),[{provide:e,useValue:!0}]),a)a(f);else{f=ima(f,d);if(wh&&!wh.get(hma,!1))throw new Wc(400,!1);fka();wh=f;f.get(xh);jma(f)}f=gma();if(!f)throw new Wc(401,!1);return f}},ima=function(a,b){a=a===void 0?[]:a;return zh({name:b,providers:[{provide:lma,
useValue:"platform"},{provide:ama,useValue:new Set([function(){return wh=null}])}].concat(p(a))})},gma=function(){var a,b;return(b=(a=wh)==null?void 0:a.get(xh))!=null?b:null},jma=function(a){var b=a.get(mma,null);Bd(a,function(){b==null||b.forEach(function(c){return c()})})},Ah=function(a,b){return zea(a,b==null?void 0:b.equal)},qma=function(a,b){(b==null?0:b.injector)||Cd();var c,d=(c=b==null?void 0:b.injector)!=null?c:n(Ze);c=(b==null?void 0:b.manualCleanup)!==!0?d.get(df):null;var e=d.get(nha,
null,{optional:!0}),f=d.get(Gf);if(e===null||(b==null?0:b.forceRoot))var h=nma(a,d.get(Bh),f);else h=oma(e.view,f,a),c instanceof he&&c._lView===e.view&&(c=null);h.injector=d;c!==null&&(h.onDestroyFn=c.onDestroy(function(){return h.destroy()}));return new pma(h)},oma=function(a,b,c){var d=Object.create(rma);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=c;a[23]!=null||(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},nma=function(a,b,c){var d=Object.create(sma);
d.fn=a;d.scheduler=b;d.notifier=c;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.scheduler.schedule(d);d.notifier.notify(12);return d},Ch=function(a){if(typeof a==="function")return a=Eea(a,tma),uma(a);a=Eea(a.source,a.computation,a.equal);return uma(a)},uma=function(a){var b=a[ed];a.set=function(c){ad(b);fd(b,c);b.dirty=!1;b.lastCleanEpoch=$c};a.update=function(c){ad(b);vea()||Cea();fd(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=$c};a.asReadonly=xla.bind(a);return a},vma=function(a){switch(a.status){case 2:return a.extRequest.reload===
0?2:3;case 4:return gd(a.stream).error===void 0?4:1;default:return a.status}},Dh=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},Eh=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},wma=function(a,b){a=a[vd]||null;var c=b.elementInjector||cfa();return(new Fh(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},xma=function(a){var b=a[vd]||null;if(!b)return null;var c=new Fh(b);return{get selector(){return c.selector},
get type(){return c.componentType},get inputs(){return c.inputs},get outputs(){return c.outputs},get ngContentSelectors(){return c.ngContentSelectors},get isStandalone(){return b.standalone},get isSignal(){return b.signals}}},Gh=function(a){a||(Cd(),a=n(df));var b=new pe(function(c){return a.onDestroy(c.next.bind(c))});return function(c){return c.pipe(gg(b))}},Hh=function(){var a=function(){throw Error();};Object.setPrototypeOf(a,a.prototype);return a},Ama=function(a){var b=yma;var c=c===void 0?zma:
c;return new Ih(a,b,c)},yma=function(a,b,c,d,e){b=b instanceof V?b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows:Array.isArray(b)?yc(b,d,!1):void 0;if(b!=null){Jh(a,c,2);c=a.encoder_.end();Kh(a,c);c.push(a.totalLength_);e(b,a);e=c.pop();for(e=a.totalLength_+a.encoder_.length()-e;e>127;)c.push(e&127|128),e>>>=7,a.totalLength_++;c.push(e);a.totalLength_++}},Ema=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=Ida(d[0]);var f=d[1],h=1;f&&f.constructor===Object&&
(e.extensions=f,f=d[++h],typeof f==="function"&&(e.isMessageSet=!0,Bma!=null||(Bma=f),Cma!=null||(Cma=d[h+1]),f=d[h+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var q=0;q<f.length;q++)k[f[q]]=f;f=d[++h]}for(q=1;f!==void 0;){typeof f==="number"&&(q+=f,f=d[++h]);var u=void 0;if(f instanceof Ih)var A=f;else A=Dma,h--;f=void 0;if((f=A)==null?0:f.$$isMsg){f=d[++h];u=d;var G=h;typeof f==="function"&&(f=f(),u[G]=f);u=f}f=d[++h];G=q+1;typeof f==="number"&&f<0&&(G-=
f,f=d[++h]);for(;q<G;q++){var H=k[q];u?c(e,q,A,u,H):b(e,q,A,H)}}return d[a]=e},Gma=function(a){return Array.isArray(a)?a[0]instanceof Ih?a:[Fma,a]:[a,void 0]},Hma=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},Jma=function(a,b,c,d,e){var f=c.$$binaryReaderFn,h,k;a[b]=function(q,u,A){return f(q,u,A,k||(k=Ema(Ima,Hma,Jma,d).messageMetadata),h||(h=Kma(d)),e)}},Kma=function(a){var b=a[Lma];if(b!=null)return b;var c=Ema(Ima,Hma,Jma,a);b=c.isMessageSet?function(d,
e){return Bma(d,e,c)}:function(d,e){for(var f=d[jb]|0;Mma(e)&&e.nextWireType_!=4;){var h=e.nextField_,k=c[h];if(k==null){var q=c.extensions;q&&(q=q[h])&&(q=Nma(q),q!=null&&(k=c[h]=q))}if(k==null||!k(e,d,h)){q=e;k=q.fieldCursor_;Oma(q);if(q.discardUnknownFields)var u=void 0;else{var A=q.decoder_.getCursor()-k;q.decoder_.cursor_=k;u=q.decoder_.readByteString(A)}A=q=k=void 0;var G=d;u&&((k=(q=(A=G[sc])!=null?A:G[sc]=new wda)[h])!=null?k:q[h]=[]).push(u)}}if(e=tc(d))e.reviveUnknownFields=c.binaryFields[Pma];
f&8192&&ob(d);return!0};a[Lma]=b;a[Pma]=Qma.bind(a);return b},Qma=function(a,b,c){var d=this[Ima],e=this[Lma],f=yc(void 0,d.messageMetadata,!1),h=tc(a);if(h){var k=!1,q=d.extensions;if(q&&(h==null||Rma(h,function(A,G,H){if(H.length!==0)if(q[G])for(A=l(H),G=A.next();!G.done;G=A.next()){G=Sma(G.value);try{k=!0,e(f,G)}finally{G.free()}}else c==null||c(a,G,H)}),k)){var u=a[jb]|0;if(u&2&&u&16384)throw Error();nca(f,f[jb]|0,function(A,G){if(Ic(a,u,A)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;
default:throw Error();}u=Bc(a,u,A,G);delete h[A]})}}},Nma=function(a){a=Gma(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=Kma(a),d=Ema(Ima,Hma,Jma,a).messageMetadata;return function(e,f,h){return b(e,f,h,d,c)}}return b},Lh=function(a){return Ema(Tma,Uma,Vma,a)},Uma=function(a,b,c){a[b]=c.$$binaryWriterFn},Vma=function(a,b,c,d){var e,f,h=c.$$binaryWriterFn;a[b]=function(k,q,u){return h(k,q,u,f||(f=Lh(d).messageMetadata),e||(e=Wma(d)))}},Wma=function(a){var b=a[Xma];if(!b){var c=Lh(a);b=function(d,
e){return Yma(d,e,c)};a[Xma]=b}return b},Yma=function(a,b,c){nca(a,a[jb]|0|(c.messageMetadata[1]?512:0),function(d,e){if(e!=null){var f=Zma(c,d);f&&f(b,e,d)}});(a=tc(a))&&Rma(a,function(d,e,f){Kh(b,b.encoder_.end());for(d=0;d<f.length;d++)Kh(b,zc(f[d])||new Uint8Array(0))})},Zma=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Gma(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=Wma(c),f=Lh(c).messageMetadata;c=a.isMessageSet?Cma(f,e):function(h,k,q){return d(h,k,q,f,e)}}else c=
d;return a[b]=c}},Mh=function(a,b,c){return new Ih(a,b,c)},Nh=function(a,b,c){Bc(a,a[jb]|0,b,c)},$ma=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},Ph=function(a,b,c){if(Oh(a,1).split("/").pop()!=c)a=null;else{var d=typeof b==="function"?b:b.constructor;a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=a[jb]|0;c=Ic(a,b,2);if(c!=null&&!(Array.isArray(c)||typeof c==="object"&&sb(c)))throw Error("Ta`"+Ib(c));var e=kc(c,d,!0,b);if(!(e instanceof d))throw Error("Ua`"+
e.constructor.displayName+"`"+d.displayName);d=b&2;var f=nb(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);f&&!d?e=pc(e):!f&&d&&(e=Oda(e));c!==e&&Bc(a,b,2,e);a=e}return a},ana=function(a,b){return function(c,d){var e={treatNewDataAsImmutable:!0};d&&Object.assign(e,d);c=Sma(c,void 0,void 0,e);try{var f=new a,h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Kma(b)(h,c);var k=f}finally{c.free()}return k}},bna=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("la`"+
Ib(b)+"`"+b);ob(b);return new a(b)}},Rh=function(a){return function(b){return cna(a,b)}},dna=function(a){if(a!=null)return Sh(a)},Sh=function(a){return $b(a)?Number(a):String(a)},fna=function(){var a=null;if(!ena)return a;try{var b=function(c){return c};a=ena.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a},hna=function(){gna===void 0&&(gna=fna());return gna},Uh=function(a){var b=hna();return new Th(b?b.createScriptURL(a):a)},Vh=function(a){if(a instanceof
Th)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("wa");},ina=function(a){return a.toString().indexOf("`")===-1},Xh=function(a){return a instanceof Wh},Yh=function(a){if(Xh(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("wa");},Zh=function(a){return new jna(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},$h=function(a){var b=b===void 0?kna:b;a:if(b=b===void 0?kna:b,!Xh(a)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof jna&&d.isValid(a)){a=new Wh(a);
break a}}a=void 0}return a||lna},nna=function(a){if(mna.test(a))return a},ai=function(a){return a instanceof Wh?Yh(a):nna(a)},ona=function(a,b){b=ai(b);b!==void 0&&(a.href=b)},ci=function(a){var b=hna();return new bi(b?b.createHTML(a):a)},di=function(a){return a instanceof bi},ei=function(a){if(di(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("wa");},pna=function(a,b){a.src=Vh(b).toString()},fi=function(a,b,c,d){b=ai(b);return b!==void 0?a.open(b,c,d):null},qna=function(a){a=a===void 0?
document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""},gi=function(a,b){a.src=Vh(b);(b=qna(a.ownerDocument))&&a.setAttribute("nonce",b)},rna=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("wa");a.innerHTML=ei(b)},sna=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;
case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}},tna=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";
case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}},wna=function(a){var b=[],c=[];a=una([].concat(p(a)).sort(vna));a=l(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$204:void 0,operator$jscomp$5:void 0},d=a.next())d=d.value,e.name$jscomp$204=d.name,e.operator$jscomp$5=d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(h){return qca(h)||sca(h)?f.name$jscomp$204+f.operator$jscomp$5+h:f.name$jscomp$204+
f.operator$jscomp$5+'"'+h+'"'}}(e)).join(" "));c.length>0&&b.push("filters="+encodeURIComponent(c.join(",")));return b.join(" ")},una=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.operator;var e=d.values;if(d=d.id)if(daa(qca)(e))b.push({name:d,operator:c,values:e});else if(daa(pca)(e))b.push({name:d,operator:c,values:e});else if(daa(sca)(e))b.push({name:d,operator:c,values:e});else throw Error("eb`"+e);}return b},hi=function(a,b,c){if(xna.includes(a)||yna.includes(a)||
zna.includes(a))return{id:a,operator:b,values:c};throw Error("fb`"+a);},vna=function(a,b){return a.id===b.id?JSON.stringify(a)<JSON.stringify(b)?-1:1:Ana.indexOf(a.id)-Ana.indexOf(b.id)},Bna=function(a){switch(a){case "user":return"borg_user";case "job":case "job_regex":return"borg_job";case "cell":return"cell";case "index":return"task_index";case "attempt":return"task_attempt_uid";case "min_time":return"start_time";case "max_time":return"end_time";case "q":return"text_payload";case "q_invert":return"text_payload";
case "min_severity":return"severity";case "remote_log_name":return"log_name";case "process_name":return"process_name";case "trace_id":return"trace_id";case "span_id":return"span_id";case "job_uid":return"job_uid";case "process_id":return"local_process_id";case "src_file":case "inverted_call_site_regex":return"site_path";default:return null}},Cna=function(a,b,c){var d=Bna(a);if(!d)return null;switch(a){case "user":case "job":case "cell":case "trace_id":case "span_id":case "job_uid":case "process_id":case "process_name":case "remote_log_name":return[hi(d,
"=",[b])];case "job_regex":return[hi(d,"=",b.split("|"))];case "index":case "attempt":case "min_time":case "max_time":return[hi(d,"=",[Number(b)])];case "q":return[hi(d,"=",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[hi(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[hi(d,"=",[a?b+":"+a:b])];case "inverted_call_site_regex":return[hi(d,"!=",[].concat(p(b.split(","))))];default:return null}},Dna=function(a){switch(a){case "resource.labels.borg_user":return"borg_user";
case "resource.labels.borg_job":return"borg_job";case "resource.labels.borg_cell":return"cell";case "resource.labels.borg_task_index":return"task_index";case "resource.labels.borg_task_attempt_uid":return"task_attempt_uid";case "text_payload":return"text_payload";case "severity":return"severity";case "resource.labels.log_name":return"log_name";case "resource.labels.process_name":return"process_name";case "trace":return"trace_id";case "span_id":return"span_id";case "resource.labels.borg_job_uid":return"job_uid";
case "resource.labels.local_process_id":return"local_process_id";case "source_location.file":return"site_path";default:return null}},Ena=function(a){if(a&&!a.createEmbeddedView)throw new Wc(2020,!1);},Fna=function(a,b,c){a=Jg(a);b=ii([a[1],a[2]],b);return ii(b,c)},Gna=function(a,b,c){a=Jg(a);b=ii([a[3],a[4]],b);return ii(b,c)},Hna=function(a,b,c){a=Jg(a);b=ii([a[5],a[6]],b);return ii(b,c)},Ina=function(a,b){a=Jg(a)[7];return ii(a,b)},Jna=function(a,b){a=Jg(a);return ii(a[10],b)},Kna=function(a,b){a=
Jg(a);return ii(a[11],b)},Lna=function(a,b){a=Jg(a)[12];return ii(a,b)},ji=function(a,b){a=Jg(a);var c=a[13][b];if(typeof c==="undefined"){if(b===12)return a[13][0];if(b===13)return a[13][1]}return c},Mna=function(a){if(!a[21])throw Error("hb`"+a[0]);},Ona=function(a){a=Jg(a);Mna(a);return(a[21][2]||[]).map(function(b){return typeof b==="string"?Nna(b):[Nna(b[0]),Nna(b[1])]})},Pna=function(a,b,c){a=Jg(a);Mna(a);b=ii([a[21][0],a[21][1]],b)||[];return ii(b,c)||[]},ii=function(a,b){for(;b>-1;b--)if(typeof a[b]!==
"undefined")return a[b];throw Error("ib");},Nna=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},ki=function(){return new Wc(2100,!1)},Yna=function(a,b,c,d){var e=Qna(a);b=li(c,b)||b;a=[];for(var f;b;)if(f=Rna.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var h=e.getTimezoneOffset();d&&(h=Sna(d,h),e=Tna(e,d));var k="";a.forEach(function(q){a:if(Una[q])var u=Una[q];else{switch(q){case "G":case "GG":case "GGG":u=mi(3,1);break;
case "GGGG":u=mi(3,2);break;case "GGGGG":u=mi(3,0);break;case "y":u=ni(0,1,0,!1,!0);break;case "yy":u=ni(0,2,0,!0,!0);break;case "yyy":u=ni(0,3,0,!1,!0);break;case "yyyy":u=ni(0,4,0,!1,!0);break;case "Y":u=Vna(1);break;case "YY":u=Vna(2,!0);break;case "YYY":u=Vna(3);break;case "YYYY":u=Vna(4);break;case "M":case "L":u=ni(1,1,1);break;case "MM":case "LL":u=ni(1,2,1);break;case "MMM":u=mi(2,1);break;case "MMMM":u=mi(2,2);break;case "MMMMM":u=mi(2,0);break;case "LLL":u=mi(2,1,1);break;case "LLLL":u=
mi(2,2,1);break;case "LLLLL":u=mi(2,0,1);break;case "w":u=Wna(1);break;case "ww":u=Wna(2);break;case "W":u=Wna(1,!0);break;case "d":u=ni(2,1);break;case "dd":u=ni(2,2);break;case "c":case "cc":u=ni(7,1);break;case "ccc":u=mi(1,1,1);break;case "cccc":u=mi(1,2,1);break;case "ccccc":u=mi(1,0,1);break;case "cccccc":u=mi(1,3,1);break;case "E":case "EE":case "EEE":u=mi(1,1);break;case "EEEE":u=mi(1,2);break;case "EEEEE":u=mi(1,0);break;case "EEEEEE":u=mi(1,3);break;case "a":case "aa":case "aaa":u=mi(0,
1);break;case "aaaa":u=mi(0,2);break;case "aaaaa":u=mi(0,0);break;case "b":case "bb":case "bbb":u=mi(0,1,1,!0);break;case "bbbb":u=mi(0,2,1,!0);break;case "bbbbb":u=mi(0,0,1,!0);break;case "B":case "BB":case "BBB":u=mi(0,1,0,!0);break;case "BBBB":u=mi(0,2,0,!0);break;case "BBBBB":u=mi(0,0,0,!0);break;case "h":u=ni(3,1,-12);break;case "hh":u=ni(3,2,-12);break;case "H":u=ni(3,1);break;case "HH":u=ni(3,2);break;case "m":u=ni(4,1);break;case "mm":u=ni(4,2);break;case "s":u=ni(5,1);break;case "ss":u=ni(5,
2);break;case "S":u=ni(6,1);break;case "SS":u=ni(6,2);break;case "SSS":u=ni(6,3);break;case "Z":case "ZZ":case "ZZZ":u=Xna(0);break;case "ZZZZZ":u=Xna(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":u=Xna(1);break;case "OOOO":case "ZZZZ":case "zzzz":u=Xna(2);break;default:u=null;break a}Una[q]=u}k+=u?u(e,c,h):q==="''"?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},Zna=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},li=function(a,
b){var c=Jg(a)[0];oi[c]!=null||(oi[c]={});if(oi[c][b])return oi[c][b];var d="";switch(b){case "shortDate":d=Jna(a,0);break;case "mediumDate":d=Jna(a,1);break;case "longDate":d=Jna(a,2);break;case "fullDate":d=Jna(a,3);break;case "shortTime":d=Kna(a,0);break;case "mediumTime":d=Kna(a,1);break;case "longTime":d=Kna(a,2);break;case "fullTime":d=Kna(a,3);break;case "short":d=li(a,"shortTime");var e=li(a,"shortDate");d=$na(Lna(a,0),[d,e]);break;case "medium":d=li(a,"mediumTime");e=li(a,"mediumDate");d=
$na(Lna(a,1),[d,e]);break;case "long":d=li(a,"longTime");e=li(a,"longDate");d=$na(Lna(a,2),[d,e]);break;case "full":d=li(a,"fullTime"),e=li(a,"fullDate"),d=$na(Lna(a,3),[d,e])}d&&(oi[c][b]=d);return d},$na=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},pi=function(a,b,c,d,e){var f="";if(a<0||e&&a<=0)e?a=-a+1:(a=-a,f=c===void 0?"-":c);for(a=String(a);a.length<b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+a},ni=function(a,b,c,d,e){c=c===void 0?
0:c;d=d===void 0?!1:d;e=e===void 0?!1:e;return function(f,h){f=aoa(a,f);if(c>0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=12);else if(a===6)return pi(f,3).substring(0,b);h=ji(h,5);return pi(f,b,h,d,e)}},aoa=function(a,b){switch(a){case 0:return b.getFullYear();case 1:return b.getMonth();case 2:return b.getDate();case 3:return b.getHours();case 4:return b.getMinutes();case 5:return b.getSeconds();case 6:return b.getMilliseconds();case 7:return b.getDay();default:throw new Wc(2301,!1);}},mi=function(a,
b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return boa(e,f,a,b,c,d)}},boa=function(a,b,c,d,e,f){switch(c){case 2:return Hna(b,e,d)[a.getMonth()];case 1:return Gna(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=Ona(b),a=Pna(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var u=l(q);q=u.next().value;u=u.next().value;var A=h>=q.hours&&k>=q.minutes,G=h<u.hours||h===u.hours&&k<u.minutes;if(q.hours<u.hours){if(A&&G)return!0}else if(A||G)return!0}else if(q.hours===
h&&q.minutes===k)return!0;return!1}),c!==-1)?a[c]:Fna(b,e,d)[h<12?0:1];case 3:return Ina(b,d)[a.getFullYear()<=0?0:1];default:throw new Wc(2302,!1);}},Xna=function(a){return function(b,c,d){b=-1*d;c=ji(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(b>=0?"+":"")+pi(e,2,c)+pi(Math.abs(b%60),2,c);case 1:return"GMT"+(b>=0?"+":"")+pi(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+pi(e,2,c)+":"+pi(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+pi(e,2,c)+":"+pi(Math.abs(b%60),
2,c);default:throw new Wc(2302,!1);}}},coa=function(a){var b=a.getDay();b=b===0?-3:4-b;return Zna(a.getFullYear(),a.getMonth(),a.getDate()+b)},Wna=function(a,b){b=b===void 0?!1:b;return function(c,d){if(b){var e=(new Date(c.getFullYear(),c.getMonth(),1)).getDay()-1;c=1+Math.floor((c.getDate()+e)/7)}else{c=coa(c);e=c.getFullYear();var f=Zna(e,0,1).getDay();e=Zna(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return pi(c,a,ji(d,5))}},Vna=function(a,b){b=b===void 0?!1:b;return function(c,
d){c=coa(c).getFullYear();return pi(c,a,ji(d,5),b)}},Sna=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Tna=function(a,b){var c=a.getTimezoneOffset();b=Sna(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Qna=function(a){if(a instanceof Date&&!isNaN(a.valueOf()))return a;if(typeof a==="number"&&!isNaN(a))return new Date(a);if(typeof a==="string"){a=a.trim();if(/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(a)){var b=l(a.split("-").map(function(d){return+d}));
a=b.next().value;var c=b.next().value;c=c===void 0?1:c;b=b.next().value;return Zna(a,c-1,b===void 0?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(doa))return eoa(b)}a=new Date(a);if(!(a instanceof Date)||isNaN(a.valueOf()))throw new Wc(2302,!1);return a},eoa=function(a){var b=new Date(0),c=0,d=0,e=a[8]?b.setUTCFullYear:b.setFullYear,f=a[8]?b.setUTCHours:b.setHours;a[9]&&(c=Number(a[9]+a[10]),d=Number(a[9]+a[11]));e.call(b,Number(a[1]),Number(a[2])-1,Number(a[3]));f.call(b,Number(a[4]||
0)-c,Number(a[5]||0)-d,Number(a[6]||0),Math.floor(parseFloat("0."+(a[7]||0))*1E3));return b},foa=function(a,b){a=a.key;b=b.key;if(a===b)return 0;if(a==null)return 1;if(b==null)return-1;if(typeof a=="string"&&typeof b=="string")return a<b?-1:1;if(typeof a=="number"&&typeof b=="number")return a-b;if(typeof a=="boolean"&&typeof b=="boolean")return a<b?-1:1;a=String(a);b=String(b);return a==b?0:a<b?-1:1},loa=function(a,b,c,d){var e=e===void 0?!1:e;var f="",h=!1;if(isFinite(a)){h=goa(a);e&&(h=hoa(h));
f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(ioa);if(q===null)throw Error("jb`"+d);d=q[1];var u=q[3];q=q[5];d!=null&&(f=joa(d));u!=null&&(e=joa(u));q!=null?k=joa(q):u!=null&&e>k&&(k=e)}koa(h,e,k);d=h.digits;q=h.integerLen;e=h.exponent;k=[];for(h=d.every(function(A){return!A});q<f;q++)d.unshift(0);for(;q<0;q++)d.unshift(0);q>0?k=d.splice(q,d.length):(k=d,d=[0]);f=[];for(d.length>=b.lgSize&&f.unshift(d.splice(-b.lgSize,d.length).join(""));d.length>b.gSize;)f.unshift(d.splice(-b.gSize,
d.length).join(""));d.length&&f.unshift(d.join(""));f=f.join(ji(c,1));k.length&&(f+=ji(c,0)+k.join(""));e&&(f+=ji(c,6)+"+"+e)}else f=ji(c,9);return f=a<0&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},hoa=function(a){if(a.digits[0]===0)return a;var b=a.digits.length-a.integerLen;a.exponent?a.exponent+=2:(b===0?a.digits.push(0,0):b===1&&a.digits.push(0),a.integerLen+=2);return a},goa=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;(c=a.indexOf("."))>-1&&(a=a.replace(".",""));(d=a.search(/e/i))>0?(c<0&&
(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):c<0&&(c=a.length);for(d=0;a.charAt(d)==="0";d++);if(d===(f=a.length)){var h=[0];c=1}else{for(f--;a.charAt(f)==="0";)f--;c-=d;h=[];for(e=0;d<=f;d++,e++)h[e]=Number(a.charAt(d))}c>22&&(h=h.splice(0,21),b=c-1,c=1);return{digits:h,exponent:b,integerLen:c}},koa=function(a,b,c){if(b>c)throw Error("kb`"+b+"`"+c);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,h=d[f];if(f>0){d.splice(Math.max(a.integerLen,f));for(var k=f;k<
d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(h>=5)if(f-1<0){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=c!==0,u=b+a.integerLen;if(b=d.reduceRight(function(A,G,H,N){G+=A;N[H]=G<10?G:G-10;q&&(N[H]===0&&H>=u?N.pop():q=!1);return G>=10?1:0},0))d.unshift(b),a.integerLen++},joa=function(a){var b=parseInt(a);if(isNaN(b))throw Error("lb`"+a);return b},moa=
function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},noa=function(a){var b=a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},qi=function(a){return a&&a[0]!=="?"?"?"+a:a},ooa=function(a){return RegExp("^(https?:)?//").test(a)?(a=l(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):a},poa=function(a){return a.buttons===0||a.detail===0},qoa=function(a){a=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!!a&&
a.identifier===-1&&(a.radiusX==null||a.radiusX===1)&&(a.radiusY==null||a.radiusY===1)},ri=function(a){var b=ud.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},si=function(a,b,c,d,e){var f=parseInt(roa.major),h=parseInt(roa.minor);if(f>19||f===19&&h>0||f===0&&h===0)return a.listen(b,c,d,e);b.addEventListener(c,d,e);return function(){b.removeEventListener(c,d,e)}},uoa=function(){if(soa)return soa;if(typeof document!=="object"||!document)return soa=
new Set(toa);var a=document.createElement("input");return soa=new Set(toa.filter(function(b){a.setAttribute("type",b);return a.type===b}))},voa=function(){if(ti==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ti=!0}}))}finally{ti=ti||!1}return ti},ui=function(a){return voa()?a:!!a.capture},woa=function(){if(vi==null){if(typeof document!=="object"||!document||typeof Element!=="function"||!Element)return vi=!1;if("scrollBehavior"in
document.documentElement.style)vi=!0;else{var a=Element.prototype.scrollTo;vi=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return vi},yoa=function(){if(typeof document!=="object"||!document)return 0;if(xoa==null){var a=document.createElement("div"),b=a.style;a.dir="rtl";b.width="1px";b.overflow="auto";b.visibility="hidden";b.pointerEvents="none";b.position="absolute";b=document.createElement("div");var c=b.style;c.width="2px";c.height="1px";a.appendChild(b);document.body.appendChild(a);xoa=
0;a.scrollLeft===0&&(a.scrollLeft=1,xoa=a.scrollLeft===0?1:2);a.remove()}return xoa},Aoa=function(a){if(zoa==null){var b=typeof document!=="undefined"?document.head:null;zoa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return zoa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},wi=function(){for(var a=typeof document!=="undefined"&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;
else a=b}return a},xi=function(a){return a.composedPath?a.composedPath()[0]:a.target},Boa=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},yi=function(a){return Array.isArray(a)?a:[a]},zi=function(a){return a!=null&&""+a!=="false"},Ai=function(a){return a==null?"":typeof a==="string"?a:a+"px"},Bi=function(a){return a instanceof ff?a.nativeElement:a},Ci=function(a,b){return isNaN(parseFloat(a))||
isNaN(Number(a))?arguments.length===2?b===void 0?0:b:0:Number(a)},Coa=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},Doa=function(a){if(!Coa(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},Eoa=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},Foa=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,
c){return b.concat(c)}).map(function(b){return b.trim()})},Goa=function(){return null},Hoa=function(a){if(a.type==="characterData"&&a.target instanceof Comment)return!0;if(a.type==="childList"){for(var b=0;b<a.addedNodes.length;b++)if(!(a.addedNodes[b]instanceof Comment))return!1;for(b=0;b<a.removedNodes.length;b++)if(!(a.removedNodes[b]instanceof Comment))return!1;return!0}return!1},Joa=function(a,b,c){var d=Ioa(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,
d.join(" ")))},Di=function(a,b,c){var d=Ioa(a,b);c=c.trim();d=d.filter(function(e){return e!==c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},Ioa=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},Koa=function(a,b){return typeof a==="string"?(b||"")+"/"+a:a},Moa=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+Loa++)},Noa=function(a){return dha(a)?a:Ce(a)},Ooa=function(){return n(Ei)},Poa=function(a,b){for(var c=typeof ShadowRoot!==
"undefined"&&ShadowRoot;b;){if(b===a)return!0;b=c&&b instanceof ShadowRoot?b.host:b.parentNode}return!1},Qoa=function(a,b){return b.some(function(c){var d=a.top>c.bottom,e=a.right<c.left,f=a.left>c.right;return a.bottom<c.top||d||e||f})},Roa=function(a,b){return b.some(function(c){var d=a.bottom>c.bottom,e=a.left<c.left,f=a.right>c.right;return a.top<c.top||d||e||f})},Soa=function(a){return a&&typeof a.connect==="function"&&!(a instanceof $f)},Fi=function(a,b){for(var c in b)b.hasOwnProperty(c)&&
(a[c]=b[c])},Uoa=function(a){if(typeof a!=="number"&&a!=null){var b=l(a.split(Toa));a=b.next().value;return(b=b.next().value)&&b!=="px"?null:parseFloat(a)}return a||null},Voa=function(a){return{top:Math.floor(a.top),right:Math.floor(a.right),bottom:Math.floor(a.bottom),left:Math.floor(a.left),width:Math.floor(a.width),height:Math.floor(a.height)}},Hi=function(){return n(Gi,{optional:!0})==="NoopAnimations"},Woa=function(){return n(uh)},Xoa=function(a,b,c){a=Math.max(Math.abs(a-c.left),Math.abs(a-
c.right));b=Math.max(Math.abs(b-c.top),Math.abs(b-c.bottom));return Math.sqrt(a*a+b*b)},Yoa=function(a){a&1&&K(0,"mat-pseudo-checkbox",1);a&2&&(a=P(),D("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},Zoa=function(a){a&1&&K(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),D("disabled",a.disabled))},$oa=function(a){a&1&&(I(0,"span",4),Q(1),J());a&2&&(a=P(),z(),R("(",a.group.label,")"))},apa=function(a,b,c){if(c.length){b=b.toArray();c=c.toArray();for(var d=0,e=0;e<a+1;e++)b[e].group&&b[e].group===
c[d]&&d++;return d}return 0},bpa=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):c},cpa=function(a,b){return this._trackRow(b)},dpa=function(a){a&1&&(I(0,"tr",0)(1,"td",3),Q(2),J()());a&2&&(a=P(),z(),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ng("colspan",a.numCols),z(),R(" ",a.label," "))},epa=function(a){a&1&&(I(0,"td",3),Q(1),J());a&2&&(a=P(2),vg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ng("colspan",a._firstRowOffset),z(),R(" ",a._firstRowOffset>=
a.labelMinRequiredCells?a.label:""," "))},fpa=function(a,b){if(a&1){var c=r();I(0,"td",6)(1,"button",7);M("click",function(f){var h=t(c).$implicit,k=P(2);return v(k._cellClicked(h,f))})("focus",function(f){var h=t(c).$implicit,k=P(2);return v(k._emitActiveDateChange(h,f))});I(2,"span",8);Q(3);J();K(4,"span",9);J()()}if(a&2){a=b.$implicit;b=b.$index;var d=P().$index,e=P();vg("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);ng("data-mat-row",d)("data-mat-col",b);
z();wg("mat-calendar-body-disabled",!a.enabled)("mat-calendar-body-active",e._isActiveCell(d,b))("mat-calendar-body-range-start",e._isRangeStart(a.compareValue))("mat-calendar-body-range-end",e._isRangeEnd(a.compareValue))("mat-calendar-body-in-range",e._isInRange(a.compareValue))("mat-calendar-body-comparison-bridge-start",e._isComparisonBridgeStart(a.compareValue,d,b))("mat-calendar-body-comparison-bridge-end",e._isComparisonBridgeEnd(a.compareValue,d,b))("mat-calendar-body-comparison-start",e._isComparisonStart(a.compareValue))("mat-calendar-body-comparison-end",
e._isComparisonEnd(a.compareValue))("mat-calendar-body-in-comparison-range",e._isInComparisonRange(a.compareValue))("mat-calendar-body-preview-start",e._isPreviewStart(a.compareValue))("mat-calendar-body-preview-end",e._isPreviewEnd(a.compareValue))("mat-calendar-body-in-preview",e._isInPreview(a.compareValue));D("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);ng("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",
e.todayValue===a.compareValue?"date":null)("aria-describedby",e._getDescribedby(a.compareValue));z();wg("mat-calendar-body-selected",e._isSelected(a.compareValue))("mat-calendar-body-comparison-identical",e._isComparisonIdentical(a.compareValue))("mat-calendar-body-today",e.todayValue===a.compareValue);z();R(" ",a.displayValue," ")}},hpa=function(a,b){a&1&&(I(0,"tr",1),E(1,epa,2,6,"td",4),Dg(2,fpa,5,48,"td",5,gpa),J());if(a&2){a=b.$implicit;b=b.$index;var c=P();z();F(b===0&&c._firstRowOffset?1:-1);
z();Eg(a)}},ipa=function(a){return(a==null?void 0:a.nodeName)==="TD"},jpa=function(a){if(ipa(a))var b=a;else if(ipa(a.parentNode))b=a.parentNode;else{var c;ipa((c=a.parentNode)==null?void 0:c.parentNode)&&(b=a.parentNode.parentNode)}var d;return((d=b)==null?void 0:d.getAttribute("data-mat-row"))!=null?b:null},kpa=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},lpa=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},mpa=function(a,b,c,d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},npa=function(a){a=
a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},opa=function(a){return a==null?void 0:Eh(a)},ppa=function(){return{color:"accent"}},qpa=function(a,b){a&1&&(I(0,"th",2)(1,"span",6),Q(2),J(),I(3,"span",3),Q(4),J()());a&2&&(a=b.$implicit,z(2),ch(a.long),z(2),ch(a.narrow))},spa=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=rpa(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},Ii=function(a,b,c,d){return((a.getYear(b)-rpa(a,c,d))%24+24)%24},rpa=function(a,b,c){var d=
0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},tpa=function(){},upa=function(a){if(a&1){var b=r();I(0,"mat-month-view",4);gh("activeDateChange",function(c){t(b);var d=P();fh(d.activeDate,c)||(d.activeDate=c);return v(c)});M("_userSelection",function(c){t(b);var d=P();return v(d._dateSelected(c))})("dragStarted",function(c){t(b);var d=P();return v(d._dragStarted(c))})("dragEnded",function(c){t(b);var d=P();return v(d._dragEnded(c))});J()}a&2&&(a=P(),eh("activeDate",a.activeDate),D("selected",
a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName)("activeDrag",a._activeDrag))},vpa=function(a){if(a&1){var b=r();I(0,"mat-year-view",5);gh("activeDateChange",function(c){t(b);var d=P();fh(d.activeDate,c)||(d.activeDate=c);return v(c)});M("monthSelected",function(c){t(b);var d=
P();return v(d._monthSelectedInYearView(c))})("selectedChange",function(c){t(b);var d=P();return v(d._goToDateInView(c,"month"))});J()}a&2&&(a=P(),eh("activeDate",a.activeDate),D("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},wpa=function(a){if(a&1){var b=r();I(0,"mat-multi-year-view",6);gh("activeDateChange",function(c){t(b);var d=P();fh(d.activeDate,c)||(d.activeDate=c);return v(c)});M("yearSelected",function(c){t(b);var d=
P();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){t(b);var d=P();return v(d._goToDateInView(c,"year"))});J()}a&2&&(a=P(),eh("activeDate",a.activeDate),D("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},ypa=function(a){return a==null||xpa(a)===0},xpa=function(a){if(a!=null){if(Array.isArray(a)||typeof a==="string")return a.length;if(a instanceof Set)return a.size}return null},zpa=function(a){return function(b){if(b.value==
null||a==null)return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},Apa=function(a){return function(b){if(b.value==null||a==null)return null;var c=parseFloat(b.value);return!isNaN(c)&&c>a?{max:{max:a,actual:b.value}}:null}},Bpa=function(a){return ypa(a.value)?{required:!0}:null},Cpa=function(a){return function(b){var c,d,e=(d=(c=b.value)==null?void 0:c.length)!=null?d:xpa(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},Epa=
function(a){if(!a)return Dpa;if(typeof a==="string"){var b="";a.charAt(0)!=="^"&&(b+="^");b+=a;a.charAt(a.length-1)!=="$"&&(b+="$");var c=new RegExp(b)}else b=a.toString(),c=a;return function(d){if(ypa(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},Dpa=function(){return null},Fpa=function(a){return a!=null},Gpa=function(a){return Mf(a)?se(a):a},Hpa=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===
0?null:b},Ipa=function(a,b){return b.map(function(c){return c(a)})},Jpa=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Kpa=function(a){if(!a)return null;var b=a.filter(Fpa);return b.length==0?null:function(c){return Hpa(Ipa(c,b))}},Lpa=function(a){return a!=null?Kpa(Jpa(a)):null},Mpa=function(a){if(!a)return null;var b=a.filter(Fpa);return b.length==0?null:function(c){c=Ipa(c,b).map(Gpa);return Pe(c).pipe(y(Hpa))}},Npa=function(a){return a!=null?Mpa(Jpa(a)):
null},Opa=function(a,b){return a===null?[b]:Array.isArray(a)?[].concat(p(a),[b]):[a,b]},Ppa=function(a,b){return[].concat(p(b.path),[a])},Ji=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":c;Qpa(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled||c==="always"){var d,e;(e=(d=b.valueAccessor).setDisabledState)==null||e.call(d,a.disabled)}Rpa(a,b);Spa(a,b);Tpa(a,b);Upa(a,b)},Wpa=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));
Vpa(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Xpa=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},Upa=function(a,b){if(b.valueAccessor.setDisabledState){var c=function(d){b.valueAccessor.setDisabledState(d)};a._onDisabledChange.push(c);b._registerOnDestroy(function(){a._unregisterOnDisabledChange(c)})}},Qpa=function(a,b){var c=a._rawValidators;b.validator!==null?Ypa(a,Opa(c,b.validator)):typeof c==="function"&&
Ypa(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?Zpa(a,Opa(c,b.asyncValidator)):typeof c==="function"&&Zpa(a,[c]);c=function(){return Ki(a)};Xpa(b._rawValidators,c);Xpa(b._rawAsyncValidators,c)},Vpa=function(a,b){var c=!1;if(a!==null){if(b.validator!==null){var d=a._rawValidators;if(Array.isArray(d)&&d.length>0){var e=d.filter(function(f){return f!==b.validator});e.length!==d.length&&(c=!0,a._assignValidators(e))}}b.asyncValidator!==null&&(d=a._rawAsyncValidators,Array.isArray(d)&&d.length>
0&&(e=d.filter(function(f){return f!==b.asyncValidator}),e.length!==d.length&&(c=!0,a._assignAsyncValidators(e))))}a=function(){};Xpa(b._rawValidators,a);Xpa(b._rawAsyncValidators,a);return c},Rpa=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn==="change"&&$pa(a,b)})},Tpa=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&$pa(a,b);a.updateOn!=="submit"&&
aqa(a)})},$pa=function(a,b){a._pendingDirty&&bqa(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Spa=function(a,b){var c=function(d,e){b.valueAccessor.writeValue(d);e&&b.viewToModelUpdate(d)};a.registerOnChange(c);b._registerOnDestroy(function(){a._unregisterOnChange(c)})},cqa=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},dqa=function(a,b){a._syncPendingControls();
b.forEach(function(c){var d=c.control;d.updateOn==="submit"&&d._pendingChange&&(c.viewToModelUpdate(d._pendingValue),d._pendingChange=!1)})},eqa=function(a){if(!a)return null;var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Li?b=e:Object.getPrototypeOf(e.constructor)===Mi?c=e:d=e});return d?d:c?c:b?b:null},Ni=function(a){return a!=null&&!Array.isArray(a)&&typeof a==="object"},fqa=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Wc(1E3,"");if(!a[c])throw new Wc(1001,
"");},gqa=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Wc(1002,"");})},hqa=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===2&&"value"in a&&"disabled"in a},iqa=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},jqa=function(a){a&1&&K(0,"span",21)},kqa=function(a){a&1&&(I(0,"label",20),Og(1,1),E(2,jqa,1,0,"span",21),J());a&2&&(a=P(2),D("floating",a._shouldLabelFloat())("monitorResize",a._hasOutline())("id",
a._labelId),ng("for",a._control.disableAutomaticLabeling?null:a._control.id),z(2),F(!a.hideRequiredMarker&&a._control.required?2:-1))},lqa=function(a){a&1&&E(0,kqa,3,5,"label",20);a&2&&(a=P(),F(a._hasFloatingLabel()?0:-1))},mqa=function(a){a&1&&K(0,"div",7)},nqa=function(){},oqa=function(a){a&1&&C(0,nqa,0,0,"ng-template",13);a&2&&(P(2),a=L(1),D("ngTemplateOutlet",a))},pqa=function(a){a&1&&(I(0,"div",9),E(1,oqa,1,1,null,13),J());a&2&&(a=P(),D("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),
z(),F(a._forceDisplayInfixLabel()?-1:1))},qqa=function(a){a&1&&(I(0,"div",10,2),Og(2,2),J())},rqa=function(a){a&1&&(I(0,"div",11,3),Og(2,3),J())},sqa=function(){},tqa=function(a){a&1&&C(0,sqa,0,0,"ng-template",13);a&2&&(P(),a=L(1),D("ngTemplateOutlet",a))},uqa=function(a){a&1&&(I(0,"div",14,4),Og(2,4),J())},vqa=function(a){a&1&&(I(0,"div",15,5),Og(2,5),J())},wqa=function(a){a&1&&K(0,"div",16)},xqa=function(a){a&1&&(I(0,"div",18),Og(1,6),J())},yqa=function(a){a&1&&(I(0,"mat-hint",22),Q(1),J());a&2&&
(a=P(2),D("id",a._hintLabelId),z(),ch(a.hintLabel))},zqa=function(a){a&1&&(I(0,"div",19),E(1,yqa,2,2,"mat-hint",22),Og(2,7),K(3,"div",23),Og(4,8),J());a&2&&(a=P(),z(),F(a.hintLabel?1:-1))},Aqa=function(){},Bqa=function(a){a&1&&(Vd(),I(0,"svg",2),K(1,"path",3),J())},Oi=function(a,b){if(di(a))return a;a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");if(b==null?0:b.preserveSpaces)a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;");if(b==
null?0:b.preserveNewlines)a=a.replace(/(\r\n|\n|\r)/g,"<br>");if(b==null?0:b.preserveTabs)a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>');return ci(a)},Pi=function(a){var b=Oi("");return ci(a.map(function(c){return ei(Oi(c))}).join(ei(b).toString()))},Eqa=function(a){if(!Cqa.test(a))throw Error("wa");if(Dqa.indexOf(a.toUpperCase())!==-1)throw Error("wa");},Qi=function(a,b,c){Eqa(a);var d="<"+a;b&&(d+=Fqa(b));Array.isArray(c)||(c=c===void 0?[]:[c]);Gqa.indexOf(a.toUpperCase())!==-1?
d+=">":(b=Pi(c.map(function(e){return di(e)?e:Oi(String(e))})),d+=">"+b.toString()+"</"+a+">");return ci(d)},Fqa=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!Cqa.test(e))throw Error("wa");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("wa");Hqa.indexOf(e.toLowerCase())!==-1&&(f=Xh(f)?f.toString():nna(String(f))||"about:invalid#zClosurez");f=e+'="'+Oi(String(f))+'"';b+=" "+f}}return b},Ri=function(a){var b=ud.apply(1,arguments);if(b.length===0)return Uh(a[0]);
for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Uh(c)},Iqa=function(a,b,c,d){function e(h,k){h!=null&&(Array.isArray(h)?h.forEach(function(q){return e(q,k)}):(b+=f+encodeURIComponent(k)+"="+encodeURIComponent(h),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(h){return e(h[1],h[0])}):d.forEach(e);return Uh(a+b+c)},Kqa=function(a){a=a.searchParams;var b=a.get("ota"),c=a.get("youtube_persona"),d=a.getAll("label");
if(b)return{account:b,accountType:"ota"};if(c)return{account:c,accountType:"youtube_persona"};b=l(d);for(c=b.next();!c.done;c=b.next()){c=c.value;d=l(Jqa.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,c.startsWith(e))return{account:c.replace(e,""),accountType:Jqa.get(e)}}var f,h;return{account:(h=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?h:"",accountType:"gaia"}},Si=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ti=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&
(c[d]=a[d]);return c},Lqa=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Mqa=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Nqa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Oqa=function(a,b){return a!==null&&b in a},Pqa=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Qqa=function(a,b){return(b=Pqa(a,b))&&a[b]},Ui=function(a){for(var b in a)return!1;return!0},Rqa=function(a){for(var b in a)delete a[b]},Vi=function(a,
b){b in a&&delete a[b]},Sqa=function(a,b,c){if(a!==null&&b in a)throw Error("ob`"+b);a[b]=c},Tqa=function(a,b){return a!==null&&b in a?a[b]:void 0},Wi=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Vqa=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Uqa.length;f++)c=Uqa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Xi=function(a){return{fieldType:3,fieldName:a}},Zqa=function(){for(var a;a=Wqa.remove();){try{a.fn.call(a.scope)}catch(b){za(b)}Xqa.put(a)}Yqa=
!1},$qa=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},Yi=function(a){var b=Object.keys(a);return Promise.all(Object.values(a)).then(function(c){return Object.fromEntries(b.map(function(d,e){return[d,c[e]]}))})},Zi=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},$i=function(a,b){return(a!=null?a:0)+(b!=null?b:0)},ara=function(a){return a.length===0?0:a.reduce($i)/a.length},bra=function(a,b){b=b===void 0?ara(a):b;if(a.length===
0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce($i)/(a.length-1);return Math.sqrt(a)},aj=function(a,b){if(a<5)return!1;if(!cra.get(b)){var c=ara(b),d=bra(b,c);cra.set(b,{mean:c,stdDev:d})}b=cra.get(b);return a-b.mean>b.stdDev*2},dra=function(){for(var a={},b=l(Object.entries(bj)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d>1&&(a[c]=d)}return a},era=function(){var a=Object.values(bj),b=a.map(function(c){return c-1}).reduce($i,0);a=a.reduce($i,
0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},fra=function(a,b,c){var d=c.path.split("/");if(d.length>a.length||c.pathMatch==="full"&&(b.hasChildren()||d.length<a.length))return null;b={};for(c=0;c<d.length;c++){var e=d[c],f=a[c];if(e[0]===":")b[e.substring(1)]=f;else if(e!==f.path)return null}return{consumed:a.slice(0,d.length),posParams:b}},cj=function(a,b){var c=a?gra(a):void 0,d=b?gra(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],
!hra(a[d],b[d]))return!1;return!0},gra=function(a){return[].concat(p(Object.keys(a)),p(Object.getOwnPropertySymbols(a)))},hra=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(p(a)).sort();var c=[].concat(p(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},dj=function(a){return dha(a)?a:Mf(a)?se(Promise.resolve(a)):Ce(a)},kra=function(a,b,c){return ira[c.paths](a.root,b.root,c.matrixParams)&&jra[c.queryParams](a.queryParams,b.queryParams)&&
!(c.fragment==="exact"&&a.fragment!==b.fragment)},lra=function(a,b){return cj(a,b)},nra=function(a,b,c){if(!ej(a.segments,b.segments)||!mra(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!nra(a.children[d],b.children[d],c))return!1;return!0},ora=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return hra(a[c],b[c])})},qra=function(a,b,c){return pra(a,b,b.segments,c)},pra=function(a,
b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),ej(a,c)&&!b.hasChildren()&&mra(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!ej(a.segments,c)||!mra(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!qra(a.children[e],b.children[e],d))return!1;return!0}e=c.slice(0,a.segments.length);c=c.slice(a.segments.length);return ej(a.segments,e)&&mra(a.segments,e,d)&&a.children.primary?pra(a.children.primary,b,c,d):!1},mra=function(a,b,c){return b.every(function(d,
e){return jra[c](a[e].parameters,d.parameters)})},rra=function(a,b){return ej(a,b)&&a.every(function(c,d){return cj(c.parameters,b[d].parameters)})},ej=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},sra=function(a,b){var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d==="primary"&&(c=c.concat(b(e,d)))});Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d!=="primary"&&
(c=c.concat(b(e,d)))});return c},vra=function(a){return a.segments.map(function(b){return tra(b.path)+ura(b.parameters)}).join("/")},fj=function(a,b){if(!a.hasChildren())return vra(a);if(b){b=a.children.primary?fj(a.children.primary,!1):"";var c=[];Object.entries(a.children).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;d!=="primary"&&c.push(d+":"+fj(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=sra(a,function(d,e){return e==="primary"?[fj(a.children.primary,!1)]:[e+":"+
fj(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?vra(a)+"/"+b[0]:vra(a)+"/("+b.join("//")+")"},wra=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},xra=function(a){return wra(a).replace(/%3B/gi,";")},tra=function(a){return wra(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},ura=function(a){return Object.entries(a).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return";"+tra(b)+"="+tra(c)}).join("")},yra=function(a){a=Object.entries(a).map(function(b){b=l(b);var c=b.next().value;b=b.next().value;return Array.isArray(b)?b.map(function(d){return xra(c)+"="+xra(d)}).join("&"):xra(c)+"="+xra(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},Ara=function(a){return(a=a.match(zra))?a[0]:""},Bra=function(a){var b={};return a.segments.length>0?new gj([],(b.primary=a,b)):a},Cra=function(a){for(var b={},c=l(Object.entries(a.children)),d=c.next();!d.done;d=
c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=Cra(e);if(d==="primary"&&e.segments.length===0&&e.hasChildren())for(d=l(Object.entries(e.children)),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b[e]=f}else if(e.segments.length>0||e.hasChildren())b[d]=e}a=new gj(a.segments,b);a.numberOfChildren===1&&a.children.primary&&(b=a.children.primary,a=new gj(a.segments.concat(b.segments),b.children));return a},ij=function(a){return a instanceof hj},Dra=function(a){function b(f){for(var h=
{},k=l(f.children),q=k.next();!q.done;q=k.next()){q=q.value;var u=b(q);h[q.outlet]=u}h=new gj(f.url,h);f===a&&(c=h);return h}var c,d=b(a.root);d=Bra(d);var e;return(e=c)!=null?e:d},Jra=function(a,b,c,d){for(var e=a;e.parent;)e=e.parent;if(b.length===0)return Era(e,e,e,c,d);b=Fra(b);if(b.isAbsolute&&b.commands.length===1&&b.commands[0]=="/")return Era(e,e,new gj([],{}),c,d);var f=e;if(b.isAbsolute)a=new Gra(f,!0,0);else if(a)if(a.parent===null)a=new Gra(a,!0,0);else{f=a;a=a.segments.length-1+(Hra(b.commands[0])?
0:1);for(var h=b.numberOfDoubleDots;h>a;){h-=a;f=f.parent;if(!f)throw new Wc(4005,!1);a=f.segments.length}a=new Gra(f,!1,a-h)}else a=new Gra(f,!1,NaN);b=a.processChildren?jj(a.segmentGroup,a.index,b.commands):Ira(a.segmentGroup,a.index,b.commands);return Era(e,a.segmentGroup,b,c,d)},Hra=function(a){return typeof a==="object"&&a!=null&&!a.outlets&&!a.segmentPath},kj=function(a){return typeof a==="object"&&a!=null&&a.outlets},Era=function(a,b,c,d,e){var f={};d&&Object.entries(d).forEach(function(h){var k=
l(h);h=k.next().value;k=k.next().value;f[h]=Array.isArray(k)?k.map(function(q){return""+q}):""+k});a=a===b?c:Kra(a,b,c);a=Bra(Cra(a));return new hj(a,f,e)},Kra=function(a,b,c){var d={};Object.entries(a.children).forEach(function(e){var f=l(e);e=f.next().value;f=f.next().value;d[e]=f===b?c:Kra(f,b,c)});return new gj(a.segments,d)},Fra=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new Lra(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if(typeof e==="object"&&e!=null){if(e.outlets){var h=
{};Object.entries(e.outlets).forEach(function(k){var q=l(k);k=q.next().value;q=q.next().value;h[k]=typeof q==="string"?q.split("/"):q});return[].concat(p(d),[{outlets:h}])}if(e.segmentPath)return[].concat(p(d),[e.segmentPath])}return typeof e!=="string"?[].concat(p(d),[e]):f===0?(e.split("/").forEach(function(k,q){if(q!=0||k!==".")q==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(p(d),[e])},[]);return new Lra(c,b,a)},Mra=function(a){if(kj(a[0]))return a[0].outlets;var b={};return b.primary=
a,b},Ira=function(a,b,c){a!=null||(a=new gj([],{}));if(a.segments.length===0&&a.hasChildren())return jj(a,b,c);a:{var d=a;for(var e=0,f=b,h={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=h;break a}var k=d.segments[f],q=c[e];if(kj(q))break;q=""+q;var u=e<c.length-1?c[e+1]:null;if(f>0&&q===void 0)break;if(q&&u&&typeof u==="object"&&u.outlets===void 0){if(q!=k.path||!cj(u,k.parameters)){d=h;break a}e+=2}else{u={};if(q!=k.path||!cj(u,k.parameters)){d=h;break a}e++}f++}d=
{match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new gj(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new gj(a.segments.slice(d.pathIndex),a.children),jj(b,0,e)):d.match&&e.length===0?new gj(a.segments,{}):d.match&&!a.hasChildren()?Nra(a,b,c):d.match?jj(a,0,e):Nra(a,b,c)},jj=function(a,b,c){if(c.length===0)return new gj(a.segments,{});var d=Mra(c),e={};if(Object.keys(d).some(function(f){return f!=="primary"})&&a.children.primary&&
a.numberOfChildren===1&&a.children.primary.segments.length===0)return c=jj(a.children.primary,b,c),new gj(a.segments,c.children);Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;typeof h==="string"&&(h=[h]);h!==null&&(e[f]=Ira(a.children[f],b,h))});Object.entries(a.children).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;d[f]===void 0&&(e[f]=h)});return new gj(a.segments,e)},Nra=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=
c[e];if(kj(f))return a=Ora(f.outlets),new gj(d,a);if(e===0&&Hra(c[0]))d.push(new lj(a.segments[b].path,Pra(c[0]))),e++;else{f=kj(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&Hra(h)?(d.push(new lj(f,Pra(h))),e+=2):(d.push(new lj(f,{})),e++)}}return new gj(d,{})},Ora=function(a){var b={};Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;typeof d==="string"&&(d=[d]);d!==null&&(b[c]=Nra(new gj([],{}),0,d))});return b},Pra=function(a){var b={};Object.entries(a).forEach(function(c){var d=
l(c);c=d.next().value;d=d.next().value;return b[c]=""+d});return b},Qra=function(a,b){a.providers&&!a._injector&&(a._injector=vja(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},mj=function(a){return a.outlet||"primary"},Rra=function(a,b){var c=a.filter(function(d){return mj(d)===b});c.push.apply(c,p(a.filter(function(d){return mj(d)!==b})));return c},nj=function(a){if(!a)return null;var b;if((b=a.routeConfig)==null?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=
a.parent){b=a.routeConfig;var c=void 0;if((c=b)==null?0:c._loadedInjector)return b._loadedInjector;c=void 0;if((c=b)==null?0:c._injector)return b._injector}return null},Sra=function(a,b){if(a===b.value)return b;b=l(b.children);for(var c=b.next();!c.done;c=b.next())if(c=Sra(a,c.value))return c;return null},Tra=function(a,b){if(a===b.value)return[b];for(var c=l(b.children),d=c.next();!d.done;d=c.next())if(d=Tra(a,d.value),d.length)return d.unshift(b),d;return[]},oj=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=
c});return b},Ura=function(a,b,c){var d=a.routeConfig,e;if(b===null||(c===void 0?"emptyOnly":c)!=="always"&&(d==null?void 0:d.path)!==""&&(b.component||((e=b.routeConfig)==null?0:e.loadComponent))){var f;a={params:Object.assign({},a.params),data:Object.assign({},a.data),resolve:Object.assign({},a.data,(f=a._resolvedData)!=null?f:{})}}else a={params:Object.assign({},b.params,a.params),data:Object.assign({},b.data,a.data),resolve:Object.assign({},a.data,b.data,d==null?void 0:d.data,a._resolvedData)};
!d||typeof d.title!=="string"&&d.title!==null||(a.resolve[pj]=d.title);return a},Vra=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Vra(a,c)})},Wra=function(a){var b=a.children.length>0?" { "+a.children.map(Wra).join(", ")+" } ":"";return""+a.value+b},Xra=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;cj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);cj(b.params,
c.params)||a.paramsSubject.next(c.params);a:{var d=b.url;var e=c.url;if(d.length!==e.length)d=!1;else{for(var f=0;f<d.length;++f)if(!cj(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);cj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},Yra=function(a,b){var c=cj(a.params,b.params)&&rra(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Yra(a.parent,b.parent))},Zra=function(a){var b=a.children&&a.children.map(Zra);
a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=qj);return a},bsa=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=$ra(a,b,c);return new rj(d,b)}d=asa(b.value);b=b.children.map(function(e){return bsa(a,e)});return new rj(d,b)},$ra=function(a,b,c){return b.children.map(function(d){for(var e=l(c.children),f=e.next();!f.done;f=e.next())if(f=
f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return bsa(a,d,f);return bsa(a,d)})},asa=function(a){return new sj(new tj(a.url),new tj(a.params),new tj(a.queryParams),new tj(a.fragment),new tj(a.data),a.outlet,a.component,a)},dsa=function(a){var b=ij(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=csa(0);c.url=a;c.navigationBehaviorOptions=b;return c},csa=function(a){var b=Error("wb`");b.ngNavigationCancelingError=!0;b.cancellationCode=
a;return b},esa=function(a){return!!a&&a.ngNavigationCancelingError},uj=function(){return fg(function(a){return Je(a.map(function(b){return b.pipe(Uf(),eg(fsa))})).pipe(y(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===fsa)return fsa;if(c===!1||ij(c))return c}return!0}),Ve(function(b){return b!==fsa}),Uf())})},vj=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||gea(a)!==null?b.get(a):a:d},wj=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],
canActivateChecks:[]}:e;var f=oj(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),u=e;u=u===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:u;var A=h.value,G=k?k.value:null,H=c?c.getContext(h.value.outlet):null;if(G&&A.routeConfig===G.routeConfig){var N=gsa(G,A,A.routeConfig.runGuardsAndResolvers);N?u.canActivateChecks.push(new hsa(q)):(A.data=G.data,A._resolvedData=G._resolvedData);A.component?wj(h,k,H?H.children:null,q,u):wj(h,k,c,q,u);N&&H&&H.outlet&&H.outlet.isActivated&&
u.canDeactivateChecks.push(new isa(H.outlet.component,G))}else G&&xj(k,H,u),u.canActivateChecks.push(new hsa(q)),A.component?wj(h,null,H?H.children:null,q,u):wj(h,null,c,q,u);delete f[h.value.outlet]});Object.entries(f).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;return xj(k,c.getContext(h),e)});return e},gsa=function(a,b,c){if(typeof c==="function")return c(a,b);switch(c){case "pathParamsChange":return!ej(a.url,b.url);case "pathParamsOrQueryParamsChange":return!ej(a.url,b.url)||
!cj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Yra(a,b)||!cj(a.queryParams,b.queryParams);default:return!Yra(a,b)}},xj=function(a,b,c){var d=oj(a),e=a.value;Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;e.component?b?xj(h,b.children.getContext(f),c):xj(h,null,c):xj(h,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new isa(b.outlet.component,e)):c.canDeactivateChecks.push(new isa(null,
e)):c.canDeactivateChecks.push(new isa(null,e))},yj=function(a){return typeof a==="function"},jsa=function(a){return a instanceof Fe||(a==null?void 0:a.name)==="EmptyError"},msa=function(a,b){return Le(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,h=f.canActivateChecks;f=f.canDeactivateChecks;return f.length===0&&h.length===0?Ce(Object.assign({},c,{guardsResult:!0})):ksa(f,d,e,a).pipe(Le(function(k){return k&&typeof k==="boolean"?lsa(d,h,a,b):Ce(k)}),y(function(k){return Object.assign({},
c,{guardsResult:k})}))})},ksa=function(a,b,c,d){return se(a).pipe(Le(function(e){return nsa(e.component,e.route,c,b,d)}),Zf(function(e){return e!==!0},!0))},lsa=function(a,b,c,d){return se(b).pipe(Rf(function(e){var f=e.route.parent;f!==null&&d&&d(new osa(f));f=Ce(!0);var h=e.route;h!==null&&d&&d(new psa(h));h=Ce(!0);return Ne(f,h,qsa(a,e.path,c),rsa(a,e.route,c))}),Zf(function(e){return e!==!0},!0))},rsa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||d.length===0)return Ce(!0);
d=d.map(function(e){return Oe(function(){var f,h=(f=nj(b))!=null?f:c,k=vj(e,h);f=k&&yj(k.canActivate)?k.canActivate(b,a):Bd(h,function(){return k(b,a)});return dj(f).pipe(Zf())})});return Ce(d).pipe(uj())},qsa=function(a,b,c){var d=b[b.length-1];b=b.slice(0,b.length-1).reverse().map(function(e){var f=e.routeConfig?e.routeConfig.canActivateChild:null;return f&&f.length!==0?{node:e,guards:f}:null}).filter(function(e){return e!==null}).map(function(e){return Oe(function(){var f=e.guards.map(function(h){var k,
q=(k=nj(e.node))!=null?k:c,u=vj(h,q);h=u&&yj(u.canActivateChild)?u.canActivateChild(d,a):Bd(q,function(){return u(d,a)});return dj(h).pipe(Zf())});return Ce(f).pipe(uj())})});return Ce(b).pipe(uj())},nsa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||f.length===0)return Ce(!0);f=f.map(function(h){var k,q=(k=nj(b))!=null?k:e,u=vj(h,q);h=u&&yj(u.canDeactivate)?u.canDeactivate(a,b,c,d):Bd(q,function(){return u(a,b,c,d)});return dj(h).pipe(Zf())});return Ce(f).pipe(uj())},
tsa=function(a,b,c){var d=b.canLoad;if(d===void 0||d.length===0)return Ce(!0);d=d.map(function(e){var f=vj(e,a);e=f&&yj(f.canLoad)?f.canLoad(b,c):Bd(a,function(){return f(b,c)});return dj(e)});return Ce(d).pipe(uj(),ssa())},ssa=function(){return oe(hg(function(a){if(typeof a!=="boolean")throw dsa(a);}),y(function(a){return a===!0}))},usa=function(a,b,c){var d=b.canMatch;if(!d||d.length===0)return Ce(!0);d=d.map(function(e){var f=vj(e,a);e=f&&yj(f.canMatch)?f.canMatch(b,c):Bd(a,function(){return f(b,
c)});return dj(e)});return Ce(d).pipe(uj(),ssa())},zj=function(a){return De(new vsa(a))},ysa=function(a,b,c,d){var e=wsa(a,b,c);if(!e.matched)return Ce(e);d=Qra(b,d);return usa(d,b,c).pipe(y(function(f){return f===!0?e:Object.assign({},xsa)}))},wsa=function(a,b,c){if(b.path==="**")return{matched:!0,parameters:c.length>0?(c.length>0?c[c.length-1]:null).parameters:{},consumedSegments:c,remainingSegments:[],positionalParamSegments:{}};if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>
0)?Object.assign({},xsa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||fra)(c,a,b);if(!a)return Object.assign({},xsa);var d={},e;Object.entries((e=a.posParams)!=null?e:{}).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;d[h]=k.path});e=a.consumed.length>0?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,
positionalParamSegments:(f=a.posParams)!=null?f:{}}},Csa=function(a,b,c,d){if(c.length>0&&zsa(a,c,d)){var e=gj;a=new gj(c,a.children);c={};c.primary=a;a=l(d);for(d=a.next();!d.done;d=a.next())if(d=d.value,d.path===""&&mj(d)!=="primary"){var f=new gj([],{});c[mj(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===0&&Asa(a,c,d)){b=gj;e=a.segments;f=a.children;var h={};d=l(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,Bsa(a,c,k)&&!f[mj(k)]){var q=new gj([],{});h[mj(k)]=q}a=
Object.assign({},f,h);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new gj(a.segments,a.children),slicedSegments:c};return c},zsa=function(a,b,c){return c.some(function(d){return Bsa(a,b,d)&&mj(d)!=="primary"})},Asa=function(a,b,c){return c.some(function(d){return Bsa(a,b,d)})},Bsa=function(a,b,c){return(a.hasChildren()||b.length>0)&&c.pathMatch==="full"?!1:c.path===""},Dsa=function(a){a.sort(function(b,c){return b.value.outlet==="primary"?-1:c.value.outlet==="primary"?1:b.value.outlet.localeCompare(c.value.outlet)})},
Esa=function(a){return(a=a.value.routeConfig)&&a.path===""},Fsa=function(a){var b=[],c=new Set;a=l(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$167:void 0},d=a.next())e.node$jscomp$167=d.value,Esa(e.node$jscomp$167)?(d=b.find(function(f){return function(h){return f.node$jscomp$167.value.routeConfig===h.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,p(e.node$jscomp$167.children)),c.add(d)):b.push(e.node$jscomp$167)):b.push(e.node$jscomp$167);a=l(c);for(e=a.next();!e.done;e=
a.next())e=e.value,d=Fsa(e.children),b.push(new rj(e.value,d));return b.filter(function(f){return!c.has(f)})},Hsa=function(a,b,c,d,e,f){return Le(function(h){return(new Gsa(a,b,c,d,h.extractedUrl,f===void 0?"emptyOnly":f,e)).recognize().pipe(y(function(k){return Object.assign({},h,{targetSnapshot:k.state,urlAfterRedirects:k.tree})}))})},Ksa=function(a,b){return Le(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return Ce(c);var f=new Set(e.map(function(A){return A.route})),
h=new Set;e=l(f);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!h.has(k)){k=l(Isa(k));for(var q=k.next();!q.done;q=k.next())h.add(q.value)}var u=0;return se(h).pipe(Rf(function(A){if(f.has(A))return Jsa(A,d,a,b);A.data=Ura(A,A.parent,a).resolve;return Ce(void 0)}),hg(function(){return u++}),Qja(),Le(function(){return u===h.size?Ce(c):Te}))})},Isa=function(a){var b=a.children.map(function(c){return Isa(c)}).flat();return[a].concat(p(b))},Jsa=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;
(e==null?void 0:e.title)!==void 0&&typeof e.title!=="string"&&e.title!==null&&(f[pj]=e.title);return Oe(function(){a.data=Ura(a,a.parent,c).resolve;return Lsa(f,a,b,d).pipe(y(function(h){a._resolvedData=h;a.data=Object.assign({},a.data,h);return null}))})},Lsa=function(a,b,c,d){var e=gra(a);if(e.length===0)return Ce({});var f={};return se(e).pipe(Le(function(h){return Msa(a[h],b,c,d).pipe(Zf(),hg(function(k){f[h]=k}))}),Qja(),y(function(){return f}),Pf(function(h){return jsa(h)?Te:De(h)}))},Msa=function(a,
b,c,d){var e,f=(e=nj(b))!=null?e:d,h=vj(a,f);a=h.resolve?h.resolve(b,c):Bd(f,function(){return h(b,c)});return dj(a)},Nsa=function(a){return fg(function(b){var c=a(b);return c?se(c).pipe(y(function(){return b})):Ce(b)})},Osa=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},Psa=function(a,b){b=b.createElement("style");b.textContent=a;return b},Qsa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},Ssa=function(a,b){return b.map(function(c){return c.replace(Rsa,
a)})},Tsa=function(a){var b=new Map;a.length>0&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=l(d==-1?[decodeURIComponent(c),""]:[decodeURIComponent(c.slice(0,d)),decodeURIComponent(c.slice(d+1))]);c=d.next().value;d=d.next().value;var e=b.get(c)||[];e.push(d);b.set(c,e)});return b},Wsa=function(a){return encodeURIComponent(a).replace(Usa,function(b,c){var d;return(d=Vsa[c])!=null?d:b})},Xsa=function(a){return""+a},Ysa=function(a){return typeof ArrayBuffer!=="undefined"&&
a instanceof ArrayBuffer},Zsa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},$sa=function(a){return typeof FormData!=="undefined"&&a instanceof FormData},ata=function(a,b){return{body:b,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials,transferCache:a.transferCache}},bta=function(a,b){return b(a)},cta=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,
d)}})}},dta=function(a,b,c){return function(d,e){return Bd(c,function(){return b(d,function(f){return a(f,e)})})}},hta=function(a,b){var c=a.url.toLowerCase();if(!n(eta)||a.method==="GET"||a.method==="HEAD"||c.startsWith("http://")||c.startsWith("https://"))return b(a);c=n(fta).getToken();var d=n(gta);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},jta=function(a){return function(b,c){(c==null?0:c.injector)||Cd();var d,e=(d=c==null?void 0:c.injector)!=null?d:n(Ze);
return new ita(e,function(){var f=typeof b==="function"?b():b;if(f!==void 0){typeof f==="string"&&(f={url:f});var h=f.headers instanceof Aj?f.headers:new Aj(f.headers),k=f.params instanceof Bj?f.params:new Bj({fromObject:f.params}),q,u;var A=new Cj((q=f.method)!=null?q:"GET",f.url,(u=f.body)!=null?u:null,{headers:h,params:k,reportProgress:f.reportProgress,withCredentials:f.withCredentials,responseType:a,context:f.context,transferCache:f.transferCache})}else A=void 0;return A},c==null?void 0:c.defaultValue,
c==null?void 0:c.parse,c==null?void 0:c.equal)}},ota=function(a,b,c){return dj(a.loadChildren()).pipe(y(kta),Le(function(d){return d instanceof lta||Array.isArray(d)?Ce(d):se(Promise.resolve(new mta(d)))}),y(function(d){c&&c(a);if(!Array.isArray(d)){var e=d.create(b).injector;d=e.get(nta,[],{optional:!0,self:!0}).flat()}return{routes:d.map(Zra),injector:e}}))},kta=function(a){return a&&typeof a==="object"&&"default"in a?a["default"]:a},rta=function(a,b,c){var d=a.get(pta),e=a.get(Ei);return a.get(ph).runOutsideAngular(function(){if(!e.startViewTransition||
d.skipNextTransition)return d.skipNextTransition=!1,new Promise(function(u){return setTimeout(u)});var f,h=new Promise(function(u){f=u}),k=e.startViewTransition(function(){f();return qta(a)}),q=d.onViewTransitionCreated;q&&Bd(a,function(){return q({transition:k,from:b,to:c})});return h})},qta=function(a){return new Promise(function(b){$e({read:function(){return setTimeout(b)}},{injector:a})})},sta=function(a,b){a.events.pipe(Ve(function(c){return c instanceof Dj||c instanceof Ej||c instanceof Fj||
c instanceof Gj}),y(function(c){return c instanceof Dj||c instanceof Gj?0:c instanceof Ej&&(c.code===0||c.code===1)?2:1}),Ve(function(c){return c!==2}),Uf()).subscribe(function(){b()})},Hj=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},tta=function(a){for(var b=[];a;){var c=void 0,d=void 0;b.push((d=(c=a.routeConfig)==null?void 0:c.path)!=null?d:"");c=void 0;a=(c=a.children)==null?void 0:c[0]}return b.join("/")},Ij=function(a){return a instanceof Dj},uta=function(a){return a instanceof
Jj},Kj=function(a){return console==null?!1:typeof console[a]==="function"},Lj=function(){Kj("debug")&&console.debug.apply(console,ud.apply(0,arguments))},Mj=function(){Kj("info")&&console.info.apply(console,ud.apply(0,arguments))},vta=function(){Kj("log")&&console.log.apply(console,ud.apply(0,arguments))},Nj=function(){Kj("warn")&&console.warn.apply(console,ud.apply(0,arguments))},wta=function(){Kj("error")&&console.error.apply(console,ud.apply(0,arguments))},xta=function(a){return function(b){return new pe(function(c){return b.subscribe(function(d){return void a.run(function(){return void c.next(d)})},
function(d){return void a.run(function(){return void c.error(d)})},function(){return void a.run(function(){return void c.complete()})})})}},yta=function(a){var b={attributeFilter:["aria-label","aria-valuenow"]};return new pe(function(c){(new MutationObserver(function(d){var e=d[0].target,f;d=(f=e.getAttribute("aria-label"))!=null?f:"";var h;f=(h=e.getAttribute("aria-valuenow"))!=null?h:"indeterminate";c.next([d,f])})).observe(a,b)})},zta=function(a){a&1&&K(0,"div",2)},Ata=function(){var a=n(Ei),b=
a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},Bta=function(a){return new Promise(function(b,c){setTimeout(function(){c(Error("Pb"))},a)})},Dta=function(){if(Cta===void 0&&(Cta=null,typeof window!=="undefined")){var a=window;a.trustedTypes!==void 0&&(Cta=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return Cta},Eta=function(a){var b;return((b=Dta())==null?void 0:b.createHTML(a))||a},Fta=function(){var a=n(Ei),b=a?a.location:
null;return{getPathname:function(){return b?b.pathname+b.search:""}}},Gta=function(a){a&1&&(I(0,"div",8),K(1,"mat-progress-bar",10),J())},Hta=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(){t(b);var c=P(3);return v(c.clearTitle())});K(1,"mat-icon",16);J()}},Ita=function(a){a&1&&Hg(0)},Lta=function(a){a&1&&(I(0,"div",9)(1,"div",11),K(2,"mat-icon",12),I(3,"span"),Q(4,"Chrome suggestions based on your recent history"),J(),E(5,Hta,2,0,"button",13),J(),C(6,Ita,1,0,"ng-container",14),
J());if(a&2){a=P(2);var b=L(3),c=L(8);z(5);F(b.value?5:-1);z();D("ngTemplateOutlet",c)("ngTemplateOutletContext",jh(3,Jta,Kta(a,a.suggestedIssueMetadataList)))}},Mta=function(a){a&1&&(I(0,"div",7,4),E(2,Gta,2,0,"div",8),E(3,Lta,7,5,"div",9),J());a&2&&(a=P(),z(2),F(a.suggestedIssueMetadataList===null?2:-1),z(),F(a.suggestedIssueMetadataList===null?-1:3))},Nta=function(a,b){if(a&1){var c=r();I(0,"div",19);M("click",function(){var d=t(c).$implicit;P(3).selectedSuggestion$.next(d);return v()});I(1,"div")(2,
"div",20);Q(3);J();I(4,"div",21);Q(5);J()();I(6,"div",22);Q(7,"Auto-fill");J()()}a&2&&(a=b.$implicit,z(3),ch(a.title),z(2),ch(a.sourceContext))},Ota=function(a){a&1&&(I(0,"div",17),Dg(1,Nta,8,2,"div",18,Cg),J());a&2&&(a=P().$implicit,z(),Eg(a))},Pta=function(a){a&1&&(I(0,"div",23),Q(1," No suggestions found "),J())},Qta=function(a){a&1&&E(0,Pta,2,0,"div",23);a&2&&(a=P(2),F(a.suggestedIssueMetadataList===null?-1:0))},Rta=function(a,b){a&1&&E(0,Ota,3,0,"div",17)(1,Qta,1,1);if(a&2){var c;F((c=b.$implicit.length)?
0:1,c)}},Sta=function(a,b){return a.size!==b.size?!1:[].concat(p(a)).every(function(c){return b.has(c)})},Tta=function(a){var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=l(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},Oj=function(a,b){if(!Sta(a,b)){var c=[].concat(p(b)).filter(function(e){return!a.has(e)}),d=[].concat(p(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},Uta=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(p(a===
c?b:a)).filter(function(d){return c.has(d)}))},Vta=function(a,b){return a.size>=b.size&&[].concat(p(b)).every(function(c){return a.has(c)})},Pj=function(a,b){if(a===b)return!0;if(a==null||b==null)return a===b;if(Array.isArray(a)){if(!Array.isArray(b))return!1;var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(!Pj(a[d],b[d]))return!1;return!0}if(a instanceof Date)return b instanceof Date?a.getTime()===b.getTime():!1;if(a instanceof RegExp)return b instanceof RegExp?a.toString()===b.toString():
!1;if(a instanceof Set||b instanceof Set)return a instanceof Set&&b instanceof Set?Sta(a,b):!1;if(di(a)||di(b))return di(a)&&di(b)?a===b||a.toString()===b.toString():!1;if(a instanceof V||b instanceof V)return a instanceof V&&b instanceof V?a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&dda(a,b):!1;if(typeof a==="object"){if(typeof b!=="object")return!1;c=Object.keys(a);d=c.length;if(d!==Object.keys(b).length)return!1;for(var e=0;e<d;e++){var f=c[e];if(!Wta.call(b,f)||!Pj(a[f],b[f]))return!1}return!0}return!1},
Xta=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=l(b),f=e.next();!f.done;f=e.next())if(Pj(c,f.value)){d=!0;break}d||b.push(c)}return b},Yta=function(a,b){for(var c=a.length-1;c>=0;c--)Pj(a[c],b)&&a.splice(c,1)},Zta=function(a,b,c){c=c===void 0?Infinity:c;if(a===b)return!0;if((a==null||b==null)&&a!==b)return!1;var d=Object.keys(a),e=Object.keys(b);if(d.length!==e.length)return!1;c=Math.min(d.length,c);for(e=0;e<c;e++){var f=d[e];if(a[f]!==b[f]&&(typeof a[f]!==
"object"||typeof b[f]!=="object"))return!1}return!0},aua=function(a){return Object.assign.apply(Object,[{}].concat(p($ta.map(function(b){var c={};return c[b]=a[b],c}))))},Qj=function(a){if(a!==null&&a!==void 0&&!["boolean","function","number","string"].includes(typeof a))if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Qj(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof Map){b=new Map;a=l(a);for(c=a.next();!c.done;c=a.next()){var d=
l(c.value);c=d.next().value;d=d.next().value;b.set(Qj(c),Qj(d))}a=b}else if(!di(a))if(a instanceof V)a=a.clone();else{b={};c=l(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b[d]=Qj(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},bua=function(a){return typeof a==="number"},Rj=function(a){return typeof a==="string"},Sj=function(a){return Array.isArray(a)&&a.every(Rj)},cua=function(a){return Array.isArray(a)&&a.every(bua)},
dua=function(a){if(a==null)return!1;a=String(a).trim();if(a.length<=2)return!1;var b=Number(a);return isNaN(b)?!1:String(b).length===a.length},Tj=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Wj=function(a){if(a){if(bua(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new Uj(b)}b=a.split("/");if(b.length===3)return a=Vj(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new Uj(a,Vj(b[0])-1,Vj(b[1]));if(b.length===1)return Wj(Number(a))}return new Uj},
eua=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},fua=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},gua=function(a,b){return a.map(function(c){return c[b]})},hua=function(a,b){return a.filter(function(c){return!b.has(c)})},iua=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=l(b);for(c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0},Xj=function(a,b){return hua(a,new Set(b))},
jua=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(Fa).filter(function(d){return!!d})},kua=function(a,b){a=new URL(a);return a.host+a.pathname+b},lua=function(a){return a.user!==void 0},mua=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return Yj(a.replace(/_/g," ").toLowerCase())}},Zj=function(a){return!!a&&nua.test(a)&&!oua.test(a)},rua=function(a){a=a===void 0?"":a;return!pua(a)||
a.endsWith("-robots@google.com")||qua(a)},qua=function(a){return sua.some(function(b){return a.endsWith(b)})},pua=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},tua=function(a){switch(a){case "ALL":case "ALL_UPDATES":return"All Updates";case "IMPORTANT":case "MAJOR_UPDATES":return"Major Updates";case "CLOSURE_ONLY":return"Closure Only";case "MINIMAL":return"Minimal";case "NONE":return"None";default:return a}},uua=function(a){return a?Yj(a.replace(/_/g,
" ").toLowerCase()):""},vua=function(a){return a?a.join(", "):""},wua=function(a,b){if(!a)return Oi("");if(!b)return Oi(a);b=b.split(" ").map(eua);b=b.filter(function(h){return!!h});b=b.map(ak);if(b.length===0)return Oi(a);b=new RegExp("(\\W|^)("+b.join("|")+")(\\w*)","i");for(var c=[];a;){var d=b.exec(a);if(!d){c.push(a);break}var e=d.index+d[1].length,f=d[2];d=d[3];c.push(a.substring(0,e));c.push(Qi("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Pi(c)},xua=function(a){return a?"Yes":
"No"},yua=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},zua=function(a){if(a>=1073741824){a/=1073741824;var b="GB"}else a>=1048576?(a/=1048576,b="MB"):a>=1024?(a/=1024,b="KB"):b="B";a=a<10?Math.round(a*10)/10:Math.round(a);return a+" "+b},Aua=function(a){if(!a)return null;var b=new bk;b.setTime(a.seconds*1E3);return b},Bua=function(a){if(a&&Zj(a))return a},ck=function(a){return a==null?"":String(a)},Cua=function(a){var b;return(b=a==null?void 0:a.filter(function(c){return!!c.trim()}).join(", "))!=
null?b:""},dk=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},ek=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},fk=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},Dua=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,h=(f=c.get(e))!=null?f:[];h.push(d);c.set(e,h)}return c},Eua=function(a,b){return ek([].concat(p(a.keys())),function(c){return b(a.get(c),
c)})},Fua=function(a){var b=new Map;a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(d,c)}return b},Gua=function(a){var b=new Map;a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},gk=function(){return new Hua},Iua=function(a){var b=1E3;b=b===void 0?150:b;var c,d=[];return function(e){d.push(e);c&&clearTimeout(c);c=setTimeout(function(){a(d);d=[];c=void 0},
b)}},Jua=function(a){function b(){var e,f,h,k;return w(function(q){if(q.nextAddress==1){if(d||c.length===0)return q.return();d=!0;e=[].concat(p(c));c=[];f=l(e);h=f.next()}if(q.nextAddress!=3){if(h.done)return d=!1,x(q,b(),0);k=h.value;return x(q,a.apply(null,p(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}h=f.next();return q.jumpTo(2)})}var c=[],d=!1;return function(){var e=ud.apply(0,arguments),f=new Hua;c.push({args:e,returnValue:f});b();return f.promise}},hk=function(a){var b=
!1;return function(){var c=ud.apply(0,arguments);if(!b)return b=!0,a.apply(null,p(c))}},Kua=function(a){var b=new Map;return function(){var c=ud.apply(0,arguments),d=c.map(String).join("-");if(b.has(d))return b.get(d);c=a.apply(null,p(c));b.set(d,c);return c}},Lua=function(a){return a},jk=function(a){return ik(a,Lua)},ik=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},Mua=function(a){return function(b){return ik(b,a)}},Nua=function(a,b){return a.map(function(c,
d){return[c,b[d]]})},Oua=function(a,b){var c=a===void 0?[]:a;a=b===void 0?[]:b;if(c.length===0)return a;b=a.filter(function(d){return!c.includes(d)});return b.length===a.length?a:b},Pua=function(a,b){return a===b?!0:a.length!==b.length?!1:a.every(function(c,d){return c===b[d]})},kk=function(a,b){a=[].concat(p(a)).sort();b=[].concat(p(b)).sort();return Pua(a,b)},Qua=function(a,b){if(a.length===0)return b;b=b.slice();b=Oua(a,b);return[].concat(p(a),p(b))},Rua=function(a,b){var c=new Set(a),d=new Set(b);
return{added:b.filter(function(e){return!c.has(e)}),removed:a.filter(function(e){return!d.has(e)})}},Sua=function(a,b){a=Dua(a,b);return[].concat(p(a.values()))},Tua=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,c+100));return b},Uua=function(a){var b=a.reduce(function(c,d){c[d]=~~c[d]+1;return c},{});return Object.keys(b).sort(function(c,d){return b[d]-b[c]})},Vua=function(a){var b=a.filter(function(k){var q;return(q=k.experimentalFields)==null?void 0:q.clusterIds.length});a=new Map;
b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(c.experimentalFields.clusterIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,h=(f=a.get(e))!=null?f:new Set;h.add(c.issueId);a.set(e,h)}}a=[].concat(p(a.values())).map(function(k){return[].concat(p(k))});return ik(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,q){return q.length-k.length}).slice(0,3).map(function(k){return[].concat(p(k))})},lk=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;
default:return null}},Wua=function(a){switch(a){case "TYPE_UNSPECIFIED":case "BUG":case "FEATURE_REQUEST":case "CUSTOMER_ISSUE":case "INTERNAL_CLEANUP":case "PROCESS":case "VULNERABILITY":case "PRIVACY_ISSUE":case "PROJECT":case "FEATURE":case "MILESTONE":case "EPIC":case "STORY":case "TASK":case "PROGRAM":return a;default:return null}},Xua=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},$ua=function(){mk==null&&(mk=new Yua(Zua.buganizerSessionJspb));
nk(mk,ok,2)||mk.setConfig(new ok);if(!nk(mk,pk,9)){var a=mk,b=new pk;W(a,pk,9,b)}mk.hasUser()||mk.setUser(new qk);nk(mk,rk,7)||(a=mk,b=new rk,W(a,rk,7,b));return mk},tk=function(a){return function(){var b=sk.getItem(a);if(b==null)return!1;try{return!!JSON.parse(b)}catch(c){return console.warn("getBooleanAt() JSON.parse("+a+") failed"),console.warn(c),!1}}},uk=function(a){return function(b){b===!0?sk.setItem(a,"1"):sk.removeItem(a)}},ava=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in
a&&"flagName"in a&&"value"in a?!0:!1},bva=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?Date.parse(b.overrideUntilDate)>Date.now():!0})}},cva=function(){console.warn("Local flag overrides only apply to the client runtime (TypeScript), and do not have an effect on any flag values on the Front End server or API.")},gva=function(){if(dva("flag-overrides")()){var a=eva("flag-overrides")();if(a&&typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&
a.overrides.every(ava))return bva(a);fva();console.warn("Could not parse flag overrides.")}},fva=function(){vk("flag-overrides")()},hva=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;cva();var d,e=((d=gva())==null?void 0:d.overrides)||[];vk("flag-overrides")({overrides:[].concat(p(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},iva=function(a,b){hva(a,b)},jva=function(a){cva();var b,c=((b=gva())==null?void 0:b.overrides)||[];vk("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==
a})})},wk=function(a){kva();var b,c;return(c=(b=$ua().getConfig())==null?void 0:Kc(b,4,lc).get(a))!=null?c:!1},xk=function(a){switch(a){case "BUG":return"Bug";case "FEATURE_REQUEST":return"Feature Request";case "CUSTOMER_ISSUE":return"Customer Issue";case "INTERNAL_CLEANUP":return"Internal Cleanup";case "PROCESS":return"Process";case "VULNERABILITY":return"Vulnerability";case "PRIVACY_ISSUE":return"Privacy Issue";case "PROJECT":return"Project";case "FEATURE":return"Feature";case "MILESTONE":return"Milestone";
case "EPIC":return"Epic";case "STORY":return"Story";case "TASK":return"Task";case "PROGRAM":return"Program";case "TYPE_UNSPECIFIED":return"";default:return""}},zk=function(a,b,c,d){var e;return{status:a,displayValue:(e=yk.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},wva=function(){var a=[lva,mva,nva,ova,pva,qva,rva,sva,tva,uva];wk("enableClientInactiveStatusOption")&&a.splice(a.findIndex(function(b){return(b==null?void 0:b.status)==="INFEASIBLE"})+1,0,vva);return a},xva=function(a){if(!a)return!1;
a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},Bk=function(a){return a?a.map(Ak):[]},Ck=function(a){a=Bk(a);a.sort();return a},Ak=function(a){return a&&a.getUserGaiaStatus?yva(zva(a)):yva(a)},yva=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":xva(a)?Ava(a)||"[No Data]":"[No Data]":""},Dk=function(a){return a&&a.getUserGaiaStatus?Ava(zva(a)):Ava(a)},Ava=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||
""},zva=function(a){if(a!=null){var b={},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=Oh(a,2))b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=Bva[c];(c=Ek(a,4,Fk(Gk)))&&c.length>0&&(b.aliases=c);return b}},Hk=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},Cva=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Hk(c.value));return b},Dva=function(a){var b=a.getId(),c=Ik(a,3);var d=Ek(a,2,Fk());a=Hc(a,4,Sb,Fk());return Jk({id:b,
std_offset:c,names:d,transitions:a||[]})},Ok=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Kk;b&&Lk(e,1,b);c&&Lk(e,2,c);(d==null?0:d.length)&&Mk(e,4,d);if(a)switch(a){case "UNSPECIFIED":Nk(e,3,0);break;case "ACTIVE":Nk(e,3,1);break;case "DELETED":Nk(e,3,2);break;case "UNAVAILABLE":Nk(e,3,3);break;default:Gb(a)}return e},Pk=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=Oh(a,2))b.obfuscatedEmailAddress=c;c=a.getUserGaiaStatus();
switch(c){case 0:break;case 1:b.userGaiaStatus="ACTIVE";break;case 2:b.userGaiaStatus="DELETED";break;case 3:b.userGaiaStatus="UNAVAILABLE";break;default:throw Error("ac`"+c);}a=Ek(a,4,Fk(Gk));if(a==null?0:a.length)b.aliases=a;return b},Qk=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},Rk=function(a){if(a!=null)return String(a)},Eva=function(a){if(a!=null&&a!=="0")return a},Sk=function(a){return a==null?void 0:a},Fva=function(){return function(a){return a==
null?"<none>":a}},Tk=function(a){return a!=null},Gva=function(a){if(a!=null)return a/1E3},Iva=function(a){var b=a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=Uk(a,4,Fk()).map(String);var f=X(a,Vk,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:Oh(f,3),theme:Hva[f.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:f!=null?f:null,internalBaseUrl:a.getInternalBaseUrl()||void 0,externalBaseUrl:a.getExternalBaseUrl()||void 0,collaboratorGroups:Wk(a,
Kk,10,Fk()).length>0?Wk(a,Kk,10,Fk()).map(Pk):void 0}},Jva=function(a){return Iva(a.getIt())},Kva=function(a){return a.getIt().getTrackersList().map(Iva)},Lva=function(a){return{trackers:a.getIt().getTrackersList().map(Iva),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},Xk=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";switch(Mva[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";
default:return"UNSPECIFIED_FORMATTING_MODE"}},Nva=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";switch(Yk[a]){case "MARKDOWN":return"MARKDOWN_FORMATTING_MODE";case "PLAIN":return"PLAIN_FORMATTING_MODE";case "LITERAL":return"LITERAL_FORMATTING_MODE";default:return"COMMENT_FORMATTING_MODE_UNSPECIFIED"}},Ova=function(a){if(a!=null){var b=a.getYear();if(b==null)Nj("No year. dateToJs");else{var c=a.getDay();if(c==null)Nj("No day. dateToJs");else if(a=a.getMonth(),a==null)Nj("No month. dateToJs");
else return{year:b,day:c,month:a}}}},Pva=function(a){var b=new Zk;$k(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},al=function(a){if(a!=null){var b=a.getSeconds_asLegacyNumberOrString();a=a.getNanos();return{seconds:b,nanos:a}}},cl=function(a){var b=new bl;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Qva=function(a){var b=new dl;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Rva=function(a){if(a!=null){var b=a.getSeconds_asLegacyNumberOrString();a=a.getNanos();return{seconds:b,
nanos:a}}},Sva=function(a){if(a!=null)return Number(a.toDate())},el=function(a){var b=a*1E3;a=0;b=b===void 0?0:b;if(b<=-1E9||b>=1E9)a+=Math.trunc(b/1E9),b%=1E9;b<0&&(b+=1E9,--a);return cl({seconds:a,nanos:b})},Tva=function(){var a=Date.now();return al(el(a*1E3))},fl=function(a){if(!a)return 0;a=a.getSeconds_asLegacyNumberOrString()*1E9+a.getNanos();return Math.round(a/1E3)},Uva=function(a){return a?a==="ASCENDING"?"asc":"desc":""},gl=function(a,b,c){return function(d,e){e=e===void 0?c:e;return Vva(d,
a,b,e)}},Vva=function(a,b,c,d){return d?[].concat(p(a)).sort(function(e,f){var h=d==="ASCENDING"?1:-1;return c(b(e),b(f))*h}):[].concat(p(a))},hl=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:isNaN(a)&&isNaN(b)?0:isNaN(a)?1:isNaN(b)?-1:a>b?1:a<b?-1:0},il=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:a.localeCompare(b)},mwa=function(a){var b={};jl(a,1)&&(b.showFullHistory=kl(a,1));jl(a,2)&&(b.useCodefont=kl(a,2));ll(a,5)&&(b.resultsPerPage=
Ik(a,5));jl(a,26)&&(b.showRecentEventsFirst=kl(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(Wva).filter(Tk)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(Xva).filter(Tk)};ml(a,7)&&(b.bannerMessageId=Oh(a,7));if(c=X(a,Yva,3)){var d={};nl(c,1)&&(d.reportedPriority=ol[pl(c,1)]);nl(c,2)&&(d.assignedPriority=ol[pl(c,2)]);nl(c,3)&&(d.verifiedPriority=ol[pl(c,3)]);nl(c,4)&&(d.ccdPriority=ol[pl(c,4)]);nl(c,9)&&(d.collaboratorPriority=ol[pl(c,
9)]);nl(c,5)&&(d.starredPriority=ol[pl(c,5)]);jl(c,6)&&(d.excludeChangesByMe=kl(c,6));jl(c,7)&&(d.unsubscribeFromAll=kl(c,7));jl(c,8)&&(d.enableV2Prefs=kl(c,8));b.notificationPreferences=d}if(d=X(a,Zva,9)){c={showHotlists:kl(d,1),showStatusIcons:kl(d,4),wrapComponents:kl(d,3),wrapTitles:kl(d,2),rtlComponentPath:kl(d,5)};var e=Kc(d,6,oc);c.fieldStatus=Object.fromEntries(e.entries());d=Kc(d,7,oc);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d=
{},ll(c,1)&&(d.leftSidebarWidth=Ik(c,1)),jl(c,2)&&(d.expandIssueSlo=kl(c,2)),ll(c,3)&&(d.rightSidebarWidth=Ik(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},ml(c,1)&&(d.calendarFormat=Oh(c,1)),ml(c,2)&&(d.timeFormat=Oh(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),nl(c,7)&&(d.sloEtaViewAs=$va[pl(c,7)]),b.dateTimePreferences=d;if(c=X(a,ql,8))d={},nl(c,1)&&(d.density=awa[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},nl(c,1)&&(d.resourceType=bwa(pl(c,
1,1))),bc(rl(c,2))!=null&&(d.resourceId=sl(c,2)),b.homepagePreferences=d;if(c=X(a,cwa,17))d={},jl(c,1)&&(d.enableAllHotkeys=kl(c,1,!0)),b.keyboardPreferences=d;bc(rl(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=sl(a,16));jl(a,18)&&(b.autoCcOnComment=kl(a,18));nk(a,tl,20)&&(d=X(a,tl,20),c=d.getCommentDisplayOverride(),d=d.getLastPublishMode(),b.textDisplayPreferences={commentDisplayOverride:ul(c),lastPublishMode:ul(d)});nk(a,vl,33)&&(e=X(a,vl,33),c=pl(e,3),d=e.getCommentDisplayOverride(),e=e.getLastPublishMode(),
b.commentFormattingPreferences={commentCreateOverride:ul(c),commentDisplayOverride:ul(d),lastPublishMode:ul(e)});nk(a,wl,21)&&(c=X(a,wl,21),d={},jl(c,2)&&(d.announcementDismissed=kl(c,2)),jl(c,1)&&(d.enableBugScreensaver=kl(c,1)),b.bugScreensaverPreferences=d);nk(a,xl,24)&&(c=X(a,xl,24),d={},yl(c,1)&&(d.announcementDismissedMillis=zl(c,1)),b.g3nPreferences=d);if(c=X(a,dwa,23))c=Wk(c,ewa,1,Fk()),b.teamWarningPreferences={componentTeamWarnings:c.map(fwa)};c=Lc(a,25,bl,oc);c.size&&(b.dismissalTimestamps=
gwa(c));c=a.getCollapsedMap();c.size&&(b.collapsed=Object.fromEntries(c.entries()));jl(a,29)&&(b.showInlineImages=a.getShowInlineImages());nk(a,Al,28)&&(c=X(a,Al,28),d={},nl(c,1)&&(d.commentFilter=hwa(pl(c,1))),b.commentFilterPreferences=d);if(c=X(a,Bl,31))b.missionControlPreferences=iwa(c);nk(a,jwa,32)&&(b.scopePreferences=kwa(X(a,jwa,32)));c=Lc(a,34,Cl,mc);if(c.size){a=new Map;c=l(c.entries());for(d=c.next();!d.done;d=c.next())e=l(d.value),d=e.next().value,e=e.next().value,a.set(Sh(d),{open:e.getOpen(),
searchScope:lwa[pl(e,2,1)],componentScope:Sh(Dl(e,3)),includeDescendants:kl(e,4)});b.assistiveIssuePickerPreferences=a}return b},Wva=function(a){if(a.hasType()){var b={type:nwa[a.getType()]};a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId_asLegacyNumberOrString());return b}},Xva=function(a){var b=a.getColumn();if(b=b&&Wva(b)){if(nl(a,2))a:switch(a=pl(a,2,1),a){case 1:a="ASCENDING";break a;case 2:a="DESCENDING";break a;default:a=Gb(a,"Unknown sortOrder: "+a)}else a=void 0;if(a)return{column:b,
order:a}}},ul=function(a){if(a!==0)return owa[a]},bwa=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";case 5:return"MISSION_CONTROL";case 6:return"ASSIGNED_TO_ME";default:return Gb(a,"Unknown resourceType: "+a)}},fwa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asLegacyNumberOrString());yl(a,2)&&(b.dismissMillis=zl(a,2));return b},gwa=function(a){a=Array.from(a.entries()).map(function(b){var c=l(b);b=c.next().value;
c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},hwa=function(a){switch(a){case 0:return"FULL_HISTORY";case 1:return"ALL_COMMENTS";case 2:return"HUMAN_ONLY";case 3:return"TEAM_AND_ASSIGNEE";default:return Gb(a,"Unknown resourceType: "+a)}},kwa=function(a){var b=El(a,1),c=al(X(a,bl,2));a=Wk(a,Fl,3,Fk()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:Gl(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},swa=function(a){var b=pwa(qwa(new jwa,
a.starredTeams),a.starredTriageViews.map(function(c){var d=(new Fl).setTeamId(c.teamId);return Hl(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&rwa(b,cl(a.lastAutomaticStarsUpdate));return b},iwa=function(a){var b=ll(a,3)?Ik(a,3):void 0,c=ll(a,6)?Ik(a,6):void 0,d=ll(a,5)?Ik(a,5):void 0,e=ll(a,4)?Ik(a,4):void 0,f=jl(a,10)?kl(a,10):void 0,h=jl(a,11)?kl(a,11):void 0,k=jl(a,12)?kl(a,12):void 0,q=Hc(a,7,Qb,Fk()).map(function(da){return twa[da]}),u=Hc(a,8,Qb,Fk()).map(function(da){return twa[da]}),A=uwa(Wk(a,
Il,18,Fk())),G=vwa(Wk(a,Jl,19,Fk())),H=wwa(Wk(a,Kl,20,Fk())),N=xwa(Wk(a,Ll,21,Fk())),O=ywa(Wk(a,Ml,22,Fk())),U=zwa(Wk(a,Nl,24,Fk()));b={workAreaUrls:Ek(a,1,Fk(Gk)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,needsAttentionSources:q,needsAttentionBuganizerFilteredSignals:A,needsAttentionDriveFilteredSignals:G,needsAttentionGerritFilteredSignals:H,needsAttentionChangelistFilteredSignals:N,needsAttentionGoogleTasksFilteredSignals:O,needsAttentionIrmFilteredSignals:U,myTasksSources:u,
hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:h,isMyTasksSourcesConfigured:k};c=Kc(a,9,$ca);c.size&&(b.workAreaQuickFilters=Awa(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},Awa=function(a){var b={};a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;(d=Bwa(d))&&(b[c]=d)}return b},Cwa=function(a){switch(a){case "ASSIGNED_TO_ME_AND_OPEN":return 1;case "OPEN":return 2;case "FIXED":return 3;case "BROAD_IN_PROGRESS":return 4;
case "NEWLY_FILED":return 5;case "RECENTLY_ACTIVE":return 6;case "HIGH_PRIORITY":return 7;case "TRENDING":return 8;case "PROGRESS":return 9;case "ASSIGNED_TO_ME":return 0;default:return 0}},Bwa=function(a){switch(a){case 1:return"ASSIGNED_TO_ME_AND_OPEN";case 2:return"OPEN";case 3:return"FIXED";case 4:return"BROAD_IN_PROGRESS";case 5:return"NEWLY_FILED";case 6:return"RECENTLY_ACTIVE";case 7:return"HIGH_PRIORITY";case 8:return"TRENDING";case 9:return"PROGRESS"}},Qwa=function(a){var b=new rk;a.showFullHistory!=
null&&Ol(b,1,a.showFullHistory);a.useCodefont!=null&&Ol(b,2,a.useCodefont);a.resultsPerPage!=null&&Pl(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(Dwa(a.displayColumns));if(a.sortColumns!=null){var c=Ewa(a.sortColumns);W(b,Ql,6,c)}a.bannerMessageId!=null&&Rl(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new Yva;d=Sl(d,1,Tl[c.reportedPriority]);d=Sl(d,2,Tl[c.assignedPriority]);d=Sl(d,3,Tl[c.verifiedPriority]);d=Sl(d,4,Tl[c.ccdPriority]);
d=Sl(d,9,Tl[c.collaboratorPriority]);d=Sl(d,5,Tl[c.starredPriority]);d=Ol(d,6,c.excludeChangesByMe);d=Ol(d,7,c.unsubscribeFromAll);c=Ol(d,8,c.unsubscribeFromAll);W(b,Yva,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new Zva,d=Ol(d,1,c.showHotlists),d=Ol(d,2,c.wrapTitles),d=Ol(d,3,c.wrapComponents),d=Ol(d,4,c.showStatusIcons),d=Ol(d,5,c.rtlComponentPath),c.fieldStatus!=null&&Fwa(c.fieldStatus,Kc(d,6,oc)),c.modeForField!=null&&Fwa(c.modeForField,Kc(d,7,oc)),W(b,Zva,9,d));a.layoutPreferences!=
null&&(c=a.layoutPreferences,d=new Gwa,c.leftSidebarWidth!=null&&Pl(d,1,c.leftSidebarWidth),c.expandIssueSlo!=null&&Ol(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&Pl(d,3,c.rightSidebarWidth),W(b,Gwa,10,d));a.dateTimePreferences!=null&&(c=a.dateTimePreferences,d=new Ul,d=Rl(d,1,c.calendarFormat),d=Rl(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Sl(d,7,Hwa[c.sloEtaViewAs]),W(b,Ul,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new ql).setDensity(Iwa[c.density]),W(b,ql,8,c));if(a.homepagePreferences!=
null){c=a.homepagePreferences;d=new Jwa;if(c.resourceType!=null){var e=Kwa(c.resourceType);Sl(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);W(b,Jwa,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,d=new cwa,c=Ol(d,1,c.enableAllHotkeys),W(b,cwa,17,c));a.newFeaturesAcknowledgedMillis!=null&&Vl(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&Ol(b,18,a.autoCcOnComment);a.textDisplayPreferences!=null&&(c=a.textDisplayPreferences,d=new tl,c.commentDisplayOverride&&d.setCommentDisplayOverride(Lwa[c.commentDisplayOverride]),
c.lastPublishMode&&d.setLastPublishMode(Lwa[c.lastPublishMode]),W(b,tl,20,d));a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new vl,c.commentCreateOverride&&Sl(d,3,Lwa[c.commentCreateOverride]),c.commentDisplayOverride&&d.setCommentDisplayOverride(Lwa[c.commentDisplayOverride]),c.lastPublishMode&&d.setLastPublishMode(Lwa[c.lastPublishMode]),W(b,vl,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,d=new wl,c.enableBugScreensaver!=null&&Ol(d,1,c.enableBugScreensaver),
c.announcementDismissed!=null&&Ol(d,2,c.announcementDismissed),W(b,wl,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new xl,c.announcementDismissedMillis!=null&&Hl(d,1,c.announcementDismissedMillis),W(b,xl,24,d));a.teamWarningPreferences!=null&&(c=Mwa(a.teamWarningPreferences),W(b,dwa,23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=Lc(b,25,bl,oc),d=l(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set;h=
(new bl).fromMillis(h.getTime());k.call(f,e,h)}a.collapsed!=null&&Fwa(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&Ol(b,26,a.showRecentEventsFirst);a.showInlineImages!=null&&Ol(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new Al,d.commentFilter!=null&&(d=Nwa(d.commentFilter),Sl(c,1,d)),W(b,Al,28,c));a.missionControlPreferences!=null&&(c=Owa(a.missionControlPreferences),W(b,Bl,31,c));a.scopePreferences!=null&&(c=swa(a.scopePreferences),
W(b,jwa,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=Lc(b,34,Cl,mc),c=l(c.entries()),d=c.next();!d.done;d=c.next())d=l(d.value),k=d.next().value,f=d.next().value,d=a,e=d.set,k=zb(k),h=(new Cl).setOpen(f.open),h=Sl(h,2,Pwa[f.searchScope]),h=Hl(h,3,f.componentScope),f=Ol(h,4,f.includeDescendants),e.call(d,k,f);return b},Dwa=function(a){return(new Wl).setColumnList(a.column.map(function(b){return Rwa(b)}))},Rwa=function(a){var b=(new Xl).setType(Swa[a.type]);
a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},Ewa=function(a){return(new Ql).setColumnList(a.column.map(function(b){var c=(new Yl).setColumn(Rwa(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=Gb(b,"Unknown sortOrder: "+b)}return Sl(c,2,b)}))},Kwa=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;case "MISSION_CONTROL":return 5;case "ASSIGNED_TO_ME":return 6;default:return Gb(a,
"Unknown resourceType: "+a)}},Mwa=function(a){var b=new dwa;a.componentTeamWarnings!=null&&Twa(b,a.componentTeamWarnings.map(function(c){var d=new ewa;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&Hl(d,2,c.dismissMillis);return d}));return b},Nwa=function(a){switch(a){case "FULL_HISTORY":return 0;case "ALL_COMMENTS":return 1;case "HUMAN_ONLY":return 2;case "TEAM_AND_ASSIGNEE":return 3;default:return Gb(a,"Unknown commentFilterType: "+a)}},Owa=function(a){var b=new Bl;a.workAreaUrls&&
Mk(b,1,a.workAreaUrls);a.collapsed&&Fwa(a.collapsed,b.getCollapsedMap());if(a.workAreaQuickFilters){for(var c=a.workAreaQuickFilters,d={},e=l(Object.keys(c)),f=e.next();!f.done;f=e.next())f=f.value,d[f]=Cwa(c[f]);Fwa(d,Kc(b,9,$ca))}a.myTasksTab!=null&&Pl(b,3,a.myTasksTab);a.workAreaTab!=null&&Pl(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&Pl(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=null&&Pl(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&Uwa(b,a.needsAttentionSources.map(Vwa));a.myTasksSources&&
Wwa(b,a.myTasksSources.map(Vwa));a.hideBadgeInNav!=null&&Ol(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&Ol(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=null&&Ol(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&Xwa(b,Zl(a.needsAttentionBuganizerFilteredSignals,function(h,k){return(new Il).setSignal(Ywa[h]).setChecked(k)}));a.needsAttentionDriveFilteredSignals&&Zwa(b,Zl(a.needsAttentionDriveFilteredSignals,function(h,
k){return(new Jl).setSignal($wa[h]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&axa(b,Zl(a.needsAttentionGerritFilteredSignals,function(h,k){return(new Kl).setSignal(bxa[h]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&cxa(b,Zl(a.needsAttentionChangelistFilteredSignals,function(h,k){return(new Ll).setSignal(dxa[h]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&exa(b,Zl(a.needsAttentionGoogleTasksFilteredSignals,function(h,k){return(new Ml).setSignal(fxa[h]).setChecked(k)}));
a.needsAttentionIrmFilteredSignals&&gxa(b,Zl(a.needsAttentionIrmFilteredSignals,function(h,k){return(new Nl).setSignal(hxa[h]).setChecked(k)}));return b},Vwa=function(a){return ixa[a]},uwa=function(a){return a.reduce(function(b,c){return b.set(jxa[c.getSignal()],c.getChecked())},new Map)},vwa=function(a){return a.reduce(function(b,c){return b.set(kxa[c.getSignal()],c.getChecked())},new Map)},wwa=function(a){return a.reduce(function(b,c){return b.set(lxa[c.getSignal()],c.getChecked())},new Map)},xwa=
function(a){return a.reduce(function(b,c){return b.set(mxa[c.getSignal()],c.getChecked())},new Map)},ywa=function(a){return a.reduce(function(b,c){return b.set(nxa[c.getSignal()],c.getChecked())},new Map)},zwa=function(a){return a.reduce(function(b,c){return b.set(oxa[c.getSignal()],c.getChecked())},new Map)},Fwa=function(a,b){a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},Zl=function(a,b){var c=[];a.forEach(function(d,
e){c.push(b(e,d))});return c},pxa=function(a){a=ei(a).toString();var b=new $l;Rl(b,2,a);return b},qxa=function(a){if(!a)return null;a=am(a,2);return a===null||a===void 0?null:ci(a)},rxa=function(a){if(!a)return null;a=am(a,3);return a===null||a===void 0?null:new Wh(a)},em=function(){if(sxa==null){kva();var a=$ua();var b=a.hasUser()?a.getUser():new qk;b=kl(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),
sessionIdentifier:b.getSessionIdentifier()};var c=nk(a,ok,2)?a.getConfig():new ok;for(var d=new Map,e=l(Kc(c,4,lc).entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d.set(f,h)}c={appName:c.getAppName(),documentationBaseUrl:c.getDocumentationBaseUrl(),enabledFlags:d,environmentType:c.getEnvironmentType(),onePickUrl:c.getOnePickUrl(),onePickSecretToken:c.getOnePickSecretToken(),commentNumberLimit:c.getCommentNumberLimit(),createComponentRedirectDelay:c.getCreateComponentRedirectDelay(),
createRestrictedSubresourcesComponentIds:Uk(c,13,Fk(Gk)),indefiniteRetentionComponentsAllowlist:Uk(c,20,Fk(Gk)),trustedEmailDomainsAllowlist:Ek(c,22,Fk(Gk)),helpMeFixSidebarComponentAllowlist:Uk(c,23,Fk()),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl()};d=mwa(nk(a,rk,7)?a.getUserPreferences():new rk);f=nk(a,pk,9)?X(a,pk,9):new pk;e=Wk(f,bm,1,Fk()).map(Dva);nk(f,cm,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:f.getMessageId(),dismissible:kl(f,3),tags:f.getTagsList(Gk)}):
f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();h=a.getCspNonce();var k=a.getFrontendAccessMode(),q=a.getMustAcknowledgeTerms(),u=a.getShowNewFeaturesDialog(),A=a.getAppBaseHref(),G=nk(a,dm,11)?Jva(a.getTracker()):null,H;nk(a,txa,12)?(H=a.getPassiveLoginIframeUrl())?(H=am(H,4),H=H===null||H===void 0?null:Uh(H)):H=null:H=null;sxa={user:b,config:c,xsrfToken:f,cspNonce:h,frontendAccessMode:k,mustAcknowledgeTerms:q,showNewFeaturesDialog:u,userPreferences:d,preload:e,appBaseHref:A,tracker:G,passiveLoginIframeUrl:H,
userRequiresCaptcha:kl(a,13)}}return sxa},uxa=function(){return(em().frontendAccessMode||"INTERNAL")==="INTERNAL"},fm=function(a){a=a.config.environmentType||"QA";switch(a){case "NIGHTLY":case "PROD":return!0;case "QA":case "DEV":return!1;default:Gb(a,"Unknown environment type.")}},gm=function(a,b){if(b)rna(a,b);else for(;a.lastChild;)a.lastChild.remove()},vxa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},hm=function(a){return a.endsWith("px")?
Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},wxa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},xxa=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");gm(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");gm(b,a.markdownFormat.content);return b.innerText}return a.literalFormat?(b=document.createElement("div"),gm(b,a.literalFormat.content),b.innerText):""},yxa=
function(a,b){return(b===void 0?0:b)?"https://"+a.host+"-review.git.corp.google.com/c/"+a.repo+"/+/"+a.changeNumber:"https://"+a.host+"-review.googlesource.com/c/"+a.repo+"/+/"+a.changeNumber},im=function(a){var b=a.match(zxa);if(b){a=b[1];var c=b[2];b=b[3];if(a&&c&&b)return{host:a,repo:c,changeNumber:Number(b),state:"MERGED"}}},Cxa=function(a,b){a=a.map(Axa)||[];b=b.map(Axa)||[];return hua(a,new Set(b)).map(Bxa)},Axa=function(a){return a.host+","+a.repo+","+a.changeNumber+","+a.state},Bxa=function(a){var b=
l(a.split(","));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;d=Qk(d);if(!d)throw Error("bc");if(!Object.values(Dxa).includes(b))throw Error("cc");return{host:a,repo:c,changeNumber:d,state:b}},Exa=function(a){a=a.trim();if(a.match(/^(https:\/\/|http:\/\/)?(cl)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(cr)\/[\d]+/)||a.match(/^(https:\/\/|http:\/\/)?(critique\.corp\.google\.com)/)||a.match(/^(https:\/\/|http:\/\/)?(critique-ng\.corp\.google\.com)/))a=a.replace(/^.*\//,"");
return a.match(/^[1-9]\d{0,19}$/)?a:null},Fxa=function(a,b){b=b===void 0?wk("enableGerritChanges"):b;var c;return w(function(d){return b?(c=a&&(!!Exa(a)||!!im(a)))?d.return(""):d.return("Must be a CL number or Gerrit URL"):d.return("")})},Hxa=function(a){return a==null?!1:Gxa.has(a.name)},Ixa=function(a){return(a==null?void 0:a.name)==="hotlist"},Jxa=function(a){return a==null?!1:a.href!=null&&a.value!=null},Kxa=function(a){return Array.isArray(a)?a.every(Jxa):!1},jm=function(a){return{value:String(a),
href:"issues/"+a}},Lxa=function(a){return{value:a,href:"https://critique.corp.google.com/"+a}},Mxa=function(a){var b=uxa();return{value:a.changeNumber,href:yxa(a,b===void 0?!1:b)}},Nxa=function(a){return{value:String(a),href:"issues?q=hotlistid:"+a}},Oxa=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},Rxa=function(a,b){var c=new Map(a.filter(function(u){return u.placeholder}).map(function(u){var A;return[(A=km[u.placeholder.role])!=null?A:"",u.placeholder.count]})),d=new Map(b.filter(function(u){return u.placeholder}).map(function(u){var A;
return[(A=km[u.placeholder.role])!=null?A:"",u.placeholder.count]}));a=new Map(a.filter(function(u){return u.user}).map(function(u){var A,G;return[(A=Dk(u.user.user))!=null?A:"",(G=Pxa[u.allocation.involvement])!=null?G:""]}));var e=new Map(b.filter(function(u){return u.user}).map(function(u){var A,G;return[(A=Dk(u.user.user))!=null?A:"",(G=Pxa[u.allocation.involvement])!=null?G:""]}));b=[];for(var f=[],h=l(c),k=h.next();!k.done;k=h.next()){var q=l(k.value);k=q.next().value;q=q.next().value;k.length!==
0&&k!==km.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==q&&b.push(k+" ("+d.get(k)+" > "+q+")"):b.push(k+" ("+q+")"))}d=l(d);for(h=d.next();!h.done;h=d.next())k=l(h.value),h=k.next().value,k=k.next().value,h.length!==0&&h!==km.JOB_ROLE_UNSPECIFIED&&(c.has(h)||f.push(h+" ("+k+")"));c=l(a);for(d=c.next();!d.done;d=c.next())h=l(d.value),d=h.next().value,h=h.next().value,d.length!==0&&(e.has(d)?(k=void 0,q=(k=e.get(d))!=null?k:"",q!==h&&b.push(d+Qxa(h,q))):b.push(d+Qxa(h)));e=l(e);for(c=e.next();!c.done;c=
e.next())d=l(c.value),c=d.next().value,d=d.next().value,c.length!==0&&(a.has(c)||f.push(c+Qxa(d)));return{additions:b,removals:f}},Qxa=function(a,b){return b===a?"":b&&b.length>0&&a.length>0&&b!==km.JOB_ROLE_UNSPECIFIED&&a!==km.JOB_ROLE_UNSPECIFIED?" ("+b+" > "+a+")":a.length>0&&a!==km.JOB_ROLE_UNSPECIFIED?" ("+a+")":""},lm=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},Sxa=function(a){var b=a+" day"+(a>1?"s":"");if(a<365)return b;a=Math.round(a/365*10)/10;return b+" (~"+(a+" year"+(a>1?"s":""))+
")"},Txa=function(a){if(a){var b=new bk;b.setTime(a.getTime());return b}},Uxa=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},Vxa=function(a){if(a==null)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},Wxa=function(a){return a==null?!1:Date.now()>lm(a)},mm=function(a){return!(a==null||!a.commentNumber)},Xxa=function(a){return a.unlinkifiedComment!==""?!0:a.formattedComment?xxa(a.formattedComment)!==
"":!1},Yxa=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},Zxa=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},$xa=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===b}),e=a[d];if(e==null)return a;c=Object.assign({},e,c);return[].concat(p(a.slice(0,d)),[c],p(a.slice(d+1)))},nm=function(a){var b;return a==null?void 0:(b=a.snapshot)==null?void 0:b[0]},aya=function(a){var b;
return Ak((b=nm(a))==null?void 0:b.assigneeUser)||void 0},bya=function(a){if(a==null)return"";var b,c,d,e,f=a.etag,h=a.piiRetention;var k=a.piiRetentionState;k=k==null?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,h,k,(b=a.entityStatus)==null?void 0:b.reason,(c=a.entityStatus)==null?void 0:c.status,(d=a.contentVerdict)==null?void 0:(e=d.piiVerdict)==null?void 0:e.severity].join("-")},cya=function(a){if(a==null)return"";var b=a.attachments.map(bya).join("-"),
c=[];if(a.commentReactions&&a.commentReactions.size>0){var d,e=l((d=a.commentReactions)==null?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=l(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var h,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(h=a.commentContentVerdict)==null?void 0:(k=h.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,a.commentRetention,"["+c+"]"].join("-")},dya=function(a){return a.map(function(b){return b.commentNumber}).filter(Tk).reduce(function(b,
c){return Math.max(b,c)},1)},eya=function(a,b){if(a===b)return!0;if(a==null||b==null||a.length!==b.length)return!1;for(var c=a.length-1;c>=0;c--){var d=a[c],e=b[c];if(d!==e&&(d==null||e==null||cya(d)!==cya(e)))return!1}return!0},pm=function(a){if(a==null||(a==null?0:a.isArchived))return!1;var b,c;a=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.status;if(a==null)return!1;var d,e;return(e=(d=om.get(a))==null?void 0:d.open)!=null?e:!1},fya=function(a){if(a==null||a.isArchived)return!1;
var b,c;a=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.status;if(a==null)return!1;b=om.get(a);return b==null?!1:!(b==null?0:b.open)},hya=function(a){return gya(a,"FIXED")},gya=function(a,b){if(a==null?0:a.isArchived)return!1;var c,d;return b===(a==null?void 0:(c=a.snapshot)==null?void 0:(d=c[0])==null?void 0:d.status)},iya=function(a){return a.isArchived==null?!1:!a.isArchived},jya=function(a){if(!a)return!1;var b,c=(b=a.aggregatedData)==null?void 0:b.modifiedTimeMicros,d;a=
(d=a.userData)==null?void 0:d.lastViewedTimeMicros;return!a||c&&a<c},lya=function(){var a=qm;return gl(function(b){var c,d;return(d=kya.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},hl)},mya=function(){var a=qm;return gl(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},il)},nya=function(){var a=qm;return gl(function(b){var c;return(c=a(b))==null?void 0:c.snapshot[0].type},il)},oya=function(){var a=qm;return gl(function(b){var c,
d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},il)},pya=function(a){return gl(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.aggregatedData)==null?void 0:d.createdTimeMicros)!=null?e:0},hl)},qya=function(a){return gl(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0},hl)},sya=function(){return gl(function(a){var b,c;return(c=a==null?void 0:(b=a.experimentalFields)==null?void 0:
b.triage.triagerEmail)!=null?c:""},function(a,b){return a===rya?1:b!==rya&&a?b?il(a,b):1:-1})},tya=function(a){var b,c,d;return(d=a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.priority)!=null?d:"PRIORITY_UNSPECIFIED"},vya=function(a){return gl(function(b){return uya[tya(a(b))]},hl)},wya=function(){var a=qm;return gl(function(b){b=a(b);if(b==null)b=0;else{var c=b.descendantCount;b=c===0?0:(c-b.openDescendantCount)/c}return b},hl)},xya=function(a,b){var c=nm(a),d;a=[(d=a.aggregatedData)==
null?void 0:d.lastModifier,c==null?void 0:c.reporterUser,c==null?void 0:c.assigneeUser,c==null?void 0:c.verifierUser].concat(p(b.map(function(e){return e.userPerformingActionUser})));return ik(a.filter(Tk),Dk)},yya=function(a,b){b=xya(a,b);var c,d,e;a=(e=(c=nm(a))==null?void 0:(d=c.ccUsers)==null?void 0:d.length)!=null?e:0;return b.length+a},rm=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},zya=function(a){var b;
return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com"},sm=function(a){if(!zya(a))return!1;var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=9},Aya=function(a){return function(b){var c,d;return((d=b==null?void 0:(c=b.snapshot[0])==null?void 0:c.customField)!=null?d:[]).find(function(e){return e.customFieldId===a})}},Cya=function(a,b,c){b=Bya.get(c)||new Set(c.map(function(e){return e.issueId}));
Bya.set(c,b);var d;a=l((d=a.parentIssueIds)!=null?d:[]);for(d=a.next();!d.done;d=a.next())if(b.has(d.value))return!1;return!0},Eya=function(a,b){Dya.get(b)||Dya.set(b,[b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.oneDayViewCount)!=null?h:0}),b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?h:0}),b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=
null?h:0})]);var c=l(Dya.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return aj(b[a],b)||aj(d[a],d)||aj(c[a],c)},Fya=function(a){if(a)return{issueId:a.issueId,version:a.version,snapshot:a.snapshot,userData:a.userData,aggregatedData:a.aggregatedData,accessLimit:a.accessLimit,customFields:a.customFields,visibleFields:a.visibleFields,majorModifiedTimeMicros:a.majorModifiedTimeMicros,parentIssueIds:a.parentIssueIds,descendantCount:a.descendantCount,openDescendantCount:a.openDescendantCount,
isArchived:a.isArchived,trackerId:a.trackerId,userActivityStats:a.userActivityStats,experimentalFields:a.experimentalFields,escalationOwner:a.escalationOwner}},Gya=function(a,b){if(a&&b)return{issueId:a.issueId,version:a.version,snapshot:a.snapshot,userData:a.userData,aggregatedData:a.aggregatedData,accessLimit:a.accessLimit,customFields:a.customFields,visibleFields:a.visibleFields,majorModifiedTimeMicros:a.majorModifiedTimeMicros,parentIssueIds:a.parentIssueIds,descendantCount:a.descendantCount,
openDescendantCount:a.openDescendantCount,isArchived:a.isArchived,trackerId:a.trackerId,userActivityStats:a.userActivityStats,experimentalFields:a.experimentalFields,escalationOwner:a.escalationOwner,ancestors:b.ancestors,childIssueCount:b.childIssueCount,relatedLinks:b.relatedLinks,statusUpdate:b.statusUpdate,description:b.description}},Hya=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.snapshot[0].componentId;var d=void 0,e=(d=b.get(c))!=null?d:0;b.set(c,e+1);
if(!f||b.get(f)<b.get(c))var f=c}return f},Iya=function(a){var b=Dua(a,function(e){return e.issueId});a=[];b=l(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a.push(c+": "+d.map(function(e){return e.message}).join(", "))}return a.join("\n")},tm=function(a){if(!a)return"NEW";var b,c,d=(c=(b=a.experimentalFields)==null?void 0:b.triage.phase)!=null?c:"UNSPECIFIED",e;b=(e=a.snapshot[0])==null?void 0:e.status;if(pm(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";
if(pm(a)&&d==="CONFIRMED")return"CONFIRMED";if(pm(a)&&d==="IN_PROGRESS")return"IN_PROGRESS";if(d==="FIXED"||b==="FIXED"||b==="VERIFIED")return"FIXED";if(d==="WONT_FIX"||b==="NOT_REPRODUCIBLE"||b==="INTENDED_BEHAVIOR"||b==="OBSOLETE"||b==="INFEASIBLE")return"WONT_FIX";if(b!=="DUPLICATE")return"NEW"},um=function(a){if(a){var b=tm(a),c,d,e=((c=a.experimentalFields)==null?void 0:c.triage.subphase)!=="TRIAGE_SUBPHASE_UNSPECIFIED"?(d=a.experimentalFields)==null?void 0:d.triage.subphase:void 0,f;if(((f=
a.snapshot[0])==null?void 0:f.status)!=="DUPLICATE"){if(b==="NEW"||b==="UNSPECIFIED")return e==="REPORTER_RESPONDED"?"REPORTER_RESPONDED":e==="NEEDS_INFO"?"NEEDS_INFO":"PENDING_TRIAGE";if(b==="CONFIRMED"||b==="IN_PROGRESS")return e;if(b==="FIXED"||b==="WONT_FIX")return pm(a)?"REOPENED":e;throw Error("dc");}}},Jya=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,total:a.descendantCount}},Kya=function(a,b){if(a==null)return 0;var c=0;a=l(a.aggregatedStatus);
for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.issueIds===void 0?[]:d.issueIds;d.status===b&&(c+=e.length)}return c},Lya=function(a){var b,c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},Mya=function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},Nya=function(a){if(a==null)return[];a=[].concat(p(a.assignees.map(function(b){return b.emailAddress})),p(a.collaborators.map(function(b){return b.emailAddress})),p(a.verifiers.map(function(b){return b.emailAddress})),
p(a.reporters.map(function(b){return b.emailAddress}))).filter(Tk);return Uua(a)},Oya=function(a,b){var c;a=(c=a.componentPathInfo)==null?void 0:c.allCustomField;if(!a)return!0;c=l(a);var d=c.next();for(a={};!d.done;a={customField:void 0},d=c.next())if(a.customField=d.value,a.customField.required){d=!!a.customField.typedDefaultValue;var e=void 0,f=void 0,h=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(q){return q.customFieldId===k.customField.customFieldId}}(a));
if(!d&&!h)return!1}return!0},Pya=function(a){var b=a.map(function(c){return c.detailedUserType});return b.includes("PUBLIC")?3:b.includes("EXTERNAL")?0:b.includes("TVC")?4:a.map(function(c){return c.principalType}).includes("GROUP")?1:b.includes("UNRESTRICTED_GOOGLER")?5:2},Qya=function(a,b){switch(a){case 3:return"public user";case 0:return"external partner";case 4:return"restricted user (TVC)";case 5:return"user";default:return b?"user":"unknown user"}},Rya=function(a){var b=a.userPrincipals;var c=
a.newEditors;var d=a.newImplicitUsers;var e=a.isExternalSession;var f=a.issueId;a=a.actionIssueId;b=Pya(b);return{title:"Allow "+(b===1?"members of the group to ":Qya(b,e)+" to ")+(c.length===0?"comment?":"edit?"),content:"Adding "+d.join(", ")+" will allow "+(b===1?"all members of the group":"them")+" to "+(c.length===0?"comment on ":"edit ")+(f===a?"issue "+a:"canonical issue "+a)+"."}},Sya=function(a){a=a?a.taskResourceType==="DRIVE"?a.driveResource.fileType:a.taskResourceType:void 0;switch(a){case "DOCUMENT":return"drive-doc";
case "PRESENTATION":return"drive-slide";case "SPREADSHEET":return"drive-sheet";case "CHANGELIST":return"critique-logo";case "GERRIT":return"gerrit-logo";case "GOOGLE_TASKS":return"google-tasks-logo";case "IRM":return"irm-logo";case "ISSUE":return"bug_report_24px";case "LAUNCH":return"launch-logo";default:return"link"}},Uya=function(a,b){return b.length?a.filter(function(c){return[].concat(p(b)).some(function(d){return Tya(c,d)})}):a},Vya=function(a,b){return b.length?a.filter(function(c){return[].concat(p(b)).every(function(d){return d.check(c)})}):
a},Tya=function(a,b){var c,d;return!((c=a.experimentalFields)==null?0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},ym=function(a){switch(vm(a,wm)){case 0:throw Error("ec");case 1:return{user:Pk(a.getUser())};case 2:return{group:Pk(a.getGroup())};case 3:return{alias:xm(a,3,wm)};default:throw Error("fc");}},Bm=function(a){var b=new zm;lua(a)&&b.setUser(Ok(a.user));a.group!==void 0&&b.setGroup(Ok(a.group));a.alias!==void 0&&Am(b,3,wm,a.alias);return b},Wya=function(a){var b=new Cm;switch(a){case "ACCESS_LEVEL_UNSPECIFIED":b.setAccessLevel(0);
break;case "LIMIT_NONE":b.setAccessLevel(1);break;case "LIMIT_VIEW":b.setAccessLevel(2);break;case "LIMIT_APPEND":b.setAccessLevel(3);break;case "LIMIT_VIEW_TRUSTED":b.setAccessLevel(4);break;default:throw Error("ic");}return b},Xya=function(a){switch(a.getAccessLevel()){case 0:return"ACCESS_LEVEL_UNSPECIFIED";case 1:return"LIMIT_NONE";case 2:return"LIMIT_VIEW";case 3:return"LIMIT_APPEND";case 4:return"LIMIT_VIEW_TRUSTED";default:throw Error("ic");}},Zya=function(a){if(a)return{accessLevel:Yya[a.getAccessLevel()]}},
aza=function(a){return(new Dm).setAccessLevel($ya[a.accessLevel])},dza=function(a){if(a)return(a=X(a,bza,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:cza(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},a},cza=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("jc`"+a);}},eza=function(a){switch(a){case "RESTRICTION_SEVERITY_UNSPECIFIED":case "NONE_DETECTED":return 1;case "RESTRICTED":return 2;
case "RESTRICTED_PLUS":return 3;default:throw Error("jc`"+a);}},fza=function(a){var b=new Em;b=Fm(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=eza(a.severity);b=Nk(b,3,c);b=Lk(b,4,a.judgementReason);a.judge&&(a=Ok(a.judge),W(b,Kk,9,a));return b},gza=function(a){return{contentJudgementId:Sh(Dl(a,1))?String(Dl(a,1)):void 0,resourcePath:a.getResourcePath()||void 0,severity:cza(a.getRestrictionSeverity()),judgementReason:Oh(a,4),judge:Pk(X(a,Kk,9))}},hza=function(a){var b=new Em;var c=
eza(a.severity);b=Nk(b,3,c);return Lk(b,4,a.judgementReason)},jza=function(a){if(a){a:{var b=a.getStatus();switch(b){case 0:b="ACTIVE";break a;case 1:b="DELETED";break a;case 2:b="PURGED";break a;default:throw Error("kc`"+b);}}return{status:b,reason:iza(a.getReason())}}},iza=function(a){switch(a){case 0:return"UNSPECIFIED";case 1:return"USER_REQUEST";case 2:return"ABUSE";case 3:return"RESTRICTED";case 4:return"RETENTION";case 5:return"ACCOUNT_CAPABILITIES";default:throw Error("lc`"+a);}},kza=function(a){switch(a){case "DELETION_REASON_UNSPECIFIED":return"UNSPECIFIED";
case "USER_REQUEST":return"USER_REQUEST";case "ABUSE":return"ABUSE";case "RESTRICTED":return"RESTRICTED";case "RETENTION":return"RETENTION";case "ACCOUNT_CAPABILITIES":return"ACCOUNT_CAPABILITIES";default:throw Error("lc`"+a);}},lza=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=Rva(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=al(X(a,bl,2)))!=null?c:null}}},nza=function(a){return{retentionSelection:mza[pl(a,1)],retentionPeriodDays:Ik(a,2),piiRetentionSelection:mza[pl(a,
3)],piiRetentionPeriodDays:Ik(a,4),spiiRetentionPeriodDays:Ik(a,5)}},pza=function(a){var b=new Gm;b=Nk(b,1,oza[a.retentionSelection]);b=$k(b,2,a.retentionPeriodDays);b=Nk(b,3,oza[a.piiRetentionSelection]);b=$k(b,4,a.piiRetentionPeriodDays);return $k(b,5,a.spiiRetentionPeriodDays)},qza=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:throw Error("mc`"+a);}},rza=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;
case "INDEFINITE":return 2;default:throw Error("mc`"+a);}},tza=function(a){var b=Qk(a.getAttachmentId_asLegacyNumberOrString());var c=a.getFilename();var d=zl(a,3)||void 0,e=Oh(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:Oh(a,2),filename:a.getFilename(),length:zl(a,3),etag:sza(a.getEtag())||"",contentVerdict:dza(a.getContentVerdict()),entityStatus:jza(a.getEntityStatus()),piiRetentionState:lza(a.getRestrictedRetentionState()),piiRetention:qza(a.getRestrictedRetention())}},
vza=function(a){var b=new Hm;var c=new uza;a=a?new qb(a,rb):pb();c=Im(c,2,a);b=W(b,uza,5,c);c=b.setEntityStatus;a=new Jm;a=a.setStatus.call(a,0).setReason(0);return c.call(b,a)},wza=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},yza=function(a){if(a!=null)return{customFieldId:Sk(Qk(a.getCustomFieldId_asLegacyNumberOrString())),standardField:xza[pl(a,Km(a,Lm,2))]}},Aza=function(a){var b=new Mm;a.customFieldId?b.setCustomFieldId(a.customFieldId):
a.standardField&&Nm(b,2,Lm,Gca(zza[a.standardField]));return b},Bza=function(a){if(a){var b=Qk(a.getCustomFieldId_asLegacyNumberOrString());if(b==null)Nj("No customFieldId. customFieldValueToJs");else{b={customFieldId:b,displayValues:Wk(a,$l,11,Fk()).map(function(H){return ei(qxa(H)).toString()})};switch(a.getValueCase()){case 2:b.textValue=Sk(xm(a,2,Om));break;case 3:b.dateValue=Ova(a.getDateValue());break;case 4:b.enumValue=Sk(xm(a,4,Om));break;case 5:b.numericValue=Sk(Pm(a,Km(a,Om,5)));break;case 6:var c,
d;b.repeatedTextValue={values:(d=(c=Qm(a,Rm,6,Om))==null?void 0:c.getValuesList(Gk))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=Qm(a,Rm,8,Om))==null?void 0:e.getValuesList(Gk))!=null?f:[]};break;case 9:var h,k;b.repeatedNumericValue={values:(k=(h=Qm(a,Sm,9,Om))==null?void 0:h.getValuesList(Gk))!=null?k:[]};break;case 7:var q,u,A,G;b.repeatedDateValue={values:(G=(q=Qm(a,Tm,7,Om))==null?void 0:(u=q.getValuesList())==null?void 0:(A=u.map(Ova))==null?void 0:A.filter(Tk))!=null?
G:[]}}return b}}},Cza=function(a){var b=(new Um).setCustomFieldId(a.customFieldId);a.textValue!=null?Am(b,2,Om,a.textValue):a.dateValue!=null?(a=Pva(a.dateValue),Vm(b,3,Om,a)):a.enumValue!=null?Am(b,4,Om,a.enumValue):a.numericValue!=null?Nm(b,5,Om,Hb(a.numericValue)):a.repeatedTextValue!=null?(a=(new Rm).setValuesList(a.repeatedTextValue.values),Vm(b,6,Om,a)):a.repeatedEnumValue!=null?(a=(new Rm).setValuesList(a.repeatedEnumValue.values),Vm(b,8,Om,a)):a.repeatedNumericValue!=null?(a=(new Sm).setValuesList(a.repeatedNumericValue.values),
Vm(b,9,Om,a)):a.repeatedDateValue!=null&&(a=(new Tm).setValuesList(a.repeatedDateValue.values.map(Pva)),Vm(b,7,Om,a));return b},Fza=function(a){var b=a.getCustomFieldId_asLegacyNumberOrString(),c=Dza[a.getType()],d=!!kl(a,4),e=a.getName(),f=a.getDescription()||"",h=Bza(X(a,Um,10));var k=Ek(a,8,Fk(Gk));b={customFieldId:b,type:c,required:d,name:e,description:f,typedDefaultValue:h,allowedValue:k,fieldSignificance:Eza[pl(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};a.getComponentId_asLegacyNumberOrString()&&
(b.componentId=Qk(a.getComponentId_asLegacyNumberOrString()));return b},Gza=function(a){return Fza(a)},Jza=function(a){var b=new Wm;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(Hza[a.type]);Xm(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=Cza(a.typedDefaultValue);W(b,Um,10,c)}a.allowedValue&&Mk(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(Iza[a.fieldSignificance]);
b.setShared(a.shared);return b},Kza=function(a){return{specId:zl(a,1),estimate:Oh(a,2),averageDays:Pm(a,3),totalOpen:Pm(a,4),totalComplete:Pm(a,5)}},Rza=function(a){var b=new Ym;a.inherit&&b.setInherit(a.inherit);a.id&&b.setId(a.id);a.name&&b.setName(a.name);a.customFieldId&&b.setCustomFieldId(a.customFieldId);a.numericSpec&&Lza(b,Mza(new Nza,a.numericSpec.multiplier));if(a.enumSpec){var c;Oza(b,Pza(new Qza,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new Zm).setLabel(d.label).setValue(d.value)})))}if(a.aggregationType){a:switch(a.aggregationType){case "MAX":a=
2;break a;case "SUM":a=1;break a;default:a=0}Nk(b,6,a)}return b},Vza=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=dza(c));c=void 0;var d=a.getFormattedComment();d&&(c=$m(d));d=void 0;var e=X(a,Kk,3);e&&(d=Pk(e));e=void 0;var f=a.getEtag();f&&(e=sza(f));f=void 0;var h=a.getEntityStatus();h&&(f=jza(h));h=void 0;var k=a.getRestrictedRetentionState();k&&(h=lza(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:Sza(a.getFormattingMode()),
formattedComment:c,lastEditorUser:d,lastModified:fl(a.getModifiedTime()),version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:h,piiRetention:qza(a.getRestrictedRetention()),redacted:kl(a,13),etag:e,commentReactions:Tza(X(a,Uza,17))}},$m=function(a){if(an(a,Wza,1,bn)){var b=Qm(a,Wza,1,bn);var c;b={plainSection:((c=Wk(b,cn,1,Fk()))!=null?c:[]).map(Xza)}}else b=void 0;return{plainFormat:b,markdownFormat:an(a,dn,2,bn)?{content:qxa(Qm(a,dn,2,bn).getContent())}:void 0,
literalFormat:an(a,en,3,bn)?{content:qxa(Qm(a,en,3,bn).getContent())}:void 0}},Xza=function(a){return{isQuoted:kl(a,1),content:qxa(a.getContent())}},Yza=function(a){var b=new cn;return Xm(b,1,a.isQuoted).setContent(pxa(a.content))},Sza=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";default:throw Error("nc`"+a);}},fn=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;case "LITERAL":return 3;case void 0:case null:case "UNSPECIFIED_FORMATTING_MODE":return 1;
default:throw Error("nc`"+a);}},Tza=function(a){var b,c;a==null?c=void 0:c=Wk(a,gn,2,Fk());a=(b=c)!=null?b:[];b=new Map;a=l(a);for(c=a.next();!c.done;c=a.next()){c=c.value;a:{var d=c.getType();switch(d){case 0:d="REACTION_TYPE_UNSPECIFIED";break a;case 1:d="UPVOTE";break a;default:throw Error("oc`"+d);}}var e=void 0,f=void 0,h=void 0,k=void 0,q=(f=kl(c,1))!=null?f:!1;f=(h=Sh(c.getCount()))!=null?h:0;c=Wk(c,Kk,3,Fk());c={type:d,hasReacted:q,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(Pk).filter(Tk))!=
null?k:[]};b.set(d,c)}return b},Zza=function(a){return a.map(function(b){return X(b,Kk,1)}).filter(Tk).map(Pk).map(function(b){return{mentionedUser:b}})},$za=function(a){switch(a){case 1:return"BUG";case 3:return"CUSTOMER_ISSUE";case 2:return"FEATURE_REQUEST";case 4:return"INTERNAL_CLEANUP";case 5:return"PROCESS";case 6:return"VULNERABILITY";case 7:return"PRIVACY_ISSUE";case 10:return"PROJECT";case 11:return"FEATURE";case 12:return"MILESTONE";case 13:return"EPIC";case 14:return"STORY";case 15:return"TASK";
case 8:return"TYPE_UNSPECIFIED";case 9:return"PROGRAM";case 0:return"TYPE_UNSPECIFIED";default:return"TYPE_UNSPECIFIED"}},aAa=function(a){switch(a){case "BUG":return 1;case "CUSTOMER_ISSUE":return 3;case "FEATURE_REQUEST":return 2;case "INTERNAL_CLEANUP":return 4;case "PROCESS":return 5;case "VULNERABILITY":return 6;case "PRIVACY_ISSUE":return 7;case "PROJECT":return 10;case "FEATURE":return 11;case "MILESTONE":return 12;case "EPIC":return 13;case "STORY":return 14;case "TASK":return 15;case "PROGRAM":return 9;
case "TYPE_UNSPECIFIED":return 0;default:return 0}},bAa=function(a){a=Ek(a,1,Fk(Gk));return{paths:a!=null?a:[]}},dAa=function(a){return{startTime:al(a.getStartTime()),targetTime:al(X(a,bl,3)),endTime:al(a.getEndTime()),objective:Rva(a.getObjective()),businessDays:a.getBusinessDays(),dayType:cAa[a.getDayType()]}},fAa=function(a){var b=new hn;a.startTime&&b.setStartTime(cl(a.startTime));if(a.targetTime){var c=cl(a.targetTime);W(b,bl,3,c)}a.endTime&&b.setEndTime(cl(a.endTime));a.objective&&b.setObjective(Qva(a.objective));
a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(eAa[a.dayType]);return b},hAa=function(a){var b=(new jn).setInherit(a.inherit).setSource(gAa[a.source]).setId(kn(a.id)).setComment(a.comment);return Fm(b,6,kn(a.sourceComponentId)).setSourceTeamId(kn(a.sourceTeamId))},jAa=function(a){return{author:Pk(a.getAuthor()),timestamp:al(a.getTimestamp()),add:iAa(a.getAdd()),remove:iAa(a.getRemove()),addMask:bAa(a.getAddMask()),removeMask:bAa(a.getRemoveMask())}},iAa=function(a){var b=
String(a.getSloId()),c=a.getName(),d=a.getDescription(),e=String(a.getParentId());var f=Wk(a,ln,5,Fk());f=(f!=null?f:[]).map(kAa);var h=Wk(a,ln,6,Fk());h=(h!=null?h:[]).map(kAa);var k=a.getIsArchived();a:switch(a=pl(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";break a;default:throw Error("pc`"+a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:h,isArchived:k,alertState:a}},kAa=function(a){var b=lAa(a.getMetric()),c=a.getMatcher();a:{var d=a.getDayType();
switch(d){case 0:d="CALENDAR";break a;case 1:d="CALENDAR";break a;case 2:d="BUSINESS";break a;default:throw Error("rc`"+d);}}return{metric:b,matcher:c,dayType:d,objective:Rva(a.getObjective()),businessDays:a.getBusinessDays()}},lAa=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";case 1:return"ASSIGNMENT";case 2:return"RESPONSE";case 3:return"CLOSURE";default:throw Error("qc`"+a);}},nAa=function(a){var b=new ln,c=mAa(a.metric);b=Nk(b,1,c).setMatcher(a.matcher);c=b.setDayType;a:{var d=a.dayType;
switch(d){case "DAY_TYPE_UNSPECIFIED":d=0;break a;case "CALENDAR":d=1;break a;case "BUSINESS":d=2;break a;default:throw Error("rc`"+d);}}return c.call(b,d).setObjective(Qva(a.objective)).setBusinessDays(a.businessDays)},mAa=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;case "RESPONSE":return 2;case "CLOSURE":return 3;default:throw Error("sc`"+a);}},oAa=function(a){switch(a){case "SWE":return 1;case "SRE":return 2;case "PM":return 3;case "TPGM":return 4;case "UX":return 5;
default:return 0}},pAa=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;default:return 4}},sAa=function(a){var b=new mn;if(a.user){var c=b.setUser;var d=a.user;d=(new nn).setUser(Ok(d.user));c=c.call(b,d);a=a.allocation;d=new qAa;d=Nm(d,1,rAa,Gca(pAa(a.involvement)));a=on(d,3,a.aggregationValue);W(c,qAa,3,a)}else a.placeholder&&(c=a.placeholder,c=(new pn).setRole(oAa(c.role)).setCount(c.count),Vm(b,2,qn,c));return b},tAa=function(a){var b=new rn;a=a.plannedAllocations.map(sAa);
return sn(b,1,a)},uAa=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},vAa=function(a){switch(a){case 1:return"SWE";case 2:return"SRE";case 3:return"PM";case 4:return"TPGM";case 5:return"UX";default:return"JOB_ROLE_UNSPECIFIED"}},wAa=function(a){if(a.hasUser()){var b={user:Pk(a.getUser().getUser())};a=X(a,qAa,3);a={involvement:uAa(pl(a,Km(a,rAa,1))),aggregationValue:Pm(a,3)};b={user:b,allocation:a}}else an(a,pn,2,qn)?(b=a.getPlaceholder(),b=
{placeholder:{role:vAa(b.getRole()),count:b.getCount()}}):b={};return b},xAa=function(a){return{issueId:String(a.getIssueId()),updateText:Oh(a,2),formattedText:nk(a,tn,3)?$m(X(a,tn,3)):void 0,formattingMode:a.getFormattingMode()?Sza(a.getFormattingMode()):void 0,author:a.hasAuthor()?Pk(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?Sk(al(a.getUpdateTime())):void 0,version:a.getVersion()}},yAa=function(a){var b=(new un).setFormattingMode(fn(a.formattingMode));a.issueId&&b.setIssueId(a.issueId);
a.updateText&&Lk(b,2,a.updateText);if(a.formattedText){var c=a.formattedText,d=new tn;if(c.plainFormat){var e=c.plainFormat;var f=new Wza;e=e.plainSection.map(Yza);f=sn(f,1,e);Vm(d,1,bn,f)}c.markdownFormat&&(f=c.markdownFormat,f=(new dn).setContent(pxa(f.content)),Vm(d,2,bn,f));c.literalFormat&&(c=c.literalFormat,c=(new en).setContent(pxa(c.content)),Vm(d,3,bn,c));W(b,tn,3,d)}a.author&&b.setAuthor(Ok(a.author));a.updateTime&&b.setUpdateTime(cl(a.updateTime));a.version&&b.setVersion(a.version);return b},
EAa=function(a){var b=a.getAccessLimit(),c=zAa[pl(a,30)],d,e,f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na=a.getComponentId_asLegacyNumberOrString(),Qa=a.getType()?$za(a.getType()):null,gb=a.getStatus()?vn[a.getStatus()]:null,va=a.getPriority()?wn[a.getPriority()]:null,Ja=a.getSeverity()?AAa[a.getSeverity()]:null,La=a.getTitle(),Lb=a.getReporter()?Pk(a.getReporter()):null,Eb=a.getAssignee()?Pk(a.getAssignee()):null,jc=a.getVerifier()?Pk(a.getVerifier()):null,nc=(u=(d=a.getCcsList())==null?void 0:d.map(Pk))!=
null?u:[];d=(A=(e=a.getCollaboratorsList())==null?void 0:e.map(Pk))!=null?A:[];e=a.getStaffing()?{plannedAllocations:Wk(a.getStaffing(),mn,1,Fk()).map(wAa)}:null;A=a.getCanonicalIssueId_asLegacyNumberOrString()?String(a.getCanonicalIssueId_asLegacyNumberOrString()):null;u=(G=(f=a.getBlockedByIssueIdsList_asLegacyNumberOrString())==null?void 0:f.map(String))!=null?G:[];f=(H=(h=a.getBlockingIssueIdsList_asLegacyNumberOrString())==null?void 0:h.map(String))!=null?H:[];h=(N=a.getHotlistIdsList_asLegacyNumberOrString(Gk))!=
null?N:[];N=(O=(k=a.getCustomFieldsList())==null?void 0:k.map(Bza).filter(Tk))!=null?O:[];k=(U=a.getCodeChangesList(Gk))!=null?U:[];U=(da=a.getGerritChangesList().map(BAa))!=null?da:[];da=Ek(a,17,Fk(Gk));da=da!=null?da:[];O=Ek(a,18,Fk(Gk));O=O!=null?O:[];H=Ek(a,19,Fk(Gk));H=H!=null?H:[];G=a.getInProd();var Jc=a.getIsArchived(),ec=(ma=(q=a.getDuplicateIssueIdsList_asLegacyNumberOrString())==null?void 0:q.map(String))!=null?ma:[];q=a.getIsDeleted();ma=CAa[pl(a,24)];var ye=(ra=al(a.getSloSnoozeUntil()))!=
null?ra:null;ra=(Ga=al(a.getSloEndTime()))!=null?Ga:null;Ga=Ek(a,27,Fk(Gk));return{componentId:Na,type:Qa,status:gb,priority:va,severity:Ja,title:La,reporterUser:Lb,assigneeUser:Eb,verifierUser:jc,ccUsers:nc,collaboratorsUsers:d,staffing:e,duplicateOfIssueId:A,blockedByIssueId:u,blockingIssueId:f,hotlistId:h,customField:N,changelist:k,gerritChanges:U,foundInVersion:da,targetedToVersion:O,verifiedInVersion:H,inProd:G,isArchived:Jc,duplicateIssueId:ec,isDeleted:q,deletionReason:ma,sloStartTime:ye,sloEndTime:ra,
sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,postmortems:Ga!=null?Ga:[],retention:DAa[a.getRetention()],effort:a.hasEffort()?Kza(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?Xya(b):null,comment:"",formattingMode:void 0}},LAa=function(a){var b=new xn;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=null&&b.setType(aAa(a.type));a.inProd!=null&&b.setInProd(a.inProd);a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(FAa[a.status]);
a.priority!=null&&b.setPriority(GAa[a.priority]);a.severity!=null&&b.setSeverity(HAa[a.severity]);a.reporterUser&&b.setReporter(Ok(a.reporterUser));a.assigneeUser&&b.setAssignee(Ok(a.assigneeUser));a.verifierUser&&b.setVerifier(Ok(a.verifierUser));a.ccUsers&&b.setCcsList(a.ccUsers.map(Ok));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(Ok));a.staffing&&b.setStaffing(tAa(a.staffing));a.duplicateOfIssueId&&b.setCanonicalIssueId(Number(a.duplicateOfIssueId));a.blockedByIssueId&&
b.setBlockedByIssueIdsList(a.blockedByIssueId.map(Number));a.blockingIssueId&&b.setBlockingIssueIdsList(a.blockingIssueId.map(Number));a.hotlistId&&b.setHotlistIdsList(a.hotlistId);a.customField&&b.setCustomFieldsList(a.customField.map(Cza));a.changelist&&b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(IAa));a.foundInVersion&&Mk(b,17,a.foundInVersion);a.targetedToVersion&&Mk(b,18,a.targetedToVersion);a.verifiedInVersion&&Mk(b,19,a.verifiedInVersion);
a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(JAa[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(cl(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(cl(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(KAa[a.sloSnoozeType]);a.retention!=null&&b.setRetention(rza(a.retention));if(a.effort){var c=b.setEffort,d=a.effort,e=new yn;d.specId&&Fm(e,1,d.specId);d.estimate&&
Lk(e,2,d.estimate);d.averageDays&&on(e,3,d.averageDays);d.totalOpen&&on(e,4,d.totalOpen);d.totalComplete&&on(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit(Wya(a.issueAccessLimitLevel));return b},BAa=function(a){return{host:Oh(a,1),repo:Oh(a,2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:MAa[a.getState()]}},IAa=function(a){var b=new zn;b=Lk(b,1,a.host);return Lk(b,2,a.repo).setChangeNumber(a.changeNumber).setState(NAa[a.state])},RAa=function(a){switch(vm(a,
OAa)){case 2:var b=Qm(a,PAa,2,OAa);return b.getCommentNumber()!==0?{type:"issueReference",issueId:String(b.getIssueId_asLegacyNumberOrString()),commentNumber:b.getCommentNumber(),sourceCommentNumber:Ik(a,3)}:{type:"issueReference",issueId:String(b.getIssueId_asLegacyNumberOrString()),sourceCommentNumber:Ik(a,3)};case 1:return{type:"hyperlink",href:Oh(Qm(a,QAa,1,OAa),1),sourceCommentNumber:Ik(a,3)};case 0:throw Error("tc");default:throw Error("uc");}},An=function(a){var b=a.getIssueState()?[EAa(a.getIssueState())]:
[],c,d,e=String(a.getIssueId_asLegacyNumberOrString()),f=a.getVersion(),h;if(h=a.getUserData()){var k=kl(h,2);k=k==null?null:k;var q=kl(h,1);h={voted:k,starred:q==null?null:q,notificationSubscription:SAa[pl(h,4)],lastViewedTimeMicros:fl(X(h,bl,5))}}else h=void 0;if(a){q=void 0;a.hasSloStatus()&&(k=a.getSloStatus(),q={assignmentBounds:(k==null?0:nk(k,hn,1))?dAa(X(k,hn,1)):void 0,responseBounds:(k==null?0:nk(k,hn,2))?dAa(X(k,hn,2)):void 0,closureBounds:(k==null?0:nk(k,hn,3))?dAa(X(k,hn,3)):void 0});
var u;k={voteCount:(u=zl(a,10))!=null?u:0,createdTimeMicros:fl(a.getCreatedTime()),resolvedTimeMicros:fl(a.getResolvedTime()),verifiedTimeMicros:fl(a.getVerifiedTime()),modifiedTimeMicros:fl(a.getModifiedTime()),lastModifier:Pk(X(a,Kk,14)),sloId:Qk(a.getSloId_asLegacyNumberOrString()),teamId:Qk(a.getTeamId_asLegacyNumberOrString()),retentionState:lza(a.getRetentionState()),sloStatus:q}}else k=void 0;u=Zya(a.getAccessLimit());q=a.getCustomFieldsList().map(Fza);var A=Wk(a,Mm,34,Fk()).map(yza).filter(Tk),
G=fl(a.getMajorModifiedTime()),H=a.getParentIssueIdsList_asLegacyNumberOrString().map(String),N=(c=a.getDescendantIssueCount())!=null?c:0;c=(d=a.getOpenDescendantIssueCount())!=null?d:0;d=a.getIsArchived();var O=Eva(String(a.getTrackerId_asLegacyNumberOrString())),U;if(U=X(a,TAa,47))U=X(a,TAa,47),U={oneDayViewCount:zl(U,1),sevenDayViewCount:zl(U,2),thirtyDayViewCount:zl(U,3)};return{issueId:e,version:f,snapshot:b,userData:h,aggregatedData:k,accessLimit:u,customFields:q,visibleFields:A,majorModifiedTimeMicros:G,
parentIssueIds:H,descendantCount:N,openDescendantCount:c,isArchived:d,trackerId:O,userActivityStats:U,escalationOwner:a.getEscalationOwner()?Pk(a.getEscalationOwner()):void 0}},VAa=function(a){for(var b=new Map,c=l(a.getAncestorsMap().entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.set(String(d),{sourceIssueIds:e.getSourceIssueIdsList_asLegacyNumberOrString().map(String)})}c=An(a);d=Object;e=d.assign;var f=a.hasDescription()?Vza(a.getDescription()):void 0,
h=a.getChildIssueCount();var k=Wk(a,UAa,41,Fk());return e.call(d,{},c,{description:f,ancestors:b,childIssueCount:h,relatedLinks:k.map(RAa),statusUpdate:a.hasStatusUpdate()?xAa(a.getStatusUpdate()):void 0})},WAa=function(a){if(a)return{status:vn[a.getStatus()],issueIds:a.getIssueIdsList_asLegacyNumberOrString().map(Rk).filter(Tk)}},XAa=function(a){if(a)return{priority:wn[a.getPriority()],issueIds:a.getIssueIdsList_asLegacyNumberOrString().map(Rk).filter(Tk)}},YAa=function(){},ZAa=function(a){return Object.values(a).length>
0},$Aa=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},aBa=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},bBa=function(a,b){var c=a.getValue(),d={};c=l(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},cBa=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(p(a)).sort());return JSON.stringify(b)},
dBa=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},eBa=function(a){a=a===void 0?{}:a;return aua(a)},fBa=function(a){var b=new bg,c=a.subscribe(b);a=Ge(b);a.finally(function(){c.unsubscribe()});return a},gBa=function(a){return a==null?new Promise(function(){}):Promise.resolve(a)},hBa=function(){return new Promise(function(){})},iBa=function(a){switch(a){case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;case "NONE_DETECTED":return 1;case "RESTRICTION_SEVERITY_UNSPECIFIED":return 0;
default:return Gb(a,"Unexpected pii severity")}},Bn=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},jBa=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},kBa=function(a){return gza(a.getIt())},Cn=function(a){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,
"+")},lBa=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},oBa=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:Pk(a.getAuthor()),timestamp:al(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=Qm(a,mBa,3,nBa);b.general={content:a.getContent(),formattedContent:$m(a.getFormattedContent())};break;case 4:a=Qm(a,Dn,4,nBa);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary=
{content:a.getContent(),formattedContent:$m(a.getFormattedContent())};break;default:throw Error("Cc`"+c);}return b},pBa=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:$m(a.getFormattedContent()),author:Pk(a.getAuthor()),timestamp:al(a.getTimestamp()),contentVerdict:dza(a.getContentVerdict())};Oh(a,9)&&(b.customDisplayName=Oh(a,9));return b},sBa=function(a){var b=(new qBa).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(rBa[a.feedbackType]);
a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},uBa=function(a){return a.type==="CUSTOM_FIELD"?[tBa[Swa[a.type]],a.customFieldId].join(":"):tBa[Swa[a.type]]},wBa=function(a){return a.includes(":")?(a=l(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:kn(a)}):{type:nwa[vBa[a]]}},xBa=function(a){var b;a==null?a=void 0:(a=Ek(a,1,Fk()),a=a==null?void 0:a.map(wBa));return(b=a)!=null?b:[]},zBa=function(a){var b=l(a.trim().split(" ")),c=b.next().value;a=b.next().value;
yBa(b);b=wBa(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},BBa=function(a){return a.map(ABa).join(",")},ABa=function(a){return uBa(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},CBa=function(a){return BBa(a.toLowerCase().split(",").map(function(b){return b.replace(":asc"," asc")}).map(function(b){return b.replace(":desc"," desc")}).map(function(b){return b.replace("custom_field.","custom_field:")}).map(function(b){return b.replace("collaborator_count","collaborators_count").replace("verified_in_version",
"verified_in_versions").replace("targeted_to_version","targeted_to_versions").replace("found_in_version","found_in_versions")}).map(zBa))},DBa=function(a){var b,c,d,e,f,h=(new En).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(BBa((d=a.sortOrder)!=null?d:[]));d=h.setDisplayPreferences;var k=new Fn,q=(e=(b=a.displayColumn)==null?void 0:b.map(uBa))!=null?e:[];b=Mk(k,1,q);h=d.call(h,b).setCreatedTime(el(a.createdTimeMicros)).setModifiedTime(el(a.modifiedTimeMicros)).setOwnersList((f=
(c=a.adminUsers)==null?void 0:c.map(Ok))!=null?f:[]);a.etag!==void 0&&(c=h.setEtag,a=a.etag,a=a.length?new qb(oba(a,!0),rb):pb(),c.call(h,a));return h},EBa=function(a){if(!a.getHotlistId_asLegacyNumberOrString())throw Error("Dc");if(!a.getName())throw Error("Ec");if(!a.getCreatedTime())throw Error("Fc");if(!a.getModifiedTime())throw Error("Gc");var b,c,d,e;return{hotlistId:a.getHotlistId_asLegacyNumberOrString(),name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=
null?d:!1,createdTimeMicros:fl(a.getCreatedTime()),modifiedTimeMicros:fl(a.getModifiedTime()),displayColumn:xBa(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(zBa),etag:sza(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(Pk))!=null?e:[]}},FBa=function(a){return{issueId:String(a.getIssueId_asLegacyNumberOrString()),position:a.getPosition(),issue:An(a.getIssue())}},GBa=function(a){var b=Wk(a,Gn,1,Fk()).map(FBa),c=new Map(b.map(function(d){return[d.issueId,
d.position]}));return{issues:b.map(function(d){return d.issue}),numTotalResults:a.getTotalSize(),positionMap:Object.fromEntries(c),nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},HBa=function(a){var b;return{searchId:Number(a.getSavedSearchId()),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(zBa),displayColumn:xBa(a.getDisplayPreferences()),adminUsers:((b=
a.getOwnersList())!=null?b:[]).map(Pk)}},IBa=function(a){var b,c,d=(new Hn).setSavedSearchId(a.searchId).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(BBa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new Fn;e=e.map(uBa);c=Mk(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(Ok))},KBa=function(a){switch(vm(a,In)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?EBa(b.getHotlist()):void 0,d;b=(d=b==null?
void 0:b.getHotlistId_asLegacyNumberOrString())!=null?d:0;var e;return{hotlistId:b,hotlist:c,name:(e=c==null?void 0:c.name)!=null?e:"Hotlist "+b,resourceType:"HOTLIST"};case 2:return e=a.getSavedSearch(),d=(e==null?0:e.getSavedSearch())?HBa(e.getSavedSearch()):void 0,e=(c=e==null?void 0:e.getSavedSearchId_asLegacyNumberOrString())!=null?c:0,{savedSearchId:e,savedSearch:d,name:(b=d==null?void 0:d.name)!=null?b:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?
0:d.getBookmarkGroup())?JBa(d.getBookmarkGroup()):void 0;var f,h;return{bookmarkGroupId:(f=d==null?void 0:d.getBookmarkGroupId_asLegacyNumberOrString())!=null?f:0,bookmarkGroup:e,name:(h=e==null?void 0:e.name)!=null?h:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Hc");}},MBa=function(a){switch(a.resourceType){case "HOTLIST":var b=(new Jn).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist(DBa(a.hotlist));return(new Kn).setHotlist(b);case "SAVED_SEARCH":return b=(new Ln).setSavedSearchId(a.savedSearchId),
a.savedSearch&&b.setSavedSearch(IBa(a.savedSearch)),(new Kn).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new Mn).setBookmarkGroupId(a.bookmarkGroupId),a.bookmarkGroup&&b.setBookmarkGroup(LBa(a.bookmarkGroup)),(new Kn).setBookmarkGroup(b);default:Gb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},JBa=function(a){var b=a.getArchived(),c=a.getBookmarkGroupId_asLegacyNumberOrString(),d=a.getDescription();var e=Wk(a,Kn,5,Fk());return{archived:b,bookmarkGroupId:c,description:d,
item:e.map(KBa),name:a.getName(),adminUsers:a.getOwnersList().map(Pk)}},LBa=function(a){var b,c=(new Nn).setBookmarkGroupId(a.bookmarkGroupId).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(MBa))!=null?b:[];return sn(c,5,d).setOwnersList(a.adminUsers.map(Ok))},NBa=function(a){switch(a.resourceType){case "HOTLIST":return(new Kn).setHotlist((new Jn).setHotlistId(a.resourceId));case "SAVED_SEARCH":return(new Kn).setSavedSearch((new Ln).setSavedSearchId(a.resourceId));
case "BOOKMARK_GROUP":return(new Kn).setBookmarkGroup((new Mn).setBookmarkGroupId(a.resourceId));default:Gb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},OBa=function(a){a=JBa(a).item;a=Dua(a,function(k){return k.resourceType});var b,c,d,e,f,h;return{bookmarkGroups:(e=(b=a.get("BOOKMARK_GROUP"))==null?void 0:b.map(function(k){return k.bookmarkGroup}).filter(Tk))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(Tk))!=
null?f:[],savedSearches:(h=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(Tk))!=null?h:[]}},PBa=function(a){return JBa(a.getIt())},QBa=function(a){a=Wk(a,Nn,2,Fk());return(a!=null?a:[]).map(JBa)},RBa=function(a){a=Hc(a,1,Sb,Fk(Gk));return{changelistNumbers:a!=null?a:[]}},UBa=function(a){return{changelists:Wk(a,SBa,1,Fk()).map(TBa),nextPageToken:a.getNextPageToken()}},TBa=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:al(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=El(a,6))!=null?c:[]}},VBa=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=a.getTimestamp_asLegacyNumberOrString();a=Ek(a,5,Fk(Gk));return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},WBa=function(a){if(a)return Zya(a.getIt())},XBa=function(a){var b=Ek(a,1,Fk(Gk));a=Ek(a,2,Fk(Gk));return{noAccessEmails:b,unknownEmails:a}},YBa=
function(a){var b=a.getIt();a=Wk(b,zm,2,Fk()).map(ym);var c=b.getAppendersList().map(ym),d=Wk(b,zm,4,Fk()).map(ym),e=b.getReadersList().map(ym),f=Wk(b,zm,11,Fk()).map(ym),h=Wk(b,zm,12,Fk()).map(ym),k=Wk(b,zm,3,Fk()).map(ym),q=Wk(b,zm,7,Fk()).map(ym),u=Wk(b,zm,5,Fk()).map(ym),A=Wk(b,zm,9,Fk()).map(ym);a:switch(pl(b,10)){case 0:b="IMPLICIT_ACCESS_UNSPECIFIED";break a;case 1:b="ALLOW";break a;case 2:b="DENY";break a;default:throw Error("gc");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,
restrictedPlusReaders:h,inheritedAdmins:k,implicitAppenders:q,implicitEditors:u,implicitReaders:A,implicitAccess:b}},$Ba=function(a,b){b=b===void 0?document.documentElement:b;return Ne(Oe(function(){return Ce(b.querySelector(a))}),ZBa(b,{childList:!0,subtree:!0}).pipe(Ve(function(c){return c.some(function(d){return d.addedNodes.length>0})}),y(function(){return b.querySelector(a)}))).pipe(Ve(Tk),Uf(),y(function(c){return c}))},ZBa=function(a,b){return new pe(function(c){var d=new MutationObserver(function(e){c.next(e)});
d.observe(a,b);return function(){d.disconnect()}})},On=function(a,b){return function(c){if(c.target instanceof HTMLElement){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}}},aCa=function(a){a=a.target;for(var b=[];a.parentNode;){var c=void 0,d=a,e=[];for(c in d.dataset)d.dataset[c]==="true"&&e.push(c);c=e;b.unshift(a.tagName+(c.length>0?"["+c.join(",")+"]":""));a=a.parentNode}return b.join(" > ")},bCa=function(a){var b={};a=l(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=
l(c.value);c=d.next().value;d=d.next().value;d!=null&&(b[c]=String(d))}b=new URLSearchParams(b);return String(b)},Pn=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},Rn=function(a,b){switch(a){case "HOTLIST":return"hotlists/"+b;case "BOOKMARK_GROUP":return"bookmarkGroups/"+b;case "SAVED_SEARCH":return"savedSearches/"+b;case "COMPONENT":return"components/"+b;case "COMPONENT_SLO":return"components/"+b+"/slo";case "ISSUE":return Qn(b);case "ISSUE_DEFAULTS":return"components/"+
b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;case "TEAM_SLO":return"teams/"+b+"/slo";default:throw Error("Jc`"+a);}},dCa=function(a){return{fieldId:yza(X(a,Mm,1)),stateOnIssues:cCa[pl(a,4)],enabledOnIssues:kl(a,5)}},fCa=function(a){var b=X(a,Sn,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new Tn,e;c=String(a.getId_asLegacyNumberOrString());var f=(e=b==null?void 0:b.getVersion())!=null?e:0;e=a.getName();var h=a.getDescription(),k=[].concat(p(a.getPathNamesList())),q=a.getPathIdsList_asLegacyNumberOrString().map(String),
u=[],A=u.concat;var G=Ek(a,5,Fk());u=A.call(u,p(G));A=a.getMembersList().map(eCa);a=a.getDeleted();d={inherit:d.getInherit(),sloId:String(d.getId_asLegacyNumberOrString()),comment:d.getComment(),sourceTeamId:String(d.getSourceTeamId_asLegacyNumberOrString())};if(b){G=b==null?void 0:b.getEscalationOwner();var H=b==null?void 0:X(b,Kk,7);b={escalationOwner:G?Pk(G):void 0,defaultEscalationOwner:H?Pk(H):void 0,inheritEscalationOwner:b.getInheritEscalationOwner()}}else b=void 0;return{teamId:c,version:f,
name:e,description:h,pathNames:k,pathIds:q,collapsedPathNames:u,members:A,deleted:a,slo:d,extra:b}},eCa=function(a){var b=a.getUser();return{user:b?Pk(b):{},isLead:kl(a,2)}},gCa=function(a){var b=new Un;return Xm(b,2,a.isLead).setUser(Ok(a.user))},hCa=function(a){var b=new Tn;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},iCa=function(a){return(new Vn).setInherit(a.inherit).setId(a.id)},jCa=function(a){return{teamId:a.getTeamId_asLegacyNumberOrString(),
score:a.getScore()}},lCa=function(a){return(new kCa).setTeamId(a.teamId).setScore(a.score)},mCa=function(a){var b=Qk(a);if(b==null)throw Error("Kc`"+a);return b},nCa=function(a){var b=Wk(a,Wn,4,Fk()).map(dCa);b=new Map(b.map(function(q){return[q.fieldId.customFieldId,q]}));var c,d,e=(d=(c=Wk(a,Wm,5,Fk()))==null?void 0:c.map(Gza))!=null?d:[];c=l(e);for(d=c.next();!d.done;d=c.next()){d=d.value;var f=b.get(d.customFieldId);f&&(d.enabledOnIssues=f.enabledOnIssues,d.stateOnIssues=f.stateOnIssues)}var h,
k;return{componentPathId:(k=(h=Uk(a,1,Fk()))==null?void 0:h.map(mCa))!=null?k:[],componentPathName:Ek(a,2,Fk(Gk)),allCustomField:e,fieldConfigsMap:b}},oCa=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},rCa=function(a){var b=nk(a,Gm,15)?nza(X(a,Gm,15)):void 0,c=nk(a,Xn,7)?nCa(X(a,Xn,7)):void 0;if(a.hasSlo()){var d=a.getSlo();d={inherit:d.getInherit(),source:pCa[d.getSource()],id:String(d.getId()),sourceComponentId:String(Dl(d,
6)),sourceTeamId:String(d.getSourceTeamId()),comment:d.getComment()}}else d=void 0;if(nk(a,Ym,18)){var e=a.getEffortSpec();var f=e.getInherit();var h=e.getId_asLegacyNumberOrString(),k=e.getName();a:switch(pl(e,6)){case 2:var q="MAX";break a;case 1:q="SUM";break a;default:q="AGGREGATION_TYPE_UNSPECIFIED"}f={inherit:f,id:h,name:k,aggregationType:q,customFieldId:e.getCustomFieldId_asLegacyNumberOrString()};if(an(e,Nza,4,Yn)){var u=Qm(e,Nza,4,Yn);u&&(f.numericSpec={multiplier:Pm(u,1)})}else if(an(e,
Qza,5,Yn)&&(e=Qm(e,Qza,5,Yn),f.enumSpec={options:[]},e&&(e==null?void 0:(u=Wk(e,Zm,1,Fk()))==null?void 0:u.length)>0))for(u=l(Wk(e,Zm,1,Fk())),e=u.next();!e.done;e=u.next())e=e.value,k=h=void 0,(h=f.enumSpec)==null||(k=h.options)==null||k.push({label:e.getLabel(),value:e.getValue()})}else f=void 0;a.hasTeam()?(u=a.getTeam(),u={inherit:u.getInherit(),id:String(u.getId_asLegacyNumberOrString())}):u=void 0;e=Zya(a.getAccessLimit());h=pl(a,21);h=h===2?"ALL_PROTECTIONS":h===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";
k=a.getTrackerId_asLegacyNumberOrString()?String(a.getTrackerId_asLegacyNumberOrString()):void 0;var A,G;q=a.getComponentId_asLegacyNumberOrString();var H=zl(a,3),N=a.getName(),O=a.getDescription(),U=a.getIsArchived(),da="buganizer-system+"+a.getComponentId_asLegacyNumberOrString()+"@google.com";var ma=pl(a,10)===1?"ENABLED":"DISABLED";return{componentId:q,parentComponentId:H,name:N,description:O,archived:U,componentPathInfo:c,accessLimit:e,emailAlias:da,commentEditState:ma,defaultTemplateId:mCa(zl(a,
6)),slo:d,bugscopeSloId:String(zl(a,14)),retentionSettings:b,fieldOrdering:qCa[pl(a,17)],effortSpec:f,team:u,teamSuggestions:(G=(A=a.getTeamSuggestionsList())==null?void 0:A.map(jCa))!=null?G:[],trackerId:k==="0"?void 0:k,spamProtection:h}},sCa=function(a){return{author:Pk(a.getAuthor()),timestamp:al(a.getTimestamp()),add:rCa(a.getAdd()),remove:rCa(a.getRemove()),addMask:bAa(a.getAddMask()),removeMask:bAa(a.getRemoveMask())}},uCa=function(a){a=a.getIt();var b;return{updates:((b=Wk(a,tCa,1,Fk()))!=
null?b:[]).map(sCa)}},Zn=function(a){return rCa(a.getIt())},vCa=function(a){var b=new $n;b=Fm(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);a.commentEditState&&b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=pza(a.retentionSettings),W(b,Gm,15,a));return(new ao).setIt(b)},wCa=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(Zn)},xCa=function(a){return{warningHeader:Oh(a,1),warning:Oh(a,2),isAllowed:kl(a,3),isExternalMove:kl(a,
4)}},zCa=function(a){a=a.getIt();var b=EAa(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&(b.formattingMode=yCa[a.getFormattingMode()]);return{componentId:a.getComponentId_asLegacyNumberOrString(),templateId:a.getTemplateId_asLegacyNumberOrString(),name:a.getName(),description:a.getDescription(),default:kl(a,9),inheritable:kl(a,10),snapshot:b}},BCa=function(a){var b=new bo,c=b.setIt;var d=(new ACa).setFormattingMode(fn(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);
d=Xm(d,9,a.default);a=Xm(d,10,a.inheritable).setIssueState(LAa(a.snapshot));return c.call(b,a)},CCa=function(a){a=Wk(a,ao,1,Fk());return(a!=null?a:[]).map(Zn)},DCa=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(rCa)},ECa=function(a){return{componentPath:a.getComponentPath(),retentionSettings:nza(X(a,Gm,3))}},GCa=function(a){return Wk(a,FCa,2,Fk()).map(ECa)},HCa=function(a){return zCa(X(a,bo,1))},ICa=function(a){return(Wk(a,bo,1,Fk())||[]).map(zCa)},
JCa=function(a){return(new co).setIt(DBa(a))},eo=function(a){return EBa(a.getIt())},LCa=function(a){return KBa(X(a,KCa,1).getIt())},MCa=function(a){return HBa(a.getIt())},NCa=function(a){return MCa(a.getSearch())},OCa=function(a){return Wk(a,fo,1,Fk()).map(MCa)},PCa=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},QCa=function(a){switch(a.resourceType){case "HOTLIST":var b,c,d,e;return{id:String(a.hotlistId),
name:a.name,description:(d=(b=a.hotlist)==null?void 0:b.description)!=null?d:"",adminUsers:(e=(c=a.hotlist)==null?void 0:c.adminUsers)!=null?e:[],starred:!0,resourceType:"HOTLIST"};case "SAVED_SEARCH":var f,h,k,q;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(q=(h=a.savedSearch)==null?void 0:h.adminUsers)!=null?q:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("Pc");default:Gb(a.resourceType,
"Unexpected type in bookmarkItemToLink")}},RCa=function(a){return{id:String(a.bookmarkGroupId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,sublinks:a.item.filter(function(b){var c;return!((c=b.hotlist)==null?0:c.archived)}).map(QCa)}},VCa=function(a,b,c){var d=new Map,e=new Map,f=new Map,h=new Map,k=new Map;b=l(b);for(var q=b.next();!q.done;q=b.next())q=q.value,q.archived?e.set(q.bookmarkGroupId,q):d.set(q.bookmarkGroupId,q);b=[].concat(p(d.values())).flatMap(function(u){var A;
return(A=u.item)!=null?A:[]});b=new Set(b.filter(function(u){return u.resourceType==="HOTLIST"}).map(function(u){return u.hotlistId}));a=l(a);for(q=a.next();!q.done;q=a.next())q=q.value,b.has(q.hotlistId)||(q.archived?h.set(q.hotlistId,PCa(q)):f.set(q.hotlistId,PCa(q)));c=l(c);for(a=c.next();!a.done;a=c.next())a=a.value,k.set(a.searchId,{id:String(a.searchId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"SAVED_SEARCH"});return{id:"current-user-bookmark-id",
bookmarkGroups:SCa([].concat(p(d.values())).map(RCa)),archivedBookmarkGroups:SCa([].concat(p(e.values())).map(RCa)),hotlists:TCa(f.values()),archivedHotlists:TCa(h.values()),savedSearches:UCa(k.values())}},WCa=function(a,b){var c=new Set(b.hotlists.map(function(k){return k.hotlistId})),d=new Set(b.bookmarkGroups.map(function(k){return k.bookmarkGroupId}));b=new Set(b.savedSearches.map(function(k){return k.searchId}));for(var e=l([].concat(p(a.hotlists),p(a.archivedHotlists))),f=e.next();!f.done;f=
e.next())f=f.value,f.starred=c.has(Number(f.id));e=l([].concat(p(a.bookmarkGroups),p(a.archivedBookmarkGroups)));for(f=e.next();!f.done;f=e.next()){f=f.value;f.starred=d.has(Number(f.id));var h=void 0;f=l((h=f.sublinks)!=null?h:[]);for(h=f.next();!h.done;h=f.next())switch(h=h.value,h.resourceType){case "HOTLIST":h.starred=c.has(Number(h.id));break;case "SAVED_SEARCH":h.starred=b.has(Number(h.id));break;case "BOOKMARK_GROUP":h.starred=d.has(Number(h.id));break;default:throw Error("Qc");}}c=l(a.savedSearches);
for(d=c.next();!d.done;d=c.next())d=d.value,d.starred=b.has(Number(d.id));return a},XCa=function(a){return Fza(a.getIt())},ZCa=function(a){return(new YCa).setIt(Jza(a))},$Ca=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(Fza),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},cDa=function(a){var b,c=(b=X(a,go,2))==null?void 0:pl(b,1),d;b=(d=X(a,go,2))==null?void 0:pl(d,4);var e,f,h,k;d=a.getId_asString();c={phase:c!=null?aDa[c]:"UNSPECIFIED",subphase:b!=null?
bDa[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",triagerEmail:(h=(e=X(a,go,2))==null?void 0:Oh(e,3))!=null?h:void 0,dismissed:(k=al((f=X(a,go,2))==null?void 0:X(f,bl,5)))!=null?k:void 0};a=Ek(a,4,Fk());return{id:d,triage:c,clusterIds:a}},fDa=function(a){var b=new go;b=Sl(b,1,dDa[a.triage.phase]);b=Sl(b,4,eDa[a.triage.subphase]);b=Rl(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=cl(a.triage.dismissed);W(b,bl,5,c)}b=(new ho).setId(a.id).setTriage(b);return io(b,4,a.clusterIds)},iDa=function(a){var b=
a.getId_asString();if(b&&b!=="0"){var c={id:0};a=Wk(a,jo,2,Fk()).map(function(d){var e,f,h,k,q;return{scope:(f=d.getScope())!=null?f:void 0,showComponentColumn:(h=kl(d,2))!=null?h:!1,config:Wk(d,gDa,3,Fk()).map(hDa)||[],id:(k=Sh(d.getId()))!=null?k:0,displayName:d.getDisplayName()||void 0,displayColumns:(q=(e=d.getDisplayColumns())==null?void 0:e.getColumnList().map(Wva).filter(Tk))!=null?q:[]}});a.length===0&&a.push(c);return{id:b,triage:a}}},hDa=function(a){switch(vm(a,jDa)){case 1:return{type:"CUSTOM_FIELD",
customFieldConfig:kDa(Qm(a,ko,1,jDa))};case 2:return{type:"HOTLIST",hotlistConfig:lDa(Qm(a,mDa,2,jDa))};default:throw Error("Rc");}},rDa=function(a){var b=new gDa;a.type==="CUSTOM_FIELD"&&a.customFieldConfig?(a=nDa(a.customFieldConfig),Vm(b,1,jDa,a)):a.type==="HOTLIST"&&a.hotlistConfig&&(a=a.hotlistConfig,a=(new mDa).setHotlistIdsList(a.hotlistIds).setOperation(oDa[a.operation]).setPhasesList(pDa(a.phases)).setSubphasesList(qDa(a.subphases)),Vm(b,2,jDa,a));return b},kDa=function(a){var b,c=(b=Wk(a,
sDa,2,Fk()).map(function(d){return{phases:d.getPhasesList().map(function(e){return aDa[e]}),subphases:d.getSubphasesList().map(function(e){return bDa[e]}),value:Bza(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},nDa=function(a){var b=(new ko).setCustomFieldId(a.customFieldId);a=a.defaultValues.map(function(c){return(new sDa).setPhasesList(pDa(c.phases)).setSubphasesList(qDa(c.subphases)).setValue(Cza(c.value))});sn(b,2,a);return b},lDa=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),
operation:tDa[a.getOperation()],phases:a.getPhasesList().map(function(b){return aDa[b]}),subphases:a.getSubphasesList().map(function(b){return bDa[b]})}},pDa=function(a){var b;return(b=a==null?void 0:a.map(function(c){return dDa[c]}))!=null?b:[]},qDa=function(a){var b;return(b=a==null?void 0:a.map(function(c){return eDa[c]}))!=null?b:[]},uDa=function(a){var b=new jo;a.scope&&b.setScope(a.scope);var c;Ol(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(Dwa({column:(c=
a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(rDa),lo(b,3,gDa,a));return b},vDa=function(a){a==="[Deleted User]"&&(a="nobody@google.com");a.includes("@")||(a+="@google.com");var b=new Kk;return Lk(b,1,a)},wDa=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(vDa))!=null?b:[]},mo=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(Qk).filter(Tk))!=null?b:[]},no=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=
null?b:[]},yDa=function(a){var b=new oo,c=new oo,d=new xn,e=new xn;a=l(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(f.ignoreOnIssueEditRequest)break;switch(f.fieldName){case "assignee":f.value?(d.setAssignee(vDa(f.value)),po(b,"assignee")):(e.setAssignee(new Kk),po(c,"assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType==="ADD"?(d.addAllBlockedByIssueIds(mo(f.value)),po(b,"blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(mo(f.value)),po(c,"blocked_by_issue_ids"));
break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(mo(f.value)),po(b,"blocking_issue_ids")):(e.addAllBlockingIssueIds(mo(f.value)),po(c,"blocking_issue_ids"));break;case "ccs":f.actionType==="ADD"?(d.addAllCcs(wDa(f.value)),po(b,"ccs")):(e.addAllCcs(wDa(f.value)),po(c,"ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(no(f.value)),po(b,"code_changes")):(e.addAllCodeChanges(no(f.value)),po(c,"code_changes"));break;case "collaborators":f.actionType===
"ADD"?(d.addAllCollaborators(wDa(f.value)),po(b,"collaborators")):(e.addAllCollaborators(wDa(f.value)),po(c,"collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(tAa(f.staffingValue)),po(b,"staffing")):(e.setStaffing(tAa(f.staffingValue)),po(c,"staffing"));break;case "comment":break;case "componentId":d.setComponentId(Qk(f.value));po(b,"component_id");break;case "customField":if(!f.customFieldValue)break;var h=Cza(f.customFieldValue);f.actionType===
"ADD"?(d.addCustomFields(h),po(b,"custom_fields")):(e.addCustomFields(h),po(c,"custom_fields"));break;case "deletionReason":f.value!=null?(d.setDeletionReason(JAa[f.value]),po(b,"deletion_reason")):(e.setDeletionReason(2),po(c,"deletion_reason"));break;case "duplicateOfIssueId":(f=Qk(f.value))?(d.setCanonicalIssueId(f),po(b,"canonical_issue_id")):po(c,"canonical_issue_id");break;case "effortEstimate":f.value?(h=new yn,f=Lk(h,2,f.value),d.setEffort(f),po(b,"effort")):(e.setEffort(new yn),po(c,"effort"));
break;case "foundInVersion":f.actionType==="ADD"?(h=d,f=no(f.value),io(h,17,f),po(b,"found_in_versions")):(h=e,f=no(f.value),io(h,17,f),po(c,"found_in_versions"));break;case "gerritChanges":h=(f.gerritChangeValue||[]).map(IAa);f.actionType==="ADD"?(d.addAllGerritChanges(h),po(b,"gerrit_changes")):(e.addAllGerritChanges(h),po(c,"gerrit_changes"));break;case "hotlists":f.actionType==="ADD"?(d.addAllHotlistIds(mo(f.value)),po(b,"hotlist_ids")):(e.addAllHotlistIds(mo(f.value)),po(c,"hotlist_ids"));break;
case "inProd":d.setInProd(f.value==="true");po(b,"in_prod");break;case "type":d.setType(xDa[f.value]);po(b,"type");break;case "isArchived":d.setIsArchived(f.value==="true");po(b,"is_archived");break;case "isDeleted":d.setIsDeleted(f.value==="true");po(b,"is_deleted");break;case "parentId":break;case "priority":d.setPriority(GAa[f.value]);po(b,"priority");break;case "readState":break;case "reporter":d.setReporter(vDa(f.value));po(b,"reporter");break;case "severity":d.setSeverity(HAa[f.value]);po(b,
"severity");break;case "sloEndTime":(f=Qk(f.value))?(d.setSloEndTime(cl({seconds:f,nanos:0})),po(b,"slo_end_time")):(e.setSloEndTime(new bl),po(c,"slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(KAa[f.value]);po(b,"slo_snooze_type");break;case "sloStartTime":(f=Qk(f.value))?(d.setSloSnoozeUntil(cl({seconds:f,nanos:0})),po(b,"slo_snooze_until")):(e.setSloSnoozeUntil(new bl),po(c,"slo_snooze_until"));break;case "status":d.setStatus(FAa[f.value]);po(b,"status");break;case "targetedToVersion":f.actionType===
"ADD"?(h=d,f=no(f.value),io(h,18,f),po(b,"targeted_to_versions")):(h=e,f=no(f.value),io(h,18,f),po(c,"targeted_to_versions"));break;case "title":d.setTitle(f.value);po(b,"title");break;case "verifiedInVersion":f.actionType==="ADD"?(h=d,f=no(f.value),io(h,19,f),po(b,"verified_in_versions")):(h=e,f=no(f.value),io(h,19,f),po(c,"verified_in_versions"));break;case "verifier":f.value?(d.setVerifier(vDa(f.value)),po(b,"verifier")):(e.setVerifier(new Kk),po(c,"verifier"));break;default:Gb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}}return{addMask:b,
removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},ADa=function(a){var b=a.actions.filter(function(h){return!h.ignoreOnIssueEditRequest}),c=b.filter(function(h){return h.fieldName!=="comment"}),d=yDa(c);c=d.addMask;var e=d.removeMask,f=d.stateAddBuilder;d=d.stateRemoveBuilder;a=(new zDa).setIssueId(Number(a.issueId)).setAdd(f).setRemove(d).setAddMask(c).setRemoveMask(e);(b=Ua(b.filter(function(h){return h.fieldName==="comment"})))&&b.value!=null&&a.setIssueComment((new qo).setComment(b.value));
return a},CDa=function(a,b,c,d){var e=new ro,f=e.setIt;a=(new BDa).setIssueId(a);b&&a.setIssueAccessLimit(Wya(b));c&&a.setAddedCollaboratorsList(c.map(Ok));d&&a.setRemovedCollaboratorsList(d.map(Ok));return f.call(e,a)},DDa=function(a){return(new so).setIt((new to).setIssueId(Number(a)))},GDa=function(a){return(new EDa).setIt((new FDa).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},JDa=function(a){var b,c=new HDa,d=c.setIt,e=(new IDa).setIssueId(String(a.issueId)).setComponentId(String(a.componentId));
a=(b=a.setLimitViewTrusted)!=null?b:!1;b=Xm(e,3,a);return d.call(c,b)},KDa=function(a){return{issueId:Eva(a.getIssueId_asString()),status:vn[a.getStatus()],title:a.getTitle()}},NDa=function(a){var b=new LDa;b.setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&Sl(b,3,MDa[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new uo).setIt(Cza(a));c.call(b,a)}return b},PDa=function(a){return(new ODa).setIt(ADa(a))},TDa=function(a){var b=new QDa,c=
a.addHotlistIds.map(String);Mc(b,1,c,Wb);c=a.removeHotlistIds.map(String);Mc(b,2,c,Wb);var d=a.hotlistIssue;a=(new Gn).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);if(d.issue){c=a.setIssue;d=d.issue;var e=(new vo).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(Jza)),f=d.visibleFields.map(Aza);e=sn(e,34,f).setMajorModifiedTime(el(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(Qk).filter(Tk)).setChildIssueCount(d.childIssueCount).setDescendantIssueCount(d.descendantCount).setOpenDescendantIssueCount(d.openDescendantCount).setIsArchived(d.isArchived);
d.trackerId&&e.setTrackerId(d.trackerId);d.snapshot&&d.snapshot[0]&&e.setIssueState(LAa(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(yAa(d.statusUpdate));if(d.userData){f=e.setUserData;var h=d.userData,k=new RDa;h.voted&&Xm(k,2,h.voted);h.starred&&Xm(k,1,h.starred);h.notificationSubscription&&k.setNotificationSubscription(SDa[h.notificationSubscription]);h.lastViewedTimeMicros!==void 0&&(h=el(h.lastViewedTimeMicros),W(k,bl,5,h));f.call(e,k)}if(d.aggregatedData){f=Fm(e,10,d.aggregatedData.voteCount).setCreatedTime(el(d.aggregatedData.createdTimeMicros)).setResolvedTime(el(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(el(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(el(d.aggregatedData.modifiedTimeMicros));
k=Ok(d.aggregatedData.lastModifier);W(f,Kk,14,k);if(d.aggregatedData.sloStatus){f=e.setSloStatus;h=d.aggregatedData.sloStatus;k=new wo;if(h.assignmentBounds){var q=fAa(h.assignmentBounds);W(k,hn,1,q)}h.responseBounds&&(q=fAa(h.responseBounds),W(k,hn,2,q));h.closureBounds&&(h=fAa(h.closureBounds),W(k,hn,3,h));f.call(e,k)}d.aggregatedData.sloId&&e.setSloId(d.aggregatedData.sloId);d.aggregatedData.teamId&&e.setTeamId(d.aggregatedData.teamId);d.aggregatedData.retentionState&&(f=e.setRetentionState,h=
d.aggregatedData.retentionState,k=new xo,h.retentionPeriod&&(q=Qva(h.retentionPeriod),W(k,dl,1,q)),h.scheduledDeletionTime&&(h=cl(h.scheduledDeletionTime),W(k,bl,2,h)),f.call(e,k))}d.accessLimit&&e.setAccessLimit(aza(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),k=l(d.ancestors.entries()),h=k.next();!h.done;h=k.next())q=l(h.value),h=q.next().value,q=q.next().value,f.set(zb(h),(new yo).setSourceIssueIdsList(q.sourceIssueIds.map(Qk).filter(Tk)));d.userActivityStats&&(f=d.userActivityStats,
k=new TAa,k=Fm(k,1,f.oneDayViewCount),k=Fm(k,2,f.sevenDayViewCount),f=Fm(k,3,f.thirtyDayViewCount),W(e,TAa,47,f));d.escalationOwner&&e.setEscalationOwner(Ok(d.escalationOwner));c.call(a,e)}a=(new zo).setIt(a);W(b,zo,3,a);return b},VDa=function(a){var b=Wk(a,UDa,1,Fk());return{issueDigests:(b!=null?b:[]).map(KDa),numTotalResults:zl(a,2)}},YDa=function(a){var b=(new WDa).setIssueId(a.issueId).setRetention(rza(a.retention));a.significanceOverride&&b.setSignificanceOverride(Iza[a.significanceOverride]);
return(new XDa).setIt(b)},bEa=function(a){var b=new ZDa,c=b.setIt,d=(new vo).setIssueState(LAa(a.snapshot));a.snapshot.comment&&d.setIssueComment((new qo).setComment(a.snapshot.comment).setFormattingMode(fn(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(vza));d=(new $Da).setIssue(d);if(a.templateId!=null){var e=new aEa;e=Xm(e,1,!1).setTemplateId(a.templateId);W(d,aEa,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=Nk(hza(a.contentJudgement),5,2),a=Nk(a,6,1),
e.call(d,a));return c.call(b,d)},cEa=function(a){return{issueId:Eva(a.getIssueId_asString())}},eEa=function(a,b){a=(new dEa).setQuery(a);b.s&&a.setOrderBy(CBa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new Ao).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},qEa=function(a,b,c){a=fEa(new gEa,eEa(a,b));c.queryType&&Sl(a,2,hEa[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&iEa(a,c.sortSpecs.map(function(d){var e=new jEa;e=Sl(e,1,
kEa[d.sortType]);return Ol(e,2,d.sortDecreasing)}));c.experimentalFields&&lEa(a,fDa(c.experimentalFields));c.concatenator&&mEa(a,nEa((new oEa).setRelation(pEa[c.concatenator.relation]),c.concatenator.experimentalSortPrimary));return a},rEa=function(a){return xAa(a.getIt())},sEa=function(a){var b=new Bo,c=b.setIt;var d=(new Co).setQuery(a.query);d=Nk(d,2,Iza[a.minimumSignificance]);a=$k(d,4,a.maximumSize);a=Nk(a,3,2);return c.call(b,a)},tEa=function(a){var b;return{isCommentEvent:!0,version:a.version,
unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:Gva(a.lastModified),commentRedacted:Sk(a.redacted),commentContentVerdict:a.commentContentVerdict,commentRetentionState:a.piiRetentionState,commentDeletionStatus:(b=a.entityStatus)==null?void 0:b.status,commentRetention:a.piiRetention,lastCommentEditorUser:a.lastEditorUser,formattingMode:a.formattingMode,formattedComment:a.formattedComment,commentEtag:a.etag,commentReactions:a.commentReactions}},
uEa=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:Sva(el((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,userPerformingAction:Fva()(Dk(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:Gva(a.lastModified),commentRedacted:Sk(a.redacted),commentContentVerdict:a.commentContentVerdict,commentRetentionState:a.piiRetentionState,commentDeletionStatus:(d=
a.entityStatus)==null?void 0:d.status,commentRetention:a.piiRetention,lastCommentEditorUser:a.lastEditorUser,commentEtag:a.etag,commentNumber:a.commentNumber,unlinkifiedComment:a.unlinkifiedComment,formattingMode:a.formattingMode,isMajorEvent:!0,statusUpdate:void 0,taggedSummary:void 0,formattedComment:a.formattedComment,commentReactions:a.commentReactions,issueId:a.issueId}},Do=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?VAa(a.getIt()):void 0,a},vEa=function(a){var b=new Eo;
b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(NDa);sn(b,1,a);return b},wEa=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},yEa=function(a){for(var b={},c=l(Lc(a,1,Fo,oc).entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;d=Number(d);e=e!=null?An(e.getIt()):void 0;b[d]=e}c={};d=l(Lc(a,3,ao,oc).entries());for(e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c[Number(e)]=Zn(f)}a=Wk(a,xEa,
2,Fk());a=(a!=null?a:[]).map(wEa);return{affectedIssues:b,componentMap:c,errors:a}},zEa=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(Vza).map(tEa)},AEa=function(a){return{readTimestamp:nk(a.getIt(),bl,3)?fl(X(a.getIt(),bl,3)):0}},BEa=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:$za(b.getType()),status:vn[b.getStatus()],priority:wn[b.getPriority()],severity:AAa[b.getSeverity()],componentId:b.getComponentId_asLegacyNumberOrString(),accessLimitLevel:c!=
null?Xya(c):null};return{issueId:String(a.getIssueId_asLegacyNumberOrString()),issueState:b,modifiedTime:al(a.getModifiedTime()),teamId:a.getTeamId_asLegacyNumberOrString()}},CEa=function(a){return Vza(a.getIt())},DEa=function(a){return a.getIt().getIssueCommentsList().map(Vza)},EEa=function(a){return Tza(a==null?void 0:a.getIt())},FEa=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(Tk).map(An),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),
maySkipResults:a.getMaySkipResults()}},HEa=function(a){return{issueId:a.getIssueId_asString(),summaryType:GEa[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),summary:a.getSummary(),formattedSummary:nk(a,dn,6)?{content:qxa(X(a,dn,6).getContent())}:void 0}},MEa=function(a){if(a){var b=a==null?void 0:a.getTypeName();switch(b){case "google.protobuf.Int32Value":var c;return{type:"NUMBER",value:(c=Ph(a,IEa,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;
return{type:"NUMBER",value:(d=Ph(a,JEa,b))==null?void 0:d.getValue_asLegacyNumberOrString()};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=Ph(a,KEa,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;return{type:"BOOLEAN",value:(f=Ph(a,LEa,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:al(Ph(a,bl,b))};case "google.devtools.issuetracker.v1.User":return a=Ph(a,Kk,b),{type:"USER",value:a&&Pk(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=
Ph(a,Um,b),{type:"CUSTOM_FIELD_VALUE",value:a&&Bza(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=Ph(a,Cm,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&Xya(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=Ph(a,yn,b),{type:"STRING",value:a&&Kza(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=Ph(a,Jm,b),{type:"ENTITY_STATUS",value:a&&jza(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=Ph(a,zn,b),{type:"GERRIT_CHANGE",value:a&&
BAa(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=Ph(a,mn,b),{type:"PLANNED_ALLOCATION",value:a&&wAa(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},OEa=function(a){var b,c;return{issueId:String(a.getIssueId()),version:a.getVersion(),author:Pk(a.getAuthor()),timestamp:al(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(NEa).filter(Tk),attachments:a.getAttachmentsList().map(tza),comment:a.hasIssueComment()&&dna((b=a.getIssueComment())==
null?void 0:b.getIssueId())!==0?Vza(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?xAa(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?jza(a.getStatusUpdate().getEntityStatus()):void 0}},NEa=function(a){var b=a.getField();if(PEa.has(b)){var c=vm(a,QEa);switch(c){case 3:a:{if(c=Qm(a,REa,3,QEa)){a=MEa(X(c,Go,1));var d=MEa(X(c,Go,2));if(a||d){var e;c={type:(e=a==null?void 0:a.type)!=null?e:d==null?void 0:d.type,oldValue:a==null?
void 0:a.value,newValue:d==null?void 0:d.value};break a}}c=void 0}return{field:b,singleValueUpdate:c};case 4:return{field:b,collectionUpdate:SEa(Qm(a,TEa,4,QEa))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+b+'"')},SEa=function(a){if(a){var b=Wk(a,Go,1,Fk()).map(MEa).filter(Tk);a=Wk(a,Go,2,Fk()).map(MEa).filter(Tk);var c=[].concat(p(b),p(a));if(c.length!==0)return{type:c[0].type,added:b.map(function(d){return d.value}),
removed:a.map(function(d){return d.value})}}},Ho=function(a){return new Uj(a.year,a.month-1,a.day)},UEa=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},VEa=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},WEa=function(a,b){if(a&&b){var c=l(b.split(":"));b=c.next().value;c=c.next().value;return new bk(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))}},Io=function(a){return a.numericValue===0?a.numericValue:a.textValue||a.dateValue||a.enumValue||
a.numericValue||a.repeatedTextValue||a.repeatedDateValue||a.repeatedEnumValue||a.repeatedNumericValue||null},Jo=function(a){a=Io(a);return a==null?!0:typeof a==="string"?a==="":typeof a==="number"?!1:a.values!=null?a.values.length===0:!a||!a.day||!a.month||!a.year},XEa=function(a){return a?UEa(Wj(a)):null},YEa=function(a){return a?(a=kn(a),isNaN(a)?null:a):null},$Ea=function(a){return ZEa.format(Ho(a))},aFa=function(a){return a.textValue!=null?a.textValue:a.dateValue!=null?$Ea(a.dateValue):a.enumValue!=
null?a.enumValue:a.numericValue!=null?String(a.numericValue):a.repeatedTextValue!=null?a.repeatedTextValue.values.join(", "):a.repeatedDateValue!=null?a.repeatedDateValue.values.map($Ea).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=null?a.repeatedNumericValue.values.map(String).join(", "):""},dFa=function(a){var b=a.fieldUpdates.map(function(c){return bFa(c,a)}).filter(Tk);a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",
type:"STATUS_UPDATE",important:!1,timestamp:lm(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:void 0});return cFa(b)},cFa=function(a){var b=a.filter(function(h){return h.name==="status"});a=a.filter(function(h){return h.name!=="status"});var c=[].concat(p(a),p(b));b=[];a=void 0;c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.name==="canonicalId"?a=d:(d.name==="status"&&a&&(d.newValue==="Duplicate"&&(d.newValue="Duplicate of "+a.newValue),
d.oldValue==="Duplicate"&&(d.oldValue="Duplicate of "+a.oldValue),a=void 0),b.push(d));var e,f;((e=a)==null?0:e.oldValue)&&((f=a)==null?0:f.newValue)&&b.push({name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:a.timestamp,oldValue:"Duplicate of "+a.oldValue,newValue:"Duplicate of "+a.newValue});return b},bFa=function(a,b){var c=lm(b.timestamp);b=b.version===0;var d=a.field;switch(d){case "access_limit":var e=a.singleValueUpdate;return{name:"access_limit",displayName:"Issue access level",
type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue||"",newValue:e.newValue||""};case "assignee":return e=a.singleValueUpdate,{name:"assignee",displayName:"Assignee",type:"SINGLE_VALUE",important:!0,timestamp:c,isUser:!0,oldValue:Ko(e.oldValue),newValue:Ko(e.newValue)};case "blocked_by_issue_ids":return e=a.collectionUpdate,{name:"blockedById",displayName:"Blocked by",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(jm),removed:e.removed.map(jm)};case "blocking_issue_ids":return e=
a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(jm),removed:e.removed.map(jm)};case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:Rk(e.oldValue),newValue:Rk(e.newValue)};case "ccs":return e=a.collectionUpdate,{name:"cc",displayName:"CC",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map(Ko),removed:e.removed.map(Ko)};
case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map(Ko),removed:e.removed.map(Ko)};case "child_issue_ids":return e=a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(jm),removed:e.removed.map(jm)};case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",
important:!1,timestamp:c},uxa()?{type:"LINKED_COLLECTION",added:e.added.map(Lxa),removed:e.removed.map(Lxa)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "component_id":var f=a.singleValueUpdate,h;return{name:"component",displayName:"Component",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(e=Rk(f.oldValue))!=null?e:"",newValue:(h=Rk(f.newValue))!=null?h:""};case "custom_fields":return e=a.singleValueUpdate,h=(e.oldValue||e.newValue).customFieldId,{customFieldId:h,name:String(h),
displayName:"",type:"CUSTOM_FIELD",important:!1,timestamp:c,oldValue:eFa(e.oldValue),newValue:eFa(e.newValue)};case "duplicate_issue_ids":return e=a.collectionUpdate,{name:"duplicateId",displayName:"Duplicate issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(jm),removed:e.removed.map(jm)};case "effort":return e=a.singleValueUpdate,{name:"effort",displayName:"Estimated Effort",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue||"<none>",newValue:e.newValue||"<none>"};
case "found_in_versions":return e=a.collectionUpdate,{name:"foundIn",displayName:"Found in",type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "gerrit_changes":return e=a.collectionUpdate,{name:"gerritChange",displayName:"Gerrit change",important:!1,timestamp:c,type:"LINKED_COLLECTION",added:e.added.map(function(Ja){return Mxa(Ja)}),removed:e.removed.map(function(Ja){return Mxa(Ja)})};case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",
type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Nxa),removed:e.removed.map(Nxa)};case "in_prod":return e=a.singleValueUpdate,{name:"inProd",displayName:"In prod",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?String(e.oldValue):"",newValue:e.newValue!=null?String(e.newValue):""};case "is_archived":e=a.singleValueUpdate;var k;return{name:"isArchived",displayName:"Archived",type:"SINGLE_VALUE",important:!b||e.newValue,timestamp:c,oldValue:String((f=e.oldValue)!=
null?f:!1),newValue:String((k=e.newValue)!=null?k:!1)};case "parent_issue_ids":return e=a.collectionUpdate,{name:"parentIssueIds",displayName:"Parent Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(jm),removed:e.removed.map(jm)};case "staffing.planned_allocations":return e=a.collectionUpdate,e=Rxa(e.added,e.removed),{name:"staffing",displayName:"Staffing",important:!1,timestamp:c,type:"COLLECTION",added:e.additions,removed:e.removals};case "postmortems":return e=a.collectionUpdate,
Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},uxa()?{type:"LINKED_COLLECTION",added:e.added.map(Oxa),removed:e.removed.map(Oxa)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "priority":return e=a.singleValueUpdate,{name:"priority",displayName:"Priority",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?wn[e.oldValue]:"",newValue:e.newValue!=null?wn[e.newValue]:""};case "retention":e=a.singleValueUpdate;var q,u;return{name:"retention",
displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(q=fFa(e.oldValue))!=null?q:"",newValue:(u=fFa(e.newValue))!=null?u:""};case "reporter":return e=a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Ko(e.oldValue),newValue:Ko(e.newValue)};case "severity":return e=a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?AAa[e.oldValue]:
"",newValue:e.newValue!=null?AAa[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var A,G,H,N;return{name:"sloStartTime",displayName:"SLO Start Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((H=(A=e.oldValue)==null?void 0:A.seconds)!=null?H:"<none>"),newValue:String((N=(G=e.newValue)==null?void 0:G.seconds)!=null?N:"<none>")};case "slo_end_time":e=a.singleValueUpdate;var O,U,da,ma;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",important:!1,
timestamp:c,oldValue:String((da=(O=e.oldValue)==null?void 0:O.seconds)!=null?da:"<none>"),newValue:String((ma=(U=e.newValue)==null?void 0:U.seconds)!=null?ma:"<none>")};case "status":e=a.singleValueUpdate;var ra,Ga;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:Yj((ra=Lo.get(e.oldValue))!=null?ra:""),newValue:Yj((Ga=Lo.get(e.newValue))!=null?Ga:"")};case "targeted_to_versions":return e=a.collectionUpdate,{name:"targetedTo",displayName:"Targeted to",
type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "title":e=a.singleValueUpdate;var Na,Qa;return{name:"title",displayName:"Title",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(Na=e.oldValue)!=null?Na:"",newValue:(Qa=e.newValue)!=null?Qa:""};case "type":e=a.singleValueUpdate;var gb,va;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(gb=gFa.get(e.oldValue))!=null?gb:"",newValue:(va=gFa.get(e.newValue))!=null?va:""};
case "verifier":return e=a.singleValueUpdate,{name:"verifier",displayName:"Verifier",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Ko(e.oldValue),newValue:Ko(e.newValue)};case "verified_in_versions":return e=a.collectionUpdate,{name:"verifiedIn",displayName:"Verified in",type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "deletion_reason":case "entity_status":case "is_deleted":case "slo_snooze_type":case "staffing":break;default:Gb(d,"Unexpected IssueStateMask in fieldUpdateToDiff")}},
Ko=function(a){return Fva()(Dk(a))},eFa=function(a){return a==null?"<none>":aFa(a)},fFa=function(a){if(a!=null)switch(DAa[a]){case "COMPONENT_DEFAULT":return"Component Default";case "INDEFINITE":return"Indefinite"}},lFa=function(a){var b=void 0,c=void 0;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.updates.flatMap(function(A){return A.fieldUpdates}),f=void 0,h=(f=Ua(e.filter(function(A){return A.field==="assignee"})))==null?void 0:f.singleValueUpdate;h&&(b=hFa(h));f=void 0;var k=
(f=Ua(e.filter(function(A){return A.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=hFa(k));f=void 0;k=(f=Ua(e.filter(function(A){return A.field==="status"})))==null?void 0:f.singleValueUpdate;var q=void 0;f=(q=Ua(e.filter(function(A){return A.field==="canonical_issue_id"})))==null?void 0:q.singleValueUpdate;q=void 0;e=(q=Ua(e.filter(function(A){return A.field==="is_archived"})))==null?void 0:q.singleValueUpdate;if(k){q=k.oldValue!=null?vn[k.oldValue]:void 0;k=k.newValue!=null?vn[k.newValue]:
void 0;var u=void 0;f=Rk((u=f)==null?void 0:u.newValue);iFa(d,jFa({oldStatus:q,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!h}))}else h&&b?iFa(d,[Mo("Reassigned to "),kFa(b),Mo(".")]):f&&(k=void 0,f=Rk((k=f)==null?void 0:k.newValue),iFa(d,jFa({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!h})));e&&iFa(d,[Mo(e.newValue?"Archived.":"Unarchived.")])}},jFa=function(a){var b=a.oldStatus;var c=
a.newStatus;var d=a.currentAssignee;var e=a.currentVerifier;var f=a.canonicalIssueId;a=a.assigneeChanged;b=b&&om.get(b);var h=c&&om.get(c);if(b&&h&&!b.open&&h.open)return[Mo("Status: "+h.displayValue+" (reopened)")];switch(c){case "ASSIGNED":if(d)return[Mo("Assigned to "),kFa(d),Mo(".")];break;case "ACCEPTED":if(d)return[Mo("Accepted by "),kFa(d),Mo(".")];break;case "FIXED":return a&&d?[Mo("Marked as fixed, reassigned to "),kFa(d),Mo(".")]:[Mo("Marked as fixed.")];case "VERIFIED":if(e)return[Mo("Verified by "),
kFa(e),Mo(".")];break;case "DUPLICATE":if(f)return[Mo("Status: Duplicate of "),{text:f,tag:"bug"}]}return[Mo("Status: "+Yj(h.displayValue))]},hFa=function(a){if(a)return a.newValue},Mo=function(a){return{text:a,tag:""}},kFa=function(a){switch(a.userGaiaStatus){case "ACTIVE":case "UNSPECIFIED":case void 0:if(a.emailAddress)return{text:a.emailAddress,tag:"user"};if(a.obfuscatedEmailAddress)return Mo(a.obfuscatedEmailAddress);break;case "DELETED":return Mo("Deleted User");case "UNAVAILABLE":return Mo("Unavailable User");
default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return Mo("User")},oFa=function(a){if(!a.length)return[];a=Sua(a,function(b){return b.issueId}).flatMap(mFa);return nFa(a,"DESCENDING")},mFa=function(a){if(!a.length)return[];a=pFa(a);lFa(a);return a.map(function(b){return qFa(b)}).filter(rFa)},rFa=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},pFa=function(a){var b=
sFa(a,"ASCENDING");a=[new tFa];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ua(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var h;if(!(h=d.hasInitialUpdate)&&!(h=!d.author||!c.author)){h=d.author;var k=c.author;h=!(h===k||(h.emailAddress||k.emailAddress?h.emailAddress===k.emailAddress:(h.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&h.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(h||d.comment&&c.comment)e=!1;else{if(h=(f=d.updates[0])==null?0:f.timestamp)f=
(e=d.updates[0])==null?void 0:e.timestamp,h=Math.abs(lm(f)-lm(c.timestamp))>36E5;e=h?!1:!0}}e?uFa(d,c):a.push(uFa(new tFa,c))}return a},vFa=function(a){var b={};if(a==null)return b;a=Wk(a,No,1,Fk());a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={admin:!1,writer:!1,appender:!1,reader:!1};b[d]=b[d]||e;switch(c.getRelation()){case 1:b[d].admin=!0;break;case 2:b[d].writer=!0;break;case 3:b[d].appender=!0;break;case 4:b[d].reader=!0}}return b},wFa=function(a,b){return a.map(function(c){var d=
c.resourceName;c=c.relation;return b[d]!==void 0&&b[d][c]!==void 0?b[d][c]:!1})},AFa=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:An(Qm(a,vo,9,xFa))};break;case 10:b={recommendedHotlist:EBa(Qm(a,En,10,xFa))}}return{name:a.getName(),source:a.getSource(),resource:a.getResource(),type:yFa[a.getType()],recommendation:Oh(a,5),score:a.getScore(),confidence:zFa[a.getConfidence()],createTime:al(X(a,bl,8)),content:b}},FFa=function(a){var b=(new BFa).setParent(a.parent);a=
a.userEngagement;var c=(new CFa).setType(DFa[a.type]);a.rejectionReason!==void 0&&Nk(c,3,EFa[a.rejectionReason]);return W(b,CFa,2,c)},HFa=function(a){return{recommendations:Wk(a,GFa,1,Fk()).map(AFa),nextPageToken:a.getNextPageToken(),totalSize:zl(a,3)}},Oo=function(a){return{id:a,triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},IFa=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(Tk).map(function(d){return Object.assign({},d,
{experimentalFields:c.get(d.issueId)})})},KFa=function(){return JFa.performance&&JFa.PerformanceObserver&&typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},LFa=function(a){var b=a.name;if(b!=null&&(a=Math.round(a.duration),!isNaN(a))){var c=l(b.split(" -> ")),d=c.next().value;c=c.next().value;if(d==null||c==null)console.warn("can't parse 'from' and 'to' in PerformanceEntry: "+b);else return{from:d,
to:c,duration:a}}},NFa=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(MFa);if(b!=null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},RFa=function(){var a=window.performance.getEntries(),b=NFa(a);if(b==null)return[];var c=b.startTime;return a.filter(OFa).filter(PFa).filter(QFa).filter(function(d){return d.startTime<=c})},MFa=function(a){var b=a.entryType;a=a.name;return b==="measure"&&a.startsWith("browserStart")},OFa=function(a){return!a.name.startsWith("Zone")},
QFa=function(a){return a.entryType==="resource"},SFa=function(a){return a.initiatorType==="xmlhttprequest"},PFa=function(a){return a.name.match(/\.html$/)==null},TFa=function(a,b){var c=b.transferSize||0,d=a.count+1,e=a.cacheHits+(c===0?1:0);return{count:d,duration:a.duration+b.duration,transferSize:a.transferSize+c,cacheHits:e,cacheHitRate:e/d}},VFa=function(){return typeof UFa.gtag==="function"},WFa=function(a){if(a!=null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,
eventLabel:a.to,eventValue:a.duration}},ZFa=function(a){a=a.getEntries().map(LFa).map(WFa);a=l(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c&&c.hitType){b=c.hitType;var d=c.eventAction;var e=c.eventCategory,f=c.eventLabel;c=c.eventValue;d=Object.assign({},d!==void 0?{event_action:d}:{},e!==void 0?{event_category:e}:{},f!==void 0?{event_label:f}:{},c!==void 0?{event_value:c}:{});XFa(b,d)}}setTimeout(YFa,100)},YFa=function(){if(!$Fa){var a=RFa(),b=a.filter(function(c){return!SFa(c)}).reduce(TFa,
aGa());Po("r-until-cf","asset","count",b.count);Po("r-until-cf","asset","transferSize",b.transferSize);Po("r-until-cf","asset","duration",b.duration);Po("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(SFa).reduce(TFa,aGa());Po("r-until-cf","xhr","count",a.count);Po("r-until-cf","xhr","transferSize",a.transferSize);Po("r-until-cf","xhr","duration",a.duration);$Fa=!0}},Po=function(a,b,c,d){XFa(a,Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?
{event_value:d}:{}))},XFa=function(a,b){b!=null&&(bGa("page_location","Scrubbed Page URL"),bGa("page_title","Scrubbed Page Title"),VFa()&&UFa.gtag("event",a,b),cGa&&Mj("[stub gtag.ts] gtag('event')",a,b))},Ro=function(a,b){Qo(a,b)},bGa=function(a,b){if(VFa()){var c={};UFa.gtag("set",(c[a]=b,c))}cGa&&Mj("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},Qo=function(a,b){if(VFa()){var c={};UFa.gtag("set","user_properties",(c[a]=b,c))}cGa&&Mj("[stub gtag.ts] gtag('set', 'user_properties', {"+a+": "+b+")}")},
hGa=function(){var a=a===void 0?Po:a;var b=Date.now(),c=So(b);So(dGa())!==c?a("retention","first-visit"):(c=So(b),So(dGa())===c&&eGa()===1&&a("retention","second-visit"));a=So(b);So(dGa())!==a?fGa(1):(a=eGa()||0,fGa(a+1));gGa(b)},So=function(a){if(a!=null)return(new Date(a)).toLocaleDateString()},iGa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;A=u=0}function b(G){for(var H=h,N=0;N<64;N+=4)H[N/4]=G[N]<<24|G[N+1]<<16|G[N+2]<<8|G[N+3];for(N=
16;N<80;N++)G=H[N-3]^H[N-8]^H[N-14]^H[N-16],H[N]=(G<<1|G>>>31)&4294967295;G=e[0];var O=e[1],U=e[2],da=e[3],ma=e[4];for(N=0;N<80;N++){if(N<40)if(N<20){var ra=da^O&(U^da);var Ga=1518500249}else ra=O^U^da,Ga=1859775393;else N<60?(ra=O&U|da&(O|U),Ga=2400959708):(ra=O^U^da,Ga=3395469782);ra=((G<<5|G>>>27)&4294967295)+ra+ma+Ga+H[N]&4294967295;ma=da;da=U;U=(O<<30|O>>>2)&4294967295;O=G;G=ra}e[0]=e[0]+G&4294967295;e[1]=e[1]+O&4294967295;e[2]=e[2]+U&4294967295;e[3]=e[3]+da&4294967295;e[4]=e[4]+ma&4294967295}
function c(G,H){if(typeof G==="string"){G=unescape(encodeURIComponent(G));for(var N=[],O=0,U=G.length;O<U;++O)N.push(G.charCodeAt(O));G=N}H||(H=G.length);N=0;if(u==0)for(;N+64<H;)b(G.slice(N,N+64)),N+=64,A+=64;for(;N<H;)if(f[u++]=G[N++],A++,u==64)for(u=0,b(f);N+64<H;)b(G.slice(N,N+64)),N+=64,A+=64}function d(){var G=[],H=A*8;u<56?c(k,56-u):c(k,64-(u-56));for(var N=63;N>=56;N--)f[N]=H&255,H>>>=8;b(f);for(N=H=0;N<5;N++)for(var O=24;O>=0;O-=8)G[H++]=e[N]>>O&255;return G}for(var e=[],f=[],h=[],k=[128],
q=1;q<64;++q)k[q]=0;var u,A;a();return{reset:a,update:c,digest:d,digestString:function(){for(var G=d(),H="",N=0;N<G.length;N++)H+="0123456789ABCDEF".charAt(Math.floor(G[N]/16))+"0123456789ABCDEF".charAt(G[N]%16);return H}}},To=function(a){a&&typeof a.dispose=="function"&&a.dispose()},jGa=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];bb(d)?jGa.apply(null,d):To(d)}},pGa=function(a,b){b=b===void 0?kGa:b;if(!lGa){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!==
"function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("fd"));c=(a.brands||[]).map(function(e){var f=new mGa;return Rl(f,1,e.brand).setVersion(e.version)});nGa(Ol(oGa,2,a.mobile),c);lGa=a.getHighEntropyValues(b)}var d=new Set(b);return lGa.then(function(e){var f=oGa.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&Rl(f,4,e.platformVersion);d.has("architecture")&&Rl(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&
Rl(f,7,e.uaFullVersion);return f}).catch(function(){return oGa.clone()})},qGa=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a},Uo=function(a){this.src=a;this.listeners={};this.typeCount_=0},rGa=function(){return ud.apply(0,arguments).map(String).join("__")},sGa=function(a,b){var c=b.filter(function(e){return!a.includes(e)}).map(function(e){return"+"+e}).join(),d=a.filter(function(e){return!b.includes(e)}).map(function(e){return"-"+e}).join();return c+d},vGa=function(){var a=window.defrostedResourcesJspb;
if(a&&Array.isArray(a))if(a=aea(tGa,uGa(a))){if((a=Wk(a,Vo,1,Fk()))&&a.length===1)return Do(a[0])}else Nj("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},wGa=function(a){if(a){var b=a?{ancestors:a.ancestors,childIssueCount:a.childIssueCount,relatedLinks:a.relatedLinks,statusUpdate:a.statusUpdate,description:a.description}:void 0;return Object.assign({},{issueId:a.issueId},b)}},xGa=function(a){var b;return((b=a.error)==null?void 0:b.message)!==
void 0},Wo=function(a){return!!a&&cb(a)&&(!!a.data&&a.data.message!==void 0||xGa(a))},Xo=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:xGa(a)&&a.error&&a.error.message?a.error.message:""},yGa=function(a){var b=new Yo;b=Fm(b,1,Number(a.targetIssueId));return Fm(b,2,a.afterIssueId?Number(a.afterIssueId):void 0)},zGa=function(a){return{targetIssueId:String(zl(a,1)),afterIssueId:zl(a,2)?String(zl(a,2)):void 0}},AGa=function(a){return{sourceIssueId:zl(a,3),issueRelationships:a.getIssueRelationshipsList().map(zGa),
totalSize:a.getTotalSize()}},BGa=function(a){var b=[];a=l(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.issueRelationships,totalChildCount:d.totalSize})}return b},CGa=function(a){return!(a==null||!a.relatedChildren.length)},EGa=function(a,b){var c=[].concat(p(a));a=new Set(a.map(function(h){return h.targetIssueId}));b=l(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$6:void 0},d=b.next())if(e.newItem$jscomp$6=
d.value,!a.has(e.newItem$jscomp$6.targetIssueId)){d=c.findIndex(function(h){return function(k){return k.targetIssueId===h.newItem$jscomp$6.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$6.afterIssueId?d===-1?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$6);a.add(e.newItem$jscomp$6.targetIssueId)}return DGa(c)},FGa=function(a,b){return DGa(a.filter(function(c){return c.targetIssueId!==b}))},DGa=function(a){for(var b=[],c=l(a.entries()),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;
var f=e.next().value;e=void 0;d=Object.assign({},f,{afterIssueId:(e=a[d-1])==null?void 0:e.targetIssueId});b.push(d)}return b},GGa=function(a){var b=new Map;a=l(a);for(var c=a.next(),d={};!c.done;d={previousOperation:void 0},c=a.next()){var e=c.value;c=e.issues.map(function(f){return f.issueId}).join(",");d.previousOperation=b.get(c);d.previousOperation?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:d.previousOperation.issues,eventTimestamps:[].concat(p(d.previousOperation.eventTimestamps),
p(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(h){f.previousOperation.done.reject(h);throw h;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(p(b.values()));a=l(b);d=a.next();for(c={};!d.done;c={operation$jscomp$5:void 0},d=a.next())c.operation$jscomp$5=d.value,c.operation$jscomp$5.newRelations=c.operation$jscomp$5.newRelations.map(function(f){return function(h){return f.operation$jscomp$5.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===
h.targetIssueId})}}(c));return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,p(f.issues.map(function(u){return k.findIndex(function(A){return A.targetIssueId===u.issueId})})));h=Math.min.apply(Math,p(h.issues.map(function(u){return q.findIndex(function(A){return A.targetIssueId===u.issueId})})));return f===h?0:f<h?-1:1})},MGa=function(a){return a?(a=a.getResponse())?Wk(a,HGa,1,Fk()).map(function(b){if(b&&b.getObjective()){var c,d;var e=
b.getObjective(),f=(c=b.getUri())==null?void 0:c.getResourcePath();if(e&&e.getId()){var h,k;c={objectiveId:f!=null?f:e.getId(),title:e.getTitle(),url:rxa(e.getUrl()),priorityRating:IGa(e==null?void 0:(h=e.getPriority())==null?void 0:pl(h,1)),keyResults:(k=Wk(e,JGa,7,Fk()).map(KGa).filter(Tk))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=X(b,LGa,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(Tk):[]:[]},KGa=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),
url:rxa(a.getUrl()),priorityRating:IGa(a==null?void 0:(b=a.getPriority())==null?void 0:pl(b,1))}}},IGa=function(a){if(!a)return"RATING_UNSPECIFIED";switch(a){case 1:return"P0";case 2:return"P1";case 3:return"P2";case 4:return"P3";case 5:return"P4";default:return"RATING_UNSPECIFIED"}},PGa=function(a){return a.getResponsesList().map(function(b){return Wk(b,NGa,1,Fk()).map(OGa)}).flat().filter(function(b){return b.signals.length>0})},OGa=function(a){var b=QGa(a.getTask());a=Wk(a,RGa,2,Fk());return{task:b,
signals:a.map(SGa).filter(Tk)}},UGa=function(a){return a.getResponsesList().map(function(b){return Wk(b,TGa,1,Fk()).map(QGa).filter(Tk)}).flat()},QGa=function(a){if(a){var b=a.getTaskId(),c=VGa(pl(a,2)),d=a.getTitle(),e=al(a.getCreatedTimestamp()),f=al(a.getLastModifiedTimestamp()),h=a.getExternalLink();var k=Wk(a,WGa,7,Fk());b={taskId:b,taskResourceType:c,title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:h,resourceRelationships:k.map(XGa),isStaleTask:kl(a,13),snoozeUntilTimestamp:al(X(a,
bl,14)),manualSignalTimestamp:al(X(a,bl,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:YGa[pl(a,1)],lastMentionTimestamp:al(X(a,bl,2)),lastMentionLink:Oh(a,4),docwrapRequestTimestamp:al(X(a,bl,3)),docwrapRequestLink:Oh(a,5)},b.driveResource=a):an(a,ZGa,9,$Ga)&&(a=Qm(a,ZGa,9,$Ga),a={priority:wn[a.getPriority()],accessLevel:Yya[a.getAccessLevel()],hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(Gk)},b.issueResource=a);return b}},XGa=function(a){return{category:aHa[a.getCategory()],
roleName:Oh(a,2)}},SGa=function(a){var b={timestamp:al(a.getTimestamp()),url:rxa(a.getUrl()),signalStatus:kl(a,8)?1:0};if(an(a,bHa,3,Zo)){a=Qm(a,bHa,3,Zo);var c={signal:cHa[a.getSignal()]};$o.has(c.signal)?(ap(a,2,dHa)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(an(a,bp,5,Zo)){c=Qm(a,bp,5,Zo);a={signal:eHa[c.getSignal()]};if($o.has(a.signal)){nk(c,dl,4)&&(a.reviewEstimate=Rva(X(c,dl,4)));c=X(c,fHa,5);var d=c==null?void 0:Qm(c,gHa,2,hHa);c=d?{currentAvailability:{comeBackTimestamp:al(d.getComeBackTimestamp())}}:
(c=c==null?void 0:Qm(c,iHa,1,hHa))?{futureAvailability:{comeBackTimestamp:al(c.getComeBackTimestamp()),futureOooTimestamp:al(X(c,bl,1))}}:void 0;a.clAuthorAvailability=c}else a=null;if(!a)return null;b.changelistAlert=a}else if(an(a,cp,4,Zo)){c=Qm(a,cp,4,Zo);a={signal:jHa[c.getSignal()]};if($o.has(a.signal)){if(d=c.getCommentNumbers())d=Hc(d,1,Sb,Fk(Gk)),d.length>0&&(a.commentNumbers=d);if(c=Qm(c,kHa,3,lHa))a.configurableAlertSubscriptionId=Oh(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(an(a,
mHa,7,Zo)){a=Qm(a,mHa,7,Zo);a={signal:nHa[a.getSignal()]};a=$o.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(an(a,oHa,9,Zo)){a=Qm(a,oHa,9,Zo);a={signal:nxa[a.getSignal()]};a=$o.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(an(a,pHa,10,Zo)){a=Qm(a,pHa,10,Zo);a={signal:oxa[a.getSignal()]};a=$o.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},VGa=function(a){switch(a){case 1:return"CHANGELIST";case 2:return"DRIVE";case 3:return"ISSUE";case 4:return"LAUNCH";
case 5:return"GERRIT";case 6:return"GOOGLE_TASKS";case 7:return"IRM";default:return"TASK_RESOURCE_TYPE_UNSPECIFIED"}},qHa=function(a){switch(a){case "CHANGELIST":return 1;case "DRIVE":return 2;case "ISSUE":return 3;case "LAUNCH":return 4;case "GERRIT":return 5;case "GOOGLE_TASKS":return 6;case "IRM":return 7;default:return 0}},rHa=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},sHa=function(a){if(!a)return 0;switch(a){case "ISSUE_TYPE_GROUPS_UNSPECIFIED":return 0;
case "STANDARD_TYPES":return 1;case "WTDM_TYPES":return 2;default:return 0}},uHa=function(a){return a?tHa[a]:tHa.ISSUE_SIGNAL_UNSPECIFIED},wHa=function(a){return a?vHa[a]:vHa.DRIVE_SIGNAL_UNSPECIFIED},yHa=function(a){return a?xHa[a]:xHa.CHANGELIST_SIGNAL_UNSPECIFIED},AHa=function(a){return a?zHa[a]:zHa.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},BHa=function(a){return a?fxa[a]:fxa.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},CHa=function(a){return a?hxa[a]:hxa.IRM_SIGNAL_UNSPECIFIED},DHa=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),
authorDisplayName:Oh(a,2),content:a.getContent(),lastModifiedTimestamp:al(X(a,bl,4))}},HHa=function(a,b){if(!b||!b.getData())return[];a=Lc(b,1,EHa,oc).get(a);if(!a)return[];var c=El(a,2),d,e;return Array.from((e=(d=b.getData())==null?void 0:Lc(d,2,FHa,mc))!=null?e:[]).map(function(f){if(c.some(function(u){return u===f[0].toString()})){var h=f[1],k,q=(k=b.getData())==null?void 0:Lc(k,1,dp,mc).get(h.getWorkspaceId());return GHa(h,q)}}).filter(Tk)},GHa=function(a,b){if(a&&a.getType()===3){var c=(new Date).getTime()/
1E3,d=al(a.getStartTime()),e=al(a.getEndTime());c=c>=d.seconds&&c<e.seconds;b=b&&b.getWorkspaceId_asString()!=="0"?{workspaceId:b.getWorkspaceId_asString(),name:b.getName()}:void 0;if(c&&b)return{name:a.getName(),iterationId:Gl(a,1),workspace:b,startTimestamp:d,endTimestamp:e}}},LHa=function(a){var b=a.getResponse();return b&&Wk(b,IHa,1,Fk())&&X(b,JHa,2)?Wk(b,IHa,1,Fk()).map(function(c){var d=X(b,JHa,2);if(c&&d){var e=c.getId();d=HHa(c.getId(),d);var f=c.getId(),h;c=c&&Lc(c,15,KHa,oc)?(h=Lc(c,15,
KHa,oc).get(f))==null?void 0:Ek(h,1,Fk()):void 0;e={workItemId:e,iterations:d,okrIds:c}}else e=void 0;return e}).filter(Tk):[]},ep=function(a){return a==="CRITIQUE"?"CHANGELIST":a==="DRIVE"?"DRIVE":a==="BUGANIZER"?"ISSUE":a==="WTDM"||a==="NON_WTDM"?"ISSUE":a==="GERRIT"?"GERRIT":a==="GOOGLE_TASKS"?"GOOGLE_TASKS":a==="IRM"?"IRM":"TASK_RESOURCE_TYPE_UNSPECIFIED"},PHa=function(a){var b={};a=l(Lc(a,1,MHa,oc).entries());for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;
b[c]={principalType:NHa[pl(d,1)],detailedUserType:OHa[pl(d,2)]}}return b},QHa=function(a,b){return a.map(function(c){return b[c]||null})},RHa=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},SHa=function(a){switch(a){case 1:return"daily";case 2:return"weekly";case 3:return"monthly";case 0:break;default:Gb(a)}},THa=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return Gb(a)}},UHa=function(a){var b={id:a.getId()};a.getVersion()&&
(b.version=a.getVersion());return b},VHa=function(a){var b=(new fp).setId(a.id);a.version&&b.setVersion(a.version);return b},WHa=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},XHa=function(a){return(new gp).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},YHa=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:pl(b,2))===1},$Ha=function(a){var b;return((b=X(a,ZHa,1))==null?void 0:b.getEffectiveSloEditPolicy())===
1},aIa=function(a){var b=X(a,Kk,2),c=SHa(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("ld");if(c==null)throw Error("md");if(d==null)throw Error("nd");if(e==null)throw Error("od");var f=a.getId_asLegacyNumberOrString();b=Pk(b);var h=a.getOrdinal();d=UHa(d);e=WHa(e);var k=Pm(a,7),q=Hc(a,8,Qb,Fk()).map($za);a=Uk(a,9,Fk(Gk));return{id:f,lead:b,frequency:c,ordinal:h,timeZone:d,timeOfDay:e,daysRemaining:k,types:q,sloIds:a}},bIa=function(a){var b=(new hp).setId(a.id),c=Ok(a.lead);
b=W(b,Kk,2,c).setFrequency(THa(a.frequency)).setOrdinal(a.ordinal).setTimeZone(VHa(a.timeZone)).setTimeOfDay(XHa(a.timeOfDay)).setDaysRemaining(a.daysRemaining);c=a.types.map(aAa);b=ip(b,8,c);return jp(b,9,a.sloIds)},cIa=function(a){return iAa(a.getIt())},dIa=function(a){var b=new kp,c=b.setIt;var d=(new lp).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);var e=a.elements.map(nAa);d=sn(d,5,e);e=a.effectiveElements.map(nAa);d=sn(d,6,e).setIsArchived(a.isArchived);
a:switch(a=a.alertState,a){case "OFF":a=1;break a;case "ON":a=2;break a;default:throw Error("pc`"+a);}a=Nk(d,8,a);return c.call(b,a)},eIa=function(a){return{id:a.getId_asString(),name:a.getName(),description:a.getDescription()}},fIa=function(a){if(a=a.getIt())return fCa(a);throw Error("pd");},gIa=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(Gk),pathIds:a.getPathIdsList_asString()}},hIa=function(a){return{teamId:a,version:0,
name:a,description:"",pathIds:[a],pathNames:[a],collapsedPathNames:[a],members:[],deleted:!1,slo:{inherit:!1,sloId:"0",comment:"",sourceTeamId:"0"}}},mp=function(a,b){b=new tj(b);a.subscribe(b);return b},np=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},op=function(a){var b=b===void 0?"":b;var c,d=!1;a.subscribe(function(e){d=!0;c=e}).unsubscribe();if(!d)throw Error("rd`"+b);return c},pp=function(){return Xf(function(a,b){return Pj(a,b)})},iIa=function(){return function(a){return a.pipe(y(function(b){return{event:b,
timestamp:Date.now()}}),Eja(a.pipe(Sf(1E4,qp))))}},rp=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},jIa=function(a,b,c){return c!=null&&c.displayName?Ce(c.displayName):a.pipe(y(function(d){var e;return(e=d==null?void 0:d.name)!=null?e:b}),y(function(d){return rp(d)}))},kIa=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},lIa=function(a,b){return{displayAs:"Component: "+a.name,
queryAtom:"componentId:"+a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},sp=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(Tk);return b.length===0?"":a+":("+b.join("|")+")"+(c?"+":"")},tp=function(){return ud.apply(0,arguments).filter(Boolean).join(" AND ")},mIa=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},nIa=function(a,b){return a.filter(function(c){return tm(c)===b})},oIa=function(a){a&
1&&(Vd(),I(0,"svg",2),K(1,"polygon",3),J())},pIa=function(a){if(a&1){var b=r();I(0,"div",0);M("click",function(){t(b);var c=P();return v(c.closed.emit("click"))})("animationstart",function(c){t(b);var d=P();return v(d._onAnimationStart(c.animationName))})("animationend",function(c){t(b);var d=P();return v(d._onAnimationDone(c.animationName))})("animationcancel",function(c){t(b);var d=P();return v(d._onAnimationDone(c.animationName))});I(1,"div",1);Og(2);J()()}a&2&&(a=P(),xg(a._classList),wg("mat-menu-panel-animations-disabled",
a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating),D("id",a.panelId),ng("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},qIa=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},rIa=function(a,b){if(a&1){var c=r();I(0,"button",4);M("click",function(){var d=t(c).$implicit;P(3).onSelect.emit(d);
return v()});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a.displayAs," "))},tIa=function(a){a&1&&Dg(0,rIa,2,1,"button",3,sIa);a&2&&(P(),a=Mg(2),Eg(a))},vIa=function(a,b){if(a&1){var c=r();I(0,"button",2);M("click",function(){var d=t(c).$implicit;P().onSelect.emit(d);return v()});Q(1);J();Kg(2);E(3,tIa,2,0)}a&2&&(a=b.$implicit,z(),R(" ",a.displayAs," "),z(),a=Lg(uIa(a)),z(),F(a.length?3:-1))},wIa=function(a){a&1&&Og(0)},xIa=function(a){a&1&&Hg(0)},yIa=function(a){if(a&1){var b=r();I(0,"button",6,1);M("click",
function(e){t(b);var f=P();return v(f.onClick(e))});C(2,xIa,1,0,"ng-container",7);J()}if(a&2){a=P();var c=L(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",(d=a.tooltip)!=null?d:"");ng("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);z(2);D("ngTemplateOutlet",c)}},zIa=function(a){a&1&&Hg(0)},AIa=function(a){if(a&1){var b=r();I(0,"button",8,1);M("click",function(e){t(b);var f=P();return v(f.onClick(e))});C(2,zIa,1,0,"ng-container",7);J()}if(a&2){a=P();var c=
L(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",(d=a.tooltip)!=null?d:"");ng("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);z(2);D("ngTemplateOutlet",c)}},BIa=function(a){a&1&&Hg(0)},CIa=function(a){if(a&1){var b=r();I(0,"button",9,1);M("click",function(e){t(b);var f=P();return v(f.onClick(e))});C(2,BIa,1,0,"ng-container",7);J()}if(a&2){a=P();var c=L(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",(d=a.tooltip)!=null?d:"");
ng("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);z(2);D("ngTemplateOutlet",c)}},DIa=function(a){a&1&&Hg(0)},EIa=function(a){if(a&1){var b=r();I(0,"button",10,1);M("click",function(e){t(b);var f=P();return v(f.onClick(e))});C(2,DIa,1,0,"ng-container",7);J()}if(a&2){a=P();var c=L(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",(d=a.tooltip)!=null?d:"");ng("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);z(2);D("ngTemplateOutlet",c)}},FIa=function(a){a&
1&&Hg(0)},GIa=function(a){if(a&1){var b=r();I(0,"button",6,1);M("click",function(e){t(b);var f=P();return v(f.onClick(e))});C(2,FIa,1,0,"ng-container",7);J()}if(a&2){a=P();var c=L(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",(d=a.tooltip)!=null?d:"");ng("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);z(2);D("ngTemplateOutlet",c)}},HIa=function(a){a&1&&(I(0,"span",10),Vd(),I(1,"svg",12),K(2,"path",13),J(),I(3,"svg",14),K(4,"path",15),J()())},IIa=function(a){return a instanceof
up?a:new up(a,{})},vp=function(a){a=IIa(a);return new up(a.char,Object.assign({},a.modifiers,{shift:!0}))},JIa=function(a){a=IIa(a);return new up(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},KIa=function(){var a=vp("f");a=IIa(a);return new up(a.char,Object.assign({},a.modifiers,{alt:!0}))},MIa=function(a){if(a instanceof up){var b=LIa(a.char);a.modifiers.ctrl&&(b="ctrl+"+b);a.modifiers.alt&&(b="alt+"+b);a.modifiers.shift&&(b="shift+"+b);return b}return a instanceof Array?a.map(MIa).join(" "):
LIa(a)},wp=function(){return ud.apply(0,arguments)},LIa=function(a){switch(a){case "a":case "b":case "c":case "d":case "e":case "f":case "g":case "h":case "i":case "j":case "k":case "l":case "m":case "n":case "o":case "p":case "q":case "r":case "s":case "t":case "u":case "v":case "w":case "x":case "y":case "z":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":case "0":case "/":case "*":case ".":case "<":case ">":case "?":return a;case "F1":return"f1";case "F3":return"f3";
case "DOWN":return"down";case "UP":return"up";case "RIGHT":return"right";case "LEFT":return"left";case "SPACE":return"space";case "ENTER":return"enter";default:return Gb(a)}},NIa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},OIa=function(a){switch(a){case "P0":return xp.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return xp.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return xp.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return xp.CHANGE_ISSUE_PRIORITY_TO_P3;case "P4":return xp.CHANGE_ISSUE_PRIORITY_TO_P4;
case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},PIa=function(a){switch(a){case "NEW":return xp.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return xp.CHANGE_ISSUE_STATUS_TO_ASSIGNED;case "ACCEPTED":return xp.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return xp.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return xp.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return xp.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;case "INTENDED_BEHAVIOR":return xp.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;
case "OBSOLETE":return xp.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return xp.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "DUPLICATE":return xp.CHANGE_ISSUE_STATUS_TO_DUPLICATE;case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},QIa=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},RIa=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},
a)},SIa=function(a,b){return yp(b,a)},TIa=function(a,b,c){b[a]=c},UIa=function(){return{}},ZIa=function(a,b){var c=new a;return b==null?c:VIa(b,WIa,XIa,YIa,a)},WIa=function(a,b){return b[a]},XIa=function(a,b,c){b.Serializable$values[a]=c},YIa=function(a){if(a==null)throw Error("sd");return new a},VIa=function(a,b,c,d,e){e=d(e);for(var f=$Ia(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},u=l(f.keys||[]),A=u.next(),G={};!A.done;G={mapMetadata:void 0},A=u.next()){A=A.value;var H=b(A,a);if(H!=
null){var N=void 0;if(h.hasOwnProperty(A)){if(f.emptyArrayIsUnset&&H.length===0)continue;N=aJa(H,b,c,d,!0,!0,h[A])}else if(k.hasOwnProperty(A))N=aJa(H,b,c,d,!1,!0,k[A]);else if(q.hasOwnProperty(A))G.mapMetadata=q[A],N=G.mapMetadata.isPropertyArray?H.map(function(O){return function(U){return bJa(U,O.mapMetadata,b,c,d)}}(G)):bJa(H,G.mapMetadata,b,c,d);else if(Array.isArray(H)){if(f.emptyArrayIsUnset&&H.length===0)continue;N=aJa(H,b,c,d,!0,!1)}else N=H;c(A,e,N)}}return e},bJa=function(a,b,c,d,e){for(var f=
{},h=l(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];q!=null&&(f[k]=aJa(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},aJa=function(a,b,c,d,e,f,h){if(f&&h==null)throw Error("td");if(a==null)return a;var k;e&&f?k=a.map(function(q){return VIa(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?VIa(a,b,c,d,h):typeof a==="object"?JSON.parse(JSON.stringify(a)):a;return k},$Ia=function(a,b){if(b instanceof zp)a=RIa(b.getPartialClassMetadata());else if(a instanceof
zp)a=RIa(a.getPartialClassMetadata());else throw Error("ud");return a},cJa=function(a){if(a.queryParams!=null){var b={},c;for(c in a.queryParams)a.queryParams[c]!==void 0&&(b[c]=a.queryParams[c]);a.queryParams=b}},dJa=function(a,b,c){c=c===void 0?{}:c;b=l(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=l(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},eJa=function(a,b){a&1&&(I(0,"div",1),Vd(),I(1,"svg",2)(2,"g"),K(3,"path",3),J()(),Wd(),I(4,"span",4),Q(5),
J()());a&2&&(a=b.ngIf,ng("aria-label",a)("title",a),z(5),ch(a))},fJa=function(a){a&1&&K(0,"waldo-availability-chip",1);a&2&&(a=P(),D("user",a.user),ng("coinonly",a.coinonly))},gJa=function(a,b){if(a&1){var c=r();I(0,"a",7);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.clickSegment.emit(d.name||d.path))});Q(1);J()}a&2&&(a=b.$implicit,D("href",a.path,uf),z(),R(" ",a.name||a.path," "))},hJa=function(a){a&1&&(I(0,"button",4),K(1,"mat-icon",5),J(),I(2,"mat-menu",null,0),Dg(4,gJa,2,2,"a",
6,Cg),J());if(a&2){a=L(3);var b=P();D("matMenuTriggerFor",a);z(4);Eg(b.segments)}},iJa=function(a){a&1&&K(0,"mat-icon",2);a&2&&(a=P().$implicit,D("svgIcon",a.icon))},jJa=function(a,b){if(a&1){var c=r();I(0,"button",1);M("click",function(){var e=t(c).$implicit,f=P();return v(f.onClickButton(e.value))});E(1,iJa,1,1,"mat-icon",2);Q(2);J()}if(a&2){a=b.$implicit;b=P();var d;D("disableRipple",!0)("matTooltip",(d=a.tooltip)!=null?d:"");ng("aria-checked",b.value===a.value);z();F(a.icon?1:-1);z();R(" ",a.name,
" ")}},kJa=function(a){a=a.getBoundingClientRect();return a.top>=0&&a.bottom<=window.innerHeight},lJa=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},mJa=function(a,b,c,d){var e=(d=d===void 0?!1:d)?function(f){return c.partially(f)}:function(f){return c.fully(f)};return(new pe(function(f){f.next(e(a));var h=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});h.observe(a);return function(){h.unobserve(a)}})).pipe(Xf())},nJa=function(a,b,c){var d=
(c===void 0?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return Ue(Ce(void 0),Qe(window,"scroll").pipe(Sf(500))).pipe(y(function(){return d(a)}),Xf())},pJa=function(a){return!!a.match(oJa)&&!a.endsWith("/history")},Ap=function(a){return a.type==="hyperlink"},qJa=function(a){return Ap(a)&&pJa(a.href)},sJa=function(a){return Ap(a)&&!!a.href.match(rJa)},tJa=function(a,b){b=b===void 0?!1:b;if(a.endsWith("/history"))return null;var c,d;return(a=(d=(c=a.match(oJa))==null?void 0:
c[2])!=null?d:null)?b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png":null},uJa=function(a){return a.type==="issueReference"},vJa=function(a){return Ap(a)&&!qJa(a)&&!(Ap(a)&&a.href.startsWith("mailto:"))},wJa=function(a,b){a=a===void 0?"":a;b=b===void 0?48:b;var c=c===void 0?"...":c;var d=[].concat(p(a));if(d.length<=b)return a;a=b-[].concat(p(c)).length;d=d.slice(0,a).join("");String.prototype.trimEnd!=null&&(d=d.trimEnd());return d+c},xJa=function(a){a=
a===void 0?"":a;var b=new Set([].concat(p('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(p(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return a.length===0?[]:a.split(/[\s]+/g)},yJa=function(a){return a.split("").every(function(b){return b.length===1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},AJa=function(a){if(a!=null){a=[].concat(p(a)).slice(0,100);a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=zJa[b.value])return b}},BJa=function(a){if(a.includes('"')||a.includes("'"))return[];
var b=[].concat(p(a.matchAll(RegExp("(^|[;,\\-\\s])+(\\d+)","g"))));if(b.length)return b.map(function(c){c=l(c);c.next();c.next();return c.next().value});a=[].concat(p(a.matchAll(RegExp("(b|b-qa|issues)\\/(\\d+)","g"))));return a.length?a.map(function(c){c=l(c);c.next();c.next();return c.next().value}):[]},CJa=function(a,b){var c;a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},DJa=function(a){a&1&&(K(0,"img",1),S(1,"async"));if(a&2){a=P(2);D("src",T(1,2,a.srcRedirected$),uf);
var b;ng("alt",(b=a.alt)!=null?b:"user provided image")}},EJa=function(a){if(a&1){var b=r();I(0,"a",3);S(1,"async");S(2,"async");M("click",function(c){t(b);var d=P(2);return v(d.trigger(c))})("keydown.enter",function(c){t(b);var d=P(2);return v(d.trigger(c))});I(3,"b-glue");K(4,"mat-icon",4);J();Fg(5);Q(6);S(7,"async");Gg();J()}a&2&&(a=P(2),D("href",T(1,3,a.src$),uf)("title",T(2,5,a.src$)),z(6),ch(T(7,7,a.srcTruncated$)))},FJa=function(a){a&1&&(E(0,DJa,2,4,"img",1),S(1,"async"),Ag(2,EJa,8,9,"a",2));
if(a&2){var b;a=P();F((b=T(1,1,a.showImage$))?0:2,b)}},GJa=function(a){a&1&&(K(0,"mat-icon",0),S(1,"async"));a&2&&(a=P(),Pg("matTooltip","Unable to load image ",T(1,2,a.srcTruncated$)))},HJa=function(a){a&1&&(K(0,"br"),I(1,"a",1),K(2,"b-secure-image-widget",2),J(),K(3,"br"));if(a&2){a=P();var b=P();z();D("href",a,uf)("rel",b.EXTERNAL_LINK_REL);z();D("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},IJa=function(a){a&1&&K(0,"b-secure-image-widget",0);if(a&2){a=P();var b=P();D("src",
a)("alt",b.alt||"User provided screenshot")("showByDefault",!1)}},JJa=function(a){a&1&&(E(0,HJa,4,5),S(1,"async"),Ag(2,IJa,1,3,"b-secure-image-widget",0));if(a&2){var b;a=P();F((b=T(1,1,a.displayMode$))===a.DisplayMode.SHOW?0:b===a.DisplayMode.COLLAPSE?2:-1)}},MJa=function(){var a={timeout:5E3};a=a===void 0?{}:a;return KJa!=null?KJa:KJa=LJa(a)},NJa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},LJa=function(a){a=a===void 0?{}:a;var b;return w(function(c){if(c.nextAddress==
1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=Uh("https://apis.google.com/js/api.js");c=x(c,OJa(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("xd");return b.client&&b.client.load?c.jumpTo(3):x(c,NJa(),3)}return c.return(b)})},PJa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},RJa=function(a,b){b=b===void 0?0:b;var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(QJa.has(a))return QJa.get(a);
b=Promise.resolve(c.reloadAuthResponse()).finally(function(){QJa.delete(a)});QJa.set(a,b);return b}return Promise.resolve()},SJa=function(a,b){var c;return a.client.init({apiKey:b.apiKey,clientId:b.clientId,scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain,fetchBasicProfile:(c=b.fetchBasicProfile)!=null?c:!0})},TJa=function(a){for(var b={},c=l(a.keys),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.getAll(d);b[d]=e.length>1?e:e[0]}return b},UJa=function(){var a=window.gapi;
if(!a)return Promise.reject(Error("zd"));if(a.client&&a.client.load)return Promise.resolve(a);Lj("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){Lj("gapi client has finished loading");b(a)},onerror:c})})},Bp=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},YJa=function(){var a=Cp("gapi.config.get");if((a=Bp(a&&a("googleapis.config/sessionIndex")))||(a=Bp(ya.__X_GOOG_AUTHUSER))||(a=Bp(Cp("google.authuser"))))return a;
var b=ya.location.href||"",c=VJa.exec(b);try{a=Bp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=WJa.exec(b);try{a=Bp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=XJa.exec(b);return(a=Bp(a&&a[1]))?a:""},ZJa=function(){var a=Cp("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Cp("gapi.auth2.getAuthInstance"))?a():null;if(!a||!a.isSignedIn.get())return null;a=(b=a.currentUser.get().getAuthResponse(!0))&&b.access_token;if(!a)return null;b=b.token_type}return{Authorization:(b||
"Bearer")+" "+a}},aKa=function(a){a=a===void 0?"":a;var b;if(!(b=ZJa())){b=a;var c=c===void 0?YJa():c;a={};var d=$Ja([]);d&&(a.Authorization=d);b||(b=(b=Cp("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},bKa=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=Cp("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&(c.indexOf("staging")>0||c.indexOf("test")>0)?2:1:0,c=c===2;c&&(b=7);switch(b){case 7:b="dev-";c="-googleapis.corp";break;
case 1:b="autopush-";c="-googleapis.sandbox";break;case 2:b="staging-";c="-googleapis.sandbox";break;default:b="",c=".clients6"}a="https://"+b+a+c+".google.com";(b=(b=Cp("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},dKa=function(a,b){return a<1||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return ya.setTimeout(c,b)})).then(function(){return cKa(a-1,b*2)})},cKa=function(a,b){a=a===void 0?0:a;b=b===void 0?5E3:b;var c=ya;try{do var d=c.gapi;
while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return dKa(a,b);ya.gapi||(ya.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},eKa=function(){var a=a===void 0?"":a;var b=b===void 0?YJa():b;var c=Cp("gapi.config.update");c("googleapis.config/auth/useFirstPartyAuth",!0);c("googleapis.config/auth/useFirstPartyAuthV2",!0);b&&c("googleapis.config/sessionIndex",b);a&&c("client/apiKey",a)},fKa=function(a){return(new Dp).setEventType(2).setRpcType(2).setLookupType(a)},
gKa=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},Ep=function(a){var b;return(b=a==null?void 0:a.trim())!=null?b:""},Fp=function(a){var b=b===void 0?hKa:b;var c=db(a),d=function(e){e=l(e);e.next();e=yBa(e);return b(c,e)};return function(){var e=ud.apply(0,arguments),f=this||ya,h=iKa.get(f);h||(h={},iKa.set(f,h));f=h;h=[this].concat(p(e));e=d?d(h):h;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=l(h);h=k.next().value;k=yBa(k);h=a.apply(h,k);f=f[e]=h}return f}},jKa=function(a,
b){this.text=a;this.specialRowHandler=b},Gp=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(e<192||e>382)e=null;else{var f=kKa[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-192],e=f==="^"?null:f)}e&&(c!==d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}return b.length>0?(b.push(a.substr(c)),b.join("")):a},Jp=function(a,
b,c,d){Hp.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;lKa(this.transport_,this.id_);d&&Ip(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},mKa=function(a){var b={};if(a){a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.containerType;d=d.id||"";c&&d&&(b[c]=b[c]||d)}}return b},oKa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return nKa(b.name,b.email)}).join(", "):
""},rKa=function(a,b,c){var d=[];a&&(pKa("name",a.name,b,d,c),pKa("phone",a.phone,b,d,c),pKa("photo",a.photo,b,d,c));return d.map(function(e){return new qKa(e)})},pKa=function(a,b,c,d,e){if(b){b=l(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,Cp("metadata.containerType",f)!=="CONTACT"){var h=f;var k=c,q=d,u=e,A=Cp("metadata.encodedContainerId",h),G=Cp("metadata.containerType",h);k.contains(A,G)?h=k.get(A,G)||0:(h=q.length,k.set(A,G,h),q.push({}),u.push(A));k=q[h];k[a]=k[a]||[];k[a].push(f)}}},
tKa=function(a,b){if(a){a=sKa(a);for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},uKa=function(a,b){if(a){a=a.getPhoto();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasUrl()&&(!b||b(d.getMetaData())))return d.getUrl()}}return null},vKa=function(a){this.query_=a;this.error_=0},yKa=function(a,b){for(var c=[],d=a.length,e=0,f=[],h,k,q=0;q<d;){switch(e){case 0:var u=a.indexOf("<",q);if(u<0){if(c.length===
0)return a;c.push(a.substring(q));q=d}else c.push(a.substring(q,u)),k=u,q=u+1,wKa?(xKa.lastIndex=q,u=xKa.exec(a)):(xKa.lastIndex=0,u=xKa.exec(a.substring(q))),u?(f=["<",u[0]],h=u[1],e=1,q+=u[0].length):c.push("<");break;case 1:u=a.charAt(q++);switch(u){case "'":case '"':var A=a.indexOf(u,q);A<0?q=d:(f.push(u,a.substring(q,A+1)),q=A+1);break;case ">":f.push(u);c.push(b(f.join(""),h));e=0;f=[];k=h=null;break;default:f.push(u)}break;default:throw Error();}e===1&&q>=d&&(q=k+1,c.push("<"),e=0,f=[],k=h=
null)}return c.join("")},Lp=function(a,b){b=a(b||zKa,void 0);a=Kp();b&&b.renderAsElement?a=b.renderAsElement():(a=a.createElement("DIV"),b=AKa(b),a.innerHTML=ei(b));a.childNodes.length==1&&(b=a.firstChild,b.nodeType==1&&(a=b));return a},AKa=function(a){return cb(a)?a.toSafeHtml&&(a=a.toSafeHtml(),a instanceof bi)?a:Oi("zSoyz"):Oi(String(a))},CKa=function(a,b){var c=0,d=0;BKa(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},BKa=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},
DKa=function(a,b,c,d){Mp.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c},EKa=function(){return Np?"Webkit":Op?"Moz":null},FKa=function(a,b){if(b&&a in b)return a;var c=EKa();return c?(c=c.toLowerCase(),a=c+Yj(a),b===void 0||a in b?a:null):null},Pp=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},Rp=function(a,b,c,d,e,f,h){this.serverBase_=typeof a==="string"?new Qp(a):a;this.useApiary_=!!c;this.apiaryClientDeferred_=d;this.onAuthError_=e;this.testGaia_=
!!f;this.contactStoreConfig_=h;this.commonAcParams_={};this.acWrappers_={};this.onAcCompleteListeners_={};this.inputToAcWrapper_={};this.focusedElement_=null},GKa=function(a){this.rows_=a||[]},HKa=function(a){a=a.getEmail();if(!a)return!1;for(var b=l(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(a.includes(c.value))return!0;return!1},KKa=function(a,b,c){a=a.filter(IKa());if(!c)return a;c=c.map(function(d){return{contact:d,toString:function(){return d.text}}});
b=JKa(new GKa(c),b,c.length);return a.concat(b.map(function(d){return d.contact}))},Tp=function(a){return(a!=null?a:[]).map(Sp)},Up=function(a){return(a!=null?a:[]).map(LKa)},Sp=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=Dk(b)):c!=null?(a="GROUP",b=Dk(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},Vp=function(a){return(a!=null?a:[]).map(Sp)},Wp=function(a){return(a!=null?a:[]).map(LKa)},LKa=function(a){var b=l(a.split(":"));
a=b.next().value;b=b.next().value;if(!a||!b)throw Error("Od`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("Pd`"+b);}},Xp=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},Yp=function(a){return{admins:Tp(a.admins),editors:Tp(a.editors),appenders:Tp(a.appenders),readers:Tp(a.readers),restrictedReaders:Tp(a.restrictedReaders),
restrictedPlusReaders:Tp(a.restrictedPlusReaders),inheritedAdmins:Tp(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},Zp=function(a){return{admins:Up(a.admins),editors:Up(a.editors),appenders:Up(a.appenders),readers:Up(a.readers),restrictedReaders:Up(a.restrictedReaders),restrictedPlusReaders:Up(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},$p=function(a){return a?Da(a,"@")?a:a==="[Deleted User]"?a:a+"@google.com":""},PKa=function(a){var b="",c=[];a=l(a.split(","));for(var d=
a.next();!d.done;d=a.next())b+=d.value.trim(),b.match(/^[a-z0-9@\-\._\+]+$/i)?(c.push(MKa(b)),b=""):NKa.test(b)?(c.push(b),b=""):b.match(/(".+" )?<.+>/)&&(b=MKa(OKa(b)),c.push(b),b="");return c.join(", ")+", "},OKa=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},MKa=function(a){a=a.trim();Ua(a)===","&&(a=a.slice(0,-1));a=$p(a);var b=a.split("@");return b.length===2?b[0]+"@"+b[1].toLowerCase():a},RKa=function(a){if(QKa==null){var b=typeof document!=="undefined"?
document.head:null;QKa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return QKa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},SKa=function(a){if(a&1){var b=r();I(0,"div",0);M("clickOutside",function(){t(b);var c=P();return v(c.closeHovercard$.next())})("mouseenter",function(){t(b);P().isOnHover$.next(!0);return v()})("mouseleave",function(){t(b);P().isOnHover$.next(!1);return v()});Og(1);J()}a&2&&(a=P(),xg(a.className),D("cdkTrapFocusAutoCapture",
a.wasTriggeredByKeyboard))},TKa=function(a){a&1&&K(0,"img",9);a&2&&(a=P(),D("src",a.person.imageUrl,uf)("alt",a.person.name+"'s profile picture"))},UKa=function(a){a&1&&(I(0,"div",10),Q(1),J());a&2&&(a=P(),z(),ch(a.person.email))},VKa=function(a){a&1&&(I(0,"div",11)(1,"onedev-chip",12),K(2,"mat-icon",13),Q(3),J()());a&2&&(a=P(),z(3),R("",a.outOfOfficeDescription," "))},WKa=function(a){a&1&&(I(0,"li"),Q(1),J());a&2&&(a=P(2),z(),ch(a.person.title))},XKa=function(a){a&1&&K(0,"li",18)},YKa=function(a){a&
1&&(I(0,"li"),Q(1),J());a&2&&(a=P(2),z(),ch(a.person.department))},ZKa=function(a){a&1&&(Fg(0),K(1,"mat-icon",14),I(2,"div",15)(3,"ul",16),C(4,WKa,2,1,"li",8)(5,XKa,1,0,"li",17)(6,YKa,2,1,"li",8),J()(),Gg());a&2&&(a=P(),z(4),D("ngIf",a.person.title),z(),D("ngIf",a.person.title&&a.person.department),z(),D("ngIf",a.person.department))},$Ka=function(a){a&1&&(Fg(0),K(1,"mat-icon",19),I(2,"div",15),Q(3),J(),Gg());a&2&&(a=P(),z(3),ch(a.person.location))},aLa=function(a){a&1&&(Fg(0),K(1,"mat-icon",20),I(2,
"div",15)(3,"ul",16)(4,"li")(5,"a",21),Q(6,"Teams"),J()(),K(7,"li",18),I(8,"li")(9,"a",21),Q(10,"Calendar"),J()(),K(11,"li",18),I(12,"li")(13,"a",21),Q(14,"CLs"),J()(),K(15,"li",18),I(16,"li")(17,"a",21),Q(18,"Readability"),J()()()(),Gg());a&2&&(a=P(),z(5),D("href","https://moma.corp.google.com/person/"+a.person.ldap,uf),z(4),D("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",uf),z(4),D("href","https://critique.corp.google.com/"+a.person.ldap,uf),z(4),
D("href","https://icanread.corp.google.com/s/"+a.person.ldap,uf))},cLa=function(a){return a&&bLa.test(a)?a.split("@")[0]:""},dLa=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},eLa=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},fLa=function(a,b){return a.map(function(c){var d,e,f,h=(e=b==null?void 0:(d=b.matches)==null?void 0:d.find(function(N){return N.lookupId===
c}))==null?void 0:(f=e.personId)==null?void 0:f[0];if(!h)return{ldap:cLa(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[h];var q;h=(q=eLa(d==null?void 0:d.email))==null?void 0:q.value;var u,A;q=d==null?void 0:(u=d.name)==null?void 0:(A=u[0])==null?void 0:A.displayName;var G,H;u=d==null?void 0:(G=d.photo)==null?void 0:(H=G[0])==null?void 0:H.url;A=dLa(d==null?void 0:d.organization);G=A==null?void 0:A.title;H=A==null?void 0:A.department;A=A==null?void 0:A.location;return{ldap:cLa(h),
email:h||c||"",name:q||"",imageUrl:u,title:G,department:H,location:A}})},gLa=function(a,b){a!=null&&this.append.apply(this,arguments)},aq=function(a){hLa.call(this,a)},bq=function(a,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;a instanceof iLa||(jLa==void 0&&(jLa=new kLa),a=jLa.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();hLa.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=
this.parsedImageUrl_.getQuery()},lLa=function(a,b){a&1&&(I(0,"onedev-person-hovercard-body",1),S(1,"async"),Og(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),Og(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),J());a&2&&(a=b.ngIf,b=P(),D("person",a)("outOfOfficeDescription",T(1,2,b.outOfOfficeDescription$)))},mLa=function(a){a&1&&(I(0,"onedev-person-hovercard",2,0),Og(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),
J());if(a&2){a=L(1);var b=P();D("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},nLa=function(a){a&1&&Hg(0)},oLa=function(a){a&1&&(I(0,"span",2),C(1,nLa,1,0,"ng-container",3),J(),I(2,"onedev-hovercard",null,1),K(4,"b-person-card",4),J());if(a&2){a=L(3);var b=P(),c=L(3);D("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);z();D("ngTemplateOutlet",c);z(3);D("email",b.email)}},pLa=function(a){a&1&&Hg(0)},qLa=function(a){a&1&&C(0,pLa,1,0,"ng-container",3);a&2&&(P(),a=
L(3),D("ngTemplateOutlet",a))},rLa=function(a){a&1&&Og(0)},sLa=function(){return new Wc(3008,!1)},tLa=function(a,b){return{type:7,name:a,definitions:b,options:{}}},cq=function(a,b){return{type:4,styles:b===void 0?null:b,timings:a}},dq=function(a){return{type:6,styles:a,offset:null}},eq=function(a,b){return{type:0,name:a,styles:b,options:void 0}},fq=function(a,b){return{type:1,expr:a,animation:b,options:null}},gq=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<
2?0:uLa(parseFloat(a[1]),a[2])},uLa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},vLa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,e=0,f="";if(typeof a==="string"){d=a.match(d);if(d===null){b.push(new Wc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=uLa(parseFloat(d[1]),d[2]);var h=d[3];h!=null&&(e=uLa(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,a<0&&(b.push(new Wc(3100,
!1)),c=!0),e<0&&(b.push(new Wc(3101,!1)),c=!0),c&&b.splice(d,0,new Wc(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},wLa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},hq=function(a,b,c){b.forEach(function(d,e){var f=xLa(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},iq=function(a,b){b.forEach(function(c,d){d=xLa(d);a.style[d]=""})},yLa=function(a){if(Array.isArray(a)){var b;a.length==1?b=a[0]:b={type:2,steps:a,options:null};a=
b}return a},ALa=function(a,b,c){var d=b.params||{};a=zLa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Wc(3001,!1))})},zLa=function(a){var b=[];if(typeof a==="string"){for(var c;c=BLa.exec(a);)b.push(c[1]);BLa.lastIndex=0}return b},CLa=function(a,b,c){var d=""+a,e=d.replace(BLa,function(f,h){h=b[h];h==null&&(c.push(new Wc(3003,!1)),h="");return h.toString()});return e==d?a:e},xLa=function(a){return a.replace(DLa,function(){return ud.apply(0,arguments)[1].toUpperCase()})},FLa=
function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(h,k){d.has(k)||e.push(k);d.set(k,h)});if(e.length){c={};for(var f=1;f<b.length;c={kf$jscomp$1:void 0},f++)c.kf$jscomp$1=b[f],e.forEach(function(h){return function(k){return h.kf$jscomp$1.set(k,ELa(a,k))}}(c))}}return b},jq=function(a,b,c){switch(b.type){case 7:return a.visitTrigger(b,c);case 0:return a.visitState(b,c);case 1:return a.visitTransition(b,c);case 2:return a.visitSequence(b,c);case 3:return a.visitGroup(b,c);case 4:return a.visitAnimate(b,
c);case 5:return a.visitKeyframes(b,c);case 6:return a.visitStyle(b,c);case 8:return a.visitReference(b,c);case 9:return a.visitAnimateChild(b,c);case 10:return a.visitAnimateRef(b,c);case 11:return a.visitQuery(b,c);case 12:return a.visitStagger(b,c);default:throw new Wc(3004,!1);}},ELa=function(a,b){return window.getComputedStyle(a)[b]},lq=function(a){switch(a.length){case 0:return new kq;case 1:return a[0];default:return new GLa(a)}},ILa=function(a,b,c){b=b===void 0?new Map:b;c=c===void 0?new Map:
c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),u=q==f,A=u&&h||new Map;k.forEach(function(G,H){var N=H;if(H!=="offset")switch(N=xLa(N),G){case "!":G=b.get(H);break;case "*":G=c.get(H);break;default:G=HLa(N,G,d)}A.set(N,G)});u||e.push(A);h=A;f=q});if(d.length)throw new Wc(3502,!1);return e},KLa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&JLa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&JLa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&
JLa(c,"destroy",a))})}},JLa=function(a,b,c){var d=c.totalTime;b=LLa(a.element,a.triggerName,a.fromState,a.toState,b||a.phaseName,d==void 0?a.totalTime:d,c.disabled?!0:!1);a=a._data;a!=null&&(b._data=a);return b},LLa=function(a,b,c,d,e,f,h){return{element:a,triggerName:b,fromState:c,toState:d,phaseName:e===void 0?"":e,totalTime:f===void 0?0:f,disabled:!!h}},mq=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},MLa=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},OLa=function(a){a=
a.parentNode||a.host||null;return a===NLa?null:a},PLa=function(a,b){for(;b;){if(b===a)return!0;b=OLa(b)}return!1},SLa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=QLa(d,b),typeof d=="function")){c.push(d);d=void 0;break a}var e=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(e==null||e.length<4)b.push(new Wc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(RLa(d,e));f[0]!="<"||d=="*"&&e=="*"||c.push(RLa(e,d));d=void 0}}return d}):c.push(a);
return c},QLa=function(a,b){switch(a){case ":enter":return"void => *";case ":leave":return"* => void";case ":increment":return function(c,d){return parseFloat(d)>parseFloat(c)};case ":decrement":return function(c,d){return parseFloat(d)<parseFloat(c)};default:return b.push(new Wc(3016,!1)),"* => *"}},RLa=function(a,b){var c=TLa.has(a)||ULa.has(a),d=TLa.has(b)||ULa.has(b);return function(e,f){var h=a=="*"||a==e,k=b=="*"||b==f;!h&&c&&typeof e==="boolean"&&(h=e?TLa.has(a):ULa.has(a));!k&&d&&typeof f===
"boolean"&&(k=f?TLa.has(b):ULa.has(b));return h&&k}},WLa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(VLa,""));a=a.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(c){return".ng-trigger-"+c.slice(1)}).replace(/:animating/g,".ng-animating");return[a,b]},XLa=function(a){if(typeof a=="string")return null;var b=null;Array.isArray(a)?a.forEach(function(c){c instanceof Map&&c.has("offset")&&(b=parseFloat(c.get("offset")),c.delete("offset"))}):a instanceof
Map&&a.has("offset")&&(b=parseFloat(a.get("offset")),a.delete("offset"));return b},YLa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:vLa(a,b).duration,delay:0,easing:""};if(a.split(/\s+/).some(function(c){return c.charAt(0)=="{"&&c.charAt(1)=="{"}))return b={duration:0,delay:0,easing:"",dynamic:!0},b.strValue=a,b;a=vLa(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},nq=function(a){if(a){if(a=Object.assign({},a),a.params){var b=a;var c=
(c=a.params)?Object.assign({},c):null;b.params=c}}else a={};return a},ZLa=function(a,b,c,d,e,f,h,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:h===void 0?null:h,subTimeline:k===void 0?!1:k}},aMa=function(a,b,c,d,e,f,h,k,q,u){f=f===void 0?new Map:f;h=h===void 0?new Map:h;u=u===void 0?[]:u;return(new $La).buildKeyframes(a,b,c,d,e,f,h,k,q,u)},bMa=function(a,b){var c=new Map,d;a.forEach(function(e){if(e==="*"){d!=null||(d=b.keys());e=l(d);
for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else for(e=l(e),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;c.set(f,h)}});return c},cMa=function(a,b,c,d,e,f,h,k,q,u,A,G,H){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:u,postStyleProps:A,totalTime:G,errors:H}},dMa=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},eMa=function(a,b){var c=
Object.assign({},b);Object.entries(a).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;e!=null&&(c[d]=e)});return c},gMa=function(a,b){return new fMa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},hMa=function(a,b,c){a.has(b)?a.has(c)||a.set(c,a.get(b)):a.has(c)&&a.set(b,a.get(c))},iMa=function(a){return a&&a.nodeType===1},jMa=function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},
lMa=function(a,b,c){var d=[];b.forEach(function(h){return d.push(jMa(h))});var e=[];c.forEach(function(h,k){var q=new Map;h.forEach(function(u){var A=ELa(k,u);q.set(u,A);A&&A.length!=0||(k.__ng_removed=kMa,e.push(k))});a.set(k,q)});var f=0;b.forEach(function(h){return jMa(h,d[f++])});return e},mMa=function(a,b){function c(h){if(!h)return 1;var k=f.get(h);if(k)return k;var q=h.parentNode;d.has(q)?k=q:e.has(q)?k=1:k=c(q);f.set(h,k);return k}var d=new Map;a.forEach(function(h){return d.set(h,[])});if(b.length==
0)return d;var e=new Set(b),f=new Map;b.forEach(function(h){var k=c(h);k!==1&&d.get(k).push(h)});return d},oq=function(a,b){var c;(c=a.classList)==null||c.add(b)},pq=function(a,b){var c;(c=a.classList)==null||c.remove(b)},oMa=function(a,b,c){lq(c).onDone(function(){return nMa(a,b)})},qMa=function(a){var b=[];pMa(a,b);return b},pMa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof GLa?pMa(d.players,b):b.push(d)}},rMa=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=
d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!b.hasOwnProperty(e)||a[e]!==b[e])return!1}return!0},sMa=function(a,b,c){var d=c.get(a);if(!d)return!1;var e=b.get(a);e?d.forEach(function(f){return e.add(f)}):b.set(a,d);c.delete(a);return!0},vMa=function(a,b){var c=null,d=null;Array.isArray(b)&&b.length?(c=tMa(b[0]),b.length>1&&(d=tMa(b[b.length-1]))):b instanceof Map&&(c=tMa(b));return c||d?new uMa(a,c,d):null},tMa=function(a){var b=null;a.forEach(function(c,d){if(d==="display"||d==="position")b=
b||new Map,b.set(d,c)});return b},wMa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},xMa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},yMa=function(a){var b=function(){var c=a.apply(this,[].concat(p(ud.apply(0,arguments))))||this;c.defaultColor=void 0;c.color=void 0;return c};Y(b,a);ea.Object.defineProperties(b.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},
set:function(c){c=c||this.defaultColor;c!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),c&&this._elementRef.nativeElement.classList.add("mat-"+c),this._color=c)}}});return b},zMa=function(a){var b=function(){var c=a.apply(this,[].concat(p(ud.apply(0,arguments))))||this;c._disableRipple=!1;return c};Y(b,a);ea.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=
zi(c)}}});return b},AMa=function(a){var b=function(){var c=a.apply(this,[].concat(p(ud.apply(0,arguments))))||this;c._disabled=!1;return c};Y(b,a);ea.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=zi(c)}}});return b},qq=function(a){if(a.user){var b,c;return(c=(b=a.user.user)==null?void 0:b.emailAddress)!=null?c:""}if(a.placeholder){var d;return(d=a.placeholder.role)!=null?d:""}return""},BMa=function(a){return new Map(a.map(function(b){return[qq(b),
b]}))},CMa=function(a){if(a&1){var b=r();I(0,"div",1)(1,"button",2);M("click",function(){t(b);var c=P();return v(c.action())});Q(2);J()()}a&2&&(a=P(),z(2),R(" ",a.data.action," "))},DMa=function(){},EMa=function(a){a&1&&K(0,"span",1);a&2&&(a=P(),D("innerHtml",a.data.htmlMessage,tf))},FMa=function(a){a&1&&(I(0,"span",2),Q(1),J());a&2&&(a=P(),z(),ch(a.data.message))},GMa=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P();return v(c.snackBarRef.dismissWithAction())});Q(1);
J()}a&2&&(a=P(),z(),R(" ",a.data.actionLabel," "))},HMa=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P();return v(c.snackBarRef.dismiss())});Q(1);J()}a&2&&(a=P(),z(),R(" ",a.data.dismissLabel," "))},IMa=function(a){if(a&1){var b=r();I(0,"button",7);M("click",function(){t(b);var c=P();return v(c.snackBarRef.dismiss())});K(1,"mat-icon",8);J()}},rq=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},JMa=function(){},KMa=function(a,
b){for(var c=a.length;c--;)b(a[c])},LMa=function(){},MMa=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?Ci(a.substring(0,a.length-2)):a.endsWith("s")?Ci(a.substring(0,a.length-1))*1E3:a==="0"?0:null},NMa=function(a,b){for(var c=a.nativeElement.parentElement;c&&!c.classList.contains("mat-mdc-dialog-container");)c=c.parentElement;return c?b.find(function(d){return d.id===c.id}):null},OMa=function(a){if(a&1){var b=r();I(0,"button",5);M("click",function(){t(b);var c=P();return v(c.dialogRef.close(!1))});
Q(1);J()}a&2&&(a=P(),z(),R(" ",a.cancelButtonText," "))},PMa=function(a){var b=[];a=[].concat.apply([],p(a.map(function(e){return e.actions})));a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$68:void 0},c=a.next())d.action$jscomp$68=c.value,b.some(function(e){return function(f){return Pj(e.action$jscomp$68,f)}}(d))||b.push(d.action$jscomp$68);return b},QMa=function(a){return Array.from(new Set([].concat.apply([],p(a.map(function(b){return b.issueIds})))))},RMa=function(a){return{encryptedMedia:Ada(sq(a,
1)),errorMessage:a.getErrorMessage()}},TMa=function(a){var b=new SMa;tq(b,1,ub(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new uq).setIt(hza(a));c.call(b,a)}return b},VMa=function(a){var b;return{attachments:((b=a.getAttachmentsList())!=null?b:[]).map(UMa)}},UMa=function(a){if(a!=null)return tza(a.getIt())},WMa=function(a,b){a&1&&(I(0,"li"),Q(1),J());a&2&&(a=b.$implicit,z(),ch(a))},XMa=function(a){return a.endsWith("?")?a.slice(0,a.length-
1):a},YMa=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},ZMa=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},$Ma=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,editCount:0,variations:new Set}},aNa=function(a){var b;return(b=Qk(a))!=null?b:null},bNa=function(a){var b;return(b=Rk(a))!=null?b:null},cNa=function(a,b){b=(b===void 0?{}:b).comment;return{path:"/issues/"+
a,fragment:b?"comment"+b:void 0}},vq=function(a,b){b=b===void 0?{}:b;b=b===void 0?{}:b;a={q:"status:open componentid:"+a};b.includeArchived&&(a.q+=" archived:all");a={path:"/issues",queryParams:a};a.queryParams.s="created_time:desc";return a},dNa=function(a){var b={};a=(b.component=a?String(a):void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},eNa=function(a){return{path:"/components/"+a}},fNa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},gNa=
function(a){return{path:"/slos/"+a+"/edit"}},hNa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},iNa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},jNa=function(a){var b;return(b=nm(a))==null?void 0:b.title},kNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.status)!=null?c:void 0},lNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.priority)!=null?c:void 0},mNa=function(a){var b,c;return(c=(b=nm(a))==
null?void 0:b.assigneeUser)!=null?c:void 0},nNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.reporterUser)!=null?c:void 0},oNa=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return Rk(a)},pNa=function(a){var b;a=(b=nm(a))==null?void 0:b.componentId;return Rk(a)},qNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.ccUsers)!=null?c:[]},rNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},sNa=function(a){var b,
c;return(c=(b=nm(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},tNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.type)!=null?c:void 0},uNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.foundInVersion)!=null?c:[]},vNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.targetedToVersion)!=null?c:[]},wNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.changelist)!=null?c:[]},xNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.postmortems)!=null?c:[]},yNa=function(a){var b;
return((b=nm(a))==null?void 0:b.inProd)||!1},zNa=function(a){var b;return(b=nm(a))==null?void 0:b.effort},ANa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.staffing)!=null?c:void 0},BNa=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},CNa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},ENa=function(a){return DNa(a)},DNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.isDeleted)!=null?c:!1},GNa=function(a){return FNa(a)},
FNa=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},HNa=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},JNa=function(a){return INa(a)},INa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.retention)!=null?c:void 0},KNa=function(a){var b,c;return(c=(b=nm(a))==null?void 0:b.duplicateOfIssueId)!=null?c:void 0},MNa=function(a){return LNa(a)},LNa=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?
void 0:b.retentionState)!=null?c:void 0},NNa=function(a){var b;return Rk(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},ONa=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},PNa=function(a){return a==null?void 0:a.effortSpec},QNa=function(a){a=PNa(a);return!(!a||!a.name&&!a.inherit)},RNa=function(a){return a==null?void 0:a.componentPathInfo},UNa=function(a){if(!a)return{};var b,c=l((b=a.match(SNa))!=null?b:[]);c.next();b=c.next().value;var d;
a=l((d=a.match(TNa))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:Qk(b),commentVersion:Qk(d)}},VNa=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},XNa=function(a,b){if(WNa[a])return WNa[a][b]},YNa=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},aOa=function(a){if(a&1){var b=r();Fg(0,1);I(1,"onedev-hovercard-action",3);S(2,"async");M("onAction",function(){t(b);var e=P();return v(ZNa(e))});I(3,"span");
Q(4);J()();I(5,"onedev-hovercard-action",3);S(6,"async");M("onAction",function(){t(b);var e=P();return v($Na(e))});I(7,"span");Q(8);J()();Gg()}if(a&2){a=P();z();var c;D("disabled",(c=T(2,4,a.actionService.assigneeUpdating$))!=null?c:!1);z(3);ch(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");z();var d;D("disabled",(d=T(6,6,a.actionService.ccUpdating$))!=null?d:!1);z(3);ch(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},bOa=function(a){a&1&&K(0,"b-availability-chip",
2);a&2&&(a=P(2),D("user",a.email))},cOa=function(a){a&1&&(Fg(0),Q(1),Gg(),E(2,bOa,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();z();ch(a.content);z();F(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},dOa=function(a){a&1&&Hg(0)},eOa=function(a){a&1&&(I(0,"span",3),C(1,dOa,1,0,"ng-container",4),J(),I(2,"onedev-hovercard",null,1),K(4,"b-issue-person-card",5),J());if(a&2){a=L(3);var b=P(),c=L(1),d=P();D("onedevHovercardTrigger",a);ng("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?
"0":null);z();D("ngTemplateOutlet",c);z(3);D("email",b.email)}},fOa=function(a){a&1&&Hg(0)},gOa=function(a){a&1&&C(0,fOa,1,0,"ng-container",4);a&2&&(P(),a=L(1),D("ngTemplateOutlet",a))},hOa=function(a,b){a&1&&(C(0,cOa,3,2,"ng-template",null,0,nh),E(2,eOa,5,4)(3,gOa,1,1,"ng-container"));a&2&&(a=P(),z(2),F(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?2:3))},iOa=function(a){a&1&&K(0,"b-user-display-name",0);a&2&&(a=P(),D("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",
a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},jOa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),ch(a.getDisplayString()))},kOa=function(a){a&1&&Hg(0)},lOa=function(a){a&1&&(I(0,"span",2),C(1,kOa,1,0,"ng-container",3),J(),I(2,"onedev-hovercard",null,1),K(4,"b-issue-person-card",4),J());if(a&2){a=L(3);var b=P(),c=L(3);D("onedevHovercardTrigger",a);z();D("ngTemplateOutlet",c);z(3);D("email",b.email)}},mOa=function(a){a&1&&Hg(0)},nOa=function(a){a&1&&C(0,mOa,
1,0,"ng-container",3);a&2&&(P(),a=L(3),D("ngTemplateOutlet",a))},pOa=function(a){a&1&&K(0,"img",5);a&2&&(a=P(2),P(),D("src",oOa[a.email],uf))},qOa=function(a){a&1&&K(0,"img",8);a&2&&(a=P(3),D("src",a.src,uf)("srcset",a.srcset))},rOa=function(a){a&1&&(I(0,"span",7),S(1,"async"),E(2,qOa,1,2,"img",8),J());if(a&2){a=P(2);var b=P();wg("team-member",T(1,5,b.isTeamMember$))("anonymous",!a.showImage);z(2);F(a.showImage?2:-1)}},tOa=function(a){a&1&&(E(0,pOa,1,1,"img",5),E(1,rOa,3,7,"span",6));if(a&2){a=P();
var b=P();F(a.email&&sOa(b,a.email)?0:-1);z();F(sOa(b,a.email)?-1:1)}},uOa=function(a,b){a&1&&(E(0,lOa,5,3)(1,nOa,1,1,"ng-container"),C(2,tOa,2,2,"ng-template",null,0,nh));a&2&&(a=P(),F(a.isNonObfuscatedEmail(b.email)?0:1))},vOa=function(a){a&1&&K(0,"b-user-image",3);a&2&&(a=P(),D("email",a.email))},wOa=function(a){a&1&&Hg(0)},xOa=function(a){a&1&&(I(0,"span",5),C(1,wOa,1,0,"ng-container",6),J(),I(2,"onedev-hovercard",null,1),K(4,"b-issue-person-card",7),J());if(a&2){a=L(3);var b=P(),c=L(5);D("onedevHovercardTrigger",
a);z();D("ngTemplateOutlet",c);z(3);D("email",b.email)}},yOa=function(a){a&1&&Hg(0)},zOa=function(a){a&1&&C(0,yOa,1,0,"ng-container",6);a&2&&(P(),a=L(5),D("ngTemplateOutlet",a))},AOa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),ch(a.getEmailDisplayString(a.email,a.ldapOnly)))},BOa=function(a){a&1&&(I(0,"span",4),K(1,"b-availability-chip",8),J());a&2&&(a=P(),z(),D("user",a.email))},COa=function(a,b){Zj(a)&&b&&(a=a.trim(),a=a.endsWith("@google.com")?a.split("@google.com")[0]:a.endsWith("@prod.google.com")?
a.split("@prod.google.com")[0]:a);return a},DOa=function(a){a&1&&K(0,"b-icon",6)},EOa=function(a){a&1&&K(0,"b-user-image",7);a&2&&(a=P(2),D("email",a.email))},FOa=function(a){a&1&&(E(0,DOa,1,0,"b-icon",6),S(1,"async"),Ag(2,EOa,1,1,"b-user-image",7));a&2&&(a=P(),F(a.enableGroupIcon&&T(1,1,a.isGroup$)?0:2))},GOa=function(a){a&1&&K(0,"b-user-display-name",3);a&2&&(a=P(),D("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},HOa=function(a){a&1&&Hg(0)},IOa=function(a){a&1&&(I(0,
"span",8),C(1,HOa,1,0,"ng-container",9),J(),I(2,"onedev-hovercard",null,1),K(4,"b-issue-person-card",10),J());if(a&2){a=L(3);P();var b=L(3),c=P();D("onedevHovercardTrigger",a);z();D("ngTemplateOutlet",b);z(3);D("email",c.email)}},JOa=function(a){a&1&&Hg(0)},KOa=function(a){a&1&&C(0,JOa,1,0,"ng-container",9);a&2&&(P(),a=L(3),D("ngTemplateOutlet",a))},LOa=function(a){a&1&&(I(0,"span",11),Q(1),J());a&2&&(a=P(2),z(),ch(a.email))},MOa=function(a){a&1&&(E(0,IOa,5,3)(1,KOa,1,1,"ng-container"),C(2,LOa,2,
1,"ng-template",null,0,nh));a&2&&(a=P(),F(a.isNonObfuscatedEmail(a.email)?0:1))},NOa=function(a){a&1&&(K(0,"mat-icon",4),S(1,"async"),S(2,"async"));if(a&2){a=P();var b,c;D("svgIcon",(b=T(1,2,a.iconName$))!=null?b:"")("matTooltip",(c=T(2,4,a.iconToolTip$))!=null?c:"")}},OOa=function(a){a&1&&K(0,"b-availability-chip",5);a&2&&(a=P(),D("user",a.email))},POa=function(a){a&1&&Hg(0)},QOa=function(a){a&1&&C(0,POa,1,0,"ng-container",8);a&2&&(a=P(),D("ngTemplateOutlet",a.calendarButtonRow))},ROa=function(a){if(a&
1){var b=r();I(0,"mat-form-field",3)(1,"input",9);M("focus",function(c){t(b);var d=P();return v(d.showPicker(c.target))});J()()}a&2&&(a=P(),z(),D("formControl",a.timeFormControl))},VOa=function(a){if(a&1){var b=r();I(0,"button",12);M("click",function(){t(b);var c=P(2);SOa(c,new Uj);c.includeTimePicker&&(c.dateTime=new bk,TOa(c,new bk));UOa(c);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"Today");J()}},WOa=function(a){if(a&1){var b=r();I(0,"button",13);M("click",function(){t(b);var c=P(2);
SOa(c);c.includeTimePicker&&(c.dateTime=void 0);c.saveChanges();return v(c.saveClicked.emit())});Q(1,"None");J()}},XOa=function(a){a&1&&(I(0,"div",1),E(1,VOa,2,0,"button",10),E(2,WOa,2,0,"button",11),K(3,"mat-divider"),J());a&2&&(a=P(),z(),F(a.todayButtonEnabled?1:-1),z(),F(a.noneButtonEnabled&&!a.required?2:-1))},YOa=function(a){a&1&&(K(0,"div"),S(1,"lowercase"));a&2&&(a=P(3),zg("bv2-edit-icon ",T(1,3,a.type)))},ZOa=function(a){a&1&&(I(0,"div")(1,"label"),Q(2),J(),E(3,YOa,2,5,"div",13),J());a&2&&
(a=P(2),zg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),z(2),R(" ",a.title," "),z(),F(a.readonly||a.disabled?-1:3))},$Oa=function(a){a&1&&Hg(0)},aPa=function(a){if(a&1){var b=r();I(0,"div",17);M("menuClosed",function(){t(b);var d=P(3);return v(wq(d,null,!1,!0))});C(1,$Oa,1,0,"ng-container",18);J()}if(a&2){P(3);a=L(7);var c=L(10);D("matMenuTriggerFor",a);z();D("ngTemplateOutlet",c)}},cPa=function(a,b){a&1&&(I(0,"a",19),Q(1),J());a&2&&(a=P(4),qg("aria-label","customfield",a.customFieldId,
":",b),D("queryParams",jh(5,bPa,"customfield"+a.customFieldId+':"'+b+'"')),z(),R(" ",b," "))},dPa=function(a){a&1&&Q(0," -- ")},ePa=function(a){if(a&1){var b=r();I(0,"div",16);E(1,cPa,2,7,"a",19)(2,dPa,1,0);K(3,"br");I(4,"button",20);M("menuClosed",function(){t(b);var e=P(3);return v(wq(e,null,!1,!0))});Q(5," Edit ");J()()}if(a&2){var c;a=P(3);var d=L(7);z();F((c=a.getDisplayValue(""))?1:2,c);z(3);pg("aria-label","Edit item for ",a.title);D("matMenuTriggerFor",d)}},fPa=function(a){a&1&&E(0,aPa,2,
2,"div",15)(1,ePa,6,4,"div",16);a&2&&(a=P(2),F(a.choices.length>50&&a.customFieldId!==0?1:0))},gPa=function(a){a&1&&Hg(0)},hPa=function(a){a&1&&(I(0,"div",14),C(1,gPa,1,0,"ng-container",18),J());a&2&&(P(2),a=L(10),z(),D("ngTemplateOutlet",a))},jPa=function(a){if(a&1){var b=r();I(0,"div",12,3);M("click",function(c){t(b);var d=P();return v(wq(d,c,!0,!1))})("keydown",function(c){t(b);var d=P();return v(iPa(d,c))})("keydown.escape",function(){t(b);var c=L(2);return v(c.hide())});E(3,ZOa,4,5,"div",13);
E(4,fPa,2,1)(5,hPa,2,1,"div",14);J()}a&2&&(a=P(),zg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name),wg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),qg("aria-label","",a.title," value is ",a.getDisplayValue("empty")),D("matTooltip",a.getTooltip()),ng("aria-disabled",!1),z(3),F(a.title?3:-1),z(),F(a.type==="ENUM"?4:5))},kPa=function(a){if(a&1){var b=r();I(0,"div",23);M("click",function(){t(b);var c=P(2);return v(c.setFieldValue(!c.value))});I(1,"label");Q(2);J()()}a&2&&(a=
P(2),zg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),z(2),ch(a.title))},mPa=function(a){if(a&1){var b=r();I(0,"div",21);E(1,kPa,3,4,"div",13);I(2,"b-slide-toggle",22);M("modelChange",function(){t(b);var d=P();return v(d.setFieldValue(!d.value))});J()()}if(a&2){a=P();zg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name);D("ngClass",kh(10,lPa,a.disabled,a.readonly))("matTooltip",a.getTooltip());ng("aria-disabled",!1);z();F(a.title?1:-1);z();var c;D("disabled",a.disabled||
a.readonly)("aria-label",a.name)("model",(c=a.value)!=null?c:void 0)}},nPa=function(a){a&1&&K(0,"b-availability-chip",24);a&2&&(a=P(2),D("user",a.value))},oPa=function(a){a&1&&E(0,nPa,1,1,"b-availability-chip",24);a&2&&(a=P(),F(a.value&&a.enableWaldoAvailability?0:-1))},pPa=function(a){if(a&1){var b=r();I(0,"button",27);M("click",function(){t(b);var c=P(2);return v(c.clearFieldValue())});I(1,"span",28);K(2,"mat-icon",29);J();Q(3," \u00a0 ");J()}a&2&&(a=P(2),wg("b-menu-item-checked",a.value==null),
D("disabled",a.value==null))},qPa=function(a){a&1&&(I(0,"span",32),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.hotkey.displayAs))},rPa=function(a,b){if(a&1){var c=r();I(0,"button",30);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.setFieldValue(d.value))})("onHotkey",function(){var d=t(c).$implicit,e=P(2);e.setFieldValue(d.value);return v(e.enumMenuTrigger.closeMenu())});I(1,"span",31)(2,"span",28);K(3,"mat-icon",29);J();Q(4);E(5,qPa,2,1,"span",32);J()()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",
b.value==a.value),D("disabled",b.value==a.value)("hotkey",a.hotkey),ng("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),z(4),R(" ",a.displayText," "),z(),F(a.hotkey&&b.showHotkeyHint?5:-1))},sPa=function(a){a&1&&(E(0,pPa,4,3,"button",25),Dg(1,rPa,6,8,"button",26,Cg));a&2&&(a=P(),F(a.clearable?0:-1),z(),Eg(a.choices))},tPa=function(a){a&1&&K(0,"b-user-membership-chip",37);a&2&&(a=P(4),D("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},uPa=
function(a){a&1&&K(0,"b-user-image",38);a&2&&(a=P(4),D("email",a.value))},vPa=function(a){a&1&&(I(0,"span",39)(1,"b-person-hovercard",40),Q(2),J()());a&2&&(a=P(4),z(),D("email",a.value),z(),R(" ",a.getDisplayValue("--")," "))},wPa=function(a){a&1&&(I(0,"div",36),E(1,tPa,1,4,"b-user-membership-chip",37),E(2,uPa,1,1,"b-user-image",38),E(3,vPa,3,2,"span",39),J());a&2&&(a=P(3),z(),F(a.enableTeamAnnotations&&a.value?1:-1),z(),F(!a.enableTeamAnnotations&&a.value?2:-1),z(),F(a.enableTeamAnnotations?-1:3))},
xPa=function(a){a&1&&(I(0,"div"),E(1,wPa,4,3,"div",36),J());a&2&&(a=P(2),z(),F(a.isUser?1:-1))},yPa=function(a){a&1&&K(0,"b-truncated-span",41);a&2&&(a=P(3),D("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},zPa=function(a){a&1&&K(0,"b-truncated-span",44);a&2&&(a=P(3),zg("chippy status-",a.value),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},APa=function(a){a&1&&K(0,"b-truncated-span",43);a&2&&(a=
P(3),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},BPa=function(a){a&1&&K(0,"b-truncated-span",44);a&2&&(a=P(3),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},CPa=function(a){a&1&&K(0,"div",45)},DPa=function(a){a&1&&(I(0,"div"),E(1,yPa,1,4,"b-truncated-span",41)(2,zPa,1,6,"b-truncated-span",42)(3,APa,1,3,"b-truncated-span",43)(4,BPa,1,3,"b-truncated-span",44),E(5,CPa,1,0,"div",45),J());a&2&&(a=P(2),z(),F(a.title==="Priority"?1:
a.title==="Status"?2:a.title==="Triage phase"?3:4),z(4),F(a.title||a.readonly||a.disabled?-1:5))},EPa=function(a){a&1&&(I(0,"div",34),K(1,"mat-icon",46),J())},FPa=function(a){a&1&&(I(0,"div",35),K(1,"mat-icon",47),J())},GPa=function(a){if(a&1){var b=r();I(0,"div",33,4);M("keydown",function(c){t(b);var d=P();return v(iPa(d,c))})("click",function(c){t(b);var d=P();return v(wq(d,c,!0,!1))});E(2,xPa,2,1,"div")(3,DPa,6,2,"div");E(4,EPa,2,0,"div",34)(5,FPa,2,0,"div",35);J()}a&2&&(a=P(),wg("edit-field-user-container",
a.isUser)("edit-field-activated",a.isActive),z(2),F(a.isUser?2:3),z(2),F(a.type=="ENUM"?4:5))},HPa=function(){},IPa=function(){},JPa=function(a){if(a&1){var b=r();I(0,"div",23);M("click",function(d){t(b);return v(d.stopPropagation())});I(1,"b-date-time-picker-content",50);M("dateSelectionChange",function(d){t(b);var e=P(2);return v(e.googDateValue=d!=null?d:null)})("saveClicked",function(){t(b);var d=P(2);return v(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){t(b);var d=P(2);return v(wq(d,
null,!1,!1))});J()()}if(a&2){a=P(2);z();var c;D("required",!(a.clearable&&a.type==="DATE"))("date",(c=a.googDateValue)!=null?c:void 0)}},LPa=function(a){if(a&1){var b=r();I(0,"textarea",59);gh("ngModelChange",function(c){t(b);var d=P(4);fh(d.textBuffer,c)||(d.textBuffer=c);return v(c)});M("keydown",function(c){t(b);var d=P(4);return v(KPa(d,c))});J()}a&2&&(a=P(4),eh("ngModel",a.textBuffer),ng("aria-label",a.title))},NPa=function(a){if(a&1){var b=r();I(0,"input",60);gh("ngModelChange",function(c){t(b);
var d=P(4);fh(d.textBuffer,c)||(d.textBuffer=c);return v(c)});M("keydown",function(c){t(b);var d=P(4);return v(MPa(d,c))});J()}a&2&&(a=P(4),eh("ngModel",a.textBuffer),ng("type",a.type==="NUMERIC"?"number":"text")("aria-label",a.title))},OPa=function(a){a&1&&(I(0,"div"),E(1,LPa,1,2,"textarea",57)(2,NPa,1,3,"input",58),J());a&2&&(a=P(3),z(),F(a.multiline?1:2))},PPa=function(a){if(a&1){var b=r();I(0,"textarea",63);gh("ngModelChange",function(c){t(b);var d=P(4);fh(d.textBuffer,c)||(d.textBuffer=c);return v(c)});
M("keydown",function(c){t(b);var d=P(4);return v(KPa(d,c))})("autocompleteActive",function(c){t(b);var d=P(4);return v(d.autocompleteActive=c)});J()}a&2&&(a=P(4),eh("ngModel",a.textBuffer),D("bContactAutocomplete","MULTI"),ng("aria-label",a.title))},QPa=function(a){if(a&1){var b=r();I(0,"input",64);gh("ngModelChange",function(c){t(b);var d=P(4);fh(d.textBuffer,c)||(d.textBuffer=c);return v(c)});M("keydown",function(c){t(b);var d=P(4);return v(MPa(d,c))})("autocompleteActive",function(c){t(b);var d=
P(4);return v(d.autocompleteActive=c)});J()}a&2&&(a=P(4),eh("ngModel",a.textBuffer),D("bContactAutocomplete","SINGLE"),ng("type",a.type==="NUMERIC"?"number":"text")("aria-label",a.title))},RPa=function(a){a&1&&(I(0,"div"),E(1,PPa,1,3,"textarea",61)(2,QPa,1,4,"input",62),J());a&2&&(a=P(3),z(),F(a.multiline?1:2))},TPa=function(a){if(a&1){var b=r();I(0,"div",51);M("click",function(c){t(b);return v(c.stopPropagation())});E(1,OPa,3,1,"div");E(2,RPa,3,1,"div");I(3,"div",52)(4,"button",53);M("click",function(){t(b);
var c=P(2);return v(SPa(c))});K(5,"mat-icon",54);J();I(6,"button",55);M("click",function(c){t(b);var d=P(2);return v(wq(d,c,!1,!0))});K(7,"mat-icon",56);J()();I(8,"div",35);K(9,"mat-icon",47);J()()}a&2&&(a=P(2),z(),F(a.isUser?-1:1),z(),F(a.isUser?2:-1),z(2),pg("aria-label","Apply change to ",a.title),Pg("matTooltip","Apply change to ",a.title),D("disabled",a.value==a.textBuffer),z(2),pg("aria-label","Discard change to ",a.title),Pg("matTooltip","Discard change to ",a.title))},UPa=function(a){a&1&&
(I(0,"div",48,5),E(2,HPa,0,0)(3,IPa,0,0)(4,JPa,2,2,"div")(5,TPa,10,11,"div",49),J());if(a&2){var b;a=P();zg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit");z(2);F((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},VPa=function(a){switch(a==null?void 0:a.type){case "ENUM":return"ENUM";case "DATE":return"DATE";case "TEXT":return"TEXT";case "NUMERIC":return"NUMERIC";default:return null}},YPa=function(a){a=Math.abs(a);if(a<6E4)return"0 minutes";var b=Math.floor(a/864E5);a%=
864E5;var c=Math.floor(a/36E5),d=Math.floor(a%36E5/6E4),e=WPa(b),f=WPa(c),h=WPa(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=XPa("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=XPa("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=XPa("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},XPa=function(a,b,c){return(new ZPa(a)).format({COUNT:b,TEXT:c})},xq=function(a,b,c){c=c===void 0?2:c;var d=Math.floor((new Date).getTime()/1E3-a);if(d<
300)return"just now";if(!(d<0)){for(var e=[],f=l($Pa),h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;k=k.next().value;if(e.length>=c)break;var q=Math.floor(d/k);if(q>=1)b?e.push(""+q+aQa[h]):q===1?e.push(q+" "+h):e.push(q+" "+h+"s");else if(e.length)break;d-=q*k;if(q>1)break}if(e.length)return e.join(" ")+" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},bQa=function(a,b){a&1&&(I(0,"time",1),S(1,"async"),Q(2),J());if(a&2){a=P();var c=og(r(),"padding-left: ",
a.paddingLeftPx,"px");Mka(Kka,Lka,c,!1);D("title",b.title);ng("datetime",T(1,6,a.timestampIso$));z(2);ch(b.formatted)}},cQa=function(a,b){a&1&&(I(0,"span",4),Q(1," by "),K(2,"b-user-display-name",7),J());a&2&&(z(2),D("email",b)("hovercardEnabled",!1))},dQa=function(a,b){a&1&&(I(0,"div")(1,"span"),Q(2),J(),K(3,"b-formatted-date-time",8),J());a&2&&(a=P(),z(2),ch(a.pending?"Created on: ":"Submitted on: "),z(),D("timestamp",b))},eQa=function(a,b){a&1&&(K(0,"br"),Q(1));a&2&&(a=b.$implicit,z(),R("",a," "))},
fQa=function(a,b){a&1&&(I(0,"div",2)(1,"a",3),Q(2," CL "),I(3,"span"),Q(4),J()(),E(5,cQa,3,2,"span",4),K(6,"br")(7,"br"),E(8,dQa,4,2,"div"),I(9,"div",5),K(10,"div",6)(11,"br"),I(12,"div"),Q(13," Affected files: "),Dg(14,eQa,2,1,null,null,Cg),J()()());if(a&2){var c,d;a=P();z();D("href","http://critique.corp.google.com/"+a.changelistId,uf);z(3);ch(a.changelistId);z();F((c=b.author)?5:-1,c);z(3);F((d=b.timestamp)?8:-1,d);z(2);D("innerHTML",b.description,tf);z(4);Eg(b.affectedFiles)}},gQa=function(a){a&
1&&K(0,"b-changelist-card",5,1);if(a&2){a=L(1);var b=P();D("onedevIsHovercardReady",a.init)("changelistId",b.changelistId)}},hQa=function(a){a&1&&K(0,"b-changelist-chip",0);a&2&&(a=P(),D("changelistId",a.changelist))},iQa=function(a){a&1&&K(0,"b-gerrit-change-chip",1);a&2&&(a=P(),D("gerritChange",a.gerritChange))},jQa=function(a){a&1&&K(0,"b-changelist-card",4,1);if(a&2){a=L(1);var b=P();D("onedevIsHovercardReady",a.init)("changelistId",b.id)}},kQa=function(a){a&1&&Og(0,4)},lQa=function(a){a&1&&(I(0,
"div",11),K(1,"input",12),I(2,"div",13),Vd(),I(3,"svg",14),K(4,"path",15),J(),Wd(),K(5,"div",16),J()());a&2&&(a=P(),wg("mdc-checkbox--disabled",a.disabled),z(),D("checked",a.selected)("disabled",a.disabled))},mQa=function(a){a&1&&(I(0,"div",17),K(1,"input",18),I(2,"div",19),K(3,"div",20)(4,"div",21),J()());a&2&&(a=P(),wg("mdc-radio--disabled",a.disabled),z(),D("checked",a.selected)("disabled",a.disabled))},nQa=function(){},oQa=function(a){a&1&&(I(0,"span",4),C(1,nQa,0,0,"ng-template",6),J());a&2&&
(P(),a=L(3),z(),D("ngTemplateOutlet",a))},pQa=function(){},qQa=function(a){a&1&&(I(0,"span",5),C(1,pQa,0,0,"ng-template",6),J());a&2&&(P(),a=L(5),z(),D("ngTemplateOutlet",a))},rQa=function(){},sQa=function(a){a&1&&C(0,rQa,0,0,"ng-template",6);a&2&&(P(),a=L(1),D("ngTemplateOutlet",a))},tQa=function(){},uQa=function(a){a&1&&(I(0,"span",9),C(1,tQa,0,0,"ng-template",6),J());a&2&&(P(),a=L(3),z(),D("ngTemplateOutlet",a))},vQa=function(){},wQa=function(a){a&1&&(I(0,"span",9),C(1,vQa,0,0,"ng-template",6),
J());a&2&&(P(),a=L(5),z(),D("ngTemplateOutlet",a))},xQa=function(){},yQa=function(a){a&1&&C(0,xQa,0,0,"ng-template",6);a&2&&(P(),a=L(1),D("ngTemplateOutlet",a))},zQa=function(a,b){a&1&&(I(0,"mat-list-option",11),Q(1),J());a&2&&(a=b.$implicit,b=P(),vg("height","auto"),D("selected",b.selectedValues.has(a))("value",a),z(),R(" ",a," "))},AQa=function(a){var b,c=(b=a==null?void 0:a.added.length)!=null?b:0,d;b=(d=a==null?void 0:a.removed.length)!=null?d:0;return a?c>0&&b===0?["Add ("+c+")","Add "+c+" value(s)"]:
c===0&&b>0?["Remove ("+b+")","Remove "+b+" value(s)"]:["Save","Save all changes ("+c+" added, "+b+" removed)"]:["Save","(No changes)"]},BQa=function(a,b){a&1&&(I(0,"div",1,0),Og(2),J());a&2&&(a=b.id,b=P(),xg(b._classList),wg("mat-mdc-autocomplete-visible",b.showPanel)("mat-mdc-autocomplete-hidden",!b.showPanel)("mat-autocomplete-panel-animations-enabled",!b._animationsDisabled)("mat-primary",b._color==="primary")("mat-accent",b._color==="accent")("mat-warn",b._color==="warn"),D("id",b.id),ng("aria-label",
b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},CQa=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}},DQa=function(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}},EQa=function(a){if(a&1){var b=r();I(0,"mat-checkbox",8);M("click",function(d){t(b);return v(d.stopPropagation())})("change",function(){t(b);var d=P().$implicit,e=P();return v(e.toggleSelection(d))});
Q(1);J()}if(a&2){a=P().$implicit;var c=P();D("checked",c.selectedValuesMap[a]);z();R(" ",a," ")}},FQa=function(a){a&1&&(I(0,"div",7),Q(1),J());a&2&&(a=P().$implicit,z(),R(" ",a," "))},GQa=function(a,b){a&1&&(I(0,"mat-option",4),E(1,EQa,2,2,"mat-checkbox",6)(2,FQa,2,1,"div",7),J());a&2&&(a=b.$implicit,b=P(),D("value",a),z(),F(b.allowMultiSelect?1:2))},IQa=function(a){if(a&1){var b=r();I(0,"div",5)(1,"button",9);M("click",function(){t(b);var c=P();return v(HQa(c))})("keydown.enter",function(){t(b);
var c=P();return v(HQa(c))});K(2,"mat-icon",10);J();I(3,"button",11);M("click",function(){t(b);var c=P();return v(c.cancel())})("keydown.esc",function(){t(b);var c=P();return v(HQa(c))});K(4,"mat-icon",12);J()()}a&2&&(a=P(),z(),pg("aria-label","Apply changes to ",a.customFieldTitle),D("disabled",!a.hasPendingChanges),z(2),pg("aria-label","Discard changes to ",a.customFieldTitle))},JQa=function(a){if(a&1){var b=r();I(0,"a",16);M("click",function(){t(b);var c=P();return v(c.trackClick("viewTeamAssociationOnComponent"))});
I(1,"button",11);Q(2,"View team association on component");J()()}a&2&&(a=P(),D("href",a.ROUTES.editComponent.makeHref(a.componentId),uf))},KQa=function(a){if(a&1){var b=r();I(0,"a",4);M("click",function(){t(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});I(1,"span");Q(2);K(3,"mat-icon",5);J()()}if(a&2){a=P(2);var c=L(4);Pg("href","https://moma.corp.google.com/team/",a.teamId,"",uf);D("onedevHovercardTrigger",c);ng("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:
a.teamId)+" - link opens in a new tab");z();ng("id",a.teamLinkId);z();R("",a.teamName?a.teamName:a.teamId," ")}},LQa=function(a){a&1&&(I(0,"span",3),Q(1),J());if(a&2){a=P(2);var b=L(4);D("onedevHovercardTrigger",b);z();ch(a.teamName?a.teamName:a.teamId)}},MQa=function(a){a&1&&(E(0,KQa,4,7,"a",2),E(1,LQa,2,2,"span",3));a&2&&(a=P(),F(a.anchorLinkEnabled?0:-1),z(),F(a.anchorLinkEnabled?-1:1))},NQa=function(a){a&1&&K(0,"span",6)},OQa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(2),z(),ch(a.teamNotAssignedMessage))},
PQa=function(a){a&1&&(E(0,NQa,1,0,"span",6),E(1,OQa,2,1,"span"));a&2&&(a=P(),F(a.teamId!="0"?0:-1),z(),F(a.teamId=="0"?1:-1))},QQa=function(a){a&1&&K(0,"b-icon",2);a&2&&(a=P(),D("name",a.iconName))},RQa=function(a){a&1&&(I(0,"span",3),Q(1),J());a&2&&(a=P(),z(),ch(a.title))},SQa=function(a){a&1&&(I(0,"div",4),Q(1,"\u00a0"),J())},TQa=function(){return Jja(function(){return se(Promise.resolve(void 0))})},UQa=function(a){a&1&&K(0,"a",1)},YQa=function(a){var b=a.cloneNode(!0),c=b.querySelectorAll("[id]"),
d=a.nodeName.toLowerCase();b.removeAttribute("id");for(var e=0;e<c.length;e++)c[e].removeAttribute("id");d==="canvas"?VQa(a,b):(d==="input"||d==="select"||d==="textarea")&&WQa(a,b);XQa("canvas",a,b,VQa);XQa("input, textarea, select",a,b,WQa);return b},XQa=function(a,b,c,d){b=b.querySelectorAll(a);if(b.length)for(a=c.querySelectorAll(a),c=0;c<b.length;c++)d(b[c],a[c])},WQa=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+ZQa++)},VQa=function(a,
b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},$Qa=function(a){a=a.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}},aRa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},bRa=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},cRa=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,h=a.width*.05,k=a.height*.05;return c>a.top-k&&c<e+k&&b>f-h&&b<
d+h},dRa=function(a,b){a=a.rootNodes;if(a.length===1&&a[0].nodeType===b.ELEMENT_NODE)return a[0];var c=b.createElement("div");a.forEach(function(d){return c.appendChild(d)});return c},eRa=function(a,b,c){for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];if(e){var f=void 0;a.setProperty(d,e,((f=c)==null?0:f.has(d))?"important":"")}else a.removeProperty(d)}},zq=function(a,b){var c=b?"":"none";eRa(a.style,{"touch-action":b?"":"none","-webkit-user-drag":b?"":"none","-webkit-tap-highlight-color":b?"":
"transparent","user-select":c,"-ms-user-select":c,"-webkit-user-select":c,"-moz-user-select":c})},gRa=function(a,b){eRa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},fRa)},hRa=function(a,b){return b&&b!="none"?a+" "+b:a},jRa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=iRa(b.left,b.top)},iRa=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},kRa=function(a){var b=a.toLowerCase().indexOf("ms")>
-1?1:1E3;return parseFloat(a)*b},mRa=function(a){a=getComputedStyle(a);var b=lRa(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=lRa(a,"transition-duration");a=lRa(a,"transition-delay");return kRa(c[b])+kRa(a[b])},lRa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},nRa=function(a){return a.type[0]==="t"},oRa=function(a){a.preventDefault()},Aq=function(a,b,c){b=Math.max(0,Math.min(a.length-1,
b));c=Math.max(0,Math.min(a.length-1,c));if(b!==c){for(var d=a[b],e=c<b?-1:1;b!==c;b+=e)a[b]=a[b+e];a[c]=d}},pRa=function(a,b){var c=a.top,d=a.bottom;a=a.height*.05;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},qRa=function(a,b){var c=a.left,d=a.right;a=a.width*.05;return b>=c-a&&b<=c+a?1:b>=d-a&&b<=d+a?2:0},rRa=function(a){a&1&&(I(0,"label"),Q(1),J());a&2&&(a=P(),z(),R(" ",a.title," "))},sRa=function(a){a&1&&K(0,"mat-icon",15)},uRa=function(a,b){a&1&&(I(0,"div",20),Hg(1,22),J());if(a&2){a=b.$implicit;
b=b.$index;P(2);var c=L(14);z();D("ngTemplateOutletContext",kh(2,tRa,a,b))("ngTemplateOutlet",c)}},wRa=function(a){a&1&&(I(0,"collapsible-panel",17),Dg(1,uRa,2,5,"div",20,Bg),Hg(3,21),J());if(a&2){a=P();var b=L(16),c=D("isExpanded",a.isExpanded||a.enableNewCustomRepeatedEnumUi&&Bq(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=a.enableNewCustomRepeatedEnumUi&&Bq(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":a.collapsiblePanelTitle;c("title",d);z();Eg(vRa(a));z(2);D("ngTemplateOutlet",
b)}},xRa=function(a,b){a&1&&(I(0,"div",20),Hg(1,22),J());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=L(14);z();D("ngTemplateOutletContext",kh(2,tRa,a,b))("ngTemplateOutlet",c)}},yRa=function(a){a&1&&(I(0,"div",23),Q(1,"--"),J())},zRa=function(a){a&1&&(Dg(0,xRa,2,5,"div",20,Bg),Hg(2,21),E(3,yRa,2,0,"div",23));if(a&2){a=P();var b=L(16);Eg(vRa(a));z(2);D("ngTemplateOutlet",b);z();F((a.values==null?0:a.values.length)?-1:3)}},CRa=function(a){if(a&1){var b=r();I(0,"button",29);M("menuOpened",function(){t(b);
var d=P(3);ARa(d);d.enumPendingValues=new Set(d.values||[]);return v()})("menuClosed",function(){t(b);var d=P(3);return v(BRa(d))});Q(1,"Edit ");J()}if(a&2){a=P(3);var c=L(18);D("matMenuTriggerFor",c);ng("aria-label","Add item to "+a.title)}},DRa=function(a){a&1&&(I(0,"button",27,7),Q(2,"Edit "),J());if(a&2){a=P(3);var b=L(25);D("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST);ng("aria-label","Edit items for "+a.title)}},FRa=function(a){if(a&1){var b=r();I(0,"button",30,7);M("click",
function(){t(b);var c=P(3);return v(ERa(c))});Q(2,"Edit ");J()}a&2&&(a=P(3),ng("aria-label","Edit items for "+a.title))},GRa=function(a){a&1&&(E(0,CRa,2,2,"button",26),E(1,DRa,3,3,"button",27),E(2,FRa,3,1,"button",28));a&2&&(a=P(2),F(Bq(a)?-1:0),z(),F(Bq(a)&&!a.enableNewCustomRepeatedEnumUi?1:-1),z(),F(a.enableNewCustomRepeatedEnumUi&&Bq(a)?2:-1))},HRa=function(a){a&1&&(I(0,"button",24),Q(1,"Add "),J());if(a&2){a=P(2);var b=L(23);pg("aria-label","Add item to ",a.title);D("xapInlineDialogClick",b)("overlayPositions",
a.OVERLAY_POSITION_LIST)}},IRa=function(a){if(a&1){var b=r();I(0,"button",31);M("beforeOpened",function(){t(b);var d=P(2);return v(d.invalidMessage="")});Q(1,"Add ");J()}if(a&2){a=P(2);var c=L(21);pg("aria-label","Add item to ",a.title);Pg("dialogLabel","Add item to ",a.title);Pg("matTooltip","Add item to ",a.title);D("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},JRa=function(a){a&1&&E(0,GRa,3,3)(1,HRa,2,4,"button",24)(2,IRa,2,8,"button",25);if(a&2){var b;a=P();F((b=a.type)===
"REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},KRa=function(a){a&1&&(I(0,"div"),K(1,"b-code-change-chip",37),J());a&2&&(a=P(2).item,z(),D("codeChange",a))},LRa=function(a){a&1&&(I(0,"div")(1,"a",38),Q(2),J()());if(a&2){a=P(2).item;var b=P();z();switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b="https://taskflow-autopush.corp.google.com/workspaces"}D("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId+"?edit=b/"+a.issueId,uf);ng("aria-label",
"Workspace"+a.workspaceId);z();R(" ",a.workspaceName," ")}},MRa=function(a){a&1&&(I(0,"div"),K(1,"b-team-display",39),J());a&2&&(a=P(2).item,z(),D("teamId",a.teamId)("componentId",a.componentId))},NRa=function(a){if(a&1){var b=r();I(0,"div")(1,"a",40);M("click",function(){t(b);var c=P(3);return v(c.trackClick("postmortem"))});Q(2);J()()}a&2&&(a=P(2).item,z(),pg("aria-label","Postmortem ",a),Pg("href","https://pm.corp.google.com/",a,"",uf),z(),R(" ",a," "))},PRa=function(a){if(a&1){var b=r();I(0,"div",
34)(1,"a",41);M("click",function(){t(b);var d=P(3);return v(d.trackClick("repeated-enum"))});Q(2);J()()}if(a&2){a=P(2).item;var c=P();D("matTooltip",a);z();qg("aria-label","Search issues for customfield",c.customFieldId,":",a);D("queryParams",jh(6,ORa,"customfield"+c.customFieldId+':"'+a+'"'));z();R(" ",a," ")}},QRa=function(a){a&1&&(I(0,"div"),K(1,"b-truncated-span",42),J());if(a&2){a=P(2).item;var b=P();z();D("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},RRa=function(a){if(a&1){var b=
r();I(0,"button",43,8);M("click",function(){t(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});J()}if(a&2){a=P(2).item;var c=P();qg("aria-label","Remove ",a," from ",c.title);D("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},SRa=function(a){a&1&&(I(0,"div",32)(1,"div",33),E(2,KRa,2,1,"div")(3,LRa,3,3,"div")(4,MRa,2,2,"div")(5,NRa,3,5,"div")(6,PRa,3,8,"div",34)(7,QRa,2,3,"div"),J(),E(8,RRa,2,5,"button",35),K(9,"div",36),J());if(a&2){a=P().item;var b=P();z(2);F(b.type==="CODE_CHANGES"?
2:b.type==="WORKSPACES"?3:b.type==="TEAM"?4:b.type==="POSTMORTEMS"?5:b.type==="REPEATED_ENUM"&&Bq(b)?6:b.isString(a)?7:-1);z(6);F((b.readonly?0:b.type==="REPEATED_ENUM"?Bq(b)&&!b.enableNewCustomRepeatedEnumUi:1)?8:-1)}},TRa=function(a,b){a&1&&E(0,SRa,10,2,"div",32);if(a&2){a=b.item;b=b.$index;var c=P();F((c.showingAll||b<c.defaultLineCount||c.values&&c.values.length===c.defaultLineCount+1)&&(c.type!=="CODE_CHANGES"||c.showCodeChanges(a))?0:-1)}},URa=function(a){if(a&1){var b=r();I(0,"div",45,9);M("click",
function(c){t(b);var d=P(2);return v(Cq(d,!1,c))})("keydown.enter",function(c){t(b);var d=P(2);return v(Cq(d,!1,c))})("keydown.space",function(c){t(b);var d=P(2);return v(Cq(d,!1,c))});Q(2," (show fewer) ");J()}a&2&&(a=P(2),qg("aria-label","Show at most ",a.defaultLineCount," ",a.title," items"),Pg("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},VRa=function(a){if(a&1){var b=r();I(0,"div")(1,"div",46);Q(2);I(3,"span",47,10);M("click",function(c){t(b);var d=P(2);return v(Cq(d,
!0,c))})("keydown.enter",function(c){t(b);var d=P(2);return v(Cq(d,!0,c))})("keydown.space",function(c){t(b);var d=P(2);return v(Cq(d,!0,c))});Q(5," (show all) ");J()()()}a&2&&(a=P(2),z(2),R(" ... and ",a.values.length-a.defaultLineCount," more "),z(),qg("aria-label","Show all ",a.values==null?null:a.values.length," ",a.title," items"),Pg("matTooltip","Show all ",a.values==null?null:a.values.length," items in the list"))},XRa=function(a){a&1&&(E(0,URa,3,5,"div",44),E(1,VRa,6,6,"div"));a&2&&(a=P(),
F(a.showingAll&&WRa(a)?0:-1),z(),F(!a.showingAll&&WRa(a)?1:-1))},ZRa=function(a,b){if(a&1){var c=r();I(0,"button",49);M("click",function(d){var e=t(c).$implicit,f=P(2),h=e.value;f.enumPendingValues.has(h)?f.enumPendingValues.delete(h):f.enumPendingValues.add(h);f.liveAnnouncer.announce(YRa(f,e));d==null||d.stopPropagation();return v()});I(1,"span",50);K(2,"mat-icon",51);J();Q(3);J()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",b.enumPendingValues.has(a.value)),D("disabled",b.listFieldDisabled),
ng("aria-label",YRa(b,a)),z(3),R(" ",a.displayText," "))},$Ra=function(a){a&1&&Dg(0,ZRa,4,5,"button",48,Bg);a&2&&(a=P(),Eg(a.sortedEnumChoices))},aSa=function(a){a&1&&(I(0,"mat-error"),Q(1),J());a&2&&(a=P(2),qg("aria-label","",a.title," error: ",a.invalidMessage),z(),R(" ",a.invalidMessage," "))},bSa=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",52,11);M("ngSubmit",function(){t(b);var d=L(3),e=L(4),f=P();return v(f.textPopupSubmit(d,e))});K(5,"input",
53);I(6,"div",54)(7,"button",55);K(8,"mat-icon",56);J();I(9,"button",57);M("click",function(){t(b);var d=P();return v(d.closeAddPopup(!0))});K(10,"mat-icon",58);J()();E(11,aSa,2,4,"mat-error");J()()()}if(a&2){a=L(3);var c=P();z(5);pg("aria-label","Addition to ",c.title);D("type",c.type==="REPEATED_NUMERIC"?"number":"text");z(2);pg("aria-label","Apply addition to ",c.title);D("disabled",!a.valid||c.listFieldDisabled);z(2);pg("aria-label","Discard addition to ",c.title);z(2);F(c.invalidMessage?11:-1)}},
cSa=function(a){if(a&1){var b=r();I(0,"b-date-time-picker-content",59);M("dateChange",function(c){t(b);var d=P();return v(c&&d.addItems(c))})("cancelClicked",function(){t(b);var c=P();return v(c.closeAddPopup(!1))});J()}a&2&&D("required",!0)("renderPanel",!1)},fSa=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-custom-repeated-enum-picker",60);M("onApplyChanges",function(c){t(b);var d=P();return v(dSa(d,c))})("onCancelChanges",function(){t(b);var c=P();return v(c.closeAddPopup(!0))});
J()()()}a&2&&(a=P(),z(2),D("allowMultiSelect",!0)("customFieldTitle",a.title)("allowedValues",eSa(a))("selectedValues",a.values))},gSa=function(a,b){return{originX:a,originY:b}},hSa=function(a,b){return{overlayX:a,overlayY:b}},iSa=function(a){switch(a==null?void 0:a.type){case "REPEATED_TEXT":return"REPEATED_TEXT";case "REPEATED_DATE":return"REPEATED_DATE";case "REPEATED_ENUM":return"REPEATED_ENUM";case "REPEATED_NUMERIC":return"REPEATED_NUMERIC";default:return null}},jSa=function(a){a&1&&Hg(0)},
kSa=function(a){if(a&1){var b=r();I(0,"div",3);M("mouseenter",function(){t(b);var c=P();return v(c.toggle(!0))})("mouseleave",function(){t(b);var c=P();return v(c.toggle(!1))})("mousemove",function(){t(b);P().activity.next();return v()});C(1,jSa,1,0,"ng-container",4);J()}a&2&&(a=P(),D("ngClass",a.bubbleStyle)("@fade",void 0),z(),D("ngTemplateOutlet",a.panelTemplate))},lSa=function(a){a&1&&(I(0,"span",3),Q(1),J());a&2&&(a=P(2),wg("xs",a.compactMode),D("ngClass",a.chipClass),z(),R(" ",a.chipText," "))},
mSa=function(a){a&1&&(I(0,"div",5),Q(1),I(2,"a",6),Q(3," Learn more"),J()());a&2&&(a=P(3),z(),R(" ",a.bubbleText," "),z(),D("href",Dq(a.documentationLinks),uf))},nSa=function(a){a&1&&(I(0,"xap-bubble",2)(1,"span",4),Q(2),J(),C(3,mSa,4,2,"ng-template",null,0,nh),J());if(a&2){a=L(4);var b=P(2);D("panelTemplate",a);z();wg("xs",b.compactMode);D("ngClass",b.chipClass);z();R(" ",b.chipText," ")}},oSa=function(a){a&1&&E(0,lSa,2,4,"span",1)(1,nSa,5,5,"xap-bubble",2);a&2&&(a=P(),F(a.labelOnlyMode?0:1))},pSa=
function(a){a&1&&(I(0,"li")(1,"a",3),Q(2," Create an issue in this component"),J()());a&2&&(a=P(2),z(),D("href",a.createIssueUrl,uf))},qSa=function(a,b){a&1&&(I(0,"h3"),Q(1),J(),I(2,"p"),Q(3),J(),K(4,"b-component-access-level-indicator",2),I(5,"p"),Q(6),J(),I(7,"ul")(8,"li")(9,"a",3),Q(10," View recent open issues"),J()(),E(11,pSa,3,1,"li"),I(12,"li")(13,"a",3),Q(14," View component"),J()()());a&2&&(a=P(),z(),ch(b.name),z(2),R("ID: ",a.componentId),z(),D("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",
!0),z(2),ch(b.description),z(3),D("href",a.recentIssuesUrl,uf),z(2),F(a.isAnonymous?-1:11),z(2),D("href",a.viewComponentUrl,uf))},rSa=function(a,b){a&1&&(I(0,"span",4)(1,"a",6),Q(2),J(),I(3,"onedev-hovercard",null,0),K(5,"b-component-card",7),J()());a&2&&(a=b.$implicit,b=L(4),z(),D("onedevHovercardTrigger",b)("routerLinkObj",a.route),z(),ch(a.name),z(3),D("componentId",a.id.toString()))},sSa=function(a){a&1&&(I(0,"span",5),Q(1,"[Archived]"),J())},tSa=function(a,b){b=b===void 0?vq:b;var c,d=(c=a==
null?void 0:a.componentPathId)!=null?c:[],e,f=(e=a==null?void 0:a.componentPathName)!=null?e:[];return d.map(function(h,k){var q;k=(q=f[k])!=null?q:String(h);q=b(h);return{id:h,name:k,route:q}})},uSa=function(a){a&1&&Q(0," > ")},vSa=function(a,b){a&1&&(I(0,"a",4),Q(1),J(),E(2,uSa,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;pg("aria-label","View recent issues in ",a.name);D("routerLinkObj",a.route);z();ch(a.name);z();F(c!==b-1?2:-1)}},wSa=function(a){a&1&&(I(0,"span"),Q(1," [Archived]"),
J())},xSa=function(a){a&1&&(I(0,"div",2),Dg(1,vSa,3,5,null,null,Cg),S(3,"async"),E(4,wSa,2,0,"span"),S(5,"async"),J());a&2&&(a=P(),z(),Eg(T(3,1,a.componentPath$)),z(3),F(T(5,3,a.isArchived$)?4:-1))},ySa=function(a,b){a&1&&(I(0,"div",5),K(1,"mat-icon",6),I(2,"div",7),Q(3),J()(),I(4,"div",8)(5,"span",7),Q(6),J(),K(7,"b-component-access-level-indicator",9),J(),I(8,"p",7),Q(9),J());a&2&&(z(3),ch(b.name),z(3),R("Component ID: ",b.componentId),z(),D("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",
!0),z(2),ch(b.description))},zSa=function(a,b){a&1&&(I(0,"div",3)(1,"a",10),Q(2,"View recent open issues"),J(),I(3,"a",11),Q(4,"View component settings"),J(),I(5,"a",12),Q(6,"Create issue in this component"),J()());a&2&&(z(),D("routerLinkObj",b.recentIssues),z(2),D("routerLinkObj",b.componentSettings),z(2),D("routerLinkObj",b.createIssue))},ASa=function(a){a&1&&(I(0,"span",4),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.name," "))},BSa=function(a){a&1&&Q(0," Trackers are distinct communities with their own branding. ")},
CSa=function(a){a&1&&(I(0,"a",9),Q(1,"Learn More"),J());a&2&&(a=P(2),D("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",uf))},DSa=function(a){a&1&&(I(0,"button",1),K(1,"img",2)(2,"img",3),E(3,ASa,2,1,"span",4),J(),I(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),Q(9),E(10,BSa,1,0),J(),I(11,"div",8)(12,"a",9),Q(13),J(),E(14,CSa,2,1,"a",9),J()()()());if(a&2){a=L(5);var b=P();wg("xs",b.compactMode);D("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);
z();D("src",b.logoLight,uf);z();D("src",b.logoDark,uf);z();F(b.compactMode?-1:3);z(6);R(" This component or issue is part of ",b.extendedName,". ");z();F(b.isGlobalBuganizer?-1:10);z(2);D("href",b.redirectUrl,uf);z();R("View ",b.extendedName);z();F(b.isGlobalBuganizer?-1:14)}},ESa=function(a){a&1&&(K(0,"b-tracker-chip",0),S(1,"async"));a&2&&(a=P(),D("tracker",T(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},FSa=function(a){a&
1&&K(0,"mat-icon",1)},GSa=function(a){if(a&1){var b=r();I(0,"button",9);M("mousedown",function(c){t(b);var d=P();return v(d.back(c))});K(1,"mat-icon",10);J()}},HSa=function(a){if(a&1){var b=r();I(0,"button",11);M("mousedown",function(c){t(b);var d=P();return v(d.expand(d.componentOption,c))});K(1,"mat-icon",12);J()}a&2&&(a=P(),D("matTooltip","View child components of "+a.componentOption.name),ng("aria-label","View child components of "+a.componentOption.name),z(),D("svgIcon",a.showFolderSpecialIcon?
"folder_special_24px":"folder"))},ISa=function(a){if(a&1){var b=r();I(0,"a",14);S(1,"toString");S(2,"boldPrefixMatches");M("mousedown",function(d){t(b);var e=P().$implicit;P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});J()}if(a&2){a=P().$implicit;var c=P(2);D("innerHtml",mh(2,3,T(1,1,a.name),c.query),tf)}},JSa=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,R(" ",a.name," "))},KSa=function(a){a&1&&Q(0," \u00a0>\u00a0 ")},LSa=function(a,b){a&1&&(E(0,ISa,3,6,"a",13)(1,
JSa,1,1),E(2,KSa,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;F(a.name!=a.id?0:1);z(2);F(c!==b-1?2:-1)}},MSa=function(a){a&1&&Dg(0,LSa,3,2,null,null,Cg);a&2&&(a=P(),Eg(a.componentOption.componentPath))},NSa=function(a,b){if(a&1){var c=r();I(0,"a",16);M("mousedown",function(d){var e=t(c);P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});Q(1);J()}a&2&&(z(),R(" ",b.name," "))},OSa=function(a){a&1&&E(0,NSa,2,1,"a",15);if(a&2){var b;a=P();F((b=a.componentOption.componentPath[a.componentOption.componentPath.length-
1])?0:-1,b)}},PSa=function(a){a&1&&(I(0,"span",6),Q(1," [Archived] "),J())},QSa=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},RSa=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},SSa=function(a,b){var c,d=(c=b==null?void 0:b.componentPathId)!=null?c:[],e,f=(e=b==null?void 0:b.componentPathName)!=null?e:[];b=d.map(function(h,k){return{id:h,name:f[k],pathText:f.slice(0,
k+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b,trackerId:a.trackerId}},TSa=function(a){return new Map([].concat(p(a.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.map(RSa)]}))},USa=function(a){a&1&&K(0,"img",1);a&2&&(a=P(),ng("src",a.getLogoUrl(),uf))},VSa=function(a){a&1&&(I(0,"span",6),Q(1,"no components"),J())},WSa=function(a){a&1&&(I(0,"div",3),
K(1,"div",5),S(2,"boldPrefixMatches"),E(3,VSa,2,0,"span",6),J());a&2&&(a=P(),z(),D("innerHtml",mh(2,2,a.teamOption.name,a.query),tf),z(2),F(a.hasNoComponent?3:-1))},XSa=function(a){if(a&1){var b=r();I(0,"a",8);M("mousedown",function(c){t(b);var d=P(2).$index,e=P(2);d=e.teamOption.pathIds==null?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return v()});Q(1);J()}a&2&&(a=P(2).$implicit,z(),ch(a))},YSa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,R(" ",
a," "))},ZSa=function(a){a&1&&(E(0,XSa,2,1,"a",7)(1,YSa,1,1),Fg(2),Q(3," \u00b7 "),Gg());a&2&&(a=P(3),F(a.allowSegmentSelection?0:1))},$Sa=function(a){a&1&&(I(0,"strong",9),Q(1),J());a&2&&(a=P(2).$implicit,z(),ch(a))},aTa=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,R(" ",a," "))},bTa=function(a){a&1&&E(0,$Sa,2,1,"strong",9)(1,aTa,1,1);a&2&&(a=P(3),F(a.compact?0:1))},cTa=function(a,b){a&1&&E(0,ZSa,4,1)(1,bTa,2,1);a&2&&F(b.$index!==b.$count-1?0:1)},dTa=function(a){a&1&&(I(0,"div",4),Dg(1,cTa,2,1,null,
null,Cg),J());a&2&&(a=P(),z(),Eg(a.teamOption.pathNames))},eTa=function(a){if(a&1){var b=r();I(0,"button",9);M("mousedown",function(c){t(b);P().clearQuery();return v(Eq(c))});K(1,"mat-icon",10);J()}},fTa=function(a){a&1&&(I(0,"div",11),Q(1," Checking for admin access... "),J())},gTa=function(a){a&1&&(I(0,"div",12),Q(1," You do not have admin access to this component. "),I(2,"a",13),Q(3,"View component admins"),J()());a&2&&(a=P(3),z(2),D("href",Fq.editComponentAccess.makeHref(a.selectedComponent.componentId),
uf))},hTa=function(a){a&1&&E(0,gTa,4,1,"div",12);a&2&&(a=P(2),F(!a.hasAccess&&a.selectedComponent?0:-1))},iTa=function(a){a&1&&(I(0,"div"),E(1,fTa,2,0,"div",11)(2,hTa,1,1),J());a&2&&(a=P(),z(),F(a.checkingAccess?1:2))},jTa=function(a){a&1&&K(0,"mat-progress-bar",16)},kTa=function(a){a&1&&Q(0," teams ")},lTa=function(a){a&1&&Q(0," team ")},oTa=function(a,b){if(a&1){var c=r();I(0,"div",21);M("mousedown",function(e){var f=t(c).$implicit,h=P(6);mTa(h.searchState,f);return v(Eq(e))});I(1,"team-row",22);
M("selectTeamId",function(e){t(c);var f=P(6);return v(nTa(f.searchState,e))});J()()}if(a&2){a=b.$implicit;b=P(6);var d=L(3);D("data",a);z();D("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},pTa=function(a){a&1&&(I(0,"div",18)(1,"div",19),Q(2," Filter components by my teams "),I(3,"span"),Q(4),E(5,kTa,1,0)(6,lTa,1,0),J()(),Dg(7,oTa,2,4,"div",20,Cg),K(9,"mat-divider"),J());a&2&&(a=P(),z(4),R("",a.length," "),z(),F(a.length>1?5:6),z(2),Eg(a))},qTa=function(a,b){a&
1&&E(0,pTa,10,2,"div",18);a&2&&F(b.length?0:-1)},rTa=function(a){a&1&&Hg(0)},tTa=function(a){a&1&&C(0,rTa,1,0,"ng-container",23);if(a&2){a=P(4);var b=L(12);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,sTa,a.searchState.popularComponents))}},uTa=function(a){a&1&&K(0,"mat-divider")},vTa=function(a){a&1&&Hg(0)},xTa=function(a){a&1&&C(0,vTa,1,0,"ng-container",23);if(a&2){a=P(4);var b=L(12);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,wTa,a.searchState.recentComponents))}},yTa=function(a){a&
1&&(E(0,qTa,1,1),S(1,"async"),E(2,tTa,1,4,"ng-container"),E(3,uTa,1,0,"mat-divider"),E(4,xTa,1,4,"ng-container"));if(a&2){var b;a=P(3);F((b=T(1,4,a.searchState.myTeams$))?0:-1,b);z(2);F(a.searchState.popularComponents.length?2:-1);z();F(a.searchState.popularComponents.length&&a.searchState.recentComponents.length?3:-1);z();F(a.searchState.recentComponents.length||!a.searchState.popularComponents.length?4:-1)}},zTa=function(a){a&1&&Q(0," teams ")},ATa=function(a){a&1&&Q(0," team ")},BTa=function(a){a&
1&&Hg(0)},ETa=function(a,b){a&1&&C(0,BTa,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=L(10);D("ngTemplateOutlet",c)("ngTemplateOutletContext",kh(4,CTa,a,jh(2,DTa,b)))}},FTa=function(a){if(a&1){var b=r();I(0,"button",25);M("mousedown",function(){t(b);var c=P(6);return v(c.searchState.showAllTeams$.next(!0))});K(1,"mat-icon",26);Q(2," Show all teams ");J()}},GTa=function(a,b){a&1&&(I(0,"div",18)(1,"div",19),Q(2," Filter components by teams "),I(3,"span"),Q(4),E(5,zTa,1,0)(6,ATa,
1,0),J()(),Dg(7,ETa,1,7,"ng-container",null,Cg),S(9,"async"),E(10,FTa,3,0,"button",24),S(11,"async"),K(12,"mat-divider"),J());a&2&&(a=P(5),z(4),R("",b," "),z(),F(b>1?5:6),z(2),Eg(T(9,3,a.searchState.filteredTeamOptions$)),z(3),F(T(11,5,a.searchState.hasHiddenTeams$)?10:-1))},HTa=function(a,b){a&1&&E(0,GTa,13,7,"div",18);if(a&2){var c;F((c=b.length)?0:-1,c)}},ITa=function(a){a&1&&Hg(0)},KTa=function(a){a&1&&(E(0,HTa,1,1),S(1,"async"),C(2,ITa,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=L(12);
F((b=T(1,3,a.searchState.teamOptions$))?0:-1,b);z(2);D("ngTemplateOutlet",c)("ngTemplateOutletContext",jh(5,JTa,a.searchState.componentOptions))}},LTa=function(a){a&1&&Hg(0)},NTa=function(a,b){a&1&&C(0,LTa,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=L(10);D("ngTemplateOutlet",c)("ngTemplateOutletContext",kh(4,CTa,a,jh(2,MTa,b)))}},OTa=function(a){a&1&&(I(0,"div",32),Dg(1,NTa,1,7,"ng-container",null,Cg),J());a&2&&(a=P(2),z(),Eg(a))},RTa=function(a){if(a&1){var b=r();E(0,OTa,
3,0,"div",32);I(1,"button",25);M("mousedown",function(c){t(b);var d=P(6),e=d.searchState.teamScope$.value;e.expanded?PTa(d.searchState,e):QTa(d.searchState,e);return v(Eq(c))});K(2,"mat-icon",26);Q(3);J()}a&2&&(a=P(6),F(a.searchState.teamScope$.value.expanded?0:-1),z(2),wg("expanded",a.searchState.teamScope$.value.expanded),z(),R(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},STa=function(a,b){a&1&&E(0,RTa,4,4);a&2&&F(b.length?0:-1)},VTa=function(a){if(a&1){var b=r();
I(0,"div",27)(1,"div",19);Q(2," Filtering by team: ");J();I(3,"div",28)(4,"team-row",29);M("selectTeamId",function(e){t(b);var f=P(4);return v(nTa(f.searchState,e))});J();I(5,"button",30);M("mousedown",function(e){t(b);var f=P(4);TTa(f.searchState);return v(Eq(e))});K(6,"mat-icon",31);J()();E(7,STa,1,1);J()}if(a&2){var c;a=P(4);var d=L(3);z(3);D("data",a.searchState.teamScope$.value)("listOrder",ih(7,UTa));z();D("teamOption",a.searchState.teamScope$.value)("query",d.value)("compact",!0)("allowSegmentSelection",
!0);z(3);F((c=a.searchState.getChildTeams(a.searchState.teamScope$.value.id))?7:-1,c)}},WTa=function(a){a&1&&Hg(0)},YTa=function(a){a&1&&(E(0,VTa,8,8,"div",27),C(1,WTa,1,0,"ng-container",23));if(a&2){a=P(3);var b=L(12);F(a.searchState.teamScope$.value?0:-1);z();D("ngTemplateOutlet",b)("ngTemplateOutletContext",kh(3,XTa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},aUa=function(a){if(a&1){var b=r();I(0,"div",33)(1,"div",34);Q(2,"Component Tree Browser");J();I(3,"component-row",
35);M("goBack",function(){t(b);var c=P(4);return v(ZTa(c.searchState))})("selectComponentId",function(c){t(b);var d=P(4);return v($Ta(d.searchState,c))});J()()}a&2&&(a=P(4),z(3),D("componentOption",a.searchState.componentScope))},bUa=function(a){a&1&&Hg(0)},dUa=function(a){a&1&&(E(0,aUa,4,1,"div",33),C(1,bUa,1,0,"ng-container",23));if(a&2){a=P(3);var b=L(12);F(a.searchState.componentScope?0:-1);z();D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(3,cUa,a.searchState.componentOptions))}},eUa=function(a){a&
1&&(E(0,yTa,5,6),S(1,"async"),Ag(2,KTa,3,7)(3,YTa,2,6)(4,dUa,2,5));if(a&2){var b;a=P(2);F((b=T(1,1,a.searchState.state$))==="default"?0:b==="global"?2:b==="team_scope"?3:b==="component_scope"?4:-1)}},fUa=function(a){if(a&1){var b=r();I(0,"div",14,5);M("mousedown",function(c){t(b);P();return v(Eq(c))});I(2,"div",15);E(3,jTa,1,0,"mat-progress-bar",16);J();I(4,"div",17);E(5,eUa,5,3);J()()}a&2&&(a=P(),z(3),F(a.isLoading()?3:-1),z(2),F(a.isLoading()?-1:5))},gUa=function(a){if(a&1){var b=r();I(0,"button",
39);M("mousedown",function(c){t(b);var d=P().team,e=P();d.expanded?PTa(e.searchState,d):QTa(e.searchState,d);return v(Eq(c))});K(1,"mat-icon",40);J()}a&2&&(a=P().team,z(),wg("expanded",a.expanded))},hUa=function(a){a&1&&Hg(0)},kUa=function(a,b){a&1&&C(0,hUa,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;var c=P(2),d=c.level;c=c.order;P();var e=L(10);D("ngTemplateOutlet",e)("ngTemplateOutletContext",lh(2,iUa,a,d+1,c.concat(b)))}},nUa=function(a){a&1&&Dg(0,kUa,1,6,"ng-container",null,Cg);if(a&
2){a=P().team;var b=P();Eg(b.searchState.getChildTeams(a.id))}},oUa=function(a,b){if(a&1){var c=r();I(0,"div",36);M("mousedown",function(h){var k=t(c).team,q=P();mTa(q.searchState,k);return v(Eq(h))});I(1,"div",37);E(2,gUa,2,2,"button",38);I(3,"team-row",22);M("selectTeamId",function(h){t(c);var k=P();return v(nTa(k.searchState,h))});J()()();E(4,nUa,2,0)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=P(),f=L(3);D("listOrder",b)("data",a);z();vg("margin-left",d*28,"px");z();F(e.searchState.getChildTeams(a.id).length?
2:-1);z();wg("indent",!e.searchState.getChildTeams(a.id).length);D("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));z();F(a.expanded?4:-1)}},pUa=function(a){a&1&&Q(0," Select a commonly used component ")},qUa=function(a){a&1&&Q(0," Select recent component ")},rUa=function(a){a&1&&Q(0," Select component ")},sUa=function(a){a&1&&Q(0," components ")},tUa=function(a){a&1&&Q(0," component ")},vUa=function(a,b){if(a&1){var c=r();I(0,"div",43);M("mousedown",function(f){var h=
t(c).$implicit,k=P(3);uUa(k.searchState,h.id);return v(Eq(f))});I(1,"component-row",44);M("selectComponentId",function(f){t(c);var h=P(3);return v(uUa(h.searchState,f))})("expandComponent",function(f){t(c);var h=P(3);return v(h.searchState.expandComponent(f))});J()()}if(a&2){a=b.$implicit;b=P(2).mode;var d=P(),e=L(3);D("data",a);z();D("showFolderSpecialIcon",Gq(d.activeSession))("componentOption",a)("query",e.value)("mode",b)}},wUa=function(a,b){a&1&&(I(0,"div",41)(1,"div",19),E(2,pUa,1,0)(3,qUa,
1,0)(4,rUa,1,0),I(5,"span"),Q(6),E(7,sUa,1,0)(8,tUa,1,0),J()(),Dg(9,vUa,2,5,"div",42,Cg),J());if(a&2){var c=P();a=c.$implicit;c=c.mode;z(2);F(c==="popular"?2:c==="recent"?3:4);z(4);R("",b," ");z();F(b>1?7:8);z(2);Eg(a)}},xUa=function(a){a&1&&Q(0," No recent components ")},yUa=function(a){a&1&&Q(0," No child components ")},zUa=function(a){a&1&&(Q(0),K(1,"mat-icon",46),Q(2," above ("),I(3,"a",47),Q(4,"learn more "),K(5,"mat-icon",48),J(),Q(6," about team associations) "));a&2&&(a=P(4).teamScope,R(" for ",
a.name,". Remove the team filter by clicking on the "))},AUa=function(a){a&1&&(Q(0," No components found "),E(1,zUa,7,1));a&2&&(a=P(3).teamScope,z(),F(a?1:-1))},BUa=function(a){a&1&&(I(0,"div",45),E(1,xUa,1,0)(2,yUa,1,0)(3,AUa,2,1),J());a&2&&(a=P(2).mode,z(),F(a==="recent"?1:a==="leaf"?2:3))},CUa=function(a){a&1&&E(0,BUa,4,1,"div",45);a&2&&(a=P(2),F(a.componentLoading||a.searchState.componentsLoading?-1:0))},DUa=function(a,b){a&1&&E(0,wUa,11,3,"div",41)(1,CUa,1,1);if(a&2){var c;F((c=b.$implicit.length)?
0:1,c)}},EUa=function(a,b){b=l([a.listOrder,b.listOrder]);a=b.next().value;b=b.next().value;for(var c=0;c<Math.min(a.length,b.length);c++)if(a[c]!==b[c])return a[c]-b[c];return a.length-b.length},FUa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.text))},GUa=function(a){a&1&&(I(0,"span"),K(1,"b-component-access-level-indicator",0),J());a&2&&(a=P().$implicit,z(),D("accessLevel",a.accessLevel))},HUa=function(a,b){a&1&&(I(0,"span"),E(1,FUa,2,1,"span")(2,GUa,2,1,"span"),J());a&
2&&(a=b.$implicit,P(),z(),F(a.text!==void 0?1:2))},JUa=function(a,b){var c=IUa.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},KUa=function(){return{color:"accent",disabledInteractive:!1}},LUa=function(a){if(a&1){var b=r();I(0,"div");K(1,"br");I(2,"mat-radio-group",7);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return v(c)});I(3,"mat-radio-button",8);Q(4,"Mark this issue as Limited Visibility + Google. Information will only be shared with Googlers and listed public users.");
J();I(5,"mat-radio-button",9);Q(6,"Leave issue unrestricted. All information in this issue is suitable for external sharing.");J()()()}a&2&&(a=P(2),z(2),eh("ngModel",a.setLimitViewTrusted),z(),D("value",!0),z(2),D("value",!1))},MUa=function(a){if(a&1){var b=r();I(0,"div");K(1,"br");I(2,"mat-checkbox",10);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.acknowledged,c)||(d.acknowledged=c);return v(c)});J();I(3,"span");Q(4,"All information in this issue is suitable for external sharing.");J()()}a&
2&&(a=P(2),z(2),eh("ngModel",a.acknowledged))},NUa=function(a){a&1&&(I(0,"div"),E(1,LUa,7,3,"div")(2,MUa,5,1,"div"),J());a&2&&(a=P(),z(),F(a.isLimitNoneIssueTrackerMove?1:2))},OUa=function(a){if(a&1){var b=r();I(0,"button",11);M("click",function(){t(b);var c=P();return v(c.allow())});Q(1," Move Issue ");J()}a&2&&(a=P(),D("disabled",!a.acknowledged))},Hq=function(a,b){return PUa(Fq.viewIssue.routeDeclarationPath,{id:a,params:b})},TUa=function(a,b,c,d,e){c=QUa(c);d=RUa(d);return SUa("action/issues/csv",
"q",a,"trackerIds",b,"s",c,"c",d,"h",e)},QUa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},RUa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},PUa=function(a,b){b=b===void 0?{}:b;return b.id==null?"":Iq(a,b)},Iq=function(a,b){var c=b=b===void 0?{}:b;b=c.id;var d=c.params,e=c.tab;c=c.token;var f=a;b!=null&&(f=a.replace(c?c:/:\w+/,b.toString()));d&&(f=UUa(f,d));e&&(f=f+"#"+e);return f},VUa=function(a){return Zza(a.getIt().getMentionsList(Gk)).map(function(b){return b.mentionedUser}).map(Dk).map(function(b){return b||
""})},WUa=function(a){a=a.getIt();return a.hasFormattedComment()?$m(a.getFormattedComment()):{}},XUa=function(a){switch(a.formattingMode){case "LITERAL":return Ce({literalFormat:{content:Oi(a.comment)}});case "MARKDOWN":return a={markdownFormat:{content:Oi("")}},Ce(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Oi(a.comment)}]}},Ce(a);default:return Gb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},YUa=function(a){a&
1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),R("(",a.disabledReason,")"))},ZUa=function(a,b){a&1&&(I(0,"mat-radio-button",4),Q(1),E(2,YUa,2,1,"span"),J());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),z(),R(" ",a.displayText," "),z(),F(a.enabled?-1:2))},$Ua=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),R("(",a.disabledReason,")"))},aVa=function(a,b){a&1&&(I(0,"mat-radio-button",4),Q(1),E(2,$Ua,2,1,"span"),J());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),
z(),R(" ",a.displayText," "),z(),F(a.enabled?-1:2))},bVa=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},cVa=function(a){return"share-email-confirmation-"+a},dVa=function(a){a&1&&(Vd(),I(0,"svg",11),K(1,"circle",12),J());a&2&&(a=P(),ng("viewBox",a._viewBox()),z(),vg("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),
"%"),ng("r",a._circleRadius()))},eVa=function(){return{diameter:100}},fVa=function(a){a&1&&K(0,"mat-spinner",0);a&2&&(a=P(),D("diameter",a.SIZE_LARGE),ng("aria-label",a.ariaLabel))},gVa=function(a){a&1&&K(0,"mat-spinner",1);a&2&&(a=P(),D("diameter",a.SIZE_SMALL)("strokeWidth",a.DIAMETER_SMALL),ng("aria-label",a.ariaLabel))},hVa=function(){},iVa=function(a){a&1&&Og(0)},jVa=function(){},kVa=function(a){a&1&&C(0,jVa,0,0,"ng-template",12);a&2&&(a=P().$implicit,D("cdkPortalOutlet",a.templateLabel))},lVa=
function(a){a&1&&Q(0);a&2&&(a=P().$implicit,ch(a.textLabel))},mVa=function(a,b){if(a&1){var c=r();I(0,"div",7,2);M("click",function(){var f=t(c),h=f.$implicit;f=f.$index;var k=P(),q=L(1);return v(k._handleClick(h,q,f))})("cdkFocusChange",function(f){var h=t(c).$index,k=P();return v(k._tabFocusChanged(f,h))});K(2,"span",8)(3,"div",9);I(4,"span",10)(5,"span",11);E(6,kVa,1,1,null,12)(7,lVa,1,1);J()()()}if(a&2){a=b.$implicit;b=b.$index;var d=L(1),e=P();xg(a.labelClass);wg("mdc-tab--active",e.selectedIndex===
b);D("id",e._getTabLabelId(b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);ng("tabIndex",e._getTabIndex(b))("aria-posinset",b+1)("aria-setsize",e._tabs.length)("aria-controls",e._getTabContentId(b))("aria-selected",e.selectedIndex===b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null);z(3);D("matRippleTrigger",d)("matRippleDisabled",a.disabled||e.disableRipple);z(3);F(a.templateLabel?6:7)}},nVa=function(a){a&1&&Og(0)},oVa=
function(a,b){if(a&1){var c=r();I(0,"mat-tab-body",13);M("_onCentered",function(){t(c);var e=P();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){t(c);var f=P();return v(f._setTabBodyWrapperHeight(e))})("_beforeCentering",function(e){t(c);var f=P();return v(f._bodyCentered(e))});J()}if(a&2){a=b.$implicit;b=b.$index;var d=P();xg(a.bodyClass);D("id",d._getTabContentId(b))("content",a.content)("position",a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);
ng("tabindex",d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(b))("aria-hidden",d.selectedIndex!==b)}},qVa=function(a){var b,c=new Jq,d=c.setIt,e=(new pVa).setIssueId(a.issueId).setScope(a.scope);e=Lk(e,4,a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=Lk(e,3,a.keyword);return d.call(c,a)},rVa=function(a,b){a=Nua([].concat(p(a.scores),p(b.scores)),[].concat(p(a.similarIssues),p(b.similarIssues))).sort(function(c,d){return d[0]-
c[0]});a=ik(a,function(c){c=l(c);c.next();return c.next().value.issueId});return{scores:a.map(function(c){return c[0]}),similarIssues:a.map(function(c){return c[1]})}},sVa=function(a){a&1&&Og(0)},tVa=function(a){a&1&&K(0,"div",0)},uVa=function(a){a&1&&K(0,"b-formatted-date-time",1);a&2&&(a=P(),D("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},vVa=function(a){if(a&1){var b=r();I(0,"div",0);M("keydown",function(c){t(b);var d=P();return v(d.processKeydown(c))});Og(1);J()}a&2&&(a=P(),xg(a.className),
ng("id",a.id))},wVa=function(a){a&1&&K(0,"mat-icon",9)},xVa=function(a){a&1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(3),z(),ch(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},yVa=function(a){a&1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(4),z(),ch(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},zVa=function(a){if(a&1){var b=r();I(0,"div",14)(1,"label",15);Q(2,"Issue shortlink");J();I(3,"input",24,5);M("onHotkey",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))})("focus",function(){t(b);var d=L(4);return v(d.select())});
J();E(5,yVa,2,1,"span",17);I(6,"button",25);M("onHotkey",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))})("click",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))});K(7,"mat-icon",19);J()()}if(a&2){a=L(4);var c=P(3);z();D("htmlFor",a.id);z(2);D("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys);ng("value",c.getAppBaseUrl().replace(/^.*?:\/\//,""));z(2);F(c.enableHotkeys?5:-1);z();D("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys)}},AVa=function(a){a&
1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(3),z(),ch(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},BVa=function(a){a&1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(3),z(),ch(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},CVa=function(a){a&1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(4),z(),ch(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},DVa=function(a){if(a&1){var b=r();I(0,"div",14)(1,"label",15);Q(2,"Issue email");J();I(3,"input",26,6);M("onHotkey",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))})("focus",function(){t(b);
var d=L(4);return v(d.select())});J();E(5,CVa,2,1,"span",17);I(6,"button",27);M("onHotkey",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))})("click",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))});K(7,"mat-icon",19);J()()}if(a&2){a=L(4);var c=P(3);z();D("htmlFor",a.id);z(2);D("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys);ng("value","buganizer-system"+(fm(c.activeSession.session)?"":"-qa")+("+"+c.componentId+"+"+c.issueId)+"@google.com");z(2);F(c.enableHotkeys?
5:-1);z();D("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys)}},EVa=function(a){a&1&&(I(0,"span",17),Q(1),J());a&2&&(a=P(4),z(),ch(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},FVa=function(a){if(a&1){var b=r();I(0,"div",14)(1,"label",15);Q(2,"TODO comment");J();I(3,"input",28,7);M("onHotkey",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))})("focus",function(){t(b);var d=L(4);return v(d.select())});J();E(5,EVa,2,1,"span",17);I(6,"button",29);M("onHotkey",function(){t(b);var d=
L(4),e=P(3);return v(Kq(e,d))})("click",function(){t(b);var d=L(4),e=P(3);return v(Kq(e,d))});K(7,"mat-icon",19);J()()}if(a&2){a=L(4);var c=P(3);z();D("htmlFor",a.id);z(2);D("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys);ng("value","TODO: "+c.getAppBaseUrl().replace(/^.*?:\/\//,"")+" - ");z(2);F(c.enableHotkeys?5:-1);z();D("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys)}},GVa=function(a){if(a&1){var b=r();I(0,"div",13)(1,"div",14)(2,"label",15);Q(3,"Issue ID");
J();I(4,"input",16,2);M("onHotkey",function(){t(b);var f=L(5),h=P(2);return v(Kq(h,f))})("focus",function(){t(b);var f=L(5);return v(f.select())});J();E(6,xVa,2,1,"span",17);I(7,"button",18);M("onHotkey",function(){t(b);var f=L(5),h=P(2);return v(Kq(h,f))})("click",function(){t(b);var f=L(5),h=P(2);return v(Kq(h,f))});K(8,"mat-icon",19);J()();E(9,zVa,8,7,"div",14);I(10,"div",14)(11,"label",15);Q(12,"Issue URL");J();I(13,"input",20,3);M("onHotkey",function(){t(b);var f=L(14),h=P(2);return v(Kq(h,f))})("focus",
function(){t(b);var f=L(14);return v(f.select())});J();E(15,AVa,2,1,"span",17);I(16,"button",21);M("onHotkey",function(){t(b);var f=L(14),h=P(2);return v(Kq(h,f))})("click",function(){t(b);var f=L(14),h=P(2);return v(Kq(h,f))});K(17,"mat-icon",19);J()();I(18,"div",14)(19,"label",15);Q(20,"URL and title");J();I(21,"input",22,4);M("onHotkey",function(){t(b);var f=L(22),h=P(2);return v(Kq(h,f))})("focus",function(){t(b);var f=L(22);return v(f.select())});J();E(23,BVa,2,1,"span",17);I(24,"button",23);
M("onHotkey",function(){t(b);var f=L(22),h=P(2);return v(Kq(h,f))})("click",function(){t(b);var f=L(22),h=P(2);return v(Kq(h,f))});K(25,"mat-icon",19);J()();E(26,DVa,8,7,"div",14);E(27,FVa,8,7,"div",14);J()}if(a&2){a=L(5);var c=L(14),d=L(22),e=P(2);D("cdkTrapFocusAutoCapture",!0);z(2);D("htmlFor",a.id);z(2);D("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);ng("value",e.issueId);z(2);F(e.enableHotkeys?6:-1);z();D("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);
z(2);F(e.activeSession.isInternalSession()&&!Gq(e.activeSession)?9:-1);z(2);D("htmlFor",c.id);z(2);D("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);ng("value",e.getIssueUrl());z(2);F(e.enableHotkeys?15:-1);z();D("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);z(3);D("htmlFor",d.id);z(2);D("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);ng("value",e.getAppBaseUrl(e.isExternalIssue)+" "+e.issueTitle);z(2);F(e.enableHotkeys?23:-1);z();D("hotkey",
e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);z(2);F(e.activeSession.isInternalSession()&&!Gq(e.activeSession)?26:-1);z();F(e.activeSession.isInternalSession()&&!Gq(e.activeSession)?27:-1)}},HVa=function(a){if(a&1){var b=r();I(0,"button",10,0);M("onHotkey",function(){t(b);var d=P();d.disabled||d.trigger.open();return v()})("onedevPopupPanelTriggerOpened",function(){t(b);var d=P();return v(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",function(){t(b);var d=P();return v(d.isOpen=!1)})("click",
function(){t(b);var d=P();d.disabled||d.trigger.open();return v()});K(2,"mat-icon",11);J();I(3,"onedev-popup-panel",12,1);E(5,GVa,28,25,"div",13);J()}if(a&2){a=L(4);var c=P();D("onedevPopupPanelTriggerFor",a)("hotkey",c.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",c.enableHotkeys);ng("aria-label","Show links for the issue "+c.issueId);z(5);F(c.isOpen?5:-1)}},IVa=function(a){a&1&&K(0,"b-issue-id-picker",1);a&2&&(a=P(),D("issueId",a.id)("showCopyOptions",!1))},JVa=function(a){a&1&&K(0,"b-issue-priority-display",
1);a&2&&(a=P(),D("issuePriority",a.priority))},KVa=function(a){a&1&&(I(0,"a",2),Q(1," Fix Pending "),J());a&2&&(a=P(),zg("chippy status-",a.IssueStatus.FIXED),Pg("href","http://cl/",a.pendingFixCl.changelistNumber,"",uf),Rg("matTooltip","Open cl/",a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author))},LVa=function(a,b){a&1&&(I(0,"div",4),Q(1),J());if(a&2){a=P(2);zg("chippy status-",b);var c;D("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");z();var d;R(" ",(d=a.STATUS_JS_TERSE.get(b))!=
null?d:""," ")}},MVa=function(a){a&1&&E(0,LVa,2,5,"div",3);if(a&2){var b;a=P();F((b=a.status)?0:-1,b)}},NVa=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},OVa=function(a){if(a&1){var b=r();I(0,"div",5)(1,"div",6);Q(2," Relative link may be malformed:\u00a0 ");I(3,"code");Q(4);J();I(5,"button",7);M("click",function(){t(b);var c=P(2);return v(c.copyToClipboard())});K(6,"mat-icon",8);J()();I(7,"div",6);Q(8," Force open as: \u00a0 ");I(9,"a",9);M("click",
function(c){t(b);var d=P(2);wxa(c)||(c.preventDefault(),c.stopPropagation(),Lq(d.domSafe,"http://"+d.originalHref));return v()});Q(10);J()()()}a&2&&(a=P(2),z(4),ch(a.originalHref),z(5),Pg("href","http://",a.originalHref,"",uf),z(),R(" http://",a.originalHref," "))},PVa=function(a){a&1&&E(0,OVa,11,4,"div",5);a&2&&(a=P(),F(a.opened?0:-1))},QVa=function(a){a&1&&(I(0,"b-glue"),K(1,"mat-icon",4),J())},RVa=function(a){a&1&&K(0,"mat-icon",7);a&2&&(a=P().$implicit,D("svgIcon",a.icon))},SVa=function(a,b){if(a&
1){var c=r();I(0,"span",6);E(1,RVa,1,1,"mat-icon",7);I(2,"a",8);M("click",function(f){var h=t(c).$implicit,k=P(3);h=h.href;wxa(f)||(f.preventDefault(),f.stopPropagation(),Lq(k.domSafe,h));return v()});Q(3);J()();I(4,"button",9);M("click",function(){var f=t(c).$implicit,h=P(3);return v(h.copyToClipboard(f.originalHref))});K(5,"mat-icon",10);J()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;var e=P(3);z();F(a.icon?1:-1);z();D("href",a.originalHref,uf)("rel",e.EXTERNAL_LINK_REL);z();ch(a.label);z();
wg("final",d===b-1)}},UVa=function(a){a&1&&(I(0,"div",5),Dg(1,SVa,6,6,null,null,TVa),J());a&2&&(a=P(2),z(),Eg(a.urls))},VVa=function(a){a&1&&E(0,UVa,3,0,"div",5);a&2&&(a=P(),F(a.opened?0:-1))},WVa=function(a){a&1&&(I(0,"div",4),Hg(1,5),J());a&2&&(a=P(),D("onedevIsHovercardReady",a.hovercardReady))},XVa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},YVa=function(a,b){a&1&&K(0,"b-plain-format-section",1);a&2&&D("section",b.$implicit)},ZVa=function(a){a&1&&K(0,"b-plain-format-quoted-section",
0);a&2&&(a=P(),D("section",a.section))},$Va=function(a){a&1&&K(0,"b-plain-format-unquoted-section",0);a&2&&(a=P(),D("section",a.section))},bWa=function(a){if(a&1){var b=r();I(0,"a",4);M("click",function(){t(b);var c=P();c.showQuote=!1;aWa(c);return v()});Q(1," - Hide quoted text - ");J()}a&2&&(a=P(),ng("aria-controls",a.childId))},cWa=function(a){if(a&1){var b=r();I(0,"a",5);M("click",function(){t(b);var c=P();c.showQuote=!0;aWa(c);return v()});Q(1," - Show quoted text - ");J()}a&2&&(a=P(),ng("aria-controls",
a.childId))},dWa=function(a,b){a&1&&K(0,"b-literal-format-presenter",0);a&2&&D("content",b)},eWa=function(a,b){if(a&1){var c=r();I(0,"b-markdown-format-presenter",2);M("checkboxChange",function(d){t(c);var e=P();return v(e.checkboxChange.emit(d))});J()}a&2&&(a=P(),D("content",b)("canEditComment",a.canEditComment))},fWa=function(a,b){a&1&&K(0,"b-plain-format-presenter",0);a&2&&D("content",b)},gWa=function(a,b){a&1&&(I(0,"div",1),K(1,"b-formatted-comment-presenter",2),J());a&2&&(a=P(),wg("invisible",
(a.comment||"").trim()==="")("error",b.isFallback),z(),D("formattedComment",b.formattedComment))},hWa=function(a){if(a&1){var b=r();I(0,"b-formatted-comment-presenter",4);M("checkboxChange",function(c){t(b);var d=P().markdownCheckboxService,e=d.rawComment.split("\n");c=l(c.startPos.split(":")).next().value;c=Number(c)-1;var f=e[c];var h=f.search(/\[[ Xx]\]/);if(h!==-1){var k=f[h+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,h)+k+f.substring(h+k.length))}e[c]=f;d.rawComment=e.join("\n");
d.rawComment$.next(d.rawComment);d.savingState=d.editIssueService.savingState(d.issueId);d.savingState.get("commentEdit")||(Mq(d.butterBar,"Saving comment edit...",0),Nq(d.savingState,"commentEdit"));Oq(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return v()});J()}a&2&&(a=P(),D("formattedComment",a.formattedComment)("canEditComment",a.canEditComment))},iWa=function(a){a&1&&K(0,"b-live-preview",3);a&2&&(a=P(),D("comment",a.rawComment)("issueId",a.issueId)("audience",
a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode||a.FormattingMode.PLAIN)("idPrefix",a.idPrefix))},jWa=function(a){a&1&&(Fg(0),Q(1,"Un-CC me"),Gg())},kWa=function(a){a&1&&(Fg(0),Q(1,"CC me"),Gg())},mWa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new Pq(new lWa(a,d))},Qq=function(){return new nWa(ud.apply(0,arguments))},pWa=function(){return new oWa(ud.apply(0,arguments))},rWa=function(){var a=ud.apply(0,arguments);return a.length===
1?a[0]:new qWa(a)},tWa=function(){return new sWa(ud.apply(0,arguments))},vWa=function(a,b){if(a&1){var c=r();I(0,"div",3)(1,"b-contact-chip",5);M("chipSelection",function(){var d=t(c).$index,e=P();e.selectedChipIndex!==d&&Rq(e,d)&&(uWa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){t(c);var d=P();return v(uWa(d))})("chipRemove",function(){var d=t(c).$index,e=P();return v(e.removeItem(d))});J()()}a&2&&(a=b.$implicit,b=P(),z(),D("isReadonly",a.isReadonly)("isSelected",
a.isSelected)("isWidgetDisabled",b.isWidgetDisabled())("principalType",a.principalType)("detailedUserType",a.detailedUserType)("nestedChips",a.nestedChips)("value",a.value)("displayText",a.displayText)("accessLevel",b.getAccessLevel()))},yWa=function(a){if(a&1){var b=r();I(0,"input",8,0);M("autocompleteActive",function(){t(b);var c=P(2);return v(c.chipifyFn())});gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.typedText,c)||(d.typedText=c);return v(c)});M("focus",function(){t(b);var c=P(2);return v(wWa(c))})("blur",
function(){t(b);var c=P(2);xWa(c);c.isFocused=!1;return v()});J()}a&2&&(a=P(2),D("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn),eh("ngModel",a.typedText),D("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText),ng("aria-expanded",!1))},AWa=function(a){if(a&1){var b=r();I(0,"input",9,0);M("peoplekitAutocompleteSelectionChange",function(c){t(b);var d=P(2);return v(d.selectAutocomplete(c))});gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.typedText,
c)||(d.typedText=c);return v(c)});M("focus",function(){t(b);var c=P(2);return v(wWa(c))})("blur",function(){t(b);var c=P(2);xWa(c);c.isFocused=!1;return v()});J()}a&2&&(a=P(2),D("peoplekitAutocompleteConfig",zWa(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.SESSION_OPTIONS),eh("ngModel",a.typedText),D("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},BWa=function(a){a&1&&E(0,yWa,2,6,"input",6)(1,AWa,2,5,"input",7);a&2&&(a=P(),F(a.enablePeoplekitAc?1:0))},CWa=function(a){a&
1&&(I(0,"span"),Q(1," Groups cannot be granted Restricted+ reader permission. "),I(2,"a",10),Q(3,"Learn more"),J()());a&2&&(a=P(),z(2),ng("href",Dq(a.documentationLinks)+"#components",uf))},DWa=function(a){a&1&&(I(0,"span"),Q(1," Invalid user(s). "),J())},EWa=function(a){a&1&&(I(0,"span"),Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),J())},FWa=function(a){a&1&&(I(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),
J())},GWa=function(a){a&1&&(I(0,"span"),Q(1," Team owner cannot be a group. "),J())},HWa=function(a){a&1&&(I(0,"span"),Q(1," Team owner can only be a full-time Googler. "),J())},IWa=function(a){a&1&&(I(0,"span"),Q(1," Only users in the Google domain can be selected. "),J())},JWa=function(a){a&1&&(I(0,"span"),Q(1," User has already been selected. "),J())},KWa=function(a){a&1&&(I(0,"span"),Q(1," Only users can be selected. Groups and aliases are not supported. "),J())},PWa=function(a,b){if(!b||!a)return LWa;
var c;return!MWa((c=b.readers)!=null?c:[])||NWa(a)?OWa:LWa},MWa=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":!1})},NWa=function(a){return a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},QWa=function(a,b){a&1&&(I(0,"a",6),Q(1," Learn more. "),J());a&2&&D("href",b,uf)},RWa=function(a,b){a&1&&K(0,"b-multi-user-input",9);a&2&&(D("users",b),ng("disabled",!0))},SWa=function(a){a&1&&(Fg(0,8),K(1,"br"),I(2,"h2"),Q(3,"Users who can view"),J(),
E(4,RWa,1,2,"b-multi-user-input",9),S(5,"async"),Gg());if(a&2){var b;a=P(2);D("onedevIsHovercardReady",a.showHovercard$);z(4);F((b=T(5,2,a.viewers$))?4:-1,b)}},UWa=function(a){if(a&1){var b=r();I(0,"span",2,0);S(2,"async");S(3,"async");M("focus",function(){t(b);var f=L(1);P().loadTooltipOnce();f.disabled=!1;return v(f.show())})("blur",function(){t(b);var f=L(1);f.disabled=!0;return v(f.hide())});Q(4);S(5,"async");J();I(6,"onedev-hovercard",null,1)(8,"div",3)(9,"div",4)(10,"div",5);Q(11);S(12,"async");
E(13,QWa,2,1,"a",6);C(14,SWa,6,4,"ng-container",7);J()()()()}if(a&2){var c;a=L(7);var d=P();wg("xs",d.compactMode);var e;D("onedevHovercardTrigger",a)("matTooltipDisabled",!0)("matTooltip",(e=T(2,9,d.tooltipText$))!=null?e:"")("ngClass",T(3,11,d.chipClass$));z(4);R(" ",T(5,13,d.chipText$)," ");z(7);R(" ",T(12,15,d.bubbleText$)," ");z(2);F((c=TWa(d.documentationLinks))?13:-1,c)}},VWa=function(a){return a==="visible_to_listed_partners"||a==="visible_to_listed_public_users"},WWa=function(a){a&1&&(I(0,
"span"),Q(1," Assigned to "),K(2,"b-user-display",12),J());a&2&&(a=P(2),z(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},XWa=function(a){a&1&&(I(0,"span"),Q(1," Accepted by "),K(2,"b-user-display",12),J());a&2&&(a=P(2),z(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},YWa=function(a){a&1&&(I(0,"span"),Q(1," Duplicate of "),I(2,"a",2),Q(3),J()());if(a&2){a=P(2);var b=P();z(2);pg("aria-label","Go to issue ",a.duplicateOfIssueId);D("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),
uf);z();R(" ",a.duplicateOfIssueId," ")}},ZWa=function(a){a&1&&(I(0,"span"),Q(1),J());if(a&2){a=P();var b=P(2);z();var c;R(" ",(c=b.STATUS_JS_FULL_TEXT.get(a))!=null?c:""," ")}},$Wa=function(a,b){a&1&&E(0,WWa,3,2,"span")(1,XWa,3,2,"span")(2,YWa,4,4,"span")(3,ZWa,2,1,"span");a&2&&F(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},aXa=function(a,b){a&1&&K(0,"b-app-vote-button",13);if(a&2){a=P();var c=P(2),d;D("issueId",c.issueId)("voteCount",a.voteCount)("upvoted",(d=b.voted)!=null?d:!1)}},bXa=
function(a){a&1&&E(0,aXa,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);F((b=a.issue.userData)?0:-1,b)}},dXa=function(a){if(a&1){var b=r();I(0,"button",14);M("click",function(){t(b);var c=P(2);return v(cXa(c,c.childContextId))});Q(1," Unlink parent ");J()}},eXa=function(a,b){a&1&&(I(0,"li"),Q(1," Last updated by "),K(2,"b-user-display",12),Q(3," on: "),K(4,"b-formatted-date-time",15),J());a&2&&(a=P(),z(2),D("model",b)("hovercardEnabled",!1),z(2),D("timestamp",a.modifiedTimeMicros/1E3))},fXa=function(a,
b){a&1&&(E(0,eXa,5,3,"li"),I(1,"li"),Q(2," Reported by "),K(3,"b-user-display",12),Q(4," on: "),K(5,"b-formatted-date-time",15),J());if(a&2){var c;a=P();F((c=b.lastModifier)?0:-1,c);z(3);D("model",a.reporterUser)("hovercardEnabled",!1);z(2);D("timestamp",b.createdTimeMicros/1E3)}},gXa=function(a){a&1&&(I(0,"li",11),K(1,"b-note-container",16),J());if(a&2){a=P(2);z();var b;D("issueId",a.issueId)("issueAccessLevel",a.issue.accessLimit==null?null:a.issue.accessLimit.accessLevel)("formattingMode",(b=a.firstEvent==
null?null:a.firstEvent.formattingMode)!=null?b:a.FormattingMode.UNSPECIFIED_FORMATTING_MODE)("note",a.getNote())}},jXa=function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"h3")(2,"a",2);Q(3);J();Q(4," \u00a0 ");I(5,"span",3);Q(6);J()();I(7,"ul")(8,"li",4);K(9,"b-issue-visibility-chip",5);J();I(10,"li",6)(11,"span",7);Q(12);J();Q(13," \u00a0 ");E(14,$Wa,4,1);J()();I(15,"div",8)(16,"b-cc-button",9);M("onCc",function(q){t(c);var u=P();u.location&&q&&u.analytics.trackEvent(u.location+"_issueCard","add","CC");
return v()});J();E(17,bXa,1,1);E(18,dXa,2,0,"button",10);J();I(19,"ul");E(20,fXa,6,4);E(21,gXa,2,4,"li",11);J()()}if(a&2){var d,e,f;a=P();z(2);pg("aria-label","Go to issue ",a.issueId);D("href",a.ROUTES.viewIssue.makeHref(a.issueId),uf);z();ch(a.issueId);z(3);ch(b.title);z(3);D("issueId",a.issueId);z(2);D("ngClass",a.priorityClass(b.priority));z();var h;ch(a.ISSUE_PRIORITY_TEXT_JS[(h=b.priority)!=null?h:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);z(2);F((d=b.status)?14:-1,d);z(2);var k;D("issueId",
a.issueId)("ccState",hXa(a,(k=b.ccUsers)!=null?k:ih(15,iXa)));z();F((e=a.issue.aggregatedData)?17:-1,e);z();F(a.childContextId?18:-1);z(2);F((f=a.issue.aggregatedData)?20:-1,f);z();F(a.firstEvent&&Xxa(a.firstEvent)?21:-1)}},kXa=function(a){a=a.getIt();return{matchedPatterns:Ek(a,1,Fk())}},mXa=function(a){if(a&1){var b=r();I(0,"span",12);M("onedevHovercardShown",function(){t(b);var d=P(2);return v(lXa(d))});Q(1);J()}if(a&2){a=P(2);var c=L(6);D("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);
z();ch(a.title)}},nXa=function(a){a&1&&(I(0,"span",9),Q(1),J());a&2&&(a=P(2),z(),ch(a.title))},pXa=function(a){if(a&1){var b=r();E(0,mXa,2,3,"span",8)(1,nXa,2,1,"span",9);I(2,"a",10);M("keydown",function(c){t(b);P();c.key==="Enter"&&c.stopPropagation();return v()})("click",function(c){t(b);var d=P();return v(oXa(d,c))});K(3,"mat-icon",11);J()}a&2&&(a=P(),F(a.enableHovercard?0:1),z(2),D("routerLink","/"+a.link)("target",a.anchorTarget)("matTooltipShowDelay",250))},qXa=function(a){a&1&&Hg(0)},rXa=function(a){a&
1&&C(0,qXa,1,0,"ng-container",13);a&2&&(P(),a=L(11),D("ngTemplateOutlet",a))},sXa=function(a,b){a&1&&(I(0,"span",14),Q(1),J());if(a&2){xg(b.cssClass);qg("aria-label","",b.title," - ",b.tooltip);var c;D("matTooltip",(c=b.tooltip)!=null?c:"");z();ch(b.title)}},tXa=function(a){a&1&&K(0,"b-issue-card",6);a&2&&(a=P(),D("issueId",a.issue.issueId))},uXa=function(a){a&1&&(I(0,"p",7),Q(1),I(2,"a",15),Q(3," Learn more "),J()());a&2&&(a=P(),z(),R(" ",Sq(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},
wXa=function(a){if(a&1){var b=r();I(0,"input",17,2);S(2,"async");M("input",function(){t(b);var c=P(2);return v(c.bannedWordsChecker.reset())});gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.title,c)||(d.title=c);return v(c)});M("keydown",function(c){t(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),vXa(d)):c.key==="Escape"?(c.stopPropagation(),d.bannedWordsChecker.reset(),d.onCancel.emit()):c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||c.stopPropagation();return v()})("blur",function(){t(b);
var c=P(2);return v(c.onInputBlur())});J();I(3,"b-button",18);M("onAction",function(){t(b);var c=P(2);return v(vXa(c))});Q(4,"Save");J();I(5,"b-button",19);M("onAction",function(c){t(b);var d=P(2);c.stopPropagation();d.bannedWordsChecker.reset();d.onCancel.emit();return v()});Q(6,"Cancel");J()}a&2&&(a=P(2),wg("banned-words-warning",T(2,6,a.bannedWordsChecker.showWarning$)),D("bFocus",!0),eh("ngModel",a.title),z(3),D("disabled",!a.title||a.savingTitle),z(2),D("disabled",a.savingTitle))},xXa=function(a){if(a&
1){var b=r();I(0,"a",20);M("keydown",function(d){t(b);P(2);d.key==="Enter"&&d.stopPropagation();return v()})("click",function(d){t(b);var e=P(2);return v(oXa(e,d))})("onedevHovercardShown",function(){t(b);var d=P(2);return v(lXa(d))});Q(1);J()}if(a&2){a=P(2);var c=L(6);D("routerLink","/"+a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);z();ch(a.title)}},yXa=function(a){a&1&&E(0,wXa,7,8)(1,xXa,2,5,"a",16);a&2&&(a=P(),F(a.isEditMode?0:1))},zXa=
function(a){a&1&&(I(0,"span",3),Og(1,1),J())},AXa=function(a){a&1&&(I(0,"span",6),Og(1,2),J())},BXa=function(a){a&1&&(I(0,"span",3),Og(1,1),I(2,"span",8),Vd(),I(3,"svg",9),K(4,"path",10),J()()())},CXa=function(a){a&1&&(I(0,"span",6),Og(1,2),J())},DXa=function(a){a&1&&(I(0,"span",4),Q(1),J());a&2&&(a=P(),z(),ch(a.placeholder))},EXa=function(a){a&1&&Og(0)},FXa=function(a){a&1&&(I(0,"span",11),Q(1),J());a&2&&(a=P(2),z(),ch(a.triggerValue))},GXa=function(a){a&1&&(I(0,"span",5),E(1,EXa,1,0)(2,FXa,2,1,
"span",11),J());a&2&&(a=P(),z(),F(a.customTrigger?1:2))},HXa=function(a){if(a&1){var b=r();I(0,"div",12,1);M("keydown",function(c){t(b);var d=P();return v(d._handleKeydown(c))});Og(2,1);J()}a&2&&(a=P(),zg("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme()),wg("mat-select-panel-animations-enabled",!a._animationsDisabled),D("ngClass",a.panelClass),ng("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},
IXa=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},JXa=function(a){a&1&&Og(0,2)},KXa=function(a){a&1&&(I(0,"thead",0),Hg(1,1),J(),I(2,"tbody",0),Hg(3,2)(4,3),J(),I(5,"tfoot",0),Hg(6,4),J())},LXa=function(a){a&1&&Hg(0,1)(1,2)(2,3)(3,4)},MXa=function(a,b){return a.concat(Array.from(b))},NXa=function(a,b){b=b.toUpperCase();for(a=a.viewContainer.element.nativeElement;a;){var c=a.nodeType===1?a.nodeName:null;if(c===b)return a;if(c===
"TABLE")break;a=a.parentNode}return null},OXa=function(a){a&1&&Og(0,2)},PXa=function(a){a&1&&(I(0,"thead",0),Hg(1,1),J(),I(2,"tbody",2),Hg(3,3)(4,4),J(),I(5,"tfoot",0),Hg(6,5),J())},QXa=function(a){a&1&&Hg(0,1)(1,3)(2,4)(3,5)},RXa=function(a,b){a&1&&(I(0,"div",18)(1,"div",19),Q(2,"CURRENT ISSUE"),J(),I(3,"div",20),Q(4),J()());a&2&&(z(4),R(" ",b==null?null:b.snapshot[0].title," "))},SXa=function(a){a&1&&(E(0,RXa,5,1,"div",18),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.currentIssue$))?0:-1,b)}},
TXa=function(a){a&1&&K(0,"mat-icon",21)},UXa=function(a){a&1&&K(0,"mat-icon",22)},VXa=function(a,b){a&1&&E(0,TXa,1,0,"mat-icon",21)(1,UXa,1,0,"mat-icon",22);a&2&&(a=P(),F(b===a.SearchSource.SEMANTIC_SEARCH?0:1))},XXa=function(a){if(a&1){var b=r();I(0,"mat-chip-listbox",37)(1,"mat-chip-option",38,4);M("keydown.enter",function(){t(b);var d=L(2);return v(d.openMenu())})("keyup.space",function(){t(b);var d=L(2);return v(d.openMenu())})("menuOpened",function(){t(b);var d=P(4);return v(WXa(d))});I(3,"span");
Q(4);J();K(5,"mat-icon",36);J()()}if(a&2){P(2);a=L(10);var c=P(2);D("selectable",!1);z();D("matMenuTriggerFor",a);z(3);ch(c.selectedScopeFilter.displayAs.replace("Component: ",""))}},ZXa=function(a){if(a&1){var b=r();I(0,"mat-chip-listbox",34)(1,"mat-chip-option",35,3);M("keydown.enter",function(){t(b);var d=L(2);return v(d.openMenu())})("keyup.space",function(){t(b);var d=L(2);return v(d.openMenu())});I(3,"span");Q(4);J();K(5,"mat-icon",36);J()();E(6,XXa,6,3,"mat-chip-listbox",37)}if(a&2){P();a=
L(7);var c=P(2);D("selectable",!1);z();D("matMenuTriggerFor",a);z(3);ch(YXa(c.selectedScopeFilter.displayAs));z(2);F(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:-1)}},aYa=function(a){if(a&1){var b=r();I(0,"button",41);M("click",function(){t(b);var c=P(4);return v($Xa(c,c.componentFilter))});K(1,"mat-icon",42);Q(2);J()}a&2&&(a=P(4),D("matTooltip",a.componentFilter.tooltip||""),z(),wg("invisible",a.componentFilter!==a.selectedScopeFilter),z(),R(" ",a.componentFilter.displayAs," "))},
bYa=function(a){if(a&1){var b=r();I(0,"button",43);M("click",function(){t(b);var c=P(4);return v($Xa(c,c.teamFilter))});K(1,"mat-icon",42);Q(2);J()}a&2&&(a=P(4),D("matTooltip",a.teamFilter.tooltip||""),z(),wg("invisible",a.teamFilter!==a.selectedScopeFilter),z(),R(" ",a.teamFilter.displayAs," "))},cYa=function(a){a&1&&(E(0,aYa,3,4,"button",39),E(1,bYa,3,4,"button",40));a&2&&(a=P(3),F(a.componentFilter?0:-1),z(),F(a.teamFilter?1:-1))},eYa=function(a){if(a&1){var b=r();I(0,"div",45)(1,"b-team-component-picker",
46);M("selectedComponentChange",function(c){t(b);var d=P(4);return v(d.selectedComponent=c)});J()();I(2,"div",47)(3,"button",48);M("click",function(){t(b);var c=P(4);return v(dYa(c,c.selectedComponent))});Q(4," Choose ");J();I(5,"button",49);M("click",function(){t(b);P(4).trigger.closeMenu();return v()});Q(6," Cancel ");J()()}a&2&&(a=P(4),z(),D("selectedComponent",a.selectedComponent)("placeholder","Search for a component")("shouldFocus",!0)("isRequired",!0),z(2),D("disabled",!a.selectedComponent))},
fYa=function(a){if(a&1){var b=r();I(0,"div",44);M("click",function(c){t(b);return v(c.stopPropagation())})("keydown.tab",function(c){t(b);return v(c.stopPropagation())})("keydown.shift.tab",function(c){t(b);return v(c.stopPropagation())});E(1,eYa,7,5);J()}a&2&&(a=P(3),z(),F(a.componentFilter?1:-1))},gYa=function(a){if(a&1){var b=r();I(0,"button",50);M("click",function(){t(b);var c=P(3);return v(c.openLearnMore())});K(1,"mat-icon",51);J()}},iYa=function(a){if(a&1){var b=r();I(0,"div",23)(1,"mat-chip-listbox",
24);M("change",function(c){t(b);var d=P(2);return v(d.openFilterChanged(c.value))});I(2,"mat-chip-option",25)(3,"span",26);Q(4);J()()();E(5,ZXa,7,4);I(6,"mat-menu",27,1);C(8,cYa,2,2,"ng-template",28);J();I(9,"mat-menu",29,2);C(11,fYa,2,1,"ng-template",28);J();I(12,"mat-chip-listbox",30);M("change",function(){t(b);var c=P(2);return v(hYa(c))});I(13,"mat-chip-option",31);S(14,"async");I(15,"span",32);Q(16);J()()();E(17,gYa,2,0,"button",33);J()}a&2&&(a=P(2),z(2),D("selected",a.selectedFilters$.has(a.openFilter))("value",
a.openFilter),z(),D("matTooltip",a.openFilter.tooltip||""),z(),R(" ",a.openFilter.displayAs," "),z(),F(a.selectedScopeFilter?5:-1),z(8),D("selected",T(14,8,a.includeDescendants$)),z(3),R(" Include sub-",a.selectedScopeFilter===a.componentFilter?"components":"teams"," "),z(),F(a.isInternalSession?17:-1))},jYa=function(a,b){a&1&&E(0,iYa,18,10,"div",23);a&2&&(a=P(),F(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},kYa=function(a){a&1&&K(0,"ai-spinner",52);
a&2&&D("large",!0)},lYa=function(a){a&1&&K(0,"ai-spinner",53)},mYa=function(a){a&1&&K(0,"b-spinner",54)},nYa=function(a){a&1&&(I(0,"div",13),E(1,kYa,1,1,"ai-spinner",52),S(2,"async"),Ag(3,lYa,1,0,"ai-spinner",53)(4,mYa,1,0,"b-spinner",54),J());a&2&&(a=P(),z(),F(a.searchText$.value?a.searchText$.value&&T(2,1,a.selectedSearchSource$)===a.SearchSource.SEMANTIC_SEARCH?3:4:1))},oYa=function(a){a&1&&(I(0,"b-callout",55)(1,"b-callout-body"),Q(2," This issue was suggested by AI! Save time by exploring the suggestions first next time. "),
I(3,"a",59),Q(4,"Learn more"),J()()())},pYa=function(a){a&1&&(I(0,"h3",56),K(1,"mat-icon",60),Q(2," Possible duplicates "),J())},qYa=function(a){a&1&&(I(0,"th",79)(1,"span",80),Q(2,"Selection"),J()())},rYa=function(a,b){a&1&&(I(0,"td",81),K(1,"mat-radio-button",82),S(2,"async"),J());a&2&&(a=b.$implicit,b=P(3),z(),D("checked",T(2,3,Tq(b.selectedIssues,a.issueId)))("aria-label",a.snapshot[0].title)("value",a.issueId))},sYa=function(a){a&1&&(I(0,"th",79),Q(1," Title "),J())},tYa=function(a,b){a&1&&(I(0,
"td",81),K(1,"b-issue-title-cell",83),J());a&2&&(a=b.$implicit,b=P(3),z(),D("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0)("enableHovercard",!0))},uYa=function(a){a&1&&(I(0,"th",79),Q(1," Id "),J())},vYa=function(a,b){a&1&&(I(0,"td",81),K(1,"b-issue-id-cell",84),J());a&2&&(a=b.$implicit,z(),D("id",a.issueId))},wYa=function(a){a&1&&(I(0,"th",79),Q(1," Priority "),J())},xYa=function(a,b){a&1&&(I(0,"td",81),K(1,"b-issue-priority-cell",85),J());a&2&&(a=b.$implicit,z(),D("issue",
a))},yYa=function(a){a&1&&(I(0,"th",86),Q(1," Status "),J())},zYa=function(a,b){a&1&&(I(0,"td",81),K(1,"b-issue-status-cell",85),J());a&2&&(a=b.$implicit,z(),D("issue",a))},AYa=function(a){a&1&&(I(0,"th",79),Q(1," Dupes "),J())},BYa=function(a,b){a&1&&(I(0,"td",87),Q(1),J());if(a&2){a=b.$implicit;z();var c;R(" ",(c=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?c:0," ")}},CYa=function(a){a&1&&(I(0,"th",88)(1,"span",80),Q(2,"Votes"),J(),K(3,"mat-icon",89),J())},
DYa=function(a,b){a&1&&(I(0,"td",87),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.aggregatedData.voteCount," "))},EYa=function(a){a&1&&(I(0,"th",90),Q(1," Created "),J())},FYa=function(a,b){a&1&&(I(0,"td",81),K(1,"b-issue-created-time-cell",91),J());a&2&&(a=b.$implicit,z(),D("issue",a))},GYa=function(a){a&1&&K(0,"tr",92)},HYa=function(a,b){if(a&1){var c=r();I(0,"tr",93);M("keydown",function(d){var e=t(c),f=e.$implicit;e=e.index;var h=P(3);return v(h.onRowKeydown(e,f,d))})("keydown.enter",function(){var d=
t(c).$implicit,e=P(3);return v(e.selectIssue(d.issueId))})("focusin",function(){var d=t(c).$implicit,e=P(3);return v(Uq(e.focusManager,d))})("click",function(){var d=t(c),e=d.$implicit;d=d.index;var f=P(3);f.selectIssue(e.issueId);return v(f.focusManager.setActiveItem(d))});J()}a&2&&D("row",b.$implicit)},JYa=function(a){if(a&1){var b=r();I(0,"table",61);M("contentChanged",function(){t(b);var d=P(),e=P();return v(IYa(e,d))});Fg(1,62);C(2,qYa,3,0,"th",63);I(3,"mat-radio-group",64);M("change",function(d){t(b);
var e=P(2);return v(e.selectIssue(d.value))});C(4,rYa,3,5,"td",65);J();Gg();Fg(5,66);C(6,sYa,2,0,"th",63)(7,tYa,2,4,"td",65);Gg();Fg(8,67);C(9,uYa,2,0,"th",63)(10,vYa,2,1,"td",65);Gg();Fg(11,68);C(12,wYa,2,0,"th",63)(13,xYa,2,1,"td",65);Gg();Fg(14,69);C(15,yYa,2,0,"th",70)(16,zYa,2,1,"td",65);Gg();Fg(17,71);C(18,AYa,2,0,"th",63)(19,BYa,2,1,"td",72);Gg();Fg(20,73);C(21,CYa,4,0,"th",74)(22,DYa,2,1,"td",72);Gg();Fg(23,75);C(24,EYa,2,0,"th",76)(25,FYa,2,1,"td",65);Gg();C(26,GYa,1,0,"tr",77)(27,HYa,1,
1,"tr",78);J()}if(a&2){a=P();var c=P();D("dataSource",a)("trackBy",c.trackByIssueId);z(26);D("matHeaderRowDef",c.tableColumns);z();D("matRowDefColumns",c.tableColumns)}},KYa=function(a){a&1&&(I(0,"div",58)(1,"span",94),Q(2,"No results found"),J()())},LYa=function(a,b){a&1&&(I(0,"div",14),E(1,oYa,5,0,"b-callout",55),E(2,pYa,3,0,"h3",56),E(3,JYa,28,4,"table",57),E(4,KYa,3,0,"div",58),J());a&2&&(a=P(),z(),F(a.isPasteResultInSuggestion?1:-1),z(),F(a.searchText$.value||a.isLoading?-1:2),z(),F(!a.isLoading&&
b&&b.length?3:-1),z(),F(a.isLoading||(b==null?null:b.length)!==0?-1:4))},MYa=function(a){a&1&&(I(0,"div")(1,"p"),Q(2),J()());a&2&&(a=P(),z(2),ch(a.description))},NYa=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},OYa=function(a,b){a&1&&(I(0,"span",1),Q(1),J(),I(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"h3"),Q(7),J(),E(8,MYa,3,1,"div"),J()()(),E(9,NYa,2,0,"span"));if(a&2){a=L(3);var c=P(),d=c.$index;c=c.$count;D("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);z();
ch(b.displayName);z(6);ch(b.displayName);z();F(b.description?8:-1);z();F(d!==c-1?9:-1)}},QYa=function(a,b){a&1&&(E(0,OYa,10,6),S(1,"async"));if(a&2){var c;a=b.$implicit;b=P();F((c=T(1,1,PYa(b,a)))?0:-1,c)}},RYa=function(a){if(a&1){var b=r();I(0,"button",4);M("click",function(c){t(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return v()});K(1,"b-icon",5);J()}a&2&&(a=P(),wg("collapsed",!a.expanded),ng("aria-label",a.expanded?"Collapse children":
"Expand children"))},SYa=function(a){a&1&&K(0,"div",2)},TYa=function(a){a&1&&K(0,"mat-icon",1);a&2&&(a=P(),D("svgIcon",a.icon))},UYa=function(a){if(a&1){var b=r();K(0,"b-signal-chip",3);I(1,"button",4);M("click",function(c){t(b);var d=P();c.preventDefault();c.stopPropagation();return v(d.dismissAlert())})("mousedown",function(){t(b);var c=P();return v(c.dismissAlert())});K(2,"mat-icon",5);J()}a&2&&(P(),a=Mg(1),D("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},WYa=function(a){a&
1&&(I(0,"div",2),Q(1),J());if(a&2){a=P();var b=L(5);D("xapInlineDialog",b);z();R(" +",VYa(a).slice(1).length," ")}},XYa=function(a,b){if(a&1){var c=r();I(0,"div",6);K(1,"b-signal-chip",3);I(2,"button",4);M("click",function(d){t(c);var e=P(2);d.preventDefault();d.stopPropagation();return v(e.dismissAlert())})("mousedown",function(){t(c);var d=P(2);return v(d.dismissAlert())});K(3,"mat-icon",7);J()()}a&2&&(a=b.$implicit,z(),D("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},
YYa=function(a){a&1&&(I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Dg(2,XYa,4,3,"div",6,Bg),J()());a&2&&(a=P(),z(2),Eg(VYa(a).slice(1)))},ZYa=function(a){a&1&&(I(0,"b-person-hovercard",1),Q(1),J());a&2&&(a=P(),D("email",a.assignee),z(),R(" ",a.assignee," "))},$Ya=function(a){a&1&&K(0,"b-team-display",1);a&2&&(a=P(),D("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},aZa=function(a,b){a&1&&K(0,"b-user-image",0);a&2&&D("email",b)},bZa=function(a){if(a&1){var b=r();
I(0,"button",2);M("click",function(){t(b);var c=P();return v(c.claim())})("mousedown",function(){t(b);var c=P();return v(c.claim())});Q(1," Claim ");J()}},cZa=function(a){a&1&&(Fg(0),Q(1),S(2,"enumToHuman"),Gg());a&2&&(a=P(),z(),ch(T(2,1,a.type)))},dZa=function(a){a&1&&(I(0,"a",1),K(1,"mat-icon",2),J());a&2&&(a=P(),D("href",a.mdHelpLink,uf)("disableRipple",!0))},eZa=function(a){a&1&&Hg(0)},fZa=function(a){a&1&&(I(0,"span"),Q(1,"Details"),J())},gZa=function(a){a&1&&(I(0,"span"),Q(1,"Members"),J())},
hZa=function(a){a&1&&(I(0,"div",11)(1,"a",12),E(2,fZa,2,0,"span")(3,gZa,2,0,"span"),J()());if(a&2){a=P(2);z();if(a.email===void 0)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=pba(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":qua(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}D("href",b,uf);z();F(pba(a.email)?2:3)}},iZa=function(a){a&1&&(I(0,"span",2),C(1,eZa,1,0,"ng-container",
3),J(),I(2,"onedev-hovercard",null,1)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),Q(10),J()(),I(11,"div",9),K(12,"mat-icon",10),I(13,"span"),Q(14),J()()(),E(15,hZa,4,2,"div",11),J()()()());if(a&2){a=L(3);var b=P(),c=L(3);D("onedevHovercardTrigger",a);z();D("ngTemplateOutlet",c);z(9);ch(b.getName());z(4);ch(b.email);z();F(b.shouldShowLinks()?15:-1)}},jZa=function(a){a&1&&Hg(0)},kZa=function(a){a&1&&C(0,jZa,1,0,"ng-container",3);a&2&&(P(),a=L(3),D("ngTemplateOutlet",a))},lZa=function(a){a&
1&&Og(0)},mZa=function(a){a&1&&(I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Og(2),J()())},nZa=function(a,b){a&1&&K(0,"mat-icon",2);a&2&&D("svgIcon",b)},oZa=function(a){a&1&&(I(0,"b-person-hovercard",4),Q(1),J());a&2&&(a=P(),D("email",a.value),z(),R(" ",a.displayText," "))},pZa=function(a){a&1&&(I(0,"b-group-email-card",4),Q(1),J());a&2&&(a=P(),D("email",a.value),z(),R(" ",a.displayText," "))},qZa=function(a,b){a&1&&(I(0,"div",8),K(1,"b-contact-chip",9),J());a&2&&(a=b.$implicit,b=P(3),
z(),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},rZa=function(a){a&1&&(I(0,"div",7),Dg(1,qZa,2,5,"div",8,Cg),J());a&2&&(a=P(2),z(),Eg(a.nestedChips))},sZa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(2),z(),ch(a.getTooltip()))},tZa=function(a){a&1&&(I(0,"b-text-with-tooltip",5),E(1,rZa,3,0,"div",7)(2,sZa,2,1,"span"),J());a&2&&(a=P(),D("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",
a.displayText),z(),F(a.isContainerChip()?1:2))},uZa=function(a){if(a&1){var b=r();I(0,"div",10);M("click",function(){t(b);var c=P();return v(c.chipRemove.emit())})("keydown.enter",function(){t(b);var c=P();return v(c.chipRemove.emit())});K(1,"mat-icon",11);J()}a&2&&(a=P(),Pg("matTooltip","'Remove ",a.displayText,"'"),ng("aria-label","Remove "+a.displayText))},vZa=function(a,b){b&&(b.autocompleteGroupingType!=null&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),b.autocompleteGroupingLabel!=
null&&a.setAutocompleteGroupingLabel(b.autocompleteGroupingLabel),b.autocompleteHeader!=null&&a.setAutocompleteHeader(b.autocompleteHeader),b.autocompleteMaxResultsBeforeScroll!=null&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),b.density!=null&&a.setDensity(b.density),b.theme!=null&&a.setTheme(b.theme),b.moveAutocompleteAboveAnchorIfOffscreen!=null&&a.setMoveAutocompleteAboveAnchorIfOffscreen(b.moveAutocompleteAboveAnchorIfOffscreen),b.autoActivateFirstSuggestion!=
null&&a.setAutoActivateFirstSuggestion(b.autoActivateFirstSuggestion),b.showSuggestions!=null&&a.setShowSuggestions(b.showSuggestions),b.noResultsMessage!=null&&a.setNoResultsMessage(b.noResultsMessage),b.autoActivateFirstSearchResult!=null&&a.setAutoActivateFirstSearchResult(b.autoActivateFirstSearchResult),b.clearSelectionOnSearch!=null&&a.setClearSelectionsOnSearch(b.clearSelectionOnSearch),b.resultCustomizationCallback!=null&&a.setResultCustomizationCallback(b.resultCustomizationCallback))},wZa=
function(a,b){a&1&&(I(0,"span",1),Q(1),J());a&2&&(D("matTooltip",b),z(),R(" ",b," "))},xZa=function(a){a&1&&(I(0,"b-person-hovercard",1),Q(1),J());a&2&&(a=P(),D("email",a.reporter),z(),R(" ",a.reporter," "))},yZa=function(a){a&1&&(I(0,"div")(1,"div",10),Q(2," An issue cannot reference itself. "),J()())},zZa=function(a){a&1&&(I(0,"mat-option",7)(1,"div",11),K(2,"b-spinner",12),J()());a&2&&(z(2),D("large",!0))},AZa=function(a){a&1&&(I(0,"mat-option",8),Q(1," No issues found. "),J())},BZa=function(a){a&
1&&K(0,"mat-icon",14);if(a&2){a=P().$implicit;var b=P(),c;D("svgIcon",(c=b.STATUS_ICON.get(a.status))!=null?c:"")}},CZa=function(a){a&1&&K(0,"b-issue-card",21,2);if(a&2){a=L(1);var b=P().$implicit;D("onedevIsHovercardReady",a.init)("issueId",b.resourceId)}},EZa=function(a,b){if(a&1){var c=r();I(0,"mat-option",9)(1,"div",13);E(2,BZa,1,1,"mat-icon",14);I(3,"strong",15);Q(4);J();I(5,"onedev-hovercard",null,1);C(7,CZa,2,2,"b-issue-card",16);J();I(8,"a",17);M("click",function(e){t(c);return v(e.stopPropagation())});
K(9,"mat-icon",18);J();I(10,"span",19);Q(11);J();K(12,"div",20);S(13,"boldPrefixMatches");J()()}if(a&2){a=b.$implicit;b=L(6);var d=P();D("value",a);z();ng("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");z();F(a.status?2:-1);z();Qg("title",a.resourceId);z();R(" ",a.resourceId," ");z(4);D("onedevHovercardTrigger",b)("href",d.getIssueLink(a),uf);z(3);ch(DZa(a));z();Qg("title",a.displayText);D("innerHTML",mh(13,10,a.displayText,d.query),tf)}},FZa=
function(a,b){a&1&&(I(0,"a",11),Q(1),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;Pg("href","issues/",a.resourceId,"",uf);z();dh(" ",a.resourceId,"",c===b-1?"":","," ")}},GZa=function(a){a&1&&(I(0,"div",3),Dg(1,FZa,2,4,"a",11,Cg),J());a&2&&(a=P(),z(),Eg(a.selectedIssues))},HZa=function(a){a&1&&(I(0,"div",3)(1,"a",12)(2,"span",13),Q(3),J(),I(4,"span"),K(5,"mat-icon",14),J()()());a&2&&(a=P(),z(),Pg("href","issues/",a.selectedIssues[0].resourceId,"",uf),z(2),R(" ",a.selectedIssues[0].displayText,
" "))},JZa=function(a){if(a&1){var b=r();I(0,"div",6)(1,"div",15);M("click",function(){t(b);var c=P();return v(IZa(c))})("keyup.space",function(){t(b);var c=P();return v(IZa(c))});J()()}a&2&&(a=P(),z(),D("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),ng("aria-checked",a.isQueryRestricted))},KZa=function(a){switch(a){case "RESTRICTION_SEVERITY_UNSPECIFIED":return 0;case "NONE_DETECTED":return 1;case "RESTRICTED":return 2;case "RESTRICTED_PLUS":return 3;
default:throw Error("ge`"+a);}},LZa=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),R("Retain ",a.resource," as long as issue?"))},MZa=function(a){a&1&&(I(0,"span"),Q(1,"Apply component retention settings?"),J())},NZa=function(a){a&1&&(I(0,"span")(1,"p"),Q(2),J(),I(3,"p")(4,"b"),Q(5,"Please note long retention is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored."),J(),K(6,"br"),Q(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),
J()());a&2&&(a=P(),z(2),R("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},OZa=function(a){a&1&&(I(0,"span")(1,"p"),Q(2),J()());a&2&&(a=P(),z(2),dh("This ",a.resource," is currently retained as long as the issue. If you select this option, this ",a.resource," will be scheduled for deletion based on the component retention settings."))},PZa=function(a){if(a&1){var b=r();I(0,"mat-checkbox",8);gh("ngModelChange",function(c){t(b);
var d=P();fh(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return v(c)});Q(1," I acknowledge ");J()}a&2&&(a=P(),eh("ngModel",a.acknowledgeToMatchIssueRetention))},QZa=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},RZa=function(){},TZa=function(a){a=a instanceof SZa?a:Vq(a);return a.value===null||a.value instanceof Wq?a:new SZa(a.value,!0)},UZa=function(a){return{queryParams:a.getQueryParameters(),extraHeaders:a.getHeaders(),
withCredentials:a.usesCredentialedRequests()}},YZa=function(a){if(a.oauthTokens){var b=a.oauthTokens;return Ge(b).then(function(c){c=new tj(c);b.subscribe(c);return new VZa(c)})}return a.apiKey?a.appAuthTokens?Promise.resolve(new WZa(a.apiKey,a.appAuthTokens)):Promise.resolve(new XZa(a.apiKey,a.authUser)):Promise.reject(Error("ne"))},ZZa=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;
case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}},$Za=function(a){return{send:function(b,c,d,e,f,h,k){var q=new Xq(a);q.listen("complete",c);q.listenOnce("ready",function(){q.dispose()});h&&(q.timeoutInterval_=Math.max(0,h));k&&(q.withCredentials_=k);q.send(b,d,e,f);return q}}},a_a=function(a){return new pe(function(b){var c=Yq(function(){b.next({});b.complete()},a);return function(){Zq(c)}})},b_a=function(a){return(new $q).setName(a)},g_a=function(a){var b=new ar;a=l(a.parts);
for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new c_a;if(d.value===null){d=c;var e=new d_a;Vm(d,13,br,e)}else d.value instanceof cr?d.isDecreasing?Nm(c,4,br,Xb(d.value.toString())):Nm(c,2,br,Xb(d.value.toString())):typeof d.value==="string"?d.isDecreasing?Am(c,3,br,d.value):Am(c,1,br,d.value):typeof d.value==="number"?d.isDecreasing?Nm(c,9,br,Hb(d.value)):Nm(c,10,br,Hb(d.value)):d.value instanceof Uint8Array?d.isDecreasing?Nm(c,5,br,ub(d.value,!1,!0)):Nm(c,7,br,ub(d.value,!1,!0)):d.value instanceof
e_a?d.isDecreasing?(e=c,d=f_a(d.value),Vm(e,11,br,d)):(e=c,d=f_a(d.value),Vm(e,12,br,d)):d.value instanceof Wq&&(c=d.value.rep);b.addParts(c)}return b},l_a=function(a,b){if(a instanceof dr)return b.getPartsList().length>0?null:h_a.apply(dr,p(a.parts));a=Array.of.apply(Array,p(a.root.parts));b=l(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,vm(c,br)){case 4:a.push(TZa(er(i_a(c,Km(c,br,4)))));break;case 2:a.push(Vq(er(i_a(c,Km(c,br,2)))));break;case 8:case 10:case 6:case 9:a.push(Vq(new Wq(c)));
break;case 3:a.push(TZa(fr(c,Km(c,br,3))));break;case 1:a.push(Vq(fr(c,Km(c,br,1))));break;case 7:var d=void 0;a.push(Vq((d=j_a(c,Km(c,br,7)))==null?void 0:new Uint8Array(zc(d)||0)));break;case 5:d=void 0;a.push(TZa((d=j_a(c,Km(c,br,5)))==null?void 0:new Uint8Array(zc(d)||0)));break;case 12:c=k_a(Qm(c,bl,12,br));if(c===null)return null;a.push(Vq(c));break;case 11:c=k_a(Qm(c,bl,11,br));if(c===null)return null;a.push(TZa(c));break;case 13:a.push(Vq(null));break;case 0:a.push(Vq(new Wq(c)));break;default:return null}return h_a.apply(dr,
p(a))},gr=function(a){return{firstPartyUri:new Qp("https://"+a+"-signaler-pa.clients6.google.com"),thirdPartyUri:new Qp("https://"+a+"-signaler-pa.googleapis.com")}},m_a=function(a){a&1&&(I(0,"div",6)(1,"div",11),K(2,"mat-icon",12),Q(3," Literal Mode "),J(),I(4,"span"),Q(5,"No formatting or linkification will be performed.\u00a0"),J(),I(6,"a",13),Q(7,"Learn more"),J()())},n_a=function(a){a&1&&(I(0,"div",7)(1,"div",14),Q(2," Warning: Mentions are not supported without edit access. "),J()())},r_a=function(a){if(a&
1){var b=r();I(0,"input",15,2);M("change",function(){t(b);var c=P();if(hr(c)){var d=ir(c);o_a(c);p_a(c,!0);ir(c).focus();d.scrollTop=c.scrollPosition;d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return v()})("keyup",function(c){t(b);var d=P();document.activeElement===q_a(d)&&(c.key==="Enter"||c.key==="Tab"?(d.taggingInProgress=!1,p_a(d,!0),ir(d).focus()):p_a(d));return v()});J()}a&2&&(a=P(),D("value",a.autocompleteUserName))},
s_a=function(a){a&1&&K(0,"div",10,3)},t_a=function(a){a&1&&Hg(0)},u_a=function(a){a&1&&Hg(0)},v_a=function(a){a&1&&(I(0,"p",5),Q(1),I(2,"a",11),Q(3," Learn more "),J()());a&2&&(a=P(),z(),R(" Your comment contains restricted words: ",Sq(a.bannedWordsChecker),". Review your comment before posting. "))},w_a=function(a){a&1&&K(0,"b-live-preview",7);a&2&&(a=P(),D("comment",a.newComment.text)("issueId",a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},
x_a=function(a){if(a&1){var b=r();I(0,"section")(1,"div",12)(2,"b-recaptcha",13);M("onUpdate",function(c){t(b);var d=P();return v(d.recaptchaResponse=c)});J()()()}},y_a=function(a){return function(b){var c,d;return{resourceId:b.issueId,displayText:(c=b.snapshot[0].title)!=null?c:"",status:(d=b.snapshot[0].status)!=null?d:null,relations:[a]}}},z_a=function(a){var b=[],c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.displayText!=="")if(c.get(d.resourceId)){var e=c.get(d.resourceId);
e.relations=[].concat(p(e.relations),p(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},A_a=function(a,b){a&1&&K(0,"mat-icon",5);a&2&&(D("svgIcon",b.icon)("matTooltip",b.tooltip),ng("aria-label",b.tooltip))},B_a=function(a){a&1&&(Fg(0),Q(1,"\u2026 >"),Gg())},C_a=function(a){a&1&&(Fg(0),Q(1,"\u2026"),Gg())},D_a=function(a){if(a&1){var b=r();I(0,"a",11);M("click",function(){t(b);var c=P(4);return v(c.compactMode$.next(!1))});E(1,B_a,2,0,"ng-container");E(2,C_a,2,0,"ng-container");J()}a&
2&&(a=P().$implicit,z(),F(a.isSpliced?1:-1),z(),F(a.isTruncated?2:-1))},E_a=function(a){a&1&&Q(0);a&2&&(a=P(5),R(" ",a.displayValueOverride," "))},F_a=function(a){a&1&&(I(0,"a",13),Q(1),J());if(a&2){a=P(2).$implicit;var b=L(5);wg("muted",a.name==a.id);D("routerLinkObj",a.route)("onedevHovercardTrigger",b);z();ch(a.name)}},G_a=function(a){a&1&&E(0,E_a,1,1)(1,F_a,2,5,"a",12);a&2&&(a=P(4),F(a.displayValueOverride?0:1))},H_a=function(a){a&1&&Q(0);a&2&&(a=P(5),R(" ",a.displayValueOverride," "))},I_a=function(a){a&
1&&(I(0,"span",15),Q(1),J());a&2&&(a=P(2).$implicit,wg("muted",a.name==a.id),z(),ch(a.name))},J_a=function(a){a&1&&E(0,H_a,1,1)(1,I_a,2,3,"span",14);a&2&&(a=P(4),F(a.displayValueOverride?0:1))},K_a=function(a){a&1&&Q(0," > ")},L_a=function(a){a&1&&(Fg(0),K(1,"b-component-path-card",16,1),Gg());if(a&2){a=L(2);var b=P().$implicit;z();D("onedevIsHovercardReady",a.init)("componentId",b.id)}},M_a=function(a,b){a&1&&(E(0,D_a,3,2,"a",9),E(1,G_a,2,1)(2,J_a,2,1),E(3,K_a,1,0),I(4,"onedev-hovercard",null,0),
C(6,L_a,3,2,"ng-container",10),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);F(a.isSpliced||a.isTruncated?0:-1);z();F(d.viewOnly?2:1);z(2);F(c!==b-1?3:-1)}},N_a=function(a,b){a&1&&(I(0,"span",6),Dg(1,M_a,7,3,null,null,Cg),J());a&2&&(z(),Eg(b))},O_a=function(a){a&1&&(I(0,"span"),Q(1,"[Archived]"),J())},P_a=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);P(2).editing=!0;return v()});K(1,"mat-icon",18);J()}},Q_a=function(a){a&1&&(I(0,"a",8),S(1,"async"),K(2,
"mat-icon",19),J());if(a&2){var b;a=P(2);D("routerLinkObj",a.popoutLink((b=T(1,1,a.component$))==null?null:b.componentId))}},R_a=function(a){a&1&&(I(0,"b-async-data-placeholder",2),S(1,"async"),I(2,"div",4),S(3,"async"),S(4,"async"),E(5,A_a,1,3,"mat-icon",5),S(6,"async"),E(7,N_a,3,0,"span",6),S(8,"async"),E(9,O_a,2,0,"span"),S(10,"async"),E(11,P_a,2,0,"button",7),E(12,Q_a,3,3,"a",8),J()());if(a&2){var b,c;a=P();D("isReady",T(1,10,a.isReady$));z(2);wg("public",T(3,12,a.showPublicIndicator$))("partner",
T(4,14,a.showPartnerIndicator$));z(3);F((b=T(6,16,a.folder$))?5:-1,b);z(2);F((c=T(8,18,a.componentPath$))?7:-1,c);z(2);F(T(10,20,a.isArchived$)?9:-1);z(2);F(a.viewOnly?-1:11);z();F(a.popoutLink?12:-1)}},T_a=function(a){if(a&1){var b=r();I(0,"b-team-component-picker",20);S(1,"async");M("selectedComponentChange",function(c){t(b);var d=P();return v(S_a(d,c))})("dropdownClosed",function(){t(b);var c=P();return v(S_a(c))});J()}a&2&&(a=P(),D("selectedComponent",T(1,4,a.component$))("isRequired",!0)("shouldFocus",
!0)("showOverlayAbove",a.showPickerOverlayAbove))},W_a=function(a){for(var b=l(U_a),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===a)return c.title;return V_a.title},X_a=function(a){a&1&&K(0,"mat-icon",7);a&2&&(a=P(),D("matTooltip",a.disabledDropdownTooltip))},Y_a=function(a,b){if(a&1){var c=r();I(0,"button",10);M("click",function(){var d=t(c).$implicit,e=P();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return v()});I(1,"div",11);K(2,"mat-icon",12);I(3,"span",
13);Q(4);J()();I(5,"div",14);Q(6);J()()}a&2&&(a=b.$implicit,b=P(),z(2),D("svgIcon",a.icon),z(2),R(" ",a.title," "),z(2),R(" ",b.implicitAccessEnabled?a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},$_a=function(a,b){if(a&1){var c=r();I(0,"mat-checkbox",19);M("click",function(d){t(c);return v(d.stopPropagation())})("change",function(d){var e=t(c).$implicit,f=P(2);e=e.value.user;d=d.source.checked;var h=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;
d?(h||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):(h&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));var k;Z_a(f,(k=f.updatedAccessLimitLevel$.getValue())!=null?k:f.defaultAccessLimitLevel);return v()});Q(1);J()}a&2&&(a=b.$implicit,D("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),z(),R(" ",a.key," "))},a0a=function(a){a&1&&(I(0,"div")(1,"span",16),Q(2,"Add collaborator groups"),J(),K(3,"mat-icon",7),J(),I(4,"div",17),Dg(5,$_a,2,4,
"mat-checkbox",18,Cg),S(7,"keyvalue"),J());a&2&&(a=P(),z(3),Qg("matTooltip",a.COLLABORATOR_GROUPS_TOOLTIP),z(2),Eg(T(7,1,a.collaboratorGroupsEmailToDetailsMap)))},c0a=function(a){if(a&1){var b=r();I(0,"button",20);M("click",function(){t(b);var c=P();return v(c.onPressCancel())});Q(1," Cancel ");J();I(2,"button",21);S(3,"async");M("click",function(){t(b);var c=P();return v(c.onPressSave())});Q(4," Save ");J()}a&2&&(a=P(),z(2),D("disabled",!b0a(a,T(3,1,a.hasAccessLimitLevelSelectionChanged$))))},d0a=
function(a){if(a&1){var b=r();I(0,"button",22);M("click",function(){t(b);var c=P();return v(c.onPressCancel())});Q(1," Close ");J()}},e0a=function(a){if(a&1){var b=r();I(0,"b-star-toggle",5);S(1,"async");S(2,"async");M("starClicked",function(){t(b);var c=P(2);return v(c.starClicked.emit())});J()}a&2&&(a=P(2),D("starMessage","Star hotlist "+a.hotlist.name)("unStarMessage","Un-star hotlist "+a.hotlist.name)("acceptInput",!T(1,4,Tq(a.isSavingStar,a.hotlist.hotlistId)))("starred",T(2,6,Tq(a.starredHotlists,
a.hotlist.hotlistId))))},f0a=function(a){a&1&&K(0,"div",2)},g0a=function(a){if(a&1){var b=r();I(0,"span",0);E(1,e0a,3,8,"b-star-toggle",1)(2,f0a,1,0,"div",2);I(3,"a",3);M("click",function(c){t(b);return v(c.stopPropagation())})("keydown.enter",function(c){t(b);return v(c.stopPropagation())});K(4,"mat-icon",4);J()()}a&2&&(a=P(),z(),F(a.shouldShowStar(a.hotlist)?1:2),z(2),Pg("matTooltip","Open ",a.hotlist.name," in a new tab"),D("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),ng("aria-label",
"Open "+a.hotlist.name+" in a new tab"))},h0a=function(a){a&1&&Hg(0)},i0a=function(a){a&1&&C(0,h0a,1,0,"ng-container",7);a&2&&(P(),a=L(10),D("ngTemplateOutlet",a))},k0a=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(){t(b);var c=P(2),d=Vj(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),jr(c)):j0a(c,d);return v()});Q(1);S(2,"async");I(3,"span",16);Q(4,"(add hotlist by ID)");J()()}a&2&&(a=P(2),z(),R(" ",T(2,1,a.query$)," "))},l0a=function(a){if(a&1){var b=r();
I(0,"button",17);M("click",function(){t(b);P(2).showCreateNewPane=!0;return v()});Q(1);S(2,"async");I(3,"span",16);Q(4,"(create new)");J()()}a&2&&(a=P(2),z(),R(" ",T(2,1,a.query$)," "))},m0a=function(a){a&1&&K(0,"mat-icon",27)},n0a=function(a){a&1&&K(0,"mat-icon",28)},o0a=function(a){a&1&&K(0,"mat-icon",29)},p0a=function(a){a&1&&(I(0,"p",36),Q(1),J());a&2&&(a=P(2).$implicit,z(),R(" ",a.description," "))},q0a=function(a){if(a&1){var b=r();I(0,"div");E(1,m0a,1,0,"mat-icon",27)(2,n0a,1,0,"mat-icon",
28)(3,o0a,1,0,"mat-icon",29);I(4,"mat-list-item",30);M("focus",function(){t(b);P();var e=L(1);return v(e.show())})("blur",function(){t(b);P();var e=L(1);return v(e.hide())});I(5,"div",31)(6,"mat-checkbox",32);S(7,"async");M("change",function(e){t(b);var f=P().$implicit,h=P(3);return v(h.onCheckboxChange(e,f.hotlistId))});I(8,"div",33)(9,"div",34)(10,"p",35);Q(11);J()();E(12,p0a,2,1,"p",36);J()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);zg("flex-kids-x align-items-center left-padding ",a.type);
z();F(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);z(3);vg("height",a.description?"72px":"auto");z(2);D("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=T(7,13,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));ng("aria-checked",d.selectedHotlistIds.has(a.hotlistId));z(5);R(" ",a.name," ");z();F(a.description?12:-1)}},r0a=function(a){a&1&&(I(0,"p",36),Q(1),J());a&2&&(a=
P(2).$implicit,z(),R(" ",a.description," "))},s0a=function(a){if(a&1){var b=r();I(0,"mat-list-item",30);M("focus",function(){t(b);P();var e=L(1);return v(e.show())})("blur",function(){t(b);P();var e=L(1);return v(e.hide())});I(1,"div",31)(2,"mat-checkbox",37);S(3,"async");M("click",function(e){t(b);return v(e.stopPropagation())})("change",function(e){t(b);var f=P().$implicit,h=P(3);return v(h.onCheckboxChange(e,f.hotlistId))});I(4,"div",33)(5,"div",34)(6,"label",35);Q(7);J()();E(8,r0a,2,1,"p",36);
J()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);vg("height",a.description?"72px":"auto");z(2);D("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=T(3,9,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));ng("aria-checked",d.selectedHotlistIds.has(a.hotlistId));z(5);R(" ",a.name," ");z();F(a.description?8:-1)}},t0a=function(a,b){a&1&&(I(0,"div",21,4),S(2,"async"),E(3,q0a,13,15,"div",25)(4,s0a,
9,11,"mat-list-item",26),J());if(a&2){var c;a=b.$implicit;b=P(3);D("matTooltip",((c=T(2,2,a.permissions$))==null?null:c.appender)===!1?b.NO_ACCESS_MESSAGE:"");z(3);F(b.isInternalSession?3:4)}},u0a=function(a,b){if(a&1){var c=r();I(0,"hotlist-matlist-option",38);M("starClicked",function(){var d=t(c).$implicit,e=P(3);return v(e.toggleStar(d.hotlistId))});J()}a&2&&(a=b.$implicit,b=P(3),wg("has-description",a.description),D("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",
b.isSavingStar))},v0a=function(a){if(a&1){var b=r();I(0,"div",24)(1,"span",16);Q(2," The number of hotlists is too large to show at once. ");J();I(3,"button",39);M("click",function(){t(b);var c=P(3);return v(c.forceShowOverflow$.next(!0))});Q(4," Show all anyway ");J()()}},x0a=function(a,b){a&1&&(I(0,"div",18)(1,"mat-list",19)(2,"div",20),Dg(3,t0a,5,4,"div",21,w0a),J()(),I(5,"div",22),Dg(6,u0a,1,6,"hotlist-matlist-option",23,w0a),J()(),E(8,v0a,5,0,"div",24),S(9,"async"));a&2&&(a=P(2),z(3),Eg(b),z(3),
Eg(b),z(2),F(T(9,1,a.isOverflowMode$)?8:-1))},y0a=function(a){if(a&1){var b=r();I(0,"header",8)(1,"h2");Q(2,"Search for Hotlists from your favorites");J();I(3,"div",9);K(4,"mat-icon",10);I(5,"input",11,2);M("input",function(){t(b);var d=L(6);P().query$.next(d.value);return v()});J()()();I(7,"section",12,3);E(9,k0a,5,3,"button",13);S(10,"async");E(11,l0a,5,3,"button",14);S(12,"async");E(13,x0a,10,3);S(14,"async");J()}if(a&2){var c;a=P();z(9);F(T(10,3,a.showLoadById$)?9:-1);z(2);F(T(12,5,a.showCreateNew$)?
11:-1);z(2);F((c=T(14,7,a.visibleHotlists$))?13:-1,c)}},z0a=function(a){a&1&&Hg(0)},A0a=function(a){a&1&&C(0,z0a,1,0,"ng-container",7);a&2&&(P(),a=L(8),D("ngTemplateOutlet",a))},B0a=function(a){if(a&1){var b=r();I(0,"button",40);M("click",function(){t(b);var c=P();return v(jr(c))});Q(1);J()}a&2&&(a=P(),D("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),ng("aria-label",a.saveBtnTooltip),z(),R(" ",a.saveBtnLabel," "))},E0a=function(a){if(a&1){var b=r();I(0,"button",41);M("click",
function(){t(b);var c=P();return v(C0a(c))});Q(1," Create ");J()}a&2&&(a=P(),D("disabled",!(D0a(a).length>0)))},F0a=function(a){a&1&&(I(0,"header",8)(1,"h2"),Q(2,"Create new hotlist"),J()(),I(3,"section",42)(4,"div",43)(5,"form",44)(6,"label",45),Q(7,"Name"),J(),K(8,"input",46),I(9,"label",47),Q(10,"Description"),J(),K(11,"textarea",48),I(12,"p",16),Q(13," Note: Access controls can be adjusted after the hotlist is created. "),J()()()());a&2&&(a=P(),z(5),D("formGroup",a.hotlistUnderEdit))},G0a=function(a,
b){return a.name.localeCompare(b.name)},H0a=function(a,b){if(a==null||a.trim()==="")return!1;b=b.map(function(c){var d;return(d=c.name)==null?void 0:d.toLowerCase()});a=a.toLowerCase();return!b.includes(a)},I0a=function(a){var b=new Set(a.selectedHotlistIds);if(a.selectedHotlistIdsMap){a=l(a.selectedHotlistIdsMap.values());for(var c=a.next();!c.done;c=a.next()){c=l(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}}},J0a=function(a){var b=new Map;a=l(a.entries());for(var c=a.next();!c.done;c=
a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=Array.from(d);b.set(c,new Set(d))}return b},K0a=function(a){if(a&1){var b=r();Kg(0);I(1,"b-edit-field",21);S(2,"async");M("valueChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setSeverity(h,f!=null?f:k.IssueSeverity.S2))});J()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=d.get(c);z();D("name","severity")("title","Severity")("type",e.FieldType.ENUM)("tooltip","Set severity")("value",c?null:a.severity)("choices",e.severityChoices)("readonly",
!T(2,8,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},L0a=function(a){if(a&1){var b=r();Kg(0);I(1,"b-edit-field",22,0);S(3,"async");M("onHotkey",function(){t(b);var f=L(2);return v(wq(f,null,!0,!1))})("valueChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setPriority(h,f!=null?f:k.IssuePriority.P2))});J()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=d.get(c);z();D("name","priority")("title","Priority")("type",e.FieldType.ENUM)("tooltip","Set priority")("value",
c?null:a.priority)("choices",e.priorityChoices)("hotkey",e.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!T(3,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},M0a=function(a){if(a&1){var b=r();I(0,"triage-hotlists-editor",23);M("hotlistIdsChange",function(c){t(b);var d=P(5);return v(d.hotlistIds=c)})("hotlistIdsMapChange",function(c){t(b);var d=P(5);return v(d.hotlistIdsMap=c)});J()}a&2&&(a=P(5),D("phase",a.phase)("subphase",a.subphase))},N0a=function(a){if(a&1){var b=
r();I(0,"triage-custom-fields-editor",24);M("onCustomFieldBulkEdit",function(e){t(b);P(5).customFieldBulkEditOps=e;return v()});J()}if(a&2){P(2);a=Mg(0);var c=P(),d=P(2);D("editableIssue",a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",d.subphase)}},O0a=function(a,b){if(a&1){var c=r();I(0,"button",30);M("click",function(){var e=t(c),f=P(6),h=P(2);return v(h.setAssignee(f,e))})("onHotkey",function(){var e=t(c),f=P(6),h=P(2);return v(h.setAssignee(f,e))});K(1,"mat-icon",31);Q(2," Assign to default ");
J()}if(a&2){P(5);a=Mg(0);var d=P(3);D("disabled",a.assignee===b)("hotkey",d.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip","Set "+b+" as assignee");ng("aria-label","Set "+b+" as assignee");z();D("svgIcon",a.assignee===b?"done":"add")}},P0a=function(a){a&1&&(E(0,O0a,3,5,"button",29),S(1,"async"));if(a&2){var b;a=P(7);F((b=T(1,1,a.defaultAssigneeForComponent$))?0:-1,b)}},Q0a=function(a){if(a&1){var b=r();I(0,"button",32);M("click",function(){t(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))})("onHotkey",
function(){t(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))});K(1,"mat-icon",33);Q(2," Assign to me ");J()}a&2&&D("matTooltip","Assign to me")},R0a=function(a){a&1&&(I(0,"div",27),E(1,P0a,2,3),E(2,Q0a,3,1,"button",28),J());if(a&2){P();a=Mg(0);P(2);var b=Mg(0),c=P(3);z();F(c.showAssignToDefault&&!a?1:-1);z();F(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},S0a=function(a){if(a&1){var b=r();Kg(0);I(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);M("onHotkey",
function(){t(b);var f=L(4);return v(f.openEditor())})("valueChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setAssignee(h,f.newEmail))})("emailChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setAssignee(h,f))});J();E(5,R0a,3,2,"div",27);S(6,"async");J()()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=Lg(d.get(c));z(3);D("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);z(2);
F(T(6,7,e.showAssigneeChips$)?5:-1)}},T0a=function(a){if(a&1){var b=r();Kg(0);I(1,"b-edit-field",34,2);S(3,"async");M("valueChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setType(h,f!=null?f:k.IssueType.BUG))});J()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=d.get(c);z();D("name","type")("title","Type")("type",e.FieldType.ENUM)("value",c?null:a.type)("choices",e.typeChoices)("readonly",!T(3,7,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},U0a=function(a){if(a&
1){var b=r();Kg(0);I(1,"b-edit-field",35,3);S(3,"async");M("onHotkey",function(){t(b);var f=L(2);return v(wq(f,null,!0,!1))})("valueChange",function(f){t(b);var h=P(3),k=P(2);return v(k.setStatus(h,f!=null?f:k.IssueStatus.NEW))});J()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=d.get(c);z();D("name","status")("title","Status")("type",e.FieldType.ENUM)("value",c?null:a.status)("choices",e.statusChoices)("showHotkeyHint",!0)("hotkey",e.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!T(3,9,e.hasAclToEdit$))("displayValueOverride",
c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},W0a=function(a){if(a&1){var b=r();I(0,"b-list-field",37);S(1,"async");M("valuesChange",function(d){t(b);var e=P(4),f=P(2);return v(f.setCodeChanges(e,d.values))});J()}if(a&2){P(3);a=Mg(0);var c=P(3);D("readonly",!T(1,6,c.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",c.codeChangesValidator)("type",c.ListFieldType.CODE_CHANGES)("values",V0a(a,c.sessionIsExternal))}},X0a=function(a){a&1&&E(0,W0a,2,8,"b-list-field",36);a&2&&(a=P(3),
F(a.length<2?0:-1))},Y0a=function(a){if(a&1){var b=r();Kg(0);I(1,"div",18)(2,"div",38)(3,"label");Q(4,"Component");J()();I(5,"b-component-breadcrumb-chip",39);M("componentChanged",function(f){t(b);var h=P(3),k=P(2);return v(k.setComponent(h,f))});J()()}if(a&2){var c=P().$implicit,d=P();a=Mg(0);var e=P(3);c=d.get(c);z(5);D("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:
"")}},a1a=function(a){if(a&1){var b=r();I(0,"div",19)(1,"div")(2,"b-post-comment",40,4);M("commentSubmitted",function(){t(b);var d=P(5);return v(Z0a(d))});J();I(4,"button",10);M("click",function(){t(b);var d=L(7),e=P(5);return v(Z0a(e,d))});Q(5,"Remove comment");J()();I(6,"button",10,5);M("click",function(){t(b);var d=L(3);P(5).showCommentInput=!0;return v(d.commentBox==null?null:$0a(d.commentBox))});Q(8,"Add comment");J()()}if(a&2){P(2);a=Mg(0);var c=P(3);z();wg("hidden",!c.showCommentInput);z();
D("issueId",a.issueId)("showActionsAfterPreview",!1)("showCommentButton",!1);z(4);wg("hidden",c.showCommentInput)}},d1a=function(a){if(a&1){var b=r();I(0,"triage-edit-user-buttons",43);S(1,"async");M("addCurrentUser",function(){t(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=l(c),h=f.next();!h.done;h=f.next()){h=h.value;var k=h.collaborators;k.includes(e)||k.push(e);h.setCollaborators(k)}kr(d,c[0]);lr(d,c);return v()})("removeCurrentUser",function(){t(b);var c=P(4),d=P(2);return v(b1a(d,
c))})("onAddUsers",function(c){t(b);for(var d=P(4),e=P(2),f=l(d),h=f.next();!h.done;h=f.next()){h=h.value;var k=jk([].concat(p(h.collaborators),p(c)));h.setCollaborators(k)}kr(e,d[0]);lr(e,d);return v()})("onRemoveUsers",function(c){t(b);var d=P(4),e=P(2);return v(c1a(e,d,c))});J()}a&2&&(a=P(6),D("title","Collaborators")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("inputValidator",a.collaboratorUserPrincipalValidator)("isAllowedToEditCollection",T(1,4,a.hasAclToEdit$)))},e1a=function(a){if(a&1){var b=
r();I(0,"b-multi-user-control",44);S(1,"async");M("userInclusionToggle",function(){t(b);var d=P(4),e=P(2);return v(e.toggleCollaborators(d))})("valueChange",function(d){t(b);var e=P(4),f=P(2);return v(f.setCollaborators(e,d))})("toggleAccessLimits",function(){t(b);P(3);var d=Mg(0),e=P(3);return v(e.toggleAccessLimits(d.issueId))});J()}if(a&2){P(3);a=Mg(0);var c=P(3);D("title","Collaborators")("values",a.collaborators)("users",a.collaboratorsUsers)("includeSelfActionDescription","Add me")("includeSelfActionLongDescription",
"Add yourself to collaborators")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription","Remove yourself from collaborators")("collectionHovercardDescription","Collaborators are people directly working on this issue.")("isCurrentUserInCollection",c.isCurrentUserCollaborator)("isAllowedToEditCollection",T(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",!0)}},f1a=
function(a){a&1&&(Kg(0),E(1,d1a,2,6,"triage-edit-user-buttons",41)(2,e1a,2,16,"b-multi-user-control",42));a&2&&(a=P().$implicit,a=P().get(a),z(),F(a?1:2))},i1a=function(a){if(a&1){var b=r();I(0,"triage-edit-user-buttons",47);S(1,"async");M("addCurrentUser",function(){t(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=l(c),h=f.next();!h.done;h=f.next()){h=h.value;var k=h.cc;k.includes(e)||k.push(e);h.cc=k}mr(d,c[0]);lr(d,c);return v()})("removeCurrentUser",function(){t(b);var c=P(4),d=P(2);
return v(g1a(d,c))})("onAddUsers",function(c){t(b);for(var d=P(4),e=P(2),f=l(d),h=f.next();!h.done;h=f.next()){h=h.value;var k=jk([].concat(p(h.cc),p(c)));h.cc=k}mr(e,d[0]);lr(e,d);return v()})("onRemoveUsers",function(c){t(b);var d=P(4),e=P(2);return v(h1a(e,d,c))});J()}a&2&&(a=P(6),D("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",T(1,3,a.hasAclToEdit$)))},k1a=function(a){if(a&1){var b=r();I(0,"b-multi-user-control",48);S(1,"async");M("userInclusionToggle",function(){t(b);
var d=P(4),e=P(2);return v(j1a(e,d))})("valueChange",function(d){t(b);var e=P(4),f=P(2);return v(f.setCcs(e,d))});J()}if(a&2){P(3);a=Mg(0);var c=P(3);D("title","CC")("values",a.cc)("users",a.ccUsers)("includeSelfActionDescription","CC me")("includeSelfActionLongDescription","Add yourself to CC")("overlayPosition",c.overlayPositionList)("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription","Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isCurrentUserInCollection",
c.isCurrentUserCcd)("isAllowedToEditCollection",T(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},l1a=function(a){a&1&&(Kg(0),E(1,i1a,2,5,"triage-edit-user-buttons",45)(2,k1a,2,14,"b-multi-user-control",46));a&2&&(a=P().$implicit,a=P().get(a),z(),F(a?1:2))},m1a=function(a,b){a&1&&K(0,"automatic-change-chip",20);a&2&&(P(2),a=Mg(0),D("issueId",a.issueId)("automaticChange",b))},o1a=function(a,b){a&1&&(I(0,"div",7),E(1,K0a,3,10,"b-edit-field",11)(2,L0a,4,11,"b-edit-field",12)(3,M0a,1,2,"triage-hotlists-editor",
13)(4,N0a,1,4,"triage-custom-fields-editor",14)(5,S0a,7,9,"div",15)(6,T0a,4,9,"b-edit-field",16)(7,U0a,4,11,"b-edit-field",17)(8,X0a,1,1)(9,Y0a,6,6,"div",18)(10,a1a,9,7,"div",19)(11,f1a,3,1)(12,l1a,3,1),E(13,m1a,1,2,"automatic-change-chip",20),J());if(a&2){var c;a=b.$implicit;b=P(4);z();F(a===b.IssueFieldKey.SEVERITY?1:a===b.IssueFieldKey.PRIORITY?2:a===b.IssueFieldKey.HOTLISTS?3:a===b.IssueFieldKey.CUSTOM_FIELDS?4:a===b.IssueFieldKey.ASSIGNEE?5:a===b.IssueFieldKey.TYPE?6:a===b.IssueFieldKey.STATUS?
7:a===b.IssueFieldKey.CODE_CHANGES?8:a===b.IssueFieldKey.COMPONENT?9:a===b.IssueFieldKey.COMMENT?10:a===b.IssueFieldKey.COLLABORATORS?11:a===b.IssueFieldKey.CC_LIST?12:-1);z(12);F((c=n1a(b,a))?13:-1,c)}},p1a=function(a){if(a&1){var b=r();Kg(0);I(1,"div",6);Dg(2,o1a,14,2,"div",7,Cg);J();I(4,"div",8)(5,"button",9);S(6,"async");M("click",function(){t(b);var d=P(),e=P(2);return v(e.save(d))});Q(7);S(8,"async");J();I(9,"button",10);M("click",function(){t(b);var d=P(3);return v(d.cancelAction.emit())});
Q(10,"Cancel");J()()}if(a&2){a=P();var c=P(2);Lg(a[0]);z(2);Eg(c.fields);z(3);D("disabled",T(6,3,c.isSaving$));z(2);ch(T(8,5,c.isSaving$)?"Saving":"Save changes")}},q1a=function(a){a&1&&(E(0,p1a,11,7),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},r1a=function(a){a&1&&(E(0,q1a,2,3),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.editableIssues$))?0:-1,b)}},s1a=function(a){a&1&&Hg(0)},t1a=function(a){a&1&&C(0,s1a,1,0,"ng-container",11);a&2&&(P(),a=L(12),D("ngTemplateOutlet",
a))},u1a=function(a){a&1&&Hg(0)},v1a=function(a){a&1&&C(0,u1a,1,0,"ng-container",11);a&2&&(P(),a=L(14),D("ngTemplateOutlet",a))},w1a=function(a){a&1&&Hg(0)},x1a=function(a){a&1&&C(0,w1a,1,0,"ng-container",11);a&2&&(P(),a=L(16),D("ngTemplateOutlet",a))},y1a=function(a){a&1&&Hg(0)},z1a=function(a){a&1&&C(0,y1a,1,0,"ng-container",11);a&2&&(P(),a=L(32),D("ngTemplateOutlet",a))},A1a=function(a){a&1&&Hg(0)},B1a=function(a){a&1&&C(0,A1a,1,0,"ng-container",11);a&2&&(P(),a=L(20),D("ngTemplateOutlet",a))},
C1a=function(a){a&1&&Hg(0)},D1a=function(a){a&1&&C(0,C1a,1,0,"ng-container",11);a&2&&(P(),a=L(22),D("ngTemplateOutlet",a))},E1a=function(a){a&1&&Hg(0)},F1a=function(a){a&1&&C(0,E1a,1,0,"ng-container",11);a&2&&(P(),a=L(24),D("ngTemplateOutlet",a))},G1a=function(a){a&1&&Hg(0)},H1a=function(a){a&1&&C(0,G1a,1,0,"ng-container",11);a&2&&(P(),a=L(26),D("ngTemplateOutlet",a))},I1a=function(a){a&1&&Hg(0)},J1a=function(a){a&1&&C(0,I1a,1,0,"ng-container",11);a&2&&(P(),a=L(28),D("ngTemplateOutlet",a))},K1a=function(a){a&
1&&Hg(0)},L1a=function(a){a&1&&C(0,K1a,1,0,"ng-container",11);a&2&&(P(),a=L(18),D("ngTemplateOutlet",a))},M1a=function(a){a&1&&Hg(0)},N1a=function(a){a&1&&C(0,M1a,1,0,"ng-container",11);a&2&&(P(),a=L(30),D("ngTemplateOutlet",a))},O1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Needs more info");J();I(3,"verify-fields",14);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});
J()()}a&2&&(a=P(),z(3),D("fields",a.NEEDS_MORE_INFO.fieldsToShow)("phase",a.TriagePhase.NEW)("subphase",a.TriageSubphase.NEEDS_INFO)("automaticChanges",a.needsInfoAutomaticChanges)("expandCommentBox",!0)("showAssignToDefault",!1)("showAssignToSelf",!1))},P1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Confirmed");J();I(3,"verify-fields",15);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});
J()()}a&2&&(a=P(),z(3),D("fields",a.CONFIRM_ACTION.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},Q1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Pending owner");J();I(3,"verify-fields",15);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_PENDING_OWNER.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},R1a=function(a){if(a&1){var b=
r();I(0,"div",12)(1,"div",13);Q(2,"Route");J();I(3,"verify-fields",15);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.CHANGE_COMPONENT.fieldsToShow)("phase",a.TriagePhase.NEW))},S1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to In progress");J();I(3,"verify-fields",16);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",
function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_IN_PROGRESS.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_IN_PROGRESS.showAssignToSelf))},T1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Expected");J();I(3,"verify-fields",16);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&
(a=P(),z(3),D("fields",a.SET_EXPECTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_EXPECTED.showAssignToSelf))},U1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Planned");J();I(3,"verify-fields",16);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_PLANNED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",
a.SET_PLANNED.showAssignToSelf))},V1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Committed");J();I(3,"verify-fields",16);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_COMMITTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_COMMITTED.showAssignToSelf))},W1a=function(a){if(a&1){var b=r();I(0,"div",
12)(1,"div",13);Q(2,"Move to Fixed");J();I(3,"verify-fields",17);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_FIXED.fieldsToShow)("phase",a.TriagePhase.FIXED)("automaticChanges",a.SET_FIXED.automaticChanges))},X1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to New");J();I(3,"verify-fields",17);M("cancelAction",function(){t(b);
var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});J()()}a&2&&(a=P(),z(3),D("fields",a.SET_NEW.fieldsToShow)("phase",a.TriagePhase.NEW)("automaticChanges",a.SET_NEW.automaticChanges))},Y1a=function(a){if(a&1){var b=r();I(0,"div",12)(1,"div",13);Q(2,"Move to Won't fix");J();I(3,"verify-fields",18);M("cancelAction",function(){t(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){t(b);var d=P();return v(d.finalizeAction.emit(c))});
J()()}a&2&&(a=P(),z(3),D("fields",a.SET_WONT_FIX.fieldsToShow)("automaticChanges",a.SET_WONT_FIX.automaticChanges))},a2a=function(a){var b,c,d,e;a=nr(a,Z1a,1);return{output:(e=(b=Wk(a,$1a,1,Fk())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},b2a=function(a,b){if(a&1){var c=r();I(0,"iframe",6);M("load",function(){t(c);var d=P();return v(d.contentLoaded=!0)});J()}a&2&&(a=P(),wg("loading",!a.contentLoaded),D("src",b,lia))},c2a=function(a){a&
1&&K(0,"mat-spinner",2)},e2a=function(a){return d2a.some(function(b){return b.test(a)})},i2a=function(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&f2a.includes(d)?d:c&&f2a.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var f;return(b==null?0:(f=b.getEnableAlohaBinarySplit)==null?0:f.call(b))?Ri(g2a,a):Ri(h2a,a,d)},k2a=function(a,b,c,d){if(j2a)return j2a;
var e=i2a(a,d);return j2a=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var k=or(document,"SCRIPT");gi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h(Error("De"))};k.onerror=function(){h(Error("Ee`"+e.toString()))};c.body.appendChild(k)})},m2a=function(a,b,c,d){if(l2a)return l2a;var e=i2a(a,d);return l2a=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var k=or(document,"SCRIPT");
gi(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h(Error("De"))};k.onerror=function(){h(Error("Ee`"+e.toString()))};c.body.appendChild(k)})},n2a=function(a,b,c,d,e){e=e===void 0?!0:e;var f,h,k,q,u;return w(function(A){switch(A.nextAddress){case 1:return f=Date.now(),x(A,k2a(a,c,d,b),2);case 2:h=A.yieldResult;if(!(e||((q=a.initializationData)==null?0:q.useNightlyRelease)||((u=a.initializationData)==null?0:u.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);A.jumpTo(3);
break}return x(A,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=A.yieldResult;case 3:return k.initiateAloha(),A.return(k)}})},o2a=function(a,b,c,d){var e,f,h;return w(function(k){if(k.nextAddress==1)return e=Date.now(),x(k,m2a(a,c,d.document,b),2);if(k.nextAddress!=3)return f=k.yieldResult,x(k,f.initializeFeedbackClientAsync(a,e,b,d),3);h=k.yieldResult;h.initiateAloha();return k.return(h)})},p2a=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,h,k,q,u,A,G,H,N;return w(function(O){e=c||ya;if((f=
b)==null?0:(k=(h=f).getEnableAlohaBinarySplit)==null?0:k.call(h)){q=e;if(q.isFormOpened)throw u=Error("Fe"),u.name="DuplicateFormError",u;q.isFormOpened=!0;a.callbacks=a.callbacks||{};A=a.callbacks.onClose||function(){};a.callbacks.onClose=function(U){q.isFormOpened=!1;A(U)};try{return O.return(o2a(a,b,q,e))}catch(U){throw q.isFormOpened=!1,U;}}else{G=e;if(G.isFormOpened)throw H=Error("Fe"),H.name="DuplicateFormError",H;G.isFormOpened=!0;a.callbacks=a.callbacks||{};N=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(U){G.isFormOpened=!1;N(U)};try{return O.return(n2a(a,b,G,e.document,d))}catch(U){throw G.isFormOpened=!1,U;}}ze(O)})},u2a=function(a,b){return w(function(c){return c.return(new Promise(function(d){var e=q2a(b!=null?b:"")+"/aloha_form_properties?productId="+a;r2a(e,function(f){f=f.target;var h=null;try{h=cna(s2a,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new s2a,h=t2a(),h=Xm(h,13,!1),h=Xm(h,14,!0),h=Xm(h,15,!0),h=Xm(h,20,!1),h=W(f,pr,1,h)}d(h)},"GET","",{},
2E3,!0)}))})},q2a=function(a){return e2a(a)?a:"https://www.google.com/tools/feedback"},v2a=function(a){return a.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+" (US Pacific time)"},w2a=function(a){a&1&&(I(0,"button",3,1),K(2,"mat-icon",6),J());if(a&2){a=P();var b=L(2);D("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);ng("aria-label",a.buttonLabel);z(2);D("svgIcon",a.buttonIcon)}},x2a=function(a){a&1&&(I(0,"div",5),Q(1),J());a&2&&(a=P(),z(),ch(a.header))},y2a=function(a){a&1&&K(0,"mat-icon",
6);a&2&&(a=P(2).$implicit,D("svgIcon",a.icon))},z2a=function(a){a&1&&(I(0,"span",8),Q(1),J());a&2&&(a=P(2).$implicit,z(),ch(a.hintText))},A2a=function(a){a&1&&K(0,"mat-icon",6);a&2&&(a=P(2).$implicit,D("svgIcon",a.icon))},B2a=function(a){a&1&&(I(0,"span",8),Q(1),J());a&2&&(a=P(2).$implicit,z(),ch(a.hintText))},C2a=function(a){if(a&1){var b=r();I(0,"button",11);M("click",function(d){t(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){t(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,
e))});E(1,A2a,1,1,"mat-icon",6);Q(2);E(3,B2a,2,1,"span",8);J()}if(a&2){a=P().$implicit;var c=P(2).$implicit;D("disabled",a.disabled)("ngClass",c.className);ng("title",a.title);z();F(a.icon?1:-1);z();R(" ",a.label," ");z();F(a.hintText?3:-1)}},D2a=function(a){if(a&1){var b=r();I(0,"button",12);M("click",function(d){t(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){t(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});I(1,"span",13);K(2,"mat-icon",14);J();Q(3);
J()}if(a&2){a=P().$implicit;var c=P(2).$implicit;wg("b-menu-item-checked",a.selected);D("disabled",a.disabled)("ngClass",c.className);ng("title",a.title);z(3);R(" ",a.label," ")}},E2a=function(a,b){a&1&&(E(0,C2a,4,6,"button",9),E(1,D2a,4,6,"button",10));a&2&&(a=b.$implicit,F(a.type==="action"?0:-1),z(),F(a.type==="select"?1:-1))},F2a=function(a){a&1&&(I(0,"button",7),E(1,y2a,1,1,"mat-icon",6),Q(2),E(3,z2a,2,1,"span",8),J(),I(4,"mat-menu",null,2),Dg(6,E2a,2,2,null,null,Bg),J());if(a&2){a=L(5);var b=
P().$implicit;D("matMenuTriggerFor",a);z();F(b.icon?1:-1);z();R(" ",b.label," ");z();F(b.hintText?3:-1);z(3);Eg(b.items)}},G2a=function(a){a&1&&K(0,"mat-icon",6);a&2&&(a=P(3).$implicit,D("svgIcon",a.icon))},H2a=function(a){a&1&&(I(0,"span",8),Q(1),J());a&2&&(a=P(3).$implicit,z(),ch(a.hintText))},I2a=function(a){if(a&1){var b=r();I(0,"button",11);M("click",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,
d))});E(1,G2a,1,1,"mat-icon",6);Q(2);E(3,H2a,2,1,"span",8);J()}a&2&&(a=P(2).$implicit,D("disabled",a.disabled)("ngClass",a.className),ng("title",a.title),z(),F(a.icon?1:-1),z(),R(" ",a.label," "),z(),F(a.hintText?3:-1))},J2a=function(a){if(a&1){var b=r();I(0,"button",12);M("click",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});I(1,"span",13);K(2,"mat-icon",14);J();Q(3);J()}a&2&&(a=P(2).$implicit,
wg("b-menu-item-checked",a.selected),D("disabled",a.disabled)("ngClass",a.className),ng("title",a.title)("aria-label",a.label+" results per page"),z(3),R(" ",a.label," "))},K2a=function(a){a&1&&(E(0,I2a,4,6,"button",9),E(1,J2a,4,7,"button",10));a&2&&(a=P().$implicit,F(a.type==="action"?0:-1),z(),F(a.type==="select"?1:-1))},L2a=function(a,b){a&1&&(E(0,F2a,8,4),E(1,K2a,2,2));a&2&&(a=b.$implicit,F(a.type==="submenu"?0:-1),z(),F(a.type!=="submenu"?1:-1))},M2a=function(a){var b=a.userIsExternal;a=a.issueIsExternal;
return b&&a},N2a=function(a){a=a.bugId+"-comment"+a.comment;var b,c,d=(b=window)==null?void 0:(c=b.location)==null?void 0:c.href;b=d?encodeURIComponent(d):"";return"http://reportcontent.google.com/troubleshooter?product=issue_tracker&content_id="+a+"&url="+b},O2a=function(a,b){a&1&&(I(0,"div",17)(1,"h4",34),Q(2,"Summary"),J(),I(3,"p",35),Q(4),J()());a&2&&(z(4),ch(b))},P2a=function(a){if(a&1){var b=r();I(0,"th",36)(1,"mat-checkbox",37);S(2,"async");S(3,"async");M("change",function(c){t(b);var d=P();
return v(d.toggleAll(c))});J()()}a&2&&(a=P(),z(),D("checked",T(2,2,a.areAllChecked$))("indeterminate",!T(3,4,a.areAllChecked$)&&a.checkedIssueIds.size>0))},Q2a=function(a,b){if(a&1){var c=r();I(0,"td",38)(1,"mat-checkbox",39);S(2,"async");M("change",function(d){var e=t(c).$implicit,f=P(),h;((h=d==null?void 0:d.checked)!=null?h:!f.checkedIssueIds.has(e.id))?f.checkedIssueIds.add(e.id):f.checkedIssueIds.delete(e.id);return v()});J()()}a&2&&(a=b.$implicit,b=P(),z(),D("checked",T(2,1,Tq(b.checkedIssueIds,
a.id))))},R2a=function(a){a&1&&(I(0,"th",36),Q(1," Title "),J())},S2a=function(a,b){a&1&&(I(0,"td",38),K(1,"b-issue-title-cell",40),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,2,a.issue$))("enableHovercard",!0))},T2a=function(a){a&1&&(I(0,"th",36),Q(1," Phase "),J())},U2a=function(a){a&1&&(I(0,"span",41),Q(1),J());if(a&2){a=P();P(2);z();var b;b=((b=a.snapshot[0])==null?void 0:b.status)==="DUPLICATE"?"Duplicate":(b=tm(a))?qr.get(b):"";ch(b)}},V2a=function(a){a&1&&E(0,U2a,2,1,"span",41);
a&2&&(P(2),F(0))},W2a=function(a,b){a&1&&(I(0,"td",38),E(1,V2a,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},X2a=function(a){a&1&&(I(0,"th",42),Q(1," Modified "),J())},Y2a=function(a){a&1&&K(0,"b-formatted-date-time",44);if(a&2){a=P();var b;D("timestamp",((b=a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)!=null?b:0)/1E3)("mode","relativepasttiny")("paddingLeftPx",4)}},Z2a=function(a){a&1&&E(0,Y2a,1,3,"b-formatted-date-time",44);a&2&&(P(2),
F(0))},$2a=function(a,b){a&1&&(I(0,"td",43),E(1,Z2a,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},a3a=function(a){a&1&&K(0,"th",36)},b3a=function(a,b){if(a&1){var c=r();I(0,"td",38)(1,"b-actions-menu",45);M("click",function(d){t(c);return v(d.stopPropagation())});J()()}a&2&&(a=b.$implicit,b=P(),z(),D("menuItems",b.getMenuItems(a)))},c3a=function(a){a&1&&K(0,"tr",46)},d3a=function(a,b){a&1&&(K(0,"tr",47),S(1,"async"));a&2&&(a=b.$implicit,b=P(),wg("closed",b.isClosed(T(1,
2,a.issue$))))},e3a=function(a,b){a&1&&(I(0,"a",32),Q(1," View as search results "),J());a&2&&D("routerLink",b.path)("queryParams",b.params)},f3a=function(a){if(a&1){var b=r();I(0,"secondary-footer",49);M("cancelAction",function(){t(b);var c=P(2);return v(c.cancelAction())})("finalizeAction",function(c){t(b);var d=P(2);return v(d.finalizeSecondaryAction(c))});J()}a&2&&(a=P(2),D("selectedTriageAction",a.selectedTriageAction))},g3a=function(a){if(a&1){var b=r();I(0,"triage-action-selector",50);M("onSelect",
function(d){t(b);var e=P(2);return v(e.openSecondaryActionFooter(d.key))});J();I(1,"button",51);S(2,"async");S(3,"async");M("click",function(){t(b);var d=P(2);return v(d.openDupeDialog())});Kg(4);S(5,"async");Q(6);J()}if(a&2){a=P();var c=P();D("phase",a);z();D("disabled",!T(2,3,c.hasAclToEdit$)||!T(3,5,c.checkedIssueIds.size$));a=T(5,7,c.checkedIssueIds.size$)||0;z(5);R(" Mark ",a===1?"1 issue":a>1?a+" issues":""," as duplicate ")}},h3a=function(a){a&1&&E(0,f3a,1,1,"secondary-footer",48)(1,g3a,7,
9);a&2&&(a=P(),F(a.displaySecondaryFooter?0:1))},i3a=function(a){a&1&&(I(0,"div",5),K(1,"b-spinner"),J())},j3a=function(a){a&1&&K(0,"code",16);a&2&&(a=P(2).$implicit,P(2),D("innerHtml",ei(a.formattingModeDiff),tf))},k3a=function(a){a&1&&(I(0,"code",17),Q(1),J());a&2&&(a=P(2).$implicit,z(),R(" ",a.formattingMode," "))},l3a=function(a){a&1&&(I(0,"p",15),Q(1," Formatting: "),E(2,j3a,1,1,"code",16)(3,k3a,2,1,"code",17),J());a&2&&(a=P(3),z(2),F(a.diffView?2:3))},m3a=function(a){if(a&1){var b=r();I(0,"div")(1,
"span",18)(2,"b-person-hovercard",19);S(3,"omitObfuscatedEmail");Q(4);S(5,"appendDomain");J()();I(6,"a",20);M("click",function(c){t(b);var d=P().$implicit,e=P(2);return v(e.updateUrl(c,d.version))});Q(7);J()()}a&2&&(a=P().$implicit,P(2),z(2),D("email",T(3,7,Dk(a.lastEditorUser))),z(2),R(" <",T(5,9,Dk(a.lastEditorUser)),"> "),z(2),pg("aria-label","Comment version ",a.version),Pg("id","bv2-edit-issue-comment-",a.version),z(),R(" #",a.version))},n3a=function(a){a&1&&(I(0,"div",21),Q(1),J());a&2&&(a=
P(2).$implicit,z(),ch(a.preview))},o3a=function(a){a&1&&(I(0,"div",22),Q(1,"Comment deleted."),J())},p3a=function(a){a&1&&(I(0,"div",23),Q(1,"Comment history restricted."),J())},q3a=function(a){a&1&&(E(0,n3a,2,1,"div",21),E(1,o3a,2,0,"div",22),E(2,p3a,2,0,"div",23));a&2&&(a=P().$implicit,F(a.restricted||a.deleted?-1:0),z(),F(!a.restricted&&a.deleted?1:-1),z(),F(a.restricted?2:-1))},r3a=function(a){a&1&&(I(0,"div",24),Q(1,"Comment deleted."),J())},s3a=function(a){a&1&&(K(0,"div",26),S(1,"async"));
if(a&2){a=P(2).$implicit;var b=P(2);wg("codefont",T(1,3,b.codefont.codefont$));D("innerHtml",a.unlinkifiedComment,tf)}},t3a=function(a){a&1&&(K(0,"div",26),S(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);wg("codefont",T(1,3,b.codefont.codefont$));D("innerHtml",ei(a.diff),tf)}},u3a=function(a){a&1&&(I(0,"div",23),Q(1," This comment is not available due to present or past restrictions on the comment. "),J())},v3a=function(a){a&1&&(E(0,r3a,2,0,"div",24),E(1,s3a,2,5,"div",25),E(2,t3a,2,5,"div",25),
E(3,u3a,2,0,"div",23));if(a&2){a=P().$implicit;var b=P(2);F(!a.restricted&&a.deleted?0:-1);z();F(b.diffView||a.restricted||a.deleted?-1:1);z();F(!b.diffView||a.restricted||a.deleted?-1:2);z();F(a.restricted?3:-1)}},w3a=function(a,b){if(a&1){var c=r();I(0,"li",9)(1,"div",10);K(2,"b-user-image",11);J();I(3,"div",12);M("click",function(){var d=t(c).$implicit;return v(d.open=!d.open)});K(4,"b-user-display",13)(5,"b-formatted-date-time",14);E(6,l3a,4,1,"p",15);E(7,m3a,8,11,"div")(8,q3a,3,3);J();E(9,v3a,
4,4);J()}a&2&&(a=b.$implicit,P(2),wg("comment-version-open",a.open),z(2),D("email",Dk(a.lastEditorUser)),z(2),D("model",a.lastEditorUser),z(),D("timestamp",a.lastModified),z(),F(a.deleted?-1:6),z(),F(a.open?7:8),z(2),F(a.open?9:-1))},x3a=function(a){a&1&&(I(0,"ul",6),Dg(1,w3a,10,8,"li",8,Bg),J());a&2&&(a=P(),z(),Eg(a.history))},A3a=function(a,b){var c=new y3a;a=rr(c,a,b);z3a(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Qi("span",{"class":"diff-removed"},d);case 1:return Qi("span",
{"class":"diff-added"},d);case 0:return Qi("span",{"class":void 0},d);default:throw Error("He`"+e);}});return Pi(c)},B3a=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)==="DELETED"},C3a=function(a){a&1&&(I(0,"div",2),Q(1," You are about to access a file marked as restricted. Access will be logged and audited. You must delete any downloaded files from local storage when finished. "),I(2,"a",12),Q(3," Learn more "),J()());a&2&&(a=P(2),z(2),D("href",a.getRestrictedAccessHelpLink(),
uf))},E3a=function(a){a&1&&(Fg(0),E(1,C3a,4,1,"div",2),Gg());a&2&&(a=P(),z(),F(D3a(a)?1:-1))},F3a=function(a){a&1&&(I(0,"div",2)(1,"span",13),Q(2," You do not have access to view this attachment. "),J()())},G3a=function(a){a&1&&K(0,"mat-spinner",8)},H3a=function(){this.blockSize=-1},sr=function(a,b){this.blockSize=-1;this.blockSize=64;this.chunk_=ya.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.total_=this.inChunk_=0;this.hash_=[];this.numHashBlocks_=a;this.initHashBlocks_=
b;this.w_=ya.Int32Array?new Int32Array(64):Array(64);I3a===void 0&&(ya.Int32Array?I3a=new Int32Array(J3a):I3a=J3a);this.reset()},L3a=function(){sr.call(this,8,K3a)},M3a=function(a,b){b=b===void 0?!0:b;return w(function(c){if(c.nextAddress==1)if(window.crypto.subtle&&b)c=x(c,crypto.subtle.digest("SHA-256",a),3);else{var d=c.return;var e=new L3a;e.update(new Uint8Array(a));e=(new Uint8Array(e.digest())).buffer;c=d.call(c,e)}else c=c.return(c.yieldResult);return c})},Q3a=function(a){var b=a.useSubtleCrypto===
void 0?!0:a.useSubtleCrypto;var c=a.parts;var d,e,f,h;return w(function(k){if(k.nextAddress==1){if(c.length===0)throw Error("Me");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(N3a.encode(f).buffer):d.push(f),e<c.length-1&&d.push(O3a);h=P3a.apply(null,p(d));return x(k,M3a(h,b),2)}return k.return(k.yieldResult)})},R3a=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},S3a=function(a){return a.reduce(function(b,c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},
P3a=function(){for(var a=ud.apply(0,arguments),b=0,c=l(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=l(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(new Uint8Array(d),c),c+=d.byteLength;return b.buffer},T3a=function(a){var b=a.product;var c=a.trustedOrigin;var d=a.salt;var e=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var f,h,k;return w(function(q){if(q.nextAddress==1)return f=d?d:new ArrayBuffer(0),x(q,Q3a({useSubtleCrypto:e,parts:[b,f,c]}),2);h=q.yieldResult;
k=new Uint8Array(h);return q.return(S3a(k).padStart(50,"0").slice(0,50))})},U3a=function(a){for(var b=a.trustedOrigin,c=a.product,d=a.fileHash+"-h"+a.version+".scf.usercontent.goog",e=l(d.split(".")),f=e.next();!f.done;f=e.next());a=a.cache?"&cache=1":"";return"https://"+d+"/"+c+"/shim.html?origin="+encodeURIComponent(b)+a},V3a=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||a.startsWith("chrome-extension://"))},W3a=function(a){a&1&&(I(0,
"span"),Q(1),J());a&2&&(a=P(),wg("muted",a.isGreyedOut),z(),R(" ",a.displayName))},X3a=function(a){if(a&1){var b=r();I(0,"a",2);M("click",function(c){t(b);var d=P();return v(d.handleClick(c))});Q(1);J()}a&2&&(a=P(),D("href",a.linkUrl,uf)("rel",a.EXTERNAL_LINK_REL),z(),R(" ",a.displayName))},Y3a=function(a){a&1&&(I(0,"span",3),Q(1),J());a&2&&(a=P(),ng("aria-label",a.expandableTabsTitle),z(),ch(a.expandableTabsTitle))},Z3a=function(a){a&1&&K(0,"mat-icon",9)},a4a=function(a){a&1&&Hg(0,10);if(a&2){a=
P().$implicit;P();var b=L(13);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,$3a,a))}},b4a=function(){},c4a=function(a){a&1&&C(0,b4a,0,0,"ng-template")},d4a=function(a){a&1&&C(0,c4a,1,0,null,11);a&2&&(a=P(2).$implicit,D("ngTemplateOutlet",a.tabIconTemplate))},e4a=function(a){a&1&&(E(0,d4a,1,1),Hg(1,10));if(a&2){a=P().$implicit;P();var b=L(13);F(a.tabIconTemplate?0:-1);z();D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(3,$3a,a))}},g4a=function(a,b){if(a&1){var c=r();I(0,"button",8);S(1,
"async");S(2,"async");S(3,"async");M("click",function(){var d=t(c).$implicit,e=P();return v(f4a(e,d.key))});E(4,Z3a,1,0,"mat-icon",9);S(5,"async");E(6,a4a,1,4,"ng-container",10);S(7,"async");Ag(8,e4a,2,5);J()}a&2&&(a=b.$implicit,b=P(),wg("expanded",!!T(1,9,Tq(b.internalExpandedTabs,a.key))),pg("aria-controls","expandable-tabs-",a.key,"-content"),ng("aria-label",a.ariaLabel)("aria-expanded",!!T(2,11,Tq(b.internalExpandedTabs,a.key)))("aria-selected",!!T(3,13,Tq(b.internalExpandedTabs,a.key))),z(4),
F(T(5,15,Tq(b.internalExpandedTabs,a.key))?4:-1),z(2),F(T(7,17,Tq(b.internalExpandedTabs,a.key))?6:8))},h4a=function(a,b){if(a&1){var c=r();I(0,"button",12);M("click",function(){t(c);var d=P();return v(d.toggleAll())});Q(1);J()}a&2&&(a=P(),wg("expandable-tabs-hide-all",b.allTabsExpanded)("expandable-tabs-show-all",!b.allTabsExpanded),ng("aria-label",(b.allTabsExpanded?"Hide all":"Show all")+" "+a.ariaLabel),z(),R(" ",b.allTabsExpanded?"Hide all":"Show all"," "))},i4a=function(){},j4a=function(a){a&
1&&C(0,i4a,0,0,"ng-template")},k4a=function(a){a&1&&C(0,j4a,1,0,null,11);a&2&&(a=P(3).$implicit,D("ngTemplateOutlet",a.tabIconTemplate))},l4a=function(a){a&1&&(I(0,"h4"),E(1,k4a,1,1),Hg(2,10),J());if(a&2){a=P(2).$implicit;P();var b=L(13);z();F(a.tabIconTemplate?1:-1);z();D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(3,$3a,a))}},m4a=function(a){a&1&&K(0,"span",15)},n4a=function(a){a&1&&K(0,"span",15)},o4a=function(){},p4a=function(a){a&1&&C(0,o4a,0,0,"ng-template")},q4a=function(a){a&1&&C(0,
p4a,1,0,null,11);a&2&&(a=P(2).$implicit,D("ngTemplateOutlet",a.tabContentTemplate))},s4a=function(a){a&1&&(I(0,"div",14),E(1,l4a,3,5,"h4"),S(2,"async"),Ag(3,m4a,1,0,"span",15),C(4,n4a,1,0,"ng-template",null,1,nh),E(6,q4a,1,1),J());if(a&2){a=P().$implicit;var b=P();zg("expandable-tab-content ",a.key);Pg("id","expandable-tabs-",a.key,"-content");z();var c;F(((c=T(2,7,b.visibleExpandedTabs$))!=null?c:ih(9,r4a)).length>1?1:3);z(5);F(a.tabContentTemplate?6:-1)}},t4a=function(a,b){a&1&&(E(0,s4a,7,10,"div",
13),S(1,"async"));a&2&&(a=b.$implicit,b=P(),F(T(1,1,Tq(b.internalExpandedTabs,a.key))?0:-1))},u4a=function(){},v4a=function(a){a&1&&C(0,u4a,0,0,"ng-template")},w4a=function(a){a&1&&C(0,v4a,1,0,null,11);a&2&&(a=P().tab,D("ngTemplateOutlet",a.tabHeaderTemplate))},x4a=function(a){a&1&&Q(0);a&2&&(a=P().tab,R(" ",a.key," "))},y4a=function(a,b){a&1&&E(0,w4a,1,1)(1,x4a,1,1);a&2&&F(b.tab.tabHeaderTemplate?0:1)},z4a=function(a){a&1&&(I(0,"mat-icon",9),Q(1),J());a&2&&(a=P(2),z(),ch(a.actionBtnIcon))},A4a=function(a){if(a&
1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P();return v(c.action.emit())});I(1,"span",7);Q(2);C(3,z4a,2,1,"mat-icon",8);J()()}a&2&&(a=P(),z(2),R(" ",a.actionBtnText," "),z(),D("ngIf",a.actionBtnIcon))},B4a=function(a){if(a&1){var b=r();I(0,"onedev-feature-tooltip-body",1);M("action",function(){t(b);var c=P();return v(c.action.emit())})("dismiss",function(){t(b);var c=P();c.hideFeatureTooltip();c.dismiss.emit();return v()});Og(1);J()}a&2&&(a=P(),D("actionBtnText",a.actionBtnText)("actionBtnIcon",
a.actionBtnIcon)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},D4a=function(a){a&1&&(I(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",4)(2,"p",5),Q(3,"Attachment analysis"),J(),Q(4," See agent-generated attachment analysis alongside your files. "),J()());a&2&&(a=P(),z(),D("customPositions",kh(2,C4a,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},F4a=function(a){a&1&&
(Q(0),S(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;R(" ",(c=a.customDisplayName)!=null?c:T(1,1,E4a(b,a.category))," ")}},G4a=function(a){a&1&&(I(0,"span",25),K(1,"b-actions-menu",28),J());a&2&&(P(),a=Mg(25),z(),D("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},H4a=function(a){a&1&&K(0,"b-spinner")},I4a=function(a){a&1&&K(0,"b-markdown-format-presenter",29);a&2&&(P(2),a=Mg(30),D("content",a.formattedContent.markdownFormat))},J4a=function(a){a&1&&K(0,"b-literal-format-presenter",
29);a&2&&(P(2),a=Mg(30),D("content",a.formattedContent.literalFormat))},K4a=function(a){a&1&&K(0,"b-plain-format-presenter",29);a&2&&(P(2),a=Mg(30),D("content",a.formattedContent.plainFormat))},L4a=function(a){a&1&&(E(0,I4a,1,1,"b-markdown-format-presenter",29),E(1,J4a,1,1,"b-literal-format-presenter",29),E(2,K4a,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=Mg(30),F(a.formattedContent.markdownFormat?0:-1),z(),F(a.formattedContent.literalFormat?1:-1),z(),F(a.formattedContent.plainFormat?2:-1))},
P4a=function(a){if(a&1){var b=r();I(0,"table",8)(1,"tr",9)(2,"td",10);K(3,"b-user-display",11)(4,"mat-icon",12);I(5,"onedev-hovercard",null,0)(7,"div",13)(8,"div",14)(9,"span",15);Q(10);S(11,"async");K(12,"br")(13,"br");Q(14);S(15,"async");J()()()()();I(16,"td",16)(17,"span",17);K(18,"b-formatted-date-time",18);J();I(19,"button",19);M("click",function(){t(b);var e=P().$implicit,f=P(),h,k=(h=f.enrichmentCategoryToContent.get(e.category))==null?void 0:h.content;k&&(navigator.clipboard.writeText(k),
f.trackEvent("copy",M4a(e)),f.enrichmentApi.submitEnrichmentFeedback({issueId:e.issueId,attachmentId:e.attachmentId,category:e.category,feedbackType:"COPY"}).subscribe());return v()});K(20,"mat-icon",20);J();I(21,"button",21);M("click",function(){t(b);var e=P().$implicit,f=P();return v(f.trackThumbsUp(e))});K(22,"mat-icon",22);J();I(23,"button",23);M("click",function(){t(b);var e=P().$implicit,f=P();return v(f.trackThumbsDown(e))});K(24,"mat-icon",24);J();Kg(25);E(26,G4a,2,3,"span",25);J()();I(27,
"tr",26)(28,"td",27);E(29,H4a,1,0,"b-spinner");Kg(30);E(31,L4a,3,3);J()()()}if(a&2){var c=L(6);a=P().$implicit;var d=P();z(3);D("model",a.author);z();D("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",d.CATEGORY_INFO_HOVERCARD_CONFIG);z(6);R(" Enrichment agent: ",T(11,14,E4a(d,a.category))," ");z(4);R(" ",T(15,16,N4a(d,a.category))," ");z(4);D("timestamp",a.timestamp);z(3);D("disabled",d.hasReacted(a));z();D("ngClass",jh(20,O4a,d.thumbsUpClicked(a)));z();D("disabled",
d.hasReacted(a));z();D("ngClass",jh(22,O4a,d.thumbsDownClicked(a)));z();c=Lg(d.categoryToActionMenuItems.get(a.category));z();F(c&&c.length>0?26:-1);z(3);F(d.isLoading(a.category)?29:-1);z();c=Lg(d.enrichmentCategoryToContent.get(a.category));z();F(c&&!d.isLoading(a.category)?31:-1)}},Q4a=function(a,b){a&1&&(I(0,"expandable-tab",3),C(1,F4a,2,3,"ng-template",6)(2,P4a,32,24,"ng-template",7),J());a&2&&(a=b.$implicit,b=P(),D("key",a.category)("ariaLabel","Toggle "+a.category+" attachment enrichment category for attachment id "+
b.attachmentId))},M4a=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},T4a=function(a){a&1&&(I(0,"span"),Q(1),I(2,"b"),Q(3),J(),Q(4," on "),I(5,"b"),Q(6),S(7,"date"),J(),Q(8,". "),J());a&2&&(a=P(4),z(),R(" Currently, the ",a.contentType," is scheduled for deletion in "),z(2),ch(R4a(S4a(a).getTime(),!0)),z(3),ch(mh(7,3,S4a(a),"longDate")))},U4a=function(a){a&1&&(Q(0," The retention has "),I(1,"b"),Q(2,"expired"),J(),Q(3),I(4,"b"),Q(5),S(6,"date"),J(),Q(7,". "));a&2&&(a=P(4),z(3),R(" and the ",
a.contentType," was scheduled for deletion on "),z(2),ch(mh(6,2,S4a(a),"longDate")))},V4a=function(a){a&1&&(I(0,"span")(1,"b"),Q(2,"Retention:"),J(),Q(3),I(4,"b"),Q(5),J(),Q(6," from the last modification of the issue. "),E(7,T4a,9,6,"span")(8,U4a,8,5),J());a&2&&(a=P(3),z(3),R(" This ",a.contentType," has a retention period of "),z(2),ch(a.getRetentionPeriod()),z(2),F(S4a(a).getTime()<(new Uj).getTime()?8:7))},W4a=function(a){a&1&&(I(0,"b"),Q(1,"Retention:"),J(),Q(2));a&2&&(a=P(3),z(2),R(" This ",
a.contentType," has an indefinite retention period. "))},X4a=function(a){a&1&&(Q(0),I(1,"b"),Q(2,"overridden"),J(),Q(3," retention period set to match the issue retention period. "));a&2&&(a=P(3),R(" The ",a.contentType," has an "))},Y4a=function(a){a&1&&(I(0,"p"),E(1,V4a,9,3,"span")(2,W4a,3,1),E(3,X4a,4,1),J());a&2&&(a=P(2),z(),F(a.retentionState&&!a.retentionState.scheduledDeletionTime?2:1),z(2),F(a.retention===a.retentionModel.INDEFINITE?3:-1))},Z4a=function(a){a&1&&(I(0,"div",5)(1,"p")(2,"b"),
Q(3,"Restricted Access:"),J(),Q(4),I(5,"a",6),Q(6," Learn More "),J()(),E(7,Y4a,4,2,"p"),J());a&2&&(a=P(),z(4),R(" This ",a.contentType," is only available to users with the appropriate permissions. "),z(),D("rel",a.EXTERNAL_LINK_REL),ng("href",a.documentationLinks.getRestrictedAccessHelpLink(),uf),z(2),F(a.retentionState?7:-1))},$4a=function(a,b){return new Promise(function(c){var d=function(e){e.source===a.contentWindow&&e.data===b&&(window.removeEventListener("message",d),c(e))};window.addEventListener("message",
d)})},b5a=function(a){var b=or(document,"IFRAME");if(!b.sandbox)throw Error("Ue");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(a5a==""){var c=ci('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+Oi(a)+'" /><script nonce="'+Oi(qna(document))+'">var g=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},h=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");},k=h(this),l=function(a,b){if(b)a:{var c=k;a=a.split(".");for(var d=0;d<a.length-\n1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&g(c,a,{configurable:!0,writable:!0,value:b})}},m=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};l("globalThis",function(a){return a||k});/*\n\n Copyright Google LLC\n SPDX-License-Identifier: Apache-2.0\n*/\nvar n=globalThis.trustedTypes,p;function q(){var a=null;if(!n)return a;try{var b=function(c){return c};a=n.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};var r=function(a){this.g=a};r.prototype.toString=function(){return this.g+""};function t(a){p===void 0&&(p=q());var b=p;return new r(b?b.createScript(a):a)}function u(a){if(a instanceof r)return a.g;throw Error("");};function v(a,b){a.textContent=u(b);var c;b=a.ownerDocument;b=b===void 0?document:b;var d;b=(d=(c=b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};var w=function(a){var b=m.apply(1,arguments),c,d;"evalCspCompatiblyData"in window||(window.evalCspCompatiblyData={index:0});var e=window.evalCspCompatiblyData.index++;window.evalCspCompatiblyData[e]={args:b,callback:function(f,x){c=f;d=x}};b=document.createElement("script");b.async=!1;b.setAttribute("data-index",e);e=\'"use strict";\\v(function(){var idx=parseInt((document.currentScript||Array.prototype.slice.call(document.querySelectorAll("head script[data-index]"),-1)[0]).getAttribute("data-index"),10),curEvalData=evalCspCompatiblyData[idx];delete evalCspCompatiblyData[idx];(function(){var callback=curEvalData.callback;try{callback(true,(\'+\nString(u(a))+"\\n));}catch(ex){callback(false, ex);}}).apply(this, curEvalData.args);})()";e=t(e);v(b,e);e=function(f){c=!1;d=f.error||f};window.addEventListener("error",e);document.head.appendChild(b);window.removeEventListener("error",e);document.head.removeChild(b);if(!c)throw d;return d};var y=document.getElementById("nonce"),z=y?y.value:(new URL(location.href)).searchParams.get("nonce");function A(){if(self.origin)return self.origin=="null";if(location.host!="")return!1;try{return window.parent.escape(""),!1}catch(a){return!0}}\n(function(){if(!A())throw"sandboxing error";var a=new MessageChannel;a.port1.onmessage=function(c){try{var d=w.apply(null,[t("(function("+c.data.paramNames.join(", ")+") {\\n"+c.data.code+"\\n}).apply(null, arguments)")].concat(c.data.values));c.ports[0].postMessage({result:d})}catch(e){c.ports[0].postMessage({error:e.toString()})}};var b="*";location.protocol=="chrome-extension:"&&(b=location.origin);window.parent.postMessage(z,b,[a.port2])})();\n\x3c/script></body>');
a=Uh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=ei(c)}else{c=new Map([["nonce",a]]);var d=Vh(a5a).toString();var e=d.split(/[?#]/),f=/[?]/.test(d)?"?"+e[1]:"";a=e[0];d=/[#]/.test(d)?"#"+(f?e[2]:e[1]):"";a=Iqa(a,f,d,c)}pna(b,a);b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},c5a=function(){return new Promise(function(a){setTimeout(a,500)})},d5a=function(a){a&1&&K(0,"b-restricted-chip",6);a&2&&(a=P(),
D("label",a.getRestrictedLabel())("retentionState",a.attachment==null?null:a.attachment.piiRetentionState)("contentType","attachment"))},e5a=function(a){a&1&&(I(0,"span",7),K(1,"b-actions-menu",13),J());a&2&&(a=P(),z(),D("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},h5a=function(a){if(a&1){var b=r();I(0,"span")(1,"b-conditional-link",14);M("customHandler",function(){t(b);var c=P();return v(c.viewAttachment())});J()()}a&2&&(a=P(),zg("bv2-issue-attachment-link ",
f5a(a)),z(),D("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",g5a(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},j5a=function(a){if(a&1){var b=r();I(0,"span")(1,"b-conditional-link",14);M("customHandler",function(){t(b);var c=P();return v(i5a(c))});J()();I(2,"span",15)(3,"button",16);M("click",function(){t(b);var c=P(),d;if((d=c.attachment)==null||!d.attachmentId)throw Error("Ve");d=tr(c.trackerHelpers,c.issueId)+"#attachment"+c.attachment.attachmentId;c.clipboard.copy(d);c.snackBar.open("Link to attachment copied to clipboard",
"",{duration:2E3});return v()});K(4,"b-icon",17);J()()}a&2&&(a=P(),zg("bv2-issue-attachment-link ",f5a(a)),z(),D("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",g5a(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},k5a=function(a){a&1&&(I(0,"span",11)(1,"a",18),K(2,"mat-icon",19),J()());a&2&&(a=P(),z(),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),uf)("disableRipple",!0),z(),D("svgIcon","help-outline"))},l5a=function(a){a&1&&(I(0,"div",20),Q(1," You do not have access to this restricted attachment. "),
I(2,"a",21),Q(3,"Learn more"),J()());a&2&&(a=P(),z(2),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),uf))},m5a=function(a){a&1&&K(0,"attachment-preview",12);a&2&&(a=P(),D("issueId",a.issueId)("attachmentId",a.attachment==null?null:a.attachment.attachmentId.toString())("mimeType",a.attachment==null?null:a.attachment.contentType))},n5a=function(a){a&1&&K(0,"b-attachment-enrichments",22);if(a&2){a=P();var b=P();D("issueId",b.issueId)("attachmentId",b.attachment.attachmentId.toString())("attachmentEnrichments",
a)}},o5a=function(a,b){a&1&&E(0,n5a,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,F(b?0:-1))},p5a=function(a){return{response:a.getResponse(),issueCategory:a.getIssueCategory()}},q5a=function(a){return{issueCategory:a.getIssueCategory()}},s5a=function(a){var b,c,d;a=(d=(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.hotlistId)!=null?d:[];if(a.length===0)return!1;var e,f=(e=r5a.allowedHotlistIds)!=null?e:[];return a.some(function(h){return f.includes(h)})},
t5a=function(a,b){b.stack&&(a.stack+="\n"+b.stack);return a},z5a=function(a){var b=u5a(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new v5a:new w5a;if(b.startsWith("application/x-protobuf")){a=u5a(a,"Content-Transfer-Encoding");if(!a)return new x5a;if(a.toLowerCase()=="base64")return new y5a}return null},B5a=function(){return function(a){return{response:a.getMutableResponse().getText(),citationResources:A5a(a.getMutableResponse())}}},
A5a=function(a){return Wk(a,C5a,13,Fk()).filter(function(b){return an(b,D5a,6,E5a)}).flatMap(function(b){var c;if(b==null)b=void 0;else{var d;(c=Qm(b,D5a,6,E5a))==null?d=void 0:d=Wk(c,F5a,1,Fk());b=d}return b}).map(function(b){var c,d,e,f;return{citationTitle:(c=b==null?void 0:b.getTitle())!=null?c:"",url:(d=b==null?void 0:b.getUrl())!=null?d:"",iconUrl:(e=b==null?void 0:b.getIconUrl())!=null?e:"",isExternalDocument:(f=b==null?void 0:kl(b,6))!=null?f:!1}})},G5a=function(a){var b=!a.description.includes("CHERRYPICK=")&&
!a.description.includes("ROLLBACK_OF=")&&!a.description.includes("MENDEL_SYSTEM=");var c=a.description.replace("BEGIN_PUBLIC<br>","");c=c.replaceAll(/#[\w]+[ <br>]*/g,"");return{changelist:a,isInteresting:b,firstInterestingLine:c.split("<br>")[0]||c}},I5a=function(a,b){if(a&1){var c=r();I(0,"div",4)(1,"div",6);K(2,"b-markdown-format-presenter",7);J();I(3,"div",8)(4,"button",9);M("click",function(){t(c);var d=P(2);return v(d.openHelpMeFixSidebar())});Q(5," View more suggestions ");J();I(6,"button",
10);M("click",function(){t(c);var d=P(2);return v(H5a(d))});Q(7," Dismiss ");J()()()}a&2&&(z(2),D("content",b))},J5a=function(a){a&1&&K(0,"b-spinner",5)},K5a=function(a){a&1&&(I(0,"div",0)(1,"header",1),K(2,"mat-icon",2),I(3,"h4",3),Q(4,"Help Me Fix"),J()(),E(5,I5a,8,1,"div",4),S(6,"async"),Ag(7,J5a,1,0,"b-spinner",5),J());if(a&2){var b;a=P();z(5);F((b=T(6,1,a.llmResponseMarkdown$))?5:7,b)}},L5a=function(a){if(a&1){var b=r();I(0,"button",1);M("click",function(){t(b);var c=P();return v(c.openHelpMeFixSidebar())});
K(1,"mat-icon",2);Q(2," Help me fix ");J()}},N5a=function(a){if(a&1){var b=r();I(0,"button",17,1);M("click",function(){t(b);var c=P(2);return v(M5a(c))});Q(2," Edit ");J()}},O5a=function(a,b){a&1&&(K(0,"b-user-display",18),I(1,"onedev-hovercard",null,2),K(3,"b-issue-person-card",19),S(4,"async"),J(),Q(5," created issue "));if(a&2){a=L(2);var c=P(2);D("onedevHovercardTrigger",a)("model",b);z(3);var d;D("email",(d=T(4,3,c.originalAuthorEmail$))!=null?d:"")}},P5a=function(a,b){a&1&&(Q(0," on behalf of "),
K(1,"b-user-display-name",20));a&2&&(z(),D("email",b)("showEmail",!1))},Q5a=function(a){a&1&&(E(0,P5a,2,2),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.onBehalfOfEmail$))?0:-1,b)}},R5a=function(a,b){if(a&1){var c=r();I(0,"a",21);M("click",function(d){var e=t(c);P(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return v()});Q(1);J()}a&2&&(a=P(),P(),D("routerLinkObj",cNa(b,{comment:1})),ng("aria-label","Comment number"+a.commentNumber),z(),R(" #",a.commentNumber))},S5a=
function(a,b){a&1&&(Q(0," by "),K(1,"b-user-display",18),I(2,"onedev-hovercard",null,3),K(4,"b-issue-person-card",19),J());if(a&2){a=L(3);z();D("onedevHovercardTrigger",a)("model",b);z(3);var c;D("email",(c=b.emailAddress)!=null?c:"")}},T5a=function(a){a&1&&(I(0,"span",12),S(1,"async"),Q(2," \u2022 Edited "),E(3,S5a,5,3),S(4,"async"),J());if(a&2){var b;a=P(2);D("matTooltip",T(1,2,a.editedTooltipText$));z(3);F((b=T(4,4,a.lastNonCreatorCommentEditorUser$))?3:-1,b)}},U5a=function(a){a&1&&(I(0,"p",16),
Q(1," Description has been deleted. "),J())},V5a=function(a){if(a&1){var b=r();I(0,"b-restricted-comment-placeholder",23);S(1,"async");M("onConfirm",function(){t(b);var c=P(),d=P(3),e=P();return v(e.loadRestrictedComment(c,d))});J()}a&2&&(a=P(5),D("disabled",!T(1,1,a.mayReadPii$)))},W5a=function(a){a&1&&(E(0,V5a,2,3,"b-restricted-comment-placeholder",22),S(1,"async"));a&2&&(a=P(4),F(T(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},X5a=function(a){a&1&&(E(0,W5a,2,3),S(1,"async"));if(a&2){var b;a=
P(3);F((b=T(1,1,a.id$))?0:-1,b)}},Y5a=function(a,b){a&1&&(K(0,"b-note-container",25),S(1,"async"),S(2,"async"));if(a&2){a=P();var c=P(4),d;D("issueId",a)("issueAccessLevel",T(1,5,c.accessLevel$))("note",b)("formattingMode",c.formattingMode)("canEditComment",(d=T(2,7,c.canEditComment$))!=null?d:!1)}},Z5a=function(a){a&1&&(E(0,Y5a,3,9,"b-note-container",25),S(1,"async"),S(2,"async"));if(a&2){var b;a=P(4);F((b=T(1,1,a.hasDescription$)&&T(2,3,a.firstNote$))?0:-1,b)}},$5a=function(a){a&1&&Q(0," Add one. ")},
a6a=function(a){a&1&&(I(0,"p",24),Q(1," No description yet. "),E(2,$5a,1,0),S(3,"async"),J());a&2&&(a=P(4),z(2),F(T(3,1,a.canEditComment$)?2:-1))},b6a=function(a){a&1&&(K(0,"help-me-fix-preview"),E(1,Z5a,3,5),S(2,"async"),E(3,a6a,4,3,"p",24),S(4,"async"));if(a&2){var b;a=P(3);z();F((b=T(2,2,a.id$))?1:-1,b);z(2);F(T(4,4,a.hasDescription$)?-1:3)}},c6a=function(a){a&1&&(E(0,X5a,2,3),S(1,"async"),Ag(2,b6a,5,6));a&2&&(a=P(2),F(T(1,1,a.isRedacted$)?0:2))},d6a=function(a,b){a&1&&(K(0,"b-attachment-viewer",
28),S(1,"async"));if(a&2){a=P().$implicit;var c=P(4),d;D("issueId",b)("attachment",a)("attachmentUploader",(d=T(1,3,c.originalAuthorEmail$))!=null?d:"")}},e6a=function(a,b){a&1&&(I(0,"div",27),E(1,d6a,2,5,"b-attachment-viewer",28),S(2,"async"),J());if(a&2){var c;a=b.$implicit;b=P(4);Pg("id","attachment",a.attachmentId);z();F((c=T(2,3,b.id$))?1:-1,c)}},f6a=function(a){a&1&&(I(0,"div",26),Dg(1,e6a,3,5,"div",27,Cg),J());a&2&&(a=P(),z(),Eg(a))},g6a=function(a,b){a&1&&E(0,f6a,3,0,"div",26);a&2&&F(b.length?
0:-1)},i6a=function(a,b){a&1&&(I(0,"div",4),K(1,"mat-icon",5),I(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4",9),Q(6,"Description"),J(),E(7,N5a,3,0,"button",10),S(8,"async"),E(9,O5a,6,5),S(10,"async"),E(11,Q5a,2,3),S(12,"async"),E(13,R5a,2,3,"a",11),S(14,"async"),E(15,T5a,5,6,"span",12),S(16,"async"),J(),I(17,"div"),K(18,"help-me-fix-preview-button",13)(19,"b-formatted-date-time",14)(20,"b-actions-menu",15,0),S(22,"async"),J()(),E(23,U5a,2,0,"p",16),S(24,"async"),Ag(25,c6a,3,3),E(26,g6a,1,1),S(27,"async"),
J()());if(a&2){var c,d,e;a=P();z(7);F(T(8,10,a.canEditComment$)?7:-1);z(2);F((c=T(10,12,a.originalAuthor$))?9:-1,c);z(2);F(T(12,14,a.isAuthorNotReporter$)?11:-1);z(2);F((d=b.commentNumber&&T(14,16,a.id$))?13:-1,d);z(2);F(T(16,18,a.isShowCommentHistoryActionInMenu$)?15:-1);z(4);D("timestamp",b.modifiedDate);z();var f;D("buttonLabel","Description actions")("menuItems",(f=T(22,20,a.commentActionMenuItems$))!=null?f:ih(26,h6a));z(3);F(T(24,22,a.isDeleted$)?23:25);z(3);F((e=T(27,24,a.attachments$))?26:
-1,e)}},j6a=function(a){a&1&&K(0,"b-spinner")},k6a=function(a){a&1&&(Fg(0),Q(1," reacted"),Gg())},l6a=function(a){a&1&&(Fg(0),Q(1,", "),K(2,"br"),Gg())},m6a=function(a,b){a&1&&(I(0,"div"),Fg(1),Q(2),Gg(),E(3,k6a,2,0,"ng-container")(4,l6a,3,0,"ng-container"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z(2);R(" ",a);z();F(c===b-1?3:4)}},n6a=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P(2),z(),R(" by ",Ak(a.event.lastCommentEditorUser)))},o6a=function(a){a&1&&(Fg(0),Q(1,"Message last modified"),
Gg(),E(2,n6a,2,1,"ng-container"),Fg(3),Q(4," on "),K(5,"b-formatted-date-time",0),Gg());a&2&&(a=P(),z(2),F(a.event.version===0&&a.event.lastCommentEditorUser?2:-1),z(3),D("timestamp",a.event.commentLastModifiedAtDate))},p6a=function(a){a&1&&K(0,"b-user-email",0);a&2&&(a=P().$implicit,D("email",a.text)("withProfile",!0))},q6a=function(a){a&1&&(I(0,"b-issue-reference-widget",1),Q(1),J());if(a&2){a=P().$implicit;var b=P();D("href",Fq.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));z();ch(a.text)}},
r6a=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P().$implicit,z(),ch(a.text))},s6a=function(a,b){a&1&&E(0,p6a,1,2,"b-user-email",0)(1,q6a,2,3,"b-issue-reference-widget",1)(2,r6a,2,1,"ng-container");if(a&2){var c;F((c=b.$implicit.tag)==="user"?0:c==="bug"?1:2)}},ur=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},t6a=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},
vr=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},u6a=function(a,b){return a?a.join(" > "):String(b)},v6a=function(a){switch(a){case "INTERNAL":return"Google internal (can be made visible to Google FTEs and TVCs)";case "EXTERNAL_PARTNER":return"Google partners (can be made visible to external Google partners)";case "EXTERNAL_PUBLIC":return"Public (can be made visible to anyone with a Google Account)";case "ACCESS_LEVEL_UNSPECIFIED":return"Not specified";
default:return""}},w6a=function(a){a&1&&(Fg(0),K(1,"b-component-card",4,1),Gg());if(a&2){a=L(2);var b=P();z();D("onedevIsHovercardReady",a.init)("componentId",b.id)}},x6a=function(a){a&1&&(I(0,"span"),Q(1),J());if(a&2){a=P(5);z();var b;ch((b=a.effortSpecName)!=null?b:"Estimated Effort")}},y6a=function(a){a&1&&(I(0,"span"),Q(1,"Estimated Effort (disabled)"),J())},z6a=function(a){a&1&&(I(0,"label"),E(1,x6a,2,1,"span")(2,y6a,2,0,"span"),Q(3," :\u200b "),J());a&2&&(a=P(4),z(),F(a.effortEnabled?1:2))},
A6a=function(a){a&1&&(I(0,"label"),Q(1),J());a&2&&(a=P(3).$implicit,z(),R("",a.displayName,":\u200b"))},B6a=function(a){a&1&&(I(0,"span"),K(1,"b-user-display-name",7),J());a&2&&(a=P(),z(),D("email",a)("showEmail",!0))},C6a=function(a){a&1&&K(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,D("id",a.oldValue))},D6a=function(a){a&1&&K(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);D("timestamp",b.asNumber(a)*1E3)}},E6a=function(a){a&1&&(I(0,"span"),Q(1,"[Issue creation date]"),J())},F6a=function(a){a&
1&&(I(0,"span"),E(1,D6a,1,1,"b-formatted-date-time",8),E(2,E6a,2,0,"span"),J());a&2&&(a=P(),z(),F(a!=="<none>"?1:-1),z(),F(a==="<none>"?2:-1))},G6a=function(a){a&1&&K(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);D("timestamp",b.asNumber(a)*1E3)}},H6a=function(a){a&1&&(I(0,"span"),Q(1,"[Unset]"),J())},I6a=function(a){a&1&&(I(0,"span"),E(1,G6a,1,1,"b-formatted-date-time",8),E(2,H6a,2,0,"span"),J());a&2&&(a=P(),z(),F(a!=="<none>"?1:-1),z(),F(a==="<none>"?2:-1))},J6a=function(a){a&1&&(I(0,"span"),
Q(1),J());a&2&&(a=P(),P(4),z(),ch(W_a(a)))},K6a=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),ch(a))},L6a=function(a){a&1&&(E(0,B6a,2,2,"span"),E(1,C6a,1,1,"plain-component-path",5),E(2,F6a,3,2,"span"),E(3,I6a,3,2,"span"),E(4,J6a,2,1,"span"),E(5,K6a,2,1,"span"),Fg(6),Q(7,"\u00a0"),Gg(),K(8,"span",6),Fg(9),Q(10,"\u00a0"),Gg());a&2&&(a=P(3).$implicit,F(a.isUser?0:-1),z(),F(a.name==="component"?1:-1),z(),F(a.name=="sloStartTime"?2:-1),z(),F(a.name=="sloEndTime"?3:-1),z(),F(a.name==="access_limit"?
4:-1),z(),F(a.isUser||a.name==="component"||a.name==="sloStartTime"||a.name==="sloEndTime"||a.name==="access_limit"?-1:5))},M6a=function(a){a&1&&K(0,"b-user-display-name",7);a&2&&(a=P(),D("email",a)("showEmail",!0))},N6a=function(a){a&1&&(I(0,"span"),K(1,"plain-component-path",5),J());a&2&&(a=P(4).$implicit,z(),D("id",a.newValue))},O6a=function(a){a&1&&K(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);D("timestamp",b.asNumber(a)*1E3)}},P6a=function(a){a&1&&(I(0,"span"),Q(1,"[Issue creation date]"),
J())},Q6a=function(a){a&1&&(I(0,"span"),E(1,O6a,1,1,"b-formatted-date-time",8),E(2,P6a,2,0,"span"),J());a&2&&(a=P(),z(),F(a!=="<none>"?1:-1),z(),F(a==="<none>"?2:-1))},R6a=function(a){a&1&&K(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);D("timestamp",b.asNumber(a)*1E3)}},S6a=function(a){a&1&&(I(0,"span"),Q(1,"[Unset]"),J())},T6a=function(a){a&1&&(I(0,"span"),E(1,R6a,1,1,"b-formatted-date-time",8),E(2,S6a,2,0,"span"),J());a&2&&(a=P(),z(),F(a!=="<none>"?1:-1),z(),F(a==="<none>"?2:-1))},U6a=
function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),P(4),z(),ch(W_a(a)))},W6a=function(a){a&1&&(I(0,"span",9),Q(1),J());if(a&2){a=P();var b=P(3).$implicit;D("ngClass",jh(2,V6a,b.oldValue&&b.name=="title"));z();ch(a)}},X6a=function(a){a&1&&(E(0,M6a,1,2,"b-user-display-name",7),E(1,N6a,2,1,"span"),E(2,Q6a,3,2,"span"),E(3,T6a,3,2,"span"),E(4,U6a,2,1,"span"),E(5,W6a,2,4,"span",9));a&2&&(a=P(3).$implicit,F(a.isUser?0:-1),z(),F(a.name==="component"?1:-1),z(),F(a.name==="sloStartTime"?2:-1),z(),F(a.name===
"sloEndTime"?3:-1),z(),F(a.name==="access_limit"?4:-1),z(),F(a.isUser||a.name=="component"||a.name=="sloStartTime"||a.name=="sloEndTime"||a.name=="access_limit"?-1:5))},Y6a=function(a){a&1&&(I(0,"div",4),E(1,z6a,4,1,"label")(2,A6a,2,1,"label"),E(3,L6a,11,6),E(4,X6a,6,6),J());if(a&2){var b,c;a=P(2).$implicit;z();F(a.name==="effort"?1:2);z(2);F((b=a.oldValue)?3:-1,b);z();F((c=a.newValue)?4:-1,c)}},Z6a=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},$6a=function(a,b){a&1&&(I(0,"span"),K(1,"b-user-display-name",
7),E(2,Z6a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();D("email",a)("showEmail",!0);z();F(c!==b-1?2:-1)}},a7a=function(a){a&1&&(I(0,"span"),Dg(1,$6a,3,3,"span",null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.added))},b7a=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},c7a=function(a,b){a&1&&(I(0,"span")(1,"span"),Q(2),J(),E(3,b7a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z(2);ch(a);z();F(c!==b-1?3:-1)}},d7a=function(a){a&1&&(I(0,"span"),Dg(1,c7a,4,2,"span",
null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.added))},e7a=function(a){a&1&&(I(0,"div")(1,"label"),Q(2),J(),E(3,a7a,3,0,"span")(4,d7a,3,0,"span"),J());a&2&&(a=P(3).$implicit,z(2),R("+",a.displayName,":\u200b"),z(),F(a.isUser?3:4))},f7a=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},g7a=function(a,b){a&1&&(I(0,"span"),K(1,"b-user-display-name",7),E(2,f7a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();D("email",a)("showEmail",!0);z();F(c!==b-1?2:-1)}},h7a=function(a){a&1&&(I(0,
"span"),Dg(1,g7a,3,3,"span",null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.removed))},i7a=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},j7a=function(a,b){a&1&&(I(0,"span")(1,"span"),Q(2),J(),E(3,i7a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z(2);ch(a);z();F(c!==b-1?3:-1)}},k7a=function(a){a&1&&(I(0,"span"),Dg(1,j7a,4,2,"span",null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.removed))},l7a=function(a){a&1&&(I(0,"div")(1,"label"),Q(2),J(),E(3,h7a,3,0,"span")(4,k7a,3,0,"span"),J());
a&2&&(a=P(3).$implicit,z(2),R("-",a.displayName,":\u200b"),z(),F(a.isUser?3:4))},m7a=function(a){a&1&&(I(0,"div",4),E(1,e7a,5,2,"div"),E(2,l7a,5,2,"div"),J());if(a&2){a=P(2).$implicit;var b=P();z();F(a.added&&a.added.length&&b.isStringArray(a.added)?1:-1);z();F(a.removed&&a.removed.length&&b.isStringArray(a.removed)?2:-1)}},n7a=function(a){a&1&&Hg(0)},p7a=function(a,b){a&1&&(I(0,"span"),C(1,n7a,1,0,"ng-container",10),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=
L(4);z();D("ngTemplateOutlet",e)("ngTemplateOutletContext",lh(2,o7a,d,a,c===b-1))}},q7a=function(a){a&1&&(I(0,"div")(1,"label"),Q(2),J(),Dg(3,p7a,2,6,"span",null,Cg),J());a&2&&(a=P(3).$implicit,z(2),R("+",a.displayName,":\u200b"),z(),Eg(a.added))},r7a=function(a){a&1&&Hg(0)},s7a=function(a,b){a&1&&(I(0,"span"),C(1,r7a,1,0,"ng-container",10),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=L(4);z();D("ngTemplateOutlet",e)("ngTemplateOutletContext",lh(2,o7a,d,a,c===
b-1))}},t7a=function(a){a&1&&(I(0,"div")(1,"label"),Q(2),J(),Dg(3,s7a,2,6,"span",null,Cg),J());a&2&&(a=P(3).$implicit,z(2),R("-",a.displayName,":\u200b"),z(),Eg(a.removed))},u7a=function(a){a&1&&(I(0,"div",4),E(1,q7a,5,1,"div"),E(2,t7a,5,1,"div"),J());if(a&2){a=P(2).$implicit;var b=P();z();F(a.added&&a.added.length&&b.isLinkedItemArray(a.added)?1:-1);z();F(a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed)?2:-1)}},v7a=function(a){a&1&&K(0,"b-formatted-date-time",8);a&2&&(a=P(),D("timestamp",
a))},w7a=function(a){a&1&&(I(0,"span"),Q(1," - "),J())},x7a=function(a,b){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",8),E(2,w7a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();D("timestamp",a);z();F(c!==b-1?2:-1)}},y7a=function(a){a&1&&(I(0,"span"),Dg(1,x7a,3,2,"span",null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.oldValue.split(", ")))},z7a=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),ch(a))},C7a=function(a){a&1&&(E(0,v7a,1,1,"b-formatted-date-time",8),E(1,y7a,3,
0,"span"),E(2,z7a,2,1,"span"),Fg(3),Q(4,"\u00a0"),Gg(),K(5,"span",6),Fg(6),Q(7,"\u00a0"),Gg());if(a&2){a=P(3).$implicit;var b=P();F(A7a(b,a,"oldValue")?0:-1);z();F(B7a(b,a,"oldValue")?1:-1);z();F(A7a(b,a,"oldValue")||B7a(b,a,"oldValue")?-1:2)}},D7a=function(a){a&1&&K(0,"b-formatted-date-time",8);a&2&&(a=P(),D("timestamp",a))},E7a=function(a){a&1&&(I(0,"span"),Q(1," - "),J())},F7a=function(a,b){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",8),E(2,E7a,2,0,"span"),J());if(a&2){a=b.$implicit;var c=b.$index;
b=b.$count;z();D("timestamp",a);z();F(c!==b-1?2:-1)}},G7a=function(a){a&1&&(I(0,"span"),Dg(1,F7a,3,2,"span",null,Cg),J());a&2&&(a=P(4).$implicit,z(),Eg(a.newValue.split(", ")))},H7a=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),ch(a))},I7a=function(a){a&1&&(E(0,D7a,1,1,"b-formatted-date-time",8),E(1,G7a,3,0,"span"),E(2,H7a,2,1,"span"));if(a&2){a=P(3).$implicit;var b=P();F(A7a(b,a,"newValue")?0:-1);z();F(B7a(b,a,"newValue")?1:-1);z();F(A7a(b,a,"newValue")||B7a(b,a,"newValue")?-1:2)}},J7a=
function(a){a&1&&(I(0,"div",4)(1,"label"),Q(2),J(),E(3,C7a,8,3),E(4,I7a,3,3),J());if(a&2){var b,c;a=P(2).$implicit;var d=P();z();ng("title",d.customFieldName(a));z();R("",d.customFieldName(a),":\u200b");z();F((b=a.oldValue)?3:-1,b);z();F((c=a.newValue)?4:-1,c)}},K7a=function(a){a&1&&(I(0,"span",11),Q(1,"Updated"),J())},L7a=function(a){a&1&&(I(0,"span"),Q(1,"Deleted"),J())},M7a=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),R("Edited (unknown status '",a.status,"')"))},N7a=function(a,b){a&
1&&E(0,K7a,2,0,"span",11)(1,L7a,2,0,"span")(2,M7a,2,1,"span");if(a&2){var c;F((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},O7a=function(a){a&1&&(I(0,"div",4)(1,"label"),Q(2),J(),E(3,N7a,3,1),J());if(a&2){var b;a=P(2).$implicit;z(2);R("",a.displayName,":\u200b");z();F((b=a.statusUpdateDiff==null?null:a.statusUpdateDiff.entityStatus)?3:-1,b)}},P7a=function(a){a&1&&(I(0,"div",4)(1,"label"),Q(2),J(),I(3,"pre",12),Q(4),S(5,"json"),J()());a&2&&(a=P(2).$implicit,z(2),R("",a.displayName,":\u200b"),z(2),
ch(T(5,2,a)))},Q7a=function(a){a&1&&(K(0,"b-formatted-date-time",3),E(1,Y6a,5,3,"div",4)(2,m7a,3,2,"div",4)(3,u7a,3,2,"div",4)(4,J7a,5,4,"div",4)(5,O7a,4,2,"div",4)(6,P7a,6,4,"div",4));if(a&2){a=P().$implicit;var b=P();D("timestamp",a.timestamp);z();F(!0===(a.type===b.DiffType.SINGLE_VALUE)?1:!0===(a.type===b.DiffType.COLLECTION||a.type===b.DiffType.USER_COLLECTION)?2:!0===(a.type===b.DiffType.LINKED_COLLECTION)?3:!0===(a.type===b.DiffType.CUSTOM_FIELD)?4:!0===(a.type===b.DiffType.STATUS_UPDATE)?
5:6)}},R7a=function(a,b){a&1&&(I(0,"div",2),E(1,Q7a,7,2),J());a&2&&(a=b.$implicit,b=P(),z(),F(((a==null?void 0:a.name)==="sloStartTime"||(a==null?void 0:a.name)==="sloEndTime"?b.activeSession.isInternalSession():1)?1:-1))},S7a=function(a){a&1&&(I(0,"b-issue-reference-widget",13),Q(1),J());if(a&2){a=P();var b=P().change;D("href",b.href)("issueId",a);z();ch(a)}},T7a=function(a){a&1&&K(0,"hotlist-link",5);a&2&&(a=P(),D("id",a))},U7a=function(a){a&1&&(I(0,"a",14),Q(1),J());if(a&2){a=P();var b=P().change;
D("href",b.href,uf);z();ch(a)}},V7a=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},W7a=function(a){a&1&&(E(0,S7a,2,3,"b-issue-reference-widget",13)(1,T7a,1,1,"hotlist-link",5)(2,U7a,2,2,"a",14),E(3,V7a,2,0,"span"));if(a&2){var b=P();a=b.diff;b=b.isLast;var c=P();F(c.isIssueDiff(a)?0:c.isHotlistDiff(a)?1:2);z(3);F(b?-1:3)}},X7a=function(a,b){a&1&&E(0,W7a,4,2);if(a&2){var c;F((c=b.change.value)?0:-1,c)}},Y7a=function(a,b){a&1&&(K(0,"b-user-membership-chip",9),S(1,"async"),S(2,"async"));if(a&2){a=P(2);
var c;D("user",a.event.userPerformingActionUser)("email",b)("teamId",(c=T(1,4,a.teamId$))!=null?c:"");ng("aria-label",T(2,6,a.ariaLabelHeading$))}},Z7a=function(a){a&1&&(K(0,"b-user-display",10),S(1,"async"));a&2&&(a=P(2),D("model",a.event.userPerformingActionUser),ng("aria-label",T(1,2,a.ariaLabelHeading$)))},$7a=function(a){a&1&&Hg(0)},a8a=function(a){a&1&&(I(0,"span",33),C(1,$7a,1,0,"ng-container",34),J(),I(2,"onedev-hovercard",null,1),K(4,"b-issue-person-card",35),J());if(a&2){a=L(3);P();var b=
L(9),c=P();D("onedevHovercardTrigger",a);z();D("ngTemplateOutlet",b);z(3);D("email",Dk(c.event.userPerformingActionUser))}},b8a=function(a){a&1&&(I(0,"span",11),Q(1),J());a&2&&(a=P(2),z(),R(" <",Ak(a.event.userPerformingActionUser),"> "))},c8a=function(a){a&1&&(I(0,"span",11),Q(1),J());a&2&&(a=P(2),z(),R(" <",Ak(a.event.userPerformingActionUser),"> "))},d8a=function(a){if(a&1){var b=r();I(0,"span")(1,"a",36);M("click",function(c){t(b);var d=P(2);return v(d.scrollCommentIntoView(c,d.event.commentNumber))});
Q(2);J()()}a&2&&(a=P(2),z(),D("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),ng("aria-label","Comment number"+a.event.commentNumber),z(),R(" #",a.event.commentNumber))},f8a=function(a){if(a&1){var b=r();I(0,"button",37);M("click",function(){t(b);var c=P(2);return v(e8a(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});J()}},g8a=function(a){a&1&&K(0,"b-restricted-chip",14);if(a&2){a=P(2);var b,c;D("label",a.getRestrictedLabel())("retention",(b=a.event.commentRetention)!=
null?b:void 0)("retentionState",(c=a.event.commentRetentionState)!=null?c:void 0)}},i8a=function(a){a&1&&(K(0,"b-actions-menu",16,2),S(2,"async"));if(a&2){a=P(2);var b;D("buttonLabel","Comment actions")("menuItems",(b=T(2,2,a.commentActionMenuItems$))!=null?b:ih(4,h8a))}},j8a=function(a){a&1&&(I(0,"div",18),K(1,"b-tagged-text",38),J());a&2&&(a=P(2),z(),D("texts",a.event.taggedSummary))},k8a=function(a){a&1&&(K(0,"b-issue-event-details",19),S(1,"async"),S(2,"async"),S(3,"async"));if(a&2){var b;a=P();
var c=P(),d;D("diffs",(d=T(1,4,c.preEventDiffs$))!=null?d:ih(10,h8a))("customFieldMap",a.customFieldMap)("effortSpecName",(b=T(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!T(3,8,c.isEffortEnabled$))}},l8a=function(a){a&1&&(I(0,"div",22),Q(1," Comment has been deleted. "),J())},m8a=function(a){if(a&1){var b=r();I(0,"b-restricted-comment-placeholder",39);S(1,"async");M("onConfirm",function(){t(b);var c=P(2);return v(c.loadRestrictedComment())});J()}a&2&&(a=P(2),D("disabled",!T(1,1,a.mayReadPii$)))},
n8a=function(a){a&1&&(K(0,"b-note-container",25),S(1,"async"),S(2,"async"));if(a&2){a=P(2);var b,c;D("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",(b=T(1,5,a.formattingMode$))!=null?b:a.FormattingMode.PLAIN)("canEditComment",(c=T(2,7,a.canEditComment$))!=null?c:!1)}},o8a=function(a){if(a&1){var b=r();K(0,"b-summarized-note-container",40);S(1,"async");I(2,"button",41);M("click",function(){t(b);var d=P(2);d.wasSummarized=!0;d.isSummarized=
!d.isSummarized;return v()});K(3,"mat-icon",42);Q(4,"Expand details");J()}if(a&2){a=P(2);var c;D("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("summaryType",a.getSummaryType())("formattingMode",(c=T(1,5,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)}},p8a=function(a){if(a&1){var b=r();I(0,"button",41);M("click",function(){t(b);var c=P(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return v()});K(1,"mat-icon",43);Q(2,"Collapse details");
J()}},q8a=function(a){a&1&&K(0,"b-formatted-date-time",29);a&2&&(a=P(2),D("timestamp",a.event.modifiedDate))},r8a=function(a){a&1&&K(0,"mat-icon",45)},s8a=function(a){a&1&&K(0,"mat-icon",46)},t8a=function(a,b){a&1&&(I(0,"span"),Q(1),J());a&2&&(z(),ch(b))},u8a=function(a){a&1&&K(0,"b-comment-reaction-responders-card",47);a&2&&(a=P(3),D("reactionState",a.event.commentReactions==null?null:a.event.commentReactions.get(a.ReactionType.UPVOTE))("issueId",a.issueId)("commentNumber",a.event.commentNumber))},
z8a=function(a){if(a&1){var b=r();I(0,"div",30)(1,"button",44,3);S(3,"async");S(4,"async");S(5,"async");S(6,"async");M("click",function(){t(b);var e=P(2);return v(v8a(e))});E(7,r8a,1,0,"mat-icon",45)(8,s8a,1,0,"mat-icon",46);E(9,t8a,2,1,"span");S(10,"async");J();I(11,"onedev-hovercard",null,4);E(13,u8a,1,3,"b-comment-reaction-responders-card",47);S(14,"async");J()()}if(a&2){var c;a=L(12);var d=P(2);z();D("ariaLabel",w8a(d,d.ReactionType.UPVOTE))("ngClass",jh(22,x8a,T(3,10,d.noUpvoteReactions$)))("aria-disabled",
!T(4,12,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("disabled",!T(5,14,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("onedevHovercardTrigger",a)("onedevHovercardConfig",d.commentReactionsHovercardConfig)("onedevHovercardActive",!!T(6,16,d.showCommentReactionHovercard$));z(6);F(y8a(d,d.ReactionType.UPVOTE)?7:8);z(2);F((c=T(10,18,d.upvoteReactionCountDisplayString$))?9:-1,c);z(4);F(T(14,20,d.noUpvoteReactions$)?-1:13)}},A8a=function(a){if(a&1){var b=r();I(0,"a",49);M("click",function(){t(b);
var c=P(3);return v(c.showCommentHistoryDialog(c.event.commentNumber))});Q(1," Show History ");J()}},B8a=function(a){a&1&&(I(0,"div",31),K(1,"b-comment-edit-timestamp-message",48),E(2,A8a,2,0,"a"),J());a&2&&(a=P(2),z(),D("event",a.event),z(),F(a.commentHistoryEnabled?2:-1))},C8a=function(a){a&1&&(K(0,"b-issue-event-details",19),S(1,"async"),S(2,"async"),S(3,"async"));if(a&2){var b;a=P();var c=P(),d;D("diffs",(d=T(1,4,c.postEventDiffs$))!=null?d:ih(10,h8a))("customFieldMap",a.customFieldMap)("effortSpecName",
(b=T(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!T(3,8,c.isEffortEnabled$))}},D8a=function(a,b){a&1&&(I(0,"div",50),K(1,"b-attachment-viewer",51),J());a&2&&(a=b.$implicit,b=P(3),Pg("id","attachment",a.attachmentId),z(),D("issueId",b.issueId)("attachment",a)("attachmentUploader",Dk(b.event.userPerformingActionUser)))},E8a=function(a){a&1&&(I(0,"div",32),Dg(1,D8a,2,5,"div",50,Cg),J());a&2&&(a=P(2),z(),Eg(a.event.attachments))},G8a=function(a){a&1&&(I(0,"div",5),K(1,"b-user-image",6),J(),
I(2,"div",7)(3,"h4",8),E(4,Y7a,3,8,"b-user-membership-chip",9)(5,Z7a,2,4,"b-user-display",10),E(6,a8a,5,3)(7,b8a,2,1,"span",11),C(8,c8a,2,1,"ng-template",null,0,nh),E(10,d8a,3,3,"span"),E(11,f8a,1,0,"button",12),S(12,"async"),I(13,"span",13),E(14,g8a,1,3,"b-restricted-chip",14),K(15,"b-formatted-date-time",15),E(16,i8a,3,5,"b-actions-menu",16),J()(),K(17,"div",17),E(18,j8a,2,1,"div",18),E(19,k8a,4,11,"b-issue-event-details",19),S(20,"async"),K(21,"div",17),I(22,"div",20)(23,"div",21),E(24,l8a,2,0,
"div",22),E(25,m8a,2,3,"b-restricted-comment-placeholder",23),I(26,"div",24),E(27,n8a,3,9,"b-note-container",25),E(28,o8a,5,7),E(29,p8a,3,0,"button",26),J(),I(30,"div",27)(31,"div",28),E(32,q8a,1,1,"b-formatted-date-time",29),S(33,"async"),J(),E(34,z8a,15,24,"div",30),J()(),E(35,B8a,3,2,"div",31),J(),E(36,C8a,4,11,"b-issue-event-details",19),S(37,"async"),K(38,"div",17),E(39,E8a,3,0,"div",32),K(40,"div",17),J());if(a&2){var b;a=P();z();D("email",Dk(a.event.userPerformingActionUser));z(3);F((b=a.enableTeamAnnotations&&
Dk(a.event.userPerformingActionUser))?4:5,b);z(2);F(a.isNonObfuscatedEmail(Dk(a.event.userPerformingActionUser))?6:7);z(4);F(a.isCommentEvent(a.event)?10:-1);z();F(T(12,20,a.canEditComment$)&&!wr(a)?11:-1);z(3);F(a.isRestricted()?14:-1);z();D("timestamp",a.event.modifiedDate);z();F(a.isCommentEvent(a.event)?16:-1);z(2);F(a.event.taggedSummary&&a.event.taggedSummary.length?18:-1);z();F(T(20,22,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?19:-1);z(5);F(a.isDeleted()?24:-1);z();F(wr(a)&&!a.isDeleted()?
25:-1);z(2);F(!F8a(a)||wr(a)||a.isDeleted()||a.isSummarized?-1:27);z();F(F8a(a)&&!wr(a)&&!a.isDeleted()&&a.isSummarized?28:-1);z();F(a.wasSummarized&&!a.isSummarized?29:-1);z(3);F(T(33,24,a.isShowingCommentTimestamp$)?32:-1);z(2);var c;b=a.ReactionType.UPVOTE;var d,e=!a.issuePermissionService.hasAclToComment()&&((c=a.event.commentReactions)==null?void 0:(d=c.get(b))==null?void 0:d.count)===0;c=a.isInternalSession&&a.commentReactionsEnabled&&F8a(a)&&!a.isDeleted()&&!wr(a)&&!e;F(c?34:-1);z();F(a.isCommentEvent(a.event)&&
(a.event.commentVersion||0)>0&&!wr(a)?35:-1);z();F(T(37,26,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?36:-1);z(3);F(a.event.attachments.length?39:-1)}},H8a=function(a){a&1&&(I(0,"aside",0),K(1,"b-spinner"),J())},I8a=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();R(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," updates ")}},J8a=function(a){a&1&&Q(0);if(a&2){var b;a=P(2).$index;var c=P();R(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount,
" update ")}},K8a=function(a){if(a&1){var b=r();I(0,"div",2)(1,"button",4);M("click",function(){t(b);var f=P().$index,h=P(),k,q,u=(q=(k=h.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?q:0;for(k=0;k<u&&((mm(h.internalEvents[f-k])||Yxa(h.internalEvents[f-k]))&&h.eventDisplayMode.set(f-k,"full"),f-k!==0);k++);h.foldedCommentsCounts.delete(f);return v()});E(2,I8a,1,1)(3,J8a,1,1);J();K(4,"div",5);J()}if(a&2){var c;a=P().$index;var d=P();z(2);var e;F(((e=(c=d.foldedCommentsCounts.get(a))==
null?null:c.commentFoldedCount)!=null?e:1)>1?2:3)}},L8a=function(a){a&1&&(I(0,"div",3),K(1,"b-history-event",6),J());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=P();z();D("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},N8a=function(a,b){a&1&&(E(0,K8a,5,1,"div",2),E(1,L8a,2,4,"div",3));if(a&2){var c;a=b.$index;b=P();var d;F(b.foldedCommentsCounts.has(a)&&((d=(c=b.foldedCommentsCounts.get(a))==
null?null:c.commentFoldedCount)!=null?d:0)>0?0:-1);z();F(b.internalIssueId&&M8a(b.eventDisplayMode.get(a))?1:-1)}},O8a=function(a){a&1&&(I(0,"aside",0),K(1,"b-spinner"),J())},P8a=function(a){return!(!pua(a.userPerformingAction)||!a.isMajorEvent)},R8a=function(a){if(a&1){var b=r();I(0,"div",0);K(1,"mat-icon",1);I(2,"button",2);M("click",function(){t(b);var c=P(3);c.llmIssueSummaryService.trackEvent("click","issueDetailsPage");Q8a(c.llmIssueSummaryService);return v()});Q(3," Summarize ");J()()}},S8a=
function(a,b){a&1&&E(0,R8a,4,0,"div",0);a&2&&(a=P(2),F(b===a.BUTTON?0:-1))},T8a=function(a){a&1&&(E(0,S8a,1,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.stage$))?0:-1,b)}},U8a=function(a,b){a&1&&(I(0,"mat-option",5)(1,"div",8),Q(2),J(),I(3,"div",9),Q(4),J()());a&2&&(a=b.$implicit,D("value",a),z(2),ch(a.name),z(2),ch(a.description))},Z8a=function(a){switch(a){case "FULL_HISTORY":return V8a;case "ALL_COMMENTS":return W8a;case "HUMAN_ONLY":return X8a;case "TEAM_AND_ASSIGNEE":return Y8a;default:return W8a}},
$8a=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P(2);return v(c.removeHotlist.emit())});K(1,"mat-icon",7);J()}a&2&&(a=P(2),wg("invisible",a.disabled),ng("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},a9a=function(a){a&1&&(I(0,"span",1)(1,"span",2)(2,"a",3),Q(3),J()(),E(4,$8a,2,4,"button",4),J(),I(5,"onedev-hovercard",null,0),K(7,"b-hotlist-card",5),J());if(a&2){a=L(6);var b=P();vg("padding-right",b.removable?0:"10px");wg("muted",
b.disabled);D("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);z(2);D("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),uf);ng("aria-label",b.getAriaLabel(b.hotlist));z();ch(b.hotlist.name);z();F(b.removable?4:-1);z(3);D("hotlist",b.hotlist)}},c9a=function(a){if(a&1){var b=r();I(0,"span",1)(1,"div")(2,"button",2);M("click",function(){t(b);var d=P();return v(d.addHotlist(d.hotlist.hotlistId))});K(3,"mat-icon",3);J();K(4,"mat-icon",4);J();I(5,"span",5)(6,"a",6);Q(7);J()()();
I(8,"onedev-hovercard",null,0)(10,"b-hotlist-recommendation-card",7);M("onAccept",function(d){t(b);var e=P();return v(e.addHotlist(d))})("onDismiss",function(){t(b);var d=P();return v(b9a(d))});J()()}if(a&2){a=L(9);var c=P();vg("padding-right","10px");D("onedevHovercardTrigger",a)("onedevHovercardActive",c.showHovercard)("onedevHovercardConfig",c.hovercardConfig);z(2);ng("aria-label","Add the suggested hotlist "+c.hotlist.name);z(4);D("href",c.ROUTES.viewHotlist.makeHref(c.hotlist.hotlistId),uf);
ng("aria-label",c.getAriaLabel(c.hotlist));z();ch(c.hotlist.name);z(3);D("hotlist",c.hotlist)}},e9a=function(a,b){if(a&1){var c=r();I(0,"b-hotlist-chip-smart",4);M("removeHotlist",function(){var d=t(c).$implicit,e=P(2);return v(d9a(e,d))});J()}a&2&&D("id",b.$implicit)},f9a=function(a,b){a&1&&(K(0,"b-hotlist-recommendation-chip",5),S(1,"async"));a&2&&(a=b.$implicit,b=P(4),D("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",T(1,3,b.issueId$)))},h9a=function(a,
b){a&1&&Dg(0,f9a,2,5,"b-hotlist-recommendation-chip",5,g9a);a&2&&Eg(b)},i9a=function(a){a&1&&(E(0,h9a,2,0),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.recommendations$))?0:-1,b)}},k9a=function(a){if(a&1){var b=r();I(0,"div",0);Og(1);I(2,"button",1);S(3,"async");M("onHotkey",function(){t(b);var c=P();return v(c.openHotlistModal())})("click",function(){t(b);var c=P();return v(c.openHotlistModal())});K(4,"mat-icon",2);Q(5);S(6,"async");J();Dg(7,e9a,1,1,"b-hotlist-chip-smart",3,Cg);S(9,"async");E(10,
i9a,2,3);J()}a&2&&(a=P(),z(2),D("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER)("ngClass",jh(10,j9a,!T(3,4,a.textOfHotlistBtn$))),z(3),R(" ",T(6,6,a.textOfHotlistBtn$)," "),z(2),Eg(T(9,8,a.hotlistIds$)),z(3),F(a.isInternalSession?10:-1))},m9a=function(a){if(a&1){var b=r();I(0,"mat-form-field",7);S(1,"async");I(2,"input",8,0);M("keyup",function(c){t(b);var d=P();return v(l9a(d,c))})("blur",function(){t(b);var c=P();return v(c.onInputBlur())});J()()}a&2&&(a=P(),vg("width",a.editModeWidth,"px"),wg("banned-words-warning",
T(1,5,a.bannedWordsChecker.showWarning$)),z(2),D("value",a.titlePlain))},n9a=function(a){a&1&&(I(0,"h3",4,1),Q(2),J());a&2&&(a=P(),ng("title",a.isLongTitle?a.titlePlain:""),z(2),R(" ",a.titleTruncated," "))},p9a=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P();return v(c.isEditMode?l9a(c):o9a(c))});K(1,"mat-icon",10);J()}a&2&&(a=P(),D("disabled",a.disabled||a.isSaving))},q9a=function(a){a&1&&(I(0,"p",6),Q(1),I(2,"a",11),Q(3," Learn more "),J()());a&2&&(a=P(),z(),R(" ",
Sq(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},r9a=function(a){if(a&1){var b=r();I(0,"mat-checkbox",10);M("change",function(c){t(b);var d=P().$implicit,e=P();d.enabled=c.checked;e.detectChanges();return v()});J()}a&2&&(a=P().$implicit,Pg("aria-label","Enable column '",a.name,"'"),D("checked",a.enabled))},u9a=function(a,b){if(a&1){var c=r();I(0,"li",2);M("keydown",function(e){var f=t(c).$index,h=P();return v(h.onKeyDown(e,f))})("focus",
function(){var e=t(c).$index,f=P();return v(f.onFocus(e))});E(1,r9a,1,3,"mat-checkbox",3);K(2,"mat-icon",4);I(3,"span");Q(4);J();I(5,"div",5)(6,"button",6);M("click",function(){var e=t(c).$index,f=P();return v(s9a(f,e))});K(7,"mat-icon",7);J();I(8,"button",8);M("click",function(){var e=t(c).$index,f=P();return v(t9a(f,e))});K(9,"mat-icon",9);J()()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();ng("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);z();F(d.allowRemoval?1:-1);z(3);ch(a.name);z(2);
wg("invisible",b===0);z(2);wg("invisible",b===d.items.length-1)}},v9a=function(a){a&1&&K(0,"mat-icon",1)},w9a=function(a){a&1&&(I(0,"span",2),S(1,"date"),Q(2),J());a&2&&(a=P(2),Pg("title","Start Date: ",mh(1,4,a.startDate,"longDate")),z(2),dh(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},x9a=function(a){a&1&&(I(0,"span",3),S(1,"date"),Q(2),J());a&2&&(a=P(2),Pg("title","End Date: ",mh(1,3,a.endDate,"longDate")),z(2),R(" ",a.endDateShortStr," "))},y9a=function(a){a&1&&(I(0,"span",4),Q(1,"?"),J())},
z9a=function(a){a&1&&(I(0,"div",0),E(1,v9a,1,0,"mat-icon",1),E(2,w9a,3,7,"span",2),E(3,x9a,3,6,"span",3)(4,y9a,2,0,"span",4),J());a&2&&(a=P(),z(),F(a.showIcon?1:-1),z(),F(a.startDate?2:-1),z(),F(a.endDate?3:4))},A9a=function(a,b){b=b===void 0?[]:b;return"http://cl/search/cl:("+[].concat(p(a),p(b.map(function(c){return String(c.changelistNumber)}))).join("|")+")"},B9a=function(a,b,c){c=c===void 0?22:c;return["display: inline-block; border-radius: 50%;","width: "+c+"px;","min-width: "+c+"px;","height: "+
c+"px;","background: conic-gradient(var(--"+(b===void 0?"good-gfx":b)+") "+a*100+"%, var(--divider) 0 100%);","box-shadow: inset 0 0 0 2px var(--divider);"].join(" ")},C9a=function(a){return"hotlist-"+a},D9a=function(a){return"savedsearch-"+a},yr=function(a){if(a!=null){if(E9a.includes(a))return a;var b=a.match(/\bhotlists?\b/)?xr(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?xr(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?xr(a):void 0;
b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},F9a=function(a){switch(yr(a)){case "hotlist":return"Hotlist";case "savedsearch":return"Saved Search";case "issue":return"Issue"}},xr=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},G9a=function(a){var b=xr(a);if(b!=null)switch(yr(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},H9a=function(a){var b=xr(a);if(b!=null&&yr(a)==="issue")return"/issues?q="+
encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},I9a=function(a){for(var b={},c={},d=l(a),e=d.next();!e.done;e=d.next())e=e.value,c[e.issueId]=e;d=a.slice();d.sort(function(q,u){var A,G;return(((A=u.descendantCount)!=null?A:0)-((G=q.descendantCount)!=null?G:0))*-1});d=l(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,h=void 0;e=(h=b[f.issueId])!=null?h:0;h=void 0;f=l((h=f.parentIssueIds)!=null?h:[]);for(h=f.next();!h.done;h=f.next())if(h=c[h.value],h!=null){var k=void 0;b[h.issueId]=(k=b[h.issueId])!=
null?k:0;b[h.issueId]+=1+e}}return a.map(function(q){var u,A=(u=b[q.issueId])!=null?u:0;return[[A,q.openDescendantCount+A*10],q]})},J9a=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=I9a(a);a.sort(function(f,h){f=l(f);f=l(f.next().value);f.next();f=f.next().value;h=l(h);h=l(h.next().value);h.next();return h.next().value-f});b=a.filter(function(f){f=l(f);return l(f.next().value).next().value>0}).map(function(f){f=l(f);f.next();return f.next().value}).filter(function(f){return f.descendantCount>=
2}).filter(Cya);var c={};a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;e=e.next().value;c[e.issueId]=d}return b.map(function(f){var h,k;return{title:(h=f.snapshot)==null?void 0:(k=h[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+" recent personal touchpoints."}})},K9a=function(a){if(a&1){var b=r();I(0,"div",1);M("click",function(){t(b);var c=P();return v(c.useXofYLabel=!c.useXofYLabel)});K(1,"div",
2);I(2,"span");Q(3);S(4,"number");J();I(5,"span");Q(6);J()()}a&2&&(a=P(),Rg("title","",a.closed," of ",a.total," issues closed in this work area"),z(),ng("style",a.makePie(a.closed/a.total),kia),z(),wg("display-none",a.useXofYLabel),z(),R("",mh(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),z(2),wg("display-none",!a.useXofYLabel),z(),dh("",a.closed," of ",a.total," closed"))},L9a=function(a,b,c){var d=c[b];return d==null?!1:[].concat(p(a)).map(function(e){return zr[e]}).every(function(e){return e==
null?!0:e.check(d,b,c)})},M9a=function(a){return!!zr[a]},N9a=function(a){a&1&&(I(0,"div",2),Vd(),I(1,"svg",3),K(2,"path",4),J()())},P9a=function(a){if(a&1){var b=r();I(0,"button",25);M("click",function(){t(b);var c=P(2);return v(O9a(c))});K(1,"mat-icon",26);J()}},Q9a=function(a){a&1&&K(0,"th",27)},R9a=function(a){a&1&&K(0,"td",28)},S9a=function(a){a&1&&(I(0,"th",27),Q(1," ID "),J())},T9a=function(a){a&1&&K(0,"b-issue-id-cell",30);a&2&&(a=P().$implicit,D("id",a.issueIds[0]))},U9a=function(a,b){a&1&&
(I(0,"td",29),E(1,T9a,1,1,"b-issue-id-cell",30),J());a&2&&(a=b.$implicit,z(),F(a.issueIds.length===1?1:-1))},W9a=function(a){if(a&1){var b=r();I(0,"th",27)(1,"mat-checkbox",31);M("change",function(d){t(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):null)});J()()}if(a&2){a=P();var c=P();z();D("checked",c.selection.selected.length>0&&V9a(c,a))("indeterminate",c.selection.selected.length>0&&!V9a(c,a))}},X9a=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"mat-checkbox",32);M("click",function(d){t(c);
return v(d.stopPropagation())})("change",function(){var d=t(c).$implicit,e=P(2);e.selection.toggle(d.issueIds[0]);e.selectedIssuesChange.emit(e.selection);return v()});J()()}a&2&&(a=b.$implicit,b=P(2),z(),D("checked",b.selection.isSelected(a.issueIds[0])),ng("aria-label","Select issue "+a.issueIds[0])("aria-checked",b.selection.isSelected(a.issueIds[0])))},Y9a=function(a){if(a&1){var b=r();I(0,"th",27)(1,"mat-checkbox",31);M("change",function(d){t(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):
null)});J()()}if(a&2){a=P();var c=P();z();D("checked",c.selection.selected.length>0&&V9a(c,a))("indeterminate",c.selection.selected.length>0&&!V9a(c,a))}},Z9a=function(a){a&1&&K(0,"td",29)},$9a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},a$a=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"b-issue-title-cell",33);S(2,"async");S(3,"async");S(4,"async");M("issueNavigated",function(f){t(c);var h=P(2);return v(h.issueNavigated.emit(f))});
J()()}if(a&2){var d;a=b.$implicit;b=P(2);z();wg("bold",b.showReadStatus&&b.isUnread(T(2,8,a.issue$)));Qg("anchorTarget",(b.options.navigationOptions==null?0:b.options.navigationOptions.alwaysOpenNewTab)?"_blank":"_self");var e;D("issue",T(3,10,a.issue$))("issueUrlFactory",b.issueUrlFactory)("enableHovercard",(e=b.options.enableIssueHovercard)!=null?e:!1)("useButtonToNavigate",(b.options.navigationOptions==null?null:b.options.navigationOptions.clickTargets)===b.ClickTargetsForNavigation.NONE)("trailingChip",
b.options.showTrending?(d=T(4,12,b.trendingChipsById$))==null?null:d[a.issueIds[0]]:void 0)}},b$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},c$a=function(a,b){a&1&&(I(0,"td",29)(1,"b"),Q(2),S(3,"async"),J()());a&2&&(a=b.$implicit,z(2),dh("",T(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},d$a=function(a){a&1&&(I(0,"th",34),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.TYPE),z(),R(" ",a.getDisplayName(a.IssueFieldType.TYPE),
" "))},e$a=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-type-cell",35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},f$a=function(){},g$a=function(a){a&1&&Q(0);a&2&&(a=P(3),R(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},h$a=function(a){a&1&&(I(0,"th",34),E(1,f$a,0,0)(2,g$a,1,1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.ASSIGNEE),z(),F((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},i$a=function(a,b){a&1&&K(0,"b-user-image",
36);a&2&&D("email",b)},j$a=function(a){a&1&&E(0,i$a,1,1,"b-user-image",36);if(a&2){var b;a=P();var c=P(4);F((b=c.getAssigneeString(a))?0:-1,b)}},k$a=function(a,b){a&1&&E(0,j$a,1,1);a&2&&(a=P(4),F(a.isOpen(b)?0:-1))},l$a=function(a){a&1&&(E(0,k$a,1,1),S(1,"async"));if(a&2){var b;a=P().$implicit;F((b=T(1,1,a.issue$))?0:-1,b)}},m$a=function(a){a&1&&(K(0,"b-issue-assignee-cell",35),S(1,"async"));a&2&&(a=P().$implicit,D("issue",T(1,1,a.issue$)))},n$a=function(a){a&1&&(I(0,"td",29),E(1,l$a,2,3)(2,m$a,2,
3,"b-issue-assignee-cell",35),J());a&2&&(a=P(2),z(),F((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},o$a=function(a){a&1&&(I(0,"th",34),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.REPORTER),z(),R(" ",a.getDisplayName(a.IssueFieldType.REPORTER)," "))},p$a=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-reporter-cell",35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},q$a=function(a){a&1&&(I(0,"th",37),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",
a.IssueFieldType.PRIORITY),z(),R(" ",a.getDisplayName(a.IssueFieldType.PRIORITY)," "))},r$a=function(a){a&1&&K(0,"b-issue-priority-display",38);a&2&&(P(),a=Mg(1),D("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},s$a=function(a,b){a&1&&(I(0,"td",29),Kg(1),S(2,"async"),E(3,r$a,1,1,"b-issue-priority-display",38),J());a&2&&(a=b.$implicit,P(2),z(),Lg(T(2,1,a.issue$)),z(2),F(3))},t$a=function(a){a&1&&K(0,"th",39)},u$a=function(a){a&1&&(I(0,"td",29),
K(1,"mat-icon",40),J())},v$a=function(a){a&1&&(I(0,"th",34),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.STATUS),z(),R(" ",a.getDisplayName(a.IssueFieldType.STATUS)," "))},w$a=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-status-cell",35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},x$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},y$a=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-team-cell",
35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},z$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},A$a=function(a){a&1&&Q(0);if(a&2){a=P();var b;R(" ",(b=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?b:0," ")}},B$a=function(a){a&1&&E(0,A$a,1,1);a&2&&(P(3),F(0))},C$a=function(a,b){a&1&&(I(0,"td",29),E(1,B$a,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;
z();F((c=T(2,1,a.issue$))?1:-1,c)}},D$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},E$a=function(a){a&1&&(I(0,"span",41),Q(1),J());a&2&&(a=P(),Pg("title","",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes"),z(),R(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},F$a=function(a){a&1&&E(0,E$a,2,3,"span",41);a&2&&(P(3),F(0))},G$a=function(a,b){a&1&&(I(0,"td",29),E(1,F$a,1,1),S(2,"async"),J());if(a&
2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},H$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.SEVEN_DAY_VIEW_COUNT)," "))},I$a=function(a){a&1&&(I(0,"span",41),Q(1),J());a&2&&(a=P(),Pg("title","",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," views in last 7 days"),z(),R(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},J$a=function(a){a&1&&E(0,I$a,2,3,"span",41);a&2&&(P(3),F(0))},
K$a=function(a,b){a&1&&(I(0,"td",29),E(1,J$a,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},L$a=function(a){a&1&&(I(0,"th",42),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.CREATED_TIME),z(),R(" ",a.getDisplayName(a.IssueFieldType.CREATED_TIME)," "))},M$a=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-created-time-cell",43),S(2,"async"),J());if(a&2){a=b.$implicit;b=P(2);z();var c;D("issue",T(2,2,a.issue$))("mode",(c=b.options.modes==null?null:b.options.modes.createdTime)!=
null?c:b.DEFAULT_DATETIME_MODE)}},N$a=function(a){a&1&&(I(0,"th",42),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.MODIFIED_TIME),z(),R(" ",a.getDisplayName(a.IssueFieldType.MODIFIED_TIME)," "))},O$a=function(a,b){a&1&&K(0,"b-formatted-date-time",44);if(a&2){a=P(3);var c;D("timestamp",b/1E3)("mode",(c=a.options.modes==null?null:a.options.modes.modifiedTime)!=null?c:a.DEFAULT_DATETIME_MODE)("paddingLeftPx",0)}},P$a=function(a,b){a&1&&(I(0,"td",29),Kg(1),S(2,"async"),E(3,O$a,1,3,"b-formatted-date-time",
44),J());if(a&2){var c;a=b.$implicit;P(2);a=T(2,1,a.issue$);z(3);F((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},Q$a=function(a){a&1&&(I(0,"th",45),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.RELATIVE_MODIFIED_TIME),z(),R(" ",a.getDisplayName(a.IssueFieldType.RELATIVE_MODIFIED_TIME)," "))},R$a=function(a,b){a&1&&K(0,"b-formatted-date-time",44);a&2&&D("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",4)},S$a=function(a,b){a&1&&
(I(0,"td",46),Kg(1),S(2,"async"),E(3,R$a,1,3,"b-formatted-date-time",44),J());if(a&2){var c;a=b.$implicit;P(2);a=T(2,1,a.issue$);z(3);F((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},T$a=function(a){a&1&&(I(0,"th",47),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},U$a=function(a){a&1&&K(0,"b-issue-triager-cell",35);a&2&&(a=P(),D("issue",a))},V$a=function(a){a&1&&E(0,U$a,1,1,"b-issue-triager-cell",35);a&2&&(P(3),F(0))},
W$a=function(a,b){a&1&&(I(0,"td",46),E(1,V$a,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},X$a=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),ch(a.getDisplayName(a.IssueFieldType.ALERTS)))},Y$a=function(a){a&1&&K(0,"b-issue-alerts-cell",49);if(a&2){a=P();var b=P(4);D("alerts",b.alerts)("issue",a)}},Z$a=function(a){a&1&&E(0,Y$a,1,2,"b-issue-alerts-cell",49);a&2&&(P(4),F(0))},$$a=function(a){a&1&&(E(0,Z$a,1,1),S(1,"async"));if(a&2){var b;a=P().$implicit;
F((b=T(1,1,a.issue$))?0:-1,b)}},aab=function(a){a&1&&K(0,"b-signal-chip",48)},bab=function(a,b){a&1&&(I(0,"td",46),E(1,$$a,2,3)(2,aab,1,0,"b-signal-chip",48),J());a&2&&(a=b.$implicit,z(),F(a.issueIds.length===1?1:2))},cab=function(a){a&1&&(I(0,"th",50),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.TIMEFRAME),z(),R(" ",a.getDisplayName(a.IssueFieldType.TIMEFRAME)," "))},dab=function(a,b){a&1&&(I(0,"td",29),K(1,"issue-timeframe",51),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",
T(2,2,a.issue$))("showIcon",!1))},eab=function(a){a&1&&(I(0,"th",42),Q(1),J());a&2&&(a=P(2),D("mat-sort-header",a.IssueFieldType.PROGRESS),z(),R(" ",a.getDisplayName(a.IssueFieldType.PROGRESS)," "))},fab=function(a,b){a&1&&(I(0,"td",29),K(1,"progress-pie",35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},gab=function(a){a&1&&K(0,"th",27)},hab=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"b-actions-menu",52);M("click",function(f){t(c);return v(f.stopPropagation())});J()()}if(a&
2){a=b.$implicit;b=P(2);z();var d,e;D("buttonLabel",(d=b.options.menu==null?null:b.options.menu.buttonLabel)!=null?d:b.DEFAULT_MENU_OPTIONS.buttonLabel)("buttonIcon",(e=b.options.menu==null?null:b.options.menu.buttonIcon)!=null?e:b.DEFAULT_MENU_OPTIONS.buttonIcon)("menuItems",b.getMenuItems(a.issueIds[0]))}},iab=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},jab=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-component-name-cell",
35),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},kab=function(a){a&1&&(I(0,"th",27),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},lab=function(a,b){a&1&&(I(0,"td",29),K(1,"b-enrichment-categories-cell",53),J());a&2&&(a=b.$implicit,b=P(2),z(),D("enrichmentCategoryNames",b.enrichmentCategoriesFunction(a.issueIds[0])))},mab=function(a){a&1&&(I(0,"th",27)(1,"span"),Q(2),J()());if(a&2){a=P().$implicit;var b=P(2);z(2);R(" ",b.getCustomFieldName(a),
" ")}},nab=function(a){a&1&&(I(0,"span"),Q(1),J());if(a&2){a=P();var b=P(2).$implicit,c=P(2);z();R(" ",c.getCustomFieldValue(a,b)," ")}},oab=function(a){a&1&&E(0,nab,2,1,"span");a&2&&(P(4),F(0))},pab=function(a,b){a&1&&(I(0,"td",29),E(1,oab,1,1),S(2,"async"),J());if(a&2){var c;a=b.$implicit;z();F((c=T(2,1,a.issue$))?1:-1,c)}},qab=function(a,b){a&1&&(Fg(0,7),C(1,mab,3,1,"th",5)(2,pab,3,3,"td",8),Gg());a&2&&(a=b.$implicit,b=P(2),Rg("matColumnDef","",b.IssueFieldType.CUSTOM_FIELD,"-",a))},rab=function(a){a&
1&&K(0,"tr",54)},tab=function(a,b){if(a&1){var c=r();I(0,"tr",55,0);S(2,"async");M("click",function(d){t(c);var e=L(1),f=P(2);return v(sab(f,d,e))})("mouseup",function(d){t(c);var e=L(1),f=P(2);return v(sab(f,d,e))})("focusin",function(){var d=t(c).$implicit,e=P(2);return v(e.focusManager==null?null:Uq(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});J()}a&2&&(a=b.$implicit,b=P(2),wg("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(T(2,5,
a.issue$)))("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),D("row",a))},uab=function(a,b){if(a&1){var c=r();I(0,"tr",55,0);M("click",function(d){t(c);var e=L(1),f=P(2);return v(sab(f,d,e))})("mouseup",function(d){t(c);var e=L(1),f=P(2);return v(sab(f,d,e))})("focusin",function(){var d=t(c).$implicit,
e=P(2);return v(e.focusManager==null?null:Uq(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});J()}a&2&&(a=b.$implicit,b=P(2),wg("active",b.options.activeRowMode===b.ActiveRowMode.REMAIN_ACTIVE&&b.idsToString(b.focusManager==null?null:b.focusManager.activeItem==null?null:b.focusManager.activeItem.row==null?null:b.focusManager.activeItem.row.issueIds)===b.idsToString(a.issueIds)),D("row",a))},wab=function(a,b){if(a&1){var c=r();E(0,P9a,2,0,"button",
2);I(1,"table",3);S(2,"async");S(3,"async");M("matSortChange",function(h){t(c);var k=P();return v(k.onSortChange(h))});Fg(4,4);C(5,Q9a,1,0,"th",5)(6,R9a,1,0,"td",6);Gg();Fg(7,7);C(8,S9a,2,0,"th",5)(9,U9a,2,1,"td",8);Gg();Fg(10,9);C(11,W9a,2,2,"th",5)(12,X9a,2,3,"td",8);Gg();Fg(13,10);C(14,Y9a,2,2,"th",5)(15,Z9a,1,0,"td",8);Gg();Fg(16,7);C(17,$9a,2,1,"th",5)(18,a$a,5,14,"td",8);Gg();Fg(19,11);C(20,b$a,2,1,"th",5)(21,c$a,4,4,"td",8);Gg();Fg(22,7);C(23,d$a,2,2,"th",12)(24,e$a,3,3,"td",8);Gg();Fg(25,
7);C(26,h$a,3,2,"th",12)(27,n$a,3,1,"td",8);Gg();Fg(28,7);C(29,o$a,2,2,"th",12)(30,p$a,3,3,"td",8);Gg();Fg(31,7);C(32,q$a,2,2,"th",13)(33,s$a,4,4,"td",8);Gg();Fg(34,14);C(35,t$a,1,0,"th",15)(36,u$a,2,0,"td",8);Gg();Fg(37,7);C(38,v$a,2,2,"th",12)(39,w$a,3,3,"td",8);Gg();Fg(40,7);C(41,x$a,2,1,"th",5)(42,y$a,3,3,"td",8);Gg();Fg(43,7);C(44,z$a,2,1,"th",5)(45,C$a,3,3,"td",8);Gg();Fg(46,7);C(47,D$a,2,1,"th",5)(48,G$a,3,3,"td",8);Gg();Fg(49,7);C(50,H$a,2,1,"th",5)(51,K$a,3,3,"td",8);Gg();Fg(52,7);C(53,L$a,
2,2,"th",16)(54,M$a,3,4,"td",8);Gg();Fg(55,7);C(56,N$a,2,2,"th",16)(57,P$a,4,3,"td",8);Gg();Fg(58,7);C(59,Q$a,2,2,"th",17)(60,S$a,4,3,"td",18);Gg();Fg(61,7);C(62,T$a,2,1,"th",19)(63,W$a,3,3,"td",18);Gg();Fg(64,7);C(65,X$a,2,1,"th",5)(66,bab,3,1,"td",18);Gg();Fg(67,7);C(68,cab,2,2,"th",20)(69,dab,3,4,"td",8);Gg();Fg(70,7);C(71,eab,2,2,"th",16)(72,fab,3,3,"td",8);Gg();Fg(73,21);C(74,gab,1,0,"th",5)(75,hab,2,3,"td",8);Gg();Fg(76,7);C(77,iab,2,1,"th",5)(78,jab,3,3,"td",8);Gg();Fg(79,7);C(80,kab,2,1,"th",
5)(81,lab,2,1,"td",8);Gg();Dg(82,qab,3,3,"ng-container",7,Cg);C(84,rab,1,0,"tr",22)(85,tab,3,7,"tr",23)(86,uab,2,3,"tr",24);J()}if(a&2){var d,e;a=P();F(a.editableColumns?0:-1);z();wg("hide-header",a.options.hideColumnHeaders);var f;D("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=T(2,33,a.activeSort$))==null?null:d.column)!=null?f:"")("matSortDirection",a.toMatSortDirection((e=T(3,35,a.activeSort$))==null?null:e.direction));z(6);
D("matColumnDef",a.IssueFieldType.ISSUE_ID);z(9);D("matColumnDef",a.IssueFieldType.TITLE);z(6);D("matColumnDef",a.IssueFieldType.TYPE);z(3);D("matColumnDef",a.IssueFieldType.ASSIGNEE);z(3);D("matColumnDef",a.IssueFieldType.REPORTER);z(3);D("matColumnDef",a.IssueFieldType.PRIORITY);z(6);D("matColumnDef",a.IssueFieldType.STATUS);z(3);D("matColumnDef",a.IssueFieldType.TEAM);z(3);D("matColumnDef",a.IssueFieldType.DUPLICATE_COUNT);z(3);D("matColumnDef",a.IssueFieldType.VOTE_COUNT);z(3);D("matColumnDef",
a.IssueFieldType.SEVEN_DAY_VIEW_COUNT);z(3);D("matColumnDef",a.IssueFieldType.CREATED_TIME);z(3);D("matColumnDef",a.IssueFieldType.MODIFIED_TIME);z(3);D("matColumnDef",a.IssueFieldType.RELATIVE_MODIFIED_TIME);z(3);D("matColumnDef",a.IssueFieldType.TRIAGER);z(3);D("matColumnDef",a.IssueFieldType.ALERTS);z(3);D("matColumnDef",a.IssueFieldType.TIMEFRAME);z(3);D("matColumnDef",a.IssueFieldType.PROGRESS);z(6);D("matColumnDef",a.IssueFieldType.COMPONENT_PATH);z(3);D("matColumnDef",a.IssueFieldType.ENRICHMENT_CATEGORIES);
z(3);Eg(a.customFieldIds);z(2);D("matHeaderRowDef",a.tableColumns);z();D("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);z();D("matRowDefColumns",vab(a))("matRowDefWhen",a.isMultiIssue)}},xab=function(a){if(a&1){var b=r();I(0,"button",57);M("click",function(){t(b);var c=P(5);return v(c.rowLimit$.next(void 0))});Q(1," Show more ");J()}},yab=function(a){a&1&&E(0,xab,2,0,"button",56);if(a&2){a=P();var b=P();F(a.length<b?0:-1)}},zab=function(a){if(a&1){var b=r();I(0,"button",57);M("click",
function(){t(b);var c=P(5);return v(c.rowLimit$.next(c.options.rowLimit))});Q(1," Show less ");J()}},Aab=function(a){a&1&&E(0,zab,2,0,"button",56);if(a&2){a=P();var b=P(3);F(a.length>b.options.rowLimit?0:-1)}},Bab=function(a){a&1&&(E(0,yab,1,1),S(1,"async"),Ag(2,Aab,1,1));if(a&2){var b;a=P(3);F((b=T(1,1,a.rowLimit$))?0:2,b)}},Cab=function(a){a&1&&(E(0,Bab,3,3),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.rows$))?0:-1,b)}},Dab=function(a){a&1&&(I(0,"div",1),E(1,Cab,2,3),S(2,"async"),J());if(a&2){var b;
a=P();z();F((b=T(2,1,a.rowCountAfterFilters$))?1:-1,b)}},Eab=function(a,b){return a===b?!0:a&&b?Pua(a.issueIds,b.issueIds):!1},Fab=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},qm=function(a){return np(a.issue$)},Gab=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return lya()(a,b.direction);case "ASSIGNEE":return mya()(a,b.direction);case "REPORTER":return oya()(a,b.direction);case "TYPE":return nya()(a,b.direction);case "CREATED_TIME":return pya(qm)(a,b.direction);
case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return qya(qm)(a,b.direction);case "PRIORITY":return vya(qm)(a,b.direction);case "PROGRESS":return wya()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},Hab=function(a,b){var c=a.views24h;var d=a.views7d;a=a.views30d;if(aj(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(aj(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};
if(aj(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},Iab=function(a,b){if(a&1){var c=r();I(0,"b-issues-table",1);M("issueNavigated",function(d){t(c);var e=P();return v(e.submitEnrichmentFeedback(d,e.EnrichmentFeedbackType.GO_TO_ISSUE))});J()}a&2&&(a=P(),D("issueIds",b.issueIds)("tableColumns",b.tableColumns)("options",a.tableOptions)("enrichmentCategoriesFunction",b.categoriesFunction)("menuItemFactory",a.menuItemFactory))},Jab=function(a){a&1&&(I(0,
"div"),K(1,"b-spinner"),J())},Kab=function(a){a&1&&Hg(0)},Nab=function(a){if(a&1){var b=r();I(0,"div",1);M("keydown",function(c){t(b);var d=P();return v(d.processKeydown(c))});I(1,"div",2);C(2,Kab,1,0,"ng-container",3);J();I(3,"div",4)(4,"button",5);M("click",function(){t(b);var c=P();return v(Lab(c))});Q(5,"Save");J();I(6,"button",6);M("click",function(){t(b);var c=P();return v(Mab(c))});Q(7,"Cancel");J()()()}a&2&&(a=P(),D("cdkTrapFocusAutoCapture",!0),z(2),D("ngTemplateOutlet",a.editorTemplate),
z(2),D("disabled",a.saveDisabled))},Oab=function(a){if(a&1){var b=r();I(0,"input",4,2);M("peoplekitAutocompleteSelectionChange",function(c){t(b);var d=P();return v(d.selectAutocomplete(c))});gh("ngModelChange",function(c){t(b);var d=P();fh(d.inputValue,c)||(d.inputValue=c);return v(c)});J()}a&2&&(a=P(),D("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions),eh("ngModel",a.inputValue))},Pab=function(a){a&1&&Q(0);a&2&&(a=P(),R(" ",a.displayValueOverride,
" "))},Qab=function(a){a&1&&Hg(0)},Sab=function(a){a&1&&C(0,Qab,1,0,"ng-container",4);a&2&&(a=P(),D("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",jh(2,Rab,a.email)))},Uab=function(a){a&1&&Q(0);a&2&&(a=P(),R(" ",a.email," "))},Vab=function(a){a&1&&(Vd(),I(0,"svg",5),K(1,"path",6),J())},Wab=function(a){a&1&&K(0,"b-user-membership-chip",3);if(a&2){a=P().$implicit;var b=P(),c;D("user",b.user)("email",a)("teamId",(c=b.teamId)!=null?c:"")("enableSmallChip",!0)}},Xab=function(a,b){a&
1&&E(0,Wab,1,4,"b-user-membership-chip",3);a&2&&F(b.$implicit?0:-1)},Yab=function(a){a&1&&K(0,"div",2)},Zab=function(a){a&1&&(Fg(0),Og(1),Gg())},$ab=function(a){a&1&&(Vd(),I(0,"svg",1),K(1,"path",2),J());a&2&&(a=P(),D("matTooltip",a.warning))},abb=function(a){if(a&1){var b=r();I(0,"b-edit-field",3,0);S(2,"async");S(3,"async");M("valueChange",function(d){t(b);var e=L(1),f=P();f.valueChange.emit({editField:e,newEmail:d!=null?d:""});f.cdr.markForCheck();return v()});J()}if(a&2){a=P();var c;D("name",
a.name)("title",a.title)("type",a.FieldType.TEXT)("value",a.value)("user",a.user)("isUser",!0)("readonly",!T(2,11,a.hasAclToEdit$))("disabled",!!a.isSaving)("showAvailability",!0)("teamId",(c=T(3,13,a.teamId$))!=null?c:"")("displayValueOverride",a.displayValueOverride)}},bbb=function(a){if(a&1){var b=r();I(0,"onedev-edit-field")(1,"onedev-field-label");Q(2);J();I(3,"onedev-field-value",4)(4,"b-user-picker",5,1);S(6,"async");S(7,"async");M("emailChange",function(f){t(b);var h=P();h.emailChange.emit(f);
h.cdr.markForCheck();return v()});J()()()}if(a&2){a=P();z(2);ch(a.title);z();D("thinking",!!a.isSaving);z();var c,d,e;D("anchor",(c=a.anchor)!=null?c:a.elementRef.nativeElement)("user",(d=a.user)!=null?d:a.emailToUser(a.value))("teamId",(e=T(6,7,a.teamId$))!=null?e:"")("disabled",!T(7,9,a.hasAclToEdit$))("displayValueOverride",a.displayValueOverride)}},cbb=function(a){a&1&&(I(0,"div",4),Og(1,1),J());a&2&&(a=P(),Pg("id","expansion-panel-content-",a.instance),ng("aria-labelledby","expansion-panel-header-"+
a.instance))},dbb=function(a,b){a&1&&(I(0,"div")(1,"span",16),Q(2,"Phase:\u00a0"),J(),I(3,"span",17),Q(4),J()());a&2&&(z(4),ch(b))},ebb=function(a,b){a&1&&(I(0,"div")(1,"span",16),Q(2,"Subphase:\u00a0"),J(),I(3,"span",17),Q(4),J()());a&2&&(z(4),ch(b))},fbb=function(a){a&1&&K(0,"b-issue-card",20,1);if(a&2){a=L(1);var b=P();D("onedevIsHovercardReady",a.init)("issueId",b)}},gbb=function(a,b){a&1&&(I(0,"span",18),Q(1),J(),I(2,"onedev-hovercard",null,0),C(4,fbb,2,2,"b-issue-card",19),J());a&2&&(a=L(3),
D("onedevHovercardTrigger",a),z(),R("Duplicate of ",b))},ibb=function(a,b){if(a&1){var c=r();I(0,"span",16);Q(1,"Triager:\u00a0");J();K(2,"b-user-image",22);I(3,"b-single-user-control",23,3);S(5,"async");M("valueChange",function(f){t(c);var h=P(3);return v(hbb(h,f.newEmail))})("emailChange",function(f){t(c);var h=P(3);return v(hbb(h,f))});J();I(6,"button",24);M("click",function(f){t(c);L(4).openEditor();return v(f.stopPropagation())});K(7,"mat-icon",25);J()}if(a&2){P();a=L(1);var d=P(2);z(2);D("email",
b);z();var e;D("name","triager")("anchor",a)("title","Triager")("value",b)("user",(e=T(5,6,d.triager$))!=null?e:void 0)}},jbb=function(a){if(a&1){var b=r();I(0,"button",26);M("click",function(){t(b);var c=P(3);return v(c.claim())});Q(1," Claim ");J()}},kbb=function(a){a&1&&(I(0,"div",10,2),E(2,ibb,8,8),S(3,"async"),Ag(4,jbb,2,0,"button",21),J());if(a&2){var b;a=P(2);z(2);F((b=T(3,1,a.triagerEmail$))?2:4,b)}},lbb=function(a,b){a&1&&(I(0,"span",45),Q(1,"Reporter:"),J(),K(2,"b-user-image",22)(3,"b-user-display",
51),I(4,"onedev-hovercard",null,5),K(6,"b-issue-person-card",52),J());if(a&2){a=L(5);var c=P();z(2);D("email",b);z();D("onedevHovercardTrigger",a)("model",c);z(3);D("email",b)}},mbb=function(a){a&1&&(E(0,lbb,7,4),S(1,"async"));if(a&2){var b;a=P(3);F((b=T(1,1,a.reporterEmail$))?0:-1,b)}},nbb=function(a){if(a&1){var b=r();I(0,"b-event-stream-header",53);M("click",function(c){t(b);return v(c.stopPropagation())});J()}},pbb=function(a){a&1&&K(0,"suggested-similar-issues",54);if(a&2){a=P();var b=P(2),c=
P();D("issueId",b)("similarIssueIds",a)("similarIssuesEnrichments",ih(4,obb))("limit",c.MAX_SIMILAR_ISSUES)}},qbb=function(a,b){a&1&&E(0,pbb,1,5,"suggested-similar-issues",54);a&2&&F(b.length?0:-1)},rbb=function(a,b){if(a&1){var c=r();I(0,"secondary-footer",56);M("cancelAction",function(){t(c);var d=P(4);return v(d.cancelAction())})("finalizeAction",function(d){t(c);var e=P(4);return v(e.finalizeSecondaryAction(d))});J()}a&2&&(a=P(4),D("needsInfoAutomaticChanges",b)("selectedTriageAction",a.selectedTriageAction))},
sbb=function(a){a&1&&(E(0,rbb,1,2,"secondary-footer",55),S(1,"async"));if(a&2){var b;a=P(3);F((b=T(1,1,a.needsInfoAutomaticChanges$))?0:-1,b)}},tbb=function(a,b){if(a&1){var c=r();I(0,"button",59);S(1,"async");M("click",function(){var d=t(c).$implicit,e=P(4),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);J()}a&2&&(a=b.$implicit,b=P(5),D("disabled",!T(1,2,b.hasAclToEdit$)),z(2),R(" ",a.displayAs," "))},vbb=function(a,b){if(a&1){var c=r();I(0,"triage-action-selector",57);M("onSelect",function(d){t(c);
var e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});J();Dg(1,tbb,3,4,"button",58,ubb)}a&2&&(a=P(4),D("phase",b),z(),Eg(a.PHASE_TO_ACTIONS.get(b)))},wbb=function(a){a&1&&(E(0,vbb,3,1),S(1,"async"));if(a&2){var b;a=P(3);F((b=T(1,1,a.issuePhase$))?0:-1,b)}},xbb=function(a,b){a&1&&(I(0,"div",27)(1,"div",28),K(2,"issue-title",29),S(3,"async"),I(4,"div",30)(5,"div")(6,"span",31),Q(7),S(8,"enumToHuman"),J()(),I(9,"div")(10,"span",32),K(11,"b-issue-priority-display",33),J()(),K(12,"mat-divider",
34)(13,"b-issue-hotlists",35),J()(),I(14,"b-expansion-panel",36),Fg(15,37),I(16,"div",38),K(17,"mat-icon",39),I(18,"h4",40),Q(19,"Description"),J(),E(20,mbb,2,3),S(21,"async"),J(),Gg(),K(22,"b-issue-description",41),J(),I(23,"b-expansion-panel",36,4),Fg(25,37),I(26,"div",42),K(27,"mat-icon",43),I(28,"h4",44),Q(29),S(30,"async"),J(),E(31,nbb,1,0,"b-event-stream-header",45),S(32,"async"),J(),Gg(),K(33,"b-event-stream",46),S(34,"async"),S(35,"async"),S(36,"async"),S(37,"async"),J(),I(38,"b-expansion-panel",
36),Fg(39,37),I(40,"div",42),K(41,"mat-icon",47),I(42,"h4",48),Q(43),S(44,"async"),J(),K(45,"mat-icon",49),S(46,"async"),J(),Gg(),E(47,qbb,1,1),S(48,"async"),J()(),I(49,"div",50),E(50,sbb,2,3)(51,wbb,2,3),J());if(a&2){var c,d,e,f,h;a=L(24);var k=P(),q=P();z(2);D("title",b.snapshot[0].title)("issueId",k)("componentId",b.snapshot[0].componentId)("hasAclToEdit",T(3,25,q.hasAclToEdit$));z(5);ch(T(8,27,b.snapshot[0].type));z(4);D("issuePriority",b.snapshot[0].priority);z();D("vertical",!0);z();D("issueId",
k);z();D("expanded",!0);z(6);F((c=T(21,29,q.reporterUser$))?20:-1,c);z(2);D("id",k);z();D("expanded",!0);z(6);R("Comments (",(d=T(30,31,q.comments$))==null?null:d.length,")");z(2);F(a.expanded&&((e=T(32,33,q.comments$))==null?0:e.length)?31:-1);z(2);D("issueId",k)("events",T(34,35,q.events$))("issueAccessLevel",T(35,37,q.accessLevel$))("showFullHistory",T(36,39,q.preferences.showFullHistory$));ng("data-will-inline-screenshots",T(37,41,q.enableInlineScreenshots$)?!0:null);z(5);D("expanded",!0);z(5);
R(" Similar issues (",(f=T(44,43,q.similarIssueIds$))==null?null:f.length,") ");z(2);var u;Pg("matTooltip","Similar issues found in query: ",(u=T(46,45,q.triageScope$))!=null?u:"");z(2);F((h=T(48,47,q.similarIssueIds$))?47:-1,h);z(3);F(q.displaySecondaryFooter?50:51)}},ybb=function(a,b){if(a&1){var c=r();I(0,"div",6)(1,"div",7)(2,"div",8);K(3,"b-issue-id-picker",9);E(4,dbb,5,1,"div");S(5,"async");E(6,ebb,5,1,"div");S(7,"async");E(8,gbb,5,2);S(9,"async");E(10,kbb,5,3,"div",10);S(11,"async");J();I(12,
"div",11)(13,"a",12);K(14,"mat-icon",13);J();I(15,"button",14);M("click",function(){t(c);var k=P();return v(k.triageService.closeSidebar())});K(16,"mat-icon",15);J()()();E(17,xbb,52,49);S(18,"async");J()}if(a&2){var d,e,f,h;a=P();z(3);D("issueId",b)("showCopyOptions",!1);z();F((d=T(5,9,a.issuePhaseDisplay$))?4:-1,d);z(2);F((e=T(7,11,a.issueSubphaseDisplay$))?6:-1,e);z(2);F((f=T(9,13,a.canonicalIssueId$))?8:-1,f);z(2);F(T(11,15,a.issuePhase$)===a.TriagePhase.NEW?10:-1);z(3);Pg("href","/issues/",b,
"",uf);z(4);F((h=T(18,17,a.issue$))?17:-1,h)}},Abb=function(a,b){if(a&1){var c=r();Kg(0);S(1,"async");Kg(2);S(3,"async");I(4,"button",1);M("click",function(){var e=t(c),f=Mg(0),h=P();return v(zbb(h,e,f))});Q(5);J()}if(a&2){a=P();Lg(T(1,3,a.hasUserClaimedIssues$));var d=T(3,6,a.buttonText$);z(4);D("ariaLabel",d+" "+b.length+" issues")("disabled",a.isSaving);z();ch(d)}},Bbb=function(a,b){a&1&&(I(0,"div",2)(1,"span",8),Q(2,"Phase:\u00a0"),J(),I(3,"span",9),Q(4),J()());a&2&&(z(4),ch(b))},Cbb=function(a,
b){a&1&&(I(0,"span",10),Q(1),J());a&2&&(a=b.$implicit,z(),ch(a))},Dbb=function(a){a&1&&(I(0,"div")(1,"span",8),Q(2,"Subphase:\u00a0"),J(),Dg(3,Cbb,2,1,"span",10,Cg),J());a&2&&(a=P(),z(3),Eg(a))},Ebb=function(a,b){a&1&&E(0,Dbb,5,0,"div");a&2&&F(b.length?0:-1)},Fbb=function(a){if(a&1){var b=r();I(0,"secondary-footer",12);M("cancelAction",function(){t(b);var c=P(3);return v(c.cancelAction())})("finalizeAction",function(c){t(b);var d=P(3);return v(d.finalizeSecondaryAction(c))});J()}a&2&&(a=P(3),D("selectedTriageAction",
a.selectedTriageAction))},Gbb=function(a,b){if(a&1){var c=r();I(0,"button",15);S(1,"async");M("click",function(){var d=t(c).$implicit,e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});Q(2);J()}a&2&&(a=b.$implicit,b=P(4),D("disabled",!T(1,2,b.hasAclToEdit$)),z(2),R(" ",a.displayAs," "))},Hbb=function(a){a&1&&K(0,"claim-issues-button")},Jbb=function(a){if(a&1){var b=r();I(0,"triage-action-selector",13);M("onSelect",function(d){t(b);var e=P(2),f=P();return v(f.openSecondaryActionFooter(d.key,
e))});J();Dg(1,Gbb,3,4,"button",14,Ibb);E(3,Hbb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);D("phase",a);z();Eg(c.PHASE_TO_ACTIONS.get(a));z(2);F(a===c.TriagePhase.NEW?3:-1)}},Kbb=function(a){a&1&&E(0,Fbb,1,1,"secondary-footer",11)(1,Jbb,4,2);a&2&&(a=P(2),F(a.displaySecondaryFooter?0:1))},Lbb=function(a){a&1&&(E(0,Kbb,2,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.issuePhase$))?0:-1,b)}},Mbb=function(a){a&1&&K(0,"b-formatted-date-time",2);a&2&&(a=P(),D("date",a.value))},Nbb=function(a){a&
1&&(Fg(0),Q(1,"---"),Gg())},Obb=function(a,b){if(a&1){var c=r();I(0,"div",4)(1,"mat-checkbox",8);M("change",function(){var d=t(c).$implicit,e=P();return v(e.changeSelection(d))})("click",function(d){t(c);return v(d.stopPropagation())});Q(2);J()()}a&2&&(a=b.$implicit,b=P(),D("title",b.getDisplayString(a)),z(),D("checked",!!b.valueMap.get(a))("indeterminate",b.valueMap.get(a)===null),z(),R(" ",b.getDisplayString(a)," "))},Qbb=function(a){if(a&1){var b=r();I(0,"input",9,1);M("keydown",function(c){t(b);
var d=P();c.key==="Enter"&&(Pbb(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){t(b);return v(c.stopPropagation())});gh("ngModelChange",function(c){t(b);var d=P();fh(d.filterValue,c)||(d.filterValue=c);return v(c)});J()}a&2&&(a=P(),D("type",a.type==="REPEATED_NUMERIC"?"number":"text"),eh("ngModel",a.filterValue),D("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},Rbb=function(a){a&1&&K(0,"mat-divider")},Sbb=function(a){if(a&1){var b=r();I(0,"div",
10);M("click",function(c){t(b);var d=P();c.stopPropagation();return v(d.addValue())});Q(1," Add ");J()}},Tbb=function(a){if(a&1){var b=r();I(0,"div")(1,"b-date-time-input",11);gh("valueChange",function(c){t(b);var d=P();fh(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return v(c)});J();I(2,"div",12);M("click",function(c){t(b);var d=P();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;
return v()});Q(3," Add ");J()()}a&2&&(a=P(),z(),eh("value",a.currentSelectedDate))},Ubb=function(a){if(a&1){var b=r();I(0,"div",6);Vd();I(1,"svg",7);K(2,"path",8);J();Wd();I(3,"input",9,0);M("input",function(){t(b);var c=L(4),d=P();return v(d.filterText$.next(c.value))});J()()}},Vbb=function(a){a&1&&Hg(0)},Xbb=function(a){if(a&1){var b=r();I(0,"div",12);M("click",function(){t(b);var d=P(2);return v(d.select(d.emptyOptionValue))});C(1,Vbb,1,0,"ng-container",13);J()}if(a&2){P();a=L(4);var c=P();D("option",
c.emptyOptionValue);ng("aria-selected",c.isSelected(c.emptyOptionValue));z();D("ngTemplateOutlet",a)("ngTemplateOutletContext",jh(4,Wbb,c.emptyOptionValue))}},Ybb=function(a){a&1&&Hg(0)},Zbb=function(a){if(a&1){var b=r();I(0,"div",12);M("click",function(){t(b);var e=P().$implicit,f=P(2);return v(f.select(e))});C(1,Ybb,1,0,"ng-container",13);J()}if(a&2){a=P().$implicit;P();var c=L(4),d=P();D("option",a);ng("aria-selected",d.isSelected(a));z();D("ngTemplateOutlet",c)("ngTemplateOutletContext",jh(4,
Wbb,a))}},$bb=function(a,b){a&1&&(Fg(0),C(1,Zbb,2,6,"div",10),Gg());a&2&&(a=b.$implicit,z(),D("ngIf",a))},acb=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P(2).$implicit,z(),R(" ",a," "))},bcb=function(a){a&1&&(I(0,"span",15),Q(1,"--"),J())},ccb=function(a){a&1&&(Fg(0),C(1,acb,2,1,"ng-container",14)(2,bcb,2,0,"ng-template",null,3,nh),Gg());if(a&2){a=L(3);var b=P().$implicit;z();D("ngIf",b!=null)("ngIfElse",a)}},dcb=function(a){a&1&&Hg(0)},ecb=function(a){a&1&&C(0,dcb,1,0,"ng-container",13);if(a&2){a=
P().$implicit;var b=P(2);D("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",jh(2,Wbb,a))}},fcb=function(a){a&1&&C(0,ccb,4,2,"ng-container",14)(1,ecb,1,4,"ng-template",null,2,nh);if(a&2){a=L(2);var b=P(2);D("ngIf",!b.optionTemplate)("ngIfElse",a)}},gcb=function(a,b){a&1&&(Fg(0),C(1,Xbb,2,6,"div",10)(2,$bb,2,1,"ng-container",11)(3,fcb,3,2,"ng-template",null,1,nh),Gg());a&2&&(a=b.ngIf,b=P(),z(),D("ngIf",b.includeEmptyOption),z(),D("ngForOf",a))},hcb=function(a){a&1&&Hg(0)},jcb=function(a){a&
1&&(Fg(0),C(1,hcb,1,0,"ng-container",11),Gg());a&2&&(a=P(),z(),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",jh(2,icb,a.value)))},kcb=function(a){a&1&&Hg(0)},lcb=function(a){a&1&&(Fg(0),C(1,kcb,1,0,"ng-container",11),Gg());a&2&&(a=P(2),z(),D("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",jh(2,icb,a.value)))},mcb=function(a){a&1&&C(0,lcb,2,4,"ng-container",7);if(a&2){a=P();var b=L(8);D("ngIf",a.optionTemplate)("ngIfElse",b)}},ncb=function(a){a&1&&(Fg(0),Q(1),Gg());
a&2&&(a=P(2),z(),R(" ",a.value," "))},ocb=function(a){a&1&&(I(0,"span",12),Q(1,"--"),J())},pcb=function(a){a&1&&C(0,ncb,2,1,"ng-container",7)(1,ocb,2,0,"ng-template",null,4,nh);if(a&2){a=L(2);var b=P();D("ngIf",b.value!=null)("ngIfElse",a)}},qcb=function(a){a&1&&(Vd(),I(0,"svg",13),K(1,"path",14),J())},rcb=function(a){a&1&&(I(0,"div"),Q(1," The selected issues have no custom fields in common. "),J())},scb=function(a){a&1&&(I(0,"span"),Q(1,"*"),J())},ucb=function(a){if(a&1){var b=r();I(0,"input",10);
gh("ngModelChange",function(c){t(b);var d=P(2).$implicit;fh(d.textValue,c)||(d.textValue=c);return v(c)});J()}a&2&&(a=P(2).$implicit,P(),eh("ngModel",a.textValue),ng("aria-labelledby",tcb(a)))},vcb=function(a){if(a&1){var b=r();I(0,"input",11);gh("ngModelChange",function(c){t(b);var d=P(2).$implicit;fh(d.numericValue,c)||(d.numericValue=c);return v(c)});J()}a&2&&(a=P(2).$implicit,P(),eh("ngModel",a.numericValue),ng("aria-labelledby",tcb(a)))},xcb=function(a){if(a&1){var b=r();I(0,"div")(1,"b-date-time-input",
12);M("valueChange",function(e){t(b);var f=P(2).$implicit;P();return v(f.dateValue=e?UEa(e):void 0)});J()()}if(a&2){a=P(2).$implicit;var c=P();z();var d;D("value",(d=wcb(a.dateValue))!=null?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",tcb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},zcb=function(a){if(a&1){var b=r();I(0,"onedev-single-select",13);gh("valueChange",function(d){t(b);var e=P(2).$implicit;fh(e.enumValue,d)||(e.enumValue=d);return v(d)});J()}if(a&
2){a=P(2).$implicit;P();eh("value",a.enumValue);var c;D("options",(c=a.allowedValue)!=null?c:ih(3,ycb))("labelledById",tcb(a))}},Bcb=function(a){if(a&1){var b=r();I(0,"b-bulk-repeated-field-picker",14);M("onSave",function(e){t(b);var f=P(2).$implicit,h=P();return v(Acb(h,f.customFieldId,e))});J()}if(a&2){a=P(2).$implicit;var c=P(),d;D("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",(d=a.allowedValue)!=null?d:ih(3,ycb))}},Ccb=function(a){a&
1&&E(0,ucb,1,2,"input",6)(1,vcb,1,2,"input",7)(2,xcb,2,4,"div")(3,zcb,1,4,"onedev-single-select",8)(4,Bcb,1,4,"b-bulk-repeated-field-picker",9);if(a&2){var b;a=P().$implicit;var c=P();F((b=c.getCustomFieldType(a))==="TEXT"?0:b==="NUMERIC"?1:b==="DATE"?2:b==="ENUM"?3:4)}},Dcb=function(a){if(a&1){var b=r();I(0,"span");Q(1," Multiple values ");J();I(2,"a",15);M("click",function(){t(b);var c=P().$implicit,d=P();return v(d.clearCustomFieldValue(c))});Q(3,"X");J()}},Ecb=function(a,b){a&1&&(I(0,"div",1)(1,
"div",4)(2,"label",5),Q(3),E(4,scb,2,0,"span"),J()(),E(5,Ccb,5,1)(6,Dcb,4,0),J());a&2&&(a=b.$implicit,P(),z(2),D("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),ng("id",tcb(a)),z(),R(" ",a.name," "),z(),F(a.required?4:-1),z(),F(a.hasMultipleValues?6:5))},Gcb=function(a){if(a&1){var b=r();I(0,"b-list-field",2);M("valuesChange",function(d){t(b);var e=P(2);return v(e.save.emit(d.values))});J()}if(a&2){a=P();var c=P();D("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",
c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",Fcb(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},Jcb=function(a){if(a&1){var b=r();I(0,"b-edit-field",3);M("valueChange",function(e){t(b);var f=P(2);return v(f.save.emit(e))});J()}if(a&2){a=P();var c=P(),d;D("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",
!c.field.required)("value",Hcb(c))("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=null?d:ih(12,Icb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},Kcb=function(a,b){a&1&&E(0,Gcb,1,10,"b-list-field",0)(1,Jcb,1,13,"b-edit-field",1);a&2&&F(b.isRepeated()?0:1)},Ncb=function(a,b){var c=new Lcb;Mcb(c,a,b);return c},Mcb=function(a,b,c){var d=Ua(b.snapshot),e=b.aggregatedData,f=b.userActivityStats;var h=b&&b.accessLimit?b.accessLimit.accessLevel:
void 0;a.accessLevel=h;a.id=b.issueId;a.issueId=b.issueId;a.trackerId=b.trackerId;d.componentId&&(a.componentId=d.componentId);c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?a.componentPath=c.componentPathInfo:a.componentPath=[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var k;a.isClosed=!((k=om.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Ak(d.reporterUser);a.assignee=Ak(d.assigneeUser);
a.assigneeEmail=Dk(d.assigneeUser);a.verifier=Ak(d.verifierUser);a.verifierEmail=Dk(d.verifierUser);a.cc=Bk(d.ccUsers);a.collaborator=Bk(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:0;a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?Math.round(e.resolvedTimeMicros/
1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;
a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;var q;a.lastModifier=Ak((q=b.aggregatedData)==null?void 0:q.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(c=l(c.componentPathInfo.allCustomField),
h=c.next();!h.done;h=c.next())h=h.value,a.customFieldMap[String(h.customFieldId)]=h,a.customFieldNameToIdMap[h.name.toLowerCase()]=h.customFieldId;if(d.customField)for(c=l(d.customField),h=c.next();!h.done;h=c.next())h=h.value,a.customFieldValueMap[String(h.customFieldId)]=h;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=d.sloEndTime;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;
d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel;a.descendantCount=b.descendantCount;a.openDescendantCount=b.openDescendantCount;a.oneDayViewCount=f?f.oneDayViewCount:0;a.sevenDayViewCount=f?f.sevenDayViewCount:0;a.thirtyDayViewCount=f?f.thirtyDayViewCount:0;a.escalationOwner=Ak(b.escalationOwner)},Pcb=function(a){if(a&1){var b=r();I(0,"div",0)(1,"div",1)(2,"div",2)(3,"label");Q(4," Custom fields ");J()();I(5,"button",3);M("click",function(){var c=t(b),d=P(2);return v(Ocb(d,
c))});Q(6,"Edit custom fields");J()()()}},Qcb=function(a){a&1&&(E(0,Pcb,7,0,"div",0),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.updatedIssueRows$))?0:-1,b)}},Rcb=function(a,b){if(a&1){var c=r();I(0,"b-custom-field-editor",5);M("save",function(d){var e=t(c).$implicit,f=P(2);return v(f.updateCustomField(e.customFieldId,d))});J()}a&2&&(a=b.$implicit,b=P(2),D("issue",b.editableIssue)("field",a))},Scb=function(a){a&1&&(Dg(0,Rcb,1,2,"b-custom-field-editor",4,Cg),S(2,"async"));a&2&&(a=P(),Eg(T(2,0,a.customFields$)))},
Tcb=function(a,b){b&&(b.helpText!=null&&(a.helpText=b.helpText),b.helpTextWithSelections!=null&&(a.helpTextWithSelections=b.helpTextWithSelections),b.shouldAutofocus!=null&&(a.shouldAutofocus=b.shouldAutofocus),b.autocompleteGroupingType!=null&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),b.autocompleteHeader!=null&&a.setAutocompleteHeader(b.autocompleteHeader),b.autocompleteMaxResultsBeforeScroll!=null&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),b.density!=
null&&a.setDensity(b.density),b.theme!=null&&a.setTheme(b.theme),b.showSuggestions!=null&&a.setShowSuggestions(b.showSuggestions))},Vcb=function(a){if(a&1){var b=r();I(0,"div",2,0);S(2,"async");M("peoplekitSearchBarSelectionChange",function(d){t(b);var e=P();e.singleUserMode?e.singleUserChange(d):e.selectionChange.emit(d);return v()})("peoplekitSearchBarEnterKeyDown",function(){t(b);var d=P();return v(d.searchBarEnterKeyDown.emit())});J()}if(a&2){a=P();wg("highlight-input",a.shouldHighlight);var c;
D("peoplekitSearchBarConfig",Ucb(a.autocompleteConfigService,(c=T(2,4,a.emails$))!=null?c:void 0));ng("aria-label",a.ariaLabel)}},Wcb=function(a){a&1&&K(0,"input",3);a&2&&(a=P(),qg("aria-label","",a.actionName," to ",a.title),D("bContactAutocomplete","MULTI"))},Ycb=function(a){if(a&1){var b=r();I(0,"b-peoplekit-searchbar",10,1);M("selectionChange",function(c){t(b);P().newlySelectedUsersString=Xcb(c);return v()})("searchBarEnterKeyDown",function(){t(b);var c=P(),d=L(1),e=L(2);return v(c.textPopupSubmit(d,
e))});J()}a&2&&(a=P(),qg("aria-label","",a.actionName," to ",a.title))},Zcb=function(a){a&1&&(I(0,"mat-error"),Q(1),J());a&2&&(a=P(),qg("aria-label","",a.title," error: ",a.invalidMessage),z(),R(" ",a.invalidMessage," "))},$cb=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);M("onAddItems",function(c){t(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){t(b);var c=P();return v(c.closeAddPopup())});J()()()}a&2&&(a=P(),
z(2),D("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},cdb=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);M("onAddItems",function(c){t(b);var d=P();adb(c,d.onRemoveUsers);bdb(d);return v()})("onCancel",function(){t(b);var c=P();return v(bdb(c))});J()()()}a&2&&(a=P(),z(2),D("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},ddb=function(a,b){if(a&1){var c=r();I(0,"b-hotlist-chip-smart",7);M("removeHotlist",function(){var d=t(c).$implicit,e=P(3);return v(e.removeHotlists([d]))});J()}a&2&&D("id",b.$implicit)},edb=function(a){a&1&&Dg(0,ddb,1,1,"b-hotlist-chip-smart",6,Cg);a&2&&(a=P(2),Eg(a.hotlistIdSet))},fdb=function(a){a&1&&(I(0,"div",5),Q(1,"Multiple hotlists selected"),J())},hdb=function(a){if(a&1){var b=r();I(0,"b-hotlist-recommendation-chip",9);S(1,"async");M("onAccept",
function(){t(b);var d=P().$implicit,e=P(3);return v(gdb(e,d))});J()}if(a&2){a=P().$implicit;var c=P(3);D("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",T(1,4,c.issueId$))("updateHotlistsInstantly",!1)}},idb=function(a,b){a&1&&E(0,hdb,2,6,"b-hotlist-recommendation-chip",8);if(a&2){b=b.$implicit;a=P(3);var c,d;var e=(b=b==null?void 0:(e=b.content)==null?void 0:(c=e.recommendedHotlist)==null?void 0:(d=c.hotlistId)==null?void 0:d.toString())&&!a.hotlistIdSet.has(b);
F(e?0:-1)}},kdb=function(a,b){a&1&&Dg(0,idb,1,1,null,null,jdb);a&2&&Eg(b)},mdb=function(a){if(a&1){var b=r();I(0,"div",0)(1,"div",1)(2,"label");Q(3,"Hotlists");J()();I(4,"div",2)(5,"button",3);M("click",function(){t(b);var d=P();return v(ldb(d))});K(6,"mat-icon",4);Q(7," Add ");J();E(8,edb,2,0)(9,fdb,2,0,"div",5);E(10,kdb,2,0);S(11,"async");J()()}if(a&2){var c;a=P();z(8);F(a.areAllHotlistsEqual?8:9);z(2);F((c=T(11,2,a.recommendations$))?10:-1,c)}},Ar=function(a){var b={};a=a.replace(/\r/g,"").split("\n");
for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");e<0||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b},Br=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},ndb=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},pdb=function(a){a=Wi(a);for(var b=0;b<odb.length;++b){var c=odb[b],d=Br(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,ndb(a,c))}return a},qdb=function(a){a=Wi(a);ndb(a,"X-Goog-Upload-Status");return a},sdb=function(a){if(a&
1){var b=r();I(0,"button",3);M("fileSelected",function(c){t(b);var d=P();return v(rdb(d,c))});K(1,"mat-icon",4);J()}a&2&&(a=P(),D("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},tdb=function(a){if(a&1){var b=r();I(0,"button",5);M("fileSelected",function(c){t(b);var d=P();return v(rdb(d,c))});K(1,"mat-icon",4);Q(2," Add attachments ");J()}a&2&&(a=P(),D("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},
udb=function(a){a&1&&(I(0,"span"),Q(1),S(2,"humanFileSize"),S(3,"humanFileSize"),J());if(a&2){a=P().$implicit;z();var b;dh(" ",T(2,2,a.transferredBytes)," of ",T(3,4,(b=a.size)!=null?b:0)," ")}},vdb=function(a){a&1&&(I(0,"span",6),Q(1),J());a&2&&(a=P().$implicit,z(),R(" ",a.errorMessage," "))},wdb=function(a){a&1&&(I(0,"span",6),Q(1),S(2,"humanFileSize"),J());if(a&2){a=P().$implicit;z();var b;R(" ",T(2,1,(b=a.size)!=null?b:0)," ")}},ydb=function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2);K(2,
"mat-icon",3);I(3,"span",4);Q(4);J();I(5,"span",5);E(6,udb,4,6,"span");E(7,vdb,2,1,"span",6);E(8,wdb,3,3,"span",6);J()();I(9,"button",7);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.cancel(d))});J()()}a&2&&(a=b.$implicit,b=P(2),D("ngClass",jh(8,xdb,a.state===b.uploadStates.ERROR)),z(3),D("matTooltip",a.name),z(),ch(a.name),z(2),F(a.state===b.uploadStates.UPLOADING?6:-1),z(),F(a.state===b.uploadStates.ERROR?7:-1),z(),F(a.state===b.uploadStates.COMPLETE?8:-1),z(),D("matTooltip",a.state===
b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),ng("aria-label","Remove attachment"+a.name))},zdb=function(a){a&1&&(I(0,"div",0),Dg(1,ydb,10,10,"div",1,Cg),J());a&2&&(a=P(),z(),Eg(a.uploads))},Dr=function(a){Cr.call(this,a||"all")},Bdb=function(a){Adb.call(this,a)},Cdb=function(a){this.action=a;this.wfv=!1},Ddb=function(a,b){Cdb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},Edb=function(a){Cdb.call(this,"visibility");this.visible=a},Fdb=function(a){a=a&&a.getWindow()||
window;return a.gadgets&&a.gadgets.rpc},Hdb=function(a,b){var c=b&&b.getWindow()||window;if(Fdb(b))a();else if(Gdb)Gdb.push(a);else var d=Gdb=[a],e=c.setInterval(function(){if(Fdb(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();Gdb=null}},100)},Idb=function(a,b,c){Er.call(this,a,b,c)},Ldb=function(a,b){var c=new Jdb(a);Fr(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void Kdb(a,e)},d).listen(a,"scroll",function(e){return void Kdb(a,e)},d)},Kdb=function(a,b){var c;a:{for(c=
b.target;c;){if(c.nodeType==1){var d=Gr(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!Mdb(a,c)||c.scrollHeight==c.clientHeight||b.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))<=1||b.deltaY<0&&c.scrollTop==0)b.preventDefault(),b.stopPropagation()},Mr=function(a,b,c,d,e,f,h,k,q){k=k===void 0?!1:k;q=q===void 0?!1:q;Er.call(this,void 0,void 0,void 0);Er.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);Ndb(a,"protocol");this.iframeManager_=
new Odb;this.targetId_=Pdb();this.rpcToken_=Pdb();a=Hr(a);Ir(a,"hostId");c=Ir(a,"parent");this.useGapi_=!q&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));k&&Jr(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=Ir(Hr(a.toString()),"hostId"),Qdb||(Qdb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
d=!Qdb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(h=this.gadgetsDomHelper_,b=Ir(Hr(this.url_),"grugl")=="true"?Rdb:Sdb,Fdb(h)||(h=h||Kp(document),d=h.createElement("SCRIPT"),gi(d,b),d.type="text/javascript",h.document_.body.appendChild(d)));a=a.toString();b=null;h=a.indexOf("/picker?");h>-1?b=a.substring(0,h+8-1):Aa(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?
(a=this.buttons_,a.element_=this.buttonEl_,a.render()):rna(this.buttonEl_,Kr),Lr(this.buttonEl_,!!this.buttons_))},Tdb=function(a){if(a&1){var b=r();I(0,"div",0);K(1,"mat-icon",1);I(2,"div",2);Q(3," Comment and vote +1 on this issue to increase visibility ");J();I(4,"div",3)(5,"button",4);M("click",function(c){t(b);var d=P();return v(d.onClick(c))});Q(6,"Comment and vote +1");J()()()}a&2&&(z(),D("matTooltip","The +1 button is located in the top right corner of the issue details page"))},Udb=function(a){if(a&
1){var b=r();I(0,"b-plus-one-comment-callout",7);M("onSubmitComment",function(c){t(b);P().onSubmit.emit(c);return v()});J()}a&2&&(a=P(),D("isPlusOneText",a.comment.value.trim()==="+1"))},Vdb=function(a){if(a&1){var b=r();I(0,"b-drive-attachment",11);M("onPickDoc",function(c){t(b);var d=P(2);d.comment&&(d.comment.value=d.comment.formattingMode==="MARKDOWN"?d.comment.value+("\n\n["+c.name+"]("+c.url+")"):d.comment.value+("\n\n"+c.name+" - "+c.url));return v()})("onCloneBlob",function(c){t(b);var d=
P(2);return v(d.addUpload(c))});J()}a&2&&(a=P(2),D("disabled",a.attachmentsDisabled))},Wdb=function(a){if(a&1){var b=r();I(0,"button",14);M("click",function(){t(b);var c=P(3);return v(c.onRestrict.emit())});K(1,"mat-icon",15);J()}a&2&&(a=P(3),D("disabled",a.attachmentsDisabled))},Xdb=function(a){if(a&1){var b=r();I(0,"button",16);M("click",function(){t(b);var c=P(3);return v(c.onRestrict.emit())});K(1,"mat-icon",15);Q(2);J()}a&2&&(a=P(3),z(2),R(" ",a.getRestrictedLabel()," "))},Ydb=function(a){a&
1&&(I(0,"div",10),E(1,Wdb,2,1,"button",12)(2,Xdb,3,1,"button",13),J());a&2&&(a=P(2),z(),F(a.isRestricted()?2:1))},Zdb=function(a){if(a&1){var b=r();I(0,"div",6);Og(1,2,[1,"goog-inline-block"]);I(2,"b-attachment-selector",8);M("onSelect",function(c){t(b);var d=P();return v(d.uploadFile(c))});J();E(3,Vdb,1,1,"b-drive-attachment",9);E(4,Ydb,3,1,"div",10);J()}a&2&&(a=P(),z(2),D("disabled",a.attachmentsDisabled),z(),F(a.currentTracker?-1:3),z(),F(a.showRestrictionOptions?4:-1))},$db=function(a){a&1&&(I(0,
"div"),K(1,"b-live-preview",17),J());a&2&&(a=P(),z(),D("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},aeb=function(a){a&1&&(I(0,"p",6),Q(1),I(2,"a",14),Q(3," Learn more "),J()());a&2&&(a=P(4),z(),R(" Your comment contains restricted words: ",Sq(a.bannedWordsChecker),". Review your comment before posting. "))},beb=function(a){if(a&1){var b=r();I(0,"div",7)(1,"b-recaptcha",15);M("onUpdate",function(c){t(b);var d=P(4);return v(d.recaptchaResponse$.next(c))});
J()()}},ceb=function(a){a&1&&Hg(0)},deb=function(a){a&1&&C(0,ceb,1,0,"ng-container",16);a&2&&(P(4),a=L(3),D("ngTemplateOutlet",a))},feb=function(a){if(a&1){var b=r();I(0,"span")(1,"mat-checkbox",17);S(2,"async");S(3,"async");M("change",function(){t(b);var c=P(4);return v(eeb(c))});Q(4," CC Me ");J()()}a&2&&(a=P(4),z(),D("checked",!!T(2,2,a.autoCcOnComment$))("disabled",!!T(3,4,a.isCurrentUserCCd$)))},geb=function(a){a&1&&(I(0,"mat-checkbox",18),Q(1," CC Me "),J());a&2&&D("checked",!0)("disabled",
!0)},heb=function(a){a&1&&(I(0,"span",10),E(1,geb,2,2,"mat-checkbox",18),S(2,"async"),J());a&2&&(a=P(4),z(),F(T(2,1,a.isCurrentUserCCd$)?1:-1))},ieb=function(a){if(a&1){var b=r();I(0,"b-markdown-toggle",19);M("change",function(c){t(b);var d=P();return v(d.formattingMode=c)});J()}a&2&&(a=P(),D("initialValue",a.formattingMode))},jeb=function(a){a&1&&(K(0,"b-access-limits-chip",12),S(1,"async"));a&2&&(a=P(4),D("issueId",a.issueId)("componentId",a.componentIdString)("accessLimitLevel",T(1,3,a.issueAccessLimitLevel$)))},
keb=function(a,b){if(a&1){var c=r();I(0,"b-comment-box",5,1);S(2,"async");S(3,"async");S(4,"async");S(5,"async");S(6,"async");S(7,"async");M("onHotkey",function(){t(c);var u=L(1);return v($0a(u,"editpage-hotkey"))})("onChange",function(){t(c);var u=P(3);return v(u.saveCommentDraft())})("onFocusEvent",function(){t(c);var u=P(3);return v(u.wasFocused=!0)})("onSubmit",function(u){t(c);var A=P(3);return v(A.submitCommentBox(u))})("onRestrict",function(){t(c);var u=P(3);return v(u.showNewContentJudgementDialog())})("onPlusOneTextEntered",
function(u){t(c);var A=P(3);return v(A.isPlusOneText$.next(u))});E(8,aeb,4,1,"p",6);S(9,"async");E(10,beb,2,0,"div",7);S(11,"async");I(12,"div",8);E(13,deb,1,1,"ng-container");I(14,"div",9);Og(15);E(16,feb,5,6,"span");S(17,"async");S(18,"async");E(19,heb,3,3,"span",10);S(20,"async");S(21,"async");E(22,ieb,1,1,"b-markdown-toggle",11);S(23,"async");E(24,jeb,2,5,"b-access-limits-chip",12);S(25,"async");J();K(26,"b-issue-visibility-chip",13);J()()}if(a&2){a=P(2);var d=P(),e,f,h,k,q;D("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",
!0)("issueId",a.issueId)("comment",b)("componentId",a.componentId)("placeholder",(e=T(2,20,d.commentPlaceholderText$))!=null?e:void 0)("judgementForNewContent",(f=T(3,22,d.judgementForNewContent$))!=null?f:void 0)("audience",(h=T(4,24,d.audience$))!=null?h:void 0)("disabled",T(5,26,d.commentBoxEnabled$)===!1)("isPlusOneCalloutEnabled",(k=T(6,28,d.isPlusOneCalloutEnabled$))!=null?k:!1)("warn",(q=T(7,30,d.bannedWordsChecker.showWarning$))!=null?q:!1)("isLiteralModeSupported",!0);z(8);F(T(9,32,d.bannedWordsChecker.showWarning$)?
8:-1);z(2);F(T(11,34,d.showRecaptcha$)?10:-1);z(3);F(d.showActionsAfterPreview?-1:13);z(3);F(!T(17,36,d.isCurrentUserCCd$)&&T(18,38,d.hasAclToEdit$)?16:-1);z(3);F(T(20,40,d.isCurrentUserCCd$)||!T(21,42,d.hasAclToEdit$)?19:-1);z(3);F(T(23,44,d.hasAclToComment$)?22:-1);z(2);F(T(25,46,d.isAccessLimited$)?24:-1);z(2);D("issueId",d.issueId)}},leb=function(a){a&1&&Hg(0)},meb=function(a){a&1&&C(0,leb,1,0,"ng-container",16);a&2&&(P(3),a=L(3),D("ngTemplateOutlet",a))},oeb=function(a){a&1&&(I(0,"h3",2),Q(1,
"Add comment"),J(),I(2,"div",3),S(3,"async"),E(4,keb,27,48,"b-comment-box",4),S(5,"async"),J(),E(6,meb,1,1,"ng-container"));if(a&2){var b;a=P(2);z(2);D("ngClass",kh(7,neb,T(3,3,a.empty$),!a.wasFocused));z(2);F((b=T(5,5,a.comment$))?4:-1,b);z(2);F(a.showActionsAfterPreview?6:-1)}},peb=function(a,b){a&1&&E(0,oeb,7,10);a&2&&F(b.isDeleted?-1:0)},qeb=function(a){if(a&1){var b=r();I(0,"b-button",21);S(1,"async");S(2,"async");S(3,"async");M("onAction",function(d){t(b);var e=P(2);return v(e.submitCommentBox(d))})("click",
function(d){t(b);var e=P(2);return v(e.submitCommentBox(d))});Q(4);S(5,"async");J()}if(a&2){a=P(2);var c;D("format",(c=T(1,4,a.commentButtonStyle$))!=null?c:"fill")("disabled",T(2,6,a.commentButtonEnabled$)===!1)("color",T(3,8,a.bannedWordsChecker.showWarning$)?"warn":"primary");z(4);R(" ",T(5,10,a.bannedWordsChecker.showWarning$)?"Comment Anyway":"Comment"," ")}},reb=function(a){a&1&&E(0,qeb,6,12,"b-button",20);a&2&&(a=P(),F(a.showCommentButton?0:-1))},seb=function(a){a&1&&(I(0,"span"),Q(1),J());
a&2&&(a=P(3),z(),R(" ",a.removeSelfActionDescription," "))},teb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(3),z(),R(" ",a.includeSelfActionDescription," "))},ueb=function(a){if(a&1){var b=r();I(0,"div",20);M("click",function(){t(b);var c=P(2);return v(c.userInclusionToggle.emit())})("keydown.enter",function(c){t(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){t(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();
return v()});E(1,seb,2,1,"span");E(2,teb,2,1,"span");J()}a&2&&(a=P(2),wg("disabled",!!a.isSaving),D("matTooltip",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),ng("aria-disabled",!!a.isSaving)("aria-label",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),z(),F(a.isCurrentUserInCollection?1:-1),z(),F(!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?2:-1))},veb=function(a){a&1&&(I(0,"div",18),
E(1,ueb,3,7,"div",19),J());a&2&&(a=P(),z(),F(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},web=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",21);M("onAddItems",function(c){t(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){t(b);var c=P();return v(c.closeAddPopup(!0))});J()()()}a&2&&(a=P(),z(2),D("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},xeb=function(a){a&1&&(K(0,"b-user-membership-chip",23),S(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;D("user",b.getUser(a))("email",a)("teamId",(c=T(1,5,b.teamId$))!=null?c:"")("enableSmallChip",!0)("enableGroupIcon",!0)}},yeb=function(a){a&1&&K(0,"b-icon",24)},zeb=function(a){a&1&&(I(0,"b-person-hovercard",25),Q(1),J());a&2&&(a=P().$implicit,D("email",a),z(),R(" ",a," "))},Beb=function(a){if(a&1){var b=r();I(0,"button",27);S(1,"async");M("click",
function(){t(b);var c=P(2);return v(c.toggleAccessLimits.emit())});K(2,"b-icon",28);S(3,"async");J()}a&2&&(a=P(2),D("disabled",!T(1,2,a.hasAclToAdmin$)),z(2),D("ngClass",jh(6,Aeb,!T(3,4,a.hasAclToAdmin$))))},Ceb=function(a){if(a&1){var b=r();I(0,"button",30,4);M("click",function(){t(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});J()}if(a&2){a=P(2).$implicit;var c=P();qg("aria-label","Remove ",a," from ",c.title);D("matTooltip","Remove item")}},Deb=function(a){a&1&&E(0,Ceb,2,4,"button",29);
a&2&&(a=P(2),F(a.isAllowedToEditCollection?0:-1))},Eeb=function(a,b){a&1&&(I(0,"div",10)(1,"div",22),E(2,xeb,2,7,"b-user-membership-chip",23),E(3,yeb,1,0,"b-icon",24),S(4,"async"),E(5,zeb,2,2,"b-person-hovercard",25),J(),E(6,Beb,4,8,"button",26),S(7,"async"),Ag(8,Deb,1,1),J());if(a&2){var c,d;a=b.$implicit;b=P();z(2);F(b.enableTeamAnnotations?2:-1);z();F(!b.enableTeamAnnotations&&((c=T(4,4,b.groups$))==null?0:c.has(a))?3:-1);z(2);F(b.enableTeamAnnotations?-1:5);z();F(b.toggleAccessLimits.observed&&
((d=T(7,6,b.groups$))==null?0:d.has(a))?6:8)}},Feb=function(a){a&1&&(I(0,"button",12),Q(1,"Add "),J());if(a&2){a=P();var b=L(3);pg("aria-label","Add item to ",a.title);Pg("dialogLabel","Add item to ",a.title);Pg("matTooltip","Add item to ",a.title);D("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},Geb=function(a){a&1&&Hg(0)},Heb=function(a,b){return{originX:a,originY:b}},Ieb=function(a,b){return{overlayX:a,overlayY:b}},Keb=function(a){a&1&&Hg(0,9);if(a&2){a=P(2);P();var b=L(5);D("ngTemplateOutlet",
b)("ngTemplateOutletContext",jh(2,Jeb,a))}},Leb=function(a){a&1&&(I(0,"div",5),K(1,"mat-icon",6),I(2,"div",7),Hg(3,8),E(4,Keb,1,4,"ng-container",9),J()());if(a&2){a=P(2);var b=L(3);z(3);D("ngTemplateOutlet",b);z();F(a.isIssueSummaryExpanded?4:-1)}},Meb=function(a,b){a&1&&E(0,Leb,5,2,"div",5);a&2&&(a=P(),F(b===a.GENERATING||b===a.SUMMARY_VISIBLE?0:-1))},Neb=function(a){a&1&&(I(0,"div"),Q(1," AI-generated summaries may contain inaccurate or offensive information that doesn't represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),
J())},Oeb=function(a){a&1&&K(0,"mat-icon",15)},Peb=function(a){a&1&&K(0,"mat-icon",16)},Qeb=function(a){if(a&1){var b=r();I(0,"span",10)(1,"h4",11);Q(2," AI-generated summary ");I(3,"xap-bubble",12)(4,"xap-icon-trigger");K(5,"mat-icon",13);J();C(6,Neb,2,0,"ng-template",null,4,nh);J()();I(8,"button",14);M("click",function(){t(b);var d=P();return v(d.isIssueSummaryExpanded=!d.isIssueSummaryExpanded)});E(9,Oeb,1,0,"mat-icon",15)(10,Peb,1,0,"mat-icon",16);J()()}if(a&2){a=L(7);var c=P();z(3);D("panelTemplate",
a);z(5);D("matTooltipShowDelay",1E3);ng("aria-expanded",c.isIssueSummaryExpanded);z();F(c.isIssueSummaryExpanded?9:10)}},Reb=function(a){a&1&&K(0,"b-spinner")},Teb=function(a,b){a&1&&Hg(0,9);a&2&&(P(3),a=L(9),D("ngTemplateOutlet",a)("ngTemplateOutletContext",jh(2,Seb,b)))},Ueb=function(a){a&1&&(E(0,Teb,1,4,"ng-container",9),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.summary$))?0:-1,b)}},Veb=function(a,b){a&1&&E(0,Reb,1,0,"b-spinner")(1,Ueb,2,3);a&2&&(a=b.stage,b=P(),F(a===b.GENERATING?0:a===
b.SUMMARY_VISIBLE?1:-1))},Web=function(a){a&1&&K(0,"b-markdown-format-presenter",17);a&2&&(a=P().summary,D("content",a.formattedSummary))},Xeb=function(a){a&1&&(I(0,"div",18),Q(1),J());a&2&&(a=P().summary,z(),R(" ",a.summary," "))},Yeb=function(a,b){a&1&&E(0,Web,1,1,"b-markdown-format-presenter",17)(1,Xeb,2,1,"div",18);a&2&&F(b.summary.formattedSummary?0:1)},$eb=function(a){if(a&1){var b=r();Hg(0,9);I(1,"div",19);K(2,"span",20);I(3,"div",21)(4,"button",22);M("click",function(){t(b);var e=P().summary,
f=P();return v(f.copySummary(e))});K(5,"mat-icon",23);J();I(6,"button",24);M("click",function(){t(b);var e=P().summary,f=P();return v(f.openFeedbackDialog(e))});K(7,"mat-icon",25);J();I(8,"button",26);M("click",function(){t(b);var e=P().summary,f=P();return v(f.trackThumbsUp(e))});K(9,"mat-icon",27);J();I(10,"button",28);M("click",function(){t(b);var e=P().summary,f=P();return v(f.trackThumbsDown(e))});K(11,"mat-icon",29);J()()()}if(a&2){a=P().summary;var c=P(),d=L(7);D("ngTemplateOutlet",d)("ngTemplateOutletContext",
jh(6,Seb,a));z(8);D("disabled",c.hasReacted);z();D("ngClass",jh(8,Zeb,c.thumbsUpClicked));z();D("disabled",c.hasReacted);z();D("ngClass",jh(10,Zeb,c.thumbsDownClicked))}},afb=function(a){if(a&1){var b=r();I(0,"div",19)(1,"div",30);Q(2," Issue can not be summarized for now. ");J();I(3,"div",21)(4,"button",31);M("click",function(){t(b);var c=P().summary,d=P();return v(d.openFeedbackDialog(c))});K(5,"mat-icon",32);J()()()}},bfb=function(a,b){a&1&&E(0,$eb,12,12)(1,afb,6,0,"div",19);a&2&&F(b.summary.summary?
0:1)},cfb=function(a,b){a&1&&K(0,"b-user-image",0);a&2&&D("email",b.$implicit)},dfb=function(a,b){if(a&1){var c=r();I(0,"button",2);M("click",function(){t(c);var d=P(2);return v(d.limit+=d.LIMIT_INCREMENT)});Q(1);J()}a&2&&(Pg("title","",b," more participant(s). Click to show."),z(),R("",b," more"))},efb=function(a){a&1&&E(0,dfb,2,3,"button",1);if(a&2){var b;a=P();F((b=a.emails.length-a.limit)?0:-1,b)}},gfb=function(a){a&1&&(I(0,"a",3),Q(1),J());a&2&&(a=P(2),D("href",a.makeCritiqueUrl(ih(2,ffb),a.pending),
uf),z(),R("(",a.pending.length," pending)"))},hfb=function(a,b){a&1&&(I(0,"div",0),K(1,"img",1),Q(2," \u00a0 "),I(3,"a",2),Q(4),J(),Q(5," \u00a0 "),E(6,gfb,2,3,"a",3),J());a&2&&(a=P(),z(3),D("href",a.makeCritiqueUrl(a.submitted,a.pending),uf),z(),R("",b," CLs"),z(2),F(a.pending.length>0?6:-1))},ifb=function(a){a&1&&(I(0,"a",2),Q(1),J());a&2&&(a=P(2),D("routerLink",a.searchPageUrl),z(),R(" ",a.count," Issues "))},jfb=function(a){a&1&&E(0,ifb,2,2,"a",2);a&2&&(a=P(),F(a.count!=null?0:-1))},kfb=function(a){a&
1&&Q(0);a&2&&(a=P(),R(" ",a.count," Issues "))},lfb=function(){},mfb=function(a){a&1&&(I(0,"span",1),Vd(),I(1,"svg",2),K(2,"path",3),J()())},nfb=function(a){a&1&&(I(0,"div",0),K(1,"img",2),J());a&2&&(a=P(2),z(),D("src",a.SPACE_EMPTY_STATE,uf))},ofb=function(a,b){a&1&&(I(0,"mat-panel-title"),Q(1),J());a&2&&(a=P().$index,z(),R(" ",b[a]," "))},pfb=function(a){a&1&&K(0,"mat-panel-title",3)},qfb=function(a,b){a&1&&(I(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),E(2,ofb,2,1,"mat-panel-title"),
S(3,"async"),Ag(4,pfb,1,0,"mat-panel-title",3),I(5,"mat-panel-description"),Q(6),J()(),K(7,"b-issues-table",4),J());if(a&2){var c;a=b.$implicit;b=P(3);z(2);F((c=T(3,5,b.titles$))?2:4,c);z(4);R("",a.length," issues");z();D("issueIds",a)("tableColumns",b.tableColumns)("options",b.tableOptions)}},rfb=function(a){a&1&&(I(0,"div",1),Dg(1,qfb,8,7,"mat-expansion-panel",null,Cg),J());a&2&&(a=P(),z(),Eg(a))},sfb=function(a,b){a&1&&E(0,nfb,2,1,"div",0)(1,rfb,3,0,"div",1);a&2&&F(b.length===0?0:1)},tfb=function(a){a&
1&&(I(0,"div",2,1)(2,"div",5)(3,"span",6),Q(4),J()()());a&2&&(a=P(),z(4),ch(a.valueIndicatorText))},ufb=function(a,b){a&1&&K(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);xg(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");vg("transform",c._calcTickMarkTransform(b))}},vfb=function(a){a&1&&Dg(0,ufb,1,4,"div",8,Bg);a&2&&(a=P(2),Eg(a._tickMarks))},wfb=function(a){a&1&&(I(0,"div",6,1),E(2,vfb,2,0),J());a&2&&(a=P(),z(2),F(a._cachedWidth?2:-1))},xfb=function(a){a&1&&K(0,"mat-slider-visual-thumb",
7);a&2&&(a=P(),D("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},yfb=function(a){a&1&&(I(0,"span"),Q(1,"All Components"),J())},zfb=function(a){a&1&&(I(0,"span"),Q(1,"Selected Components"),J())},Afb=function(a,b){if(a&1){var c=r();I(0,"button",19);M("click",function(d){var e=t(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});I(1,"mat-checkbox",27);Q(2);J()()}a&2&&(a=b.$implicit,b=P(),z(),D("checked",b.selectComponents$.has(a)),z(),R(" ",
a.name," "))},Bfb=function(a,b){if(a&1){var c=r();I(0,"button",19);M("click",function(){var d=t(c).$implicit;P().selectedDateRangeFilter$.next(d);return v()});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a.displayAs," "))},Cfb=function(a,b){if(a&1){var c=r();I(0,"div",6)(1,"a",7);Q(2);S(3,"async");J();I(4,"button",8);M("click",function(){var e=t(c),f=P(),h=P();Nr(h.router,Fq.viewTriage.makeHref(f,e,Or[h.phase$.value]));return v()});Q(5," View issues ");K(6,"mat-icon",9);J()()}if(a&2){a=P();var d=P();z();
D("href",d.ROUTES.viewTriage.makeHref(a,b,d.phaseToUrlSlug[d.phase$.value]),uf);z();R(" ",T(3,2,d.heading$)," ")}},Dfb=function(a){a&1&&(E(0,Cfb,7,4,"div",6),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.triageId$))?0:-1,b)}},Efb=function(a,b){a&1&&Q(0);a&2&&(a=P(),dh(" ",b.length,"",b.length===a.FETCH_SIZE?"+":""," "))},Ffb=function(a){a&1&&Q(0," ... ")},Gfb=function(a,b){a&1&&K(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=og(r(),"height: ",a*100,"%;");Mka(Kka,Lka,a,!1);Rg("title","Modified ",
b," days ago: ",c[b]," Issues")}},Hfb=function(a,b){a&1&&Dg(0,Gfb,1,6,"i",10,Bg);a&2&&Eg(b)},Ifb=function(a){a&1&&(E(0,Hfb,2,0),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.ratioDaysOld$))?0:-1,b)}},Kfb=function(a){return(Jfb-a/1E3)/864E5},Nfb=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(Lfb).length;var c=a.filter(function(d){return!Lfb(d)}).filter(Mfb).length;return{filters:b,text:a.length-b-c,resourceIds:c}},
Mfb=function(a){a=String(a);a=a.replace("http://b/","");a=a.replace("https://b/","");a=a.replace("b/","");a=a.trim();return a.length<3?!1:Ofb(a)},Lfb=function(a){return!!a.match(/\w:\w/g)},Pfb=function(a,b){a&1&&(I(0,"span",5),Q(1),J());a&2&&(D("title",b.description),z(),ch(b.name))},Qfb=function(a){a&1&&(I(0,"code",6),Q(1),S(2,"async"),J());a&2&&(a=P(),z(),ch(T(2,1,a.id$)))},Rfb=function(a,b){a&1&&(I(0,"div",7),K(1,"phase-card-contents",8)(2,"phase-card-contents",8)(3,"phase-card-contents",8)(4,
"phase-card-contents",8)(5,"phase-card-contents",8),J());if(a&2){a=P();var c=P();z();D("phase",c.TriagePhase.NEW)("teamId",a)("triageId",b);z();D("phase",c.TriagePhase.CONFIRMED)("teamId",a)("triageId",b);z();D("phase",c.TriagePhase.IN_PROGRESS)("teamId",a)("triageId",b);z();D("phase",c.TriagePhase.FIXED)("teamId",a)("triageId",b);z();D("phase",c.TriagePhase.WONT_FIX)("teamId",a)("triageId",b)}},Sfb=function(a){a&1&&(E(0,Rfb,6,15,"div",7),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.triageId$))?
0:-1,b)}},Tfb=function(a){if(!a.unlinkifiedComment)return Nj("Can't getClMetadata from an event with no unlinkifiedComment",a),{};if(zya(a))if(sm(a)){var b=a.unlinkifiedComment;var c=b.trim().split("\n");if(a.formattingMode==="MARKDOWN"){var d,e;var f=(e=(d=c[5])==null?void 0:d.trim())!=null?e:"";var h;c=(h=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==null?void 0:h[1];var k;var q=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var u,A;f=(A=(u=c[7])==null?void 0:u.trim())!=null?
A:"";var G,H;c=(H=(G=c[c.length-1])==null?void 0:G.trim())!=null?H:"";var N;q=(N=b.match(/^Author: .* <(.+)>/m))==null?void 0:N[1]}f||Nj("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||Nj("failed to parse a link from GitWatcher comment, which is unexpected.",b);q?q=q.endsWith("@google.com")?q.split("@")[0]:q:Nj("failed to parse an author from GitWatcher comment, which is unexpected.",b);b={author:q,title:f,link:c,reviewer:void 0,delta:void 0}}else b={};else{k=a.unlinkifiedComment;
h=k.trim().split("\n");var O,U;N=(U=(O=h[0])==null?void 0:O.trim())!=null?U:"";var da;h=(da=h[2])==null?void 0:da.trim();G=(q=N.match(/^Change\s+(\d+)/))==null?void 0:q[1];G==null&&Nj("failed to parse an id from Critique comment, which is unexpected.",k);N=(c=N.match(/^Change.*by (\S+)@/))==null?void 0:c[1];N==null&&Nj("failed to parse an author from Critique comment, which is unexpected.",k);c=(f=k.match(/[\^\s]R=(\S+)/))==null?void 0:f[1];f=(b=k.match(/[\^\s]DELTA=(\d+)/))==null?void 0:b[1];b={id:Qk(G),
author:N,title:h,reviewer:c,delta:Qk(f),link:"cl/"+G}}return b},Ufb=function(a){var b;return(b=Tfb(a).id)!=null?b:0},Vfb=function(a){var b;return(b=Tfb(a).link)!=null?b:""},Wfb=function(a){return[].concat(p(a.preDiffs),p(a.postDiffs)).map(function(b){return"Changed "+(b.displayName||b.name)+" "+(b.newValue?"to "+b.newValue:"")}).join("\n")},Yfb=function(a){if(a==null)return"";var b,c,d,e,f=(e=(d=(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)!=null?d:(c=a.userPerformingActionUser)==null?
void 0:c.obfuscatedEmailAddress)!=null?e:"";if(rm(a)||sm(a)){if(a=Tfb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f==="product-feedback-gathering@prod.google.com")return Xfb(a,"reporter")||f;return f},Zfb=function(a,b){var c,d,e;return(e=[].concat(p((c=a.preDiffs)!=null?c:[]),p((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.oldValue},Xfb=function(a,b){var c,d,e;return(e=[].concat(p((c=a.preDiffs)!=null?c:[]),p((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===
b}))==null?void 0:e.newValue},$fb=function(a){if(a==null)return"default";if(mm(a)&&a.commentNumber===1)return"create";if(rm(a)||sm(a))return"changelist";var b,c=(b=a.preDiffs)!=null?b:[],d;b=(d=a.postDiffs)!=null?d:[];c=new Set([].concat(p(c),p(b)).map(function(f){return f.name}));if(c.has("statusUpdate"))return"statusUpdate";if(c.has("assignee")){var e;c=(e=a.userPerformingActionUser)==null?void 0:e.emailAddress;e=Xfb(a,"assignee");a=Zfb(a,"assignee");return c===e?"self-assign":c===a&&e==="<none>"?
"self-unassign":e==="<none>"?"unassign":"assignee"}return c.has("status")?"status":c.has("priority")?"priority":mm(a)?"comment":c.has("component")?"component":"default"},agb=function(a){a&1&&(Q(0," created "),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",a.event.modifiedDate))},bgb=function(a){a&1&&K(0,"changelist-link-plain",3);a&2&&(a=P(2),D("id",a.getChangelistNumber(a.event)))},
cgb=function(a){a&1&&(I(0,"a",4),Q(1),J());a&2&&(a=P(2),D("href",a.getLink(a.event),uf),z(),ch(a.getLink(a.event)))},dgb=function(a,b){a&1&&(Q(0," \u2014 "),I(1,"span",5),Q(2),J());a&2&&(z(),D("title",b),z(),ch(b))},egb=function(a){a&1&&(Q(0," submitted "),E(1,bgb,1,1,"changelist-link-plain",3),E(2,cgb,2,2,"a",4),K(3,"b-formatted-date-time",2),E(4,dgb,3,2));if(a&2){var b;a=P();z();F(a.isCritiqueComment(a.event)?1:-1);z();F(a.isFullGerritComment(a.event)?2:-1);z();D("timestamp",a.event.modifiedDate);
z();F((b=a.getClMetadata(a.event).title)?4:-1,b)}},fgb=function(a){a&1&&(Q(0," commented on "),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",a.event.modifiedDate))},ggb=function(a){a&1&&(Q(0," set priority "),K(1,"b-issue-priority-display",6),Q(2," on "),I(3,"b-issue-reference-widget",1),Q(4),J(),K(5,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("issuePriority",
a.toIssuePriority(a.getNewDiffValue(a.event,"priority"))),z(2),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",a.event.modifiedDate))},igb=function(a,b){a&1&&(Q(0," set status "),I(1,"span"),Q(2),J(),Q(3," on "));a&2&&(a=P(2),z(),zg("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b]),z(),R(" ",b," "))},jgb=function(a){a&1&&(E(0,igb,4,4),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2));if(a&2){var b;a=P();F((b=a.getNewDiffValue(a.event,
"status"))?0:-1,b);z();D("href",Hq(a.event.issueId))("issueId",a.event.issueId);z();R("b/",a.event.issueId);z();D("timestamp",a.event.modifiedDate)}},kgb=function(a,b){a&1&&(Q(0," \u2014 "),I(1,"span",7),Q(2),J());a&2&&(z(),D("title",b),z(),ch(b))},lgb=function(a){a&1&&(Q(0," set status update on "),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2),E(4,kgb,3,2));if(a&2){var b;a=P();z();D("href",Hq(a.event.issueId))("issueId",a.event.issueId);z();R("b/",a.event.issueId);z();
D("timestamp",a.event.modifiedDate);z();F((b=a.event.statusUpdate==null?null:a.event.statusUpdate.updateText)?4:-1,b)}},mgb=function(a){a&1&&(Q(0," assigned "),I(1,"b-issue-reference-widget",1),Q(2),J(),Q(3," to "),K(4,"b-user-email",0)(5,"b-formatted-date-time",2));if(a&2){a=P();z();D("href",Hq(a.event.issueId))("issueId",a.event.issueId);z();R("b/",a.event.issueId);z(2);var b;D("ldapOnly",!0)("email",(b=a.getNewDiffValue(a.event,"assignee"))!=null?b:"");z();D("timestamp",a.event.modifiedDate)}},
ngb=function(a){a&1&&(Q(0," self-assigned "),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",a.event.modifiedDate))},ogb=function(a){a&1&&(Q(0," unassigned self from "),I(1,"b-issue-reference-widget",1),Q(2),J(),K(3,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",
a.event.modifiedDate))},pgb=function(a){a&1&&(Q(0," unassigned "),K(1,"b-user-email",0),Q(2," from "),I(3,"b-issue-reference-widget",1),Q(4),J(),K(5,"b-formatted-date-time",2));if(a&2){a=P();z();var b;D("ldapOnly",!0)("email",(b=a.getPreviousDiffValue(a.event,"assignee"))!=null?b:"");z(2);D("href",Hq(a.event.issueId))("issueId",a.event.issueId);z();R("b/",a.event.issueId);z();D("timestamp",a.event.modifiedDate)}},qgb=function(a){a&1&&(Q(0," moved "),I(1,"b-issue-reference-widget",1),Q(2),J(),Q(3,
" to another component "),K(4,"b-formatted-date-time",2));a&2&&(a=P(),z(),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(2),D("timestamp",a.event.modifiedDate))},rgb=function(a){a&1&&(I(0,"span",8),Q(1," updated "),J(),I(2,"b-issue-reference-widget",1),Q(3),J(),K(4,"b-formatted-date-time",2));a&2&&(a=P(),D("title",a.shorthandAllDiffs(a.event)),z(2),D("href",Hq(a.event.issueId))("issueId",a.event.issueId),z(),R("b/",a.event.issueId),z(),D("timestamp",a.event.modifiedDate))},
sgb=function(a,b){a&1&&(Q(0," \u2014 "),I(1,"span",9),Q(2),J());a&2&&(z(),D("title",b),z(),ch(b))},tgb=function(a){a&1&&E(0,sgb,3,2);if(a&2){var b;a=P();F((b=a.getComment())?0:-1,b)}},ugb=function(a,b){a&1&&(Q(0," \u2014 "),I(1,"span",10),Q(2),J());a&2&&(z(),D("title",b),z(),ch(b))},vgb=function(a){a&1&&E(0,ugb,3,2);if(a&2){a=P();var b,c;a=(b=a.issueFullFridge.peek(a.event.issueId))==null?void 0:(c=b.snapshot[0])==null?void 0:c.title;F(a?0:-1,a)}},wgb=function(a,b){a&1&&K(0,"recent-event-row",4);
a&2&&D("event",b.$implicit)},xgb=function(a,b){a&1&&(I(0,"p",3),Q(1),J(),Dg(2,wgb,1,1,"recent-event-row",4,Cg));if(a&2){a=P();var c=P(3);z();R("Last 24 hours ",c.printStats(a["<24h"]));z();Eg(b)}},ygb=function(a,b){a&1&&K(0,"recent-event-row",4);a&2&&D("event",b.$implicit)},zgb=function(a,b){a&1&&(I(0,"p",5),Q(1),J(),Dg(2,ygb,1,1,"recent-event-row",4,Cg));if(a&2){a=P();var c=P(3);z();R("1-7 days ago ",c.printStats(a["24h-7d"]));z();Eg(b)}},Agb=function(a,b){a&1&&K(0,"recent-event-row",4);a&2&&D("event",
b.$implicit)},Bgb=function(a,b){a&1&&(I(0,"p",5),Q(1),J(),Dg(2,Agb,1,1,"recent-event-row",4,Cg));if(a&2){a=P();var c=P(3);z();R("1-4 weeks ago ",c.printStats(a["7d-30d"]));z();Eg(b)}},Cgb=function(a,b){a&1&&K(0,"recent-event-row",4);a&2&&D("event",b.$implicit)},Dgb=function(a,b){a&1&&(I(0,"p",5),Q(1),J(),Dg(2,Cgb,1,1,"recent-event-row",4,Cg));if(a&2){a=P();var c=P(3);z();R(">30 days ago ",c.printStats(a[">30d"]));z();Eg(b)}},Egb=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);
var c=P(4);c.numDisplayed$.value<100?c.numDisplayed$.next(100):c.numDisplayed$.next(c.defaultNumEvents);return v()});Q(1);J()}a&2&&(a=P(4),z(),R(" ",a.numDisplayed$.value>a.defaultNumEvents?"Show less":"Show more"," "))},Fgb=function(a){a&1&&(E(0,xgb,4,1),E(1,zgb,4,1),E(2,Bgb,4,1),E(3,Dgb,4,1),E(4,Egb,2,1,"button",2),S(5,"async"));if(a&2){var b,c,d,e,f;a=P();var h=P(2);F((b=a["<24h"])?0:-1,b);z();F((c=a["24h-7d"])?1:-1,c);z();F((d=a["7d-30d"])?2:-1,d);z();F((e=a[">30d"])?3:-1,e);z();var k;F(((k=(f=
T(5,5,h.events$))==null?null:f.length)!=null?k:0)>h.defaultNumEvents?4:-1)}},Ggb=function(a){a&1&&(E(0,Fgb,6,7),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.bucketedEventStats$))?0:-1,b)}},Hgb=function(a){a&1&&(I(0,"div",0),Q(1," Recent activity "),K(2,"input",1),J(),E(3,Ggb,2,3),S(4,"async"));if(a&2){var b;a=P();z(2);D("formControl",a.quickFilter);z();F((b=T(4,2,a.bucketedEvents$))?3:-1,b)}},Igb=function(a){return function(b){var c;if(a){var d="";if(rm(b)||sm(b)){var e=Tfb(b);d="submitted "+e.link+
" "+e.title}e="b/"+b.issueId;var f=Yfb(b),h=$fb(b),k=Wfb(b);b=b==null||rm(b)||sm(b)?"":((c=b.unlinkifiedComment)!=null?c:"").slice(0,999);c=[e,f,h,d,k,b].join(" ").toLowerCase().includes(a.toLowerCase())}else c=!0;return c}},Jgb=function(a){if(a==null||a.n<=1)return"";var b=Object.keys(a.pptCounts).length;a=[a.clCount?a.clCount+" CLs":void 0,a.fixed?a.fixed+" issues fixed":void 0,b>1?b+" participants":void 0].filter(Tk);return a.length===0?"":"\u2014 "+a.join(", ")},Kgb=function(a){var b={};a.forEach(function(c){var d=
Date.now()-c.modifiedDate,e=">30d";d<864E5?e="<24h":d<6048E5?e="24h-7d":d<2592E6&&(e="7d-30d");b[e]==null&&(b[e]=[]);b[e].push(c)});return b},Lgb=function(a,b){var c;a=(c=b[a])!=null?c:[];var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=$fb(e),h=Yfb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var q;d.pptCounts[h]=((q=d.pptCounts[h])!=null?q:0)+1}if(f==="changelist"){var u;d.clCount=((u=d.clCount)!=null?u:0)+1;var A;d.pptCounts[h]=
((A=d.pptCounts[h])!=null?A:0)+1}else if(f==="create"){var G;d.created=((G=d.created)!=null?G:0)+1;var H;d.pptCounts[h]=((H=d.pptCounts[h])!=null?H:0)+1}else if(f==="status"&&Xfb(e,"status")==="Fixed"){var N;d.fixed=((N=d.fixed)!=null?N:0)+1}});return d},Mgb=function(a){a&1&&(I(0,"p",11),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.description))},Ngb=function(a,b){a&1&&(I(0,"mat-list-option",8)(1,"div",9)(2,"label",10),Q(3),J()(),E(4,Mgb,2,1,"p",11),J());a&2&&(a=b.$implicit,b=P(2),vg("height","auto"),
D("selected",b.selectedIds.has(a.searchId))("value",a.searchId),z(3),ch(a.name),z(),F(a.description?4:-1))},Qgb=function(a,b){if(a&1){var c=r();I(0,"mat-selection-list",6);M("selectionChange",function(d){t(c);var e=P();return v(Ogb(e,d))});Dg(1,Ngb,5,6,"mat-list-option",7,Pgb);J()}a&2&&(z(),Eg(b))},Rgb=function(a,b){a&1&&K(0,"avatar-bunch",4);a&2&&D("emails",b)},Sgb=function(a,b){a&1&&(I(0,"a",6),Q(1," View in TaskFlow "),K(2,"mat-icon",7),J());a&2&&D("href",b,uf)},Tgb=function(a,b){a&1&&K(0,"progress-pie",
1);a&2&&D("closed",b.closed)("total",b.total)},Vgb=function(a,b){a&1&&(K(0,"cl-counts",3),S(1,"async"));if(a&2){a=P();var c;D("submitted",b.changelists)("pending",(c=T(1,2,a.pendingCls$))!=null?c:ih(4,Ugb))}},Wgb=function(a){a&1&&K(0,"gerrit-changes-count",4);a&2&&(a=P(),D("changes",a))},Xgb=function(a,b){a&1&&E(0,Wgb,1,1,"gerrit-changes-count",4);a&2&&F(b&&b.length>0?0:-1)},Ygb=function(a){a&1&&K(0,"avatar-bunch",5);a&2&&(a=P(),D("emails",a))},Zgb=function(a,b){a&1&&E(0,Ygb,1,1,"avatar-bunch",5);
a&2&&F(b.length>0?0:-1)},$gb=function(a){return a},ahb=function(a){a==="UNKNOWN_SOURCE"&&console.error("an UNKNOWN TaskSources snuck in");return a},bhb=function(a,b){return b.buganizerSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},chb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},dhb=function(a,b){return b.changelistSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},ehb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==
!1}):b.changelistSignals},fhb=function(a,b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},ghb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==!1}):b.driveSignals},hhb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},ihb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==!1}):b.gerritSignals},jhb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==
!1}):b.googleTasksSignals},khb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},lhb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},mhb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},nhb=function(a){a&1&&(I(0,"div",2),Q(1),J());if(a&2){a=P();wg("muted",!a.isNumeric(a.countDisplay)||a.isDisabled());z();var b;ch((b=a.countDisplay)!=null?b:"\u00a0")}},ohb=
function(a){a&1&&(I(0,"div",0),K(1,"qif-stat",1),S(2,"async"),K(3,"qif-stat",1),S(4,"async"),J());a&2&&(a=P(),z(),D("key",a.QuickFilterKey.OPEN)("prefKey",a.id)("metadata",T(2,6,a.metadata$)),z(2),D("key",a.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",a.id)("metadata",T(4,8,a.metadata$)))},phb=function(a,b){return a===b?!0:(a==null?void 0:a.type)===(b==null?void 0:b.type)&&!(a==null||!a.ancestorChain.equals(b==null?void 0:b.ancestorChain))},qhb=function(a){switch(a){case 0:return"Row moved up";case 1:return"Row moved down";
case 2:return"Row indented";case 3:return"Row unindented";case 4:return"Row moved";default:Gb(a)}},shb=function(a,b){var c=function(){return{position:d,rowElement:b}};if(b.classList.contains("dragging")||b.classList.contains("nodrop")||b.classList.contains("mat-mdc-header-row")){var d="none";return c()}var e=rhb(b),f=b.nextElementSibling&&rhb(b.nextElementSibling),h=b.previousElementSibling&&rhb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&
h===e)return d="none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var q;if((q=b.nextElementSibling)==null?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var u;if(((u=b.nextElementSibling)==null?0:u.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},rhb=function(a){return Number(a.dataset.level)},thb=function(a){var b;return Pr((b=a.dataset.ancestorchain)!=null?b:"")},uhb=function(a){a&
1&&K(0,"th",25)},vhb=function(a){if(a&1){var b=r();I(0,"td",26,0);M("click",function(c){var d=t(b).$implicit,e=L(1),f=P();e.focus();Uq(f.focusManager,d);return v(c.stopPropagation())});J()}},whb=function(a){a&1&&K(0,"th",25)},xhb=function(a){if(a&1){var b=r();I(0,"td",27,1);M("click",function(c){var d=t(b).$implicit,e=L(1),f=P();e.focus();Uq(f.focusManager,d);return v(c.stopPropagation())})("dragstart",function(c){t(b);var d=P();return v(d.handleDragStart(c))});K(2,"mat-icon",28);J()}},yhb=function(a){a&
1&&(I(0,"th",25),Q(1," Id "),J())},zhb=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-id-cell",30),J());a&2&&(a=b.$implicit,z(),D("id",a.id))},Ahb=function(a){a&1&&(I(0,"th",25),Q(1," Id "),J())},Bhb=function(a){a&1&&(I(0,"td",29),Q(1,"--"),J())},Chb=function(a){a&1&&(I(0,"th",25),Q(1," Title "),J())},Dhb=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"b-expandable-issue-title-cell",31);S(2,"async");S(3,"async");M("expansionChange",function(){var d=t(c).$implicit,e=P();return v(e.toggleExpansion(d))})("onSaveOutput",
function(){var d=t(c).$implicit;return v(d.isEditMode=!1)})("onCancelOutput",function(){var d=t(c).$implicit;return v(d.isEditMode=!1)});J()()}a&2&&(a=b.$implicit,z(),D("isEditMode",a.isEditMode)("issue",T(2,5,a.issue$))("expandable",T(3,7,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},Ehb=function(a){a&1&&(I(0,"th",25),Q(1," Type "),J())},Fhb=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-type-cell",32),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},Ghb=
function(){},Hhb=function(a){a&1&&Q(0," Assignee ")},Ihb=function(a){a&1&&(I(0,"th",25),E(1,Ghb,0,0)(2,Hhb,1,0),J());a&2&&(a=P(),z(),F((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},Jhb=function(a,b){a&1&&K(0,"b-user-image",33);a&2&&D("email",b)},Khb=function(a){a&1&&E(0,Jhb,1,1,"b-user-image",33);if(a&2){var b;a=P();var c=P(3);F((b=c.getAssigneeString(a))?0:-1,b)}},Lhb=function(a,b){a&1&&E(0,Khb,1,1);a&2&&(a=P(3),F(a.isOpen(b)?0:-1))},Mhb=function(a){a&1&&(E(0,Lhb,
1,1),S(1,"async"));if(a&2){var b;a=P().$implicit;F((b=T(1,1,a.issue$))?0:-1,b)}},Nhb=function(a){a&1&&(K(0,"b-issue-assignee-cell",32),S(1,"async"));a&2&&(a=P().$implicit,D("issue",T(1,1,a.issue$)))},Ohb=function(a){a&1&&(I(0,"td",29),E(1,Mhb,2,3)(2,Nhb,2,3,"b-issue-assignee-cell",32),J());a&2&&(a=P(),z(),F((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},Phb=function(a){a&1&&(I(0,"th",25),Q(1," Status "),J())},Qhb=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-status-cell",
34),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,2,a.issue$))("showPendingFix",!0))},Rhb=function(a){a&1&&(I(0,"th",25),Q(1," Team "),J())},Shb=function(a,b){a&1&&(I(0,"td",29),K(1,"b-issue-team-cell",32),S(2,"async"),J());a&2&&(a=b.$implicit,z(),D("issue",T(2,1,a.issue$)))},Thb=function(a){a&1&&K(0,"th",25)},Vhb=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"b-actions-menu",35);S(2,"async");M("click",function(e){t(c);return v(e.stopPropagation())});J()()}if(a&2){a=b.$implicit;b=P();z();
var d;D("menuItems",(d=T(2,1,b.getMenuItems(a)))!=null?d:ih(3,Uhb))}},Whb=function(a){a&1&&K(0,"th",25)},Yhb=function(a){if(a&1){var b=r();I(0,"b-actions-menu",35);M("click",function(d){t(b);return v(d.stopPropagation())});J()}if(a&2){a=P().$implicit;var c=P();D("menuItems",Xhb(c,a))}},Zhb=function(a){a&1&&K(0,"b-spinner")},$hb=function(a){a&1&&K(0,"b-spinner")},aib=function(a,b){a&1&&(I(0,"td",36),E(1,Yhb,1,1,"b-actions-menu",37)(2,Zhb,1,0,"b-spinner"),C(3,$hb,1,0,"ng-template",null,2,nh),J());a&
2&&(a=b.$implicit,z(),F(a.saving?2:1))},cib=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"b-async-data-placeholder",38);S(2,"async");I(3,"b-button",39);M("onAction",function(){var d=t(c).$implicit,e=P();return v(bib(e,d))});I(4,"span",40);Q(5);J()()()()}a&2&&(a=b.$implicit,b=P(),vg("padding-left",a.level*24+b.TITLE_FIXED_OFFSET_PX,"px"),ng("colspan",b.tableColumns.length),z(),D("isReady",!!T(2,5,a.parentIssue$)),z(4),R("Display ",a.truncatedSiblingCount," more"))},dib=function(a){a&1&&(I(0,"th",
25),Q(1," Title "),J())},fib=function(a,b){if(a&1){var c=r();I(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);gh("valueChange",function(d){var e=t(c).$implicit;fh(e.title,d)||(e.title=d);return v(d)});M("commit",function(){var d=t(c).$implicit,e=P();return v(e.saveDraft(d))});J();I(3,"b-button",43);M("onAction",function(){var d=t(c).$implicit,e=P();return v(e.saveDraft(d))});Q(4," Create ");J();I(5,"b-button",44);M("onAction",function(){var d=t(c).$implicit,e=P();return v(eib(e,d))});Q(6," Cancel ");
J()()()}a&2&&(a=b.$implicit,vg("padding-left",(a.level+1)*24,"px"),z(2),eh("value",a.title),D("readonly",a.saving),z(),D("disabled",!a.title||a.saving),z(2),D("disabled",a.saving))},gib=function(a){a&1&&K(0,"tr",18)},hib=function(a){a&1&&C(0,gib,1,0,"tr",45);a&2&&(a=P(),D("matHeaderRowDef",a.tableColumns))},jib=function(a,b){if(a&1){var c=r();I(0,"tr",46);S(1,"async");S(2,"async");M("click",function(d){var e=t(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("mouseup",function(d){var e=t(c).$implicit,
f=P();return v(f.navigateToIssue(d,e))})("focusin",function(){var d=t(c).$implicit,e=P();return v(Uq(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});J()}a&2&&(a=b.$implicit,b=P(),wg("selected",T(1,8,iib(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(T(2,10,a.issue$))),D("row",a),ng("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},kib=function(a,b){if(a&1){var c=r();I(0,"tr",47);M("focusin",function(){var d=
t(c).$implicit,e=P();return v(Uq(e.focusManager,d))})("keydown",function(d){var e=t(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});J()}a&2&&(a=b.$implicit,D("row",a),ng("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},lib=function(a,b){if(a&1){var c=r();I(0,"tr",48);M("keydown",function(d){var e=t(c).$implicit,f=P();return v(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=t(c).$implicit,e=P();return v(eib(e,d))})("keydown.backspace",function(d){var e=
t(c).$implicit,f=P();return v(e.title||d.repeat||eib(f,e))})("focusin",function(){var d=t(c).$implicit,e=P();return v(Uq(e.focusManager,d))});J()}a&2&&(a=b.$implicit,D("row",a),ng("data-type",a.type))},mib=function(a,b){if(a&&a.length)return a.map(b)},nib=function(a){var b=a.getFilename();var c=Hc(a,2,Sb,Fk(Gk));return{filename:b,lineNumber:c,changeNumber:a.getChangeNumber_asLegacyNumberOrString()}},pib=function(a){var b=Oh(a,1);a=Wk(a,oib,2,Fk(Gk));return{packageName:b,fileMentionSet:mib(a,nib)}},
rib=function(a){var b=Ik(a,1),c=kl(a,2);a=Wk(a,qib,3,Fk(Gk));return{totalMentions:b,truncated:c,packageMentionSet:mib(a,pib)}},tib=function(a){var b=sib(a.open);a=sib(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},sib=function(a){var b=a.count;a=a.exact;return b===0||a?""+b:b+"+"},uib=function(a){return"("+sib(a)+")"},Qr=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},vib=function(a,b){switch(b){case "BLOCKED_BY":return"blockingid:"+a+" status:open";case "BLOCKING":return"blockedbyid:"+a+
" status:open";case "DUPLICATE":return"canonicalid:"+a;case "CHILDREN":return"parentid:"+a+" status:open";case "PARENT":break;default:Gb(b)}},wib=function(a){a&1&&Hg(0)},xib=function(a){a&1&&C(0,wib,1,0,"ng-container",6);a&2&&(P(),a=L(14),D("ngTemplateOutlet",a))},yib=function(a,b){a&1&&K(0,"b-issues-table",7);a&2&&(a=P(2),D("issueIds",b)("tableColumns",a.tableColumns)("menuItemFactory",a.getMenuItems)("filters",a.filters)("initialSort",a.initialSort)("options",a.tableOptions))},zib=function(a){a&
1&&(E(0,yib,1,6,"b-issues-table",7),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.blockerIds$))?0:-1,b)}},Aib=function(a){a&1&&Hg(0)},Bib=function(a){a&1&&(I(0,"div")(1,"span",5),Q(2,"This issue is not blocked "),I(3,"span",8),Q(4,"\ud83c\udf89"),J()(),C(5,Aib,1,0,"ng-container",6),J());a&2&&(P(),a=L(14),z(5),D("ngTemplateOutlet",a))},Cib=function(a,b){if(a&1){var c=r();I(0,"p",5);Q(1);I(2,"button",9);M("click",function(){t(c);var d=P();return v(d.shouldResetFilters.next())});Q(3,"Show all");J()()}a&
2&&(z(),dh(" Filtering ",b," issue",b===1?"":"s",". "))},Eib=function(a){if(a&1){var b=r();I(0,"b-button",10);S(1,"async");M("onAction",function(){t(b);var c=P();return v(Dib(c))});Q(2," Add blocker ");J()}a&2&&(a=P(),D("disabled",!T(1,1,a.canEdit$)))},Fib=function(a,b){a&1&&K(0,"b-issues-table",0);a&2&&(a=P(),D("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions)("filters",a.filters)("issueUrlFactory",a.ROUTES.issueDependencies.makeHref)("menuItemFactory",a.getMenuItems))},Gib=
function(a,b){a&1&&(I(0,"span",8),Q(1),J());a&2&&(Pg("title","",b," applied filter(s)"),z(),ch(b))},Hib=function(a){a&1&&(E(0,Gib,2,3,"span",8),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.internalSelectedOptions.size$))?0:-1,b)}},Iib=function(a){a&1&&(I(0,"h1",6),Q(1),J());a&2&&(a=P(),z(),ch(a.overlayTitle))},Jib=function(a){a&1&&(I(0,"h1"),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.title))},Kib=function(a){a&1&&(I(0,"p"),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.description))},Lib=function(a,b){if(a&
1){var c=r();I(0,"div",7)(1,"div",9)(2,"mat-checkbox",10);S(3,"async");M("change",function(d){var e=t(c).$implicit,f=P();e=e.key;d.checked?f.internalSelectedOptions.add(e):f.internalSelectedOptions.delete(e);f.onChange.emit(new Set(f.internalSelectedOptions));return v()});J();I(4,"div");E(5,Jib,2,1,"h1");E(6,Kib,2,1,"p");J()()()}a&2&&(a=b.$implicit,b=P(),z(2),D("checked",T(3,3,Tq(b.internalSelectedOptions,a.key))),z(3),F(a.title?5:-1),z(),F(a.description?6:-1))},Mib=function(a){if(a&1){var b=r();
K(0,"mat-divider");I(1,"div",11)(2,"button",12);M("click",function(){t(b);var c=P(),d=L(1);return v(c.cancel(d))});Q(3);J();I(4,"button",13);M("click",function(){t(b);var c=P(),d=L(1);return v(c.confirm(d))});Q(5);J()()}a&2&&(a=P(),z(3),ch(a.cancelButtonLabel),z(2),ch(a.confirmButtonLabel))},Nib=function(a){a&1&&K(0,"b-spinner")},Oib=function(a){a&1&&Hg(0)},Pib=function(a){a&1&&C(0,Oib,1,0,"ng-container",23);a&2&&(P(2),a=L(12),D("ngTemplateOutlet",a))},Qib=function(a){a&1&&(K(0,"b-parents-table",
15),S(1,"async"),S(2,"async"));if(a&2){a=P();var b=P();D("issueId",a)("parentIds",T(1,3,b.parentIds$))("filters",T(2,5,b.issueFilters.value$))}},Rib=function(a){a&1&&Hg(0)},Sib=function(a){a&1&&(I(0,"div")(1,"span",24),Q(2,"This issue has no parents"),J(),C(3,Rib,1,0,"ng-container",23),J());a&2&&(P(2),a=L(12),z(3),D("ngTemplateOutlet",a))},Tib=function(a){a&1&&Hg(0)},Vib=function(a){a&1&&(C(0,Tib,1,0,"ng-container",25),S(1,"async"));if(a&2){a=P(2);var b=L(10);D("ngTemplateOutlet",b)("ngTemplateOutletContext",
jh(4,Uib,T(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},Wib=function(a){a&1&&Hg(0)},Xib=function(a){a&1&&C(0,Wib,1,0,"ng-container",23);a&2&&(P(2),a=L(14),D("ngTemplateOutlet",a))},Yib=function(a){a&1&&(I(0,"div",20)(1,"section",26)(2,"div",27),Q(3," Progress: "),J(),I(4,"div",27),Q(5),S(6,"async"),S(7,"number"),S(8,"async"),S(9,"number"),J(),I(10,"div",28),S(11,"async"),I(12,"div",29),K(13,"div",30),S(14,"async"),I(15,"onedev-hovercard",null,3)(17,"div",31)(18,"div",32),Q(19),
S(20,"async"),J()()()()(),K(21,"mat-icon",33),I(22,"onedev-hovercard",null,4)(24,"div",31)(25,"div",34)(26,"p"),Q(27," The progress of child issues takes into consideration all child issues and descendant issues which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is not reflected in the progress bar. "),J()()()()()());if(a&2){a=L(16);var b=L(23),c=P(2);z(5);dh(" ",mh(7,11,T(6,9,c.totalDaysComplete$),"1.0-2")," of ",mh(9,16,T(8,14,c.totalDaysCount$),"1.0-2"),
" days complete ");z(5);pg("aria-label","",T(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed");z(2);D("onedevHovercardTrigger",a);z();vg("width",T(14,21,c.totalDaysDisplayPercent$),"%");z(6);R(" ",T(20,23,c.progressHovercardContent$)," ");z(2);D("onedevHovercardTrigger",b)}},Zib=function(a){a&1&&K(0,"rollups-project",21);a&2&&(a=P(),D("id",a))},$ib=function(a){a&1&&Hg(0)},ajb=function(a){a&1&&(C(0,$ib,1,0,"ng-container",25),S(1,"async"));if(a&2){a=P(2);var b=L(10);D("ngTemplateOutlet",
b)("ngTemplateOutletContext",jh(4,Uib,T(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},bjb=function(a){a&1&&Hg(0)},cjb=function(a){a&1&&(I(0,"span",24),Q(1,"This issue has no children"),J(),C(2,bjb,1,0,"ng-container",23));a&2&&(P(3),a=L(14),z(2),D("ngTemplateOutlet",a))},djb=function(a){a&1&&(I(0,"p",35)(1,"a",36),Q(2," View as search results "),J()());if(a&2){a=P(2);var b=P();z();D("href",b.makeIlpUrlForParentIssue(a),uf)}},ejb=function(a){a&1&&(E(0,cjb,3,1),S(1,"async"),S(2,
"async"),Ag(3,djb,3,1,"p",35));if(a&2){var b;a=P(2);F(T(1,1,a.unarchivedChildIssueCount$)===0&&(((b=T(2,3,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:b.length)||0)===0?0:3)}},fjb=function(a,b){if(a&1){var c=r();I(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);K(5,"mat-icon",14);J();Q(6);S(7,"async");J();E(8,Pib,1,1,"ng-container");S(9,"async");J();E(10,Qib,3,7,"b-parents-table",15);S(11,"async");Ag(12,Sib,4,1,"div");E(13,Vib,2,6,"ng-container");S(14,"async");J();
I(15,"section")(16,"b-blockers-table",16);S(17,"async");M("shouldResetFilters",function(){t(c);var f=P();return v(f.shouldResetFilters())});J()();I(18,"section")(19,"div",17)(20,"h4",12)(21,"div",18);K(22,"mat-icon",19);J();Q(23);S(24,"async");J();E(25,Xib,1,1,"ng-container");S(26,"async");S(27,"async");J();E(28,Yib,28,25,"div",20);S(29,"async");S(30,"async");E(31,Zib,1,1,"rollups-project",21);K(32,"b-issue-relations-table",22);S(33,"async");S(34,"async");S(35,"async");E(36,ajb,2,6,"ng-container");
S(37,"async");E(38,ejb,4,5);S(39,"async");J()()}if(a&2){var d,e;a=P();z(6);R(" Parents ",T(7,17,a.counts.countParentsDisplay$)," ");z(2);F(T(9,19,a.parentsCount$)?8:-1);z(2);F(T(11,21,a.parentsCount$)?10:12);z(3);F(T(14,23,a.issueFilters.value$)?13:-1);z(3);D("filters",T(17,25,a.issueFilters.value$));z(7);R(" Child issues ",T(24,27,a.counts.countChildrenDisplay$)," ");z(2);F(T(26,29,a.unarchivedChildIssueCount$)||(((d=T(27,31,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:d.length)||
0)>0?25:-1);z(3);F(a.isTotalEstimatesEnabled&&T(29,33,a.unarchivedChildIssueCount$)&&T(30,35,a.totalDaysCount$)?28:-1);z(3);F(a.isInternalSession&&a.enableRollupStatsUi?31:-1);z();wg("hidden",!((e=T(33,37,a.relationsTable==null?null:a.relationsTable.rows$))==null?0:e.length)&&!T(34,39,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$));Pg("saveExpansionAtKey","project-expansion-",b);D("rootIssueId",b)("filters",T(35,41,a.issueFilters.value$));z(4);F(T(37,43,a.issueFilters.value$)?36:-1);
z(2);F(T(39,45,a.unarchivedChildIssueCount$)!==null?38:-1)}},gjb=function(a){if(a&1){var b=r();I(0,"p",24);Q(1);I(2,"button",37);M("click",function(){t(b);var c=P(2);return v(c.issueFilters.reset([]))});Q(3,"Show all");J()()}a&2&&(a=P().filteredCount,z(),dh(" Filtering ",a," issue",a===1?"":"s",". "))},hjb=function(a,b){a&1&&E(0,gjb,4,2,"p",24);a&2&&F(b.filteredCount?0:-1)},jjb=function(a){if(a&1){var b=r();I(0,"b-button",38);S(1,"async");M("onAction",function(){t(b);var c=P();return v(ijb(c))});
Q(2," Add parent ");J()}a&2&&(a=P(),D("disabled",!T(1,1,a.canEdit$)))},kjb=function(a){if(a&1){var b=r();I(0,"b-button",41);S(1,"async");M("onAction",function(){t(b);var c=P(2);return v(c.createChild())});Q(2," Create new child ");J()}a&2&&(a=P(2),D("disabled",!T(1,1,a.canEdit$)))},ljb=function(a){if(a&1){var b=r();E(0,kjb,3,3,"b-button",39);I(1,"b-button",40);S(2,"async");M("onAction",function(){t(b);var c=P();return v(c.addChild())});Q(3," Add existing child ");J()}a&2&&(a=P(),F(a.isNonPublicSession?
0:-1),z(),D("disabled",!T(2,2,a.canEdit$)))},mjb=function(a,b){return Je([a,b]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return d===0?0:Math.round(c*100/d*100)/100}))},njb=function(a){return a===1?a+" day":a+" days"},ojb=function(a){a&1&&(K(0,"one-work-area-list",0),S(1,"async"));a&2&&(a=P(2),D("searchString",T(1,5,a.issueFilter$))("prefKey",a.entityReference)("reference",a.entityReference)("onlyShowTableWhenFiltered",a.onlyShowTableWhenFiltered)("entityType",a.entityType))},
pjb=function(a){a&1&&K(0,"rollups-project",2)(1,"stat-cards-project",2);a&2&&(a=P(2),D("id",a),z(),D("id",a))},rjb=function(a){if(a&1){var b=r();I(0,"aside",4)(1,"p",5);Q(2,"This issue has no children.");J();I(3,"button",6);M("click",function(){t(b);var c;(c=P(5).relationsTable)==null||qjb(c);return v()});Q(4," Create new child ");J();I(5,"button",7);M("click",function(){t(b);var c;(c=P(5).relationsTable)==null||c.addExistingChild();return v()});Q(6," Add existing ");J()()}},sjb=function(a,b){a&1&&
(E(0,rjb,7,0,"aside",4),S(1,"async"));if(a&2){var c;a=P(4);F(b.descendantCount===0&&(((c=T(1,1,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:c.length)||0)===0?0:-1)}},tjb=function(a){a&1&&(K(0,"b-issue-relations-table",3),E(1,sjb,2,3),S(2,"async"));if(a&2){var b;a=P(2);var c=P();Pg("saveExpansionAtKey","project-expansion-",a);D("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);z();F((b=T(2,8,c.issue$))?
1:-1,b)}},ujb=function(a){a&1&&(E(0,pjb,2,2),E(1,tjb,3,10));a&2&&(a=P(2),F(a.isInternalSession?0:-1),z(),F(a.showTable()?1:-1))},vjb=function(a){a&1&&Q(0);a&2&&(a=P(2),R(" Unhandled entity type: ",a.entityType," "))},wjb=function(a){a&1&&(K(0,"recent-events",1),S(1,"async"));a&2&&(a=P(2),D("query",T(1,2,a.issueFilter$))("numEvents",a.numRecentActivityEvents))},xjb=function(a){a&1&&(E(0,ojb,2,7,"one-work-area-list",0)(1,ujb,2,2)(2,vjb,1,1),E(3,wjb,2,4,"recent-events",1));a&2&&(a=P(),F(a.entityType===
"hotlist"||a.entityType==="savedsearch"?0:a.entityType==="issue"?1:2),z(3),F(a.hideRecentActivity?-1:3))},yjb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},zjb=function(a){a&1&&(K(0,"rollups-list",0),S(1,"async"),K(2,"stat-cards-list",1),S(3,"async"));a&2&&(a=P(),D("ref",a.reference)("query",T(1,5,a.issueQuery$)),z(2),D("prefKey",a.prefKey)("query",T(3,7,a.issueQuery$))("entityType",a.entityType))},Ajb=function(a,b){a&1&&K(0,"b-issues-table",2);a&2&&(a=P(2),D("issueIds",
b)("options",a.TABLE_OPTIONS)("filters",a.getFilters())("tableColumns",a.getFilters()[0]==="PROGRESS"?a.PROGRESS_COLUMNS:a.DEFAULT_COLUMNS)("initialSort",a.INITIAL_SORT))},Bjb=function(a){a&1&&(E(0,Ajb,1,5,"b-issues-table",2),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.issueIds$))?0:-1,b)}},Cjb=function(a){a&1&&(I(0,"button",9),K(1,"mat-icon",13),Q(2," Add "),J());a&2&&(P(),a=L(9),D("matMenuTriggerFor",a))},Djb=function(a){a&1&&K(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,D("trackerId",
a.trackerId)("compactMode",!0))},Ejb=function(a){a&1&&(I(0,"a",28),K(1,"mat-icon",29),Q(2," View Issue "),J(),I(3,"a",30),K(4,"mat-icon",29),Q(5," View as search results "),J());if(a&2){a=P(2).$implicit;var b=P(2);D("routerLink",b.makeBuganizerUrl(a.workAreaUrl));z(3);D("href",b.makeIlpUrlForParentIssue(a.workAreaUrl),uf)}},Fjb=function(a){a&1&&(I(0,"a",21),K(1,"mat-icon",29),Q(2),J());if(a&2){a=P(2).$implicit;var b=P(2);D("routerLink",b.makeBuganizerUrl(a.workAreaUrl));z(2);R(" View ",b.getEntityTypeName(a.workAreaUrl),
" ")}},Gjb=function(a,b){if(a&1){var c=r();I(0,"button",10);M("click",function(){var d=t(c),e=P(4);e.clipboard.copy(d);Mq(e.butterBar,"ID copied",2E3);return v()});K(1,"mat-icon",31);Q(2);J()}a&2&&(z(2),R(" Copy ID: ",b," "))},Ijb=function(a){if(a&1){var b=r();E(0,Djb,1,2,"b-tracker-chip-smart",17);Q(1);I(2,"button",18);M("click",function(k){t(b);return v(k.stopPropagation())});K(3,"mat-icon",19);J();I(4,"mat-menu",20,1);E(6,Ejb,6,2)(7,Fjb,3,2,"a",21);E(8,Gjb,3,1,"button",22);K(9,"mat-divider");I(10,
"button",23);M("click",function(){t(b);var k=P().$implicit,q=P(2);return v(Hjb(q.prefsService,k.workAreaUrl,-1))});K(11,"mat-icon",24);Q(12," Move Left ");J();I(13,"button",23);M("click",function(){t(b);var k=P().$implicit,q=P(2);return v(Hjb(q.prefsService,k.workAreaUrl,1))});K(14,"mat-icon",25);Q(15," Move Right ");J();I(16,"button",26);M("click",function(){t(b);var k=P().$implicit,q=P(2).prefsService,u=k.workAreaUrl;if(u!=null){var A;k=((A=q.prefs.workAreaUrls)!=null?A:[]).slice();A=k.indexOf(u);
A<0||(k.splice(A,1),Rr(q,{workAreaUrls:k}))}return v()});K(17,"mat-icon",27);Q(18," Remove ");J()()}if(a&2){var c;a=L(5);var d=P(),e=d.$implicit,f=d.$index;d=d.$count;var h=P(2);F(h.currentTrackerId&&h.currentTrackerId!==e.trackerId&&h.inferEntityType(e.workAreaUrl)==="issue"?0:-1);z();R(" ",h.titles[e.workAreaUrl]||e.workAreaUrl," ");z();D("matMenuTriggerFor",a);z(4);F(h.inferEntityType(e.workAreaUrl)==="issue"?6:7);z(2);F((c=h.extractLastDigits(e.workAreaUrl))?8:-1,c);z(2);D("disabled",f===0);z(3);
D("disabled",f===d-1);z(3);Pg("title","Hide the work area '",e.workAreaUrl,"' from this section")}},Jjb=function(a){a&1&&K(0,"one-work-area",32);if(a&2){a=P().$implicit;var b=P(2);D("reference",a.workAreaUrl)("refreshWorkArea",b.refreshData)}},Kjb=function(a){a&1&&(I(0,"mat-tab"),C(1,Ijb,19,9,"ng-template",15)(2,Jjb,1,2,"ng-template",16),J())},Njb=function(a){if(a&1){var b=r();I(0,"mat-tab-group",14);M("selectedIndexChange",function(c){t(b);var d=P();return v(Ljb(d.prefsService,d.SECTION_SLUG,c))});
Dg(1,Kjb,3,0,"mat-tab",null,Mjb);S(3,"async");J()}a&2&&(a=P(),D("selectedIndex",a.INITIAL_TAB_INDEX),z(),Eg(T(3,1,a.refsForTemplate$)))},Ojb=function(a){a&1&&K(0,"b-issue-card",44);a&2&&(a=P().$implicit,D("issueId",a.ref))},Qjb=function(a,b){if(a&1){var c=r();I(0,"li",41);M("click",function(){var d=t(c).$implicit,e=P(3);return v(Pjb(e,d.ref))});I(1,"p",42);Q(2);J();I(3,"p",43);Q(4);J();I(5,"onedev-hovercard",null,2);E(7,Ojb,1,1,"b-issue-card",44);J()()}a&2&&(a=b.$implicit,b=L(6),Pg("title","Click to add\n\rWhy this? ",
a.suggestionRationale),z(2),ch(a.title),z(),D("onedevHovercardTrigger",b),z(),R("b/",a.ref),z(3),F(a.ref?7:-1))},Rjb=function(a){a&1&&(I(0,"div",35)(1,"h4"),Q(2,"Suggestions:"),J(),I(3,"ol",39),Dg(4,Qjb,8,6,"li",40,Cg),J()());a&2&&(a=P(2),z(4),Eg(a.suggestions))},Sjb=function(a){a&1&&(I(0,"section",12)(1,"div",33),K(2,"img",34),E(3,Rjb,6,0,"div",35),J(),I(4,"p",36),Q(5," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),J(),I(6,"button",37),K(7,"mat-icon",
38),Q(8," Add work area "),J()());if(a&2){a=P();var b=L(9);z(2);D("src",a.EMPTY_STATE_IMG,uf);z();F(a.suggestions.length>0?3:-1);z(3);D("matMenuTriggerFor",b)}},Tjb=function(a){if(a&1){var b=r();I(0,"div",1);M("click",function(){t(b);var c=P();return v(c._onBackdropClicked())});J()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},Ujb=function(a){a&1&&(I(0,"mat-drawer-content"),Og(1,2),J())},Vjb=function(){return!1},Wjb=function(a){if(a&1){var b=r();I(0,"div",1);M("click",function(){t(b);
var c=P();return v(c._onBackdropClicked())});J()}a&2&&(a=P(),wg("mat-drawer-shown",a._isShowingBackdrop()))},Xjb=function(a){a&1&&(I(0,"mat-sidenav-content"),Og(1,2),J())},Yjb=function(a,b){if(a&1){var c=r();I(0,"button",9);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.pageSizeChange.emit(d))});I(1,"span",10);K(2,"mat-icon",11);J();Q(3);J()}a&2&&(a=b.$implicit,b=P(2),wg("b-menu-item-checked",a===b.pageSize),ng("aria-checked",a===b.pageSize),z(3),R(" ",a," "))},Zjb=function(a){a&1&&(I(0,
"button",5),K(1,"mat-icon",6),J(),I(2,"mat-menu",null,0)(4,"div",7),Q(5,"Results per page:"),J(),Dg(6,Yjb,4,4,"button",8,Cg),J());if(a&2){a=L(3);var b=P();D("matMenuTriggerFor",a);z(6);Eg(b.pageSizeOptions)}},$jb=function(a){a&1&&(I(0,"span"),Q(1," - "),I(2,"strong"),Q(3),J()());a&2&&(a=P(),z(3),ch(a.endIndex))},akb=function(a,b){a&1&&(I(0,"span",27),Q(1),J());a&2&&(z(),R("",b," "))},bkb=function(a){a&1&&(E(0,akb,2,1,"span",27),S(1,"async"),Q(2," \u00a0/\u00a0 "));if(a&2){var b;a=P();F((b=T(1,1,a.attentionCount$))?
0:-1,b)}},ckb=function(a,b){a&1&&(I(0,"div",9)(1,"h2",7),Q(2),J(),I(3,"span",26),E(4,bkb,3,3),S(5,"async"),I(6,"span"),Q(7),S(8,"async"),J()()());if(a&2){var c;z(2);ch(b.displayName);z(2);F((c=T(5,3,b.attentionCount$))?4:-1,c);z(3);ch(T(8,5,b.totalCount$))}},ekb=function(a,b){if(a&1){var c=r();I(0,"button",13);M("click",function(){var d=t(c).$implicit,e=P();return v(dkb(e,d))});Q(1);J()}a&2&&(a=b.$implicit,b=P(),z(),R(" ",b.SUBPHASE_TO_DISPLAY_NAME[a]," "))},fkb=function(a){a&1&&K(0,"mat-progress-bar",
21)},gkb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,R(" (",a.count,") "))},hkb=function(a,b){a&1&&(I(0,"mat-chip-option",30),S(1,"async"),I(2,"span",31),Q(3),E(4,gkb,1,1),J()());a&2&&(a=b.$implicit,b=P(4),D("value",a.key)("selected",T(1,5,Tq(b.selectedFilterKeys,a.key))),z(2),D("matTooltip",a.tooltip),z(),R(" ",a.displayAs," "),z(),F(a.showCount?4:-1))},jkb=function(a){if(a&1){var b=r();I(0,"mat-chip-listbox",29);M("change",function(c){t(b);P(3).selectedFilterKeys.reset(c.value.filter(Tk));return v()});
Dg(1,hkb,5,7,"mat-chip-option",30,ikb);J()}a&2&&(a=P(),D("multiple",!0),z(),Eg(a))},kkb=function(a,b){a&1&&E(0,jkb,3,1,"mat-chip-listbox",28);a&2&&F(b.length?0:-1)},lkb=function(a){a&1&&(E(0,kkb,1,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},mkb=function(a){a&1&&Hg(0)},okb=function(a,b){a&1&&C(0,mkb,1,0,"ng-container",32);if(a&2){a=P();var c=L(53);D("ngTemplateOutlet",c)("ngTemplateOutletContext",kh(2,nkb,b,a.teamId))}},pkb=function(a){if(a&1){var b=
r();I(0,"selection-triage-sidebar",33);M("refreshTable",function(){t(b);var c=P(3);return v(c.refreshTable())});J()}},qkb=function(a){if(a&1){var b=r();I(0,"issue-triage-sidebar",33);M("refreshTable",function(){t(b);var c=P(4);return v(c.refreshTable())});J()}},rkb=function(a){if(a&1){var b=r();I(0,"cluster-triage-sidebar",33);M("refreshTable",function(){t(b);var c=P(4);return v(c.refreshTable())});J()}},skb=function(a){a&1&&E(0,qkb,1,0,"issue-triage-sidebar")(1,rkb,1,0,"cluster-triage-sidebar");
a&2&&(a=P(),F(a.length===1?0:a.length>1?1:-1))},tkb=function(a){a&1&&E(0,pkb,1,0,"selection-triage-sidebar")(1,skb,2,1);a&2&&(a=P(2),F(a.triageService.mode===a.TriageServiceMode.SELECTION?0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},ukb=function(a){a&1&&(E(0,tkb,2,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},ykb=function(a){if(a&1){var b=r();I(0,"b-issues-table",36);S(1,"async");S(2,"async");S(3,"async");M("activeIssueChange",function(k){t(b);
var q=P(2);return v(vkb(q,k))})("rowClick",function(k){t(b);var q=P(2);return v(vkb(q,k))})("selectedIssuesChange",function(k){t(b);var q=P(2);q.selectedIssues=k;k=q.selectedIssues.selected;q.triageService.setIssueIds(k);k.length?(q.triageService.setMode(1),q.triageService.openSidebar()):(q.triageService.setMode(0),q.triageService.closeSidebar());return v()})("sortChange",function(k){t(b);var q=P(2);return v(q.onSortChange(k))});J()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,h;D("issueIds",
a)("tableColumns",(e=T(1,6,d.tableColumns$))!=null?e:ih(12,wkb))("options",(f=T(2,8,d.tableOptions$))!=null?f:ih(13,xkb))("teamId",c)("showReadStatus",!0)("alerts",(h=T(3,10,d.issueAlertsForCurrentPhase$))!=null?h:ih(14,wkb))}},zkb=function(a){a&1&&(I(0,"div",35),K(1,"img",37),Q(2," All clean! There are no issues in this phase. "),J());a&2&&(a=P(2),z(),D("src",a.EMPTY_STATE_IMG,uf))},Akb=function(a,b){a&1&&E(0,ykb,4,15,"b-issues-table",34)(1,zkb,3,1,"div",35);a&2&&F(b.issueIds.length?0:1)},Bkb=function(a,
b,c){var d=b.find(function(e){return e.key==="LAST_30_DAYS"});b=b.filter(function(e){return e.key!=="LAST_30_DAYS"});return Vya(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return Tya(e,f)})?!0:!1})},Dkb=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return pya(Lua)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return qya(Lua)(a,c.direction);case "PRIORITY":return vya(Lua)(a,c.direction);case "TRIAGER":return sya()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+
c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):Ckb(a,b,d)},Ckb=function(a,b,c){var d=Ekb.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(h){return Tya(f,h)})]}));c=a.filter(function(f){return e.get(f.issueId)!==-1}).map(function(f){return f.issueId}).sort(function(f,h){return e.get(f)-e.get(h)});return ik([].concat(p(b),p(c),p(a.map(function(f){return f.issueId}))),function(f){return Array.isArray(f)?f.join(";"):f})},Fkb=function(a,b){a=l(a);for(var c=
a.next();!c.done;c=a.next())if(c=c.value.customFields.find(function(d){return d.customFieldId===b}))return c.name;return""+b},Gkb=function(a){a&1&&(I(0,"span",8),Q(1," > "),J())},Jkb=function(a,b){if(a&1){var c=r();I(0,"span")(1,"a",7);M("click",function(e){var f=t(c).$implicit,h=P(2);f=new Hkb(f.pathIds,f.pathNames);h.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();Ikb(h.autocompleteTrigger);return v()});Q(2);J();E(3,Gkb,2,0,"span",8);J()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;
z();D("matTooltip",a.pathNameText);z();ch(a.name);z();F(d!==b-1?3:-1)}},Kkb=function(a,b){a&1&&(I(0,"mat-option",5)(1,"div"),Dg(2,Jkb,4,3,"span",null,Cg),J(),I(4,"span",6),Q(5),S(6,"slice"),J()());a&2&&(a=b.$implicit,D("value",a),z(2),Eg(a.teamPath),z(2),D("matTooltip",a.description),z(),R("",Pla(6,3,a.description,100)," "))},Lkb=function(a){a&1&&Q(0," Search results ")},Mkb=function(a){a&1&&Q(0," Recommended ")},Nkb=function(a){a&1&&(I(0,"th",18)(1,"span",19),Q(2,"Starred"),J()())},Okb=function(a,
b){if(a&1){var c=r();I(0,"td",20)(1,"b-star-toggle",21);M("starClicked",function(){var e=t(c).$implicit,f=P(2),h=P();return v(h.toggleStar(e.triageId,e.teamId,f))});J()()}if(a&2){a=b.$implicit;b=P(2);var d=P();z();D("disabled",d.starInProgress["row.triageId:row.teamId"])("starred",d.isTriageStarred(a.triageId,a.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},Pkb=function(a){a&1&&(I(0,"th",18),Q(1,"Name"),J())},Qkb=function(a,b){a&1&&(I(0,"td",22)(1,
"a",23),Q(2),J()());a&2&&(a=b.$implicit,b=P(3),z(),D("href",b.getTriageLink(a.triageId,a.teamId),uf),z(),R(" ",a.triageName||a.teamName+" triage"," "))},Rkb=function(a){a&1&&(I(0,"th",18),Q(1,"Team"),J())},Skb=function(a,b){a&1&&(I(0,"td",24),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.teamName," "))},Tkb=function(a){a&1&&(I(0,"th",18),Q(1,"Scope"),J())},Ukb=function(a,b){a&1&&(I(0,"td",25),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.scope," "))},Vkb=function(a){a&1&&K(0,"tr",26)},Wkb=function(a){a&1&&
K(0,"tr",27)},Xkb=function(a,b){a&1&&(I(0,"table",6),Fg(1,7),C(2,Nkb,3,0,"th",8)(3,Okb,2,4,"td",9),Gg(),Fg(4,10),C(5,Pkb,2,0,"th",8)(6,Qkb,3,2,"td",11),Gg(),Fg(7,12),C(8,Rkb,2,0,"th",8)(9,Skb,2,1,"td",13),Gg(),Fg(10,14),C(11,Tkb,2,0,"th",8)(12,Ukb,2,1,"td",15),Gg(),C(13,Vkb,1,0,"tr",16)(14,Wkb,1,0,"tr",17),J());a&2&&(a=P(2),D("dataSource",b)("fixedLayout",!0),z(13),D("matHeaderRowDef",a.tableColumns),z(),D("matRowDefColumns",a.tableColumns))},Ykb=function(a){a&1&&K(0,"b-spinner")},Zkb=function(a){a&
1&&(E(0,Xkb,15,4,"table",6),S(1,"async"),Ag(2,Ykb,1,0,"b-spinner"));if(a&2){var b;a=P();F((b=T(1,1,a.triageRows$))?0:2,b)}},$kb=function(a){a&1&&(I(0,"button",9)(1,"span"),Q(2,"Edit"),J(),K(3,"b-icon",15),J());if(a&2){a=P();var b=L(7);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},alb=function(a){a&1&&(I(0,"button",9)(1,"span"),Q(2,"Link"),J(),K(3,"b-icon",15),J());if(a&2){a=P();var b=L(73);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},blb=function(a){a&1&&(I(0,"button",9)(1,"span"),
Q(2,"CC"),J(),K(3,"b-icon",15),J());if(a&2){a=P();var b=L(89);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},clb=function(a){if(a&1){var b=r();I(0,"button",11);M("click",function(){t(b);var c=P();return v(c.bulkEdit("ESTIMATED_EFFORT"))});Q(1,"Estimated Effort");J()}},dlb=function(a,b){if(a&1){var c=r();I(0,"button",11);M("click",function(){var d=t(c).$implicit,e=P();return v(e.quickBulkEdit("PRIORITY",d))});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a," "))},elb=function(a,b){if(a&1){var c=r();
I(0,"button",11);M("click",function(){var d=t(c).$implicit,e=P();return v(e.quickBulkEdit("SEVERITY",d))});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a," "))},flb=function(a,b){if(a&1){var c=r();I(0,"button",11);M("click",function(){var d=t(c).$implicit,e=P();return v(e.quickBulkEdit("STATUS",d))});Q(1);J()}a&2&&(a=b.$implicit,b=P(),z(),R(" ",b.STATUS_JS_FULL_TEXT.get(a)," "))},glb=function(a,b){if(a&1){var c=r();I(0,"button",16);M("click",function(){var e=t(c).$implicit,f=P();return v(f.quickBulkEdit("TYPE",
e))});Q(1);J()}if(a&2){a=b.$implicit;b=P();var d;D("matTooltip",(d=b.constants.issueTypesShortDescriptions.get(a))!=null?d:"");z();R(" ",b.constants.issueTypesDisplayNames.get(a)," ")}},hlb=function(a){if(a&1){var b=r();I(0,"button",4);M("click",function(){t(b);var c=P(2);return v(c.exportCsvClicked.emit())});Q(1,"Export issues to CSV ");J()}},ilb=function(a){if(a&1){var b=r();I(0,"button",4);M("click",function(){t(b);var c=P(2);return v(c.flagAsSpamClicked.emit())});Q(1,"Flag issues as spam ");J()}},
jlb=function(a){a&1&&(I(0,"button",1)(1,"span"),Q(2,"More"),J(),K(3,"b-icon",2),J(),I(4,"mat-menu",null,0),E(6,hlb,2,0,"button",3),E(7,ilb,2,0,"button",3),J());if(a&2){a=L(5);var b=P();D("disabled",b.isAnonymous)("matMenuTriggerFor",a);z(6);F(b.showExportCsv?6:-1);z();F(b.showFlagIssuesAsSpam?7:-1)}},klb=function(a){a&1&&Q(0," Network connection has been interrupted. ")},llb=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},mlb=function(a){if(a&
1){var b=r();I(0,"button",2);M("click",function(c){t(b);P(2);c.stopPropagation();c.preventDefault();var d={width:690,height:500,top:window.screenTop+(window.outerHeight-500)/2,left:window.screenLeft+(window.outerWidth-690)/2};c=window;var e=Xh("/refreshSso")?"/refreshSso":$h(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var k=d.noreferrer;if(f&&
k&&h==="unsafe-url")throw Error("qf");f=k&&!f;h=d.target||"/refreshSso".target;k=[];var q=[];for(A in d){var u=d[A];switch(A){case "width":case "height":case "top":case "left":k.push(A+"="+u);break;case "target":break;case "noopener":case "noreferrer":u?q.push(A):q.push(A+"=false");break;case "attributionsrc":k.push(A+(u?"="+u:""));break;default:k.push(A+"="+(u?1:0))}}["_blank","_self","_top","_parent",""].includes(h);Pa();var A=k.join(",");Ta()&&c.navigator&&c.navigator.standalone&&h&&h!="_self"?
(A=or(document,"A"),ona(A,e),A.target=h,f&&(A.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&A.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),A.dispatchEvent(d)):f?(c=fi(c,"",h,A),d=Yh(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=ci('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Sr(d)+'">'),(c=c.document)&&c.write&&(c.write(ei(d)),c.close()))):((c=fi(c,e,h,A))&&d.noopener&&(c.opener=null),
c&&d.noreferrer&&(c.opener=null));return v()});Q(1," Log in again ");J()}},nlb=function(a){a&1&&(I(0,"b-callout",0)(1,"b-callout-body"),E(2,klb,1,0)(3,llb,1,0),J(),I(4,"b-callout-actions"),E(5,mlb,2,0,"button",1),J()());a&2&&(a=P(),D("messageType","error"),z(2),F(a.isAnonymous?2:3),z(3),F(a.isAnonymous?-1:5))},olb=function(a){a&1&&(I(0,"a",0),Q(1," Hiring! "),J())},plb=function(a,b){a&1&&(I(0,"tr")(1,"td",4),Q(2),J(),I(3,"td"),Q(4,":"),J(),I(5,"td",5),Q(6),J()());a&2&&(a=b.$implicit,z(2),ch(a.displayAs),
z(4),ch(a.description))},qlb=function(a,b){a&1&&(I(0,"thead")(1,"tr"),K(2,"th",2),I(3,"th",3),Q(4),J()(),Dg(5,plb,7,2,"tr",null,Cg),J());a&2&&(a=b.$implicit,z(4),ch(a.title),z(),Eg(a.hotkeys))},rlb=function(a){a=a===void 0?!1:a;var b=era(),c=b.total,d=b.redundancyRatio;Po("after-60s","xhr","redundant",b.redundant);Po("after-60s","xhr","total",c);Po("after-60s","xhr","redundancyRatio",d);a&&(console.table(dra()),console.log(b))},slb=function(){UJa().then(function(a){function b(e,f){var h=a.config.get(f)||
{};h[e]=d;a.config.update(f,h)}function c(e){b(e,"client/rewrite");b(e,"client/firstPartyRewrite")}var d=em().appBaseHref+"proxy/";c("https://people-pa.clients6.google.com");c("https://people-pa.googleapis.com")})},Ur=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Tr({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new Tr({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},
tlb=function(a){a=Vr(a);if(Ca(a))return null;var b=a.split(":");if(b.length!==2||Ca(b[1]))return null;a=b[1].toLowerCase()==="asc"?"ASCENDING":"DESCENDING";return(b=Ur(b[0]))&&a?new Wr(b,a):null},Xr=function(a,b){b=b===void 0?em():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},ulb=function(a){a&1&&K(0,"bug-screensaver")},vlb=function(a){a&1&&(K(0,"img",3),I(1,"span",4),Q(2),J(),Q(3," Powered by Google "),I(4,"span",1),Q(5,"|"),J());a&2&&(a=P(2),D("src",
a.trackerLogo,uf),z(2),R("",a.trackerName," Issue Tracker"))},wlb=function(a){a&1&&(I(0,"div")(1,"span",1),Q(2,"|"),J(),I(3,"a",5),Q(4,"Code of Conduct"),J()());a&2&&(a=P(2),z(3),D("href",a.trackerCoc,uf))},xlb=function(a){a&1&&(I(0,"footer"),E(1,vlb,6,2),I(2,"a",0),Q(3,"Privacy"),J(),I(4,"span",1),Q(5,"|"),J(),I(6,"a",2),Q(7,"Terms"),J(),E(8,wlb,5,1,"div"),J());a&2&&(a=P(),z(),F(a.currentTracker?1:-1),z(7),F(a.trackerCoc?8:-1))},ylb=function(a,b){if(a&1){var c=r();I(0,"b-fab-segmented",1);M("clickMain",
function(e){t(c);var f=P(2);return v(f.trackClick(e))})("clickSegment",function(e){t(c);var f=P(2);return v(f.trackClick(e))});J()}if(a&2){a=P();var d=P();D("label",b)("icon",d.buttonIcon)("href",d.createIssuePath)("segments",a)}},zlb=function(a){a&1&&(E(0,ylb,1,4,"b-fab-segmented",0),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.buttonLabel$))?0:-1,b)}},Alb=function(a){a&1&&Hg(0)},Blb=function(a){a&1&&Hg(0)},Clb=function(a){a&1&&C(0,Blb,1,0,"ng-container",1);a&2&&(a=P(),D("ngTemplateOutlet",a.content))},
Dlb=function(a){a&1&&(I(0,"ul",5)(1,"li")(2,"a",6),K(3,"mat-icon",7),Q(4," Triage "),J()()());a&2&&(a=P(2),z(),wg("selected",a.location.path().startsWith(Fq.triageSettings.makeHref())),z(),D("href",a.ROUTES.triageSettings.makeHref(),uf))},Elb=function(a){if(a&1){var b=r();I(0,"button",13);M("click",function(){t(b);var c=P(4);return v(c.goToTriageSettingsPage())});Q(1," Configure triage ");J()}},Flb=function(a){if(a&1){var b=r();Q(0," Triage ");I(1,"span",9);Q(2,"New");J();I(3,"button",10);M("click",
function(c){t(b);return v(c.stopPropagation())});K(4,"mat-icon",11);J();I(5,"mat-menu",null,2);C(7,Elb,2,0,"ng-template",12);J()}a&2&&(a=L(6),z(3),D("matMenuTriggerFor",a))},Glb=function(a){a&1&&(I(0,"div",17)(1,"span",18),Q(2),S(3,"async"),J()());a&2&&(a=P().$implicit,z(2),ch(T(3,1,a.displayName$)))},Hlb=function(a,b){a&1&&(I(0,"span",26),Q(1),J());a&2&&(z(),R(" ",b," "))},Ilb=function(a,b){if(a&1){var c=r();I(0,"a",25);M("click",function(f){var h=t(c),k=P(8);return v(k.onAnchorClick(h,f))});I(1,
"span");Q(2);J();E(3,Hlb,2,1,"span",26);S(4,"async");J()}if(a&2){var d;a=P().$implicit;var e=P();D("href",b,uf);z(2);R(" ",e.phase(a).displayName," ");z();F((d=T(4,3,e.phase(a).attentionCount$))?3:-1,d)}},Jlb=function(a,b){a&1&&(I(0,"li",24),E(1,Ilb,5,5,"a",22),J());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);wg("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));D("title",b.phase(a).displayName);z();F((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?
1:-1,c)}},Klb=function(a){a&1&&(I(0,"ul",19),Dg(1,Jlb,2,4,"li",20,Cg),K(3,"mat-divider"),I(4,"li",21)(5,"a",22)(6,"span"),Q(7," Issue Themes "),K(8,"mat-icon",23),J()()()());if(a&2){a=P(2).$implicit;var b=P(4);z();Eg(b.ALL_PHASES);z(3);wg("selected-indented",b.location.path().endsWith("issue-themes"));z();D("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),uf)}},Llb=function(a){a&1&&E(0,Klb,9,3,"ul",19);if(a&2){var b;a=P().$implicit;var c=P(4);F((b=c.triageService.triageDataFactory.get(a.teamId,
a.triageId))?0:-1,b)}},Nlb=function(a,b){if(a&1){var c=r();I(0,"li",15);S(1,"async");I(2,"sidebar-zippy",16);S(3,"async");M("onExpand",function(){var h=t(c).$implicit;P(4).bLocation.setUrl(Fq.viewTriage.makeHref(h.teamId,h.triageId));return v()});C(4,Glb,4,3,"ng-template",null,3,nh)(6,Llb,1,1,"ng-template",null,4,nh);J()()}if(a&2){a=b.$implicit;b=L(5);var d=L(7),e=P(4);D("title",T(1,4,a.displayName$));z(2);var f;D("header",b)("content",d)("expanded",(f=T(3,6,Mlb(e,a.teamId,a.triageId)))!=null?f:!1)}},
Olb=function(a){a&1&&(I(0,"ul",14),Dg(1,Nlb,8,8,"li",15,Cg),J());a&2&&(a=P(2),z(),Eg(a))},Plb=function(a){a&1&&(K(0,"hr"),I(1,"sidebar-zippy",8),C(2,Flb,8,1,"ng-template",null,0,nh)(4,Olb,3,0,"ng-template",null,1,nh),J());if(a&2){a=L(3);var b=L(5);z();D("header",a)("content",b)}},Qlb=function(a,b){a&1&&E(0,Dlb,5,3,"ul",5)(1,Plb,6,2);a&2&&F(b.length===0?0:1)},Rlb=function(a){a&1&&Q(0," Archived ")},Slb=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(c){t(b);return v(c.stopPropagation())});
K(1,"mat-icon",16);J()}a&2&&(P(),a=L(5),D("matMenuTriggerFor",a))},Tlb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");J()}},Ulb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P(3).$implicit;return v(c.unarchive())});Q(1," Unarchive ");J()}},Vlb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});
Q(1," Open ");J();I(2,"button",17);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");J();I(4,"button",17);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.openEditBookmarkGroup(c.id))});Q(5," Settings ");J();E(6,Tlb,2,0,"button",18);E(7,Ulb,2,0,"button",18)}a&2&&(a=P(2).$implicit,z(6),F(a.isUnstarable()?6:-1),z(),F(a.isEditable()?7:-1))},Wlb=function(a){a&1&&(I(0,"div",11)(1,"span",12),Q(2),J(),E(3,Slb,2,1,"button",
13),I(4,"mat-menu",null,4),C(6,Vlb,8,2,"ng-template",14),J()());a&2&&(a=P().$implicit,pg("id","bv2-user-archived-bookmarkgroup-item-",a.id),z(2),ch(a.name),z(),F(a?3:-1))},Xlb=function(a,b){if(a&1){var c=r();I(0,"li",21)(1,"a",22);M("click",function(d){var e=t(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});I(2,"span",12);Q(3);J()()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",
a.type=="SAVED_SEARCH"),Bka("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id),D("title",a.name),z(),D("href",a.href,uf),z(2),R(" ",a.name," "))},Ylb=function(a){a&1&&(I(0,"ul",19),Dg(1,Xlb,4,13,"li",20,Cg),J());a&2&&(a=P().$implicit,z(),Eg(a.items))},Zlb=function(a,b){a&1&&(I(0,"li",8)(1,"sidebar-zippy",10),C(2,Wlb,7,4,"ng-template",null,2,nh)(4,Ylb,3,0,"ng-template",null,3,nh),J()());if(a&2){a=b.$implicit;b=L(3);var c=L(5);D("title",a.name);z();D("header",b)("content",c)}},$lb=function(a){a&
1&&(I(0,"button",25),K(1,"mat-icon",16),J());a&2&&(P(),a=L(6),D("matMenuTriggerFor",a))},amb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P(2).$implicit;return v(c.unstar())});Q(1," Unstar ");J()}},bmb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P(2).$implicit;return v(c.unarchive())});Q(1," Unarchive ");J()}},cmb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){t(b);var c=P().$implicit,d=P(3);return v(d.openEditHotlist(c.id))});
Q(1," Settings ");J();E(2,amb,2,0,"button",18);E(3,bmb,2,0,"button",18)}a&2&&(a=P().$implicit,z(2),F(a.isUnstarable()?2:-1),z(),F(a.isEditable()?3:-1))},dmb=function(a,b){if(a&1){var c=r();I(0,"li",23)(1,"a",24);M("click",function(d){var e=t(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});I(2,"span",12);Q(3);J()();E(4,$lb,2,1,"button",25);I(5,"mat-menu",null,5);C(7,cmb,4,2,"ng-template",14);J()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),Pg("id","bv2-user-hotlists-archived-hotlist-item-",
a.id),D("title",a.name),z(),D("href",a.href,uf),z(2),ch(a.name),z(),F(a?4:-1))},emb=function(a){a&1&&(I(0,"ul",7),Dg(1,Zlb,6,3,"li",8,Cg),Dg(3,dmb,8,8,"li",9,Cg),J());a&2&&(a=P(2),z(),Eg(a.bookmarkGroups),z(2),Eg(a.hotlists))},fmb=function(a){a&1&&(I(0,"div"),K(1,"hr"),I(2,"sidebar-zippy",6),C(3,Rlb,1,0,"ng-template",null,0,nh)(5,emb,5,0,"ng-template",null,1,nh),J()());if(a&2){a=L(4);var b=L(6);z(2);D("header",a)("content",b)}},gmb=function(a){a&1&&K(0,"b-spinner")},hmb=function(a){if(a&1){var b=
r();I(0,"b-star-toggle",13);M("starClicked",function(){t(b);var c=P().$implicit,d=P();return v(d.toggleStar(c))});J()}a&2&&(a=P().$implicit,D("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},imb=function(a){a&1&&K(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,D("hotlist",a))},jmb=function(a){a&1&&K(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,D("bookmarkGroup",a))},kmb=function(a,b){a&1&&(I(0,"mat-option",6)(1,"div",8),E(2,hmb,1,3,"b-star-toggle",
9),I(3,"onedev-hovercard",null,2),E(5,imb,1,1,"b-hotlist-card",10)(6,jmb,1,1,"b-bookmark-group-card",11),J(),I(7,"span",12),Q(8),J()()());if(a&2){a=b.$implicit;b=L(4);var c=P();D("value",a);z();wg("bv2-bookmark-group",c.showHotlists&&a.isGroup);z();F(c.shouldShowStar(a)?2:-1);z(3);F(a.isGroup?6:5);z(2);D("onedevHovercardTrigger",b);z();ch(a.name)}},lmb=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);M("itemSelect",function(c){t(b);var d=
P();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return v()});J()()()}a&2&&(a=P(),z(2),D("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},mmb=function(a){if(a&1){var b=r();I(0,"span");Q(1,"Bookmark groups");J();I(2,"b-hotlist-search-popup",8);M("itemSelect",function(c){t(b);var d=P();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return v()})("click",function(c){t(b);return v(c.stopPropagation())});J()}a&2&&(z(2),
D("showHotlists",!1))},nmb=function(a){if(a&1){var b=r();I(0,"button",16);M("click",function(c){t(b);return v(c.stopPropagation())});K(1,"mat-icon",17);J()}a&2&&(P(),a=L(5),D("matMenuTriggerFor",a))},omb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(3).$implicit;return v(c.unstar())});Q(1," Unstar ");J()}},pmb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(3).$implicit;return v(c.archive())});Q(1," Archive ");J()}},qmb=function(a){if(a&
1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(3).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");J()}},rmb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");J();I(2,"button",18);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");J();I(4,"button",18);M("click",function(){t(b);var c=
P(2).$implicit,d=P(3);return v(d.editBookmarkGroup(c.id))});Q(5," Settings ");J();E(6,omb,2,0,"button",19);E(7,pmb,2,0,"button",19);E(8,qmb,2,0,"button",19)}a&2&&(a=P(2).$implicit,z(6),F(a.isUnstarable()?6:-1),z(),F(a.isEditable()?7:-1),z(),F(a.isPreferredHomepage()?-1:8))},smb=function(a){a&1&&(I(0,"div",12)(1,"span",13),Q(2),J(),E(3,nmb,2,1,"button",14),I(4,"mat-menu",null,4),C(6,rmb,9,3,"ng-template",15),J()());a&2&&(a=P().$implicit,pg("id","bv2-user-bookmarkgroup-item-",a.id),z(2),ch(a.name),
z(),F(a?3:-1))},tmb=function(a){a&1&&(I(0,"button",24),K(1,"mat-icon",17),J());a&2&&(P(),a=L(6),D("matMenuTriggerFor",a))},umb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(2).$implicit;return v(c.unstar())});Q(1," Unstar ");J()}},vmb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});Q(1," Set as homepage ");J()}},wmb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);
var c=P().$implicit,d=P(5);c.type==="HOTLIST"?d.location.setUrl(Fq.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return v()});Q(1," Settings ");J();E(2,umb,2,0,"button",19);E(3,vmb,2,0,"button",19)}a&2&&(a=P().$implicit,z(2),F(a.isUnstarable()?2:-1),z(),F(a.isPreferredHomepage()?-1:3))},xmb=function(a,b){if(a&1){var c=r();I(0,"li",22)(1,"a",23);M("click",function(d){var e=t(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});I(2,"span",13);Q(3);J()();E(4,tmb,2,
1,"button",24);I(5,"mat-menu",null,5);C(7,wmb,4,2,"ng-template",15);J()()}a&2&&(a=b.$implicit,b=P(2).$implicit,wg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Bka("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id),D("title",a.getDisplayName()),z(),D("href",a.href,uf),z(2),R(" ",a.getDisplayName()," "),z(),F(b?4:-1))},ymb=function(a){a&1&&(I(0,"ul",20),Dg(1,xmb,8,14,"li",21,Cg),J());a&2&&
(a=P().$implicit,z(),Eg(a.items))},zmb=function(a,b){a&1&&(I(0,"li",10)(1,"sidebar-zippy",11),C(2,smb,7,4,"ng-template",null,2,nh)(4,ymb,3,0,"ng-template",null,3,nh),J()());if(a&2){a=b.$implicit;b=L(3);var c=L(5);D("title",a.name);z();D("header",b)("content",c)("expanded",!1)}},Amb=function(a){a&1&&(I(0,"ul",9),Dg(1,zmb,6,4,"li",10,Cg),J());a&2&&(a=P(2),z(),Eg(a.bookmarkGroups))},Bmb=function(a){a&1&&E(0,Amb,3,0,"ul",9);a&2&&(a=P(),F(a.bookmarkGroups?0:-1))},Cmb=function(a){if(a&1){var b=r();I(0,
"span");Q(1,"Hotlists");J();I(2,"b-hotlist-search-popup",5);M("itemSelect",function(c){t(b);var d=P();d.analytics.trackEvent("hotlistSearch","goToHotlist");d.location.setUrl(c.href);return v()})("click",function(c){t(b);return v(c.stopPropagation())});J()}a&2&&(z(2),D("showGroups",!1))},Dmb=function(a){a&1&&(I(0,"button",11),K(1,"mat-icon",13),J());a&2&&(P(),a=L(6),D("matMenuTriggerFor",a))},Emb=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});
K(1,"mat-icon",17);Q(2," Add to 'Home' screen ");J()}},Fmb=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(){t(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});K(1,"mat-icon",18);Q(2," Set as preferred homepage ");J()}},Gmb=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(){t(b);var c=P(2).$implicit;return v(c.unstar())});K(1,"mat-icon",19);Q(2," Unstar ");J()}},Hmb=function(a){if(a&1){var b=r();E(0,Emb,3,0,"button",14);E(1,Fmb,3,0,"button",14);I(2,
"button",15);M("click",function(){t(b);var d=P().$implicit,e=P(3);return v(e.openEditHotlist(d.id))});K(3,"mat-icon",16);Q(4," Settings ");J();E(5,Gmb,3,0,"button",14)}if(a&2){a=P().$implicit;var c=P(3);F(c.ENABLE_MISSION_CONTROL?0:-1);z();F(a.isPreferredHomepage()?-1:1);z(4);F(a.isUnstarable()?5:-1)}},Imb=function(a,b){if(a&1){var c=r();I(0,"li",8)(1,"a",9);M("click",function(d){var e=t(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});I(2,"span",10);Q(3);J()();E(4,Dmb,2,1,"button",11);I(5,
"mat-menu",null,2);C(7,Hmb,6,3,"ng-template",12);J()()}a&2&&(a=b.$implicit,wg("selected",a.isSelected()),Pg("id","bv2-user-hotlists-hotlist-item-",a.id),D("title",a.name),z(),D("href",a.href,uf),z(2),ch(a.name),z(),F(a?4:-1))},Jmb=function(a){a&1&&(I(0,"ul",6),Dg(1,Imb,8,8,"li",7,Cg),J());a&2&&(a=P(2),z(),Eg(a.hotlists))},Kmb=function(a){a&1&&E(0,Jmb,3,0,"ul",6);a&2&&(a=P(),F(a.hotlists?0:-1))},Lmb=function(a){a&1&&(I(0,"span"),Q(1,"Saved searches"),J())},Mmb=function(a){if(a&1){var b=r();I(0,"button",
14);M("click",function(){t(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});K(1,"mat-icon",17);Q(2," Add to 'Home' screen ");J()}},Nmb=function(a){if(a&1){var b=r();I(0,"button",14);M("click",function(){t(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});K(1,"mat-icon",18);Q(2," Set as preferred homepage ");J()}},Pmb=function(a){if(a&1){var b=r();E(0,Mmb,3,0,"button",13);E(1,Nmb,3,0,"button",13);I(2,"button",14);M("click",function(){t(b);var d=P().$implicit,e=P(3);
return v(e.openEditSavedSearch(d.id))});K(3,"mat-icon",15);Q(4," Settings ");J();I(5,"button",14);M("click",function(){t(b);var d=P().$implicit,e=P(3);return v(Omb(e,d))});K(6,"mat-icon",16);Q(7," Delete ");J()}if(a&2){a=P().$implicit;var c=P(3);F(c.ENABLE_MISSION_CONTROL?0:-1);z();F(a.isPreferredHomepage()?-1:1)}},Qmb=function(a,b){if(a&1){var c=r();I(0,"li",7)(1,"a",8);M("click",function(d){var e=t(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});I(2,"span",9);Q(3);J()();I(4,"button",10);
K(5,"mat-icon",11);J();I(6,"mat-menu",null,2);C(8,Pmb,8,2,"ng-template",12);J()()}a&2&&(a=b.$implicit,b=L(7),wg("selected",a.isSelected()),pg("id","bv2-saved-searches-search-item-",a.id),D("title",a.name),z(),D("href",a.href,uf),z(2),ch(a.name),z(),D("matMenuTriggerFor",b))},Rmb=function(a){a&1&&(I(0,"ul",5),Dg(1,Qmb,9,8,"li",6,Cg),J());a&2&&(a=P(2),z(),Eg(a.searches))},Smb=function(a){a&1&&E(0,Rmb,3,0,"ul",5);a&2&&(a=P(),F(a.searches?0:-1))},Tmb=function(a,b){a&1&&K(0,"mat-icon",23);a&2&&D("matBadge",
b>99?"99+":b)("matBadgeHidden",b===0)("matBadgeDescription","Badge indicating "+b+" tasks need attention")},Umb=function(a){a&1&&K(0,"mat-icon",24)},Vmb=function(a){a&1&&(I(0,"button",25),K(1,"mat-icon",26),J());a&2&&(P(),a=L(10),D("matMenuTriggerFor",a))},Xmb=function(a){if(a&1){var b=r();I(0,"button",27);M("click",function(){t(b);var c=P(2);Wmb(c,"MISSION_CONTROL");return v()});Q(1," Set as homepage ");J()}},Ymb=function(a){if(a&1){var b=r();I(0,"li",22)(1,"a",8);M("click",function(d){t(b);var e=
P();e.onAnchorClick(e.missionControlPath,d);return v()});E(2,Tmb,1,3,"mat-icon",23);S(3,"async");S(4,"async");Ag(5,Umb,1,0,"mat-icon",24);Q(6," Home ");J();E(7,Vmb,2,1,"button",25);S(8,"async");I(9,"mat-menu",null,1);C(11,Xmb,2,0,"ng-template",11);J()()}if(a&2){var c;a=P();wg("selected",!!a.location.path().match(/^\/home\b/));z();D("href",a.missionControlPath,uf);z();F((c=!T(3,5,a.hideBadgeInNav$)&&T(4,7,a.missionControlTaskCount$))?2:5,c);z(5);F(T(8,9,a.isHomepageMissionControl$)?-1:7)}},Zmb=function(a){a&
1&&(I(0,"button",10),K(1,"mat-icon",26),J());a&2&&(P(),a=L(13),D("matMenuTriggerFor",a))},$mb=function(a){if(a&1){var b=r();I(0,"button",27);M("click",function(){t(b);var c=P();Wmb(c,"ASSIGNED_TO_ME");return v()});Q(1," Set as homepage ");J()}},anb=function(a){a&1&&K(0,"nav-sidebar-triage")},bnb=function(a,b){b=b===void 0?156:b;var c=document.createElement("i");c.id=a;c.title=a;c.style.width="10px";c.style.height="10px";c.style.borderRadius="10px";c.style.backgroundColor="#ccc";c.style.zIndex="999";
c.style.position="absolute";c.style.top="34px";c.style.left=b+"px";c.style.opacity="0";document.body.appendChild(c);return c},cnb=function(a,b,c){a.style.animation="";a.style.backgroundColor=b;setTimeout(function(){a.style.animation="blink-then-fade "+c+"ms ease-in 1"},0)},enb=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;dnb++;var d=156;d+=(dnb-1)*12;return function(e){e=e===void 0?b:e;var f,h=(f=document.getElementById(a))!=null?f:bnb(a,d);cnb(h,e,c)}},qnb=function(a,b,c){c=c===void 0?
[]:c;var d=d===void 0?{}:d;if(b==null)return"(undefined)";var e=b.snapshot[0],f,h=(f=c[0])!=null?f:b.description;c=c.slice(1);c.sort(function(k,q){return q.modifiedDate-k.modifiedDate});return["## "+e.title,"ID: http://b/"+b.issueId,"Priority: "+e.priority,"Status: "+e.status,"Modified: "+xq(b.majorModifiedTimeMicros/1E3/1E3),fnb(b),gnb(b),hnb(b,d),inb(b),jnb(b),knb(b),lnb(b),mnb(b),nnb(a,h),onb(b),pnb(a,c)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},hnb=function(a,b){a=a.snapshot[0].hotlistId;
if(a!=null&&a.length!==0)return"Hotlists: "+a.map(function(c){var d;return(d=b[c])!=null?d:"["+c+"]"}).join(", ")},pnb=function(a,b){if(b.length!==0){var c=b.map(function(d){a:{if(d!=null){var e=rnb(a,d);e=snb(e);if(e!=null){var f,h=(f=d.lastCommentEditorUser)==null?void 0:f.emailAddress;d=xq(d.modifiedDate/1E3);d=h+": "+e+" ("+d+")";break a}}d=void 0}return d}).filter(Boolean).join("\n\n");return"\n### Comments ("+b.length+")\n"+c}},snb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g,
" "),a=wJa(a,b)},rnb=function(a,b){var c=b.unlinkifiedComment;b=b.formattedComment;if(c)return c;if(b&&a)return xxa(b)},nnb=function(a,b){if(b!=null&&(a=rnb(a,b),a=snb(a,600),a!=null))return"\n### Description\n"+a},knb=function(a){a=a.descendantCount;if(!(a<=0))return"Descendant count: "+a},inb=function(a){var b;a=((b=l(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},jnb=function(a){var b;a=((b=l(a.snapshot).next().value.blockedByIssueId)!=
null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},fnb=function(a){var b;return(a=((b=l(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},gnb=function(a){var b;return(a=((b=l(a.snapshot).next().value.reporterUser)!=null?b:{}).emailAddress)?"Reporter: "+a:void 0},lnb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},onb=function(a){var b=a.statusUpdate;if(b!=null){a=b.updateText;var c,
d=(c=b.author)==null?void 0:c.emailAddress,e;c=(e=b.updateTime)!=null?e:{};e=xq((c.seconds===void 0?0:c.seconds)+(c.nanos===void 0?0:c.nanos)/1E3/1E3/1E3);return"\n### Status Update\n"+d+": "+a+" ("+e+")"}},mnb=function(a){var b,c;a=(c=(b=a.userActivityStats)==null?void 0:b.thirtyDayViewCount)!=null?c:0;if(!(a<=10))return"30 day views: "+a},tnb=function(a,b){b=b===void 0?0:b;var c=new Date;c.setDate(c.getDate()+b);document.cookie="tracker_override="+a+(b?"; expires="+c.toUTCString():"")},unb=function(a){a&
1&&(I(0,"div",1),K(1,"router-outlet"),J())},wnb=function(a){if(a&1){var b=r();I(0,"a",9);M("keydown.enter",function(){t(b);var c=P(3);return v(vnb(c))})("keydown.space",function(){t(b);var c=P(3);return v(vnb(c))})("click",function(){t(b);var c=P(3);return v(vnb(c))});Q(1," Dismiss");J()}},xnb=function(a){a&1&&(I(0,"div",2)(1,"div",6),K(2,"span",7),E(3,wnb,2,0,"a",8),J()());a&2&&(a=P(2),z(2),D("innerHtml",a.announcement.message,tf),z(),F(a.announcement.dismissible?3:-1))},znb=function(a){if(a&1){var b=
r();I(0,"b-resizable-sidebar",10,0);M("widthChanged",function(c){t(b);var d=P(2);return v(ynb(d,c))});K(2,"b-sidebar");J()}a&2&&(a=P(2),D("size",a.sidebarWidth))},Anb=function(a){a&1&&(K(0,"b-hiring-banner")(1,"b-terms-of-service"),E(2,xnb,4,2,"div",2),K(3,"b-sso-expired-callout-outlet"),I(4,"div",3),E(5,znb,3,1,"b-resizable-sidebar",4),I(6,"div",5),K(7,"router-outlet"),J()(),K(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){a=P();z(2);var b;var c=a.announcement;c=c===void 0?a.announcement:c;
if((b=c)!=null&&b.message){var d;b=((d=c.tags)==null?void 0:d.length)>0||!Yr(a.activeSession,"canSeeAnnouncementBanner")?!1:c.dismissible?a.dismissedMessageId==null?!1:c.messageId!==a.dismissedMessageId:!0}else b=!1;F(b?2:-1);z(3);F(a.isAnonymous?-1:5)}},Bnb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},Cnb=function(a){return new Set(a.map(function(b){return Tj(b)}))},Zr=function(a,b,c){return a.has(b)?
c:""},Dnb=function(a,b,c){return a.has(b)?c:[]},$r=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},Gnb=function(a){if(!a)return"";var b=Enb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=Fnb.get(a.piiRetentionSelection);c=a.piiRetentionPeriodDays;a=a.spiiRetentionPeriodDays;d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},Inb=function(a){if(!a)return"";
var b=a.inherit,c=Hnb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},Jnb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},Knb=function(a,b){a&1&&(I(0,"mat-option",17),Q(1),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",a," "))},Lnb=function(a){if(a&1){var b=r();I(0,"mat-form-field",14)(1,"mat-select",16,0);M("selectionChange",function(c){t(b);var d=P(2);return v(d._changePageSize(c.value))});Dg(3,Knb,2,2,"mat-option",17,Cg);
J();I(5,"div",18);M("click",function(){t(b);var c=L(2);return v(c.open())});J()()}a&2&&(a=P(2),D("appearance",a._formFieldAppearance)("color",a.color),z(),D("value",a.pageSize)("disabled",a.disabled)("aria-labelledby",a._pageSizeLabelId)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),z(2),Eg(a._displayedPageSizeOptions))},Mnb=function(a){a&1&&(I(0,"div",15),Q(1),J());a&2&&(a=P(2),z(),ch(a.pageSize))},Nnb=function(a){a&1&&(I(0,"div",3)(1,
"div",13),Q(2),J(),E(3,Lnb,6,7,"mat-form-field",14),E(4,Mnb,2,1,"div",15),J());a&2&&(a=P(),z(),ng("id",a._pageSizeLabelId),z(),R(" ",a._intl.itemsPerPageLabel," "),z(),F(a._displayedPageSizeOptions.length>1?3:-1),z(),F(a._displayedPageSizeOptions.length<=1?4:-1))},Onb=function(a){if(a&1){var b=r();I(0,"button",19);M("click",function(){t(b);var c=P();return v(c._buttonClicked(0,c._previousButtonsDisabled()))});Vd();I(1,"svg",8);K(2,"path",20);J()()}a&2&&(a=P(),D("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",
a._previousButtonsDisabled())("disabled",a._previousButtonsDisabled())("tabindex",a._previousButtonsDisabled()?-1:null),ng("aria-label",a._intl.firstPageLabel))},Pnb=function(a){if(a&1){var b=r();I(0,"button",21);M("click",function(){t(b);var c=P();return v(c._buttonClicked((c.pageSize?Math.ceil(c.length/c.pageSize):0)-1,c._nextButtonsDisabled()))});Vd();I(1,"svg",8);K(2,"path",22);J()()}a&2&&(a=P(),D("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("disabled",a._nextButtonsDisabled())("tabindex",
a._nextButtonsDisabled()?-1:null),ng("aria-label",a._intl.lastPageLabel))},Qnb=function(a){if(a&1){var b=r();I(0,"mat-paginator",3);M("page",function(c){t(b);var d=P(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return v()});J()}a&2&&(a=P(),D("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},Rnb=function(a,b){if(a&1){var c=r();I(0,"li")(1,"a",4);M("click",function(){var e=t(c).$implicit,f=P();return v(f.onVisit.emit(e))});Q(2);
J();I(3,"onedev-hovercard",null,0);K(5,"b-component-card",5);J()()}if(a&2){a=b.$implicit;b=L(4);var d=P();z();D("onedevHovercardTrigger",b)("href",d.ROUTES.editComponent.makeHref(a.componentId),uf);z();R(" ",a.name," ");z(3);D("componentId",a.componentId.toString())}},Snb=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P();return v(c.onClickCopyIssueShortLinks.emit())});Q(1);J()}a&2&&(a=P(),z(),R(" Copy '",a.shortLinkPrefix,"'' links "))},Tnb=function(a){if(a&1){var b=
r();I(0,"div",2)(1,"button",3);M("click",function(){t(b);var c=P();return v(c.action())});Q(2);J()()}a&2&&(a=P(),z(2),ch(a.data.action))},Unb=function(){},Vnb=function(a){if(a&1){var b=r();I(0,"a",17);M("click",function(){t(b);var c=P().$implicit;return v(c.showChildren=!1)});K(1,"mat-icon",18);J()}},Wnb=function(a){if(a&1){var b=r();I(0,"a",19);M("click",function(){t(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});K(1,"mat-icon",20);J()}},Xnb=function(a){a&1&&(I(0,"span"),Q(1,"[Archived]"),
J())},Znb=function(a){a&1&&(I(0,"a",10),Q(1," (Recent Issues) "),J());if(a&2){a=P().$implicit;var b=P();D("href",b.paths.listIssues(jh(1,Ynb,"status:open componentid:"+a.componentId)),uf)}},$nb=function(a){a&1&&(I(0,"a",15),Q(1," Create issue "),J());if(a&2){a=P().$implicit;var b=P();D("href",b.paths.createIssue()+"?component="+a.componentId,uf)}},aob=function(a){a&1&&(I(0,"div",21),Q(1," No child components found. "),J())},bob=function(a){a&1&&(I(0,"div",22),K(1,"b-spinner"),J())},cob=function(a){if(a&
1){var b=r();I(0,"component-subtree-list",24);M("childClosed",function(d){t(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});J()}if(a&2){a=P(2).$implicit;var c=P();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},dob=function(a){a&1&&(I(0,"div",16),E(1,aob,2,0,"div",21),E(2,bob,2,0,"div",22),E(3,cob,1,4,"component-subtree-list",23),J());a&2&&(a=P().$implicit,z(),F(a.noChildren?1:-1),z(),F(a.noChildren||a.children?-1:2),z(),
F(a.children?3:-1))},eob=function(a,b){if(a&1){var c=r();I(0,"li",2);M("click",function(d){var e=t(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});I(1,"div",3);K(2,"div",4);I(3,"div",5);E(4,Vnb,2,0,"a",6)(5,Wnb,2,0,"a",7);J();I(6,"div",8)(7,"div")(8,"a",9);Q(9);J();E(10,Xnb,2,0,"span")(11,Znb,2,3,"a",10);K(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);J();I(14,"div",13);Q(15);J()();I(16,"div",14);E(17,$nb,2,1,"a",15);J()();E(18,dob,4,3,"div",16);J()}a&2&&
(a=b.$implicit,b=P(),Pg("id","component-",a.componentId),z(4),F(a.showChildren?4:5),z(4),D("href",b.ROUTES.editComponent.makeHref(a.componentId),uf),z(),R(" ",a.name," "),z(),F(a.archived?10:11),z(2),D("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),z(),D("trackerId",a.trackerId),z(2),ch(a.description),z(2),F(a.archived?-1:17),z(),F(a.showChildren?18:-1))},fob=function(a){if(a&1){var b=r();I(0,"a",17);M("click",function(){t(b);var c=P().$implicit;return v(c.showChildren=!1)});K(1,
"mat-icon",18);J()}},gob=function(a){if(a&1){var b=r();I(0,"a",19);M("click",function(){t(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});K(1,"mat-icon",20);J()}},hob=function(a){a&1&&(I(0,"span"),Q(1,"[Archived]"),J())},job=function(a){a&1&&(I(0,"a",10),Q(1," (Recent Issues) "),J());if(a&2){a=P().$implicit;var b=P();D("href",b.paths.listIssues(jh(1,iob,"status:open componentid:"+a.componentId)),uf)}},kob=function(a){a&1&&(I(0,"a",15),Q(1," Create issue "),J());if(a&2){a=P().$implicit;
var b=P();D("href",b.paths.createIssue()+"?component="+a.componentId,uf)}},lob=function(a){a&1&&(I(0,"div",21),Q(1," No child components found. "),J())},mob=function(a){a&1&&(I(0,"div",22),K(1,"b-spinner"),J())},nob=function(a){if(a&1){var b=r();I(0,"component-subtree-list",24);M("childClosed",function(d){t(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});J()}if(a&2){a=P(2).$implicit;var c=P();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",
c.includeArchived)}},oob=function(a){a&1&&(I(0,"div",16),E(1,lob,2,0,"div",21),E(2,mob,2,0,"div",22),E(3,nob,1,4,"component-subtree-list",23),J());a&2&&(a=P().$implicit,z(),F(a.noChildren?1:-1),z(),F(a.noChildren||a.children?-1:2),z(),F(a.children?3:-1))},pob=function(a,b){if(a&1){var c=r();I(0,"li",2);M("click",function(d){var e=t(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});I(1,"div",3);K(2,"div",4);I(3,"div",5);E(4,fob,2,0,"a",6)(5,gob,2,0,"a",7);J();I(6,"div",8)(7,"div")(8,"a",
9);Q(9);J();E(10,hob,2,0,"span")(11,job,2,3,"a",10);K(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);J();I(14,"div",13);Q(15);J()();I(16,"div",14);E(17,kob,2,1,"a",15);J()();E(18,oob,4,3,"div",16);J()}a&2&&(a=b.$implicit,b=P(),D("id","component-"+a.componentId),z(4),F(a.showChildren?4:5),z(4),D("href",b.ROUTES.editComponent.makeHref(a.componentId),uf),z(),R(" ",a.name," "),z(),F(a.archived?10:11),z(2),D("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),z(),
D("trackerId",a.trackerId),z(2),ch(a.description),z(2),F(a.archived?-1:17),z(),F(a.showChildren?18:-1))},qob=function(a){a&1&&(I(0,"div"),Q(1," Loading custom fields... "),J())},rob=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(2),z(),R(" There are no custom fields in component ",a.selectedComponent.name,". "))},sob=function(a,b){a&1&&(I(0,"mat-option",6),Q(1),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",a.name," "))},tob=function(a){if(a&1){var b=r();I(0,"div")(1,"mat-form-field",4)(2,"mat-label");
Q(3,"Custom field");J();I(4,"mat-select",5);M("selectionChange",function(c){t(b);var d=P(2);return v(d.fieldSelected.emit(c.value))});Dg(5,sob,2,2,"mat-option",6,Cg);J()()()}a&2&&(a=P(2),z(5),Eg(a.customFields))},uob=function(a){a&1&&(I(0,"div",3),E(1,qob,2,0,"div"),E(2,rob,2,1,"div"),E(3,tob,7,0,"div"),J());a&2&&(a=P(),z(),F(a.customFields==null?1:-1),z(),F(a.customFields&&!a.customFields.length?2:-1),z(),F((a.customFields==null?0:a.customFields.length)?3:-1))},vob=function(a){a&1&&Hg(0)},wob=function(){},
xob=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P().value,z(),ch(a.textValue))},yob=function(a){a&1&&K(0,"b-formatted-date-time",4);if(a&2){a=P().value;var b=P();D("date",b.toDate(a.dateValue))}},zob=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P().value,z(),ch(a.enumValue))},Aob=function(a){a&1&&(Fg(0),Q(1),Gg());a&2&&(a=P().value,z(),ch(a.numericValue))},Bob=function(a,b){a&1&&(Fg(0),Q(1),Gg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();dh("",a,"",c===b-1?"":", ")}},Cob=function(a){a&1&&Dg(0,
Bob,2,2,"ng-container",null,Cg);a&2&&(a=P().value,Eg(a.repeatedTextValue.values))},Dob=function(a,b){a&1&&(Fg(0),K(1,"b-formatted-date-time",4),Q(2),Gg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);z();D("date",d.toDate(a));z();ch(c===b-1?"":", ")}},Eob=function(a){a&1&&Dg(0,Dob,3,2,"ng-container",null,Cg);a&2&&(a=P().value,Eg(a.repeatedDateValue.values))},Fob=function(a,b){a&1&&(Fg(0),Q(1),Gg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();dh("",a,"",c===b-1?"":", ")}},Gob=
function(a){a&1&&Dg(0,Fob,2,2,"ng-container",null,Cg);a&2&&(a=P().value,Eg(a.repeatedEnumValue.values))},Hob=function(a,b){a&1&&(Fg(0),Q(1),Gg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();dh("",a,"",c===b-1?"":", ")}},Iob=function(a){a&1&&Dg(0,Hob,2,2,"ng-container",null,Cg);a&2&&(a=P().value,Eg(a.repeatedNumericValue.values))},Job=function(a,b){a&1&&(E(0,xob,2,1,"ng-container"),E(1,yob,1,1,"b-formatted-date-time",4),E(2,zob,2,1,"ng-container"),E(3,Aob,2,1,"ng-container"),E(4,Cob,2,0),E(5,
Eob,2,0),E(6,Gob,2,0),E(7,Iob,2,0));a&2&&(a=b.value,b=P(),F(a.textValue!=null?0:-1),z(),F(b.isNonemptyJsonDateValue(a.dateValue)?1:-1),z(),F(a.enumValue!=null?2:-1),z(),F(a.numericValue!=null?3:-1),z(),F(a.repeatedTextValue!=null?4:-1),z(),F(a.repeatedDateValue!=null?5:-1),z(),F(a.repeatedEnumValue!=null?6:-1),z(),F(a.repeatedNumericValue!=null?7:-1))},Kob=function(a){a&1&&(I(0,"div")(1,"p"),Q(2),J()());a&2&&(a=P(),z(2),dh(" Checking if you have permissions to mark these issues as spam. Checked ",
a.issuesChecked," of ",a.issuesToFlag.length,"... "))},Lob=function(a,b){a&1&&(I(0,"li"),Q(1),J());a&2&&(a=b.$implicit,z(),dh(" ",a.issueId," - ",a.title," "))},Mob=function(a){a&1&&(I(0,"div")(1,"p"),Q(2),J(),I(3,"ul"),Dg(4,Lob,2,2,"li",null,Cg),J()());a&2&&(a=P(),z(2),R(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),z(2),Eg(a.protectedIssues))},Nob=function(a){if(a&1){var b=r();I(0,"div",1)(1,"label");Q(2);J();I(3,"onedev-single-select",
4);gh("valueChange",function(c){t(b);var d=P();fh(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return v(c)});J()()}a&2&&(a=P(),z(2),R(" ",a.effortSpecName," "),z(),eh("value",a.currentEnumLabel),D("includeEmptyOption",!0)("options",a.allowedLabels))},Oob=function(a){if(a&1){var b=r();I(0,"mat-dialog-content")(1,"mat-form-field")(2,"mat-label");Q(3);J();I(4,"input",5);gh("ngModelChange",function(c){t(b);var d=P();fh(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return v(c)});M("keypress",
function(c){t(b);var d=P();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});J()()()}a&2&&(a=P(),z(3),R(" ",a.effortSpecName," "),z(),eh("ngModel",a.numericEstimatedEffort))},Uob=function(a,b){if(a&1){var c=r();I(0,"div",20,4);M("click",function(){var e=t(c).$implicit,f=P(2);Pob(f,e)||Qob(f,e);return v()});I(2,"mat-pseudo-checkbox",21);M("click",function(e){var f=t(c).$implicit,h=P(2);e.stopPropagation();return v(Rob(h,f))});J();I(3,"span");Q(4);J()()}if(a&2){a=b.$implicit;b=b.$index;
var d=P(2);vg("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");wg("focused",b===d.focusedRowIndex);Qg("title",a.name);ng("id","hotlist-item-"+a.hotlistId)("aria-checked",Sob(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Pob(d,a));z(2);D("state",Tob(d.selectedHotlistMap[a.hotlistId]))("disabled",Pob(d,a));z(2);R(" ",a.name," ")}},Vob=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(2),z(),R(" (",a.filterText,")"))},Wob=function(a){if(a&1){var b=r();I(0,"div",22,5);M("click",function(){t(b);
var c=P(2);return v(c.loadHotlist())})("keydown.enter",function(){t(b);var c=P(2);return v(c.loadHotlist())});Q(2,"Load hotlist from id ");I(3,"span");Q(4);J()()}a&2&&(a=P(2),wg("focused",a.focusedRowIndex===a.choices.length+1),ng("aria-label","Load hotlist from"+a.filterText),z(4),R("(",a.filterText,")"))},Yob=function(a){if(a&1){var b=r();I(0,"div",23,6);M("click",function(){t(b);var c=P(2);return v(Xob(c))})("keydown.enter",function(){t(b);var c=P(2);return v(Xob(c))});Q(2,"Apply");J()}a&2&&(a=
P(2),wg("focused",a.focusedRowIndex===a.choices.length+2))},Zob=function(a){if(a&1){var b=r();I(0,"div",11)(1,"div",15,2);Dg(3,Uob,5,11,"div",16,Cg);J()();K(5,"mat-divider");I(6,"div",17,3);M("click",function(){t(b);var c=P();return v(c.createHotlist())})("keydown.enter",function(){t(b);var c=P();return v(c.createHotlist())});Q(8,"Create new hotlist ");E(9,Vob,2,1,"span");J();E(10,Wob,5,4,"div",18);E(11,Yob,3,2,"div",19)}a&2&&(a=P(),z(3),Eg(a.choices),z(3),wg("focused",a.focusedRowIndex===a.choices.length),
D("disabled",!a.canCreate),ng("aria-label","Create new hotlist"+a.filterText),z(3),F(a.filterText?9:-1),z(),F(a.canLoad?10:-1),z(),F(a.pendingChanges?11:-1))},$ob=function(a){a&1&&(I(0,"li")(1,"a",1),Q(2),J(),K(3,"b-issue-visibility-chip",2),J());a&2&&(a=P().$implicit,z(),Pg("href","issues/",a.issueId,"",uf),z(),R("b/",a.issueId),z(),D("issueId",a.issueId))},apb=function(a,b){a&1&&E(0,$ob,4,4,"li");a&2&&F(b.$implicit.type==="issue"?0:-1)},bpb=function(a){a&1&&(I(0,"li"),Q(1),K(2,"b-component-access-level-indicator",
3),J());a&2&&(a=P().$implicit,z(),R(" ",a.path," "),z(),D("accessLevel",a.accessLevel))},cpb=function(a,b){a&1&&E(0,bpb,3,2,"li");a&2&&F(b.$implicit.type==="component"?0:-1)},dpb=function(a){a&1&&(I(0,"div",0)(1,"div")(2,"strong"),Q(3,"You are editing issues in components that may have external viewers:"),J()(),I(4,"ul"),Dg(5,apb,1,1,null,null,Bg),J(),Q(7," within: "),I(8,"ul"),Dg(9,cpb,1,1,null,null,Bg),J()());a&2&&(a=P(),z(5),Eg(a.externalWarnings),z(4),Eg(a.externalWarnings))},fpb=function(a,b){if(a&
1){var c=r();I(0,"button",12);M("click",function(){var d=t(c).$implicit,e=P(3);return v(epb(e.issueEditBuilder,d))});Q(1);J()}a&2&&(a=b.$implicit,b=P(3),D("disabled",b.issueEditBuilder.issueState==a),z(),R(" ",a.displayValue," "))},gpb=function(a){if(a&1){var b=r();I(0,"div",19)(1,"span");Q(2,"Multiple");J();I(3,"a",22);M("click",function(){t(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");J()()}},hpb=function(a){if(a&1){var b=r();I(0,"div",19)(1,"span");Q(2,"Possibly multiple");
J();I(3,"a",22);M("click",function(){t(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});Q(4,"X");J()()}},jpb=function(a){if(a&1){var b=r();I(0,"div")(1,"input",23);gh("ngModelChange",function(c){t(b);var d=P(4);fh(d.issueEditBuilder.commonAssignee,c)||(d.issueEditBuilder.commonAssignee=c);return v(c)});M("ngModelChange",function(){t(b);var c=P(4);return v(ipb(c.issueEditBuilder))});J()()}a&2&&(a=P(4),z(),eh("ngModel",a.issueEditBuilder.commonAssignee),D("bContactAutocomplete","SINGLE"),
ng("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},lpb=function(a){if(a&1){var b=r();I(0,"div",19)(1,"span");Q(2);J();I(3,"a",24);M("click",function(){t(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");J()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!kpb(a.issueEditBuilder)),z(2),R(" Multiple ",kpb(a.issueEditBuilder)?"":"(some unset)"," "))},mpb=function(a){if(a&1){var b=r();I(0,"div",19)(1,"span");Q(2);J();I(3,"a",24);M("click",function(){t(b);var c=P(4);
return v(c.issueEditBuilder.clearVerifier())});Q(4,"X");J()()}a&2&&(a=P(4),wg("bv2-invalid-multiple-user-chip",!kpb(a.issueEditBuilder)),z(2),R(" Possibly multiple ",kpb(a.issueEditBuilder)?"":"(some unset)"," "))},npb=function(a){if(a&1){var b=r();I(0,"div")(1,"input",25);gh("ngModelChange",function(c){t(b);var d=P(4);fh(d.issueEditBuilder.commonVerifier,c)||(d.issueEditBuilder.commonVerifier=c);return v(c)});J()()}a&2&&(a=P(4),z(),eh("ngModel",a.issueEditBuilder.commonVerifier),D("required",(a.issueEditBuilder.issueState==
null?null:a.issueEditBuilder.issueState.status)=="VERIFIED")("bContactAutocomplete","SINGLE"),ng("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},opb=function(a){a&1&&(I(0,"div")(1,"div",14)(2,"label",18),Q(3," Assignee "),J(),I(4,"div"),E(5,gpb,5,0,"div",19)(6,hpb,5,0,"div",19)(7,jpb,2,3,"div"),J()(),I(8,"div",14)(9,"label",20),Q(10," Verifier "),J(),I(11,"div"),E(12,lpb,5,3,"div",21)(13,mpb,5,3,"div",21)(14,npb,2,4,"div"),J()()());if(a&2){var b,c;a=P(3);z(5);F((b=a.issueEditBuilder.selectedAssigneesStatus)===
"MULTIPLE"?5:b==="POSSIBLY_MULTIPLE"?6:7);z(7);F((c=a.issueEditBuilder.selectedVerifiersStatus)==="MULTIPLE"?12:c==="POSSIBLY_MULTIPLE"?13:14)}},ppb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"label",26);Q(2," Issue ID ");J();I(3,"input",27);M("ngModelChange",function(c){t(b);var d=P(3).issueEditBuilder;c=BJa(c);return v(d.commonDuplicateOf=c.length===1?c[0]:"")});J()()}a&2&&(a=P(3),z(3),D("ngModel",a.issueEditBuilder.commonDuplicateOf),ng("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||
null))},qpb=function(a){if(a&1){var b=r();I(0,"div",5)(1,"button",10)(2,"span");Q(3);J();K(4,"b-icon",11);J();I(5,"mat-menu",null,2)(7,"button",12);M("click",function(){t(b);var d=P(2);return v(d.issueEditBuilder.issueState=void 0)});Q(8,"No change ");J();Dg(9,fpb,2,2,"button",13,Cg);J();I(11,"div");E(12,opb,15,2,"div")(13,ppb,4,2,"div",14);J();I(14,"div")(15,"b-comment-box",15);M("onSubmit",function(){t(b);var d;(d=P(2).matDialogRef)==null||d.close(!0);return v()});J()();K(16,"div",16)(17,"b-external-warnings",
17);J()}if(a&2){a=L(6);var c=P(2);z();D("matMenuTriggerFor",a);z(2);ch(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:"No change");z(4);D("disabled",!c.issueEditBuilder.issueState);z(2);Eg(c.issueStates);z(3);F((!c.issueEditBuilder.issueState||c.issueEditBuilder.issueState.status!=="DUPLICATE")===!0?12:13);z(3);D("comment",c.comment)("showToolbar",!1)("isLiteralModeSupported",!0);z(2);D("externalWarnings",c.externalWarnings)}},rpb=function(a){if(a&1){var b=r();I(0,"div",
6)(1,"b-recaptcha",28);M("onUpdate",function(c){t(b);var d=P(2);return v(d.issueEditBuilder.recaptchaResponse=c)});J()()}},tpb=function(a){a&1&&(I(0,"form",null,1)(2,"h1",3),Q(3,"Change issue status"),J(),I(4,"div",4)(5,"span"),Q(6,"Enter updated issue status information below"),J(),E(7,qpb,18,8,"div",5),J(),E(8,rpb,2,0,"div",6),I(9,"div",7)(10,"button",8),Q(11," Cancel "),J(),I(12,"button",9),Q(13," Save "),J()()());if(a&2){var b=L(1);a=P();z(7);F(a.issueEditBuilder?7:-1);z();F(a.issueEditBuilder&&
a.enableRecaptcha?8:-1);z(2);D("mat-dialog-close",!1);z(2);var c=D("mat-dialog-close",!0);if(!(b=b.invalid))a:{if(a.issueEditBuilder!=null){b=spb(a.issueEditBuilder);var d=b.get("status");if(d==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(d==="VERIFIED"){b=!kpb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}c("disabled",b||!(!a.enableRecaptcha||a.issueEditBuilder.recaptchaResponse!==""))}},vpb=function(a){if(a&1){var b=r();I(0,"b-app-bar-bulk-edit-menus",6);S(1,"async");M("onBulkEdit",
function(d){t(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){t(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){t(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){t(b);var d=P();return v(d.bulkMarkIssueRead())});J()}if(a&2){a=P();var c;D("readStatePrompt",upb(a))("enableBulkEstimatedEffortOption",(c=T(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)}},zpb=function(a){if(a&1){var b=r();I(0,"b-copy-issue-id-button",
7);M("onClickCopyIssueIds",function(){t(b);var c=P();return v(wpb(c.copyIssueIdService,as(c)))})("onClickCopyIssueShortLinks",function(){t(b);var c=P();return v(xpb(c.copyIssueIdService,as(c)))})("onClickCopyAsIssueSearch",function(){t(b);var c=P();return v(ypb(c.copyIssueIdService,as(c)))});J()}a&2&&(a=P(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},Apb=function(a){if(a&1){var b=r();I(0,"div",3)(1,"b-hotlist-picker",
8);M("onApply",function(c){t(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){t(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){t(b);var d=P();return v(d.onLoadHotlist.emit(c))});J()()}a&2&&(a=P(),z(),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},Cpb=function(a){if(a&1){var b=r();I(0,"b-comment-box",15);gh("commentChange",function(c){t(b);var d=P(2);fh(d.comment,c)||(d.comment=c);return v(c)});M("onSubmit",function(){t(b);
var c=P(2);return v(Bpb(c))});J()}a&2&&(a=P(2),eh("comment",a.comment),D("showToolbar",!1)("isLiteralModeSupported",!0))},Dpb=function(a){if(a&1){var b=r();I(0,"div",12)(1,"b-recaptcha",16);M("onUpdate",function(c){t(b);var d=P(2);return v(d.recaptchaResponse=c)});J()()}},Epb=function(a){a&1&&(I(0,"h1",9),Q(1,"Add comment"),J(),I(2,"mat-dialog-content"),E(3,Cpb,1,3,"b-comment-box",10),K(4,"b-external-warnings",11),J(),E(5,Dpb,2,0,"div",12),I(6,"mat-dialog-actions")(7,"button",13),Q(8," Cancel "),
J(),I(9,"button",14),Q(10," Save "),J()());a&2&&(a=P(),z(3),F(a.comment?3:-1),z(),D("externalWarnings",a.externalWarnings),z(),F(a.enableRecaptcha?5:-1),z(2),D("mat-dialog-close",!1),z(2),D("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},Fpb=function(a){a&1&&K(0,"tr",8)},Gpb=function(a){a&1&&K(0,"tr",9)},Hpb=function(a){a&1&&(I(0,"th",10),Q(1,"User"),J())},Ipb=function(a,b){a&1&&(I(0,"div",12),K(1,"b-user-image",13)(2,"b-user-display-name",14),J());a&2&&(z(),D("email",
b),z(),D("email",b)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},Jpb=function(a,b){a&1&&(I(0,"td",11),E(1,Ipb,3,4,"div",12),J());if(a&2){var c;a=b.$implicit;z();F((c=a.user.emailAddress)?1:-1,c)}},Kpb=function(a){a&1&&(I(0,"th",10)(1,"span",15),Q(2," Involvement "),K(3,"b-icon",16),J()());a&2&&(P(),a=Mg(7),z(3),D("matTooltip",a),ng("aria-label",a))},Lpb=function(a,b){a&1&&(I(0,"mat-option",18),Q(1),J());a&2&&(a=b.$implicit,D("value",a.value),z(),ch(a.displayText))},Opb=function(a,b){if(a&
1){var c=r();I(0,"td",11)(1,"mat-select",17);M("selectionChange",function(d){var e=t(c).$implicit,f=P();return v(Mpb(f,e,d.value))});Dg(2,Lpb,2,2,"mat-option",18,Npb);J()()}a&2&&(a=b.$implicit,b=P(),z(),D("disabled",!b.isAllowedToEdit)("value",a.involvement),z(),Eg(b.involvementOptions))},Ppb=function(a){a&1&&(I(0,"th",10),Q(1,"Delete"),J())},Rpb=function(a){if(a&1){var b=r();I(0,"td",11)(1,"button",19);M("click",function(){var c=t(b).$implicit,d=P();return v(Qpb(d,c))});K(2,"mat-icon",20);J()()}a&
2&&(a=P(),z(),D("disabled",!a.isAllowedToEdit))},Spb=function(a,b){a&1&&(I(0,"span",5)(1,"mat-option",11)(2,"span",12),Q(3),J()()());a&2&&(a=b.$implicit,D("matTooltip","The "+a.displayText+" role has already been allocated.")("matTooltipDisabled",!a.disabled),z(),D("value",a.value)("disabled",a.disabled),z(2),R(" ",a.displayText," "))},Tpb=function(a){a&1&&(I(0,"mat-error"),Q(1," Count must be less than or equal to 300,000. "),J())},Upb=function(a){a&1&&(I(0,"mat-error"),Q(1," Count must be a whole number greater than 0. "),
J())},Vpb=function(a){a&1&&(I(0,"b-callout",2)(1,"b-callout-body"),Q(2," You do not have edit access "),J()())},Xpb=function(a,b){if(a&1){var c=r();I(0,"b-placeholder-chip",15);M("editPlaceholder",function(){var d=t(c).$implicit,e=P(),f=Mg(4);return v(Wpb(e,f,d.role))})("removePlaceholder",function(){var d=t(c).$implicit,e=P();return v(e.removePlaceholder(d))});J()}a&2&&(a=b.$implicit,b=P(),D("placeholder",a)("isAllowedToEdit",b.isAllowedToEdit))},Ypb=function(a){var b=a.assigneeUser===a.currentUserEmail,
c=a.verifierUser===a.currentUserEmail,d,e=!((d=a.collaboratorsUsers)==null||!d.some(function(h){return h===a.currentUserEmail})),f;d=!((f=a.ccUsers)==null||!f.some(function(h){return h===a.currentUserEmail}));return!b&&!c&&!e&&!d},Zpb=function(a){a&1&&(I(0,"span"),Q(1,"Cancel"),J())},$pb=function(a){a&1&&(I(0,"span"),Q(1,"Edit"),J())},gqb=function(a){if(a&1){var b=r();I(0,"td")(1,"div")(2,"div",18);Q(3);J();I(4,"div",19)(5,"a",20);Q(6);J()()()();I(7,"td",14)(8,"mat-radio-button",21);M("change",function(d){t(b);
var e=P(2);return v(aqb(e,d.value))});J()();I(9,"td",14)(10,"b-button",22);M("onAction",function(){t(b);var d=P().$implicit,e=P();return v(bqb(e,d))});E(11,Zpb,2,0,"span")(12,$pb,2,0,"span");J()();I(13,"td",14)(14,"b-button",23);M("onAction",function(){t(b);var d=P().$implicit,e=P();return v(cqb(e,d))});Q(15," Delete ");J()()}if(a&2){a=P().$implicit;var c=P();z(2);wg("selected",dqb(c,a));z();R(" ",a.name," ");z(2);D("href",eqb(c,a),uf);ng("aria-label",a.name+"- Click to create a new issue");z();R(" ",
eqb(c,a)," ");z(2);Pg("id","template-default-radio-",a.index);D("checked",c.defaultIndex===a.index)("aria-label","Make template "+a.name+" as default template")("value",a.index);z(2);D("bAriaLabel",dqb(c,a)?"Cancel editing "+a.name:"Edit "+a.name);z();F(dqb(c,a)?11:12);z(3);D("bAriaLabel","Delete "+a.name)("disabled",!fqb(c,a))}},hqb=function(a){a&1&&(I(0,"h2",25),Q(1," Create Template "),J())},iqb=function(a){a&1&&(I(0,"h2",25),Q(1),J());a&2&&(a=P(2).$implicit,z(),dh(' Edit template "',a.name,'" ',
a.editableTemplate.isDirty()?"(changed)":""," "))},jqb=function(a){if(a&1){var b=r();I(0,"div",26)(1,"b-slide-toggle",79);M("modelChange",function(){t(b);var c=P(2).$implicit.editableTemplate;c.inheritable=!c.inheritable;bs(c);return v()});J();I(2,"span",27)(3,"label",80);Q(4,"Inherited by all child components");J();K(5,"mat-icon",81);J()()}a&2&&(a=P(2).$implicit,z(),D("model",a.editableTemplate.inheritable))},kqb=function(a,b){a&1&&(I(0,"mat-option",86),Q(1),J());a&2&&(a=b.$implicit,Qg("value",a),
z(),R(" ",a," "))},lqb=function(a){if(a&1){var b=r();I(0,"div",37)(1,"div",27)(2,"label",82);Q(3,"Collaborator Groups");J();K(4,"mat-icon",83);J();I(5,"mat-form-field",84)(6,"mat-select",85);gh("ngModelChange",function(d){t(b);var e=P(2).$implicit;fh(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return v(d)});M("ngModelChange",function(){t(b);var d=P(2).$implicit;return v(bs(d.editableTemplate))});I(7,"mat-select-trigger");Q(8);J();Dg(9,kqb,2,2,"mat-option",86,
Cg);J()()()}if(a&2){a=P(2).$implicit;var c=P();z(4);Qg("matTooltip",c.COLLABORATOR_GROUPS_TOOLTIP);z(2);eh("ngModel",a.editableTemplate.collaboratorGroups);z(2);R(" ",a.editableTemplate.getCollaboratorGroupsString()," ");z();Eg(c.trackerCollaboratorGroups)}},nqb=function(a,b){if(a&1){var c=r();I(0,"button",87);M("click",function(){var e=t(c).$implicit,f=P(2).$implicit,h=P();f.issueType=e.value;return v(mqb(h))});Q(1);J()}if(a&2){a=b.$implicit;b=P(2).$implicit;var d;D("disabled",b.issueType===a.value)("matTooltip",
(d=a.altText)!=null?d:"");z();R(" ",a.displayText," ")}},oqb=function(a,b){if(a&1){var c=r();I(0,"button",88);M("click",function(){var d=t(c).$implicit,e=P(2).$implicit;e.editableTemplate.priority=d.value;return v(bs(e.editableTemplate))});Q(1);J()}a&2&&(a=b.$implicit,b=P(2).$implicit,D("disabled",b.editableTemplate.priority===a.value),z(),R(" ",a.displayText," "))},pqb=function(a,b){if(a&1){var c=r();I(0,"button",88);M("click",function(){var d=t(c).$implicit,e=P(2).$implicit;e.editableTemplate.severity=
d.value;return v(bs(e.editableTemplate))});Q(1);J()}a&2&&(a=b.$implicit,b=P(2).$implicit,D("disabled",b.editableTemplate.severity===a.value),z(),R(" ",a.displayText," "))},qqb=function(a,b){if(a&1){var c=r();I(0,"div",54)(1,"b-hotlist-chip",89);M("removeHotlist",function(){var d=t(c).$implicit,e=P(3);return v(e.removeHotlist(d.hotlistId))});J()()}a&2&&(a=b.$implicit,z(),D("hotlist",a))},rqb=function(a){if(a&1){var b=r();I(0,"input",90);gh("ngModelChange",function(c){t(b);var d=P(2).$implicit;fh(d.editableTemplate.assignee,
c)||(d.editableTemplate.assignee=c);return v(c)});M("ngModelChange",function(){t(b);var c=P(2).$implicit;return v(bs(c.editableTemplate))});J()}a&2&&(a=P(2).$implicit,D("bContactAutocomplete","SINGLE"),eh("ngModel",a.editableTemplate.assignee))},sqb=function(a){if(a&1){var b=r();I(0,"b-peoplekit-searchbar",91,5);M("singleUserSelectionChange",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.handleAutocompleteSelection(c,d,"assignee"))});J()}a&2&&(a=P(2).$implicit,D("ariaLabel","The user assigned to this issue")("email",
a.editableTemplate.assignee)("singleUserMode",!0))},tqb=function(a){if(a&1){var b=r();I(0,"input",92);gh("ngModelChange",function(c){t(b);var d=P(2).$implicit;fh(d.editableTemplate.verifier,c)||(d.editableTemplate.verifier=c);return v(c)});M("ngModelChange",function(){t(b);var c=P(2).$implicit;return v(bs(c.editableTemplate))});J()}a&2&&(a=P(2).$implicit,D("bContactAutocomplete","SINGLE"),eh("ngModel",a.editableTemplate.verifier))},uqb=function(a){if(a&1){var b=r();I(0,"b-peoplekit-searchbar",93,
6);M("singleUserSelectionChange",function(c){t(b);var d=P(2).$implicit,e=P();return v(e.handleAutocompleteSelection(c,d,"verifier"))});J()}a&2&&(a=P(2).$implicit,D("ariaLabel","The user who will verify this issue")("email",a.editableTemplate.verifier)("singleUserMode",!0))},wqb=function(a){if(a&1){var b=r();I(0,"div",27)(1,"label",94);Q(2,"Collaborators");J();K(3,"mat-icon",95);J();I(4,"b-peoplekit-searchbar",96,7);M("selectionChange",function(c){t(b);var d=P(2).$implicit;P();d.editableTemplate&&
!vqb(d.editableTemplate.collaborators,c)&&(d.editableTemplate.collaborators=cs(c),bs(d.editableTemplate));return v()});J()}a&2&&(a=P(2).$implicit,z(4),D("ariaLabel","Addition to Collaborators")("emails",a.editableTemplate.collaborators))},yqb=function(a){if(a&1){var b=r();I(0,"div",27)(1,"label",97);Q(2,"Collaborators");J();K(3,"mat-icon",95);J();I(4,"input",98);M("ngModelChange",function(c){t(b);var d=P(2).$implicit;return v(xqb(d.editableTemplate,c))});J()}a&2&&(a=P(2).$implicit,z(4),D("bContactAutocomplete",
"MULTI")("ngModel",a.editableTemplate.collaborators.join(", ")))},zqb=function(a){if(a&1){var b=r();I(0,"div",27)(1,"label",99);Q(2,"CC");J()();I(3,"b-peoplekit-searchbar",100,8);M("selectionChange",function(c){t(b);var d=P(2).$implicit;P();d.editableTemplate&&!vqb(d.editableTemplate.cc,c)&&(d.editableTemplate.cc=cs(c),bs(d.editableTemplate));return v()});J()}a&2&&(a=P(2).$implicit,z(3),D("ariaLabel","Addition to CCs")("emails",a.editableTemplate.cc))},Bqb=function(a){if(a&1){var b=r();I(0,"div",
27)(1,"label",101);Q(2,"CC");J()();I(3,"input",102);M("ngModelChange",function(c){t(b);var d=P(2).$implicit;return v(Aqb(d.editableTemplate,c))});J()}a&2&&(a=P(2).$implicit,z(3),D("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", ")))},Cqb=function(a){a&1&&(I(0,"h3"),Q(1,"Custom issue fields"),J())},Dqb=function(a){if(a&1){var b=r();I(0,"input",109);gh("ngModelChange",function(d){t(b);var e=P().$implicit,f=P(2).$implicit;fh(f.editableTemplate.customFieldValues[e.id].textValue,
d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return v(d)});M("ngModelChange",function(){t(b);var d=P(3).$implicit;return v(bs(d.editableTemplate))});J()}if(a&2){a=P().$implicit;var c=P(2).$implicit;pg("id","template-cf-",a.id);eh("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},Eqb=function(a){if(a&1){var b=r();I(0,"input",110);gh("ngModelChange",function(d){t(b);var e=P().$implicit,f=P(2).$implicit;fh(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=
d);return v(d)});M("ngModelChange",function(){t(b);var d=P(3).$implicit;return v(bs(d.editableTemplate))});J()}if(a&2){a=P().$implicit;var c=P(2).$implicit;pg("id","template-cf-",a.id);eh("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},Gqb=function(a){if(a&1){var b=r();I(0,"b-edit-field",111);M("valueChange",function(h){t(b);var k=P().$implicit,q=P(2).$implicit,u=P();return v(u.setCustomField(q,k.id,h))});J()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();pg("id","template-cf-",
a.id);var e,f;D("type",d.FieldType.ENUM)("name",a.name)("clearable",!0)("value",(e=c.editableTemplate.customFieldValues[a.id]==null?null:c.editableTemplate.customFieldValues[a.id].enumValue)!=null?e:null)("choices",(f=a.enumFields)!=null?f:ih(7,Fqb))}},Hqb=function(a){if(a&1){var b=r();I(0,"bv2-input-date-picker",112);M("boundValueChange",function(e){t(b);var f=P().$implicit,h=P(2).$implicit,k=P();return v(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",
function(){t(b);var e=P(3).$implicit;return v(bs(e.editableTemplate))});J()}if(a&2){a=P().$implicit;var c=P(2).$implicit;pg("id","template-cf-",a.id);var d;D("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},Jqb=function(a){if(a&1){var b=r();I(0,"b-list-field",113);M("valuesChange",function(e){t(b);var f=P().$implicit,h=P(2).$implicit,k=P();return v(k.setCustomField(h,f.id,e.values))});J()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();pg("id","template-cf-",
a.id);D("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",Iqb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},Kqb=function(a,b){a&1&&(I(0,"div")(1,"div",27)(2,"label",103),Q(3),J()(),I(4,"div"),E(5,Dqb,1,3,"input",104)(6,Eqb,1,3,"input",105)(7,Gqb,1,8,"b-edit-field",106)(8,Hqb,1,3,"bv2-input-date-picker",107)(9,Jqb,1,7,"b-list-field",108),J()());if(a&2){var c;a=b.$implicit;zg("cell-",a.cellType);z(2);Pg("for","template-cf-",a.id);z();dh("",
a.name," (id=",a.id,")");z(2);F((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c==="ENUM"?7:c==="DATE"?8:9)}},Oqb=function(a){if(a&1){var b=r();I(0,"td",17)(1,"div",24);E(2,hqb,2,0,"h2",25)(3,iqb,2,2,"h2",25);I(4,"div",26)(5,"div",27)(6,"label",28);Q(7,"Template Name");J()();I(8,"input",29);gh("ngModelChange",function(h){t(b);var k=P().$implicit;fh(k.editableTemplate.name,h)||(k.editableTemplate.name=h);return v(h)});M("ngModelChange",function(){t(b);var h=P().$implicit;return v(bs(h.editableTemplate))});
J()();E(9,jqb,6,1,"div",26);I(10,"div",26)(11,"div",27)(12,"label",30);Q(13,"Description of Template");J()();I(14,"input",31);gh("ngModelChange",function(h){t(b);var k=P().$implicit;fh(k.editableTemplate.description,h)||(k.editableTemplate.description=h);return v(h)});M("ngModelChange",function(){t(b);var h=P().$implicit;return v(bs(h.editableTemplate))});J()();I(15,"div",32)(16,"h3");Q(17," Standard issue fields ");J();I(18,"div",33)(19,"div",34)(20,"div",27)(21,"label",35);Q(22,"Issue Access Level");
J()();I(23,"b-issue-access-limits-dropdown",36);M("updatedAccessLimitLevel",function(h){t(b);var k=P().$implicit;return v(k.editableTemplate.onAccessLimitLevelSelected(h))});J()();E(24,lqb,11,3,"div",37);J();I(25,"div",26)(26,"div",27)(27,"label",38);Q(28,"Title");J()();I(29,"input",39);gh("ngModelChange",function(h){t(b);var k=P().$implicit;fh(k.editableTemplate.title,h)||(k.editableTemplate.title=h);return v(h)});M("ngModelChange",function(){t(b);var h=P().$implicit;return v(bs(h.editableTemplate))});
J()();I(30,"div",40)(31,"div",27)(32,"label",41);Q(33,"Type");J()();I(34,"button",42)(35,"span");Q(36);J();K(37,"b-icon",43);J();I(38,"mat-menu",44,2);Dg(40,nqb,2,3,"button",45,Cg);J()();I(42,"div",40)(43,"div",27)(44,"label",46);Q(45,"Priority");J()();I(46,"button",47)(47,"span");Q(48);J();K(49,"b-icon",43);J();I(50,"mat-menu",44,3);Dg(52,oqb,2,2,"button",48,Cg);J()();I(54,"div",40)(55,"div",27)(56,"label",49);Q(57,"Severity");J()();I(58,"button",50)(59,"span");Q(60);J();K(61,"b-icon",43);J();I(62,
"mat-menu",44,4);Dg(64,pqb,2,2,"button",48,Cg);J()();I(66,"div",51)(67,"div",27)(68,"label",52);Q(69,"Default Hotlists");J()();I(70,"b-hotlist-picker",53);M("onApply",function(h){t(b);var k=P(2);return v(k.handleHotlistPickerSave(h))})("onCreate",function(h){t(b);var k=P(2);return v(k.createHotlist(h))})("onLoad",function(h){t(b);var k=P(2);return v(k.loadHotlist(h))});J();Dg(71,qqb,2,1,"div",54,Cg);J();K(73,"div",55);I(74,"div",56)(75,"div",27)(76,"label",57);Q(77,"Assignee");J()();E(78,rqb,1,2,
"input",58)(79,sqb,2,3,"b-peoplekit-searchbar",59);J();I(80,"div",56)(81,"div",27)(82,"label",60);Q(83,"Verifier");J()();E(84,tqb,1,2,"input",61)(85,uqb,2,3,"b-peoplekit-searchbar",62);J();I(86,"div",26);E(87,wqb,6,2)(88,yqb,5,2);J();I(89,"div",26);E(90,zqb,5,2)(91,Bqb,4,2);J();I(92,"div",26)(93,"div",27)(94,"label",63);Q(95,"Initial Comment");J()();I(96,"textarea",64);gh("ngModelChange",function(h){t(b);var k=P().$implicit;fh(k.editableTemplate.comment,h)||(k.editableTemplate.comment=h);return v(h)});
M("ngModelChange",function(){t(b);var h=P().$implicit;return v(bs(h.editableTemplate))});Q(97,"                  ");J();I(98,"b-markdown-toggle",65);M("change",function(h){t(b);var k=P().$implicit;return v(k.editableTemplate.setFormattingMode(h))});J()();I(99,"div",26)(100,"div",27)(101,"label",66);Q(102,"In Prod");J()();I(103,"b-slide-toggle",67);M("modelChange",function(){t(b);var h=P().$implicit.editableTemplate;h.inProd=!h.inProd;bs(h);return v()});J()();Kg(104);S(105,"staffingSummary");I(106,
"div",68)(107,"div",27)(108,"label",69);Q(109,"Staffing");J();K(110,"mat-icon",70);J();I(111,"button",71);M("click",function(){t(b);var h=P(2);return v(h.editStaffing())});I(112,"span",72);Q(113);J();K(114,"div",73);J()()();I(115,"div",74);E(116,Cqb,2,0,"h3");Dg(117,Kqb,10,8,"div",75,Cg);J();I(119,"div",76)(120,"b-button",77);M("onAction",function(){t(b);var h=P(2);return v(Lqb(h))});Q(121," Save ");J();I(122,"b-button",78);M("onAction",function(){t(b);var h=P(2);return v(Mqb(h))});Q(123," Cancel ");
J()()()()}if(a&2){var c=L(39),d=L(51),e=L(63);a=P().$implicit;var f=P();z(2);F(a.editableTemplate.new?2:3);z(6);eh("ngModel",a.editableTemplate.name);z();F(f.enableTemplateInheritance?9:-1);z(5);eh("ngModel",a.editableTemplate.description);z(9);D("disabled",!1)("defaultAccessLimitLevel",a.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);z();F(f.trackerCollaboratorGroups.length?24:-1);z(5);eh("ngModel",a.editableTemplate.title);z(5);D("matMenuTriggerFor",c);
z(2);ch(Nqb(a.issueType));z(2);D("overlapTrigger",!0);z(2);Eg(f.issueTypeChoices);z(6);D("matMenuTriggerFor",d);z(2);ch(a.editableTemplate.priority);z(2);D("overlapTrigger",!0);z(2);Eg(f.priorityChoices);z(6);D("matMenuTriggerFor",e);z(2);ch(a.editableTemplate.severity);z(2);D("overlapTrigger",!0);z(2);Eg(f.severityChoices);z(6);D("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);z();Eg(f.selectedHotlists);z(7);F(f.enablePeoplekitAc?79:78);z(6);F(f.enablePeoplekitAc?85:84);z(3);F(f.enablePeoplekitAc?
87:88);z(3);F(f.enablePeoplekitAc?90:91);z(6);eh("ngModel",a.editableTemplate.comment);z(2);D("initialValue",a.editableTemplate.formattingMode);z(5);D("model",a.editableTemplate.inProd);c=T(105,31,a.editableTemplate.staffing==null?null:a.editableTemplate.staffing.plannedAllocations);z(8);ng("aria-label","Staffing: "+c);z(2);R(" ",c," ");z(3);F(f.customFieldRows.length>0?116:-1);z();Eg(f.customFieldRows);z(3);D("disabled",!a.editableTemplate.isDirty())}},Pqb=function(a,b){a&1&&(I(0,"tr"),E(1,gqb,16,
15)(2,Oqb,124,33,"td",17),J());a&2&&(a=b.$implicit,z(),F(a.editableTemplate?2:1))},Qqb=function(a){a&1&&(I(0,"tr")(1,"td",17)(2,"div",114)(3,"strong"),Q(4,"Templates inherited from parent components"),J()()()())},Rqb=function(a){a&1&&(Fg(0),K(1,"b-component-card",120,10),Gg());if(a&2){a=L(2);var b=P().$implicit;z();D("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},Sqb=function(a,b){if(a&1){var c=r();I(0,"tr")(1,"td")(2,"div")(3,"div",18);Q(4);J();I(5,"div",19)(6,"a",20);
Q(7);J()()()();I(8,"td",14)(9,"mat-radio-button",21);M("change",function(e){t(c);var f=P(2);return v(aqb(f,e.value))});J()();I(10,"td",115)(11,"div",116)(12,"div",117);Q(13,"Inherited From");J();I(14,"a",118);Q(15);J();I(16,"onedev-hovercard",null,9);C(18,Rqb,3,2,"ng-container",119);J()()()()}if(a&2){a=b.$implicit;b=L(17);var d=P(2);z(3);wg("selected",dqb(d,a));z();R(" ",a.name," ");z(2);D("href",eqb(d,a),uf);ng("aria-label",a.name+"- Click to create a new issue");z();R(" ",eqb(d,a)," ");z(2);Pg("id",
"template-default-radio-",a.index);D("checked",d.defaultIndex===a.index)("aria-label","Make template "+a.name+" as default template")("value",a.index);z(5);D("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentTemplates.makeHref(a.componentId),uf);ng("aria-label","Inherited from "+d.componentIdsToPaths[a.componentId]);z();R(" ",d.componentIdsToPaths[a.componentId]," ")}},Tqb=function(a,b){a&1&&(E(0,Qqb,5,0,"tr"),Dg(1,Sqb,19,15,"tr",null,Cg));a&2&&(F(b.length?0:-1),z(),Eg(b))},Uqb=function(a,
b){a&1&&(I(0,"div",121),Q(1),J(),I(2,"div",122)(3,"button",123),Q(4," Cancel "),J(),I(5,"button",124),Q(6," Confirm "),J()());a&2&&(a=b.$implicit,z(),R(' Are you sure you want to delete the template "',a.name,'"? '),z(2),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0))},Vqb=function(a,b){a&1&&(I(0,"div",121),Q(1),J(),I(2,"div",122)(3,"button",125),Q(4," Cancel "),J(),I(5,"button",125),Q(6," Don't Save "),J(),I(7,"button",126),Q(8," Save "),J()());a&2&&(a=b.$implicit,z(),R(' Do you want to save changes to template "',
a.name,'" before closing? '),z(2),D("mat-dialog-close",void 0),z(2),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0))},Wqb=function(a){a&1&&(I(0,"div"),Q(1),J(),I(2,"div"),Q(3),J());a&2&&(a=P(),z(),R(" Policy: ",a.rawObjectiveDisplayText," (business) "),z(2),R("Effective: ",a.objectiveDisplayText," (calendar)"))},Xqb=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(),z(),R("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},Yqb=function(a){a&1&&(I(0,"div"),K(1,"b-slo-time-indicator",0),J());
a&2&&(a=P(),z(),D("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},Zqb=function(a){a&1&&(I(0,"div"),K(1,"b-slo-time-indicator",1),J());a&2&&(a=P(),z(),D("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",!0))},$qb=function(a){a&1&&(I(0,"div"),K(1,"b-slo-time-indicator",2),J());a&2&&(a=P(),z(),D("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",
!0))},arb=function(a){a&1&&(I(0,"div",5),K(1,"b-slo-status-summary",7),J());a&2&&(a=P(),z(),D("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},brb=function(a){a&1&&Q(0," No applicable SLO rules ")},crb=function(a){a&1&&Q(0," No SLO set on issue component ")},drb=function(a){a&1&&(I(0,"div",6),E(1,brb,1,0)(2,crb,1,0),J());a&2&&(a=P(),z(),F(a.editSloLink?1:2))},erb=function(a){if(a&1){var b=r();I(0,"a",9);M("click",function(){t(b);var c=P(2);return v(c.trackOpenSlo())});
Q(1);J()}a&2&&(a=P(2),D("href",a.editSloLink,uf),z(),R(" ",a.sloName," "))},frb=function(a){a&1&&(I(0,"span"),Q(1," (private) "),J())},grb=function(a){a&1&&(I(0,"span"),Q(1," SLO definition: "),E(2,erb,2,2,"a",8)(3,frb,2,0,"span"),J());a&2&&(a=P(),z(2),F(a.sloName?2:3))},jrb=function(a){if(a.type==="CUSTOM_FIELD")return new ds({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==
void 0,tooltip:""});a=Tj(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return hrb.includes(a)?irb(a):null},lrb=function(a){return krb(a.map(jrb).filter(function(b){return!!b}))},mrb=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:Vj(b.name),customFieldName:void 0}:(b=(b.name||"").replace(/([A-Z])/g,"_$1").toUpperCase(),b==="DUPLICATE_OF_ISSUE_ID"&&(b="CANONICAL_ISSUE_ID"),b={type:b,customFieldId:void 0,customFieldName:void 0});return b})},krb=function(a){return ik(a,
function(b){return b.name})},irb=function(a){var b={name:a,label:a.toUpperCase()},c=nrb[a];c?Object.assign(b,c):hrb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new ds(b)},orb=function(a,b){a&1&&K(0,"col");a&2&&zg("",b.$implicit.name,"-col")},prb=function(a){a&1&&Hg(0)},rrb=function(a,b){a&1&&C(0,prb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),D("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",
jh(2,qrb,a)))},srb=function(a){a&1&&Hg(0)},urb=function(a,b){a&1&&C(0,srb,1,0,"ng-container",7);if(a&2){a=b.$implicit;b=b.$index;var c=P(),d=c.$implicit;c=c.$index;var e=P();D("ngTemplateOutlet",e[b])("ngTemplateOutletContext",lh(2,trb,d,a,c))}},wrb=function(a,b){if(a&1){var c=r();I(0,"tr",9,3);M("click",function(){var e=t(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("focus",function(){var e=t(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=
e,f.focusedRowIndexChange.emit(e));return v()});Dg(2,urb,1,6,"ng-container",null,vrb);J()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);wg("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);ng("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));z(2);Eg(d.columns)}},yrb=function(a){a&1&&Dg(0,wrb,4,11,"tr",8,xrb);a&2&&(a=P(),Eg(a.list))},zrb=function(a,b){a&1&&
(I(0,"th"),K(1,"pop-grid-default-th",10),J());a&2&&(a=b.column,z(),D("column",a))},Arb=function(a,b){a&1&&(I(0,"td"),K(1,"pop-grid-default-cell",11),J());a&2&&(a=b.row,b=b.column,z(),D("row",a)("column",b))},Brb=function(a){if(a&1){var b=r();I(0,"b-sortable-header",3);M("sortChanged",function(c){t(b);var d=P();d.grid&&d.grid.sortChange.emit(c);return v()});J()}a&2&&(a=P(),D("columnLabel",a.column.label)("columnName",a.column.name)("defaultSortDirection",a.column.defaultSortDirection||"ASC")("sort",
a.grid==null?null:a.grid.sort)("matTooltip",a.column.tooltip||""))},Crb=function(a){a&1&&(I(0,"span",4),Q(1),J());a&2&&(a=P(2),z(),R("column-",a.column.name))},Drb=function(a){a&1&&(I(0,"div",2),E(1,Crb,2,1,"span",4),Q(2),J());a&2&&(a=P(),ng("aria-label",a.column.label),z(),F(a.column.label?-1:1),z(),R(" ",a.column.label," "))},Erb=function(a){if(a&1){var b=r();I(0,"div",13,3);M("menuOpened",function(){t(b);var d=P();return v(d.menuOpen=!0)})("menuClosed",function(){t(b);var d=P();return v(d.menuOpen=
!1)})("keydown.enter",function(d){t(b);L(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){t(b);var d=L(1);return v(d.openMenu())});J()}if(a&2){a=P();var c=L(5);wg("columnpicker-button-active",a.menuOpen);pg("aria-label","",a.column.fullLabel," column configuration");D("matMenuTriggerFor",c)}},Hrb=function(a,b){if(a&1){var c=r();I(0,"button",14);M("click",function(){var d=t(c).$implicit,e=P();return v(Frb(e,d.name))});K(1,"b-icon",15);I(2,"span",16);Q(3);
J()()}a&2&&(a=b.$implicit,b=P(),wg("b-menu-item-checked",Grb(a.name).get(b.listViewPrefs)),z(3),R(" ",a.menuItem," "))},Irb=function(a){a&1&&K(0,"mat-divider")},Jrb=function(a){if(a&1){var b=r();I(0,"button",19);M("click",function(){t(b);var c=P().$implicit,d=P().before,e=P();return v(e.add(c,d))})("keydown.enter",function(c){t(b);var d=P().$implicit,e=P().before;P().add(d,e);c.preventDefault();return v(c.stopPropagation())});Q(1);J()}a&2&&(a=P().$implicit,D("matTooltip",a.tooltip),z(),R(" ",a.fullLabel,
" "))},Lrb=function(a){a&1&&(I(0,"button",11)(1,"span"),Q(2),J()());if(a&2){a=P().$implicit;var b=P().before;P();var c=L(19);D("matMenuTriggerFor",c)("matMenuTriggerData",kh(3,Krb,a.columns,b));z(2);ch(a.label)}},Mrb=function(a,b){a&1&&E(0,Jrb,2,2,"button",18)(1,Lrb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),F(b.isIssueGridColumn(a)?0:1))},Orb=function(a){if(a&1){var b=r();I(0,"button",17);M("click",function(){var c=t(b).before,d=P();return v(Nrb(d,c))});Q(1," Custom Field ");J();K(2,"mat-divider");
Dg(3,Mrb,2,1,null,null,Cg)}a&2&&(a=P(),z(3),Eg(a.currentAvailableItems))},Prb=function(a,b){if(a&1){var c=r();I(0,"button",21);M("click",function(){var d=t(c).$implicit,e=P().before,f=P();return v(f.add(d,e))})("keydown.enter",function(d){var e=t(c).$implicit,f=P().before;P().add(e,f);d.preventDefault();return v(d.stopPropagation())});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a.fullLabel," "))},Qrb=function(a,b){a&1&&Dg(0,Prb,2,1,"button",20,Cg);a&2&&Eg(b.columns)},Grb=function(a){switch(a){case "id-link":return{get:function(b){var c;
return((c=b.modeForField)==null?void 0:c.id)==="link"},set:function(b,c){b.modeForField=b.modeForField||{};b.modeForField.id=c?"link":void 0}};case "id-copy":return{get:function(b){var c;return((c=b.modeForField)==null?void 0:c.id)==="copy"},set:function(b,c){b.modeForField=b.modeForField||{};b.modeForField.id=c?"copy":void 0}};case "showHotlists":return{get:function(b){return b.showHotlists},set:function(b,c){b.showHotlists=c}};case "wrapTitles":return{get:function(b){return b.wrapTitles},set:function(b,
c){b.wrapTitles=c}};case "wrapComponents":return{get:function(b){return b.wrapComponents},set:function(b,c){b.wrapComponents=c}};case "showStatusIcons":return{get:function(b){var c;return((c=b.fieldStatus)==null?void 0:c.mode)==="icon"},set:function(b,c){var d;b.fieldStatus=(d=b.fieldStatus)!=null?d:{};b.fieldStatus.mode=c?"icon":void 0}};case "status-plain":return{get:function(b){var c;return((c=b.fieldStatus)==null?void 0:c.mode)==="plain"},set:function(b,c){var d;b.fieldStatus=(d=b.fieldStatus)!=
null?d:{};b.fieldStatus.mode=c?"plain":void 0}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},set:function(b,c){b.rtlComponentPath=c}};default:throw Error("uf`"+a);}},Rrb=function(a){a&1&&(I(0,"p",5),Q(1),J());a&2&&(a=P(),z(),R(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},Srb=function(a){a&1&&(I(0,"p",6),Q(1),I(2,"a",12),Q(3," Learn more "),J()());a&2&&(a=P(),z(),R(" Your status update contains restricted words: ",Sq(a.bannedWordsChecker),". Review your status update before posting. "))},
Trb=function(a){a&1&&(I(0,"div",8),K(1,"b-live-preview",13),J());a&2&&(a=P(),z(),D("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},Urb=function(a){return function(b){return Wk(b,dp,1,Fk()).map(function(c){return{workspaceId:c.getWorkspaceId_asLegacyNumberOrString(),workspaceName:c.getName(),issueId:a}})}},Vrb=function(a){a&1&&Hg(0)},Xrb=function(a){a&1&&(Fg(0),C(1,Vrb,1,0,"ng-container",
8),Gg());a&2&&(a=P(),z(),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",jh(2,Wrb,a.value)))},Yrb=function(a){a&1&&Q(0);a&2&&(a=P(),ch(a.value!=null?a.value:"--"))},Zrb=function(a){a&1&&(Vd(),I(0,"svg",9),K(1,"path",10),J())},$rb=function(a){if(a&1){var b=r();I(0,"input",11);gh("ngModelChange",function(c){t(b);var d=P();fh(d.editingValue,c)||(d.editingValue=c);return v(c)});J()}a&2&&(a=P(),eh("ngModel",a.editingValue),ng("aria-labelledby",a.labelledById))},asb=function(a){return a!=
null?Number(a):void 0},bsb=function(a){a&1&&K(0,"mat-icon",4);a&2&&(P(),a=L(5),D("onedevHovercardTrigger",a))},csb=function(a){if(a&1){var b=r();I(0,"onedev-numeric-field",10);M("valueChange",function(d){t(b);var e=P(2);e.selectedNumericEstimate=d;d==null?e.effortChange.emit(void 0):e.effortChange.emit({estimate:String(d)});return v()});J()}if(a&2){a=P(2);var c=L(2);D("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},dsb=function(a){a&1&&
Q(0);a&2&&(a=P().$implicit,R(" ",a.label," "))},esb=function(a){a&1&&Q(0," -- ")},fsb=function(a,b){a&1&&E(0,dsb,1,1)(1,esb,1,0);a&2&&F(b.$implicit?0:1)},hsb=function(a){if(a&1){var b=r();I(0,"onedev-single-select",11);M("valueChange",function(e){t(b);var f=P(2);return v(f.selectOption(e))});J();C(1,fsb,2,1,"ng-template",null,2,nh)}if(a&2){a=L(2);var c=P(2),d;D("value",c.selectedOption)("options",(d=c.effortSpec.enumSpec==null?null:c.effortSpec.enumSpec.options)!=null?d:ih(6,gsb))("includeEmptyOption",
!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},isb=function(a){a&1&&Q(0);a&2&&(a=P(2),R(" ",a.effort==null?null:a.effort.estimate," "))},jsb=function(a){a&1&&(I(0,"onedev-edit-field")(1,"onedev-field-label",3),Q(2),E(3,bsb,1,1,"mat-icon",4),J(),I(4,"onedev-hovercard",null,1)(6,"div",5)(7,"div",6),Q(8," This estimate was made under a different configuration and needs to be updated. "),I(9,"a",7),Q(10,"Learn more"),J()()()(),I(11,"onedev-field-value",8),E(12,csb,1,
4,"onedev-numeric-field",9)(13,hsb,3,7)(14,isb,1,1),J()());if(a&2){var b;a=P();z();D("thinking",a.thinking);z();R(" ",a.fieldName," ");z();F(a.isCompatibleValue?-1:3);z(8);D("thinking",a.thinking);z();F((b=a.fieldType)==="NUMERIC"?12:b==="DROPDOWN"?13:14)}},ksb=function(a){a&1&&Q(0);a&2&&(a=P(2),R(" ",a.effort==null?null:a.effort.estimate," "))},lsb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,R(" ",a!=null?a:"--"," "))},msb=function(a,b){a&1&&E(0,ksb,1,1)(1,lsb,1,1);a&2&&(a=b.$implicit,b=P(),F(b.isNaN(a)?
0:1))},nsb=function(a){a&1&&Q(0," -- ")},osb=function(a){a&1&&(I(0,"div",12),Q(1),J(),I(2,"div",13),Q(3),J());a&2&&(a=P(),z(),ch(a.staffingUserSummary),z(2),ch(a.staffingPlaceholderSummary))},psb=function(a){a&1&&K(0,"mat-icon",4)},qsb=function(a){a&1&&K(0,"mat-icon",11)},rsb=function(a){a&1&&K(0,"mat-icon",12)},ssb=function(a){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",22),J());a&2&&(a=P(2),z(),D("timestamp",a.sloStartTime))},tsb=function(a){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",22),I(2,
"span"),Q(3," (default)"),J()());a&2&&(a=P(2),z(),D("timestamp",a.issueCreationTimestamp/1E3))},usb=function(a){if(a&1){var b=r();I(0,"slo-edit-date-time-picker",23);M("closePicker",function(){t(b);var c=P(2);return v(c.isSloStartEditTimePickerOpen=!1)})("sloEditCommit",function(c){t(b);var d=P(2);return v(d.updateSloStartTime(c))});J()}a&2&&(a=P(2),D("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime))},vsb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"a",18);Q(2," Start Date: ");J();I(3,"div",
19)(4,"a",20,0);M("keydown.enter",function(){t(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("keydown.space",function(){t(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("click",function(){t(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()});E(6,ssb,2,1,"span")(7,tsb,4,1,"span");J();C(8,usb,1,2,"ng-template",21);J()()}if(a&2){a=L(5);var c=P();z(6);F(c.hasSloStartTime?6:7);z(2);
D("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},wsb=function(a){a&1&&(I(0,"span"),Q(1," Set closure SLO "),J())},xsb=function(a){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",22),J());a&2&&(a=P(2),z(),D("timestamp",a.sloEndTime))},ysb=function(a){a&1&&(I(0,"span"),K(1,"b-formatted-date-time",22),I(2,"span"),Q(3," (default)"),J()());a&2&&(a=P(2),z(),D("timestamp",a.closureSloTarget*1E3))},zsb=function(a){if(a&1){var b=r();I(0,"slo-edit-date-time-picker",
23);M("closePicker",function(){t(b);var c=P(2);return v(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){t(b);var d=P(2);return v(d.updateSloEndTime(c))});J()}a&2&&(a=P(2),D("sloStatus",a.sloStatus)("sloEditTime",a.sloEndTime))},Asb=function(a){if(a&1){var b=r();I(0,"div",15)(1,"a",18);Q(2," End Date: ");J();I(3,"div",19)(4,"a",24,0);M("click",function(){t(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.enter",function(){t(b);var d=P();d.isSloEndEditTimePickerOpen=
!d.isSloEndEditTimePickerOpen;return v()})("keydown.space",function(){t(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()});E(6,wsb,2,0,"span");E(7,xsb,2,1,"span");E(8,ysb,4,1,"span");J();C(9,zsb,1,2,"ng-template",21);J()()}if(a&2){a=L(5);var c=P();z(6);F(c.hasClosureSlo?-1:6);z();F(c.hasClosureSlo&&c.hasSloEndTime?7:-1);z();F(c.hasClosureSlo&&!c.hasSloEndTime?8:-1);z();D("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloEndEditTimePickerOpen)}},Bsb=
function(a){a&1&&K(0,"b-user-membership-chip",28);a&2&&(a=P(2),D("user",a.escalationOwner)("email",a.userToDisplayString(a.escalationOwner))("enableSmallChip",!0))},Csb=function(a){a&1&&Q(0," None ")},Dsb=function(a){a&1&&(I(0,"div",16)(1,"span",25),Q(2," Owner: "),J(),I(3,"onedev-hovercard",null,1)(5,"div",26),Q(6," Escalation owner for SLO accounting and other purposes. "),I(7,"a",27),Q(8,"Learn more."),J()()(),I(9,"div",19),E(10,Bsb,1,3,"b-user-membership-chip",28)(11,Csb,1,0),J()());if(a&2){a=
L(4);var b=P();z();D("onedevHovercardTrigger",a);z(9);F(b.escalationOwner?10:11)}},Esb=function(a,b){if(a&1){var c=r();I(0,"a",30);M("click",function(){t(c);var d=P(2);return v(d.trackOpenSlo())});Q(1);J()}a&2&&(a=P(2),ng("href",a.editSloLink,uf),z(),R(" ",b.name," "))},Fsb=function(a){a&1&&(I(0,"div",17),Q(1," SLO definition: "),E(2,Esb,2,2,"a",29),S(3,"async"),J());if(a&2){var b;a=P();z(2);F((b=T(3,1,a.slo$))?2:-1,b)}},Gsb=function(a){if(a&1){var b=r();I(0,"div",17)(1,"a",31);M("click",function(){t(b);
P();Po("component","open","fromIssueSloBox");return v()});Q(2,"Select an SLO");J()()}a&2&&(a=P(),z(),ng("href",a.componentSloLink,uf))},Hsb=function(a){return a&&a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},Isb=function(a){a&1&&Hg(0)},Jsb=function(a){if(a&1){var b=r();I(0,"div",3);Q(1," Select a team from the suggestions below, or edit in ");I(2,"a",6);M("click",function(){t(b);var d=P();return v(d.trackClick("viewTeamAssociationOnComponent"))});Q(3,"component settings");J();Q(4,". ");I(5,
"mat-radio-group",7);gh("ngModelChange",function(d){t(b);var e=P();fh(e.teamAction,d)||(e.teamAction=d);return v(d)});I(6,"p")(7,"mat-radio-button",8);Q(8," Don't make any changes ");J()();I(9,"p")(10,"mat-radio-button",9);Q(11," Map component to selected team ");J()()();C(12,Isb,1,0,"ng-container",10);J()}if(a&2){a=P();var c=L(5);z(2);D("href",a.componentSetting,uf);z(3);eh("ngModel",a.teamAction);z(7);D("ngTemplateOutlet",c)}},Ksb=function(a){a&1&&Hg(0)},Lsb=function(a){a&1&&(I(0,"div",3),Q(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),
I(2,"a",11),Q(3,"component settings"),J(),Q(4,". "),C(5,Ksb,1,0,"ng-container",10),J());if(a&2){a=P();var b=L(5);z(2);D("href",a.componentSetting,uf);z(3);D("ngTemplateOutlet",b)}},Msb=function(a){a&1&&(I(0,"span",16),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.teamPath))},Nsb=function(a){a&1&&Q(0," -- ")},Osb=function(a,b){a&1&&E(0,Msb,2,1,"span",16)(1,Nsb,1,0);a&2&&F(b.$implicit?0:1)},Psb=function(a){if(a&1){var b=r();I(0,"div",12)(1,"onedev-single-select",13);gh("valueChange",function(d){t(b);var e=
P(2);fh(e.selectedTeam,d)||(e.selectedTeam=d);return v(d)});M("valueChange",function(d){t(b);var e=P(2);return v(e.selectOption(d))});J();C(2,Osb,2,1,"ng-template",null,1,nh);I(4,"a",14);M("click",function(){t(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});K(5,"mat-icon",15);J()()}if(a&2){a=L(3);var c=P(2);z();D("disabled",c.teamAction==="NONE");eh("value",c.selectedTeam);D("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);z(3);ng("href",c.getMomaTeamLink(),uf)}},Qsb=
function(a){a&1&&E(0,Psb,6,6,"div",12);a&2&&(a=P(),F(a.teamOptions.length>0?0:-1))},Rsb=function(a){if(a&1){var b=r();I(0,"b-callout-actions")(1,"b-button",1);M("click",function(){t(b);var c=P();return v(c.openDialog())});Q(2);J()()}a&2&&(a=P(),z(2),ch(a.buttonName))},Ssb=function(){function a(){var c,d,e;return(c=window.google)==null?void 0:(d=c.corp)==null?void 0:(e=d.devops)==null?void 0:e.tools}var b=100;return new Promise(function(c,d){function e(){var f=a();f!=null?c(f):(setTimeout(e,b),b*=
2)}e();setTimeout(function(){var f=a();f!=null?c(f):d("timeout: 5000")},5E3)})},Tsb=function(a){return["PROD","NIGHTLY"].includes(a)?"production":"autopush"},Usb=function(a){a&1&&Hg(0)},Vsb=function(a){a&1&&C(0,Usb,1,0,"ng-container",47);a&2&&(P(),a=L(95),D("ngTemplateOutlet",a))},Xsb=function(a,b){a&1&&(K(0,"b-list-field",48),S(1,"async"));a&2&&(a=P(3),D("readonly",!0)("defaultLineCount",3)("title","Team")("type",a.ListFieldType.TEAM)("values",jh(8,Wsb,b))("showInternalOnlyFieldBadge",!T(1,6,a.issueIsOnInternalComponent$)))},
Ysb=function(a){a&1&&(E(0,Xsb,2,10,"b-list-field",48),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.teamHovercardInputs$))?0:-1,b)}},$sb=function(a){if(a&1){var b=r();I(0,"div",49)(1,"b-team-warning",50);S(2,"async");S(3,"async");M("updateTeam",function(){t(b);var h=P(3);h.issueFullFridge.poke(h.issueId);return v()});J()()}if(a&2){var c;a=P();var d=P(),e=P();z();var f;D("warningType",a)("componentId",d.componentId)("parentComponentId",((c=T(2,4,e.component$))==null?null:c.parentComponentId)||0)("teamSuggestions",
(f=T(3,6,e.teamSuggestions$))!=null?f:ih(8,Zsb))}},atb=function(a){a&1&&(E(0,$sb,4,9,"div",49),S(1,"async"));a&2&&(a=P(2),F(T(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},btb=function(a){a&1&&Hg(0)},ctb=function(a){a&1&&C(0,btb,1,0,"ng-container",47);a&2&&(P(),a=L(97),D("ngTemplateOutlet",a))},dtb=function(a,b){if(a&1){var c=r();I(0,"div",51);K(1,"div",52);I(2,"span",53);S(3,"async");S(4,"async");M("click",function(){var d=t(c),e=P(3);return v(es(e,d))})("keydown.enter",function(d){var e=t(c);es(P(3),
e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=t(c);es(P(3),e);d.stopPropagation();return v(d.preventDefault())});Q(5);J()()}a&2&&(a=P(3),z(2),wg("disabled",!!T(3,6,a.isSaving$(a.IssueFieldName.STATUS))),D("matTooltip",b.description||""),ng("aria-disabled",!!T(4,8,a.isSaving$(a.IssueFieldName.STATUS)))("aria-label",b.displayText||null),z(3),R(" ",b.displayText," "))},etb=function(a){a&1&&(E(0,dtb,6,10,"div",51),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,
a.issueStatusQuickAction$))?0:-1,b)}},ftb=function(a){a&1&&(I(0,"div",24),K(1,"b-edit-field",54,15),S(3,"async"),I(4,"div",51),K(5,"div",52),I(6,"a",55),S(7,"async"),Q(8," Open triage "),J()()());a&2&&(a=P(2),z(),D("name","phase")("title","Triage phase")("type",a.FieldType.ENUM)("value",T(3,8,a.triagePhase$))("choices",a.phaseChoices)("showHotkeyHint",!1)("disabled",!0),z(5),D("href",T(7,10,a.triagePhaseUrl$),uf))},gtb=function(a){a&1&&(K(0,"b-issue-card",56,16),S(2,"async"));if(a&2){a=L(1);var b=
P(2);D("onedevIsHovercardReady",a.init)("issueId",T(2,2,b.canonicalIssueId$))}},itb=function(a){if(a&1){var b=r();I(0,"b-estimated-effort-row",57);S(1,"async");S(2,"async");S(3,"async");M("effortChange",function(e){t(b);var f=P(2);return v(htb(f.editIssueService,f.issueId,e))});J()}if(a&2){a=P(2);var c,d;D("effort",(c=T(1,3,a.effort$))!=null?c:void 0)("effortSpec",(d=T(2,5,a.effortSpec$))!=null?d:void 0)("disabled",!T(3,7,a.hasAclToEdit$))}},jtb=function(a){a&1&&(I(0,"div"),Q(1," Expanded access is turned on for this component. Assignees, verifiers and collaborators can edit issues in this component, and CC'd users can comment on them. "),
I(2,"a",61),Q(3,"Learn more"),J()());a&2&&(a=P(3),z(2),D("href",Dq(a.documentationLinks)+"#expanded-access",uf))},ktb=function(a){a&1&&(I(0,"div",38)(1,"span",58),Q(2,"Expanded Access"),J(),I(3,"xap-bubble",59)(4,"xap-icon-trigger"),K(5,"mat-icon",60),J(),C(6,jtb,4,1,"ng-template",null,17,nh),J()());a&2&&(a=L(7),z(3),D("panelTemplate",a))},ltb=function(a){a&1&&(I(0,"span",65),S(1,"async"),Q(2),J());if(a&2){a=P();var b=P(3);wg("disabled",!!T(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));z(2);R(" ",
a.displayText," ")}},mtb=function(a,b){if(a&1){var c=r();I(0,"div",63);S(1,"async");M("onHotkey",function(){var d=t(c),e=P(3);return v(es(e,d))})("click",function(){var d=t(c),e=P(3);return v(es(e,d))})("keydown.enter",function(d){var e=t(c);es(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=t(c);es(P(3),e);d.stopPropagation();return v(d.preventDefault())});K(2,"div",52);E(3,ltb,3,5,"span",64);S(4,"async");J()}a&2&&(a=P(3),D("hotkey",a.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",
b.description),ng("aria-disabled",!!T(1,5,a.isSaving$(a.IssueFieldName.ASSIGNEE)))("aria-label",b.description),z(3),F(T(4,7,a.hasAclToEdit$)?3:-1))},ntb=function(a){a&1&&(E(0,mtb,5,9,"div",62),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.issueAssigneeQuickAction$))?0:-1,b)}},otb=function(a){a&1&&Hg(0)},ptb=function(a){a&1&&C(0,otb,1,0,"ng-container",47);a&2&&(P(),a=L(99),D("ngTemplateOutlet",a))},qtb=function(a){a&1&&K(0,"b-list-field",44);if(a&2){a=P();var b=P(2);D("readonly",!0)("defaultLineCount",
3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},rtb=function(a,b){a&1&&(E(0,qtb,1,6,"b-list-field",44),S(1,"async"));a&2&&(a=P(2),F(T(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},stb=function(a){a&1&&K(0,"b-list-field",44);if(a&2){a=P();var b=P();D("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},
utb=function(a,b){a&1&&(I(0,"div"),Hg(1,66),J());a&2&&(a=b.$implicit,P(),b=L(111),z(),D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,ttb,a)))},vtb=function(a){a&1&&Hg(0)},wtb=function(a){a&1&&C(0,vtb,1,0,"ng-container",47);a&2&&(P(),a=L(109),D("ngTemplateOutlet",a))},xtb=function(a){a&1&&K(0,"hr",45)},ytb=function(a){a&1&&Hg(0)},ztb=function(a){a&1&&C(0,ytb,1,0,"ng-container",47);a&2&&(P(2),a=L(95),D("ngTemplateOutlet",a))},Atb=function(a){a&1&&Hg(0)},Btb=function(a){a&1&&C(0,Atb,1,0,"ng-container",
47);a&2&&(P(2),a=L(97),D("ngTemplateOutlet",a))},Ctb=function(a){a&1&&Hg(0)},Dtb=function(a){a&1&&C(0,Ctb,1,0,"ng-container",47);a&2&&(P(2),a=L(99),D("ngTemplateOutlet",a))},Etb=function(a,b){a&1&&(I(0,"div"),Hg(1,66),J());a&2&&(a=b.$implicit,P(2),b=L(111),z(),D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,ttb,a)))},Ftb=function(a){a&1&&Hg(0)},Gtb=function(a){a&1&&C(0,Ftb,1,0,"ng-container",47);a&2&&(P(2),a=L(109),D("ngTemplateOutlet",a))},Htb=function(a){a&1&&(I(0,"collapsible-panel",46),
S(1,"async"),E(2,ztb,1,1,"ng-container"),S(3,"async"),E(4,Btb,1,1,"ng-container"),S(5,"async"),E(6,Dtb,1,1,"ng-container"),S(7,"async"),Dg(8,Etb,2,4,"div",null,r()[15][8].trackCustomField,!0),S(10,"async"),E(11,Gtb,1,1,"ng-container"),S(12,"async"),J());if(a&2){a=P(2);var b;D("titleWhenCollapsed",(b=T(1,6,a.showHiddenFieldsLabel$))!=null?b:"")("titleWhenExpanded","Hide additional fields");z(2);F(a.showSloStatus&&!T(3,8,a.isSloStatusPrimary$)?2:-1);z(2);F(T(5,10,a.isSeverityPrimary$)?-1:4);z(2);F(a.showCodeChanges&&
!T(7,12,a.isChangelistPrimary$)?6:-1);z(2);Eg(T(10,14,a.hiddenCustomFields$));z(3);F(T(12,16,a.isForgottenFourPrimary$)?-1:11)}},Itb=function(a){if(a&1){var b=r();I(0,"b-issue-slo-box",68);S(1,"async");S(2,"async");S(3,"async");S(4,"async");S(5,"async");M("onSloStartTimeChange",function(h){t(b);var k=P(3);return v(k.editIssueService.updateSloStartTime(k.issueId,h.date))})("onSloEndTimeChange",function(h){t(b);var k=P(3);return v(k.editIssueService.updateSloEndTime(k.issueId,h.date))});J()}if(a&2){a=
P(2);var c=P(),d,e,f;D("sloStatus",(d=T(1,9,c.sloStatus$))!=null?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloId",(e=T(2,11,c.sloId$))!=null?e:void 0)("componentId",a.componentId)("isEditable",!!T(3,13,c.hasAclToEdit$))("issueCreationTimestamp",(f=T(4,15,c.createdTimeMicros$))!=null?f:0)("showInternalOnlyFieldBadge",!T(5,17,c.issueIsOnInternalComponent$))("escalationOwner",a.escalationOwner)}},Jtb=function(a){a&1&&C(0,Itb,6,19,"ng-template",67);a&2&&(a=P(2),D("refreshable",
a.refreshMonitor.getObservable()))},Ltb=function(a){if(a&1){var b=r();I(0,"b-edit-field",69);S(1,"async");S(2,"async");M("valueChange",function(d){t(b);var e=P(2);return v(Ktb(e.editIssueService,e.issueId,d!=null?d:""))});J()}if(a&2){a=P();var c=P();D("name","severity")("title","Severity")("type",c.FieldType.ENUM)("tooltip","Set severity, which reflects how much the issue affects the use of the product")("value",a.severity)("choices",c.severityChoices)("readonly",!T(1,8,c.hasAclToEdit$))("disabled",
!!T(2,10,c.isSaving$(c.IssueFieldName.SEVERITY)))}},Mtb=function(a){if(a&1){var b=r();I(0,"insights-graph-btn",72);M("pressed",function(){t(b);var c=P(3);return v(c.issueInsightsSidebarService.onClickButton("deployments"))});J()}},Ptb=function(a){if(a&1){var b=r();I(0,"b-list-field",70);S(1,"async");S(2,"async");M("valuesChange",function(h){t(b);var k=P(2),q=[],u=[];h=l(h.values);for(var A=h.next();!A.done;A=h.next()){A=A.value;var G=im(A);G?q.push(G):u.push(A)}Ntb(k.editIssueService,k.issueId,u);
Otb(k.editIssueService,k.issueId,q);return v()});I(3,"div",71);E(4,Mtb,1,0,"insights-graph-btn");S(5,"async");J()();K(6,"b-list-field",44);S(7,"async");S(8,"async");S(9,"async")}if(a&2){var c,d,e;a=P();var f=P();D("readonly",!T(1,16,f.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",f.codeChangesValidator)("type",f.ListFieldType.CODE_CHANGES)("values",V0a(a,f.sessionIsExternal))("listFieldDisabled",!!T(2,18,f.isSaving$(f.IssueFieldName.CHANGELISTS)));z(4);F(T(5,20,f.issueInsightsSidebarService.shouldShowInsightsGraphButton$)?
4:-1);z(2);wg("bv2-issue-metadata-error",(c=T(7,22,f.pendingCodeChanges$))==null?null:c.hasError);D("readonly",!0)("defaultLineCount",3)("title","Pending Code Changes")("type",f.ListFieldType.CODE_CHANGES)("values",((d=T(8,24,f.pendingCodeChanges$))==null?null:d.changes)||ih(28,Zsb))("tooltip",((e=T(9,26,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},Rtb=function(a){if(a&1){var b=r();I(0,"b-edit-field",73);S(1,"csv");S(2,
"async");S(3,"async");M("valueChange",function(d){t(b);var e=P(2);return v(Qtb(e.editIssueService,e.issueId,d!=null?d:""))});J()}if(a&2){a=P();var c=P();D("name","foundInVersion")("title","Found In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product affected by this issue (comma-separated list)")("value",T(1,8,a.foundInVersion))("readonly",!T(2,10,c.hasAclToEdit$))("disabled",!!T(3,12,c.isSaving$(c.IssueFieldName.FOUND_IN_VERSION)))}},Ttb=function(a){if(a&1){var b=
r();I(0,"b-edit-field",74);S(1,"csv");S(2,"async");S(3,"async");M("valueChange",function(d){t(b);var e=P(2);return v(Stb(e.editIssueService,e.issueId,d!=null?d:""))});J()}if(a&2){a=P();var c=P();D("name","targetedToVersion")("title","Targeted To")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)")("value",T(1,8,a.targetedToVersion))("readonly",!T(2,10,c.hasAclToEdit$))("disabled",!!T(3,12,c.isSaving$(c.IssueFieldName.TARGETED_TO_VERSION)))}},
Vtb=function(a){if(a&1){var b=r();I(0,"b-edit-field",73);S(1,"csv");S(2,"async");S(3,"async");M("valueChange",function(d){t(b);var e=P(2);return v(Utb(e.editIssueService,e.issueId,d!=null?d:""))});J()}if(a&2){a=P();var c=P();D("name","verifiedInVersion")("title","Verified In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue fix was verified (comma-separated list)")("value",T(1,8,a.verifiedInVersion))("readonly",!T(2,10,c.hasAclToEdit$))("disabled",
!!T(3,12,c.isSaving$(c.IssueFieldName.VERIFIED_IN_VERSION)))}},Xtb=function(a){if(a&1){var b=r();I(0,"b-edit-field",75);S(1,"async");S(2,"async");M("valueChange",function(d){t(b);var e=P(2);return v(Wtb(e.editIssueService,e.issueId,d!=null?d:!1))});J()}if(a&2){a=P();var c=P();D("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!T(1,7,c.hasAclToEdit$))("disabled",!!T(2,9,c.isSaving$(c.IssueFieldName.IN_PROD)))}},
Ytb=function(a){a&1&&Hg(0)},Ztb=function(a){a&1&&Hg(0)},$tb=function(a){a&1&&Hg(0)},aub=function(a){a&1&&Hg(0)},bub=function(a){a&1&&(I(0,"div",20),C(1,Ytb,1,0,"ng-container",47)(2,Ztb,1,0,"ng-container",47)(3,$tb,1,0,"ng-container",47)(4,aub,1,0,"ng-container",47),J());if(a&2){P();a=L(101);var b=L(103),c=L(105),d=L(107);z();D("ngTemplateOutlet",a);z();D("ngTemplateOutlet",b);z();D("ngTemplateOutlet",c);z();D("ngTemplateOutlet",d)}},dub=function(a,b){if(a&1){var c=r();I(0,"b-custom-field-editor",
76);S(1,"async");S(2,"async");M("save",function(e){var f=t(c).$implicit,h=P(2);return v(h.editIssueService.updateCustomField(h.issueId,f.customFieldId,e))});J()}if(a&2){a=b.$implicit;b=P();var d=P();D("issue",b)("field",a)("readonly",!T(1,4,d.hasAclToEdit$))("disabled",!!T(2,6,d.isSaving$(jh(8,cub,a.customFieldId))))}},pub=function(a,b){if(a&1){var c=r();E(0,Vsb,1,1,"ng-container");S(1,"async");E(2,Ysb,2,3);E(3,atb,2,3);S(4,"async");I(5,"b-single-user-control",18);S(6,"async");M("valueChange",function(H){t(c);
var N=P();return v(eub(N,H))})("emailChange",function(H){t(c);var N=P();return v(fub(N.editIssueService,N.issueId,H))});J();I(7,"b-edit-field",19,0);S(9,"async");S(10,"async");M("valueChange",function(H){t(c);var N=L(8),O=P();return v(gub(O,N,H!=null?H:""))});J();I(11,"div",20)(12,"b-edit-field",21,1);S(14,"async");S(15,"async");M("onHotkey",function(){t(c);var H=L(13);return v(wq(H,null,!0,!1))})("valueChange",function(H){t(c);var N=P();return v(hub(N.editIssueService,N.issueId,H!=null?H:""))});
J();E(16,ctb,1,1,"ng-container");S(17,"async");J();I(18,"div",22)(19,"b-edit-field",23,2);S(21,"async");S(22,"async");S(23,"async");S(24,"async");M("onHotkey",function(){t(c);var H=L(20);return v(wq(H,null,!0,!1))})("valueChange",function(H){t(c);var N=P();return v(N.onStatusChanged(H!=null?H:""))});J();E(25,etb,2,3);S(26,"async");J();E(27,ftb,9,12,"div",24);I(28,"onedev-hovercard",null,3);C(30,gtb,3,4,"b-issue-card",25);J();E(31,itb,4,9,"b-estimated-effort-row",26);S(32,"async");S(33,"async");I(34,
"div",27)(35,"div",28)(36,"div",29)(37,"label");Q(38,"Access");J()();I(39,"div",30)(40,"span",31);Q(41);S(42,"async");J();I(43,"div",32);S(44,"async");S(45,"async");M("click",function(){t(c);var H=P();return v(H.toggleAccessLimits())})("keydown.enter",function(H){t(c);var N=P();return v(N.toggleAccessLimitsWithKeystroke(H))})("keydown.space",function(H){t(c);var N=P();return v(N.toggleAccessLimitsWithKeystroke(H))});I(46,"span");Q(47);S(48,"async");J()()()();I(49,"onedev-hovercard",null,4)(51,"div",
33)(52,"div",34)(53,"span",35);Q(54," Issue access level can only be set by Issue admins and it enables issue-level access control. ");I(55,"a",36);Q(56,"Learn more");J()()()()()();I(57,"div",37);S(58,"async");E(59,ktb,8,1,"div",38);S(60,"async");I(61,"b-single-user-control",39,5);S(63,"async");M("onHotkey",function(){t(c);var H=L(62);return v(H.openEditor())})("valueChange",function(H){t(c);var N=P();return v(iub(N,H))})("emailChange",function(H){t(c);var N=P();return v(jub(N.editIssueService,N.issueId,
H))});J();E(64,ntb,2,3);S(65,"async");I(66,"b-single-user-control",40);S(67,"async");M("valueChange",function(H){t(c);var N=P();return v(kub(N,H))})("emailChange",function(H){t(c);var N=P();return v(lub(N.editIssueService,N.issueId,H))});J();Fg(68);I(69,"b-multi-user-control",41);S(70,"async");S(71,"async");S(72,"async");M("userInclusionToggle",function(){t(c);var H=P();return v(H.toggleCollaborators())})("valueChange",function(H){t(c);var N=P();return v(mub(N,H))})("toggleAccessLimits",function(){t(c);
var H=P();return v(H.toggleAccessLimits())});J();I(73,"b-multi-user-control",42);S(74,"async");S(75,"async");S(76,"async");M("userInclusionToggle",function(){t(c);var H=P();return v(nub(H))})("valueChange",function(H){t(c);var N=P();return v(oub(N,H))});J();Gg();J();E(77,ptb,1,1,"ng-container");S(78,"async");E(79,rtb,2,3);S(80,"async");K(81,"b-staffing-row",43);S(82,"async");S(83,"async");E(84,stb,1,6,"b-list-field",44);Dg(85,utb,2,4,"div",null,r()[15][8].trackCustomField,!0);S(87,"async");E(88,wtb,
1,1,"ng-container");S(89,"async");E(90,xtb,1,0,"hr",45);S(91,"async");E(92,Htb,13,18,"collapsible-panel",46);S(93,"async");C(94,Jtb,1,1,"ng-template",null,6,nh)(96,Ltb,3,12,"ng-template",null,7,nh)(98,Ptb,10,29,"ng-template",null,8,nh)(100,Rtb,4,14,"ng-template",null,9,nh)(102,Ttb,4,14,"ng-template",null,10,nh)(104,Vtb,4,14,"ng-template",null,11,nh)(106,Xtb,3,11,"ng-template",null,12,nh)(108,bub,5,4,"ng-template",null,13,nh)(110,dub,3,10,"ng-template",null,14,nh)}if(a&2){var d,e;a=L(29);var f=L(50),
h=P();F(h.showSloStatus&&T(1,98,h.isSloStatusPrimary$)?0:-1);z(2);F(h.sessionIsInternal?2:-1);z();F((d=T(4,100,h.teamWarningType$))?3:-1,d);z(2);var k;D("name","reporter")("title","Reporter")("value",b.reporter)("user",(k=b.reporterUser)!=null?k:void 0)("isSaving",T(6,102,h.isSaving$(h.IssueFieldName.REPORTER)));z(2);D("name","type")("title","Type")("type",h.FieldType.ENUM)("value",b.type)("choices",h.typeChoices)("readonly",!T(9,104,h.hasAclToEdit$))("disabled",!!T(10,106,h.isSaving$(h.IssueFieldName.TYPE)));
z(5);D("name","priority")("title","Priority")("type",h.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",b.priority)("choices",h.priorityChoices)("hotkey",h.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!T(14,108,h.hasAclToEdit$))("disabled",!!T(15,110,h.isSaving$(h.IssueFieldName.PRIORITY)))("showHotkeyHint",!0);z(4);F(T(17,112,h.isSeverityPrimary$)?16:-1);z(3);var q;D("name","status")("title","Status")("type",h.FieldType.ENUM)("value",b.status)("choices",
(q=T(21,114,h.statusChoices$))!=null?q:ih(174,Zsb))("showHotkeyHint",!0)("hotkey",h.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!T(22,116,h.hasAclToEdit$))("disabled",!!T(23,118,h.isSaving$(h.IssueFieldName.STATUS)))("onedevHovercardActive",!!T(24,120,h.canonicalIssueId$))("onedevHovercardTrigger",a);z(6);F(T(26,122,h.hasAclToEdit$)?25:-1);z(2);F(h.enableTriageView?27:-1);z(4);F(T(32,124,h.isEffortEnabled$)&&T(33,126,h.shouldDisplayEffort$)?31:-1);z(4);D("onedevHovercardTrigger",f)("onedevHovercardActive",
!0)("onedevHovercardConfig",h.ACCESS_LIMITS_HOVERCARD_CONFIG);z(6);ch(h.getAccessLimitLevelDisplay(T(42,128,h.accessLimitLevel$)));z(2);D("matTooltip",T(44,130,h.hasAclToAdmin$)?"Manage issue level access limits(Press Alt + Right arrow for more information)":"View issue level access limits(Press Alt + Right arrow for more information)");ng("aria-label",T(45,132,h.hasAclToAdmin$)?"Edit":"View");z(4);R(" ",T(48,134,h.hasAclToAdmin$)?"Edit":"View"," ");z(8);D("href",h.documentationLinks.getIssueAccessLimit(),
uf);z(2);wg("implicit-access-box",T(58,136,h.isImplicitAccessEnabled$));z(2);F(T(60,138,h.isImplicitAccessEnabled$)?59:-1);z(2);var u;D("name","assignee")("title","Assignee")("hotkey",h.HOTKEYS.CHANGE_ASSIGNEE)("value",b.assignee)("user",(u=b.assigneeUser)!=null?u:void 0)("isSaving",T(63,140,h.isSaving$(h.IssueFieldName.ASSIGNEE)));z(3);F(h.defaultAssigneeQuickActionEnabled&&T(65,142,h.hasAclToEdit$)?64:-1);z(2);var A;D("name","verifier")("title","Verifier")("value",b.verifier)("user",(A=b.verifierUser)!=
null?A:void 0)("isSaving",T(67,144,h.isSaving$(h.IssueFieldName.VERIFIER)));z(3);D("title","Collaborators")("values",b.collaborators)("users",b.collaboratorsUsers)("includeSelfActionDescription","Add me")("includeSelfActionLongDescription","Add yourself to collaborators")("removeSelfActionDescription","Remove me")("removeSelfActionLongDescription","Remove yourself from collaborators")("collectionHovercardDescription","Collaborators are people directly working on this issue.")("isSaving",T(70,146,
h.isSaving$(h.IssueFieldName.COLLABORATORS)))("isCurrentUserInCollection",T(71,148,h.isCurrentUserCollaborator$))("isAllowedToEditCollection",T(72,150,h.hasAclToEdit$))("iconName","groups_24px")("inputValidator",h.collaboratorUserPrincipalValidator)("checkAccessLimits",!0);z(4);D("title","CC")("values",b.cc)("users",b.ccUsers)("includeSelfActionDescription","CC me")("includeSelfActionLongDescription","Add yourself to CC")("removeSelfActionDescription","Un-CC me")("removeSelfActionLongDescription",
"Remove yourself from CC")("collectionHovercardDescription","CC are users who want to receive updates.")("isSaving",T(74,152,h.isSaving$(h.IssueFieldName.CCS)))("isCurrentUserInCollection",T(75,154,h.isCurrentUserCCd$))("isAllowedToEditCollection",T(76,156,h.isAllowedToEditCC$))("iconName","add_alert_24px");z(4);F(h.showCodeChanges&&T(78,158,h.isChangelistPrimary$)?77:-1);z(2);F((e=T(80,160,h.workspaces$))?79:-1,e);z(2);var G;D("staffing",(G=T(82,162,h.staffing$))!=null?G:void 0)("issueId",h.issueId)("isAllowedToEdit",
T(83,164,h.hasAclToEdit$));z(3);F(!h.sessionIsExternal&&(b.postmortems==null?0:b.postmortems.length)?84:-1);z();Eg(T(87,166,h.visibleCustomFields$));z(3);F(T(89,168,h.isForgottenFourPrimary$)?88:-1);z(2);F(T(91,170,h.hasHiddenFields$)?90:-1);z(2);F(T(93,172,h.hasHiddenFields$)?92:-1)}},qub=function(a,b){if(a&1){var c=r();I(0,"a",18);M("click",function(){t(c);P().analytics.trackEvent("issueSidebar","navigate","issueDetailsPage");return v()});I(1,"span",19);Q(2,"Navigate to issue ");J();Q(3);J();I(4,
"button",20);M("click",function(){var d=t(c),e=P();return v(e.copyIssueId(d))});K(5,"mat-icon",21);J()}a&2&&(Pg("href","/issues/",b,"",uf),z(3),R(" ",b," "))},rub=function(a,b){if(a&1){var c=r();I(0,"b-app-vote-button",22);M("onVote",function(d){t(c);var e=P();return v(e.upvoted(d))});J()}a&2&&D("issueId",b.issueId)("upvoted",!(b.userData==null||!b.userData.voted))("voteCount",(b.aggregatedData==null?null:b.aggregatedData.voteCount)||0)},tub=function(a){if(a&1){var b=r();I(0,"span");Q(1);J();I(2,
"button",24);M("click",function(){t(b);var c=P(2);return v(sub(c))});K(3,"mat-icon",25);J()}a&2&&(a=P(),ng("title",a.snapshot[0].title),z(),R(" ",a.snapshot[0].title," "),z(),D("matTooltipShowDelay",500))},vub=function(a){if(a&1){var b=r();I(0,"button",31);M("click",function(){t(b);var c=P(3);return v(uub(c))});Q(1,"Cancel");J()}},wub=function(a){a&1&&Q(0," Update title ")},xub=function(a){a&1&&Hg(0)},yub=function(a){a&1&&C(0,xub,1,0,"ng-container",32);a&2&&(P(3),a=L(23),D("ngTemplateOutlet",a))},
zub=function(a){if(a&1){var b=r();I(0,"mat-form-field",26)(1,"textarea",27);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.draftTitle,c)||(d.draftTitle=c);return v(c)});J()();I(2,"div",28);E(3,vub,2,0,"button",29);I(4,"button",30);M("click",function(){t(b);var c=P(2);return v(c.saveTitle())});E(5,wub,1,0)(6,yub,1,1,"ng-container");J()()}a&2&&(a=P(2),z(),D("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),eh("ngModel",a.draftTitle),D("bFocus",!0),z(2),F(a.isSavingTitle?-1:3),z(),D("disabled",
a.isSavingTitle),z(),F(a.isSavingTitle?6:5))},Aub=function(a){a&1&&(I(0,"div",15)(1,"div",23),E(2,tub,4,3),E(3,zub,7,7),J()());a&2&&(a=P(),z(2),F(a.editTitleMode?-1:2),z(),F(a.editTitleMode?3:-1))},Bub=function(a){a&1&&(I(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"div"),Q(3," AI-generated summaries may contain inaccurate or offensive information that does not represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),
J()()())},Cub=function(a){if(a&1){var b=r();I(0,"button",54);M("click",function(){t(b);var c=P(5);return v(c.generateIssueSummary())});Q(1," Generate ");J()}},Dub=function(a){a&1&&K(0,"mat-icon",44)},Eub=function(a){a&1&&K(0,"mat-icon",45)},Fub=function(a){if(a&1){var b=r();I(0,"button",55);M("click",function(){t(b);var c=P(5);return v(c.isIssueSummaryExpanded=!c.isIssueSummaryExpanded)});E(1,Dub,1,0,"mat-icon",44);E(2,Eub,1,0,"mat-icon",45);J()}a&2&&(a=P(5),D("matTooltipShowDelay",1E3),ng("aria-expanded",
a.isIssueSummaryExpanded),z(),F(a.isIssueSummaryExpanded?-1:1),z(),F(a.isIssueSummaryExpanded?2:-1))},Gub=function(a){a&1&&Hg(0,56);a&2&&(P(6),a=L(23),D("ngTemplateOutlet",a))},Hub=function(a){a&1&&K(0,"b-markdown-format-presenter",57);a&2&&(a=P(),D("content",a.formattedSummary))},Iub=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(),z(),R(" ",a.summary," "))},Jub=function(a,b){if(a&1){var c=r();E(0,Hub,1,1,"b-markdown-format-presenter",57)(1,Iub,2,1,"div");I(2,"div",58)(3,"button",59);M("click",
function(){var d=t(c),e=P(7);return v(e.copySummary(d))});K(4,"mat-icon",60);J();I(5,"button",61);M("click",function(){var d=t(c),e=P(7);return v(e.openFeedbackDialog(d))});K(6,"mat-icon",62);J();I(7,"button",63);M("click",function(){var d=t(c),e=P(7);return v(e.trackThumbsUp(d))});K(8,"mat-icon",64);J();I(9,"button",65);M("click",function(){var d=t(c),e=P(7);return v(e.trackThumbsDown(d))});K(10,"mat-icon",66);J()()}a&2&&(a=P(7),F(b.formattedSummary?0:1),z(7),D("disabled",a.hasRatedSummary),z(),
wg("has-reacted-icon",a.summaryThumbsUp),z(),D("disabled",a.hasRatedSummary),z(),wg("has-reacted-icon",a.summaryThumbsDown))},Kub=function(a){a&1&&(E(0,Jub,11,7),S(1,"async"));if(a&2){var b;a=P(6);F((b=T(1,1,a.issueSummary$))?0:-1,b)}},Lub=function(a){a&1&&(I(0,"div",53),E(1,Gub,1,1,"ng-container",56)(2,Kub,2,3),J());if(a&2){a=P(2);var b=P(3);z();F(a===b.GENERATING?1:a===b.SUMMARY_VISIBLE?2:-1)}},Mub=function(a){a&1&&(I(0,"div",47)(1,"div",34)(2,"div",35),K(3,"mat-icon",48),I(4,"span"),Q(5,"AI-GENERATED SUMMARY"),
J(),I(6,"button",49),K(7,"mat-icon",50),J(),C(8,Bub,4,0,"ng-template",null,2,nh),J(),E(10,Cub,2,0,"button",51),E(11,Fub,3,4,"button",52),J(),E(12,Lub,3,1,"div",53),J());if(a&2){a=L(9);var b=P(),c=P(3);z(6);D("xapInlineDialog",a)("dialogTabIndex",0);z(4);F(b===c.BUTTON?10:-1);z();F(b===c.SUMMARY_VISIBLE?11:-1);z();F(c.isIssueSummaryExpanded?12:-1)}},Nub=function(a,b){a&1&&E(0,Mub,13,5,"div",47);a&2&&(a=P(3),F(b!==a.HIDDEN?0:-1))},Oub=function(a){a&1&&(E(0,Nub,1,1),S(1,"async"));if(a&2){var b;a=P(2);
F((b=T(1,1,a.stage$))?0:-1,b)}},Pub=function(a){a&1&&(I(0,"span"),Q(1," No update yet "),J())},Qub=function(a){if(a&1){var b=r();I(0,"button",67);M("click",function(){t(b);var c=P(2);return v(c.editStatusUpdate())});K(1,"mat-icon",25);J()}a&2&&D("matTooltipShowDelay",1E3)},Rub=function(a){a&1&&K(0,"mat-icon",44)},Sub=function(a){a&1&&K(0,"mat-icon",45)},Tub=function(a){if(a&1){var b=r();I(0,"button",68);M("click",function(){t(b);var c=P(2);return v(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});
E(1,Rub,1,0,"mat-icon",44);E(2,Sub,1,0,"mat-icon",45);J()}a&2&&(a=P(2),D("matTooltipShowDelay",1E3),ng("aria-expanded",a.isStatusUpdateExpanded),z(),F(a.isStatusUpdateExpanded?-1:1),z(),F(a.isStatusUpdateExpanded?2:-1))},Uub=function(a,b){a&1&&(K(0,"b-note-container",70),S(1,"async"));if(a&2){a=P();var c=P(),d=P(2),e;D("issueId",b)("note",c)("issueAccessLevel",T(1,4,d.accessLevel$))("formattingMode",(e=a.formattingMode)!=null?e:d.FormattingMode.PLAIN)}},Vub=function(a){a&1&&(I(0,"div",69),E(1,Uub,
2,6,"b-note-container",70),S(2,"async"),J());if(a&2){var b;a=P();var c=P(2);z();F((b=a.unlinkifiedComment!==""&&T(2,1,c.issueId$))?1:-1,b)}},Wub=function(a){a&1&&(E(0,Vub,3,3,"div",69),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.statusUpdate$))?0:-1,b)}},Xub=function(a){a&1&&(I(0,"span"),Q(1," No description yet "),J())},Zub=function(a){if(a&1){var b=r();I(0,"button",74);M("click",function(){t(b);var c=P(3);return v(Yub(c))});K(1,"mat-icon",25);J()}a&2&&D("matTooltipShowDelay",1E3)},$ub=function(a){a&
1&&K(0,"mat-icon",44)},avb=function(a){a&1&&K(0,"mat-icon",45)},bvb=function(a){if(a&1){var b=r();I(0,"button",75);M("click",function(){t(b);var c=P(3);return v(c.isDescriptionExpanded=!c.isDescriptionExpanded)});E(1,$ub,1,0,"mat-icon",44);E(2,avb,1,0,"mat-icon",45);J()}a&2&&(a=P(3),D("matTooltipShowDelay",1E3),ng("aria-expanded",a.isDescriptionExpanded),z(),F(a.isDescriptionExpanded?-1:1),z(),F(a.isDescriptionExpanded?2:-1))},cvb=function(a,b){a&1&&(K(0,"b-note-container",70),S(1,"async"));if(a&
2){a=P();var c=P(2),d=P(2),e;D("issueId",b)("note",a)("issueAccessLevel",T(1,4,d.accessLevel$))("formattingMode",(e=c[0].formattingMode)!=null?e:d.FormattingMode.PLAIN)}},dvb=function(a){if(a&1){var b=r();I(0,"div",77)(1,"a",78);M("click",function(){t(b);var c=P(5);c.analytics.trackEvent("issueSidebar","showMoreDescription");c.showFullDescription=!0;return v()});Q(2," Show more ");J()()}},evb=function(a){a&1&&(I(0,"div",76),E(1,cvb,2,6,"b-note-container",70),S(2,"async"),S(3,"async"),J(),E(4,dvb,
3,0,"div",77));if(a&2){var b;a=P(4);wg("full-height",a.showFullDescription);z();F((b=T(2,4,a.hasDescription$)&&T(3,6,a.issueId$))?1:-1,b);z(3);F(!a.showFullDescription&&a.descriptionHasMore?4:-1)}},fvb=function(a){a&1&&(I(0,"div",73,3),E(2,evb,5,8),S(3,"async"),S(4,"async"),J());if(a&2){var b;a=P(3);z(2);F((b=T(3,1,a.hasDescription$)&&T(4,3,a.firstNote$))?2:-1,b)}},gvb=function(a){a&1&&(I(0,"div",40)(1,"div",34)(2,"div",35)(3,"span"),Q(4,"DESCRIPTION"),J()(),I(5,"div",37),E(6,Xub,2,0,"span"),S(7,
"async"),E(8,Zub,2,1,"button",71),S(9,"async"),S(10,"async"),E(11,bvb,3,4,"button",72),S(12,"async"),J()(),E(13,fvb,5,5,"div",73),J());a&2&&(a=P(2),z(6),F(T(7,4,a.hasDescription$)?-1:6),z(2),F(!a.isDescriptionExpanded&&T(9,6,a.hasDescription$)||!T(10,8,a.userCanEditDescription$)?-1:8),z(3),F(T(12,10,a.hasDescription$)?11:-1),z(2),F(a.isDescriptionExpanded?13:-1))},hvb=function(a){a&1&&Hg(0)},ivb=function(a){a&1&&C(0,hvb,1,0,"ng-container",32);a&2&&(P(2),a=L(23),D("ngTemplateOutlet",a))},jvb=function(a){a&
1&&K(0,"mat-icon",44)},kvb=function(a){a&1&&K(0,"mat-icon",45)},lvb=function(a){a&1&&(I(0,"div",46),K(1,"edit-issue-metadata",79),J());a&2&&(a=P(),z(),D("issueId",a.issueId))},mvb=function(a){if(a&1){var b=r();I(0,"div",17);E(1,Oub,2,3);I(2,"div",33)(3,"div",34)(4,"div",35);K(5,"mat-icon",36);I(6,"span");Q(7," STATUS UPDATE ");J()();I(8,"div",37);E(9,Pub,2,0,"span");S(10,"async");E(11,Qub,2,1,"button",38);S(12,"async");S(13,"async");E(14,Tub,3,4,"button",39);S(15,"async");J()();E(16,Wub,2,3);S(17,
"async");J();E(18,gvb,14,12,"div",40);S(19,"async");Ag(20,ivb,1,1,"ng-container");I(21,"div",41)(22,"div",34)(23,"div",35);K(24,"mat-icon",42);I(25,"span");Q(26,"FIELDS");J()();I(27,"button",43);M("click",function(){t(b);var e=P();return v(e.isFieldsExpanded=!e.isFieldsExpanded)});E(28,jvb,1,0,"mat-icon",44);E(29,kvb,1,0,"mat-icon",45);J()();E(30,lvb,2,1,"div",46);J()()}if(a&2){var c,d;a=P();z();F(a.enableIssueSummarizationNoButton?1:-1);z(8);F(T(10,11,a.hasStatusUpdate$)?-1:9);z(2);F(!a.isStatusUpdateExpanded&&
T(12,13,a.hasStatusUpdate$)||!T(13,15,a.userCanEditStatusUpdate$)?-1:11);z(3);F(T(15,17,a.hasStatusUpdate$)?14:-1);z(2);F((c=a.isStatusUpdateExpanded&&T(17,19,a.statusUpdateNote$))?16:-1,c);z(2);F((d=T(19,21,a.events$))?18:20,d);z(9);D("matTooltipShowDelay",1E3);ng("aria-expanded",a.isFieldsExpanded);z();F(a.isFieldsExpanded?-1:28);z();F(a.isFieldsExpanded?29:-1);z();F(a.isFieldsExpanded?30:-1)}},nvb=function(a){a&1&&Hg(0)},ovb=function(a){a&1&&C(0,nvb,1,0,"ng-container",32);a&2&&(P(),a=L(23),D("ngTemplateOutlet",
a))},pvb=function(a){a&1&&(I(0,"div",80),K(1,"b-spinner"),J())},qvb=function(a){a&1&&(Q(0," This issue has not been modified since "),K(1,"b-formatted-date-time",1),Q(2," and is scheduled for deletion on "),I(3,"strong"),K(4,"b-formatted-date-time",1),J(),Q(5,". "));a&2&&(a=P(2),z(),D("mode","date")("timestamp",a.modifiedTime)("paddingLeftPx",0),z(3),D("mode","date")("timestamp",a.retentionExpireTime)("paddingLeftPx",0))},rvb=function(a){a&1&&Q(0," This issue is retained indefinitely. ")},svb=function(a){a&
1&&(E(0,qvb,6,6)(1,rvb,1,0),I(2,"a",0),Q(3,"Learn more"),J());a&2&&(a=P(),F(a.retentionState.retentionPeriod?0:1),z(2),D("href",a.documentationLink,uf))},tvb=function(a){a&1&&(I(0,"b-base-chip",0)(1,"div",1),K(2,"retention-text",2),J(),I(3,"div",3),K(4,"retention-help-text",4),J()());a&2&&(a=P(),D("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),z(2),D("retentionState",a.retentionState)("compactMode",a.compactMode),z(2),D("retentionState",
a.retentionState)("modifiedTime",a.modifiedTime))},uvb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=lm(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||0)/1E6:0))},xvb=function(a){if(a&1){var b=r();I(0,"issue-sidebar",10);M("closeSidebar",function(){t(b);var d=P(2);return v(d.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){t(b);var d=P(2);return v(vvb(d))})("navigateToPreviousIssue",function(){t(b);var d=P(2);return v(wvb(d))});
J()}if(a&2){var c;a=P(2);D("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},yvb=function(a){a&1&&Hg(0)},zvb=function(a){if(a&1){var b=r();I(0,"mat-sidenav-container",6,2)(2,"mat-sidenav",7);M("openedChange",function(d){t(b);P().anayltics.trackEvent("issueSidebar",d?"open":"close");return v()});E(3,xvb,1,1,"issue-sidebar",8);J();I(4,"mat-sidenav-content");C(5,yvb,1,0,"ng-container",9);J()()}if(a&2){a=P();var c=L(4);wg("sidebar-enabled",a.isIssueSidebarEnabled);z(2);D("opened",a.isIssueSidebarOpen)("disableClose",
!0);z();F(a.isIssueSidebarOpen?3:-1);z(2);D("ngTemplateOutlet",c)}},Avb=function(a){a&1&&Hg(0)},Bvb=function(a){a&1&&C(0,Avb,1,0,"ng-container",9);a&2&&(P(),a=L(4),D("ngTemplateOutlet",a))},Cvb=function(a,b){a&1&&K(0,"th",32);a&2&&ng("data-stable-column-name",b.column.name)},Dvb=function(a,b){a&1&&K(0,"th",33);a&2&&ng("data-stable-column-name",b.column.name)},Hvb=function(a){if(a&1){var b=r();I(0,"mat-pseudo-checkbox",36);M("click",function(c){t(b);var d=P(3);c.stopPropagation();return v(Evb(d))})("keydown.enter",
function(c){t(b);var d=P(3);c.stopPropagation();return v(Evb(d))})("keydown.space",function(c){t(b);var d=P(3);c.stopPropagation();return v(Evb(d))});J()}a&2&&(a=P(3),D("state",Fvb(a)),ng("aria-checked",Gvb(a)))},Ivb=function(a,b){a&1&&(I(0,"th",34),E(1,Hvb,1,2,"mat-pseudo-checkbox",35),J());a&2&&(a=b.column,b=P(2),ng("data-stable-column-name",a.name),z(),F(b.isIssueGridColumn(a)?1:-1))},Jvb=function(a,b){a&1&&K(0,"th");a&2&&ng("data-stable-column-name",b.column.name)},Kvb=function(a){a&1&&K(0,"pop-grid-default-th",
37);a&2&&(a=P().column,D("column",a))},Lvb=function(a,b){a&1&&(I(0,"th"),E(1,Kvb,1,1,"pop-grid-default-th",37),J());a&2&&(a=b.column,b=P(2),ng("data-stable-column-name",a.name),z(),F(b.isIssueGridColumn(a)?1:-1))},Mvb=function(a){if(a&1){var b=r();I(0,"b-column-picker",39);M("selectedColumnsChange",function(d){t(b);var e=P(4);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return v()});J()}if(a&2){a=P(2).column;var c=P(2);D("column",a)("availableColumns",c.availableColumns)("selectedColumns",
c.columns)}},Nvb=function(a){a&1&&K(0,"pop-grid-default-th",37);a&2&&(a=P(2).column,D("column",a))},Ovb=function(a){a&1&&E(0,Mvb,1,3,"b-column-picker",38)(1,Nvb,1,1,"pop-grid-default-th",37);a&2&&(a=P(3),F(a.enableColumnSaving?0:1))},Pvb=function(a,b){a&1&&(I(0,"th"),E(1,Ovb,2,1),J());a&2&&(a=b.column,b=P(2),ng("data-stable-column-name",a.name),z(),F(b.isIssueGridColumn(a)?1:-1))},Qvb=function(a){a&1&&K(0,"td",32)},Rvb=function(a){a&1&&K(0,"td",40)},Svb=function(a){if(a&1){var b=r();I(0,"mat-pseudo-checkbox",
42);M("click",function(c){t(b);var d=P(),e=d.row;d=d.index;var f=P(2);c.stopPropagation();if(c.shiftKey&&(c=e.selected,f.lastCheckedIndex!==null&&f.searchResults)){if(d<f.lastCheckedIndex){var h=d+1;var k=f.lastCheckedIndex+1}else h=f.lastCheckedIndex,k=d;h=l(f.searchResults.issues.slice(h,k));for(k=h.next();!k.done;k=h.next())k.value.selected=!c;fs(f)}e.selected=!e.selected;f.lastCheckedIndex=d;fs(f);return v()});J()}a&2&&(a=P().row,D("state",a.selected?"checked":"unchecked"),ng("aria-label","Select issue "+
a.issueId)("aria-checked",a.selected))},Tvb=function(a){a&1&&(I(0,"td",34),E(1,Svb,1,3,"mat-pseudo-checkbox",41),J());a&2&&(P(2),z(),F(1))},Uvb=function(a){if(a&1){var b=r();I(0,"b-star-toggle",45);M("starClicked",function(){t(b);var d=P().row,e=P(2);return v(e.toggleStar(d))});J()}if(a&2){a=P().row;var c=P(2);D("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},Vvb=function(a){a&1&&(I(0,"td",43),E(1,Uvb,1,4,"b-star-toggle",
44),J());a&2&&(P(2),z(),F(1))},Wvb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().row,ng("title",a.position),z(),R(" ",a.position," "))},Xvb=function(a){a&1&&(I(0,"td"),E(1,Wvb,2,2,"span"),J());a&2&&(P(2),z(),F(1))},Yvb=function(a){if(a&1){var b=r();I(0,"b-issue-id-picker",49);M("click",function(c){t(b);return v(c.stopPropagation())});J()}a&2&&(a=P(2).row,D("issueId",a.issueId)("showCopyOptions",!1),ng("title",a.title))},Zvb=function(a){a&1&&(I(0,"a",48),Q(1),J());a&2&&(a=P(2).row,P(2),D("href",
Hq(a.issueId),uf),ng("title",a.title),z(),R(" ",a.issueId," "))},$vb=function(a){a&1&&E(0,Yvb,1,3,"b-issue-id-picker",47)(1,Zvb,2,3,"a",48);a&2&&(a=P(3),F((a.listViewPrefs==null?null:a.listViewPrefs.modeForField==null?null:a.listViewPrefs.modeForField.id)==="copy"?0:1))},awb=function(a){a&1&&(I(0,"td",46),E(1,$vb,2,1),J());a&2&&(P(2),z(),F(1))},bwb=function(a){a&1&&K(0,"archived-issue-indicator")},cwb=function(a){a&1&&K(0,"mat-icon",58)},dwb=function(a,b){a&1&&K(0,"b-hotlist-chip-smart",60);a&2&&
D("id",b.$implicit)("removable",!1)},ewb=function(a){a&1&&(I(0,"div",59),Dg(1,dwb,1,2,"b-hotlist-chip-smart",60,Cg),J());a&2&&(a=P(2).row,z(),Eg(a.hotlistId))},fwb=function(a){a&1&&(I(0,"div",52),E(1,bwb,1,0,"archived-issue-indicator"),K(2,"b-issue-visibility-chip",53)(3,"b-tracker-chip-smart",54)(4,"b-retention-chip",55),I(5,"div",56)(6,"a",57),Q(7),E(8,cwb,1,0,"mat-icon",58),J()(),E(9,ewb,3,0,"div",59),J());if(a&2){a=P().row;var b=P(2);wg("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);
z();F(a.archived?1:-1);z();D("issueId",a.issueId)("compactMode",!0);z();D("trackerId",a.trackerId)("compactMode",!0);z();D("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);z(2);D("href",Hq(a.issueId),uf);ng("title",a.title);z();R(" ",a.title," ");z();F(b.isIssueSidebarEnabled?8:-1);z();F(b.listViewPrefs&&b.listViewPrefs.showHotlists?9:-1)}},gwb=function(a){a&1&&(I(0,"td",50),E(1,fwb,10,16,"div",51),J());a&2&&(a=P(2),wg("bv2-grid-cell-variable-height",
a.listViewPrefs&&a.listViewPrefs.wrapTitles),z(),F(1))},iwb=function(a){a&1&&(I(0,"div",62),Q(1),J());a&2&&(a=P().row,P(2),D("ngClass",lh(2,hwb,Number(a.priority)>=2,Number(a.priority)<2,Number(a.priority)===0)),z(),R(" P",a.priority," "))},jwb=function(a){a&1&&(I(0,"td",61),E(1,iwb,2,6,"div",62),J());a&2&&(P(2),z(),F(1))},kwb=function(a){a&1&&(I(0,"div",62),Q(1),J());a&2&&(a=P().row,P(2),D("ngClass",lh(2,hwb,Number(a.severity)>=2,Number(a.severity)<2,Number(a.severity)===0)),z(),R(" S",a.severity,
" "))},lwb=function(a){a&1&&(I(0,"td",63),E(1,kwb,2,6,"div",62),J());a&2&&(P(2),z(),F(1))},mwb=function(a){a&1&&K(0,"mat-icon",66);if(a&2){a=P();var b=P(4),c;D("svgIcon",(c=b.ISSUE_STATUS_JS_ICON_NAME.get(a))!=null?c:"")}},nwb=function(a){a&1&&Q(0);if(a&2){a=P();var b=P(4),c;R(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},owb=function(a){a&1&&(I(0,"span"),Q(1),J());if(a&2){a=P();var b=P(4);zg("chippy status-",a," margin-left-auto");z();var c;R(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},
pwb=function(a,b){a&1&&(I(0,"span",65),E(1,mwb,1,1,"mat-icon",66)(2,nwb,1,1)(3,owb,2,4,"span",67),J());if(a&2){var c;a=P(4);var d,e,f;D("title",((d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"")===((e=a.STATUS_JS_TERSE.get(b))!=null?e:"")?"":(f=a.STATUS_JS_FULL_TEXT.get(b))!=null?f:"");z();F((c=a.listViewPrefs==null?null:a.listViewPrefs.fieldStatus==null?null:a.listViewPrefs.fieldStatus.mode)==="icon"?1:c==="plain"?2:3)}},qwb=function(a){a&1&&E(0,pwb,4,2,"span",65);if(a&2){var b;a=P().row;F((b=a.status)?
0:-1,b)}},rwb=function(a){a&1&&(I(0,"td",64),E(1,qwb,1,1),J());a&2&&(P(2),z(),F(1))},swb=function(a){a&1&&(Q(0),S(1,"enumToHuman"));a&2&&(a=P().row,R(" ",T(1,1,a.type)," "))},twb=function(a){a&1&&(I(0,"td",68),E(1,swb,2,3),J());a&2&&(P(2),z(),F(1))},uwb=function(a){a&1&&(I(0,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),Q(2),J());a&2&&(a=P(2).row,D("email",T(1,2,a.reporter)),z(2),R(" ",a.reporter," "))},vwb=function(a){a&1&&(I(0,"span"),Q(1,"--"),J())},wwb=function(a){a&1&&(E(0,uwb,3,4,"b-person-hovercard",
70),S(1,"omitObfuscatedEmail"),E(2,vwb,2,0,"span"));a&2&&(a=P().row,F(T(1,2,a.reporter)?0:-1),z(2),F(a.reporter?-1:2))},xwb=function(a){a&1&&(I(0,"td",69),E(1,wwb,3,4),J());a&2&&(P(2),z(),F(1))},ywb=function(a){a&1&&(I(0,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),Q(2),J());a&2&&(a=P(2).row,D("email",T(1,2,a.assignee)),z(2),R(" ",a.assignee," "))},zwb=function(a){a&1&&(I(0,"span"),Q(1,"--"),J())},Awb=function(a){a&1&&(E(0,ywb,3,4,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),E(2,zwb,
2,0,"span"));a&2&&(a=P().row,F(T(1,2,a.assignee)?0:-1),z(2),F(a.assignee?-1:2))},Bwb=function(a){a&1&&(I(0,"td",69),E(1,Awb,3,4),J());a&2&&(P(2),z(),F(1))},Cwb=function(a){a&1&&(I(0,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),Q(2),J());a&2&&(a=P(2).row,D("email",T(1,2,a.verifier)),z(2),R(" ",a.verifier," "))},Dwb=function(a){a&1&&(I(0,"span"),Q(1,"--"),J())},Ewb=function(a){a&1&&(E(0,Cwb,3,4,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),E(2,Dwb,2,0,"span"));a&2&&(a=P().row,F(T(1,2,a.verifier)?
0:-1),z(2),F(a.verifier?-1:2))},Fwb=function(a){a&1&&(I(0,"td",69),E(1,Ewb,3,4),J());a&2&&(P(2),z(),F(1))},Hwb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),Q(2),S(3,"arrayToHuman"),J());a&2&&(a=P().row,ng("title",T(1,2,a.cc)),z(2),R(" ",T(3,4,a.cc)," "))},Iwb=function(a){a&1&&(I(0,"td",69),E(1,Hwb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},Jwb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),Q(2),S(3,"arrayToHuman"),J());a&2&&(a=P().row,ng("title",T(1,2,a.changelist)),z(2),R(" ",T(3,4,a.changelist),
" "))},Kwb=function(a){a&1&&(I(0,"td",69),E(1,Jwb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},Lwb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),Q(2),S(3,"arrayToHuman"),J());a&2&&(a=P().row,ng("title",T(1,2,a.postmortem)),z(2),R(" ",T(3,4,a.postmortem)," "))},Mwb=function(a){a&1&&(I(0,"td",69),E(1,Lwb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},Nwb=function(a){a&1&&Hg(0)},Owb=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},Qwb=function(a,b){a&1&&(C(0,Nwb,1,0,"ng-container",71),E(1,Owb,2,0,"span"));if(a&2){a=
b.$implicit;var c=b.$index;b=b.$count;P(4);var d=L(6);D("ngTemplateOutlet",d)("ngTemplateOutletContext",jh(3,Pwb,a));z();F(c!==b-1?1:-1)}},Rwb=function(a){a&1&&Dg(0,Qwb,2,5,null,null,Cg);a&2&&(a=P().row,Eg(a.blockingIssueId))},Swb=function(a){a&1&&(I(0,"td",69),E(1,Rwb,2,0),J());a&2&&(P(2),z(),F(1))},Twb=function(a){a&1&&Hg(0)},Uwb=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},Vwb=function(a,b){a&1&&(C(0,Twb,1,0,"ng-container",71),E(1,Uwb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;
P(4);var d=L(6);D("ngTemplateOutlet",d)("ngTemplateOutletContext",jh(3,Pwb,a));z();F(c!==b-1?1:-1)}},Wwb=function(a){a&1&&Dg(0,Vwb,2,5,null,null,Cg);a&2&&(a=P().row,Eg(a.blockedByIssueId))},Xwb=function(a){a&1&&(I(0,"td",69),E(1,Wwb,2,0),J());a&2&&(P(2),z(),F(1))},Ywb=function(a){a&1&&Hg(0)},Zwb=function(a){a&1&&C(0,Ywb,1,0,"ng-container",71);if(a&2){a=P(2).row;P(2);var b=L(6);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,Pwb,a.duplicateOfIssueId))}},$wb=function(a){a&1&&E(0,Zwb,1,4,"ng-container");
a&2&&(a=P().row,F(a.duplicateOfIssueId?0:-1))},axb=function(a){a&1&&(I(0,"td",69),E(1,$wb,1,1),J());a&2&&(P(2),z(),F(1))},bxb=function(a){a&1&&K(0,"b-formatted-date-time",73);a&2&&(a=P().row,D("timestamp",a.createdTime))},cxb=function(a){a&1&&(I(0,"td",72),E(1,bxb,1,1,"b-formatted-date-time",73),J());a&2&&(P(2),z(),F(1))},dxb=function(a){a&1&&K(0,"b-formatted-date-time",73);a&2&&(a=P().row,D("timestamp",a.modifiedTime))},exb=function(a){a&1&&(I(0,"td",72),E(1,dxb,1,1,"b-formatted-date-time",73),J());
a&2&&(P(2),z(),F(1))},fxb=function(a){a&1&&K(0,"b-formatted-date-time",73);a&2&&(a=P().row,D("timestamp",a.resolvedTime))},gxb=function(a){a&1&&(I(0,"td",72),E(1,fxb,1,1,"b-formatted-date-time",73),J());a&2&&(P(2),z(),F(1))},hxb=function(a){a&1&&K(0,"b-formatted-date-time",73);a&2&&(a=P().row,D("timestamp",a.verifiedTime))},ixb=function(a){a&1&&(I(0,"td",72),E(1,hxb,1,1,"b-formatted-date-time",73),J());a&2&&(P(2),z(),F(1))},jxb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),Q(2),S(3,"arrayToHuman"),
J());a&2&&(a=P().row,ng("title",T(1,2,a.foundInVersion)),z(2),R(" ",T(3,4,a.foundInVersion)," "))},kxb=function(a){a&1&&(I(0,"td",69),E(1,jxb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},lxb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),Q(2),S(3,"arrayToHuman"),J());a&2&&(a=P().row,ng("title",T(1,2,a.targetedToVersion)),z(2),R(" ",T(3,4,a.targetedToVersion)," "))},mxb=function(a){a&1&&(I(0,"td",69),E(1,lxb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},nxb=function(a){a&1&&(I(0,"span"),S(1,"arrayToHuman"),
Q(2),S(3,"arrayToHuman"),J());a&2&&(a=P().row,ng("title",T(1,2,a.verifiedInVersion)),z(2),R(" ",T(3,4,a.verifiedInVersion)," "))},oxb=function(a){a&1&&(I(0,"td",69),E(1,nxb,4,6,"span"),J());a&2&&(P(2),z(),F(1))},pxb=function(a){a&1&&(Q(0),S(1,"yesNo"));a&2&&(a=P().row,R(" ",T(1,1,a.inProd)," "))},qxb=function(a){a&1&&(I(0,"td",69),E(1,pxb,2,3),J());a&2&&(P(2),z(),F(1))},rxb=function(a){a&1&&(Q(0),S(1,"yesNo"));a&2&&(a=P().row,R(" ",T(1,1,a.archived)," "))},sxb=function(a){a&1&&(I(0,"td",69),E(1,rxb,
2,3),J());a&2&&(P(2),z(),F(1))},txb=function(a){a&1&&(I(0,"div",52)(1,"div",56)(2,"span"),Q(3),J()()());if(a&2){a=P().row;var b=P(2);z(2);ng("title",b.getComponentPath(a.componentPath));z();ch(b.getComponentPath(a.componentPath))}},vxb=function(a){a&1&&(I(0,"td",74),E(1,txb,4,2,"div",52),J());if(a&2){a=P(2);var b;var c=!((b=a.listViewPrefs)==null||!b.rtlComponentPath);D("ngClass",kh(2,uxb,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));z();F(1)}},wxb=function(a){a&1&&(I(0,"slo-status-card",76),
K(1,"b-aggregated-slo-status-indicator",77),J());a&2&&(a=P(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),z(),D("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},xxb=function(a){a&1&&E(0,wxb,2,5,"slo-status-card",76);a&2&&(a=P().row,F(a.sloStatus?0:-1))},yxb=function(a){a&1&&(I(0,"td",75),E(1,xxb,1,1),J());a&2&&(P(2),z(),F(1))},zxb=function(a){a&1&&(I(0,"slo-status-card",78),K(1,"b-slo-time-indicator",79),J());a&2&&(a=P(2).row,D("sloId",a.sloId)("sloStatus",
a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","RESPONSE"),z(),D("sloBounds",a.sloStatus.responseBounds))},Axb=function(a){a&1&&E(0,zxb,2,5,"slo-status-card",78);a&2&&(a=P().row,F(a.sloStatus?0:-1))},Bxb=function(a){a&1&&(I(0,"td",75),E(1,Axb,1,1),J());a&2&&(P(2),z(),F(1))},Cxb=function(a){a&1&&(I(0,"slo-status-card",78),K(1,"b-slo-time-indicator",79),J());a&2&&(a=P(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","ASSIGNMENT"),z(),D("sloBounds",
a.sloStatus.assignmentBounds))},Dxb=function(a){a&1&&E(0,Cxb,2,5,"slo-status-card",78);a&2&&(a=P().row,F(a.sloStatus?0:-1))},Exb=function(a){a&1&&(I(0,"td",75),E(1,Dxb,1,1),J());a&2&&(P(2),z(),F(1))},Fxb=function(a){a&1&&(I(0,"slo-status-card",78),K(1,"b-slo-time-indicator",79),J());a&2&&(a=P(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),z(),D("sloBounds",a.sloStatus.closureBounds))},Gxb=function(a){a&1&&E(0,Fxb,2,5,"slo-status-card",
78);a&2&&(a=P().row,F(a.sloStatus?0:-1))},Hxb=function(a){a&1&&(I(0,"td",75),E(1,Gxb,1,1),J());a&2&&(P(2),z(),F(1))},Ixb=function(a,b){a&1&&K(0,"b-formatted-date-time",80);a&2&&(P(4),D("timestamp",b.seconds*1E3))},Jxb=function(a){a&1&&E(0,Ixb,1,1,"b-formatted-date-time",80);if(a&2){var b;a=P().row;F((b=a.retentionState==null?null:a.retentionState.scheduledDeletionTime)?0:-1,b)}},Kxb=function(a){a&1&&(I(0,"td",69),E(1,Jxb,1,1),J());a&2&&(P(2),z(),F(1))},Lxb=function(a){a&1&&K(0,"div",81)},Mxb=function(a){a&
1&&(I(0,"div"),K(1,"b-team-display",82),J());a&2&&(a=P(2).row,z(),D("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},Nxb=function(a){a&1&&E(0,Lxb,1,0,"div",81)(1,Mxb,2,3,"div");a&2&&(a=P(3),F(a.isLoadingTeams?0:1))},Oxb=function(a){a&1&&(I(0,"td",69),E(1,Nxb,2,1),J());a&2&&(P(2),z(),F(1))},Pxb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.effort==null?null:a.effort.estimate," "))},Qxb=function(a){a&1&&(I(0,"td",69),E(1,Pxb,1,1),J());a&2&&(P(2),z(),F(1))},
Rxb=function(a){a&1&&Q(0);if(a&2){a=P().row;var b=P(2);R(" ",b.isTotalEstimatesEnabled?(a.effort==null?null:a.effort.totalOpen)||"":""," ")}},Sxb=function(a){a&1&&(I(0,"td",69),E(1,Rxb,1,1),J());a&2&&(P(2),z(),F(1))},Txb=function(a){a&1&&Q(0);if(a&2){a=P().row;var b=P(2);R(" ",b.isTotalEstimatesEnabled?(a.effort==null?null:a.effort.totalComplete)||"":""," ")}},Uxb=function(a){a&1&&(I(0,"td",69),E(1,Txb,1,1),J());a&2&&(P(2),z(),F(1))},Vxb=function(a){a&1&&Q(0);if(a&2){a=P().row;var b=P(2);R(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel),
" ")}},Wxb=function(a){a&1&&(I(0,"td",75),E(1,Vxb,1,1),J());a&2&&(P(2),z(),F(1))},Xxb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.descendantCount," "))},Yxb=function(a){a&1&&(I(0,"td",69),E(1,Xxb,1,1),J());a&2&&(P(2),z(),F(1))},Zxb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.openDescendantCount," "))},$xb=function(a){a&1&&(I(0,"td",69),E(1,Zxb,1,1),J());a&2&&(P(2),z(),F(1))},ayb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.oneDayViewCount," "))},byb=function(a){a&1&&(I(0,"td",69),E(1,ayb,1,1),
J());a&2&&(a=P(2),z(),F(a.enableAddViewCountColumnsOnIlp?1:-1))},cyb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.sevenDayViewCount," "))},dyb=function(a){a&1&&(I(0,"td",69),E(1,cyb,1,1),J());a&2&&(P(2),z(),F(1))},eyb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.thirtyDayViewCount," "))},fyb=function(a){a&1&&(I(0,"td",69),E(1,eyb,1,1),J());a&2&&(P(2),z(),F(1))},gyb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},hyb=function(a){a&1&&(I(0,"td",69),E(1,
gyb,1,1),J());a&2&&(P(2),z(),F(1))},iyb=function(a){a&1&&Q(0);a&2&&(a=P().row,R(" ",a.position," "))},jyb=function(a){a&1&&(I(0,"td",69),E(1,iyb,1,1),J());a&2&&(P(2),z(),F(1))},kyb=function(a){a&1&&(I(0,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),Q(2),J());a&2&&(a=P(2).row,D("email",T(1,2,a.escalationOwner)),z(2),R(" ",a.escalationOwner," "))},lyb=function(a){a&1&&(I(0,"span"),Q(1,"--"),J())},myb=function(a){a&1&&(E(0,kyb,3,4,"b-person-hovercard",70),S(1,"omitObfuscatedEmail"),E(2,lyb,2,0,
"span"));a&2&&(a=P().row,F(T(1,2,a.escalationOwner)?0:-1),z(2),F(a.escalationOwner?-1:2))},nyb=function(a){a&1&&(I(0,"td",69),E(1,myb,3,4),J());a&2&&(P(2),z(),F(1))},pyb=function(a){if(a&1){var b=r();I(0,"pop-grid",11);M("columnsChange",function(c){t(b);var d=P();d.columns=c;d.columnsChange.emit(c);d.cdr.detectChanges();return v()})("focusedRowIndexChange",function(c){t(b);var d=P();d.focusedRowIndex=c;return v(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("sortChange",function(c){t(b);var d=
P();return v(d.sortChange.emit(c))})("rowClick",function(c){t(b);var d=P(),e=c.event.target,f,h=(f=e==null?void 0:e.closest(".title-cell"))!=null?f:!1,k;e=(k=e==null?void 0:e.closest(".issue-id-cell"))!=null?k:!1;h||e||Pn(c.event)||!d.isIssueSidebarEnabled?d.rowClick.emit(c):(d.isIssueSidebarOpen=!0,d.cdr.detectChanges());return v()});C(1,Cvb,1,1,"th",12)(2,Dvb,1,1,"th",13)(3,Ivb,2,2,"th",14)(4,Jvb,1,1,"th",15)(5,Lvb,2,2,"th",15)(6,Pvb,2,2,"th",16)(7,Qvb,1,0,"td",17)(8,Rvb,1,0,"td",18)(9,Tvb,2,1,
"td",19)(10,Vvb,2,1,"td",20)(11,Xvb,2,1,"td",21)(12,awb,2,1,"td",22)(13,gwb,2,3,"td",23)(14,jwb,2,1,"td",24)(15,lwb,2,1,"td",25)(16,rwb,2,1,"td",26)(17,twb,2,1,"td",27)(18,xwb,2,1,"td",28)(19,Bwb,2,1,"td",28)(20,Fwb,2,1,"td",28)(21,Iwb,2,1,"td",28)(22,Kwb,2,1,"td",28)(23,Mwb,2,1,"td",28)(24,Swb,2,1,"td",28)(25,Xwb,2,1,"td",28)(26,axb,2,1,"td",28)(27,cxb,2,1,"td",29)(28,exb,2,1,"td",29)(29,gxb,2,1,"td",29)(30,ixb,2,1,"td",29)(31,kxb,2,1,"td",28)(32,mxb,2,1,"td",28)(33,oxb,2,1,"td",28)(34,qxb,2,1,"td",
28)(35,sxb,2,1,"td",28)(36,vxb,2,5,"td",30)(37,yxb,2,1,"td",31)(38,Bxb,2,1,"td",31)(39,Exb,2,1,"td",31)(40,Hxb,2,1,"td",31)(41,Kxb,2,1,"td",28)(42,Oxb,2,1,"td",28)(43,Qxb,2,1,"td",28)(44,Sxb,2,1,"td",28)(45,Uxb,2,1,"td",28)(46,Wxb,2,1,"td",31)(47,Yxb,2,1,"td",28)(48,$xb,2,1,"td",28)(49,byb,2,1,"td",28)(50,dyb,2,1,"td",28)(51,fyb,2,1,"td",28)(52,hyb,2,1,"td",28)(53,jyb,2,1,"td",28)(54,nyb,2,1,"td",28);J()}a&2&&(a=P(),wg("sidebar-open",a.isIssueSidebarOpen),D("list",(a.searchResults==null?null:a.searchResults.issues)||
ih(61,oyb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),z(),D("forHeaderCell","focused"),z(),D("forHeaderCell","draghandle"),z(),D("forHeaderCell","selected"),z(),D("forHeaderCell","starred"),z(),D("forHeaderCell","position"),z(2),D("forViewCell","focused"),z(),D("forViewCell","draghandle"),z(),D("forViewCell","selected"),z(),D("forViewCell","starred"),z(),D("forViewCell","position"),z(),D("forViewCell",
"issueId"),z(),D("forViewCell","title"),z(),D("forViewCell","priority"),z(),D("forViewCell","severity"),z(),D("forViewCell","status"),z(),D("forViewCell","type"),z(),D("forViewCell","reporter"),z(),D("forViewCell","assignee"),z(),D("forViewCell","verifier"),z(),D("forViewCell","cc"),z(),D("forViewCell","changelist"),z(),D("forViewCell","postmortem"),z(),D("forViewCell","blockingIssueId"),z(),D("forViewCell","blockedByIssueId"),z(),D("forViewCell","duplicateOfIssueId"),z(),D("forViewCell","createdTime"),
z(),D("forViewCell","modifiedTime"),z(),D("forViewCell","resolvedTime"),z(),D("forViewCell","verifiedTime"),z(),D("forViewCell","foundInVersion"),z(),D("forViewCell","targetedToVersion"),z(),D("forViewCell","verifiedInVersion"),z(),D("forViewCell","inProd"),z(),D("forViewCell","archived"),z(),D("forViewCell","componentPath"),z(),D("forViewCell","minSlo"),z(),D("forViewCell","responseSlo"),z(),D("forViewCell","assignmentSlo"),z(),D("forViewCell","closureSlo"),z(),D("forViewCell","deletionTime"),z(),
D("forViewCell","team"),z(),D("forViewCell","estimate"),z(),D("forViewCell","estimateTotalOpen"),z(),D("forViewCell","estimateTotalComplete"),z(),D("forViewCell","accessLevel"),z(),D("forViewCell","descendantCount"),z(),D("forViewCell","openDescendantCount"),z(),D("forViewCell","oneDayViewCount"),z(),D("forViewCell","sevenDayViewCount"),z(),D("forViewCell","thirtyDayViewCount"),z(),D("forViewCell","voteCount"),z(),D("forViewCell","position"),z(),D("forViewCell","escalationOwner"))},qyb=function(a){a&
1&&K(0,"b-issue-card",85,4);if(a&2){a=L(1);var b=P().id;D("onedevIsHovercardReady",a.init)("issueId",b)}},ryb=function(a,b){a&1&&(I(0,"onedev-hovercard",null,3),C(2,qyb,2,2,"b-issue-card",83),J(),I(3,"span",84),Q(4),J());a&2&&(a=b.id,b=L(1),z(3),D("onedevHovercardTrigger",b),z(),ch(a))},syb=function(a){if(a&1){var b=r();I(0,"b-app-bar-bulk-edit-menus",9);S(1,"async");M("onBulkEdit",function(d){t(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){t(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",
function(d){t(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){t(b);var d=P();return v(d.bulkMarkIssueRead())});J()}if(a&2){a=P();var c;D("enableBulkEstimatedEffortOption",(c=T(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)("readStatePrompt",upb(a))}},tyb=function(a){if(a&1){var b=r();I(0,"b-copy-issue-id-button",10);M("onClickCopyIssueIds",function(){t(b);var c=P();return v(wpb(c.copyIssueIdService,as(c)))})("onClickCopyIssueShortLinks",function(){t(b);var c=
P();return v(xpb(c.copyIssueIdService,as(c)))})("onClickCopyAsIssueSearch",function(){t(b);var c=P();return v(ypb(c.copyIssueIdService,as(c)))});J()}a&2&&(a=P(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},uyb=function(a){if(a&1){var b=r();I(0,"div",5)(1,"b-hotlist-picker",11);M("onApply",function(c){t(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){t(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",
function(c){t(b);var d=P();return v(d.onLoadHotlist.emit(c))});J()()}a&2&&(a=P(),z(),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},vyb=function(a){if(a&1){var b=r();I(0,"hotlist-add-issue-btn",13);M("issueAddedToHotlist",function(){t(b);var c=P(2);return v(c.refresh())});J()}a&2&&(a=P(2),D("hotlistId",a.currentHotlistId))},wyb=function(a){a&1&&K(0,"hotlist-archive-btn",12);a&2&&(a=P(2),D("hotlistId",a.currentHotlistId))},xyb=function(a){a&1&&(E(0,vyb,1,1,"hotlist-add-issue-btn",
12),E(1,wyb,1,1,"hotlist-archive-btn",12));a&2&&(a=P(),F(a.enableBulkEditUi?0:-1),z(),F(a.isHotlistAdmin?1:-1))},yyb=function(a){a&1&&(I(0,"span",16),Q(1,"Reporting"),J())},zyb=function(a){if(a&1){var b=r();I(0,"b-button",14);M("onAction",function(){t(b);var c=P();return v(c.openInEstado())});K(1,"b-icon",15);E(2,yyb,2,0,"span",16);J()}a&2&&(a=P(),D("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),z(2),F(a.hasSelectedIssues()?-1:2))},Ayb=function(a){if(a&
1){var b=r();I(0,"b-comment-box",23);gh("commentChange",function(c){t(b);var d=P(2);fh(d.comment,c)||(d.comment=c);return v(c)});M("onSubmit",function(){t(b);var c=P(2);return v(Bpb(c))});J()}a&2&&(a=P(2),eh("comment",a.comment),D("showToolbar",!1)("isLiteralModeSupported",!0))},Byb=function(a){if(a&1){var b=r();I(0,"div",20)(1,"b-recaptcha",24);M("onUpdate",function(c){t(b);var d=P(2);return v(d.recaptchaResponse=c)});J()()}},Cyb=function(a){a&1&&(I(0,"h1",17),Q(1,"Add comment"),J(),I(2,"mat-dialog-content"),
E(3,Ayb,1,3,"b-comment-box",18),K(4,"b-external-warnings",19),J(),E(5,Byb,2,0,"div",20),I(6,"mat-dialog-actions")(7,"button",21),Q(8," Cancel "),J(),I(9,"button",22),Q(10," Save "),J()());a&2&&(a=P(),z(3),F(a.comment?3:-1),z(),D("externalWarnings",a.externalWarnings),z(),F(a.enableRecaptcha?5:-1),z(2),D("mat-dialog-close",!1),z(2),D("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},Dyb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"button",7);M("click",function(){t(b);
var c=P();return v(c.onPressSave())});Q(2," Save ");J();I(3,"button",8);M("click",function(){t(b);var c=P();return v(c.onPressRevert())});Q(4," Revert changes ");J()()}a&2&&(a=P(),z(),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),z(2),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},
Eyb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"button",7);M("click",function(){t(b);var d=P();return v(d.save())});Q(2," Save ");J();I(3,"button",8);M("click",function(){t(b);var d=P();return v(d.revert())});Q(4," Revert changes ");J();K(5,"hotlist-archive-btn",9);S(6,"async");J()}if(a&2){a=P();z();D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");z(2);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?
"No changes":"Go back to the last saved state");z(2);var c;D("hotlistId",(c=T(6,5,a.id$))!=null?c:void 0)}},Fyb=function(a,b){a&1&&Q(0);a&2&&R(" ",b.name," ")},Gyb=function(a){a&1&&(I(0,"strong",2),Q(1,"(archived)"),J())},Hyb=function(a){a&1&&K(0,"b-spinner")},Iyb=function(a){a&1&&(K(0,"hotlist-add-issue-btn",4),S(1,"async"));if(a&2){a=P();var b;D("hotlistId",(b=T(1,1,a.id$))!=null?b:void 0)}},Jyb=function(a){a&1&&(I(0,"p",6),Q(1," This hotlist cannot be edited because you are not an administrator of it. "),
J())},Kyb=function(a){a&1&&(K(0,"b-edit-hotlist-toolbar",0),I(1,"div",1),K(2,"b-edit-hotlist-header",0),I(3,"mat-tab-group",2)(4,"mat-tab",3),K(5,"b-edit-hotlist-basic",4),S(6,"async"),J(),I(7,"mat-tab",5),K(8,"b-edit-hotlist-acl",4),S(9,"async"),J()(),E(10,Jyb,2,0,"p",6),S(11,"async"),J());a&2&&(a=P(),D("hotlistId",a.id),z(2),D("hotlistId",a.id),z(),D("selectedIndex",a.tabIndex),z(2),D("hotlistId",a.id)("isReadOnly",T(6,8,a.isAdmin$)===!1),z(3),D("hotlistId",a.id)("isReadOnly",T(9,10,a.isAdmin$)===
!1),z(2),F(T(11,12,a.isAdmin$)===!1?10:-1))},Lyb=function(a,b){a&1&&(K(0,"empty-toolbar"),I(1,"div",7)(2,"h2"),Q(3,"Error"),J(),I(4,"p"),Q(5),J()());a&2&&(z(5),ch(b))},Myb=function(a){a&1&&(I(0,"b-callout",0)(1,"b-callout-body"),Q(2),J()());a&2&&(a=P(),z(2),ch(a.error))},Nyb=function(a){a&1&&(Fg(0),Q(1,", "),Gg())},Oyb=function(a,b){a&1&&(Q(0),E(1,Nyb,2,0,"ng-container"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(2);R(" ",d.convertUserToString(a)," ");z();F(c!==b-1?1:-1)}},Pyb=function(a,
b){if(a&1){var c=r();I(0,"tr",7);M("click",function(){var e=t(c).$implicit,f=P();return v(f.editHotlist(e))})("focus",function(){var e=t(c).$index,f=P();return v(f.setFocusOnIndex(e))});K(1,"td",2);I(2,"td",8)(3,"a",9);M("click",function(e){t(c);return v(e.stopPropagation())});Q(4);J()();I(5,"td",10);Q(6);J();I(7,"td",11);Dg(8,Oyb,2,2,null,null,Cg);J();I(10,"td",12);Q(11);J()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();wg("grid-focus",d.isFocused(b));ng("aria-selected",d.isFocused(b))("aria-label",
d.renderRowLabel(b));z(3);D("href",Fq.editHotlist.makeHref(a.hotlistId),uf);z();R(" ",a.name," ");z(2);R(" ",a.description," ");z(2);Eg(a.adminUsers);z(3);R(" ",a.hotlistId," ")}},Qyb=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});Q(1," Move to top ");J()}},Ryb=function(a){if(a&1){var b=r();I(0,"button",10);M("click",function(){t(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});
Q(1," Move up ");J()}},Syb=function(a){if(a&1){var b=r();I(0,"button",11);M("click",function(){t(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});Q(1," Move down ");J()}},Tyb=function(a){if(a&1){var b=r();I(0,"button",12);M("click",function(){t(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});Q(1," Move to bottom ");J()}},Uyb=function(a){if(a&1){var b=r();E(0,Qyb,2,0,"button",4);E(1,Ryb,2,0,"button",5);E(2,Syb,2,0,"button",6);E(3,Tyb,
2,0,"button",7);I(4,"button",8);M("click",function(){t(b);var c=P();return v(c.removePanel())});Q(5," Remove ");J()}a&2&&(a=P(),F(a.first?-1:0),z(),F(a.first?-1:1),z(),F(a.last?-1:2),z(),F(a.last?-1:3))},Vyb=function(a){a&1&&(Fg(0),Q(1,"Insights"),Gg())},Wyb=function(a){if(a&1){var b=r();I(0,"b-insights-graph-menu",1);M("openSidebar",function(d){t(b);var e=P(2);return v(e.openSidebar(d.panel))});J()}if(a&2){a=P();var c=P();D("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},
Xyb=function(a){a&1&&(E(0,Wyb,1,3,"b-insights-graph-menu",0),S(1,"async"));a&2&&(a=P(),F(T(1,1,a.shouldShowInsightsGraphMenu$)?0:-1))},Yyb=function(a){a&1&&K(0,"edit-issue-metadata",4);a&2&&(a=P(),D("issueId",a.issueId))},Zyb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),ng("title",a.getValue()),z(),R(" ",a.getValue()," "))},$yb=function(a){a&1&&K(0,"b-custom-field-value-display",0);a&2&&(a=P(),D("customFieldValue",a.getCustomFieldValue()))},azb=function(a){a&1&&K(0,"b-actions-menu",1);a&2&&
(a=P(),D("menuItems",a.menuItems))},bzb=function(a){a&1&&(I(0,"span",2)(1,"strong"),Q(2),J(),Q(3,"\u00a0of\u00a0"),I(4,"strong"),Q(5),J()());a&2&&(a=P(),z(2),dh("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),z(3),ch(a.searchResults.totalText))},czb=function(a){a&1&&(I(0,"div"),Q(1," Hotlist not found. "),J())},dzb=function(a){a&1&&(I(0,"div"),Q(1," Loading details... "),J())},ezb=function(a){a&1&&K(0,"b-panel-controls",5);a&2&&(a=P(2),D("panelId",a.panel.panelId))},fzb=function(a){a&
1&&(I(0,"span",9),Q(1," \u00a0(changed) "),J())},gzb=function(a){a&1&&(I(0,"div"),E(1,ezb,1,1,"b-panel-controls",5),I(2,"span",6),Q(3," Hotlist: "),I(4,"a",7)(5,"span",8),Q(6),J()()(),E(7,fzb,2,0,"span",9),J());a&2&&(a=P(),z(),F(a.isDashboardEditable?1:-1),z(3),D("href",a.ROUTES.viewHotlist.makeHref(a.hotlistId),uf),z(),Qg("matTooltip",a.resource.description),z(),ch(a.resource.name),z(),F(a.hasParamChanges()?7:-1))},hzb=function(a){if(a&1){var b=r();I(0,"div",3)(1,"button",10);M("click",function(){t(b);
var c=P();return v(c.save())});Q(2,"Save ");J();I(3,"button",11);M("click",function(){t(b);var c=P();return v(c.discardChanges())});Q(4," Discard changes ");J()()}},izb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(3),z(),R("Searching for ",a.searchParams.query," ..."))},jzb=function(a){a&1&&(I(0,"div",12),K(1,"b-spinner",15),E(2,izb,2,1,"span"),J());a&2&&(a=P(2),z(),D("large",!1),z(),F(a.searchParams&&a.searchParams.query?2:-1))},kzb=function(a){a&1&&(I(0,"div",13),Q(1," No issues in hotlist. "),
J())},mzb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"b-issues-grid",16);M("init",function(c){t(b);var d=P(2);return v(lzb(d,c))});gh("focusedRowIndexChange",function(c){t(b);var d=P(2);fh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){t(b);var d=P(2);fh(d.issueColumns,c)||(d.issueColumns=c);return v(c)});M("sortChange",function(c){t(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){t(b);var d=P(2);return v(d.repositionIssue(c.srcIndex,
c.destIndex))})("rowClick",function(c){t(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){t(b);var c=P(2);return v(c.goToPage(c.page-1))});J()()}a&2&&(a=P(2),z(),D("searchResults",a.searchResults),eh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),D("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},nzb=function(a){a&1&&(I(0,"div"),E(1,jzb,3,2,"div",12),E(2,kzb,
2,0,"div",13),E(3,mzb,2,5,"div",14),J());a&2&&(a=P(),z(),F(a.isLoading?1:-1),z(),F(a.isLoading||(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?-1:2),z(),F(!a.isLoading&&(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?3:-1))},ozb=function(a){a&1&&(I(0,"div"),Q(1," Saved search not found. "),J())},pzb=function(a){a&1&&(I(0,"div"),Q(1," Loading details... "),J())},qzb=function(a){a&1&&K(0,"b-panel-controls",5);a&2&&(a=P(2),
D("panelId",a.panel.panelId))},rzb=function(a){a&1&&(I(0,"span",8),Q(1," \u00a0(changed) "),J())},szb=function(a){a&1&&(I(0,"div",3),E(1,qzb,1,1,"b-panel-controls",5),I(2,"span",3),Q(3," Saved search: "),I(4,"a",6)(5,"span",7),Q(6),J()()(),E(7,rzb,2,0,"span",8),J());a&2&&(a=P(),z(),F(a.isDashboardEditable?1:-1),z(3),D("href",a.paths.viewSavedSearch(a.savedSearchId),uf),z(),Qg("matTooltip",a.resource.description),z(),ch(a.resource.name),z(),F(a.hasParamChanges()?7:-1))},tzb=function(a,b){a&1&&(I(0,
"span"),Q(1),J());a&2&&(z(),R("Searching for ",b,"..."))},uzb=function(a){a&1&&(I(0,"div",9),K(1,"b-spinner",12),E(2,tzb,2,1,"span"),J());if(a&2){var b;a=P(2);z();D("large",!1);z();F((b=a.searchParams==null?null:a.searchParams.query)?2:-1,b)}},vzb=function(a){a&1&&(I(0,"div",10),Q(1," No issues in saved search. "),J())},wzb=function(a){if(a&1){var b=r();I(0,"div",11)(1,"b-issues-grid",13);M("init",function(c){t(b);var d=P(2);return v(lzb(d,c))});gh("focusedRowIndexChange",function(c){t(b);var d=P(2);
fh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)});M("columnsChange",function(c){t(b);var d=P(2);return v(d.columnsChange(c))})("sortChange",function(c){t(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){t(b);var c=P(2);return v(c.goToPage(c.page-1))});J()()}a&2&&(a=P(2),z(),D("searchResults",a.searchResults),
eh("focusedRowIndex",a.focusedRowIndex),D("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},xzb=function(a){a&1&&(I(0,"div"),E(1,uzb,3,2,"div",9),E(2,vzb,2,0,"div",10),E(3,wzb,2,5,"div",11),J());a&2&&(a=P(),z(),F(a.isLoading?1:-1),z(),F(!a.isLoading&&a.searchResults&&a.searchResults.issues.length===0?2:-1),z(),F(!a.isLoading&&a.searchResults&&a.searchResults.issues.length!==0?3:-1))},yzb=function(a,b){a&1&&(I(0,"span",2)(1,"a",3),Q(2),J()());a&2&&(a=b.$implicit,
z(),Pg("routerLink","/teams/",a.id,"/edit"),D("preserveFragment",!0),z(),ch(a.name))},zzb=function(a){a&1&&(I(0,"p")(1,"span",5),Q(2,"NOTE:"),J(),Q(3),I(4,"a",6),Q(5,"Learn more"),J()());a&2&&(a=P(),z(3),R(" ",a.data.noteText," "),z(),D("href",a.getDisablingFieldsHelpLink(),uf))},Azb=function(a){a&1&&K(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),D("innerHTML",a.menuLabel,tf))},Bzb=function(a){a&1&&(I(0,"div",27),Q(1," This includes emails about major updates and: "),I(2,"ul",28)(3,"li"),Q(4,"All title, hotlist, and status changes."),
J(),I(5,"li"),Q(6,"Blocking, Blocked By, or Duplicate changes."),J(),I(7,"li"),Q(8,"Changes to Reporter, Verifier, and CCs."),J(),I(9,"li"),Q(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),J(),I(11,"li"),Q(12,"Changes to custom fields marked as minor."),J()()())},Czb=function(a){a&1&&(I(0,"div",29),Q(1," This includes emails about: "),I(2,"ul",28)(3,"li"),Q(4,"New comments."),J(),I(5,"li"),Q(6,"New status updates."),J(),I(7,"li"),Q(8,"Priority or Severity changes."),J(),
I(9,"li"),Q(10,"Assignee changes."),J(),I(11,"li"),Q(12,"Component changes."),J(),I(13,"li"),Q(14,"Issue closure or reopening."),J(),I(15,"li"),Q(16,"Changes to custom fields marked as major."),J()()())},Dzb=function(a,b){a&1&&(I(0,"mat-option",5),Q(1),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",a.name," "))},Ezb=function(a){a&1&&(I(0,"span",3),Q(1," (must be between 30 days and 20 years) "),J())},Gzb=function(a){if(a&1){var b=r();I(0,"div",4)(1,"b-duration-picker",12);M("durationDaysChange",
function(c){t(b);var d=P();d.model.retentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);gs(d);return v()});J();I(2,"div",13);Q(3);J()()}a&2&&(a=P(),z(),D("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),z(2),R(" Issues will be marked for deletion when they have not been modified for ",Fzb(a.model.retentionPeriodDays),". "))},Hzb=function(a){a&1&&(I(0,"div",5)(1,"p"),Q(2,"Please note this extended retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),
I(3,"b"),Q(4,"one or more"),J(),Q(5," of the following is true:"),J(),I(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),J(),I(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),J(),I(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),J()()())},Izb=function(a){a&1&&(I(0,"div",7)(1,"p"),Q(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),
I(3,"b"),Q(4,"one or more"),J(),Q(5," of the following is true:"),J(),I(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),J(),I(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),J(),I(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),J()()())},Jzb=function(a){a&1&&(I(0,"span",3),Q(1," (Issue Retention is shorter than default Restricted Retention) "),
J())},Lzb=function(a){a&1&&(I(0,"span",3),Q(1),J());a&2&&(a=P(),z(),R(" ",Kzb(a)," "))},Mzb=function(a){a&1&&(I(0,"div",18)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),J()())},Pzb=function(a){if(a&1){var b=r();I(0,"div",4)(1,"div")(2,"span",
14);Q(3,"Restricted retention:");J();I(4,"b-duration-picker",15);M("durationDaysChange",function(c){t(b);var d=P();d.model.piiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);gs(d);return v()});J()();I(5,"div",16)(6,"p");Q(7);J()();I(8,"div")(9,"span",14);Q(10,"Restricted+ retention:");J();I(11,"b-duration-picker",17);M("durationDaysChange",function(c){t(b);var d=P();d.model.spiiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);gs(d);return v()});J()();I(12,"div",16)(13,
"p");Q(14);J()();E(15,Mzb,3,0,"div",18);J()}a&2&&(a=P(),z(4),D("disabled",!Nzb(a))("durationDays",a.model.piiRetentionPeriodDays),z(3),R(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",Fzb(a.model.piiRetentionPeriodDays),". "),z(4),D("disabled",!Nzb(a))("durationDays",a.model.spiiRetentionPeriodDays),z(3),R(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
Fzb(a.model.spiiRetentionPeriodDays),". "),z(),F(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&Ozb(a)?15:-1))},Qzb=function(a){a&1&&(I(0,"div",11)(1,"p"),Q(2," Please note restricted retention longer than 4 months is not appropriate in many circumstances for personal data, user data, or any other forms of sensitive data being stored. Before selecting it, you should make sure that Legal and Privacy have approved this non-standard retention period."),J()())},Rzb=function(a,b,c){a=
hs(a.slice(b),c,"[()|]","[()|,\\s]");a.idx+=b;return a},hs=function(a,b,c,d){var e=Szb(a.slice(0,b),c);e=e&&e.index||0;var f=a.slice(b);c=(new RegExp(d||c,"gi")).exec(f);return{val:a.slice(e,(c?c.index:f.length)+b),idx:e}},Szb=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;(c=b.exec(a))!=null;)d=c,d.index=b.lastIndex;return d},is=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},Tzb=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,
token:a}},js=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e=b.val.toLowerCase();a=a.filter(function(q){q=q.name.toLowerCase();return q!==e||d?c?q.startsWith(e):Da(q,e):!1});b=b.idx;for(var f=b+e.length,h=l(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},ks=function(a){var b=a.name;var c=a.label;var d=a.type;var e=a.enableShadowPlaceholder;var f=a.id;var h;return{trackId:((h=a.trackIdPrefix)!=null?h:d)+":"+b,name:b,id:f!=null?
f:b,label:c,completionCfg:{enableShadowPlaceholder:e!=null?e:!0,completionValue:f!=null?f:b,type:d}}},Uzb=function(a,b){if(a&1){var c=r();I(0,"div",7)(1,"div",9);M("click",function(d){var e=t(c).$implicit,f=P();e=e.key;if(d=d===void 0?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;f.onSelectionChanged();return v()});I(2,"mat-checkbox",10);M("change",function(d){var e=t(c).$implicit,f=P();e.value.value=d.checked;return v(f.onSelectionChanged())})("click",
function(d){t(c);return v(d.stopPropagation())});Q(3);J()()()}a&2&&(a=b.$implicit,ng("aria-checked",a.value.value),z(2),D("checked",a.value.value),z(),R(" ",a.value.displayString," "))},Vzb=function(a){a&1&&(I(0,"div",8),Q(1),J());a&2&&(a=P(),z(),R(" ",a.errorString," "))},Wzb=function(a){a&1&&(I(0,"span",2),Q(1),J());a&2&&(a=P(2),z(),dh(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},Xzb=function(a){a&1&&(I(0,"span"),Q(1,", "),J())},Zzb=function(a){a&1&&(I(0,"span"),E(1,
Xzb,2,0,"span"),I(2,"span"),Q(3),J()());a&2&&(a=P(2),z(),F(a.objectiveBusinessDays?1:-1),z(2),dh("",a.intervalString," ",Yzb(a,a.intervalUnit)))},$zb=function(a){a&1&&(I(0,"span",0),E(1,Wzb,2,2,"span",2),E(2,Zzb,4,3,"span"),J());a&2&&(a=P(),z(),F(a.objectiveBusinessDays?1:-1),z(),F(a.intervalString&&a.intervalString!="0"?2:-1))},bAb=function(a){if(a&1){var b=r();I(0,"span",3)(1,"input",4);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.businessDayString,c)||(d.businessDayString=c);return v(c)});
M("ngModelChange",function(){t(b);var c=P(2);return v(aAb(c))});J();I(2,"span",7);Q(3,"days,");J()()}a&2&&(a=P(2),z(),wg("ng-invalid",!!a.errorString),eh("ngModel",a.businessDayString))},cAb=function(a,b){a&1&&(I(0,"mat-option",6),Q(1),J());a&2&&(a=b.$implicit,b=P(2),D("value",a),z(),R(" ",Yzb(b,a)," "))},jAb=function(a){if(a&1){var b=r();I(0,"span",1);E(1,bAb,4,3,"span",3);I(2,"span",3)(3,"input",4);gh("ngModelChange",function(c){t(b);var d=P();fh(d.intervalString,c)||(d.intervalString=c);return v(c)});
M("ngModelChange",function(){t(b);var c=P();return v(aAb(c))});J();I(4,"mat-select",5);gh("ngModelChange",function(c){t(b);var d=P();fh(d.intervalUnit,c)||(d.intervalUnit=c);return v(c)});M("selectionChange",function(){t(b);var c=P();dAb(c);eAb(c);return v()});Dg(5,cAb,2,2,"mat-option",6,Cg);J()()()}a&2&&(a=P(),z(),F(fAb(a)?1:-1),z(2),wg("invalid",!!a.errorString),eh("ngModel",a.intervalString),z(),eh("ngModel",a.intervalUnit),z(),Eg(fAb(a)?[gAb,hAb]:[gAb,hAb,iAb]))},lAb=function(a){if(a&1){var b=
r();I(0,"b-icon",22);M("click",function(){t(b);var c=P(2);return v(kAb(c,0))});J()}a&2&&D("name","add")("size","small")},nAb=function(a){if(a&1){var b=r();I(0,"span",5)(1,"span",18)(2,"span",19);E(3,lAb,1,2,"b-icon",20);J();I(4,"span",19)(5,"b-icon",21);M("click",function(c){t(b);var d=P();return v(mAb(d,c))});J()()()()}a&2&&(a=P(),z(3),F(a.canPerformActions?3:-1),z(2),D("name","delete")("size","small"))},oAb=function(a){a&1&&K(0,"td",26)},pAb=function(a){a&1&&K(0,"td",27)},qAb=function(a){if(a&1){var b=
r();I(0,"td",28)(1,"slo-element-property-picker",42);gh("optionsChange",function(c){t(b);var d=P().$implicit;fh(d.typePickerValues,c)||(d.typePickerValues=c);return v(c)});J()()}a&2&&(a=P().$implicit,z(),D("selectAllText","Any type")("validator",a.validateTypePicker),eh("options",a.typePickerValues))},rAb=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(2).$implicit,z(),R("ERROR: ",a.parseResult.error))},sAb=function(a,b){a&1&&(I(0,"span",44)(1,"span",45),Q(2),J()());a&2&&(a=b.$implicit,z(2),ch(a))},
uAb=function(a){a&1&&(I(0,"span",43),Dg(1,sAb,3,1,"span",44,Cg),J());if(a&2){a=P(2).$implicit;z();if(a.parseResult.types.length===0)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(tAb(a.controllerReference,d));a=b}Eg(a)}},vAb=function(a){a&1&&(I(0,"td",29),E(1,rAb,2,1,"div")(2,uAb,3,0,"span",43),J());a&2&&(a=P().$implicit,z(),F(a.parseResult.error?1:2))},wAb=function(a){if(a&
1){var b=r();I(0,"td",30)(1,"slo-element-property-picker",46);gh("optionsChange",function(c){t(b);var d=P().$implicit;fh(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return v(c)});J()()}a&2&&(a=P().$implicit,z(),D("selectAllText","Any priority")("validator",a.validatePriorityPicker),eh("options",a.priorityPickerValues))},xAb=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(2).$implicit,z(),R("ERROR: ",a.parseResult.error))},yAb=function(a,b){a&1&&(I(0,"span",44)(1,"span",45),Q(2),J()());
a&2&&(a=b.$implicit,z(2),ch(a))},AAb=function(a){a&1&&(I(0,"span",43),Dg(1,yAb,3,1,"span",44,Cg),J());if(a&2){a=P(2).$implicit;z();if(a.parseResult.priorities.length===0)a=["Any"];else{for(var b=[],c=l(a.controllerReference.sloParseService.enumPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(zAb(a.controllerReference,d));a=b}Eg(a)}},BAb=function(a){a&1&&(I(0,"td",31),E(1,xAb,2,1,"div")(2,AAb,3,0,"span",43),J());a&2&&(a=P().$implicit,z(),
F(a.parseResult.error?1:2))},CAb=function(a){if(a&1){var b=r();I(0,"td",32)(1,"slo-element-property-picker",47);gh("optionsChange",function(d){t(b);var e=P().$implicit;fh(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return v(d)});J()()}if(a&2){a=P().$implicit;var c=P(2);z();D("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);eh("options",a.postmortemPickerValues)}},DAb=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P(2).$implicit,z(),R("ERROR: ",a.parseResult.error))},
EAb=function(a,b){a&1&&(I(0,"span",44)(1,"span",45),Q(2),J()());a&2&&(a=b.$implicit,z(2),ch(a))},FAb=function(a){a&1&&(I(0,"span",43),Dg(1,EAb,3,1,"span",44,Cg),J());if(a&2){a=P(2).$implicit;z();var b=a.parseResult.postmortemValues.includes("ANY"),c=a.parseResult.postmortemValues.includes("NONE");a=b===c?["Either"]:[a.controllerReference.anyNoneDisplayValues.get(a.parseResult.postmortemValues[0])];Eg(a)}},GAb=function(a){a&1&&(I(0,"td",33),E(1,DAb,2,1,"div")(2,FAb,3,0,"span",43),J());a&2&&(a=P().$implicit,
z(),F(a.parseResult.error?1:2))},IAb=function(a,b){a&1&&(I(0,"mat-option",50),Q(1),J());a&2&&(a=b.$implicit,P(4),D("value",a),z(),R(" ",HAb(a)," "))},JAb=function(a){if(a&1){var b=r();I(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);gh("ngModelChange",function(d){t(b);var e=P().$implicit;fh(e.selectedMetric,d)||(e.selectedMetric=d);return v(d)});Dg(3,IAb,2,2,"mat-option",50,Cg);J()()()}if(a&2){a=P().$implicit;var c=P(2);z(2);eh("ngModel",a.selectedMetric);D("customValidators",a.metricValidators);
z();Eg(c.metricChoices)}},KAb=function(a){a&1&&(I(0,"td",35),Q(1),J());a&2&&(a=P().$implicit,P(2),z(),R(" ",HAb(a.sloElement.metric)," "))},LAb=function(a){if(a&1){var b=r();I(0,"td",36)(1,"slo-objective-selector",51);gh("objectiveDurationChange",function(c){t(b);var d=P().$implicit;fh(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){t(b);var d=P().$implicit;fh(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return v(c)});J()()}a&2&&(a=P().$implicit,z(),D("dayType",a.selectedDayType),eh("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),D("validator",a.validateObjective)("isDisabled",!1))},MAb=function(a){if(a&1){var b=r();I(0,"td",37)(1,"slo-objective-selector",52);gh("objectiveDurationChange",function(c){t(b);var d=P().$implicit;fh(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){t(b);
var d=P().$implicit;fh(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return v(c)});J()()}a&2&&(a=P().$implicit,z(),D("dayType",a.selectedDayType),eh("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),D("isDisabled",!a.isEditingInternal))},OAb=function(a,b){a&1&&(I(0,"mat-option",50),Q(1),J());a&2&&(a=b.$implicit,P(4),D("value",a),z(),R(" ",NAb.get(a||"CALENDAR")," "))},PAb=function(a){if(a&1){var b=r();I(0,"td",38)(1,
"mat-form-field",48)(2,"mat-select",53);gh("ngModelChange",function(d){t(b);var e=P().$implicit;fh(e.selectedDayType,d)||(e.selectedDayType=d);return v(d)});M("selectionChange",function(){t(b);var d=P().$implicit;d.selectedDayType==="BUSINESS"?d.selectedObjectiveDuration.seconds%86400===0&&(d.selectedObjectiveBusinessDays=d.selectedObjectiveDuration.seconds/86400,d.selectedObjectiveDuration.seconds=0):(d.selectedObjectiveDuration.seconds===0&&(d.selectedObjectiveDuration.seconds=d.selectedObjectiveBusinessDays*
86400),d.selectedObjectiveBusinessDays=0);return v()});Dg(3,OAb,2,2,"mat-option",50,Cg);J()()()}if(a&2){a=P().$implicit;var c=P(2);z(2);eh("ngModel",a.selectedDayType);z();Eg(c.dayTypes)}},QAb=function(a){a&1&&(I(0,"td",39),Q(1),J());a&2&&(a=P().$implicit,P(2),z(),R(" ",NAb.get(a.sloElement.dayType||"CALENDAR")," "))},UAb=function(a){if(a&1){var b=r();I(0,"td",40)(1,"span",18)(2,"span",19)(3,"b-icon",54);M("click",function(){t(b);var c=P(3);if(c.openRow)if(c.openRow.isValid())RAb(c.openRow.typePickerValues)&&
RAb(c.openRow.priorityPickerValues)&&RAb(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Oi("An SLO rule that matches all issues is not allowed. These rules are considered too broad, and are typically created in error. Some filtering criteria is required to continue."),confirmButtonText:"Ok",showCancelButton:!1}):SAb(c);else{var d=c.openRow;(d.selectedDayType!=="BUSINESS"?d.selectedObjectiveDuration.seconds>0:d.selectedObjectiveDuration.seconds>
0||d.selectedObjectiveBusinessDays>0)||c.confirmationDialogService.open({title:"SLO validation error",content:Oi('An SLO rule must specify a valid duration.\nFor "Calendar" day objectives, the duration must be a positive integer.\nFor "Business" day objectives, a day and/or hour/minute duration must be specified.'),confirmButtonText:"Ok",showCancelButton:!1})}return v()});J()();I(4,"span",19)(5,"b-icon",55);M("click",function(){t(b);var c=P().$implicit,d=P(2);return v(TAb(d,c))});J()()()()}a&2&&(z(3),
D("name","done")("size","small"),z(2),D("name","delete")("size","small"))},WAb=function(a){if(a&1){var b=r();I(0,"b-icon",63);M("click",function(c){t(b);var d=P(2).$implicit,e=P(2);return v(VAb(e,d,c))});J()}a&2&&D("name","edit")("size","small")},XAb=function(a){a&1&&K(0,"b-icon",57);a&2&&(P(),a=L(8),D("name","more-settings-vertical")("size","small")("matMenuTriggerFor",a))},ZAb=function(a){if(a&1){var b=r();I(0,"button",64);M("click",function(){t(b);var c=P(2).$implicit,d=P(2);return v(YAb(d,c,1))});
Q(1," Move row down ");J()}},$Ab=function(a){if(a&1){var b=r();I(0,"button",65);M("click",function(){t(b);var c=P(2).$implicit,d=P(2);return v(YAb(d,c,-1))});Q(1," Move row up ");J()}},bBb=function(a){if(a&1){var b=r();I(0,"td",41)(1,"span",18)(2,"span",19);E(3,WAb,1,2,"b-icon",56);J();I(4,"span",19)(5,"span");E(6,XAb,1,3,"b-icon",57);J();I(7,"mat-menu",null,0);E(9,ZAb,2,0,"button",58);E(10,$Ab,2,0,"button",59);I(11,"button",60);M("click",function(){t(b);var d=P().$implicit,e=P(2);kAb(e,e.collection.indexOf(d)+
1);return v()});Q(12," Add row below ");J();I(13,"button",61);M("click",function(){t(b);var d=P().$implicit,e=P(2);kAb(e,e.collection.indexOf(d)+-1+1);return v()});Q(14," Add row above ");J();I(15,"button",62);M("click",function(){t(b);var d=P().$implicit,e=P(2);return v(TAb(e,d))});Q(16," Remove ");J()()()()()}if(a&2){a=P().$implicit;var c=P(2);z(3);F(a.canEdit?3:-1);z(3);F(a.canEdit?6:-1);z(3);F(aBb(c,a,1).valid?9:-1);z();F(aBb(c,a,-1).valid?10:-1)}},cBb=function(a,b){a&1&&(I(0,"tr",25),E(1,oAb,
1,0,"td",26)(2,pAb,1,0,"td",27),E(3,qAb,2,3,"td",28)(4,vAb,3,1,"td",29),E(5,wAb,2,3,"td",30)(6,BAb,3,1,"td",31),E(7,CAb,2,3,"td",32)(8,GAb,3,1,"td",33),E(9,JAb,5,2,"td",34)(10,KAb,2,1,"td",35),E(11,LAb,2,5,"td",36)(12,MAb,2,4,"td",37),E(13,PAb,5,1,"td",38)(14,QAb,2,1,"td",39),E(15,UAb,6,4,"td",40)(16,bBb,17,4,"td",41),J());a&2&&(a=b.$implicit,b=P(2),wg("draggable",!b.isDisabled&&b.openRow==null),z(),F(a.isEditingInternal?1:2),z(2),F(a.isEditingInternal?3:4),z(2),F(a.isEditingInternal?5:6),z(2),F(a.isEditingInternal?
7:8),z(2),F(a.isEditingInternal?9:10),z(2),F(a.isEditingInternal?11:12),z(2),F(a.isEditingInternal?13:14),z(2),F(a.isEditingInternal?15:16))},dBb=function(a){if(a&1){var b=r();I(0,"tbody",23);M("cdkDropListDropped",function(c){t(b);var d=P();return v(d.onDrop(c))});Dg(1,cBb,17,10,"tr",24,Cg);J()}a&2&&(a=P(),D("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||a.openRow!=null),z(),Eg(a.collection))},eBb=function(a){a&1&&(I(0,"div",17),Q(1," There are currently no rules for this SLO "),
J())},fBb=function(a,b){if(a&1){var c=r();I(0,"tr",7);M("click",function(){var e=t(c).$implicit,f=P();return v(f.editSlo(e))})("focus",function(){var e=t(c).$index,f=P();return v(f.setFocusOnIndex(e))});K(1,"td",2);I(2,"td",8)(3,"a",9);Q(4);J()();I(5,"td",10);Q(6);J()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();wg("grid-focus",d.isFocused(b));ng("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));z(3);D("href",Fq.editSlo.makeHref(a.sloId),uf);z();R(" ",a.name," ");z(2);R(" ",a.description,
" ")}},gBb=function(a){if(a)return(Array.isArray(a)?a.map(function(b){return Vj(b)}):[Vj(a)]).filter(function(b){return!isNaN(b)})},hBb=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!Ba(c,b)})},iBb=function(a,b){typeof a==="string"&&(a=a.trim())&&b(Hk(a))},jBb=function(a,b){if(!a)return[];a=l(typeof a==="string"?a.split(","):a);for(var c=a.next();!c.done;c=a.next())iBb(c.value,function(d){return b.push(d)});return Xta(b)},kBb=function(a){return a===null?function(){}:function(b){a:{if(Array.isArray(b)&&
b.length===1&&(b=b[0],Array.isArray(b))){b=new a(b);break a}b=void 0}if(b!==void 0)return b;throw Error("xf");}},lBb=function(a){a&1&&(I(0,"a",1),Q(1),S(2,"async"),J());if(a&2){var b;a=P();D("href",a.manageComponentLink,uf);z();ch((b=T(2,2,a.component$))==null?null:b.name)}},mBb=function(a){a&1&&(I(0,"output"),Q(1),J());a&2&&(a=P(),z(),ch(a.componentId))},nBb=function(a){a&1&&Hg(0)},oBb=function(a){a&1&&C(0,nBb,1,0,"ng-container",4);a&2&&(P(),a=L(6),D("ngTemplateOutlet",a))},pBb=function(a){a&1&&
Hg(0)},qBb=function(a){a&1&&C(0,pBb,1,0,"ng-container",4);a&2&&(P(),a=L(8),D("ngTemplateOutlet",a))},rBb=function(a){a&1&&(I(0,"li")(1,"label"),Q(2,"Component"),J(),K(3,"b-async-component",8),J());a&2&&(a=P(2),z(3),D("componentId",a.issueComponentId))},sBb=function(a){a&1&&(I(0,"li")(1,"label"),Q(2,"Team"),J(),K(3,"b-team-display",9),J());a&2&&(a=P(2),z(3),D("teamId",a.issueTeamId))},tBb=function(a){a&1&&(I(0,"ol",5)(1,"li")(2,"label"),Q(3,"ID"),J(),I(4,"output"),Q(5),J()(),I(6,"li")(7,"label"),Q(8,
"Type"),J(),I(9,"output"),Q(10),J()(),I(11,"li")(12,"label"),Q(13,"Priority"),J(),K(14,"b-issue-priority-display",6),J(),I(15,"li")(16,"label"),Q(17,"Severity"),J(),I(18,"output"),Q(19),J()(),I(20,"li")(21,"label"),Q(22,"Status"),J(),I(23,"output"),Q(24),J()(),I(25,"li")(26,"label"),Q(27,"Last modified"),J(),I(28,"output"),Q(29),S(30,"date"),J()(),I(31,"li")(32,"label"),Q(33,"Issue access limit"),J(),I(34,"output"),Q(35),I(36,"a",7),Q(37,"Learn more"),J()()(),E(38,rBb,4,1,"li"),E(39,sBb,4,1,"li"),
J());a&2&&(a=P(),z(5),ch(a.issueId),z(5),ch(a.issueType),z(4),D("issuePriority",a.issuePriority),z(5),ch(a.issueSeverity),z(5),ch(a.issueStatus),z(5),ch(mh(30,10,a.issueLastModified,"medium")),z(6),R("",a.accessLimitLevel," "),z(),D("href",a.documentationLinks.getIssueAccessLimit(),uf),z(2),F(a.issueComponentId?38:-1),z(),F(a.issueTeamId?39:-1))},uBb=function(a){a&1&&(Fg(0),Q(1,"Signing in..."),Gg(),K(2,"b-spinner"))},vBb=function(a){a&1&&(Fg(0),Q(1,"Sign in"),Gg())},wBb=function(a){if(a&1){var b=
r();I(0,"button",11);M("click",function(){t(b);var c=P(2);c.signInProgressing=!0;c.loginRedirector.redirect();return v()});E(1,uBb,3,0)(2,vBb,2,0,"ng-container");J()}a&2&&(a=P(2),z(),F(a.signInProgressing?1:2))},xBb=function(a){a&1&&(I(0,"h3"),Q(1,"Access to this issue may be resolved by signing in."),J(),E(2,wBb,3,1,"button",10));a&2&&(a=P(),z(2),F(a.enableSignInAnonymousAccessDenied?2:-1))},yBb=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,
a.length-2):a.toLowerCase()},zBb=function(a){a.label||(a=Qj(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},BBb=function(a){return{type:ABb[a.getType()],value:a.getValue()}},DBb=function(a){var b,c=CBb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(DBb);a=Wk(a,EBb,3,Fk());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(BBb)}},IBb=function(a){var b,c=FBb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(DBb);b=kl(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:GBb[e.getField()],
customFieldId:Number(e.getCustomFieldId_asString())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:HBb[pl(a,5)]}},NBb=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:Oh(Qm(a,JBb,2,KBb),1)},queryBuilderResponse:void 0};case 1:a=Qm(a,ls,1,KBb);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:LBb[a.getType()],expressions:((b=Wk(a,MBb,2,Fk()))!=null?b:[]).map(IBb)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},
OBb=function(a,b){a&1&&(I(0,"mat-option",4)(1,"div",5),Q(2),J()());a&2&&(a=b.$implicit,D("value",a),z(2),R(" ",a.name," "))},PBb=function(a,b){a&1&&(I(0,"mat-option",11),Q(1),J());a&2&&(a=b.$implicit,D("value",a.key),z(),R(" ",a.value," "))},QBb=function(a){if(a&1){var b=r();I(0,"mat-form-field",4)(1,"mat-select",10);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.expressionType,c)||(d.expressionType=c);return v(c)});Dg(2,PBb,2,2,"mat-option",11,Cg);S(4,"keyvalue");J()()}a&2&&(a=P(2),z(),eh("ngModel",
a.expressionType),z(),Eg(T(4,1,a.globalTypeLabels)))},RBb=function(a,b){a&1&&(I(0,"mat-option",11),Q(1),J());a&2&&(a=b.$implicit,D("value",a[0]),z(),R(" ",a[1]," "))},SBb=function(a,b){a&1&&(I(0,"mat-option",11),Q(1),J());if(a&2){a=b.$implicit;b=P(2).$implicit;var c=P(2);D("value",a);z();R(" ",c.getTypeLabel(b,a)," ")}},TBb=function(a){if(a&1){var b=r();I(0,"mat-form-field",4)(1,"mat-select",18);gh("ngModelChange",function(c){t(b);var d=P().$implicit;fh(d.type,c)||(d.type=c);return v(c)});Dg(2,SBb,
2,2,"mat-option",11,Cg);J()()}a&2&&(a=P().$implicit,z(),eh("ngModel",a.type),z(),Eg(a.getLegalTypes()))},VBb=function(a){if(a&1){var b=r();I(0,"div",26);M("click",function(){t(b);var c=P(2).$implicit,d=P(5);return v(UBb(d,c))});I(1,"span",27);Q(2);J()()}a&2&&(a=P(2).$implicit,P(5),D("title",a.value),z(2),R(" ",a.value.replace(/"/g,"")," "))},WBb=function(a){if(a&1){var b=r();I(0,"div",24)(1,"b-custom-repeated-enum-picker",28);M("onValueChange",function(e){t(b);var f=P(7);f.chipUnderEdit.value='"'+
e+'"';ms(f);return v()});J()()}if(a&2){a=P(2).$implicit;var c=P(3).$implicit,d=P(2);z();D("showPlaceholder",!0)("customFieldTitle",d.getCustomFieldName(c))("currentInputValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},XBb=function(a){if(a&1){var b=r();I(0,"div",22);E(1,VBb,3,2,"div",23);E(2,WBb,2,4,"div",24);I(3,"button",25);M("click",function(){t(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=P().$implicit;var c=P(5);z();F(c.chipUnderEdit===
a?-1:1);z();F(c.chipUnderEdit===a?2:-1)}},YBb=function(a,b){a&1&&E(0,XBb,4,2,"div",22);a&2&&(a=b.$implicit,b=P(5),F(b.chipUnderEdit===a||a.value?0:-1))},ZBb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},$Bb=function(a){a&1&&(I(0,"div",19),Dg(1,YBb,1,1,null,null,Cg),E(3,ZBb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),
z(2),F(a.type?3:-1))},aCb=function(a,b){if(a&1){var c=r();I(0,"div",30)(1,"mat-checkbox",31);M("change",function(d){var e=t(c).$implicit,f=P(3).$implicit;return v(f.enumValues[e.id]=d.checked)});Q(2);J()()}a&2&&(a=b.$implicit,b=P(3).$implicit,z(),D("checked",b.enumValues[a.id]),z(),R(" ",a.label||a.id," "))},bCb=function(a){a&1&&(I(0,"div",20),Dg(1,aCb,3,2,"div",30,Cg),J());a&2&&(a=P(2).$implicit,z(),Eg(a.getOptions()))},cCb=function(a){if(a&1){var b=r();I(0,"div")(1,"input",32);gh("ngModelChange",
function(c){t(b);var d=P(3).$implicit;fh(d.csv,c)||(d.csv=c);return v(c)});J()()}a&2&&(a=P(3).$implicit,z(),eh("ngModel",a.csv),D("bContactAutocomplete","MULTI"))},dCb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"input",33);gh("ngModelChange",function(c){t(b);var d=P(3).$implicit;fh(d.csv,c)||(d.csv=c);return v(c)});J()()}a&2&&(a=P(3).$implicit,z(),eh("ngModel",a.csv))},eCb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"input",34);gh("ngModelChange",function(c){t(b);var d=P(3).$implicit;fh(d.csv,
c)||(d.csv=c);return v(c)});J()()}a&2&&(a=P(3).$implicit,z(),eh("ngModel",a.csv))},fCb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"input",35);gh("ngModelChange",function(c){t(b);var d=P(3).$implicit;fh(d.csv,c)||(d.csv=c);return v(c)});J()()}a&2&&(a=P(3).$implicit,z(),eh("ngModel",a.csv))},gCb=function(a){a&1&&(I(0,"div"),E(1,cCb,2,2,"div"),E(2,dCb,2,1,"div",14),E(3,eCb,2,1,"div",14),E(4,fCb,2,1,"div",14),J());a&2&&(a=P(2).$implicit,z(),F(a.getWidgetType()=="user"?1:-1),z(),F(a.getWidgetType()==
"csv"?2:-1),z(),F(a.getWidgetType()=="id"?3:-1),z(),F(a.getWidgetType()=="number"?4:-1))},hCb=function(a,b){if(a&1){var c=r();I(0,"div",36)(1,"div",24)(2,"input",35);gh("ngModelChange",function(d){var e=t(c).$implicit;fh(e.value,d)||(e.value=d);return v(d)});J()();I(3,"button",37);M("click",function(){var d=t(c).$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}a&2&&(a=b.$implicit,z(2),eh("ngModel",a.value))},iCb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);
var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND"," "))},jCb=function(a){a&1&&(I(0,"div",19),Dg(1,hCb,4,1,"div",36,Cg),E(3,iCb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),z(2),F(a.type?3:-1))},lCb=function(a){if(a&1){var b=r();I(0,"div",26);M("click",function(){t(b);var d=P(2).$implicit,e=P(5);return v(kCb(e,d))});I(1,"span",27);Q(2);J()()}if(a&2){a=P(2).$implicit;var c=P(5);D("title",c.getComponentPath(c.components[a.value]));
z(2);R(" ",c.getComponentPath(c.components[a.value])," ")}},mCb=function(a){if(a&1){var b=r();I(0,"div",24)(1,"b-team-component-picker",41);M("selectedComponentChange",function(c){t(b);var d=P(7);d.componentUnderEdit=c!=null?c:null;d.componentUnderEdit&&(d.chipUnderEdit.value=d.componentUnderEdit.componentId,d.components[d.componentUnderEdit.componentId]=d.componentUnderEdit);d.componentUnderEdit=null;ms(d);return v()});J()()}a&2&&(a=P(7),z(),D("selectedComponent",a.componentUnderEdit)("placeholder",
"Choose Component")("isRequired",!0))},nCb=function(a){if(a&1){var b=r();I(0,"div",38);E(1,lCb,3,2,"div",23);E(2,mCb,2,3,"div",24);I(3,"button",39);M("click",function(){t(b);var d=P().$implicit;P(5);d.includeSubs=!d.includeSubs;return v()});K(4,"mat-icon",40);J();I(5,"button",25);M("click",function(){t(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=P().$implicit;var c=P(5);z();F(c.chipUnderEdit===a?-1:1);z();F(c.chipUnderEdit===a?2:-1);z();D("title",a.includeSubs?
"Subcomponents are included":"Subcomponents are not included");ng("aria-checked",a.includeSubs);z();D("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},oCb=function(a,b){a&1&&E(0,nCb,6,5,"div",38);a&2&&(a=b.$implicit,b=P(5),F(b.chipUnderEdit===a||a.value?0:-1))},pCb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND",
" "))},qCb=function(a){a&1&&(I(0,"div",19),Dg(1,oCb,1,1,null,null,Cg),E(3,pCb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),z(2),F(a.type?3:-1))},sCb=function(a){if(a&1){var b=r();I(0,"div",26);M("click",function(){t(b);var d=P(2).$implicit,e=P(5);return v(rCb(e,d))});I(1,"span",27);Q(2);J()()}if(a&2){a=P(2).$implicit;var c=P(5);D("title",c.trackers[a.value]==null?null:c.trackers[a.value].name);z(2);R(" ",c.trackers[a.value]==null?null:c.trackers[a.value].name," ")}},tCb=function(a){if(a&
1){var b=r();I(0,"div",24)(1,"b-tracker-picker",43);M("onTrackerSelect",function(c){t(b);var d=P(7);d.analytics.trackEvent("search","builder-autocomplete-select","tracker",isNaN(Number(c.trackerId))?0:Number(c.trackerId));d.chipUnderEdit.value=c.trackerId;d.trackers[c.trackerId]=c;d.trackerUnderEdit=null;ms(d);return v()});J()()}a&2&&(a=P(7),z(),D("selectedTracker",a.trackerUnderEdit))},uCb=function(a){if(a&1){var b=r();I(0,"div",42);E(1,sCb,3,2,"div",23);E(2,tCb,2,1,"div",24);I(3,"button",25);M("click",
function(){t(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=P().$implicit;var c=P(5);z();F(c.chipUnderEdit===a?-1:1);z();F(c.chipUnderEdit===a?2:-1)}},vCb=function(a,b){a&1&&E(0,uCb,4,2,"div",42);a&2&&(a=b.$implicit,b=P(5),F(b.chipUnderEdit===a||a.value?0:-1))},wCb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NAND"?"OR":
"AND"," "))},xCb=function(a){a&1&&(I(0,"div",19),Dg(1,vCb,1,1,null,null,Cg),E(3,wCb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),z(2),F(a.type?3:-1))},zCb=function(a){if(a&1){var b=r();I(0,"div",26);S(1,"teamPath");M("click",function(){t(b);var d=P(2).$implicit,e=P(6);return v(yCb(e,d))});I(2,"span",27);Q(3);S(4,"teamPath");J()()}if(a&2){a=P(2).$implicit;var c=P(6);D("title",T(1,2,c.teams[a.value]));z(3);R(" ",T(4,4,c.teams[a.value])," ")}},BCb=function(a){if(a&1){var b=r();I(0,"div",
24)(1,"b-team-picker",46);M("onTeamSelect",function(c){t(b);var d=P(8);return v(ACb(d,c))});J()()}a&2&&(a=P(8),z(),D("teamSelected",a.teamUnderEdit))},CCb=function(a){if(a&1){var b=r();I(0,"div",44);E(1,zCb,5,6,"div",23);E(2,BCb,2,1,"div",24);I(3,"button",45);M("click",function(){t(b);var d=P().$implicit;P(6);d.includeSubs=!d.includeSubs;return v()});K(4,"mat-icon",40);J();I(5,"button",25);M("click",function(){t(b);var d=P().$implicit,e=P(4).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=
P().$implicit;var c=P(6);z();F(c.chipUnderEdit===a?-1:1);z();F(c.chipUnderEdit===a?2:-1);z();D("title",a.includeSubs?"Subteams are included":"Subteams are not included");ng("aria-checked",a.includeSubs);z();D("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},DCb=function(a,b){a&1&&E(0,CCb,6,5,"div",44);a&2&&(a=b.$implicit,b=P(6),F(b.chipUnderEdit===a||a.value?0:-1))},ECb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);var c=P(4).$implicit,d=P(2);return v(os(d,
c))});Q(1);J()}a&2&&(a=P(4).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},FCb=function(a){a&1&&(Dg(0,DCb,1,1,null,null,Cg),E(2,ECb,2,1,"button",21));a&2&&(a=P(3).$implicit,Eg(a.values),z(2),F(a.type?2:-1))},GCb=function(a){a&1&&(I(0,"div",19),E(1,FCb,3,1),J());a&2&&(a=P(4),z(),F(a.sessionIsInternal?1:-1))},ICb=function(a){if(a&1){var b=r();I(0,"div")(1,"bv2-input-date-picker",47);M("boundValueChange",function(d){t(b);P(3).$implicit.dateFrom=HCb(d);return v()});J();Q(2," and ");
I(3,"bv2-input-date-picker",47);M("boundValueChange",function(d){t(b);P(3).$implicit.dateTo=HCb(d);return v()});J()()}if(a&2){a=P(3).$implicit;var c=P(2);z();D("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0);z(2);D("boundValue",c.getDateValue(a.dateTo))("isRequired",!0)}},JCb=function(a){if(a&1){var b=r();I(0,"div");Q(1," the last ");I(2,"input",48);gh("ngModelChange",function(c){t(b);var d=P(3).$implicit;fh(d.duration,c)||(d.duration=c);return v(c)});J();Q(3," days. ");J()}a&2&&(a=P(3).$implicit,
z(2),eh("ngModel",a.duration))},KCb=function(a){if(a&1){var b=r();I(0,"div")(1,"bv2-input-date-picker",47);M("boundValueChange",function(d){t(b);P(3).$implicit.dateFrom=HCb(d);return v()});J()()}if(a&2){a=P(3).$implicit;var c=P(2);z();D("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0)}},LCb=function(a){a&1&&(I(0,"div"),E(1,ICb,4,4,"div"),E(2,JCb,4,1,"div"),E(3,KCb,2,2,"div"),J());a&2&&(a=P(2).$implicit,z(),F(a.type=="RANGE"||a.type=="NRANGE"?1:-1),z(),F(a.type=="DURATION"||a.type=="NDURATION"?
2:-1),z(),F(a.type=="LE"||a.type=="LT"||a.type=="GE"||a.type=="GT"||a.type=="OR"?3:-1))},MCb=function(a){if(a&1){var b=r();I(0,"div",26);M("click",function(){t(b);var d=P(2).$implicit,e=P(5);return v(ps(e,d))});I(1,"span",27);Q(2);J()()}if(a&2){a=P(2).$implicit;var c=P(5);D("title",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value);z(2);R(" ",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value," ")}},NCb=function(a,b){a&1&&(I(0,"mat-option",11),Q(1),J());a&2&&(a=b.$implicit,
D("value",a.hotlistId),z(),R(" ",a.name," "))},OCb=function(a){if(a&1){var b=r();I(0,"mat-form-field",50)(1,"mat-select",51);gh("ngModelChange",function(d){t(b);var e=P(2).$implicit;fh(e.value,d)||(e.value=d);return v(d)});M("selectionChange",function(){t(b);var d=P(7);return v(ms(d))});Dg(2,NCb,2,2,"mat-option",11,Cg);J()()}if(a&2){a=P(2).$implicit;var c=P(5);z();eh("ngModel",a.value);z();Eg(c.userHotlists)}},PCb=function(a){if(a&1){var b=r();I(0,"div",49);E(1,MCb,3,2,"div",23);E(2,OCb,4,1,"mat-form-field",
50);I(3,"button",25);M("click",function(){t(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=P().$implicit;var c=P(5);z();F(c.chipUnderEdit===a?-1:1);z();F(c.chipUnderEdit===a?2:-1)}},QCb=function(a,b){a&1&&E(0,PCb,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),F(b.chipUnderEdit===a||a.value?0:-1))},RCb=function(a){if(a&1){var b=r();I(0,"button",29);M("click",function(){t(b);var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type==
"OR"||a.type=="NAND"?"OR":"AND"," "))},SCb=function(a){a&1&&(I(0,"div",19),Dg(1,QCb,1,1,null,null,Cg),E(3,RCb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),z(2),F(a.type?3:-1))},TCb=function(a){if(a&1){var b=r();I(0,"div",26);M("click",function(){t(b);var d=P(2).$implicit,e=P(5);return v(ps(e,d))});I(1,"span",27);Q(2);J()()}if(a&2){a=P(2).$implicit;var c=P(5);D("title",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value);z(2);R(" ",(c.savedSearches[a.value]==
null?null:c.savedSearches[a.value].name)||a.value," ")}},UCb=function(a,b){a&1&&(I(0,"mat-option",11),Q(1),J());a&2&&(a=b.$implicit,D("value",a.searchId),z(),R(" ",a.name," "))},VCb=function(a){if(a&1){var b=r();I(0,"mat-form-field",50)(1,"mat-select",52);gh("ngModelChange",function(d){t(b);var e=P(2).$implicit;fh(e.value,d)||(e.value=d);return v(d)});M("selectionChange",function(){t(b);var d=P(7);return v(ms(d))});Dg(2,UCb,2,2,"mat-option",11,Cg);J()()}if(a&2){a=P(2).$implicit;var c=P(5);z();eh("ngModel",
a.value);z();Eg(c.userSavedSearches)}},WCb=function(a){if(a&1){var b=r();I(0,"div",49);E(1,TCb,3,2,"div",23);E(2,VCb,4,1,"mat-form-field",50);I(3,"button",25);M("click",function(){t(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(ns(f,e,d))});J()()}if(a&2){a=P().$implicit;var c=P(5);z();F(c.chipUnderEdit===a?-1:1);z();F(c.chipUnderEdit===a?2:-1)}},XCb=function(a,b){a&1&&E(0,WCb,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),F(b.chipUnderEdit===a||a.value?0:-1))},YCb=function(a){if(a&1){var b=r();
I(0,"button",29);M("click",function(){t(b);var c=P(3).$implicit,d=P(2);return v(os(d,c))});Q(1);J()}a&2&&(a=P(3).$implicit,z(),R(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},ZCb=function(a){a&1&&(I(0,"div",19),Dg(1,XCb,1,1,null,null,Cg),E(3,YCb,2,1,"button",21),J());a&2&&(a=P(2).$implicit,z(),Eg(a.values),z(2),F(a.type?3:-1))},$Cb=function(a){a&1&&(I(0,"div",14),E(1,$Bb,4,1,"div",19),E(2,bCb,3,0,"div",20),E(3,gCb,5,4,"div"),E(4,jCb,4,1,"div",19),E(5,qCb,4,1,"div",19),E(6,xCb,4,1,"div",19),
E(7,GCb,2,1,"div",19),E(8,LCb,4,3,"div"),E(9,SCb,4,1,"div",19),E(10,ZCb,4,1,"div",19),J());if(a&2){a=P().$implicit;var b=P(2);z();F(a.getWidgetType()==="repeated-enum"?1:-1);z();F(a.getWidgetType()==="enum"?2:-1);z();F(a instanceof qs?3:-1);z();F(a.getWidgetType()=="text"?4:-1);z();F(a.getWidgetType()=="component"?5:-1);z();F(b.isTrackerSearchEnabled&&a.getWidgetType()=="tracker"?6:-1);z();F(a.getWidgetType()=="team"?7:-1);z();F(a.getWidgetType()==="date"?8:-1);z();F(a.getWidgetType()=="hotlist"?
9:-1);z();F(a.getWidgetType()=="savedsearch"?10:-1)}},aDb=function(a){a&1&&(I(0,"div",15),Q(1),J());if(a&2){a=P().$implicit;var b=P(2);z();R(" ",b.getCustomFieldName(a)," ")}},dDb=function(a){if(a&1){var b=r();I(0,"div",16)(1,"b-custom-field-picker",53);M("fieldSelected",function(c){t(b);var d=P().$index,e=P(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=bDb(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);cDb(e,e.expressions[d]);return v()});J()()}},fDb=function(a,b){if(a&1){var c=
r();I(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);gh("ngModelChange",function(d){var e=t(c).$implicit;fh(e.label.field,d)||(e.label.field=d);return v(d)});M("selectionChange",function(){var d=t(c).$index,e=P(2);return v(eDb(e,d))});Dg(4,RBb,2,2,"mat-option",11,Cg);J()();E(6,TBb,4,1,"mat-form-field",4);J();E(7,$Cb,11,10,"div",14);E(8,aDb,2,1,"div",15);E(9,dDb,2,0,"div",16);I(10,"button",17);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.removeExpression(d))});J()()}a&
2&&(a=b.$implicit,b=P(2),z(3),eh("ngModel",a.label.field),z(),Eg(b.availableLabels),z(2),F(a.isPendingCustomField?-1:6),z(),F(a.isPendingCustomField?-1:7),z(),F(a.label.customFieldId?8:-1),z(),F(a.isPendingCustomField?9:-1))},gDb=function(a,b){if(a&1){var c=r();I(0,"button",54);M("click",function(){var d=t(c).$implicit,e=P(2);e.expressions.push({label:{field:d[0]}});eDb(e,e.expressions.length-1);return v()});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a[1]," "))},hDb=function(a){a&1&&(I(0,"div",1)(1,"div",
2)(2,"span",3),Q(3,"Advanced search query builder"),J(),E(4,QBb,5,3,"mat-form-field",4),J(),Dg(5,fDb,11,5,"div",5,Bg),I(7,"div",6)(8,"button",7),Q(9),J(),I(10,"mat-menu",8,0),Dg(12,gDb,2,1,"button",9,Cg),J()()());if(a&2){a=L(11);var b=P();z(4);F(b.expressions.length?4:-1);z();Eg(b.expressions);z(3);D("matMenuTriggerFor",a);z();R(" ",b.expressionType," ... ");z(3);Eg(b.availableLabels)}},jDb=function(a){if(a&1){var b=r();I(0,"button",2);M("click",function(){t(b);var c=P();return v(iDb(c))});Q(1);J()}a&
2&&(a=P(),z(),R(" ",a.buttonLabel," "))},kDb=function(a){if(a&1){var b=r();I(0,"button",3);M("click",function(){t(b);var c=P();return v(iDb(c))});K(1,"mat-icon",4);Q(2);J()}a&2&&(a=P(),D("matTooltip","Open release notes"),z(),D("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),z(),R(" ",a.buttonLabel," "))},lDb=function(a){a&1&&K(0,"div",0)},mDb=function(a){a&1&&K(0,"div",1)},nDb=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(c){t(b);var d=P();return v(d.manageSlos(c))});
Q(1,"Manage SLOs");J()}},oDb=function(a){a&1&&(I(0,"a",11),Q(1,"Early Access "),K(2,"b-feature-stage-label",12),J())},pDb=function(a){a&1&&K(0,"mat-divider")(1,"b-whats-new-button",13);a&2&&(z(),D("menuMode",!0))},qDb=function(a){a&1&&K(0,"b-whats-new-button",0);a&2&&(a=P(),D("alertMode",a.majorReleaseNotesUpdated))},rDb=function(a){if(a&1){var b=r();I(0,"button",4);M("click",function(){t(b);var c=P();return v(c.openFeedbackDialog())});K(1,"mat-icon",5);J()}},sDb=function(a){if(a&1){var b=r();I(0,
"button",5);M("click",function(){t(b);var c=P();return v(c.clickMenu.emit())});K(1,"mat-icon",6);J()}},vDb=function(a,b){a&1&&(I(0,"output",4),Q(1),J());a&2&&(a=b.$implicit,D("ngClass",a.color?jh(2,tDb,a.color):ih(4,uDb)),z(),ch(a.name))},wDb=function(a){a&1&&(I(0,"span"),Q(1," Currently selected hotlist: "),I(2,"strong"),Q(3),J()());a&2&&(a=P(3),z(3),ch(a.header.hotlist.name))},xDb=function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},yDb=function(a){a&
1&&E(0,wDb,4,1,"span")(1,xDb,1,0);a&2&&(a=P(2),F(a.header.hotlist?0:1))},zDb=function(a){a&1&&(I(0,"span"),Q(1,"Currently selected saved search: "),I(2,"strong"),Q(3),J()());a&2&&(a=P(3),z(3),ch(a.header.savedSearch.name))},ADb=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},BDb=function(a){a&1&&E(0,zDb,4,1,"span")(1,ADb,1,0);a&2&&(a=P(2),F(a.header.savedSearch?0:1))},CDb=function(a){a&1&&(I(0,"span"),Q(1," and "),I(2,"strong"),Q(3,"subcomponents"),
J()())},DDb=function(a){a&1&&(I(0,"span"),Q(1," Currently selected component: "),I(2,"strong",3),Q(3),J(),K(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),E(6,CDb,4,0,"span"),J());if(a&2){a=P(3);z(3);var b=a.header.component,c=rs(a.trackerHelpers,b.componentPathInfo);ch(c&&c.componentPathName?c.componentPathName.join(" > "):b.name);z();D("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);z();D("trackerId",a.header.component.trackerId);
z();F(a.header.includeChildren?6:-1)}},EDb=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},FDb=function(a){a&1&&E(0,DDb,7,4,"span")(1,EDb,1,0);a&2&&(a=P(2),F(a.header.component?0:1))},GDb=function(a){a&1&&(I(0,"span"),Q(1," Currently selected tracker: "),I(2,"strong"),Q(3),J()());a&2&&(a=P(3),z(3),ch(a.header.tracker.name))},HDb=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},IDb=function(a){a&1&&E(0,GDb,
4,1,"span")(1,HDb,1,0);a&2&&(a=P(2),F(a.header.tracker?0:1))},JDb=function(a){a&1&&(I(0,"span"),Q(1," and "),I(2,"strong"),Q(3,"subteams"),J()())},KDb=function(a){a&1&&(I(0,"span"),Q(1," Currently selected team: "),I(2,"strong"),Q(3),J(),E(4,JDb,4,0,"span"),J());a&2&&(a=P(3),z(3),ch(a.header.team.name),z(),F(a.header.includeChildren?4:-1))},LDb=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},MDb=function(a){a&1&&E(0,KDb,5,2,"span")(1,LDb,1,0);a&2&&(a=P(2),
F(a.header.team?0:1))},NDb=function(a,b){a&1&&(I(0,"span"),Q(1," Currently selected custom field: "),I(2,"strong"),Q(3),J(),Q(4," of type "),I(5,"strong"),Q(6),S(7,"lowercase"),J(),Q(8,". "),J());a&2&&(z(3),ch(b.name),z(3),ch(T(7,2,b.type)))},ODb=function(a){a&1&&Q(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},PDb=function(a){a&1&&E(0,NDb,9,4,"span")(1,ODb,1,0);if(a&2){var b;a=P(2);F((b=a.header.customField)?0:1,b)}},QDb=function(a){a&1&&(I(0,"div",0),E(1,yDb,2,
1),E(2,BDb,2,1),E(3,FDb,2,1),E(4,IDb,2,1),E(5,MDb,2,1),E(6,PDb,2,1),J());a&2&&(a=P(),z(),F(a.header.type==="hotlist"?1:-1),z(),F(a.header.type==="savedsearch"?2:-1),z(),F(a.header.type==="component"?3:-1),z(),F(a.header.type==="tracker"?4:-1),z(),F(a.header.type==="team"?5:-1),z(),F(a.header.type==="customfield"?6:-1))},RDb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),dh(" ",a.id,": ",a.name," "))},SDb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"span"),Q(3),J()());a&2&&(a=P().$implicit,
z(),R(" Hotlist ",a.id,": "),z(2),ch(a.name))},TDb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"span"),Q(3),J(),K(4,"br"),I(5,"span",7),Q(6),J()());a&2&&(a=P().$implicit,z(),R(" Saved search ",a.id,": "),z(2),ch(a.name),z(3),ch(a.query))},UDb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),R(" ",a.name," "))},VDb=function(a){a&1&&(I(0,"span"),Q(1," > "),J())},XDb=function(a,b){if(a&1){var c=r();I(0,"span",9);M("click",function(e){var f=t(c).$implicit;WDb(f);return v(e.stopPropagation())});
Q(1);J();E(2,VDb,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;Rg("title","",a.id,": ",a.name);z();ch(a.name);z();F(d!==b-1?2:-1)}},YDb=function(a){a&1&&(I(0,"span"),Q(1," Component "),I(2,"strong",3),Q(3),J(),K(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),I(6,"span",8),Dg(7,XDb,3,5,null,null,Cg),J()());a&2&&(a=P().$implicit,z(3),ch(a.id),z(),D("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),z(),D("trackerId",a.trackerId),z(2),Eg(a.componentPath))},
ZDb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"span"),Q(3),J()());a&2&&(a=P().$implicit,z(),R(" Tracker ",a.id,": "),z(2),ch(a.name))},$Db=function(a){a&1&&(I(0,"span"),Q(1," > "),J())},aEb=function(a,b){if(a&1){var c=r();I(0,"span",9);M("click",function(e){var f=t(c).$implicit;WDb(f);return v(e.stopPropagation())});Q(1);J();E(2,$Db,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;Rg("title","",a.id,": ",a.name);z();ch(a.name);z();F(d!==b-1?2:-1)}},bEb=function(a){a&1&&(I(0,"span"),Q(1," Team "),
I(2,"strong"),Q(3),J(),I(4,"span",8),Dg(5,aEb,3,5,null,null,Cg),J()());a&2&&(a=P().$implicit,z(3),ch(a.id),z(2),Eg(a.teamPath))},cEb=function(a){a&1&&(I(0,"span"),Q(1," > "),J())},dEb=function(a,b){a&1&&(I(0,"span"),Q(1),J(),E(2,cEb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;z();ch(a);z();F(c!==b-1?2:-1)}},eEb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"span"),Q(3),J(),I(4,"span",10),Dg(5,dEb,3,2,null,null,Cg),J()());a&2&&(a=P().$implicit,z(),R(" Custom Field ",a.id,": "),z(2),ch(a.name),
z(2),Eg(a.componentPathNames))},fEb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P().$implicit,z(),dh(" ",a.label,": ",a.name," "))},hEb=function(a,b){if(a&1){var c=r();I(0,"b-app-search-auto-complete-option",6);M("optionClicked",function(e){t(c);var f=P();e>=0&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&gEb(e),f.itemSelected.emit(e));return v()});E(1,RDb,2,2,"span");E(2,SDb,4,2,"span");E(3,TDb,7,3,"span");E(4,UDb,2,1,"span");E(5,YDb,9,3,"span");E(6,ZDb,4,2,"span");E(7,bEb,7,1,"span");
E(8,eEb,7,2,"span");E(9,fEb,2,2,"span");J()}if(a&2){a=b.$implicit;b=b.$index;var d=P();pg("id","b-app-search-option-",b);D("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);z();F(a.completionCfg.type==="issue"?1:-1);z();F(a.completionCfg.type==="hotlist"?2:-1);z();F(a.completionCfg.type==="savedsearch"?3:-1);z();F(a.completionCfg.type==="atom"?4:-1);z();F(a.completionCfg.type==="component"?5:-1);z();F(a.completionCfg.type==="tracker"?6:-1);z();F(a.completionCfg.type==="team"?
7:-1);z();F(a.completionCfg.type==="customField"?8:-1);z();F(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},jEb=function(a){if(a&1){var b=r();I(0,"div",21)(1,"input",22,2);gh("ngModelChange",function(c){t(b);var d=P();fh(d.searchName,c)||(d.searchName=c);return v(c)});M("keydown.Tab",function(){t(b);var c=P();return v(iEb(c))})("keydown.enter",function(){t(b);var c=P();return v(c.saveSearch())});J();I(3,"button",18);M("click",function(){t(b);var c=P();return v(c.saveSearch())});Q(4," Save ");
J()()}a&2&&(a=P(),z(),eh("ngModel",a.searchName),z(2),D("disabled",!a.searchName))},kEb=function(a){a&1&&(I(0,"span",9),Q(1),J());a&2&&(a=P(),wg("muted",a.disabled),z(),ch(a.cardTitle))},lEb=function(a){a&1&&(I(0,"mat-select-trigger"),K(1,"mat-icon",15),I(2,"span"),Q(3),J()());a&2&&(a=P(3),z(),D("svgIcon",a.selectedOption.icon),z(2),ch(a.selectedOption.displayText))},mEb=function(a){a&1&&K(0,"mat-icon",15);a&2&&(a=P().$implicit,D("svgIcon",a.icon))},nEb=function(a,b){a&1&&(I(0,"mat-option",14),E(1,
mEb,1,1,"mat-icon",15),Q(2),J());a&2&&(a=b.$implicit,D("value",a),z(),F(a.icon?1:-1),z(),R(" ",a.displayText," "))},oEb=function(a){if(a&1){var b=r();I(0,"mat-form-field",12)(1,"mat-label");Q(2," Choose type... ");J();I(3,"mat-select",13);gh("valueChange",function(c){t(b);var d=P(2);fh(d.selectedOption,c)||(d.selectedOption=c);return v(c)});M("selectionChange",function(c){t(b);P(2).dropdownSelectionChanged.emit(c.value);return v()});E(4,lEb,4,2,"mat-select-trigger");Dg(5,nEb,3,3,"mat-option",14,Cg);
J()()}a&2&&(a=P(2),z(3),D("disabled",a.disabled),eh("value",a.selectedOption),z(),F(a.selectedOption&&a.selectedOption.icon?4:-1),z(),Eg(a.dropdownOptions))},pEb=function(a){if(a&1){var b=r();I(0,"mat-form-field",10)(1,"input",11);M("ngModelChange",function(c){t(b);var d=P();return v(d.cardTitleChange.emit(c))});J()();E(2,oEb,7,3,"mat-form-field",12)}a&2&&(a=P(),z(),wg("muted",a.disabled||!a.selected),D("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),
ng("aria-label",a.ariaLabelForCardTitle),z(),F(a.dropdownOptions.length?2:-1))},qEb=function(a){a&1&&K(0,"mat-icon",5)},rEb=function(a){a&1&&K(0,"mat-icon",6)},sEb=function(a){a&1&&(I(0,"div",7),Og(1),J())},tEb=function(a){a&1&&(I(0,"button",18),K(1,"mat-icon",22),J());a&2&&(a=P(2),D("disabled",a.disabled))},uEb=function(a){a&1&&K(0,"mat-divider",19);a&2&&D("vertical",!0)},vEb=function(a){a&1&&(I(0,"mat-slide-toggle",20),Q(1," Required "),J());a&2&&(a=P(2),D("disabled",a.disabled))},wEb=function(a){if(a&
1){var b=r();I(0,"mat-slide-toggle",23);M("change",function(c){t(b);var d=P(2);return v(d.isInheritedChange.emit(c))});Q(1," Inherited ");J()}a&2&&(a=P(2),D("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},xEb=function(a){if(a&1){var b=r();I(0,"div",8)(1,"button",16);M("click",function(){t(b);var c=P();return v(c.onSave())});Q(2," Save ");J();I(3,"button",17);M("click",function(){t(b);var c=P();return v(c.onCancel())});
Q(4," Cancel ");J();E(5,tEb,2,1,"button",18);E(6,uEb,1,1,"mat-divider",19);E(7,vEb,2,1,"mat-slide-toggle",20);E(8,wEb,2,4,"mat-slide-toggle",21);J()}a&2&&(a=P(),z(),D("disabled",a.isSaveButtonDisabled),z(2),D("disabled",a.disabled),z(2),F(a.showDeleteButton?5:-1),z(),F(a.showDeleteButton&&a.showRequiredToggle?6:-1),z(),F(a.showRequiredToggle?7:-1),z(),F(a.showInheritedToggle?8:-1))},yEb=function(a,b){a&1&&(I(0,"mat-option",6),Q(1),J());a&2&&(a=b.$implicit,D("value",a),z(),ch(a.name))},zEb=function(a){if(a&
1){var b=r();I(0,"mat-form-field")(1,"mat-select",5);gh("valueChange",function(c){t(b);var d=P();fh(d.selected,c)||(d.selected=c);return v(c)});Dg(2,yEb,2,2,"mat-option",6,Cg);J()()}a&2&&(a=P(),z(),eh("value",a.selected),z(),Eg(a.options))},AEb=function(a){a&1&&Q(0," All the available shared fields have been activated. ")},BEb=function(a){a&1&&(I(0,"div"),Q(1," Once activated, the shared field will appear in the right panel of all issues. This only affects the visibility of the shared field in Buganizer UI. "),
I(2,"a",7),Q(3,"Learn more"),J()())},CEb=function(a){return dCa(a.getIt())},DEb=function(a){a&1&&(I(0,"h3"),Q(1),J());a&2&&(a=P(2),z(),R(" Edit Custom Field ",a.editableField.customFieldId," "))},EEb=function(a){a&1&&(I(0,"h3"),Q(1," Create Custom Field "),J())},FEb=function(a){a&1&&(I(0,"div",11),Q(1),J());a&2&&(a=P(2),z(),R(" ",a.serverError," "))},HEb=function(a,b){a&1&&(I(0,"button",25),Q(1),S(2,"enumToHuman"),J());a&2&&(a=b.$implicit,P(),b=L(33),D("matMenuTriggerFor",b)("matMenuTriggerData",
jh(5,GEb,a)),z(),R(" ",T(2,3,a)," "))},IEb=function(a,b){if(a&1){var c=r();I(0,"button",41);M("click",function(){var d=t(c).$implicit,e=P().type,f=P(2);return v(f.setType(e,d==="Multiple"))});Q(1);J()}a&2&&(a=b.$implicit,z(),R(" ",a," "))},JEb=function(a){a&1&&Dg(0,IEb,2,1,"button",40,Cg);a&2&&(a=P(2),Eg(a.secondaryTypes))},LEb=function(a){if(a&1){var b=r();I(0,"td",13)(1,"label",42);Q(2," Allowed Values: ");J();I(3,"b-list-field",43);M("valuesChange",function(c){t(b);var d=P(2);return v(KEb(d,c.values))});
J()()}a&2&&(a=P(2),z(3),D("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue||null)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},MEb=function(a){a&1&&(I(0,"label",27),Q(1," Default Value: "),J())},PEb=function(a,b){if(a&1){var c=r();I(0,"b-edit-field",44);M("valueChange",function(d){t(c);var e=P(2);NEb(e,d);return v()});J()}a&2&&(a=P(2),D("name","Default")("type",b)("tooltip","Set default value")("value",
OEb(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",!0)("clearable",!0))},QEb=function(a){a&1&&(I(0,"label",29),Q(1," Default Values: "),J())},REb=function(a,b){if(a&1){var c=r();I(0,"b-list-field",45);M("valuesChange",function(d){t(c);var e=P(2);NEb(e,d.values);return v()});J()}a&2&&(a=P(2),D("defaultLineCount",3)("type",b)("tooltip","Set default values")("values",a.getListFieldValues())("enumChoices",a.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",
a.isSaving)("truncate",!0))},SEb=function(a,b){if(a&1){var c=r();I(0,"button",46);M("click",function(){var d=t(c).$implicit,e=P(2);return v(e.setFieldSignificance(d))});Q(1);S(2,"enumToHuman");J()}a&2&&(a=b.$implicit,z(),R(" ",T(2,1,a)," "))},TEb=function(a){if(a&1){var b=r();I(0,"div",9);E(1,DEb,2,1,"h3")(2,EEb,2,0,"h3");E(3,FEb,2,1,"div",11);I(4,"form",12)(5,"div",13)(6,"label",14);Q(7,"Name:");J();I(8,"input",15);gh("ngModelChange",function(q){t(b);var u=P();fh(u.editableField.name,q)||(u.editableField.name=
q);return v(q)});J()();I(9,"div",13)(10,"label",16);Q(11,"Description:");J();I(12,"textarea",17);gh("ngModelChange",function(q){t(b);var u=P();fh(u.editableField.description,q)||(u.editableField.description=q);return v(q)});J()();I(13,"table",18)(14,"tr")(15,"td",13)(16,"div",19)(17,"label",20);Q(18," Type: ");J();I(19,"onedev-hovercard",null,0)(21,"div",21)(22,"div",22);Q(23," You can only choose type of field when creating a new custom field. You won't be able to edit it after the custom field is created. ");
J()()()();I(24,"button",23);Q(25);S(26,"enumToHuman");K(27,"b-icon",24);J();I(28,"mat-menu",null,1);Dg(30,HEb,3,7,"button",25,Cg);J();I(32,"mat-menu",null,2);C(34,JEb,2,0,"ng-template",26);J()();E(35,LEb,4,7,"td",13);I(36,"td",13);E(37,MEb,2,0,"label",27);E(38,PEb,1,9,"b-edit-field",28);E(39,QEb,2,0,"label",29);E(40,REb,1,8,"b-list-field",30);J();I(41,"td",13)(42,"label",31);Q(43," Required: ");J();I(44,"b-edit-field",32);M("valueChange",function(q){t(b);var u=P();return v(u.editableField.required=
!!q)});J()();I(45,"td",13)(46,"div",19)(47,"label",33);Q(48," Field Significance: ");J();I(49,"onedev-hovercard",null,3)(51,"div",34)(52,"div",22);Q(53," This affects whether users will receive notifications when changes are made to this field. ");K(54,"br");Q(55," See\u00a0 ");I(56,"a",35);Q(57,"Email Settings ");J()()()()();I(58,"button",36);Q(59);S(60,"enumToHuman");K(61,"b-icon",24);J();I(62,"mat-menu",null,4);Dg(64,SEb,3,3,"button",37,Cg);J()()()();I(66,"button",38);M("click",function(){t(b);
var q=P();return v(q.save())});Q(67," Save ");J();I(68,"button",39);M("click",function(){t(b);var q=P();return v(q.cancel())});Q(69," Cancel ");J()()()}if(a&2){var c,d;a=L(20);var e=L(29),f=L(50),h=L(63),k=P();z();F(k.editableField.customFieldId?1:2);z(2);F(k.serverError?3:-1);z(5);D("bFocus",k.editableField&&!k.isLoading);eh("ngModel",k.editableField.name);D("disabled",k.isSaving);z(4);eh("ngModel",k.editableField.description);D("disabled",k.isSaving);z(5);D("onedevHovercardTrigger",a);z(7);D("matMenuTriggerFor",
e)("disabled",!!k.editableField.customFieldId);z();R(" ",T(26,25,k.editableField.type)," ");z(5);Eg(k.typeChoices);z(5);F(["REPEATED_ENUM","ENUM"].includes(k.editableField.type)?35:-1);z(2);F(k.isRepeated(k.editableField)?-1:37);z();F((c=k.getSingleEditFieldType(k.editableField))?38:-1,c);z();F(k.isRepeated(k.editableField)?39:-1);z();F((d=k.getListFieldType(k.editableField))?40:-1,d);z(4);D("name","Required")("type",k.FieldType.BOOL)("tooltip","Whether the field is required")("value",k.editableField.required);
z(3);D("onedevHovercardTrigger",f);z(9);D("href",k.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",uf);z(2);D("matMenuTriggerFor",h);z();R(" ",T(60,27,k.editableField.fieldSignificance)," ");z(5);Eg(k.significanceChoices);z(2);D("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},UEb=function(a){a&1&&(I(0,"div",10),K(1,"b-spinner",47),J());a&2&&(z(),D("large",!0))},VEb=function(a){a&1&&(I(0,"th"),Q(1,"Actions"),J())},XEb=function(a){if(a&1){var b=r();I(0,"td",52)(1,"button",
53);M("click",function(){t(b);var c=P().$index,d=P(2);return v(d.editField(c))});Q(2,"Edit");J();I(3,"button",53);M("click",function(){t(b);var c=P().$index,d=P(2);return v(WEb(d,c))});Q(4,"Delete");J()()}},YEb=function(a,b){a&1&&(I(0,"tr",49)(1,"td"),Q(2),J(),I(3,"td"),Q(4),J(),I(5,"td"),Q(6),S(7,"enumToHuman"),J(),I(8,"td"),Q(9),J(),I(10,"td"),Q(11),S(12,"yesNo"),J(),I(13,"td"),K(14,"b-custom-field-value-display",51),J(),I(15,"td"),Q(16),S(17,"arrayToHuman"),J(),I(18,"td"),Q(19),S(20,"enumToHuman"),
J(),E(21,XEb,5,0,"td",52),J());a&2&&(a=b.$implicit,b=P(2),D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),z(2),ch(a.name),z(2),ch(a.customFieldId),z(2),ch(T(7,10,a.type)),z(3),ch(a.description),z(2),ch(T(12,12,a.required)),z(3),D("customFieldValue",a.typedDefaultValue),z(2),ch(T(17,14,a.allowedValue)),z(3),ch(T(20,16,a.fieldSignificance)),z(2),F(b.editMode?21:-1))},ZEb=function(a){a&1&&(I(0,"tr")(1,"td",54),Q(2," There are no custom fields defined on this component. "),J()())},$Eb=
function(a){a&1&&(I(0,"tr")(1,"td",55)(2,"strong"),Q(3,"Fields inherited from parent components"),J()()())},aFb=function(a){a&1&&(Fg(0),K(1,"b-component-card",61,6),Gg());if(a&2){a=L(2);var b=P().$implicit;z();D("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},cFb=function(a){if(a&1){var b=r();I(0,"b-field-state-menu",62,7);M("fieldStateChange",function(d){t(b);var e=P(),f=e.$implicit;e=e.$index;var h=P(3);return v(h.updateCustomFieldState(f,d,e))});J()}if(a&2){a=P().$implicit;
var c=P(3);D("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",bFb(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);ng("aria-label",c.msgFieldStateTip)}},dFb=function(a,b){if(a&1){var c=r();I(0,"tr",49)(1,"td");Q(2);J();I(3,"td");Q(4);J();I(5,"td");Q(6);S(7,"enumToHuman");J();I(8,"td");Q(9);J();I(10,"td");Q(11);S(12,"yesNo");J();I(13,"td");K(14,"b-custom-field-value-display",51);J();I(15,"td");Q(16);S(17,"arrayToHuman");J();I(18,"td");Q(19);S(20,"enumToHuman");
J();I(21,"td",52)(22,"div",56)(23,"div",57);Q(24,"Inherited From");J();I(25,"a",58);M("click",function(){t(c);var e=P(3);return v(e.trackClick("parentCustomFields"))});Q(26);J();I(27,"onedev-hovercard",null,5);C(29,aFb,3,2,"ng-container",59);J()();E(30,cFb,2,6,"b-field-state-menu",60);J()()}if(a&2){a=b.$implicit;b=L(28);var d=P(3);D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");z(2);ch(a.name);z(2);ch(a.customFieldId);z(2);ch(T(7,13,a.type));z(3);ch(a.description);z(2);ch(T(12,15,
a.required));z(3);D("customFieldValue",a.typedDefaultValue);z(2);ch(T(17,17,a.allowedValue));z(3);ch(T(20,19,a.fieldSignificance));z(6);D("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),uf);z();R(" ",d.componentIdsToNames[a.componentId]," ");z(4);F(d.editMode?30:-1)}},eFb=function(a){a&1&&Dg(0,dFb,31,21,"tr",49,Cg);a&2&&(a=P(2),Eg(a.inheritedCustomFields))},fFb=function(a){a&1&&(I(0,"tr")(1,"td",55)(2,"strong"),Q(3,"Shared fields"),J()()())},hFb=function(a){if(a&
1){var b=r();I(0,"div",52)(1,"button",64);M("click",function(){t(b);var d=P().$implicit,e=P(3);return v(gFb(e,d.customFieldId))});Q(2," Deactivate ");J()()}if(a&2){a=P().$implicit;var c=P(3);z();D("disabled",c.fieldsEnabledOnParentComponent.has(a.customFieldId))("matTooltip",c.fieldsEnabledOnParentComponent.has(a.customFieldId)?a.name+" is inherited from its parent component.\n        To deactivate this field, go to the parent component\n        that activates this shared field.":"")}},iFb=function(a,
b){a&1&&(I(0,"tr",63)(1,"td"),Q(2),J(),I(3,"td"),Q(4),J(),I(5,"td"),Q(6),S(7,"enumToHuman"),J(),I(8,"td"),Q(9),J(),I(10,"td"),Q(11),S(12,"yesNo"),J(),I(13,"td"),K(14,"b-custom-field-value-display",51),J(),I(15,"td"),Q(16),S(17,"arrayToHuman"),J(),I(18,"td"),Q(19),S(20,"enumToHuman"),J(),I(21,"td"),E(22,hFb,3,2,"div",52),J()());a&2&&(a=b.$implicit,b=P(3),z(2),ch(a.name),z(2),ch(a.customFieldId),z(2),ch(T(7,9,a.type)),z(3),ch(a.description),z(2),ch(T(12,11,a.required)),z(3),D("customFieldValue",a.typedDefaultValue),
z(2),ch(T(17,13,a.allowedValue)),z(3),ch(T(20,15,a.fieldSignificance)),z(3),F(b.editMode?22:-1))},jFb=function(a){a&1&&Dg(0,iFb,23,17,"tr",63,Cg);a&2&&(a=P(2),Eg(a.sharedFields))},kFb=function(a){a&1&&(I(0,"tfoot")(1,"tr")(2,"td",55),Q(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),I(4,"a",65),Q(5,"Field Ordering"),J(),Q(6," tab."),K(7,"br"),Q(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
J()()())},nFb=function(a){if(a&1){var b=r();I(0,"div",50)(1,"button",66);M("click",function(){t(b);var c=P(2);c.editableField={customFieldId:0,componentId:void 0,name:"",type:"TEXT",description:"",typedDefaultValue:void 0,required:!1,fieldSignificance:"MINOR",allowedValue:void 0,stateOnIssues:"INHERIT",enabledOnIssues:!1,shared:!1};c.originalEditableFieldValue=Qj(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return v()});Q(2," Add a Custom Field ");J();I(3,"button",67);
M("click",function(){t(b);var c=P(2);return v(lFb(c))});Q(4," Activate a Shared Field ");J()()}a&2&&(a=P(2),z(3),D("disabled",mFb(a).length==0))},oFb=function(a){a&1&&(I(0,"div")(1,"table",48)(2,"tr")(3,"th"),Q(4,"Name"),J(),I(5,"th"),Q(6,"ID"),J(),I(7,"th"),Q(8,"Type"),J(),I(9,"th"),Q(10,"Description"),J(),I(11,"th"),Q(12,"Required?"),J(),I(13,"th"),Q(14,"Default Value"),J(),I(15,"th"),Q(16,"Allowed Values"),J(),I(17,"th"),Q(18,"Field Significance"),J(),E(19,VEb,2,0,"th"),J(),Dg(20,YEb,22,18,"tr",
49,Cg),E(22,ZEb,3,0,"tr"),E(23,$Eb,4,0,"tr"),E(24,eFb,2,0),E(25,fFb,4,0,"tr"),E(26,jFb,2,0),E(27,kFb,9,0,"tfoot"),J(),E(28,nFb,5,1,"div",50),J());a&2&&(a=P(),z(19),F(a.editMode?19:-1),z(),Eg(a.customFields),z(2),F(a.customFields.length?-1:22),z(),F(a.inheritedCustomFields.length?23:-1),z(),F(a.inheritedCustomFields.length?24:-1),z(),F(a.sharedFields.length?25:-1),z(),F(a.sharedFields.length?26:-1),z(),F(a.customFields.length?27:-1),z(),F(a.editMode?28:-1))},pFb=function(a){if(a&1){var b=r();I(0,"button",
17);M("click",function(){t(b);var c=P().$index,d=P();return v(d.removeAtIndex.emit(c))});K(1,"mat-icon",18);J()}a&2&&(a=P().$implicit,ng("aria-label","Delete row "+a.label))},qFb=function(a,b){if(a&1){var c=r();I(0,"div",9)(1,"div",11);K(2,"mat-icon",12);I(3,"div",3)(4,"mat-form-field",13)(5,"input",14,0);M("change",function(d){var e=t(c).$index,f=P();f.options[e].label=d.target.value;f.optionsChange.emit(f.options);return v()});J()()();I(7,"div",3)(8,"mat-form-field",13)(9,"input",15,1);M("change",
function(d){var e=t(c).$index,f=P();return v(f.valueChange(d,e))});J()()();E(11,pFb,2,1,"button",16);J()()}a&2&&(a=b.$implicit,b=P(),z(4),D("appearance","outline"),z(),wg("muted",b.disabled),D("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),z(3),D("appearance","outline"),z(),wg("muted",b.disabled),D("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),z(2),F(b.disabled?-1:11))},rFb=function(a){if(a&1){var b=r();I(0,"button",
19);M("click",function(){t(b);var c=P();return v(c.addRow.emit())});Q(1," Add row ");J()}},sFb=function(a){a&1&&Hg(0)},tFb=function(a){a&1&&C(0,sFb,1,0,"ng-container",5);a&2&&(P(),a=L(7),D("ngTemplateOutlet",a))},uFb=function(a){if(a&1){var b=r();I(0,"b-numeric-config",6);gh("valueChange",function(c){t(b);var d=P();fh(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return v(c)});J()}a&2&&(a=P(),D("disabled",a.disabled),eh("value",a.numericSpecMultiplier))},vFb=function(){},wFb=function(a){if(a&
1){var b=r();I(0,"div",4)(1,"label",7);Q(2,"Aggregation Rule");J();I(3,"a",8);K(4,"mat-icon",9);J();K(5,"br");I(6,"mat-form-field",10)(7,"mat-select",11);gh("valueChange",function(c){t(b);var d=P();fh(d.selectedAggregationRule,c)||(d.selectedAggregationRule=c);return v(c)});I(8,"mat-select-trigger");Q(9);S(10,"aggregationRuleText");J();I(11,"mat-option",12)(12,"div",13);Q(13);S(14,"aggregationRuleText");J();I(15,"div",14);Q(16,"All parents and children are added to the total");J()();I(17,"mat-option",
12)(18,"div",13);Q(19);S(20,"aggregationRuleText");J();I(21,"div",14);Q(22,"Take the assigned estimate if larger than total of all immediate children");J()()()()()}a&2&&(a=P(),z(7),eh("value",a.selectedAggregationRule),D("disabled",a.disabled),z(2),R(" ",T(10,7,a.selectedAggregationRule)," "),z(2),D("value",a.aggregationRules.SUM),z(2),ch(T(14,9,a.aggregationRules.SUM)),z(4),D("value",a.aggregationRules.MAX),z(2),ch(T(20,11,a.aggregationRules.MAX)))},xFb=function(a){if(a&1){var b=r();I(0,"b-config-grid",
15);gh("optionsChange",function(c){t(b);var d=P();fh(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return v(c)});M("addRow",function(){t(b);var c=P();return v(c.addRow())})("removeAtIndex",function(c){t(b);P().enumSpecOptions.splice(c,1);return v()});J()}a&2&&(a=P(),eh("options",a.enumSpecOptions),D("disabled",a.disabled||a.inherit))},yFb=function(a){a&1&&(I(0,"div",4),K(1,"b-team-warning",5),J());a&2&&(a=P(),z(),D("warningType",a)("messageOnly",!0))},zFb=function(a,b){a&1&&E(0,yFb,2,2,"div",4);a&2&&
(a=P(),F(!a.isAdmin||b!=="MISSING"&&b!=="DELETED"?-1:0))},AFb=function(a){if(a&1){var b=r();I(0,"div",0)(1,"mat-checkbox",6);M("change",function(c){t(b);var d=P();d.inherit=!c.checked;d.model.inherit=d.inherit;!d.isTopLevel&&d.inherit&&d.parentModel&&(d.model.id=d.parentModel.id);d.teamIdChanged$.next(d.model.id);d.modelChange.emit(d.model);return v()});Q(2," Override the inherited team ");J()()}a&2&&(a=P(),z(),D("disabled",!a.isAdmin)("checked",!a.inherit))},CFb=function(a){if(a&1){var b=r();I(0,
"a",8);M("click",function(){t(b);P(2);Po("component","navigate","to-internal-team-page");return v()});K(1,"mat-icon",9);J()}a&2&&(a=P(2),D("routerLink",BFb(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},DFb=function(a){a&1&&E(0,CFb,2,2,"a",7);a&2&&(a=P(),F(BFb(a)?0:-1))},EFb=function(a){if(a&1){var b=r();I(0,"a",11);M("click",function(){t(b);var c=P(2);Po("component","linkout-moma","team",Number(c.model.id));return v()});K(1,"mat-icon",9);J()}a&2&&(a=P(2),ng("href",a.getMomaTeamLink(),
uf))},FFb=function(a){a&1&&E(0,EFb,2,1,"a",10);a&2&&(a=P(),F(BFb(a)?0:-1))},GFb=function(a){a&1&&(I(0,"th",14),Q(1," Order"),J())},HFb=function(a,b){a&1&&(I(0,"td",15),Q(1),J());a&2&&(a=b.index,z(),R(" ",a+1," "))},IFb=function(a){a&1&&(I(0,"th",14),Q(1," Name"),J())},JFb=function(a,b){a&1&&(I(0,"td",15),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.name," "))},KFb=function(a){a&1&&(I(0,"th",14),Q(1," Type"),J())},LFb=function(a,b){a&1&&(I(0,"td",15),Q(1),S(2,"toCustomFieldTypeDisplayValue"),J());a&2&&
(a=b.$implicit,z(),R(" ",T(2,1,a.type)," "))},MFb=function(a){a&1&&(I(0,"th",14),Q(1," Required"),J())},NFb=function(a,b){a&1&&(I(0,"td",15),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.required?"Yes":"No"," "))},OFb=function(a){a&1&&(I(0,"th",14),Q(1," ID"),J())},PFb=function(a,b){a&1&&(I(0,"td",15),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.customFieldId," "))},QFb=function(a){a&1&&K(0,"tr",16)},RFb=function(a){a&1&&K(0,"tr",17)},SFb=function(a){a&1&&(I(0,"div",12),Q(1," There are no custom fields defined on this component. "),
J())},VFb=function(a){if(a&1){var b=r();I(0,"div",13)(1,"div")(2,"button",18);M("click",function(){t(b);var c=P();return v(TFb(c))});Q(3," Reorder fields ");J();I(4,"button",18);M("click",function(){t(b);var c=P();return v(UFb(c))});Q(5," Reset ordering ");J()()()}a&2&&(a=P(),z(2),D("disabled",a.fields.length===0),z(2),D("disabled",a.fieldOrdering!=="CUSTOMIZED"))},WFb=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),z(),a=a.lineNumbers.length,R(" (",a+(a==1?" TODO":" TODOs"),") "))},YFb=function(a,
b){if(a&1){var c=r();I(0,"li",3)(1,"a",4);M("click",function(){t(c);var d=P(2);return v(d.trackClick("lineNumber"))});Q(2);J()()}a&2&&(a=b.$implicit,b=P(2),z(),D("href",XFb(b,a),uf),z(),ch(a))},ZFb=function(a){a&1&&(I(0,"span"),Q(1," ("),I(2,"ul",2),Dg(3,YFb,3,2,"li",3,Cg),J(),Q(5,") "),J());a&2&&(a=P(),z(3),Eg(a.lineNumbers))},$Fb=function(a){a&1&&(I(0,"a",4),Q(1," Create Component "),J());a&2&&(a=P(),D("href",a.createComponentPath,uf))},aGb=function(a){if(a&1){var b=r();I(0,"xap-dialog-layout",
10)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",11);S(3,"async");M("selectedComponentChange",function(d){t(b);var e=P();d=d!=null?d:null;var f="openFromSearch";f=f===void 0?null:f;d&&(f&&e.analytics.trackEvent("listComponents",f),e.bLocation.setUrl(Fq.editComponent.makeHref(d.componentId)));return v()});J()()()}if(a&2){a=P();z(2);var c;D("includeArchived",(c=T(3,4,a.includeArchived$))!=null?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",
!1)}},cGb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"b-slide-toggle",12);S(2,"async");M("modelChange",function(d){t(b);var e=P();e.includeArchived$.next(d);d=e.componentTree;d=d.focusedController?d.focusedController.selectedId?d.focusedController.selectedId:-1:d.rootController.selectedId?d.rootController.selectedId:-1;d>0&&bGb(e,d,Ge(e.topLevelComponents$));return v()});J()()}if(a&2){a=P();z();var c;D("model",(c=T(2,2,a.includeArchived$))!=null?c:!1)("tooltip",a.includeArchived?"Show archived components.":
"Hide archived components.")}},dGb=function(a){a&1&&(I(0,"div",8),K(1,"b-spinner",13),J())},eGb=function(a){a&1&&(I(0,"p",1),Q(1),J());a&2&&(a=P(),z(),ch(a.packageMentionSet.packageName))},fGb=function(a,b){a&1&&(I(0,"li"),K(1,"b-file-mention",2),J());a&2&&(a=b.$implicit,b=P(),z(),D("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},gGb=function(a){a&1&&(I(0,"div",4),Q(1),J());a&2&&(a=P(),z(),R(" Signed in as ",
a.activeSession.getUserEmail()," "))},hGb=function(a){a&1&&(I(0,"span",3),Q(1," Select at least one tracker "),J())},iGb=function(a,b){if(a&1){var c=r();I(0,"div",5)(1,"mat-checkbox",6);M("change",function(d){var e=t(c).$implicit,f=P();return v(f.trackerCheckboxValues[e.trackerId]=d.checked)});Q(2);J()()}a&2&&(a=b.$implicit,b=P(),z(),D("checked",b.trackerCheckboxValues[a.trackerId]||!1),z(),R(" ",a.name," "))},jGb=function(a){a&1&&(K(0,"b-tracker-search",1),S(1,"async"));a&2&&(a=P(),D("currentTrackerId",
a.currentTracker.trackerId)("availableTrackers",T(1,2,a.availableTrackers$)))},kGb=function(a){a&1&&(I(0,"div",3),K(1,"b-spinner"),I(2,"span"),Q(3,"Initializing query builder..."),J()())},lGb=function(a){a&1&&(I(0,"div",6),K(1,"mat-icon",7),I(2,"p"),Q(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),J()())},mGb=function(a){a&1&&(I(0,"div"),Q(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),
J())},nGb=function(a){a&1&&(I(0,"div",4),E(1,lGb,4,0,"div",6),E(2,mGb,2,0,"div"),J());a&2&&(a=P(),z(),F((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"?1:-1),z(),F((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?2:-1))},oGb=function(a){a&1&&(I(0,"div",4),Q(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),J())},pGb=function(a){a&1&&K(0,"b-tracker-account-menu-hack",
5);a&2&&(a=P(),D("trackerInternalBaseUrl",a.currentTracker.internalBaseUrl)("trackerExternalBaseUrl",a.currentTracker.externalBaseUrl))},qGb=function(a){a&1&&(I(0,"span"),Q(1),K(2,"span",13),J());a&2&&(a=P(2).$implicit,z(),R(" ",a.diff.oldValue," "))},rGb=function(a){a&1&&(I(0,"span")(1,"label"),Q(2),J(),E(3,qGb,3,1,"span"),Q(4),J());a&2&&(a=P().$implicit,z(2),R("",a.fieldName,":"),z(),F(a.diff.oldValue?3:-1),z(),R(" ",a.diff.newValue," "))},sGb=function(a,b){a&1&&(I(0,"div")(1,"label"),Q(2),J(),
Q(3),J());a&2&&(a=b.$implicit,b=P(3).$implicit,z(2),R("-",b.fieldName,":"),z(),R(" ",a," "))},tGb=function(a){a&1&&Dg(0,sGb,4,2,"div",null,Cg);a&2&&(a=P(2).$implicit,Eg(a.diff.removed))},uGb=function(a,b){a&1&&(I(0,"div")(1,"label"),Q(2),J(),Q(3),J());a&2&&(a=b.$implicit,b=P(3).$implicit,z(2),R("+",b.fieldName,":"),z(),R(" ",a," "))},vGb=function(a){a&1&&Dg(0,uGb,4,2,"div",null,Cg);a&2&&(a=P(2).$implicit,Eg(a.diff.added))},wGb=function(a){a&1&&(I(0,"div"),E(1,tGb,2,0),E(2,vGb,2,0),J());a&2&&(a=P().$implicit,
z(),F(a.diff.removed?1:-1),z(),F(a.diff.added?2:-1))},xGb=function(a,b){a&1&&(I(0,"div",12),E(1,rGb,5,3,"span"),E(2,wGb,3,2,"div"),J());a&2&&(a=b.$implicit,b=P(2),z(),F(a.diffType==b.DiffType.SINGLE_VALUE?1:-1),z(),F(a.diffType==b.DiffType.COLLECTION?2:-1))},yGb=function(a,b){a&1&&(I(0,"li",2)(1,"div",5),K(2,"b-user-image",6),J(),I(3,"div",7)(4,"h4"),K(5,"b-user-display-name",8),I(6,"span",9),K(7,"b-formatted-date-time",10),J()(),I(8,"div",11),Dg(9,xGb,3,2,"div",12,Cg),J()()());a&2&&(a=b.$implicit,
b=P(),z(2),D("email",b.userToDisplay(a.author)),z(3),D("email",b.userToDisplay(a.author)),z(2),D("timestamp",a.timestamp),z(2),Eg(a.diffs))},zGb=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},AGb=function(){var a=window.navigator.platform,b=window.navigator.userAgent;if(["Macintosh","MacIntel","MacPPC","Mac68K"].includes(a))return"Mac";if(["iPhone","iPad","iPod"].includes(a))return"iOS";if(["Win32","Win64","Windows","WinCE"].includes(a))return"Windows";if(/Android/.test(b))return"Android";
if(/Linux/.test(a))return"Linux";if(/\bCrOS\b/.test(b))return"ChromeOS"},BGb=function(a,b){a&1&&(I(0,"mat-option",2),Q(1),K(2,"br"),I(3,"span",3),Q(4),J()());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",a.title),z(3),ch(a.description))},DGb=function(a,b){a&1&&Hg(0,4);a&2&&(a=b.$implicit,P(),b=L(3),D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,CGb,a)))},EGb=function(a){a&1&&Hg(0,4);if(a&2){a=P().question;P();var b=L(5);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,CGb,a))}},FGb=function(a){a&
1&&Hg(0,4);if(a&2){a=P().question;P();var b=L(7);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,CGb,a))}},GGb=function(a){a&1&&Hg(0,4);if(a&2){a=P().question;P();var b=L(9);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,CGb,a))}},HGb=function(a,b){a&1&&E(0,EGb,1,4,"ng-container",4)(1,FGb,1,4,"ng-container",4)(2,GGb,1,4,"ng-container",4);if(a&2){var c;a=b.question;b=P();F((c=a.type)===b.CustomQuestionType.INPUT?0:c===b.CustomQuestionType.TEXT?1:c===b.CustomQuestionType.SELECT?2:-1)}},
JGb=function(a,b){if(a&1){var c=r();K(0,"h4",5);I(1,"mat-form-field",6)(2,"input",7);M("ngModelChange",function(d){var e=t(c).question,f=P();e.response=d;return v(IGb(f))});J()()}a&2&&(a=b.question,D("innerHtml",a.question,tf),z(2),D("ngModel",a.response),ng("aria-label",a.question))},KGb=function(a,b){if(a&1){var c=r();K(0,"h4",5);I(1,"mat-form-field",8)(2,"textarea",7);M("ngModelChange",function(d){var e=t(c).question,f=P();e.response=d;return v(IGb(f))});Q(3,"    ");J()()}a&2&&(a=b.question,D("innerHtml",
a.question,tf),z(2),D("ngModel",a.response),ng("aria-label",a.question))},MGb=function(a,b){a&1&&(I(0,"mat-option",10),Q(1),J());a&2&&(a=b.$implicit,P(2),D("value",a),z(),R(" ",LGb(a)?a.text:a," "))},NGb=function(a){a&1&&Hg(0,4);if(a&2){a=P().question;P();var b=L(3);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,CGb,a.response.child))}},OGb=function(a,b){if(a&1){var c=r();K(0,"h4",5);I(1,"mat-form-field",6)(2,"mat-select",9);M("valueChange",function(d){var e=t(c).question,f=P();e.response=
d;return v(IGb(f))});Dg(3,MGb,2,2,"mat-option",10,Cg);J()();E(5,NGb,1,4,"ng-container",4)}a&2&&(a=b.question,P(),D("innerHtml",a.question,tf),z(),ng("aria-label",a.question),z(),D("value",a.response),z(),Eg(a.options),z(2),F(LGb(a.response)?5:-1))},PGb=function(a){a&1&&Og(0)},QGb=function(a){a&1&&Hg(0,2);a&2&&(a=P(),D("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",a._getIconContext()))},RGb=function(a){a&1&&(I(0,"span",7),Q(1),J());a&2&&(a=P(2),z(),ch(a._getDefaultTextForState(a.state)))},
SGb=function(a){a&1&&(I(0,"span",8),Q(1),J());a&2&&(a=P(3),z(),ch(a._intl.completedLabel))},TGb=function(a){a&1&&(I(0,"span",8),Q(1),J());a&2&&(a=P(3),z(),ch(a._intl.editableLabel))},UGb=function(a){a&1&&(E(0,SGb,2,1,"span",8)(1,TGb,2,1,"span",8),I(2,"mat-icon",7),Q(3),J());a&2&&(a=P(2),F(a.state==="done"?0:a.state==="edit"?1:-1),z(3),ch(a._getDefaultTextForState(a.state)))},VGb=function(a){a&1&&E(0,RGb,2,1,"span",7)(1,UGb,4,2);a&2&&(a=P(),F(a.state==="number"?0:1))},WGb=function(a,b){a&1&&(I(0,"div",
4),Hg(1,9),J());a&2&&(z(),D("ngTemplateOutlet",b.template))},XGb=function(a){a&1&&(I(0,"div",4),Q(1),J());a&2&&(a=P(),z(),ch(a.label))},YGb=function(a){a&1&&(I(0,"div",5),Q(1),J());a&2&&(a=P(),z(),ch(a._intl.optionalLabel))},ZGb=function(a){a&1&&(I(0,"div",6),Q(1),J());a&2&&(a=P(),z(),ch(a.errorMessage))},$Gb=function(){},aHb=function(a){a&1&&(Og(0),C(1,$Gb,0,0,"ng-template",0));a&2&&(a=P(),z(),D("cdkPortalOutlet",a._portal))},bHb=function(a){a&1&&Og(0)},cHb=function(a){a&1&&K(0,"div",7)},eHb=function(a,
b){a&1&&(Hg(0,6),E(1,cHb,1,0,"div",7));if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;P(2);var e=L(4);D("ngTemplateOutlet",e)("ngTemplateOutletContext",kh(3,dHb,a,c));z();F(d!==b-1?1:-1)}},fHb=function(a,b){a&1&&(I(0,"div",8,1),Hg(2,9),J());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);xg("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));D("id",c._getStepContentId(b));ng("aria-labelledby",c._getStepLabelId(b))("inert",c.selectedIndex===b?null:"");z(2);D("ngTemplateOutlet",a.content)}},
gHb=function(a){a&1&&(I(0,"div",2)(1,"div",3),Dg(2,eHb,2,6,null,null,Cg),J(),I(4,"div",4),Dg(5,fHb,3,6,"div",5,Cg),J()());a&2&&(a=P(),z(2),Eg(a.steps),z(3),Eg(a.steps))},hHb=function(a,b){a&1&&(I(0,"div",10),Hg(1,6),I(2,"div",11,1)(4,"div",12)(5,"div",13),Hg(6,9),J()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;var e=P(2),f=L(4);z();D("ngTemplateOutlet",f)("ngTemplateOutletContext",kh(10,dHb,a,c));z();wg("mat-stepper-vertical-line",d!==b-1)("mat-vertical-content-container-active",
e.selectedIndex===c);ng("inert",e.selectedIndex===c?null:"");z(2);D("id",e._getStepContentId(c));ng("aria-labelledby",e._getStepLabelId(c));z(2);D("ngTemplateOutlet",a.content)}},iHb=function(a){a&1&&Dg(0,hHb,7,13,"div",10,Cg);a&2&&(a=P(),Eg(a.steps))},jHb=function(a,b){if(a&1){var c=r();I(0,"mat-step-header",14);M("click",function(){var e=t(c).step;return v(e.select())})("keydown",function(e){t(c);var f=P();return v(f._onKeydown(e))});J()}if(a&2){a=b.step;b=b.i;var d=P();wg("mat-horizontal-stepper-header",
d.orientation==="horizontal")("mat-vertical-stepper-header",d.orientation==="vertical");D("tabIndex",d._getFocusIndex()===b?0:-1)("id",d._getStepLabelId(b))("index",b)("state",d._getIndicatorType(b,a.state))("label",a.stepLabel||a.label)("selected",d.selectedIndex===b)("active",d._stepIsNavigable(b,a))("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",d._iconOverrides)("disableRipple",d.disableRipple||!d._stepIsNavigable(b,a))("color",a.color||d.color);ng("aria-posinset",b+1)("aria-setsize",
d.steps.length)("aria-controls",d._getStepContentId(b))("aria-selected",d.selectedIndex==b)("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",d._stepIsNavigable(b,a)?null:!0)}},kHb=function(a){a&1&&(I(0,"li"),Q(1,"I have read "),I(2,"a",51),Q(3,"Chrome Security FAQ"),J(),Q(4,"."),J(),I(5,"li"),Q(6,"I have read "),I(7,"a",52),Q(8,"Reporting Security Bugs"),J(),Q(9,"."),J(),I(10,"li"),Q(11,"I understand reports may be eligible for reward payments under the "),
I(12,"a",53),Q(13,"Chrome VRP"),J(),Q(14,"."),J(),I(15,"li"),Q(16,"I understand issues are normally publicized once a fix has been widely deployed."),J())},mHb=function(a){if(a&1){var b=r();I(0,"h4",5);Q(1,"Which of the following best describes the issue that you are reporting?");J();I(2,"wizard-category-select",46);gh("categoryChange",function(c){t(b);var d=P();fh(d.model.category,c)||(d.model.category=c);return v(c)});J();I(3,"mat-card",47)(4,"mat-card-header");Q(5," Ensure quality of issue reports: ");
J();I(6,"mat-card-content")(7,"mat-checkbox",48);gh("ngModelChange",function(c){t(b);var d=P();fh(d.ackIssueQuality,c)||(d.ackIssueQuality=c);return v(c)});Q(8," By checking this box, I'm acknowledging that: ");I(9,"ul")(10,"li");Q(11,"I have searched for ");I(12,"a",49);Q(13,"existing issues");J();Q(14," that already report this problem.");J();E(15,kHb,17,0);J()()()();I(16,"div",30)(17,"button",33);Q(18," Next ");K(19,"mat-icon",50);J()()}a&2&&(a=P(),z(2),D("persona",a.model.persona),eh("category",
a.model.category),z(5),eh("ngModel",a.ackIssueQuality),z(5),D("href",a.existingIssuesLink,uf),z(3),F(a.model.persona===a.Persona.VULN_REPORTER?15:-1),z(2),D("disabled",!lHb(a,0)))},oHb=function(a){a&1&&(I(0,"div")(1,"h3"),Q(2,"Prefer to file an issue manually?"),J(),I(3,"p"),Q(4," It's usually best to work through this short wizard so that your issue is given the labels needed for the right team to see it. Otherwise it might take longer for your issue to be triaged and resolved. "),J(),I(5,"p"),Q(6,
" However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),I(7,"a",49),Q(8,"form"),J(),Q(9,". "),J()());a&2&&(a=P(),z(7),D("href",a.paths.createIssue(ih(1,nHb)),uf))},pHb=function(a){a&1&&(I(0,"mat-error"),Q(1," Summary is required "),J())},qHb=function(a){a&1&&(I(0,"mat-error"),Q(1," Steps to reproduce are required "),J())},rHb=function(a){a&1&&(I(0,"mat-error"),Q(1," Issue description is required "),J())},sHb=function(a){if(a&1){var b=
r();I(0,"wizard-custom-questions",54);M("responses",function(c){t(b);var d=P();return v(d.model.customQuestionResponses=c)});J()}a&2&&(a=P(),D("category",a.model.category.value))},tHb=function(a){if(a&1){var b=r();I(0,"div",41)(1,"b-recaptcha",55);M("onUpdate",function(c){t(b);var d=P();return v(d.recaptchaResponse=c)});J()()}},uHb=function(){},vHb=function(){},wHb=function(){},xHb=function(a,b){var c=[{customFieldId:b.version,textValue:a.version}];a=a.os.filter(function(d){return d!=="Unknown"});
a.length>0&&c.push({customFieldId:b.os,repeatedEnumValue:{values:a}});return c},zHb=function(a){return a.length?"# Custom Questions\n"+yHb(a).map(function(b){var c;return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},yHb=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,LGb(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,p(yHb([c.response.child])))):b.push(c);return b},AHb=function(a){a&1&&
(I(0,"a",8),Q(1," Create Component "),J())},BHb=function(a){a&1&&(I(0,"p",16),Q(1," None found. "),I(2,"a",18),Q(3,"Learn More"),J()())},CHb=function(a){a&1&&(Fg(0),K(1,"b-component-path-card",28,1),Gg());if(a&2){a=L(2);var b=P().$implicit;z();D("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},DHb=function(a,b){a&1&&(I(0,"li")(1,"a",19)(2,"div",20)(3,"span",21),Q(4),K(5,"b-component-access-level-indicator",22)(6,"b-tracker-chip-smart",23),J(),I(7,"p",24),Q(8),J()(),I(9,"div",25)(10,
"a",26),Q(11," Edit "),J(),I(12,"a",26),Q(13," Create Issue "),J()()(),I(14,"onedev-hovercard",null,0),C(16,CHb,3,2,"ng-container",27),J()());if(a&2){a=b.$implicit;b=L(15);var c=P(2);z();D("routerLinkObj",c.viewIssues(a.componentId));z();D("onedevHovercardTrigger",b);z(2);R(" ",a.name||a.componentId," ");z();D("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);z();D("trackerId",a.trackerId)("showHovercard",!1);z(2);ch(a.description);z(2);D("routerLinkObj",c.componentSettings(a.componentId));
z(2);D("routerLinkObj",c.createIssue(a.componentId))}},EHb=function(a,b){a&1&&(E(0,BHb,4,0,"p",16),I(1,"ol",17),Dg(2,DHb,17,10,"li",null,Cg),J());a&2&&(F(b.length===0?0:-1),z(2),Eg(b))},GHb=function(a){a&1&&(I(0,"a",23),Q(1," Learn more "),J());a&2&&(P(),D("href",FHb(),uf))},HHb=function(a){a&1&&(Q(0),S(1,"async"));a&2&&(a=P(2),R(" ",T(1,1,a.suggestedTitle$)," "))},IHb=function(a){a&1&&K(0,"b-spinner")},JHb=function(a,b){if(a&1){var c=r();I(0,"button",17);M("click",function(){var d=t(c).$implicit;
P();var e=L(19),f=P();f.llmSuggestTitleService.generatedTitle.next(null);f.analytics.trackEvent("llm","reject","title-"+String(d));Mq(f.butterBar,"Thanks for the feedback!",3E3);var h;(h=e.trigger)==null||h.close();return v()});I(1,"span");Q(2);J()()}a&2&&(a=b.$implicit,b=P(2),z(2),ch(b.REJECT_REASON_TO_DISPLAY.get(a)))},LHb=function(a){if(a&1){var b=r();I(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4);Q(4,"Suggested title");J();I(5,"div",5)(6,"button",6);M("click",function(){t(b);P().llmSuggestTitleService.suggestTitleRequested.next();
return v()});K(7,"mat-icon",7);J();I(8,"button",8);M("click",function(){t(b);var c=P();return v(c.close())});K(9,"mat-icon",9);J()()();I(10,"div",10);E(11,HHb,2,3);S(12,"async");Ag(13,IHb,1,0,"b-spinner");J();I(14,"div",11)(15,"button",12);S(16,"async");M("click",function(){t(b);var c=P();return v(KHb(c))});Q(17," Accept ");J();I(18,"split-button",13,0);S(20,"async");I(21,"button",14);S(22,"async");M("click",function(){t(b);var c=P();c.llmSuggestTitleService.generatedTitle.next(null);c.analytics.trackEvent("llm",
"reject","title");return v()});Q(23," Reject ");J();I(24,"div",15);Dg(25,JHb,3,1,"button",16,Cg);J()()()()()}a&2&&(a=P(),z(11),F(T(12,5,a.isGeneratingTitle$)?13:11),z(4),D("disabled",T(16,7,a.isGeneratingTitle$)),z(3),D("size","small")("disabled",!!T(20,9,a.isGeneratingTitle$)),z(3),D("disabled",T(22,11,a.isGeneratingTitle$)),z(4),Eg(a.suggestedTitleRejectionReasons))},MHb=function(a){a&1&&(I(0,"a",3),K(1,"mat-icon",5),J())},NHb=function(a){a&1&&K(0,"b-spinner")},OHb=function(a,b){a&1&&K(0,"b-issues-table",
4);a&2&&(a=P(),D("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions))},PHb=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},QHb=function(a){a&1&&Hg(0)},SHb=function(a){a&1&&(Fg(0),C(1,QHb,1,0,"ng-container",9),Gg());a&2&&(a=P(),z(),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",jh(2,RHb,a.value)))},THb=function(a){a&1&&Q(0);a&2&&(a=P(),ch(a.value||"--"))},UHb=function(a){a&1&&(Vd(),I(0,"svg",10),K(1,"path",11),J());
a&2&&(a=P(),wg("centered",a.centerEditIcon))},VHb=function(a){a&1&&K(0,"textarea",15);a&2&&(a=P(3),D("formControl",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},WHb=function(a){a&1&&K(0,"input",16);a&2&&(a=P(3),D("formControl",a.editingValue))},XHb=function(a){a&1&&(Fg(0),I(1,"div",13),C(2,VHb,1,2,"textarea",14)(3,WHb,1,1,"ng-template",null,4,nh),J(),Gg());if(a&2){a=L(4);var b=P(2);z(2);D("ngIf",b.allowMultipleLines)("ngIfElse",a)}},YHb=function(a){a&1&&Hg(0)},$Hb=function(a){a&1&&(Fg(0),
C(1,YHb,1,0,"ng-container",9),Gg());a&2&&(a=P(2),z(),D("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",jh(2,ZHb,a.editingValue)))},aIb=function(a){a&1&&C(0,XHb,5,2,"ng-container",12)(1,$Hb,2,4,"ng-container",12);a&2&&(a=P(),D("ngIf",!a.editorTemplate),z(),D("ngIf",a.editorTemplate))},bIb=function(a){if(a&1){var b=r();I(0,"b-hotlist-picker",28);M("onApply",function(c){t(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onLoad",function(c){t(b);var d=P();return v(d.loadHotlist(c))})("onCreate",
function(c){t(b);var d=P();return v(d.createHotlist(c))});J()}a&2&&(a=P(),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},cIb=function(a,b){a&1&&(I(0,"a",13),Q(1,"View recent issues"),J());a&2&&(a=P(),D("routerLinkObj",a.recentIssuesInComponent(b)))},hIb=function(a){a&1&&(I(0,"div",17),K(1,"b-icon",29),I(2,"span"),Q(3),J(),I(4,"a",30),Q(5,"View access settings"),J()());a&2&&(a=P(),D("ngClass",kh(5,dIb,eIb(a),fIb(a))),z(),D("name","alert")("size","small"),z(2),R("",gIb(a),"\u00a0"),
z(),D("href",a.selectedComponent?Fq.editComponentAccess.makeHref(a.selectedComponent.componentId):"",uf))},kIb=function(a){a&1&&(I(0,"div",31),Q(1),J());a&2&&(a=P(2),z(),R(" Error: The following required field(s) have not been filled: ",iIb(a).concat(jIb(a)).join(", ")," "))},lIb=function(a){a&1&&(I(0,"li"),Q(1),J());if(a&2){a=P(3);z();var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');ch(b?b.join(" & ")+
" must be"+((b.length<=1?" a":"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},mIb=function(a){a&1&&(I(0,"li"),Q(1),J());a&2&&(a=P(3),z(),R(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},nIb=function(a){a&1&&(I(0,"div",31),Q(1," Error: The following field(s) have invalid values: "),I(2,"ul"),E(3,lIb,2,1,"li"),E(4,mIb,2,1,"li"),J()());a&2&&(a=P(2),z(3),F(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid?-1:3),z(),F(a.isCollaboratorsValid?
-1:4))},oIb=function(a){a&1&&(I(0,"div",31),Q(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),J())},qIb=function(a){a&1&&(I(0,"div",18),E(1,kIb,2,1,"div",31),E(2,nIb,5,2,"div",31),E(3,oIb,2,0,"div",31),J());a&2&&(a=P(),z(),F(iIb(a).length!==0||jIb(a).length!==0?1:-1),z(),F(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),z(),F(pIb(a.comment)?3:-1))},rIb=function(a,b){if(a&1){var c=r();I(0,"div",
32)(1,"b-hotlist-chip",33);M("removeHotlist",function(){var d=t(c).$implicit,e=P(2);return v(e.removeHotlist(d.hotlistId))});J()()}a&2&&(a=b.$implicit,z(),D("hotlist",a))},sIb=function(a){a&1&&(I(0,"div",19),Dg(1,rIb,2,1,"div",32,Cg),J());a&2&&(a=P(),z(),Eg(a.selectedHotlists))},tIb=function(a,b){if(a&1){var c=r();I(0,"button",39);M("click",function(){var d=t(c).$implicit;P(2).selectedTemplate=d;return v()});Q(1);J()}a&2&&(a=b.$implicit,z(),ch(a.name))},uIb=function(a){if(a&1){var b=r();I(0,"button",
39);M("click",function(){t(b);var c=P(2);c.selectedTemplate=c.availableExistingIssueTemplate;return v()});Q(1);J()}a&2&&(a=P(2),z(),ch(a.availableExistingIssueTemplate.name))},vIb=function(a){a&1&&(I(0,"div",26)(1,"div",22)(2,"label",34),Q(3,"Template"),J()(),I(4,"button",35),Q(5),K(6,"mat-icon",36),J(),I(7,"mat-menu",37,2),Dg(9,tIb,2,1,"button",38,Cg),E(11,uIb,2,1,"button",38),J()());if(a&2){a=L(8);var b=P();z(4);D("matMenuTriggerFor",a);z();var c;R("",(c=b.selectedTemplate==null?null:b.selectedTemplate.name)!=
null?c:""," ");z(2);D("overlapTrigger",!0);z(2);Eg(b.availablePredefinedTemplates);z(2);F(b.availableExistingIssueTemplate?11:-1)}},wIb=function(a){a&1&&(I(0,"div",27)(1,"div",31),Q(2," You do not have permission to create issues in this component. "),J()())},AIb=function(a){if(a&1){var b=r();I(0,"div",41)(1,"b-title-suggestion-picker",59);M("suggestionSelected",function(c){t(b);var d=P(2);d.setTitle(c.title);c.description&&(d.comment=new ss(d.templateComment+"\n\n^^^\nBelow is the suggested description. Please review and edit as needed.\n^^^\n"+
c.description),d.shouldHighlightDescription=!0);var e;!c.assignee||d.assigneeText&&d.assigneeText!==((e=d.lastSelectedSuggestedIssueMetadata)==null?void 0:e.assignee)||(d.assigneeText=c.assignee,d.shouldHighlightAssignee=!0);var f;!c.reporter||d.reporterText&&d.reporterText!==((f=d.lastSelectedSuggestedIssueMetadata)==null?void 0:f.reporter)||(d.reporterText=c.reporter,d.shouldHighlightReporter=!0);c.ccs&&(xIb(d.ccsText)||Pj(d.ccsText,c.ccs))&&(d.ccsText=[].concat(p(c.ccs)),d.shouldHighlightCcs=!0);
c.collaborators&&(xIb(d.collaboratorsText)||Pj(d.collaboratorsText,c.collaborators))&&(d.collaboratorsText=[].concat(p(c.collaborators)),d.shouldHighlightCollaborators=!0);d.lastSelectedSuggestedIssueMetadata=c;d.countOfClickedSuggestions++;yIb(d);return v(zIb(d))})("titleChanged",function(c){t(b);var d=P(2);return v(d.setTitle(c))})("titleBlur",function(){t(b);var c=P(2);return v(zIb(c))});J()()}a&2&&(a=P(2),z(),D("initialTitle",a.issue.title))},BIb=function(a){a&1&&K(0,"llm-suggest-title-button",
61);a&2&&(a=P(3),D("description",a.comment))},CIb=function(a){if(a&1){var b=r();I(0,"div",42)(1,"input",60);S(2,"async");M("ngModelChange",function(d){t(b);var e=P(2);return v(e.setTitle(d))})("blur",function(){t(b);var d=P(2);return v(zIb(d))});J();E(3,BIb,1,1,"llm-suggest-title-button",61);J()}if(a&2){a=P(2);z();var c;wg("invalid",(c=T(2,5,a.titleBannedWordsChecker.showWarning$))!=null?c:!1);D("ngModel",a.issue.title)("bFocus",a.newIssueStarted);z(2);F(a.enableSuggestTitle?3:-1)}},DIb=function(a){if(a&
1){var b=r();I(0,"llm-suggest-title-preview",62);M("suggestionAccepted",function(c){t(b);var d=P(2);d.setTitle(c);return v(zIb(d))});J()}},EIb=function(a){a&1&&(I(0,"p",43),Q(1),I(2,"a",63),Q(3," Learn more "),J()());a&2&&(a=P(2),z(),R(" Your title contains restricted words: ",Sq(a.titleBannedWordsChecker),". Review your title before posting. "))},FIb=function(a,b){if(a&1){var c=r();I(0,"button",66);M("click",function(){var d=t(c).$implicit,e=P(3);return v(e.setPriority(d.value))});Q(1);J()}a&2&&
(a=b.$implicit,z(),ch(a.displayText))},GIb=function(a){if(a&1){var b=r();I(0,"div",26)(1,"div",22)(2,"label",64);Q(3,"Priority");J()();I(4,"button",65);Q(5);K(6,"mat-icon",36);J();I(7,"mat-menu",37,3)(9,"button",66);M("click",function(){t(b);var d=P(2);return v(d.setPriority())});Q(10,"--");J();Dg(11,FIb,2,1,"button",67,Cg);J()()}if(a&2){a=L(8);var c=P(2);z(4);D("matMenuTriggerFor",a);ng("aria-label","Priority, required"+(c.issue.priority?", "+c.issue.priority:""));z();R("",c.issue.priority?c.issue.priority:
"--"," ");z(2);D("overlapTrigger",!0);z(4);Eg(c.priorityChoices)}},HIb=function(a,b){if(a&1){var c=r();I(0,"button",70);M("click",function(){var d=t(c).$implicit,e=P(3);return v(e.setIssueType(d.value))});Q(1);J()}a&2&&(a=b.$implicit,D("matTooltip",a.altText||""),z(),ch(a.displayText))},IIb=function(a){if(a&1){var b=r();I(0,"div",26)(1,"div",22)(2,"label",68);Q(3,"Type");J()();I(4,"button",65);S(5,"enumToHuman");Q(6);S(7,"enumToHuman");K(8,"mat-icon",36);J();I(9,"mat-menu",37,4)(11,"button",66);M("click",
function(){t(b);var d=P(2);return v(d.setIssueType())});Q(12,"--");J();Dg(13,HIb,2,2,"button",69,Cg);J()()}if(a&2){a=L(10);var c=P(2);z(4);D("matMenuTriggerFor",a);ng("aria-label","Type, required"+(c.issue.type?T(5,4,", "+c.issue.type):""));z(2);R("",T(7,6,c.issue.type||"--")," ");z(3);D("overlapTrigger",!0);z(4);Eg(c.issueTypeChoices)}},JIb=function(a){if(a&1){var b=r();I(0,"div",22)(1,"label",71);Q(2,"Assignee");J()();I(3,"div",72)(4,"b-peoplekit-searchbar",73);M("singleUserSelectionChange",function(c){t(b);
var d=P(3);return v(d.handleAutocompleteSelection(c,"assignee"))});J()()}a&2&&(a=P(3),z(4),wg("highlight-input",a.shouldHighlightAssignee),D("email",a.assigneeText)("singleUserMode",!0))},KIb=function(a){if(a&1){var b=r();I(0,"div",22)(1,"label",74);Q(2,"Assignee");J()();I(3,"div",72)(4,"input",75);gh("ngModelChange",function(c){t(b);var d=P(3);fh(d.assigneeText,c)||(d.assigneeText=c);return v(c)});J()()}a&2&&(a=P(3),z(4),wg("highlight-input",a.shouldHighlightAssignee),eh("ngModel",a.assigneeText),
D("bContactAutocomplete","SINGLE"))},LIb=function(a){a&1&&(I(0,"div",44),E(1,JIb,5,4)(2,KIb,5,4),J());a&2&&(a=P(2),z(),F(a.enablePeoplekitAc?1:2))},MIb=function(a){a&1&&(I(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),J())},OIb=function(a){if(a&1){var b=r();I(0,"div",76)(1,"div",22)(2,"label",77);Q(3,"Collaborators");J();K(4,"mat-icon",78);J();I(5,"div",72)(6,"b-peoplekit-searchbar",79,5);M("selectionChange",function(c){t(b);var d=P(3);return v(NIb(d,c,"collaborators"))});J()();
E(8,MIb,2,0,"mat-error");J()}a&2&&(a=P(3),z(6),wg("invalid",!a.isCollaboratorsValid)("highlight-input",a.shouldHighlightCollaborators),D("ariaLabel","Addition to Collaborators")("emails",a.collaboratorsText),z(2),F(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},PIb=function(a){a&1&&(I(0,"mat-error"),Q(1," Collaborators only accepts individual users. "),J())},RIb=function(a){if(a&1){var b=r();I(0,"div",76)(1,"div",22)(2,"label",80);Q(3,"Collaborators");J();K(4,"mat-icon",78);J();I(5,"div",72)(6,
"input",81);M("ngModelChange",function(c){t(b);var d=P(3);return v(d.collaboratorsText=QIb(c))});J()();E(7,PIb,2,0,"mat-error");J()}a&2&&(a=P(3),z(6),wg("invalid",!a.isCollaboratorsValid)("highlight-input",a.shouldHighlightCollaborators),D("ngModel",ts(a.collaboratorsText))("bContactAutocomplete","MULTI"),z(),F(!a.isCollaboratorsValid&&a.submitRequested?7:-1))},SIb=function(a){a&1&&E(0,OIb,9,7,"div",76)(1,RIb,8,7,"div",76);a&2&&(a=P(2),F(a.enablePeoplekitAc?0:1))},TIb=function(a){if(a&1){var b=r();
I(0,"div",82)(1,"div",22)(2,"label",83);Q(3,"CC");J()();I(4,"div",72)(5,"b-peoplekit-searchbar",84,5);M("selectionChange",function(c){t(b);var d=P(3);return v(NIb(d,c,"ccs"))});J()()()}a&2&&(a=P(3),z(5),wg("highlight-input",a.shouldHighlightCcs),D("ariaLabel","Addition to CCs")("emails",a.ccsText))},UIb=function(a){if(a&1){var b=r();I(0,"div",82)(1,"div",22)(2,"label",85);Q(3,"CC");J()();I(4,"div",72)(5,"input",86);M("ngModelChange",function(c){t(b);var d=P(3);return v(d.ccsText=QIb(c))});J()()()}a&
2&&(a=P(3),z(5),wg("highlight-input",a.shouldHighlightCcs),D("ngModel",ts(a.ccsText))("bContactAutocomplete","MULTI"))},VIb=function(a){a&1&&E(0,TIb,7,4,"div",82)(1,UIb,6,4,"div",82);a&2&&(a=P(2),F(a.enablePeoplekitAc?0:1))},WIb=function(a){a&1&&(I(0,"p",48),Q(1),I(2,"a",63),Q(3," Learn more "),J()());a&2&&(a=P(2),z(),R(" Your description contains restricted words: ",Sq(a.descriptionBannedWordsChecker),". Review your description before posting. "))},XIb=function(a){a&1&&Hg(0)},YIb=function(a){a&1&&
(I(0,"div",21)(1,"div",22)(2,"label",89),Q(3," Collaborator Groups "),J(),K(4,"mat-icon",90),J(),C(5,XIb,1,0,"ng-container",91),J());if(a&2){a=P(3);var b=L(30);z(4);Qg("matTooltip",a.COLLABORATOR_GROUPS_TOOLTIP);z();D("ngTemplateOutlet",b)}},ZIb=function(a){if(a&1){var b=r();I(0,"div",50)(1,"div",21)(2,"div",22)(3,"label",87);Q(4," Issue access level ");J()();I(5,"b-issue-access-limits-dropdown",88);M("updatedAccessLimitLevel",function(c){t(b);var d=P(2);return v(d.onAccessLimitLevelSelected(c))});
J()();E(6,YIb,6,2,"div",21);J()}a&2&&(a=P(2),z(5),D("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",a.selectedAccessLimitLevel),z(),F(a.trackerCollaboratorGroups.length>0?6:-1))},$Ib=function(a,b){if(a&1){var c=r();I(0,"button",66);M("click",function(){var d=t(c).$implicit,e=P(3);return v(e.issue.severity=e.toIssueSeverity(d.value))});Q(1);J()}a&2&&(a=b.$implicit,z(),ch(a.displayText))},aJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,
"label",116);Q(3," Reporter ");J()();I(4,"b-peoplekit-searchbar",117);M("singleUserSelectionChange",function(c){t(b);var d=P(3);return v(d.handleAutocompleteSelection(c,"reporter"))});J()()}a&2&&(a=P(3),z(4),wg("highlight-input",a.shouldHighlightReporter),D("email",a.reporterText)("singleUserMode",!0))},bJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,"label",118);Q(3," Reporter ");J()();I(4,"input",119);gh("ngModelChange",function(c){t(b);var d=P(3);fh(d.reporterText,c)||(d.reporterText=
c);return v(c)});J()()}a&2&&(a=P(3),z(4),wg("highlight-input",a.shouldHighlightReporter),eh("ngModel",a.reporterText),D("bContactAutocomplete","SINGLE"))},cJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,"label",120);Q(3," Verifier ");J()();I(4,"b-peoplekit-searchbar",121);M("singleUserSelectionChange",function(c){t(b);var d=P(3);return v(d.handleAutocompleteSelection(c,"verifier"))});J()()}a&2&&(a=P(3),z(4),D("email",a.verifierText)("singleUserMode",!0))},dJb=function(a){if(a&1){var b=
r();I(0,"div",99)(1,"div",22)(2,"label",122);Q(3," Verifier ");J()();I(4,"input",123);gh("ngModelChange",function(c){t(b);var d=P(3);fh(d.verifierText,c)||(d.verifierText=c);return v(c)});J()()}a&2&&(a=P(3),z(4),eh("ngModel",a.verifierText),D("bContactAutocomplete","SINGLE"))},eJb=function(a){a&1&&(I(0,"span"),Q(1,"*"),J())},fJb=function(a){a&1&&(I(0,"span"),Q(1,"*"),J())},gJb=function(a){a&1&&(I(0,"span"),Q(1,"*"),J())},iJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,"label",124);Q(3,
" Parents ");E(4,gJb,2,0,"span");J()();I(5,"input",125);M("ngModelChange",function(c){t(b);var d=P(3);d.parentIssueIds=hJb(d,c).map(ck);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ts(d.parentIssueIds));return v()});J()()}a&2&&(a=P(3),z(4),F(a.isParentIssueIdsValid?-1:4),z(),D("ngModel",ts(a.parentIssueIds)))},jJb=function(a){a&1&&(I(0,"span"),Q(1,"*"),J())},kJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,"label",126);Q(3," Children ");E(4,jJb,2,0,"span");J()();I(5,"input",127);
M("ngModelChange",function(c){t(b);var d=P(3);d.childrenIssueIds=hJb(d,c).map(ck);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ts(d.childrenIssueIds));return v()});J()()}a&2&&(a=P(3),z(4),F(a.isChildIssueIdsValid?-1:4),z(),D("ngModel",ts(a.childrenIssueIds)))},lJb=function(a){if(a&1){var b=r();I(0,"div",99)(1,"div",22)(2,"label",87);Q(3," Issue access level ");J()();I(4,"b-issue-access-limits-dropdown",128);M("updatedAccessLimitLevel",function(c){t(b);var d=P(3);return v(d.onAccessLimitLevelSelected(c))});
J()()}a&2&&(a=P(3),z(4),D("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},mJb=function(a){a&1&&Hg(0)},nJb=function(a){a&1&&(I(0,"div",21)(1,"div",22)(2,"label",89),Q(3," Collaborator Groups "),J(),K(4,"mat-icon",90),J(),C(5,mJb,1,0,"ng-container",91),J());if(a&2){a=P(3);var b=L(30);z(4);Qg("matTooltip",a.COLLABORATOR_GROUPS_TOOLTIP);z();D("ngTemplateOutlet",b)}},oJb=function(a){if(a&1){var b=r();I(0,"onedev-text-field",
133);M("valueChange",function(d){t(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});J()}if(a&2){a=P(2).$implicit;var c=P(3);Pg("id","bv2-custom-field-",a.customFieldId);D("value",a.textValue)("labelledById","bv2-custom-field-"+a.customFieldId+"-label");ng("required",c.isCustomFieldRequired(a))}},pJb=function(a){if(a&1){var b=r();I(0,"onedev-numeric-field",134);M("valueChange",function(d){t(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});J()}if(a&2){a=P(2).$implicit;
var c=P(3);Pg("id","bv2-custom-field-",a.customFieldId);D("value",a.numericValue);ng("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},qJb=function(a){if(a&1){var b=r();I(0,"div")(1,"bv2-input-date-picker",135);M("boundValueChange",function(d){t(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});J()()}if(a&2){a=P(2).$implicit;var c=P(3);z();Qg("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");D("boundValue",
a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},rJb=function(a){if(a&1){var b=r();I(0,"onedev-single-select",136);M("valueChange",function(d){t(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});J()}if(a&2){a=P(2).$implicit;var c=P(3);D("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0)("labelledById","bv2-custom-field-"+a.customFieldId+"-label")}},sJb=function(a,b){a&1&&(I(0,"div"),E(1,
oJb,1,5,"onedev-text-field",130),E(2,pJb,1,5,"onedev-numeric-field",131),E(3,qJb,2,4,"div"),E(4,rJb,1,4,"onedev-single-select",132),J());a&2&&(a=P(4),z(),F(b===a.FieldType.TEXT?1:-1),z(),F(b===a.FieldType.NUMERIC?2:-1),z(),F(b===a.FieldType.DATE?3:-1),z(),F(b===a.FieldType.ENUM?4:-1))},tJb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"b-list-field",137);M("valuesChange",function(e){t(c);var f=P().$implicit,h=P(3);return v(h.setCustomFieldValue(f,e.values))});J()()}if(a&2){a=P().$implicit;var d=P(3);
z();D("defaultLineCount",2)("type",b)("values",d.getListFieldValues(a))("enumChoices",d.customFieldAllowedValuesMap[a.customFieldId]||null)("truncate",!0)("isRequired",d.isCustomFieldRequired(a));ng("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},vJb=function(a,b){a&1&&(I(0,"div",99)(1,"div",22)(2,"label",129),Q(3),J()(),E(4,sJb,5,4,"div"),E(5,tJb,2,7,"div"),J());if(a&2){var c,d;a=b.$implicit;b=P(3);z(2);Pg("id","bv2-custom-field-",a.customFieldId,"-label");var e=b.customFieldMap[a.customFieldId];
Qg("matTooltip",(e&&e.description?e.description:"Custom Field")+" [ID: "+a.customFieldId+"]");D("ngClass",jh(8,uJb,b.isCustomFieldRequired(a)));var f=(e=b.customFieldMap[a.customFieldId])?e.name:"";e&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(f+=", required field");ng("aria-label",f);z();R(" ",b.getCustomFieldName(a)," ");z();F((c=b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]))?4:-1,c);z();F((d=b.getListFieldType(b.customFieldMap[a.customFieldId]))?5:-1,
d)}},xJb=function(a){if(a&1){var b=r();I(0,"mat-expansion-panel",53)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",92);Q(4,"Advanced fields (Required fields marked with");I(5,"span",93);Q(6,"*");J();Q(7,")");J()()();I(8,"div",94)(9,"div",95)(10,"div",22)(11,"label",96);Q(12," Severity ");J()();I(13,"button",97);Q(14);K(15,"b-icon",98);J();I(16,"mat-menu",37,6);Dg(18,$Ib,2,1,"button",67,Cg);J()();I(20,"div",99)(21,"div",22)(22,"label",100);Q(23," Found in ");J()();I(24,"input",101);
M("ngModelChange",function(e){t(b);var f=P(2);return v(f.issue.foundInVersion=QIb(e))});J()();I(25,"div",102)(26,"div",22)(27,"label",103);Q(28," In prod ");J()();I(29,"mat-slide-toggle",104);gh("ngModelChange",function(e){t(b);var f=P(2);fh(f.issue.inProd,e)||(f.issue.inProd=e);return v(e)});J()();K(30,"div",51);I(31,"div",105)(32,"div",22)(33,"label",106);Q(34," Staffing ");J()();I(35,"button",107);S(36,"staffingSummary");M("click",function(){t(b);var e=P(2);return v(e.editStaffing())});I(37,"span",
108);Q(38);S(39,"staffingSummary");J();K(40,"mat-icon",109);J()();K(41,"div",51);E(42,aJb,5,4,"div",99)(43,bJb,5,4,"div",99);E(44,cJb,5,2,"div",99)(45,dJb,5,2,"div",99);I(46,"div",99)(47,"div",22)(48,"label",110);Q(49," Targeted to ");J()();I(50,"input",111);M("ngModelChange",function(e){t(b);var f=P(2);return v(f.issue.targetedToVersion=QIb(e))});J()();K(51,"div",51);I(52,"div",99)(53,"div",22)(54,"label",112);Q(55," Blocked by ");E(56,eJb,2,0,"span");J()();I(57,"input",113);M("ngModelChange",function(e){t(b);
var f=P(2);f.issue.blockedByIssueId=hJb(f,e);f.isBlockedByIssueIdValid=f.ISSUE_ID_LIST_PATTERN.test(ts(f.issue.blockedByIssueId));return v()});J()();I(58,"div",99)(59,"div",22)(60,"label",114);Q(61," Blocking ");E(62,fJb,2,0,"span");J()();I(63,"input",115);M("ngModelChange",function(e){t(b);var f=P(2);f.issue.blockingIssueId=hJb(f,e);f.isBlockingIssueIdValid=f.ISSUE_ID_LIST_PATTERN.test(ts(f.issue.blockingIssueId));return v()});J()();E(64,iJb,6,2,"div",99);E(65,kJb,6,2,"div",99);K(66,"div",51);E(67,
lJb,5,3,"div",99);E(68,nJb,6,2,"div",21);K(69,"div",51);Dg(70,vJb,6,10,"div",99,Cg);J()()}if(a&2){a=L(17);var c=P(2);z(13);D("matMenuTriggerFor",a);ng("aria-label","Severity"+(c.issue.severity?", "+c.issue.severity:""));z();ch(c.issue.severity);z(2);D("overlapTrigger",!0);z(2);Eg(c.severityChoices);z(6);D("ngModel",ts(c.originalIssueCopy.foundInVersion));z(5);eh("ngModel",c.issue.inProd);z(6);var d;ng("aria-label","Staffing: "+T(36,19,(d=c.issue.staffing==null?null:c.issue.staffing.plannedAllocations)!=
null?d:ih(23,wJb)));z(3);R(" ",T(39,21,c.issue.staffing==null?null:c.issue.staffing.plannedAllocations)," ");z(4);F(c.enablePeoplekitAc?42:43);z(2);F(c.enablePeoplekitAc?44:45);z(6);D("ngModel",ts(c.originalIssueCopy.targetedToVersion));z(6);F(c.isBlockedByIssueIdValid?-1:56);z();D("ngModel",ts(c.issue.blockedByIssueId));z(5);F(c.isBlockingIssueIdValid?-1:62);z();D("ngModel",ts(c.issue.blockingIssueId));z();F(c.sessionIsExternal?-1:64);z();F(c.sessionIsExternal?-1:65);z(2);F(vr(c.selectedComponent)?
-1:67);z();F(c.trackerCollaboratorGroups.length>0&&!vr(c.selectedComponent)?68:-1);z(2);Eg(c.issue.customField)}},yJb=function(a,b){a&1&&K(0,"similar-issues",138);a&2&&(a=P(3),D("context",b)("componentId",a.issue.componentId))},zJb=function(a){a&1&&(E(0,yJb,1,2,"similar-issues",138),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.similarIssuesSearchString$))?0:-1,b)}},AJb=function(a){a&1&&(I(0,"div",17),K(1,"b-icon",29),I(2,"span"),Q(3),J(),I(4,"a",30),Q(5,"View access settings"),J()());a&2&&(a=P(2),
D("ngClass",kh(5,dIb,eIb(a),fIb(a))),z(),D("name","alert")("size","small"),z(2),R("",gIb(a),"\u00a0"),z(),D("href",a.selectedComponent?Fq.editComponentAccess.makeHref(a.selectedComponent.componentId):"",uf))},BJb=function(a){if(a&1){var b=r();I(0,"div",54)(1,"b-recaptcha",139);M("onUpdate",function(c){t(b);var d=P(2);return v(d.recaptchaResponse=c)});J()()}},FJb=function(a){if(a&1){var b=r();I(0,"div")(1,"div",20)(2,"div",21)(3,"div",22)(4,"label",40);Q(5,"Title");J()();E(6,AIb,2,1,"div",41);E(7,
CIb,4,7,"div",42);E(8,DIb,1,0,"llm-suggest-title-preview");E(9,EIb,4,1,"p",43);S(10,"async");J();E(11,GIb,13,4,"div",26);E(12,IIb,15,8,"div",26);J();Fg(13);I(14,"div",20);E(15,LIb,3,1,"div",44);E(16,SIb,2,1);J();I(17,"div",20);E(18,VIb,2,1);J();Gg();I(19,"div",45)(20,"div",20)(21,"div",21)(22,"div",22)(23,"label",46);Q(24,"Description");J()();I(25,"b-comment-box",47);S(26,"async");gh("commentChange",function(d){t(b);var e=P();fh(e.comment,d)||(e.comment=d);return v(d)});M("onChange",function(){t(b);
var d=P();return v(d.saveCommentDraft())})("onSubmit",function(d){t(b);var e=P();return v(CJb(e,d,!d.shiftKey))})("onRestrict",function(){t(b);var d=P();return v(d.showNewContentJudgementDialog())});E(27,WIb,4,1,"p",48);S(28,"async");I(29,"b-markdown-toggle",49);M("change",function(d){t(b);var e=P();return v(e.comment.formattingMode=d)});J()()()();E(30,ZIb,7,4,"div",50);K(31,"div",51);I(32,"div",52);E(33,xJb,72,24,"mat-expansion-panel",53);J();E(34,zJb,2,3);E(35,AJb,6,8,"div",17);E(36,BJb,2,0,"div",
54);I(37,"div",55)(38,"b-button",56);S(39,"async");S(40,"async");M("onAction",function(d){t(b);var e=P();return v(CJb(e,d,!0))});Q(41);S(42,"async");S(43,"async");J();I(44,"b-button",57);S(45,"async");S(46,"async");M("onAction",function(d){t(b);var e=P();return v(CJb(e,d,!1))});Q(47);S(48,"async");S(49,"async");J();I(50,"b-button",58);M("onAction",function(){t(b);var d=P();return v(d.discard())});Q(51," Discard ");J()()()()}if(a&2){a=P();z(6);F(a.enableIssueSuggestionPicker?6:-1);z();F(a.enableIssueSuggestionPicker?
-1:7);z();F(a.enableSuggestTitle?8:-1);z();F(T(10,38,a.titleBannedWordsChecker.showWarning$)?9:-1);z(2);F(a.canEditIssuesInComponent?11:-1);z();F(a.canEditIssuesInComponent?12:-1);z(3);F(a.canEditIssuesInComponent?15:-1);z();F(a.canEditIssuesInComponent?16:-1);z(2);F(a.canEditIssuesInComponent?18:-1);z(7);wg("highlight-input",a.shouldHighlightDescription);D("supportsPreview",!0);eh("comment",a.comment);var c;D("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("componentId",
a.selectedComponent==null?null:a.selectedComponent.componentId)("placeholder",a.piiWarningMessage)("idForAriaLabel",a.descriptionBoxId)("audience",a.audience)("showRestrictionOptions",a.canEditIssuesInComponent)("ngClass",jh(60,DJb,pIb(a.comment)))("warn",(c=T(26,40,a.descriptionBannedWordsChecker.showWarning$))!=null?c:!1)("canEditIssuesInComponent",a.canEditIssuesInComponent)("isLiteralModeSupported",a.isLiteralModeSupported());z(2);F(T(28,42,a.descriptionBannedWordsChecker.showWarning$)?27:-1);
z(2);D("initialValue",a.comment.formattingMode);z();F(a.canEditIssuesInComponent&&vr(a.selectedComponent)?30:-1);z(3);F(a.canEditIssuesInComponent?33:-1);z();F(a.issue.componentId&&!a.submitRequested?34:-1);z();F(eIb(a)||fIb(a)?35:-1);z();F(a.enableRecaptcha?36:-1);z(2);D("disabled",EJb(a))("color",T(39,44,a.titleBannedWordsChecker.showWarning$)||T(40,46,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");z(3);R(" ",T(42,48,a.titleBannedWordsChecker.showWarning$)||T(43,50,a.descriptionBannedWordsChecker.showWarning$)?
"Create Anyway":"Create"," ");z(3);D("disabled",EJb(a))("color",T(45,52,a.titleBannedWordsChecker.showWarning$)||T(46,54,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");z(3);R(" ",T(48,56,a.titleBannedWordsChecker.showWarning$)||T(49,58,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway & Start Another":"Create & Start Another"," ");z(3);D("disabled",EJb(a))}},GJb=function(a,b){a&1&&(I(0,"h2",140),Q(1,"This component has a default description"),J(),I(2,"mat-dialog-content"),
Q(3," You have already entered a description, but the component you chose has a default description: "),I(4,"div",141),Q(5),J()(),I(6,"mat-dialog-actions")(7,"button",142),Q(8,"Use component description"),J(),I(9,"button",143),Q(10,"Keep my description"),J()());a&2&&(a=b.$implicit,z(5),ch(a),z(2),D("mat-dialog-close",!0))},HJb=function(a,b){a&1&&(I(0,"mat-option",146),Q(1),J());a&2&&(a=b.$implicit,Qg("value",a),z(),R(" ",a," "))},JJb=function(a){if(a&1){var b=r();I(0,"mat-form-field",144)(1,"mat-select",
145);gh("ngModelChange",function(c){t(b);var d=P();fh(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=c);return v(c)});I(2,"mat-select-trigger");Q(3);J();Dg(4,HJb,2,2,"mat-option",146,Cg);J()()}a&2&&(a=P(),z(),eh("ngModel",a.collaboratorGroupsText),D("ngModelOptions",ih(3,IJb)),z(2),ch(a.getCollaboratorGroupsString()),z(),Eg(a.trackerCollaboratorGroups))},KJb=function(a,b){b.assigneeText=Ak(a.assigneeUser);b.reporterText=Ak(a.reporterUser);b.verifierText=Ak(a.verifierUser);b.collaboratorsText=
Bk(a.collaboratorsUsers);b.ccsText=Bk(a.ccUsers)},LJb=function(a,b){var c=a.assigneeText;c===null?c=null:(c=c.trim(),c=c.endsWith(",")?c.slice(0,c.length-1):c);a.assigneeText=c;a.assigneeText!=null&&(b.assigneeUser=Hk(a.assigneeText));a.reporterText!=null&&(b.reporterUser=Hk(a.reporterText));a.verifierText!=null&&(b.verifierUser=Hk(a.verifierText));a.collaboratorsText&&(c=Cva(a.collaboratorsText),c.length?b.collaboratorsUsers=c:b.collaboratorsUsers=void 0);a.ccsText&&(a=Cva(a.ccsText),a.length?b.ccUsers=
a:b.ccUsers=void 0)},NJb=function(a,b){for(var c=l(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=MJb[d];d==="customField"||Pj(e,f)||(Array.isArray(e)?a[d]?(e=Xta([].concat(p(e),p(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},OJb=function(a){a=Object.assign({},a);return delete a.hotlistId,a},PJb=function(a){var b={};a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.allowedValue&&(b[c.customFieldId]=c.allowedValue.map(function(d){return{value:d,displayText:d}}));return b},
QJb=function(a){return function(b){var c=fk(b.snapshot.customField,function(k){return k.customFieldId}),d=[],e,f,h=(f=(e=a.componentPathInfo)==null?void 0:e.allCustomField)!=null?f:[];e=l(h);for(f=e.next();!f.done;f=e.next())f=f.value,h=f.customFieldId,f.enabledOnIssues&&(c.has(h)?d.push(c.get(h)):f.typedDefaultValue?d.push(f.typedDefaultValue):d.push({customFieldId:h}));return Object.assign({},b,{snapshot:Object.assign({},b.snapshot,{customField:d})})}},xIb=function(a){return a===null||a===void 0||
a.length===0},RJb=function(a){a&1&&K(0,"b-star-toggle",6);a&2&&D("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},SJb=function(a){if(a&1){var b=r();I(0,"b-star-toggle",10);M("starClicked",function(){t(b);var c=P(2);return v(c.toggleStar())});J()}a&2&&(a=P(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",
a.isStarred))},TJb=function(a){if(a&1){var b=r();I(0,"div")(1,"div",5);E(2,RJb,1,4,"b-star-toggle",6)(3,SJb,1,3,"b-star-toggle",7);I(4,"span",8);Q(5);I(6,"span")(7,"button",9);M("click",function(){t(b);var c=P();return v(c.editBookmarkGroup())});J()()()()()}a&2&&(a=P(),z(2),F(a.isAdmin?2:3),z(3),R("",a.bookmarkGroup.name," "))},WJb=function(a){if(a&1){var b=r();I(0,"b-saved-search-panel",13);M("focusedRowIndexChange",function(f){t(b);var h=P().$implicit,k=P();return v(UJb(k,h,f))})("selectionChange",
function(f){t(b);var h=P(2);return v(VJb(h,f))})("resultsLoaded",function(f){t(b);var h=P(2);return v(h.loadHotlists(f))});J()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d===0)("last",d===c-1)}},XJb=function(a){if(a&1){var b=r();I(0,"b-hotlist-panel",14);M("focusedRowIndexChange",function(f){t(b);var h=P().$implicit,k=P();return v(UJb(k,h,f))})("selectionChange",
function(f){t(b);var h=P(2);return v(VJb(h,f))})("resultsLoaded",function(f){t(b);var h=P(2);return v(h.loadHotlists(f))});J()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d===0)("last",d===c-1)}},YJb=function(a,b){a&1&&(I(0,"div"),E(1,WJb,1,6,"b-saved-search-panel",11)(2,XJb,1,6,"b-hotlist-panel",12),J());if(a&2){var c;a=b.$implicit;z();F((c=a.type)==="SAVED_SEARCH"?
1:c==="HOTLIST"?2:-1)}},ZJb=function(a){if(a&1){var b=r();I(0,"button",10);M("click",function(){t(b);var c=P();return v(c.archive())});Q(1," Archive bookmark group ");J()}a&2&&(a=P(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},$Jb=function(a){if(a&1){var b=r();I(0,"button",10);M("click",function(){t(b);var c=P();return v(c.unarchive())});Q(1," Unarchive bookmark group ");J()}a&2&&(a=P(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},aKb=function(a){a&1&&(I(0,"span",12),Q(1," (archived) "),
J())},cKb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"b-hotlist-chip-smart",45);M("removeHotlist",function(){var d=t(c),e=P(4);return v(bKb(e,d))});J()()}a&2&&(z(),D("id",b))},eKb=function(a,b){if(a&1){var c=r();I(0,"div",43)(1,"a",46);Q(2);J();I(3,"span",47);M("click",function(){var e=t(c),f=P(4);return v(dKb(f,e))})("keydown.enter",function(){var e=t(c),f=P(4);return v(dKb(f,e))})("keydown.space",function(){var e=t(c),f=P(4);return v(dKb(f,e))});Q(4," \u00d7 ");J()()}if(a&2){a=P().$implicit;var d=
P(3);z();D("href",d.paths.viewSavedSearch(b),uf)("matTooltip","Go to saved search: "+d.getDisplayName(a));z();R(" S: ",d.getDisplayName(a)," ");z();D("matTooltip","Remove item: "+d.getDisplayName(a));ng("aria-label","Remove item: "+d.getDisplayName(a))}},fKb=function(a){a&1&&(I(0,"span",44),Q(1,"<None>"),J())},gKb=function(a,b){a&1&&(I(0,"div",34),E(1,cKb,2,1,"div"),E(2,eKb,5,5,"div",43),E(3,fKb,2,0,"span",44),J());if(a&2){var c;a=b.$implicit;b=P(3);z();var d;var e=a.resourceType==="HOTLIST"?(d=a.hotlistId)==
null?void 0:d.toString():void 0;F(e?1:-1,e);z();F((c=a.resourceType==="SAVED_SEARCH"?a.savedSearchId:void 0)?2:-1,c);z();F(b.bookmarkGroupUnderEdit.item.length?-1:3)}},iKb=function(a,b){if(a&1){var c=r();I(0,"button",54);M("click",function(){var d=t(c).$implicit,e=P(5);return v(hKb(e,d))});Q(1);J()}a&2&&(a=b.$implicit,z(),R("",a.name," "))},jKb=function(a){a&1&&Dg(0,iKb,2,1,"button",53,Cg);a&2&&(a=P(4),Eg(a.savedSearchChoices))},kKb=function(a){a&1&&(I(0,"div",42)(1,"label",48),Q(2,"Add from saved searches:"),
J(),I(3,"button",49)(4,"span",50),Q(5,"Select"),J(),K(6,"mat-icon",51),J(),I(7,"mat-menu",null,2),C(9,jKb,2,0,"ng-template",52),J()());a&2&&(a=L(8),z(3),D("matMenuTriggerFor",a))},pKb=function(a){if(a&1){var b=r();I(0,"div",30)(1,"label",32)(2,"span",20);Q(3,"Selected items");J()();I(4,"div",33,1);Dg(6,gKb,4,3,"div",34,Cg);J()();I(8,"div",35)(9,"div",36)(10,"label",37);Q(11,"Add hotlist from favorites:");J();I(12,"b-hotlist-picker",38);M("onApply",function(c){t(b);var d=P(2);return v(lKb(d,c))})("onCreate",
function(c){t(b);var d=P(2);return v(mKb(d,c))})("onLoad",function(c){t(b);var d=P(2);return v(nKb(d,c))});J()();I(13,"div",39)(14,"label",40);Q(15,"Add hotlist by query:");J();I(16,"b-hotlist-search",41);M("itemSelect",function(c){t(b);var d=P(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(oKb(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return v()});J()();E(17,kKb,10,1,"div",42);J()}a&2&&(a=P(2),z(6),Eg(a.bookmarkGroupUnderEdit.item),
z(6),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),z(4),D("showGroups",!1)("allowStarring",!1),z(),F(a.savedSearchChoices.length>0?17:-1))},rKb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"a",56),Q(3),J()());if(a&2){a=P().$implicit;var b=P(3);z();R(" Hotlist ",a.hotlistId,": ");z();D("href",qKb(b,a),uf);z();R(" ",a.name||"(name not available)"," ")}},sKb=function(a){a&1&&(I(0,"span"),Q(1),I(2,"a",56),Q(3),J()());if(a&2){a=P().$implicit;var b=P(3);z();R(" Saved search ",
a.savedSearchId,": ");z();D("href",qKb(b,a),uf);z();R(" ",a.name||"(name not available)"," ")}},tKb=function(a,b){a&1&&(I(0,"li"),E(1,rKb,4,3,"span"),E(2,sKb,4,3,"span"),J());a&2&&(a=b.$implicit,z(),F(a.resourceType==="HOTLIST"?1:-1),z(),F(a.resourceType==="SAVED_SEARCH"?2:-1))},uKb=function(a){a&1&&(I(0,"div",24)(1,"label")(2,"span",20),Q(3,"Items"),J()(),I(4,"div",55)(5,"ul"),Dg(6,tKb,3,2,"li",null,Cg),J()()());a&2&&(a=P(2),z(6),Eg(a.bookmarkGroup.item))},vKb=function(a){if(a&1){var b=r();I(0,"div",
25)(1,"button",57);M("click",function(){t(b);var c=P(2);return v(c.saveMetadata())});Q(2," Update ");J();I(3,"button",58);M("click",function(){t(b);var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");J()()}a&2&&(a=P(2),z(),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},wKb=function(a){if(a&1){var b=r();I(0,"div",25)(1,"button",57);M("click",function(){t(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");J();I(3,"button",58);M("click",function(){t(b);
var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");J()()}a&2&&(a=P(2),z(),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},AKb=function(a){if(a&1){var b=r();I(0,"div",11)(1,"h2");Q(2);J();E(3,aKb,2,0,"span",12);I(4,"a",13);Q(5," (View Dashboard)");J()();I(6,"mat-tab-group",14);gh("selectedIndexChange",function(c){t(b);var d=P();fh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});M("selectedIndexChange",
function(c){t(b);var d=P();return v(d.tabChange(c))});I(7,"mat-tab",15)(8,"div",16);K(9,"b-error-banner",17);I(10,"div",18)(11,"label",19)(12,"span",20);Q(13,"Name");J()();I(14,"input",21,0);gh("ngModelChange",function(c){t(b);var d=P();fh(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return v(c)});J()();I(16,"div",18)(17,"label",22)(18,"span",20);Q(19,"Description");J()();I(20,"textarea",23);gh("ngModelChange",function(c){t(b);var d=P();fh(d.bookmarkGroupUnderEdit.description,
c)||(d.bookmarkGroupUnderEdit.description=c);return v(c)});J()();E(21,pKb,18,6)(22,uKb,8,0,"div",24);E(23,vKb,5,1,"div",25);J()();I(24,"mat-tab",26)(25,"div",16)(26,"div",18)(27,"label")(28,"span",20);Q(29,"Admins");J();I(30,"p",27);Q(31," Edit access controls, edit name and description, reorder items, add/remove items ");J()();I(32,"b-multi-user-input",28);M("usersChange",function(c){t(b);var d=P();return v(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){t(b);var d=P();return v(d.isAdminsFieldValid=
c)});J()();I(33,"div",18)(34,"label")(35,"span",20);Q(36,"View only");J();I(37,"p",27);Q(38," View the bookmark group ");J();I(39,"b-multi-user-input",29);M("usersChange",function(c){t(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){t(b);var d=P();return v(d.isReaderFieldValid=c)});J()()();I(40,"div",30);Q(41," See ");I(42,"a",31);Q(43,"access control documentation");J();Q(44," for an explanation of the settings. ");J();E(45,wKb,5,1,"div",25);J()()()}a&2&&(a=P(),z(2),
dh(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),z(),F(a.isArchived()?3:-1),z(),D("href",Iq(Fq.viewDashboard.routeDeclarationPath,{id:a.bookmarkGroup.bookmarkGroupId}),uf),z(2),eh("selectedIndex",a.selectedTabIndex),z(3),D("error",a.error),z(),D("ngClass",jh(27,xKb,a.isEditDisabled())),z(4),eh("ngModel",a.bookmarkGroupUnderEdit.name),D("disabled",a.isEditDisabled()),z(2),D("ngClass",jh(29,xKb,a.isEditDisabled())),z(4),eh("ngModel",a.bookmarkGroupUnderEdit.description),
D("disabled",a.isEditDisabled()),z(),F(a.isAdmin?21:22),z(2),F(a.isAdmin?23:-1),z(3),D("ngClass",jh(31,xKb,a.isEditDisabled())),z(6),wg("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.admins),z(),D("ngClass",jh(33,xKb,a.isEditDisabled())),z(6),wg("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",jh(37,yKb,jh(35,zKb,a.accessPolicyUnderEdit.admins))),z(3),D("href",Dq(a.documentationLinks)+"#bookmark-groups",
uf),z(3),F(a.isAdmin?45:-1))},BKb=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P();return v(c.delete())});Q(1," Delete saved search ");J()}a&2&&(a=P(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},CKb=function(a){a&1&&(I(0,"div",8)(1,"h2"),Q(2," Saved search not found "),J()())},DKb=function(a){if(a&1){var b=r();I(0,"div",25)(1,"button",33);M("click",function(){t(b);var c=P(2);return v(c.saveMetadata())});Q(2," Update ");J();I(3,"button",34);M("click",function(){t(b);
var c=P(2);return v(c.revertMetadataChanges())});Q(4," Revert changes ");J()()}a&2&&(a=P(2),z(),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},EKb=function(a){if(a&1){var b=r();I(0,"div",25)(1,"button",33);M("click",function(){t(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");J();I(3,"button",34);M("click",function(){t(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");J()()}a&2&&(a=P(2),z(),D("disabled",!a.hasUnsavedAccessPolicyChanges()||
a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},IKb=function(a){if(a&1){var b=r();I(0,"div",8)(1,"h2");Q(2);J();I(3,"a",10);Q(4," (View Issues)");J()();I(5,"mat-tab-group",11);gh("selectedIndexChange",function(c){t(b);var d=P();fh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});M("selectedIndexChange",function(c){t(b);var d=P();return v(d.tabChange(c))});I(6,"mat-tab",12)(7,"div",13);K(8,"b-error-banner",14);I(9,"div",15)(10,"label",16)(11,"span",17);Q(12,"Name");J()();I(13,
"input",18,0);gh("ngModelChange",function(c){t(b);var d=P();fh(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return v(c)});J()();I(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");J()();I(19,"textarea",20);gh("ngModelChange",function(c){t(b);var d=P();fh(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return v(c)});Q(20,"            ");J()();I(21,"div",21)(22,"label",22)(23,"span",17);Q(24,"Query");J();I(25,"p",23);Q(26," To modify query and display preferences, run the saved search and modify its parameters ");
J();I(27,"div",24);Q(28);J()()();E(29,DKb,5,1,"div",25);J()();I(30,"mat-tab",26)(31,"div",13)(32,"div",15)(33,"label",27)(34,"span",17);Q(35,"Admins");J();I(36,"p",23);Q(37," Edit access controls, edit name and description, edit query ");J()();I(38,"b-multi-user-input",28);M("usersChange",function(c){t(b);var d=P();return v(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){t(b);var d=P();return v(d.isAdminsFieldValid=c)});J()();I(39,"div",15)(40,"label",29)(41,"span",17);Q(42,"View and execute search");
J()();I(43,"b-multi-user-input",30);M("usersChange",function(c){t(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){t(b);var d=P();return v(d.isReaderFieldValid=c)});J()();I(44,"div",31);Q(45," See ");I(46,"a",32);Q(47,"access control documentation");J();Q(48," for an explanation of the settings. ");J();E(49,EKb,5,1,"div",25);J()()()}a&2&&(a=P(),z(2),dh(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),z(),D("href",a.paths.viewSavedSearch(a.savedSearch.searchId),
uf),z(2),eh("selectedIndex",a.selectedTabIndex),z(3),D("error",a.error),z(),D("ngClass",jh(26,FKb,a.isEditDisabled())),z(4),eh("ngModel",a.savedSearchUnderEdit.name),D("disabled",a.isEditDisabled()),z(2),D("ngClass",jh(28,FKb,a.isEditDisabled())),z(4),eh("ngModel",a.savedSearchUnderEdit.description),D("disabled",a.isEditDisabled()),z(9),R(" ",a.savedSearch.query," "),z(),F(a.isAdmin?29:-1),z(3),D("ngClass",jh(30,FKb,a.isEditDisabled())),z(6),wg("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.admins),
z(),D("ngClass",jh(32,FKb,a.isEditDisabled())),z(4),wg("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",jh(36,GKb,jh(34,HKb,a.accessPolicyUnderEdit.admins))),z(3),D("href",Dq(a.documentationLinks)+"#saved-searches",uf),z(3),F(a.isAdmin?49:-1))},JKb=function(a){a&1&&(I(0,"div",6),K(1,"b-spinner"),J())},KKb=function(a){if(a&1){var b=r();I(0,"div",35)(1,"span",36)(2,"mat-checkbox",37);M("change",function(c){t(b);
var d=P(2);return v(d.alertState.setValue(c.checked))});J()();I(3,"div")(4,"strong",38);Q(5,"SLO Notifications");J();I(6,"div",39);Q(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");J()()()}a&2&&(a=P(2),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(2),D("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},LKb=function(a){a&1&&(I(0,"div",20),Q(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),
I(2,"a",40),Q(3," Learn more "),J()())},NKb=function(a){if(a&1){var b=r();I(0,"b-button",45);M("onAction",function(){t(b);var c=P(3);return v(MKb(c,!0))});Q(1," Archive ");J()}a&2&&(a=P(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},OKb=function(a){if(a&1){var b=r();I(0,"b-button",46);M("onAction",function(){t(b);var c=P(3);return v(MKb(c,!1))});Q(1," Unarchive ");J()}a&2&&(a=P(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},PKb=function(a){if(a&1){var b=r();I(0,"div",
24)(1,"b-button",41);M("onAction",function(){t(b);var d=P(2);return v(d.saveMetadata())});Q(2," Update ");J();I(3,"b-button",42);M("onAction",function(){t(b);var d=P(2);return v(d.revertMetadataChanges())});Q(4," Revert changes ");J();E(5,NKb,2,1,"b-button",43);E(6,OKb,2,1,"b-button",44);J()}if(a&2){P();a=L(9);var c=P();z();D("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!c.elementPickerIsValid||!!a.pending||!!a.invalid);z(2);D("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!!a.pending||
!!a.invalid);z(2);F(c.slo&&!c.slo.isArchived?5:-1);z();F(c.slo&&c.slo.isArchived?6:-1)}},QKb=function(a){if(a&1){var b=r();I(0,"div",23)(1,"b-button",47);M("onAction",function(){t(b);var c=P(2);return v(c.saveAccessPolicy())});Q(2," Update ");J();I(3,"b-button",48);M("onAction",function(){t(b);var c=P(2);return v(c.revertAccessPolicyChanges())});Q(4," Revert changes ");J()()}a&2&&(a=P(2),z(),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},RKb=function(a){if(a&1){var b=
r();I(0,"div")(1,"div",7)(2,"h2")(3,"span",8);Q(4);J()()();I(5,"mat-tab-group",9);gh("selectedIndexChange",function(c){t(b);var d=P();fh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});M("selectedIndexChange",function(c){t(b);var d=P();return v(d.tabChange(c))});I(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);Q(13,"Name");J()();I(14,"input",16);M("ngModelChange",function(c){t(b);var d=P();return v(d.editableCopy.name=c)});J()();I(15,"div",13)(16,
"label",17)(17,"span",15);Q(18,"Description");J()();I(19,"textarea",18);M("ngModelChange",function(c){t(b);var d=P();return v(d.editableCopy.description=c)});Q(20,"                ");J()();E(21,KKb,8,4,"div",19);J();E(22,LKb,4,0,"div",20);I(23,"div",13)(24,"slo-elements-picker",21);M("onCollectionUpdate",function(c){t(b);var d=P();return v(d.updateCollection(c))})("onValidation",function(c){t(b);var d=P();return v(d.elementPickerIsValid=c)});J()();I(25,"div",22)(26,"div",23)(27,"div",24)(28,"b-button",
25);M("onAction",function(){t(b);var c=P();return v(c.showUpdateHistoryModal())});Q(29," View history ");J()()();I(30,"div",23);E(31,PKb,7,4,"div",24);J()()()();I(32,"mat-tab",26)(33,"div",27)(34,"form",28)(35,"div",13)(36,"label",29)(37,"span",15);Q(38,"Admins");J();I(39,"p",30);Q(40," Edit name, description and metrics ");J()();I(41,"b-multi-user-input",31);M("usersChange",function(c){t(b);var d=P();return v(d.editableAccessPolicy.admins=c)})("isValid",function(c){t(b);var d=P();return v(d.validity.admins=
c)});J()();I(42,"div",13)(43,"label",32)(44,"span",15);Q(45,"Readers");J();I(46,"p",30);Q(47," View the SLO definition (this is not required to see an issue's SLO status) ");J()();I(48,"b-multi-user-input",33);M("usersChange",function(c){t(b);var d=P();return v(d.editableAccessPolicy.readers=c)})("isValid",function(c){t(b);var d=P();return v(d.validity.readers=c)});J()()();I(49,"div",13);Q(50," See ");I(51,"a",34);Q(52,"access control documentation");J();Q(53," for an explanation of the settings. ");
J();E(54,QKb,5,1,"div",23);J()()()()}a&2&&(a=P(),z(4),dh(" SLO ",a.slo.sloId,": ",a.slo.name," "),z(),eh("selectedIndex",a.selectedTabIndex),z(5),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(4),D("required",!0)("ngModel",a.editableCopy.name)("disabled",a.isEditDisabled()),z(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(4),D("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),z(2),F(a.isImportedFromBugScope||a.alertState.getSavedValue()?21:-1),z(),F(a.isUneditedFromBugScope&&
a.isAdmin()?22:-1),z(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(),D("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),z(7),F(a.isAdmin()?31:-1),z(4),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(6),D("users",a.editableAccessPolicy.admins),ng("disabled",a.isEditDisabled()?!0:null),z(),wg("bv2-edit-resource-readonly",a.isEditDisabled()),z(6),D("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),ng("disabled",a.isEditDisabled()?
!0:null),z(3),Pg("href","",Dq(a.documentationLinks),"#slos",uf),z(3),F(a.isAdmin()?54:-1))},TKb=function(a){if(a&1){var b=r();I(0,"div",2);K(1,"img",3)(2,"img",4);I(3,"p",5);Q(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");J();I(5,"p",6);Q(6,' If this issue blocked another, it would mean that it should be resolved first, and it would show up in the "Blockers" list for that issue. ');I(7,"a",7);Q(8,"Learn more");J()();I(9,"button",8);M("click",function(){t(b);var c=P(2);return v(SKb(c))});
Q(10," Add ");J()()}a&2&&(a=P(2),z(),D("src",a.TEA_LIGHT,uf),z(),D("src",a.TEA_DARK,uf))},UKb=function(a,b){a&1&&K(0,"b-issues-table",13);a&2&&(a=P(6),D("issueIds",b)("menuItemFactory",a.getMenuItems))},VKb=function(a){a&1&&(E(0,UKb,1,2,"b-issues-table",13),S(1,"async"));if(a&2){var b;a=P(5);F((b=T(1,1,a.blockedAndOpenIds$))?0:-1,b)}},WKb=function(a){a&1&&(I(0,"p",12),Q(1,"Not blocking any open issues \ud83e\udd73"),J())},XKb=function(a,b){a&1&&(I(0,"h4",11),Q(1),J(),E(2,VKb,2,3)(3,WKb,2,0,"p",12));
a&2&&(z(),R("Open (",b.length,")"),z(),F(b.length>0?2:3))},YKb=function(a,b){a&1&&K(0,"b-issues-table",13);a&2&&(a=P(6),D("issueIds",b)("menuItemFactory",a.getMenuItems))},ZKb=function(a){a&1&&(I(0,"h4",11),Q(1),J(),E(2,YKb,1,2,"b-issues-table",13),S(3,"async"));if(a&2){var b;a=P();var c=P(4);z();R("Closed (",a.length,")");z();F((b=T(3,2,c.blockedAndClosedIds$))?2:-1,b)}},$Kb=function(a,b){a&1&&E(0,ZKb,4,4);a&2&&F(b.length>0?0:-1)},aLb=function(a){a&1&&(E(0,XKb,4,2),S(1,"async"),E(2,$Kb,1,1),S(3,
"async"));if(a&2){var b,c;a=P(3);F((b=T(1,2,a.blockedAndOpen$))?0:-1,b);z(2);F((c=T(3,4,a.blockedAndClosed$))?2:-1,c)}},bLb=function(a,b){a&1&&(I(0,"li")(1,"a",15)(2,"span",6),Q(3),J(),I(4,"aside",16),K(5,"button",17),J()()());a&2&&(a=b.$implicit,z(),pg("aria-label","Issue ",a),Pg("routerLink","/issues/",a),z(2),R("b/",a))},cLb=function(a){a&1&&(I(0,"h4",11),Q(1,"Loading..."),J(),I(2,"ol",14),Dg(3,bLb,6,5,"li",null,Cg),J());a&2&&(a=P(2),z(3),Eg(a))},dLb=function(a,b){a&1&&(I(0,"a",10),Q(1," View as search results "),
J());a&2&&D("routerLink",b.path)("queryParams",b.params)},eLb=function(a){if(a&1){var b=r();E(0,aLb,4,6);S(1,"async");Ag(2,cLb,5,0);I(3,"aside",9)(4,"button",8);M("click",function(){t(b);var d=P(2);return v(SKb(d))});Q(5," Add ");J();E(6,dLb,2,2,"a",10);S(7,"async");J()}if(a&2){var c;a=P(2);F(T(1,2,a.issuesBeingBlocked$)?0:2);z(6);F((c=T(7,4,a.searchUrl$))?6:-1,c)}},fLb=function(a,b){a&1&&E(0,TKb,11,2,"div",2)(1,eLb,8,6);a&2&&F(b.length===0?0:1)},gLb=function(a){a&1&&(I(0,"aside",1),K(1,"b-spinner"),
J())},jLb=function(a){return hLb(iLb(),a.paths.map(function(b){var c=new us;return Rl(c,1,b)}))},kLb=function(a){return{content:new Map(a.getResponsesList().map(function(b){return[Oh(b.getReadonlySourceFileId(),1),sza(b.getContent())]})),revisionNumber:new Map(a.getResponsesList().map(function(b){return[Oh(b.getReadonlySourceFileId(),1),b.getReadonlySourceFileId().getRevisionNumber()]}))}},lLb=function(a){var b,c,d,e,f,h;return{changeNumber:(f=dna((b=a.getResponse())==null?void 0:(c=b.getChangeId())==
null?void 0:c.getChangeNumber()))!=null?f:0,workspaceName:(h=(d=a.getResponse())==null?void 0:(e=d.getWorkspaceId())==null?void 0:Oh(e,1))!=null?h:""}},mLb=function(a){switch(a){case 1:return 2305;case 2:return 258;case 3:return 2307;case 4:return 2308;case 5:return 517;case 6:return 2566;case 8:return 3080;case 7:return 1031;case 9:return 3081;case 10:return 2570;default:return 0}},pLb=function(a){var b=new nLb,c=a.sourceFile,d=new oLb,e=d.setSourceFileId;var f=c.sourceFileId;var h=new us;f=Rl(h,
1,f.depotPath).setRevisionNumber(f.revisionNumber);d=e.call(d,f);c.fileOperation&&d.setOperation(mLb(c.fileOperation));return W(b,oLb,1,d).setContent(a.content)},qLb=function(a){a=a.getReadonlyResponse();return{outputs:Wk(a,vs,1,Fk()).map(function(b){return b.getContent()}),outputBlocked:kl(a,2)}},rLb=function(a){a=encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(b,c){return String.fromCharCode(Number("0x"+c))});return btoa(a)},sLb=function(a){return a.filter(function(b){return!b.startsWith("+")}).map(function(b){return b.substring(1)})},
tLb=function(a){return a.filter(function(b){return!b.startsWith("-")}).map(function(b){return b.substring(1)})},uLb=function(a,b,c){return sLb(c).every(function(d,e){return d.trim()===a[b+e].trim()})},vLb=function(a,b,c){for(var d=[],e=sLb(b).length,f=a.length-e;c<=f;c++)uLb(a,c,b)&&d.push(c);if(d.length===0)throw Error("Ef");a=d[0];return{startRange:a,endRange:a+e}},wLb=function(a,b){if(b.length===0)return"";a=a.split("\n");var c=b.split(/\r?\n?@@\r?\n/).filter(function(k){return k.length>0});b=
[];var d=0,e=0,f=0;c=l(c);for(e=c.next();!e.done;e=c.next()){var h=e.value;d=vLb(a,h.split("\n"),d);e=d.startRange;d=f=d.endRange;h=tLb(h.split("\n"));b.push([e,f,h])}d=e=c=0;b=l(b);for(e=b.next();!e.done;e=b.next())e=l(e.value),f=e.next().value,c=e.next().value,e=e.next().value,f+=d,c+=d,a.splice.apply(a,[f,c-f].concat(p(e))),c-=f,e=e.length-c,d+=e;return a.join("\n")},xLb=function(a,b){a&1&&(I(0,"div",2),Q(1),J());a&2&&(a=b.$implicit,wg("remove",a.startsWith("-"))("add",a.startsWith("+")),z(),R(" ",
a[0]=="-"||a[0]=="+"?a.substr(1):a," "))},yLb=function(a){if(a&1){var b=r();I(0,"div",1);Q(1);J();I(2,"button",2);M("click",function(){t(b);var c=P();return v(c.restart())});Q(3," Restart ");J()}a&2&&(a=P(),z(),R(" ",a.error," "))},zLb=function(a,b){a&1&&K(0,"change-block",4);a&2&&D("lines",b.$implicit.lines)},CLb=function(a){if(a&1){var b=r();I(0,"div",3);Q(1," Suggested code change: ");J();Dg(2,zLb,1,1,"change-block",4,Cg);I(4,"div",3);Q(5," Suggested changelist description: ");J();K(6,"change-block",
5);I(7,"button",6);M("click",function(){t(b);var c=P();return v(ALb(c,c.outputData))});Q(8," Patch Changelist into new workspace ");J()}a&2&&(a=P(),z(2),Eg(a.outputData.diffBlocks),z(4),D("lines",jh(1,BLb,a.outputData.description)))},DLb=function(a){a&1&&(I(0,"div",0),K(1,"img",7),I(2,"i"),Q(3,"Analyzing issue using LLM"),J()())},ELb=function(a){if(a&1){var b=r();I(0,"b-bug2code-file-path-input",8);M("chosenFilePath",function(c){t(b);var d=P();return v(d.updateFilePath(c))});J()}},FLb=function(a){return a&&
a.toString!==Object.prototype.toString?a.toString():a!=null&&a.message?a.message:"Unknown Error"},GLb=function(a){a&1&&K(0,"mat-icon",3)},HLb=function(a){a&1&&K(0,"img",4);a&2&&(a=P().$implicit,D("src",a.iconUrl,uf))},ILb=function(a,b){a&1&&(I(0,"div",2),E(1,GLb,1,0,"mat-icon",3)(2,HLb,1,1,"img",4),I(3,"a",5),Q(4),J()());a&2&&(a=b.$implicit,z(),F(a.isExternalDocument?1:2),z(2),D("href",a.url,uf),z(),R(" ",a.citationTitle," "))},JLb=function(a){a&1&&(I(0,"div",1),Q(1,"Sources"),J(),Dg(2,ILb,5,3,"div",
2,Cg));a&2&&(a=P(),z(2),Eg(a))},KLb=function(a,b){a&1&&E(0,JLb,4,0);a&2&&F(b.length>0?0:-1)},LLb=function(a,b){a&1&&(K(0,"b-markdown-format-presenter",0),E(1,KLb,1,1),S(2,"async"));if(a&2){var c;a=P();D("content",b);z();F((c=T(2,2,a.citations$))?1:-1,c)}},NLb=function(a){a&1&&(I(0,"p",4),Q(1),J(),Hg(2,5));if(a&2){a=P();var b=P(),c=L(3);z();ch(b.sectionTitle);z();D("ngTemplateOutletContext",jh(3,MLb,a))("ngTemplateOutlet",c)}},OLb=function(a,b){a&1&&E(0,NLb,3,5);a&2&&F(b.length>0?0:-1)},PLb=function(a){a&
1&&K(0,"b-issue-card",11,2);if(a&2){a=L(1);var b=P(3).$implicit;D("onedevIsHovercardReady",a.init)("issueId",b.issue.issueId)}},QLb=function(a){a&1&&K(0,"b-changelist-card",16,2);if(a&2){a=L(1);var b=P(2).$implicit,c=P(5);D("onedevIsHovercardReady",a.init)("changelistId",c.Number(b))}},RLb=function(a){if(a&1){var b=r();I(0,"div",12);K(1,"mat-icon",13);I(2,"a",14);M("onedevHovercardShown",function(){t(b);var h=P(6);return v(h.trackHover(h.changelistAnalyticsLabel))})("click",function(){t(b);var h=
P(6);return v(h.trackClick(h.changelistAnalyticsLabel))});Q(3);J();I(4,"onedev-hovercard",null,3);C(6,QLb,2,2,"b-changelist-card",15);J()()}if(a&2){a=L(5);var c=P(),d=c.$implicit;c=c.$index;var e=P(3).$implicit,f=P(2);z(2);Pg("href","https://critique.corp.google.com/cl/",d,"",uf);D("onedevHovercardTrigger",a)("onedevHovercardConfig",f.hovercardConfig);z();R(" ",e.changelists[c].firstInterestingLine," ")}},SLb=function(a,b){a&1&&E(0,RLb,7,5,"div",12);a&2&&(a=b.$index,b=P(3).$implicit,F(b.changelists[a].isInteresting?
0:-1))},TLb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"div",7);K(2,"img",8);I(3,"a",9);M("onedevHovercardShown",function(){t(b);var f=P(4);return v(f.trackHover(f.issueAnalyticsLabel))})("click",function(){t(b);var f=P(4);return v(f.trackClick(f.issueAnalyticsLabel))});Q(4);J();I(5,"onedev-hovercard",null,1);C(7,PLb,2,2,"b-issue-card",10);J()();Dg(8,SLb,1,1,null,null,Bg);J()}if(a&2){a=L(6);var c=P(),d=P().$implicit,e=P(2);z(2);D("src",e.BUGANIZER_LOGO_URL,uf);z();Pg("href","/issues/",d.issue.issueId,
"",uf);D("onedevHovercardTrigger",a)("onedevHovercardConfig",e.hovercardConfig);z();R(" ",c.title," ");z(4);Eg(d.issue.snapshot[0].changelist.slice(0,3))}},ULb=function(a){a&1&&E(0,TLb,10,6,"div",6);a&2&&(a=P().$implicit,F(a.changelists&&a.changelists.length>0?0:-1))},VLb=function(a,b){a&1&&E(0,ULb,1,1);if(a&2){var c;a=b.$implicit;F((c=a.issue.snapshot&&a.issue.snapshot[0])?0:-1,c)}},XLb=function(a,b){a&1&&Dg(0,VLb,1,1,null,null,WLb);a&2&&Eg(b.issuesAndChangelists)},ZLb=function(a){a&1&&(I(0,"p",
4),Q(1),J(),Hg(2,5));if(a&2){a=P();var b=P(),c=L(3);z();ch(b.sectionTitle);z();D("ngTemplateOutletContext",jh(3,YLb,a))("ngTemplateOutlet",c)}},$Lb=function(a,b){a&1&&E(0,ZLb,3,5);a&2&&F(b.length>0?0:-1)},aMb=function(a){a&1&&K(0,"b-issue-card",11,2);if(a&2){a=L(1);var b=P(3).$implicit;D("onedevIsHovercardReady",a.init)("issueId",b.issue.issueId)}},bMb=function(a){a&1&&K(0,"b-changelist-card",16,2);if(a&2){a=L(1);var b=P(2).$implicit,c=P(5);D("onedevIsHovercardReady",a.init)("changelistId",c.Number(b))}},
cMb=function(a){if(a&1){var b=r();I(0,"div",12);K(1,"mat-icon",13);I(2,"a",14);M("onedevHovercardShown",function(){t(b);var h=P(6);return v(h.trackHover(h.changelistAnalyticsLabel))})("click",function(){t(b);var h=P(6);return v(h.trackClick(h.changelistAnalyticsLabel))});Q(3);J();I(4,"onedev-hovercard",null,3);C(6,bMb,2,2,"b-changelist-card",15);J()()}if(a&2){a=L(5);var c=P(),d=c.$implicit;c=c.$index;var e=P(3).$implicit,f=P(2);z(2);Pg("href","https://critique.corp.google.com/cl/",d,"",uf);D("onedevHovercardTrigger",
a)("onedevHovercardConfig",f.hovercardConfig);z();R(" ",e.changelists[c].firstInterestingLine," ")}},dMb=function(a,b){a&1&&E(0,cMb,7,5,"div",12);a&2&&(a=b.$index,b=P(3).$implicit,F(b.changelists[a].isInteresting?0:-1))},eMb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"div",7);K(2,"img",8);I(3,"a",9);M("onedevHovercardShown",function(){t(b);var f=P(4);return v(f.trackHover(f.issueAnalyticsLabel))})("click",function(){t(b);var f=P(4);return v(f.trackClick(f.issueAnalyticsLabel))});Q(4);J();I(5,"onedev-hovercard",
null,1);C(7,aMb,2,2,"b-issue-card",10);J()();Dg(8,dMb,1,1,null,null,Bg);J()}if(a&2){a=L(6);var c=P(),d=P().$implicit,e=P(2);z(2);D("src",e.BUGANIZER_LOGO_URL,uf);z();Pg("href","/issues/",d.issue.issueId,"",uf);D("onedevHovercardTrigger",a)("onedevHovercardConfig",e.hovercardConfig);z();R(" ",c.title," ");z(4);Eg(d.issue.snapshot[0].changelist.slice(0,3))}},fMb=function(a){a&1&&E(0,eMb,10,6,"div",6);a&2&&(a=P().$implicit,F(a.changelists&&a.changelists.length>0?0:-1))},gMb=function(a,b){a&1&&E(0,fMb,
1,1);if(a&2){var c;a=b.$implicit;F((c=a.issue.snapshot&&a.issue.snapshot[0])?0:-1,c)}},iMb=function(a,b){a&1&&Dg(0,gMb,1,1,null,null,hMb);a&2&&Eg(b.issuesAndChangelists)},jMb=function(a){a&1&&K(0,"mat-icon",8)},kMb=function(a){a&1&&K(0,"mat-icon",9)},lMb=function(a){if(a&1){var b=r();I(0,"b-callout",17)(1,"b-callout-body");Q(2," Feature only visible for some components. Join group to see it on all issues with stack traces. ");J();I(3,"b-callout-actions")(4,"button",18);M("click",function(){t(b);P(3).hasDismissedBanner=
!0;uk("isHMFAllComponentsOptInBannerDismissed")(!0);return v()});Q(5,"Dismiss");J();I(6,"button",19);M("click",function(){t(b);P(3).domSafe.openInNewTab("https://groups.google.com/a/google.com/g/help-me-fix-opt-in-all-components/members");return v()});Q(7,"Join");J()()()}},mMb=function(a){a&1&&E(0,lMb,8,0,"b-callout",17);a&2&&(a=P(2),F(a.isEnabledOnAllComponents||a.hasDismissedBanner?-1:0))},nMb=function(a){a&1&&(I(0,"span",15),K(1,"b-spinner"),Q(2," Analyzing the issue"),J())},pMb=function(a){if(a&
1){var b=r();I(0,"llm-response",20);M("dataReady",function(){t(b);var c=P(2);return v(oMb(c))});J()}},qMb=function(a,b){a&1&&K(0,"b-bug2code-sidebar",21);a&2&&D("issueId",b)},rMb=function(a){a&1&&(E(0,qMb,1,1,"b-bug2code-sidebar",21),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.issueId$))?0:-1,b)}},sMb=function(a){a&1&&(I(0,"div",16),S(1,"async"),K(2,"related-fixed-issues"),J());a&2&&(a=P(2),D("hidden",!T(1,1,a.isLlmDataReady$)))},tMb=function(a){a&1&&(I(0,"div",16),S(1,"async"),K(2,"similar-fixed-issues"),
J());a&2&&(a=P(2),D("hidden",!T(1,1,a.isLlmDataReady$)))},uMb=function(a){a&1&&(I(0,"div",29),Q(1," Want to provide more feedback? "),I(2,"a",32),Q(3,"Share your thoughts"),J()())},vMb=function(a){a&1&&(I(0,"div",33),Q(1," Enjoying this feature? Join "),I(2,"a",34),Q(3,"this group"),J(),Q(4," to see it on all issues with exception stack traces! "),J());a&2&&(a=P(4),z(2),D("href",a.allComponentsOptInLink,uf))},wMb=function(a){a&1&&E(0,vMb,5,1,"div",33);a&2&&(a=P(3),F(!a.isEnabledOnAllComponents&&a.hasDismissedBanner?
0:-1))},zMb=function(a){if(a&1){var b=r();I(0,"div",22)(1,"div",23)(2,"span");Q(3);J();I(4,"div",24)(5,"button",25);M("click",function(){t(b);var d=P(2);return v(xMb(d))});K(6,"mat-icon",26);J();I(7,"button",27);M("click",function(){t(b);var d=P(2);return v(yMb(d))});K(8,"mat-icon",28);J()()();E(9,uMb,4,0,"div",29);J();I(10,"div",30)(11,"div");Q(12," AI may generate code in the response. Please review ");I(13,"a",31);Q(14," go/code-ai-policy ");J();Q(15," before using it. ");J();E(16,wMb,1,1);J()}if(a&
2){a=P();var c=P();z(3);R(" ",c.votedThumbsUp||c.votedThumbsDown?"Thanks for the feedback!":"Was this helpful?"," ");z(2);wg("voted",c.votedThumbsUp);D("disabled",c.votedThumbsUp||c.votedThumbsDown);z(2);wg("voted",c.votedThumbsDown);D("disabled",c.votedThumbsUp||c.votedThumbsDown);z(2);F(c.votedThumbsUp||c.votedThumbsDown?9:-1);z(7);F(a.issueCategory===c.IssueCategory.ISSUE_CATEGORY_STACK_TRACES?16:-1)}},AMb=function(a,b){a&1&&(I(0,"div",12),E(1,mMb,1,1),I(2,"div",14),E(3,nMb,3,0,"span",15),S(4,
"async"),E(5,pMb,1,0,"llm-response"),E(6,rMb,2,3),J(),E(7,sMb,3,3,"div",16),E(8,tMb,3,3,"div",16),E(9,zMb,17,9),S(10,"async"),J());a&2&&(a=P(),z(),F(b.issueCategory===a.IssueCategory.ISSUE_CATEGORY_STACK_TRACES?1:-1),z(2),F(!T(4,7,a.isLlmDataReady$)&&b.displayedModules.includes(a.DisplayModule.LOADING_AND_FOOTER)?3:-1),z(2),F(b.displayedModules.includes(a.DisplayModule.LLM_RESPONSE)?5:-1),z(),F(b.displayedModules.includes(a.DisplayModule.BUG_2_CODE)?6:-1),z(),F(b.displayedModules.includes(a.DisplayModule.RELATED_FIXED_ISSUES)?
7:-1),z(),F(b.displayedModules.includes(a.DisplayModule.SIMILAR_FIXED_ISSUES)?8:-1),z(),F(T(10,9,a.isLlmDataReady$)&&b.displayedModules.includes(a.DisplayModule.LOADING_AND_FOOTER)?9:-1))},BMb=function(a){a&1&&(I(0,"div",13),Q(1,"View an issue details to gain AI insights."),J())},CMb=function(a){a&1&&(I(0,"div",1),K(1,"mat-icon",3),I(2,"span",4),Q(3),J()());a&2&&(a=P(),z(3),R("",a.length," parent issues"))},DMb=function(a){a&1&&(I(0,"div",1),K(1,"mat-icon",5),I(2,"span",4),Q(3),J()());a&2&&(a=P(),
z(3),R("Blocked by ",a.length," issues"))},EMb=function(a,b){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(4),zg("chippy status-",b," margin-s-left"),z(),R(" ",a.STATUS_JS_TERSE.get(b)," "))},FMb=function(a){a&1&&(I(0,"a",6)(1,"div",7)(2,"div",8)(3,"div",9),Q(4),J(),I(5,"div",10),Q(6),J()(),I(7,"div",8)(8,"div",11),Q(9),J(),E(10,EMb,2,4,"span",12),J()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);Pg("routerLink","/issues/",a.issueId);z();wg("border-bottom",d!==c-1);z(3);ch(a.issueId);
z(2);ch(a.snapshot[0].title);z(2);D("ngClass",e.priorityClass(a.snapshot[0].priority));z();ch(a.snapshot[0].priority);z();F((b=a.snapshot[0].status)?10:-1,b)}},GMb=function(a,b){a&1&&E(0,FMb,11,9,"a",6);a&2&&F(b.$index<5?0:-1)},IMb=function(a){if(a&1){var b=r();I(0,"div",2)(1,"button",13);M("click",function(){t(b);var c=P(2);return v(HMb(c))});Q(2,"View all parent issues");J()()}},JMb=function(a){if(a&1){var b=r();I(0,"div",2)(1,"button",13);M("click",function(){t(b);var c=P(2),d;(d=c.hovercardInstance)==
null||d.closeHovercard$.next();Nr(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});Q(2,"View all blockers");J()()}},LMb=function(a,b){a&1&&(I(0,"div",0),E(1,CMb,4,1,"div",1),E(2,DMb,4,1,"div",1),I(3,"div"),Dg(4,GMb,1,1,null,null,KMb),E(6,IMb,3,0,"div",2),E(7,JMb,3,0,"div",2),J()());a&2&&(a=P(),z(),F(a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?1:-1),z(),F(a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?2:-1),z(2),Eg(b),z(2),F(b.length>5&&a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?
6:-1),z(),F(b.length>5&&a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?7:-1))},MMb=function(a){a&1&&K(0,"mat-icon",4)},NMb=function(a){a&1&&(Fg(0),K(1,"b-list-issues-card",6,1),Gg());if(a&2){a=L(2);P();var b=L(4),c=P();z();D("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},OMb=function(a){a&1&&(I(0,"a",3),Q(1),J(),E(2,MMb,1,0,"mat-icon",4),I(3,"onedev-hovercard",null,0),C(5,
NMb,3,5,"ng-container",5),J());if(a&2){a=L(4);var b=P();Pg("title","",b.multiParentIssueIds.length," parents at this position");D("onedevHovercardTrigger",a);z();R("",b.multiParentIssueIds.length," Parents\u2026");z();F(b.multiParentIssueIds.length>1?2:-1)}},PMb=function(a,b){a&1&&(I(0,"b-issue-reference-widget",7),Q(1),J(),K(2,"mat-icon",4));if(a&2){var c=b.$implicit;a=b.$index;b=b.$count;var d=P();D("href",d.getIssueLink(c))("issueId",c);z();d.issueIdToTitle.has(c)?(c=d.issueIdToTitle.get(c),c=
wJa(c)):c=String(c);ch(c);z();wg("last",a===b-1)}},RMb=function(a,b){if(a&1){var c=r();I(0,"button",1);S(1,"async");M("click",function(){t(c);var d=P();return v(QMb(d))});Q(2);J()}a&2&&(a=P(),D("disabled",a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)||T(1,3,a.canEdit$)===!1)("title",b.isDupe?a.TOOLTIP_UNMARK_DUPE:a.TOOLTIP_MARK_DUPE),z(2),R(" ",b.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},SMb=function(a){a&1&&Hg(0)},TMb=function(a){a&1&&C(0,SMb,1,0,"ng-container",4);a&2&&(a=
P(),D("ngTemplateOutlet",a.content))},UMb=function(a,b){if(a&1){var c=r();I(0,"button",13);M("click",function(e){var f=t(c).$implicit;return v(f.action(e))});K(1,"mat-icon",14);Q(2);J()}if(a&2){a=b.$implicit;D("disabled",a.disabled)("title",a.title);ng("aria-label",a.title);z();var d;D("svgIcon",(d=a.icon)!=null?d:"");z();R(" ",a.label," ")}},VMb=function(a){if(a&1){var b=r();I(0,"button",15);M("click",function(d){t(b);var e=P(2);d.stopPropagation();d.preventDefault();var f;(f=e.helpHover)==null||
f.toggle();return v()});K(1,"mat-icon",16);Q(2," Retention: ");K(3,"retention-text",17);Q(4," \u00a0 ");K(5,"help-hover",18);J()}if(a&2){a=P();var c=L(14);z(3);D("retentionState",a.retentionState);z(2);D("content",c)}},WMb=function(a){a&1&&K(0,"retention-help-text",19);a&2&&(a=P(2),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},XMb=function(a){a&1&&E(0,WMb,1,2,"retention-help-text",19);a&2&&(a=P(),F(a.retentionState&&a.modifiedTimeMilliseconds?0:-1))},YMb=function(a,
b){if(a&1){var c=r();K(0,"b-app-vote-button",3)(1,"hotlist-picker-btn",4);I(2,"smart-dupe-btn",5,0);M("onHotkey",function(){t(c);var e=L(3);return v(QMb(e))});J();I(4,"b-notification-menu",6);M("subscriptionChange",function(e){t(c);var f=P();return v(f.updateSubscription(e))})("showNotificationSettings",function(e){t(c);var f=P();return v(f.showNotificationSettings(e))});J();K(5,"insights-graph-menu-smart",7);I(6,"button",8);K(7,"mat-icon",9);J();I(8,"mat-menu",10,1);Dg(10,UMb,3,5,"button",11,Cg);
E(12,VMb,6,2,"button",12);J();C(13,XMb,1,1,"ng-template",null,2,nh)}if(a&2){a=L(9);var d=P();D("issueId",b.issueId)("voteCount",b.voteCount)("upvoted",b.voted);z();D("issueId",b.issueId);z();D("issueId",b.issueId)("hotkey",d.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);z(2);D("subscription",b.notificationSubscription)("issueId",b.issueId)("iconOnly",!0);z();D("iconOnly",!0);z();D("matMenuTriggerFor",a);z(4);Eg(b.menuItems);z(2);F(d.retentionEnabled?12:-1)}},ZMb=function(){},$Mb=function(a){a&1&&(I(0,"output"),
Q(1),S(2,"async"),J());if(a&2){a=P();var b=P();z();dh(" ",a," of ",T(2,2,b.currentSearchResults.totalText$)," ")}},dNb=function(a,b){if(a&1){var c=r();E(0,$Mb,3,4,"output");I(1,"span",0)(2,"button",1);S(3,"async");M("onHotkey",function(){t(c);var d=P();return v(aNb(d.currentSearchResults))})("click",function(){t(c);var d=P();return v(aNb(d.currentSearchResults))});K(4,"mat-icon",2);J();I(5,"button",3);S(6,"async");M("onHotkey",function(){t(c);var d=P();return v(bNb(d.currentSearchResults))})("click",
function(){t(c);var d=P();return v(bNb(d.currentSearchResults))});K(7,"mat-icon",4);J()()}a&2&&(a=P(),F(b!==-1?0:-1),z(),D("ngClass",jh(10,cNb,b===-1)),z(),D("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!T(3,6,a.currentSearchResults.hasPreviousIssue$)),z(3),D("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!T(6,8,a.currentSearchResults.hasNextIssue$)))},eNb=function(a){a&1&&K(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),D("issueId",a.issueId))},fNb=function(a){a&1&&K(0,"b-access-limits-chip",
2);a&2&&(a=P(2),D("issueId",a.issueId)("componentId",a.componentId)("accessLimitLevel",a.issueAccessLimitLevel))},gNb=function(a){a&1&&K(0,"b-retention-chip",3);a&2&&(a=P(2),D("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},hNb=function(a){a&1&&(I(0,"div",0),E(1,eNb,1,1,"b-issue-visibility-chip",1),E(2,fNb,1,3,"b-access-limits-chip",2),E(3,gNb,1,3,"b-retention-chip",3),J());a&2&&(a=P(),z(),F(a.hasAccessIndicator?1:-1),z(),F(a.isAccessLimited?2:-1),z(),F(a.isShowingRetention?
3:-1))},iNb=function(a,b){a&1&&E(0,hNb,4,3,"div",0);a&2&&F(b.isShowingPublicPartner||b.isShowingRetention||b.isAccessLimited?0:-1)},jNb=function(a){a&1&&(I(0,"div",2),K(1,"mat-icon",4),Q(2),S(3,"async"),J());if(a&2){a=P();var b=L(4);D("onedevHovercardTrigger",b);z(2);R("",T(3,2,a.teamName$)," ")}},kNb=function(a){a&1&&Hg(0)},lNb=function(a){a&1&&C(0,kNb,1,0,"ng-container",20);a&2&&(P(),a=L(13),D("ngTemplateOutlet",a))},mNb=function(a){a&1&&(K(0,"b-component-breadcrumb-chip",22),S(1,"async"),I(2,"div",
23),K(3,"b-issue-id-picker",24),S(4,"async"),S(5,"async"),S(6,"async"),J());a&2&&(a=P(2),D("componentId",T(1,6,a.componentId$))("issueId",a.issueId),z(3),D("issueId",a.issueId)("componentId",T(4,8,a.componentId$))("issueTitle",T(5,10,a.issueTitle$))("isExternalIssue",!!T(6,12,a.isWithinExternalComponent$)))},nNb=function(a){if(a&1){var b=r();I(0,"b-team-chip",21);S(1,"async");S(2,"async");M("onTeamLoaded",function(){t(b);var c=P();return v(c.isTeamLoaded=!0)});J();E(3,mNb,7,14)}a&2&&(a=P(),D("componentId",
T(1,3,a.componentId$))("teamId",T(2,5,a.teamId$)),z(3),F(a.isTeamLoaded?3:-1))},oNb=function(a,b){a&1&&K(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),D("ancestors",b)("issueId",a.issueId))},pNb=function(a){a&1&&(K(0,"b-component-breadcrumb-chip",25),S(1,"async"),I(2,"div",26),E(3,oNb,1,2,"ancestors-breadcrumbs",27),S(4,"async"),K(5,"b-issue-id-picker",28),S(6,"async"),S(7,"async"),S(8,"async"),J());if(a&2){var b;a=P(2);D("componentId",T(1,8,a.componentId$))("compactMode",!0)("issueId",a.issueId);z(3);
F((b=T(4,10,a.ancestors$))?3:-1,b);z(2);D("issueId",a.issueId)("componentId",T(6,12,a.componentId$))("issueTitle",T(7,14,a.issueTitle$))("isExternalIssue",!!T(8,16,a.isWithinExternalComponent$))}},qNb=function(a){if(a&1){var b=r();I(0,"b-team-chip",21);S(1,"async");S(2,"async");M("onTeamLoaded",function(){t(b);var c=P();return v(c.isTeamLoaded=!0)});J();E(3,pNb,9,18)}a&2&&(a=P(),D("componentId",T(1,3,a.componentId$))("teamId",T(2,5,a.teamId$)),z(3),F(a.isTeamLoaded?3:-1))},rNb=function(a,b){a&1&&
(I(0,"div",17),K(1,"mat-icon",29),Q(2),J());a&2&&(P(),a=L(36),D("onedevHovercardTrigger",a),z(2),R(" ",b," "))},sNb=function(a){a&1&&(Fg(0),K(1,"b-list-issues-card",30,2),S(3,"async"),Gg());if(a&2){a=L(2);var b=P(),c=L(36);z();D("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",T(3,5,b.blockedByids$))("mode",b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},tNb=function(a){if(a.length!==0)return a.length===1?Fq.viewIssue.makeHref(a[0]):Fq.listIssues.makeHref()},
uNb=function(a,b){a&1&&(I(0,"div",0),K(1,"img",1),I(2,"h3"),Q(3),J(),I(4,"a",2),S(5,"async"),Q(6),J()());a&2&&(a=P(),z(),D("src",b.branding==null?null:b.branding.logoUrl,uf),z(2),R("This issue is a part of the ",b.name," tracker."),z(),D("href",T(5,4,a.trackerRedirectUrl$),uf),z(2),R(" View in ",b.name," Tracker "))},vNb=function(a){a&1&&(I(0,"div")(1,"ol")(2,"li")(3,"label"),Q(4,"Issue ID"),J(),I(5,"output"),Q(6),J()(),I(7,"li")(8,"label"),Q(9,"Type"),J(),I(10,"output"),Q(11),J()(),I(12,"li")(13,
"label"),Q(14,"Status"),J(),I(15,"output"),Q(16),J()()()());a&2&&(a=P(2),z(6),ch(a.issueId),z(5),ch(a.issueType),z(5),ch(a.issueStatus))},wNb=function(a){a&1&&(I(0,"div",0)(1,"div",1),K(2,"img",2),S(3,"async"),K(4,"mat-icon",3)(5,"img",2),S(6,"async"),J(),I(7,"h3",4),Q(8),S(9,"async"),J(),E(10,vNb,17,3,"div"),I(11,"div",5)(12,"a",6),S(13,"async"),Q(14,"Continue"),J()()());a&2&&(a=P(),z(2),D("src",T(3,5,a.currentTrackerLogo$),uf),z(3),D("src",T(6,7,a.trackerLogo$),uf),z(3),R(" Redirecting to ",T(9,
9,a.trackerName$)," "),z(2),F(a.issue!=null?10:-1),z(2),D("href",T(13,11,a.trackerRedirectUrl$),uf))},xNb=function(a,b){if(a instanceof Element){var c=Qk(window.sessionStorage.getItem(b));if(c!=null){a.scrollTo(0,c);var d=new ResizeObserver(function(){a.scrollTo(0,c);d.disconnect()});d.observe(a);setTimeout(function(){a.scrollTo(0,c);d.disconnect()},100)}}},yNb=function(a,b){a&1&&(I(0,"h2",6),Q(1),J());a&2&&(z(),R("Issue ",b))},zNb=function(a){a&1&&Hg(0,7);a&2&&(P(2),a=L(5),D("ngTemplateOutlet",a))},
ANb=function(a){a&1&&Hg(0,7);a&2&&(P(3),a=L(11),D("ngTemplateOutlet",a))},CNb=function(a){a&1&&Hg(0,8);if(a&2){a=P(2);P(2);var b=L(9);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,BNb,a.monorailRedirectUrl))}},DNb=function(a){a&1&&E(0,CNb,1,4,"ng-container",8);a&2&&(a=P(),F(a.monorailRedirectUrl?0:-1))},ENb=function(a,b){a&1&&E(0,ANb,1,1,"ng-container",7)(1,DNb,1,1);if(a&2){var c;F((c=b.status)===403?0:c===404?1:-1)}},FNb=function(a,b){a&1&&(E(0,zNb,1,1,"ng-container",7),E(1,ENb,2,1),S(2,
"async"));if(a&2){var c;a=P();F(b.success?0:-1);z();F((c=T(2,2,a.mainIssueLoadError$))?1:-1,c)}},GNb=function(a){a&1&&Hg(0)},HNb=function(a){a&1&&K(0,"help-me-fix-sidebar")},INb=function(a){a&1&&(I(0,"mat-sidenav-container",9)(1,"mat-sidenav-content"),C(2,GNb,1,0,"ng-container",10),J(),I(3,"mat-sidenav",11),S(4,"async"),E(5,HNb,1,0,"help-me-fix-sidebar"),S(6,"async"),J()());if(a&2){a=P(2);var b=L(7);z(2);D("ngTemplateOutlet",b);z();D("autoFocus",!0)("opened",T(4,5,a.isHelpMeFixSidebarOpen$))("disableClose",
!0);z(2);F(T(6,7,a.isHelpMeFixSidebarOpen$)?5:-1)}},JNb=function(a){a&1&&Hg(0)},KNb=function(a){a&1&&C(0,JNb,1,0,"ng-container",10);a&2&&(P(2),a=L(7),D("ngTemplateOutlet",a))},LNb=function(a){a&1&&(E(0,INb,7,9,"mat-sidenav-container",9),S(1,"async"),Ag(2,KNb,1,1,"ng-container"));a&2&&(a=P(),F(T(1,1,a.enableHelpMeFixSidebar$)?0:2))},MNb=function(a){a&1&&(I(0,"a",22),Q(1,"Learn more"),J())},NNb=function(a){if(a&1){var b=r();I(0,"button",24);M("click",function(){var c=t(b),d=P(4);return v(d.editIssueService.unarchive(c))});
Q(1," Unarchive ");J()}},ONb=function(a){a&1&&(I(0,"b-callout",15)(1,"b-callout-body"),Q(2,"This issue has been archived. "),E(3,MNb,2,0,"a",22),J(),I(4,"b-callout-actions"),E(5,NNb,2,0,"button",23),S(6,"async"),J()());if(a&2){var b;a=P(3);D("messageType","caution")("format","app")("iconOverride","archive_24px");z(3);F(a.activeSession.isInternalSession()?3:-1);z(2);F((b=T(6,5,a.id$))?5:-1,b)}},PNb=function(a){a&1&&(I(0,"a",25),Q(1,"Learn more"),J())},QNb=function(a){a&1&&(I(0,"b-callout",16)(1,"b-callout-body"),
Q(2," This issue is in an archived component. "),E(3,PNb,2,0,"a",25),J()());a&2&&(a=P(3),D("format","app")("iconOverride","archive_24px"),z(3),F(a.activeSession.isInternalSession()?3:-1))},RNb=function(a,b){a&1&&(Q(0," Reason: "),I(1,"code"),Q(2),J(),Q(3,". "));a&2&&(z(2),ch(b))},SNb=function(a){a&1&&(I(0,"a",26),Q(1,"Learn more"),J())},UNb=function(a){if(a&1){var b=r();I(0,"button",28);S(1,"async");S(2,"async");M("click",function(){var d=t(b),e=P(4);return v(TNb(e.editIssueService,d))});Q(3," Undelete ");
J()}if(a&2){a=P(4);var c;D("matTooltip",(c=T(1,2,a.undeleteButtonTooltip$))!=null?c:"")("disabled",!T(2,4,a.permissions.canUndeleteIssue$))}},VNb=function(a){a&1&&(I(0,"b-callout",17)(1,"b-callout-body"),Q(2," This issue has been deleted. "),E(3,RNb,4,1),S(4,"async"),E(5,SNb,2,0,"a",26),J(),I(6,"b-callout-actions"),E(7,UNb,4,6,"button",27),S(8,"async"),J()());if(a&2){var b,c;a=P(3);z(3);F((b=(b=T(4,3,a.snapshot$))==null?null:b.deletionReason)?3:-1,b);z(2);F(a.activeSession.isInternalSession()?5:-1);
z(2);F((c=T(8,5,a.id$))?7:-1,c)}},WNb=function(a,b){a&1&&(I(0,"output",32),Q(1),J());a&2&&(z(),R(" ",b," "))},YNb=function(a,b){a&1&&(I(0,"a",31,5),Q(2),E(3,WNb,2,1,"output",32),S(4,"async"),J());if(a&2){var c;a=b.$implicit;b=L(1);D("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",ih(7,XNb));z(2);R(" ",a.title," ");z();F((c=T(4,5,a.count$))?3:-1,c)}},ZNb=function(a,b){a&1&&(I(0,"header",18),K(1,"b-tracker-banner",29),S(2,"async"),S(3,"async"),K(4,"issue-header",21),I(5,"nav",30),
Dg(6,YNb,5,8,"a",31,Cg),J(),K(8,"mat-tab-nav-panel",null,4),J());if(a&2){a=L(9);var c=P(3);z();D("issueId",T(2,4,c.id$))("trackerId",T(3,6,c.issueTrackerId$));z(3);D("issueId",b);z();D("tabPanel",a);z();Eg(c.tabs)}},$Nb=function(a,b){a&1&&K(0,"issue-metadata-sidebar",21);a&2&&D("issueId",b)},aOb=function(a){a&1&&(I(0,"div",14),S(1,"async"),E(2,ONb,7,7,"b-callout",15),S(3,"async"),E(4,QNb,4,3,"b-callout",16),S(5,"async"),E(6,VNb,9,7,"b-callout",17),S(7,"async"),E(8,ZNb,10,8,"header",18),S(9,"async"),
I(10,"div",19)(11,"article",20),K(12,"router-outlet"),J(),E(13,$Nb,1,1,"issue-metadata-sidebar",21),S(14,"async"),J()());if(a&2){var b,c;a=P(2);wg("issue-editor-false",!T(1,7,a.permissions.hasAclToEdit$));z(2);F(T(3,9,a.archived$)?2:-1);z(2);F(T(5,11,a.inArchivedComponent$)?4:-1);z(2);F(T(7,13,a.deleted$)?6:-1);z(2);F((b=T(9,15,a.id$))?8:-1,b);z(5);F((c=T(14,17,a.id$))?13:-1,c)}},bOb=function(a){a&1&&(I(0,"div",13),K(1,"b-tracker-redirect",33),S(2,"async"),J());a&2&&(a=P(2),z(),D("issue",T(2,1,a.issue$)))},
cOb=function(a){a&1&&(E(0,aOb,15,19,"div",12),S(1,"async"),Ag(2,bOb,3,3,"div",13));a&2&&(a=P(),F(T(1,1,a.showTrackerRedirect$)?2:0))},dOb=function(a,b){a&1&&(I(0,"h3"),Q(1," Redirecting to "),I(2,"a",34),Q(3),J()());a&2&&(a=b.monorailRedirectUrl,z(2),D("href",a,uf),z(),R(" ",a," "))},eOb=function(a){a&1&&(K(0,"b-access-denied-metadata",35),S(1,"async"));a&2&&(a=P(2),D("issueMetadata",T(1,1,a.issueMetadata$)))},fOb=function(a){a&1&&K(0,"b-access-denied-metadata",36)},gOb=function(a){a&1&&(I(0,"div",
13),E(1,eOb,2,3,"b-access-denied-metadata",35)(2,fOb,1,0,"b-access-denied-metadata",36),J());a&2&&(a=P(),z(),F(a.activeSession.isInternalSession()?1:2))},hOb=function(a,b){a&1&&K(0,"b-issues-table",0);a&2&&(a=P(),D("issueIds",b)("menuItemFactory",a.getMenuItems)("tableColumns",a.tableColumns)("initialSort",a.initialSort))},jOb=function(a){if(a&1){var b=r();I(0,"div",2);K(1,"img",3);I(2,"p",4);Q(3," This issue has no duplicates ");J();I(4,"p",5);Q(5," A duplicate is an issue with similar content. ");
J();I(6,"p",5);Q(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');I(8,"a",6);Q(9,"Learn more");J()();I(10,"button",7);M("click",function(){t(b);var c=P(2);return v(iOb(c))});Q(11," Add ");J()()}a&2&&(a=P(2),z(),D("src",a.ROBOT_SLEEPING,uf))},kOb=function(a,b){a&1&&K(0,"b-duplicates-table",10);a&2&&(a=P(2),D("issueId",b)("duplicateIds",a))},lOb=function(a,b){a&1&&(I(0,"a",12),Q(1," View as search results "),J());a&2&&D("routerLink",b.path)("queryParams",
b.params)},mOb=function(a){if(a&1){var b=r();I(0,"h4",8);Q(1);S(2,"async");I(3,"button",9);M("click",function(){t(b);var e=P(2);return v(iOb(e))});Q(4," Add ");J()();E(5,kOb,1,2,"b-duplicates-table",10);S(6,"async");I(7,"aside",11);E(8,lOb,2,2,"a",12);S(9,"async");J()}if(a&2){var c,d;a=P(2);z();R("Duplicates ",T(2,3,a.counts.countDuplicateDisplay$)," ");z(4);F((c=T(6,5,a.id$))?5:-1,c);z(3);F((d=T(9,7,a.dupeUrl$))?8:-1,d)}},nOb=function(a){a&1&&(E(0,jOb,12,1,"div",2),S(1,"async"),Ag(2,mOb,10,9));a&
2&&(a=P(),F(T(1,1,a.showTable$)?2:0))},oOb=function(a){a&1&&(I(0,"aside",1),K(1,"b-spinner"),J())},pOb=function(a){a&1&&K(0,"mat-icon",2)},qOb=function(a){a&1&&K(0,"mat-icon",3)},rOb=function(a){a&1&&K(0,"mat-icon",4)},sOb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"label");Q(2,"File path");J()();I(3,"div",6)(4,"input",7);M("keyup",function(c){t(b);var d=P(2).$implicit;P();d.type==="text-input"&&(d.value=c.target.value);return v()});J()();I(5,"div",6)(6,"button",8);M("click",function(){t(b);var c=
P(2).$implicit;P();if(c.type==="text-input"){var d;(d=c.callback)==null||d.call(c)}return v()});Q(7," Continue ");J()()}a&2&&(a=P(2).$implicit,z(4),D("disabled",a.state=="complete"),z(2),D("disabled",a.state=="complete"))},tOb=function(a,b){a&1&&K(0,"change-block",9);a&2&&D("lines",b.$implicit.lines)},uOb=function(a){a&1&&(Q(0),Dg(1,tOb,1,1,"change-block",9,Cg));if(a&2){a=P(2).$implicit;var b=P();R(" ",a.description," ");z();Eg(b.blocks(a))}},vOb=function(a){if(a&1){var b=r();I(0,"div",10);Q(1);J();
I(2,"button",11);M("click",function(){t(b);var c=P(2).$implicit,d=P();return v(d.patch(c))});Q(3," Patch changelist into new workspace ");J()}a&2&&(a=P(2).$implicit,z(),R(" ",a.description," "),z(),D("disabled",a.state!=="in-progress"))},wOb=function(a){a&1&&Q(0);a&2&&(a=P(2).$implicit,R(" ",a.description," "))},xOb=function(a){a&1&&(I(0,"section"),E(1,sOb,8,2)(2,uOb,3,1)(3,vOb,4,2)(4,wOb,1,1),Q(5),J());if(a&2){var b;a=P().$implicit;xg(a.type);z();F((b=a.type)==="text-input"?1:b==="diff-preview"?
2:b==="changelist-create"?3:4);z(4);R(" ",a.error," ")}},yOb=function(a,b){a&1&&(I(0,"div",0)(1,"header")(2,"div",1),E(3,pOb,1,0,"mat-icon",2)(4,qOb,1,0,"mat-icon",3)(5,rOb,1,0,"mat-icon",4),J(),I(6,"span"),Q(7),J()(),E(8,xOb,6,4,"section",5),J());if(a&2){var c;a=b.$implicit;z(3);F((c=a.state)==="error"?3:c==="complete"?4:5);z(4);ch(a.title);z();F(a.type!=="complete"?8:-1)}},zOb=function(a){if(a&1){var b=r();I(0,"div",2);K(1,"mat-icon",3);I(2,"div",4);Hg(3,5);I(4,"div",6)(5,"button",7);M("click",
function(){t(b);var c=P();return v(c.open())});Q(6," Suggest a fix for me ");J()()()()}a&2&&(P(),a=L(3),z(3),D("ngTemplateOutlet",a))},AOb=function(a){a&1&&(I(0,"div"),Q(1," AI-generated code changes may inaccurate or offensive information that doesn't represent Google's views. Please review all suggested changes. "),J())},BOb=function(a){a&1&&(I(0,"h4",8),Q(1," AI-generated code change "),I(2,"xap-bubble",9)(3,"xap-icon-trigger"),K(4,"mat-icon",10),J(),C(5,AOb,2,0,"ng-template",null,1,nh),J(),I(7,
"a",11),K(8,"mat-icon",12),J()());a&2&&(a=L(6),z(2),D("panelTemplate",a))},COb=function(a,b){a&1&&(I(0,"span",9),Q(1," of "),I(2,"a",10),Q(3),J()());a&2&&(P(2),a=L(11),z(2),Pg("routerLink","/issues/",b),D("onedevHovercardTrigger",a),z(),R(" ",b," "))},DOb=function(a,b){a&1&&(I(0,"div")(1,"div",8),S(2,"async"),Q(3),J(),E(4,COb,4,4,"span",9),S(5,"async"),J());if(a&2){var c;a=P();z();zg("chippy ",T(2,6,a.statusCssClass$));var d;D("title",(d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"");z(2);var e;R(" ",
(e=a.STATUS_JS_TERSE.get(b))!=null?e:""," ");z();F((c=T(5,8,a.canonicalId$))?4:-1,c)}},EOb=function(a,b){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(),zg("b-chip squared issue-type-",b),z(),R(" ",a.issueTypeToDisplay(b)," "))},FOb=function(a,b){a&1&&K(0,"b-issue-hotlists",6);a&2&&D("issueId",b)},GOb=function(a){a&1&&(K(0,"b-issue-card",11,1),S(2,"async"));if(a&2){a=L(1);var b=P();D("onedevIsHovercardReady",a.init)("issueId",T(2,2,b.canonicalId$))}},HOb=function(a){a&1&&(I(0,"div",0),K(1,"llm-summary"),
J())},IOb=function(a){a&1&&(K(0,"b-note-container",28),S(1,"async"));if(a&2){a=P(2);var b=P(),c=P();D("issueId",b)("issueAccessLevel",T(1,4,c.canonicalAccessLevel$))("formattingMode",a.formattingMode)("note",a)}},JOb=function(a){a&1&&(I(0,"mat-expansion-panel",24)(1,"mat-expansion-panel-header",25)(2,"mat-panel-title")(3,"span",26),Q(4,"Description"),J()()(),C(5,IOb,2,6,"ng-template",27),J())},KOb=function(a,b){a&1&&E(0,JOb,6,0,"mat-expansion-panel",24);a&2&&F(b.unlinkifiedComment?0:-1)},LOb=function(a,
b){a&1&&(I(0,"div",29),Q(1),J());a&2&&(a=P(2),zg("chippy status-",b),D("title",a.STATUS_JS_FULL_TEXT.get(b)),z(),R(" ",a.STATUS_JS_TERSE.get(b)," "))},MOb=function(a,b){a&1&&(K(0,"span",30),I(1,"span",31),Q(2),J());a&2&&(z(2),dh(" ",b.length," duplicate",b.length===1?"":"s"," "))},NOb=function(a,b){a&1&&(Kg(0),K(1,"span",30),I(2,"div",32)(3,"span",33),Q(4),J(),K(5,"mat-icon",34),J());a&2&&(a=(b==null?null:b.aggregatedData==null?null:b.aggregatedData.voteCount)||0,z(2),Pg("matTooltip","",a," votes on this issue"),
z(2),ch(a>9999?"9999+":a))},OOb=function(a,b){a&1&&(K(0,"span",30),I(1,"div",35)(2,"span",33),Q(3),J(),K(4,"mat-icon",36),J());a&2&&(z(),Pg("matTooltip","",b.length," comments on this issue"),z(2),ch(b.length))},POb=function(a,b){a&1&&K(0,"span",30)(1,"b-formatted-date-time",37);a&2&&(z(),D("timestamp",b/1E3))},QOb=function(a,b){if(a&1){var c=r();I(0,"button",38);M("click",function(){var d=t(c).$implicit;P();var e=L(32);P().reject(d);var f;(f=e.trigger)==null||f.close();return v()});I(1,"span");Q(2);
J()()}a&2&&(a=b.$implicit,b=P(2),z(2),ch(b.REJECT_REASON_TO_DISPLAY[a]))},ROb=function(a,b){if(a&1){var c=r();Kg(0);S(1,"async");I(2,"div",5)(3,"div",6)(4,"a",7)(5,"span",8);Q(6);J();K(7,"mat-icon",9);J();E(8,KOb,1,1);S(9,"async");I(10,"div",10)(11,"span");Q(12);J();I(13,"button",11);M("click",function(){var A=t(c),G=P();return v(G.copyIssueId(A))});K(14,"mat-icon",12);J();K(15,"b-issue-priority-display",13);S(16,"async");E(17,LOb,2,5,"div",14);S(18,"async");E(19,MOb,3,2);S(20,"async");E(21,NOb,6,
3);S(22,"async");E(23,OOb,5,3);S(24,"async");E(25,POb,2,1);S(26,"async");J()();I(27,"div",15)(28,"button",16);M("click",function(){t(c);var A=P();return v(A.accept())});K(29,"mat-icon",17);Q(30," Accept ");J();I(31,"split-button",18,0)(33,"button",19);M("click",function(){t(c);var A=P();return v(A.reject())});K(34,"mat-icon",20);Q(35," Reject ");J();I(36,"div",21);Dg(37,QOb,3,1,"button",22,Cg);J()();I(39,"button",23);M("click",function(){t(c);var A=P();return v(A.openDupeDialog())});Q(40,"Dedupe with another issue");
J()()()}if(a&2){var d,e,f,h,k,q;a=P();var u=T(1,17,a.canonicalTitle$);z(4);D("href",a.getIssueLink(b),uf);z(2);ch(u);z(2);F((d=T(9,19,a.canonicalDescription$))?8:-1,d);z(4);R(" ",b," ");z(3);D("issuePriority",T(16,21,a.canonicalPriority$));z(2);F((e=T(18,23,a.statusForChip$))?17:-1,e);z(2);F((f=T(20,25,a.canonicalDuplicates$))?19:-1,f);z(2);F((h=T(22,27,a.canonicalIssue$))?21:-1,h);z(2);F((k=T(24,29,a.canonicalComments$))?23:-1,k);z(2);F((q=T(26,31,a.canonicalCreateMicros$))?25:-1,q);z(3);D("disabled",
a.isSaving);ng("aria-label","Accept recommendation and mark current issue as duplicate of "+u);z(3);D("size","small")("disabled",a.isSaving);z(2);D("disabled",a.isSaving);ng("aria-label","Reject recommendation to mark current issue as duplicate of "+u);z(4);Eg(a.REJECT_REASONS);z(2);D("disabled",a.isSaving)}},SOb=function(a,b){a&1&&K(0,"b-issue-person-card",4);a&2&&D("email",b)},TOb=function(a,b){a&1&&(I(0,"span",3),Q(1),S(2,"shortenEmail"),J(),I(3,"onedev-hovercard",null,0),E(5,SOb,1,1,"b-issue-person-card",
4),J());if(a&2){var c;a=L(4);var d=P(2);D("onedevHovercardTrigger",a);z();R(" ",mh(2,3,d.userToString(b),30)," ");z(4);F((c=b.emailAddress)?5:-1,c)}},UOb=function(a,b){if(a&1){var c=r();I(0,"a",5);M("click",function(d){var e=t(c),f=P(2);return v(f.scrollCommentIntoView(d,e))});Q(1);J()}a&2&&(a=P(2),pg("aria-label","Comment number ",b),D("routerLinkObj",a.getCommentNumberLink(b)),z(),R(" #",b))},VOb=function(a){a&1&&(Fg(0),Q(1,","),Gg())},WOb=function(a,b){a&1&&(I(0,"span",1),E(1,TOb,6,6),I(2,"span"),
E(3,UOb,2,4,"a",2),E(4,VOb,2,0,"ng-container"),J()());if(a&2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;z();F((c=a.userPerformingActionUser)?1:-1,c);z(2);F((d=a.commentNumber)?3:-1,d);z();F(e!==b-1?4:-1)}},XOb=function(a,b){a&1&&(I(0,"div",2)(1,"a",3),S(2,"removePngExtension"),K(3,"b-secure-image-widget",4),J(),K(4,"comments-info",5),J());a&2&&(a=b.$implicit,b=P(3),z(),Qg("href",T(2,5,a.src),uf),z(2),D("showByDefault",!0)("src",a.srcCorp),z(),D("issueId",b.issueId)("comments",a.comments))},
ZOb=function(a){if(a&1){var b=r();I(0,"button",8);M("click",function(){t(b);var c=P(2),d=P(2);return v(YOb(d,c.length))});Q(1," Load more ");J()}},$Ob=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all screenshots ");J()}},aPb=function(a){a&1&&E(0,ZOb,2,0,"button",6)(1,$Ob,2,0,"button",7);a&2&&(a=P(3),F(a.paginate?0:1))},bPb=function(a,b){a&1&&(I(0,"div",1),Dg(1,XOb,5,7,"div",2,Bg),S(3,"async"),J(),E(4,aPb,2,1));if(a&2){a=
P();var c=P();wg("show-all-images",c.paginate);z();Eg(T(3,3,c.imagesToRender$));z(3);F(a.length!==b.length?4:-1)}},cPb=function(a){a&1&&(E(0,bPb,5,5),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.imagesToRender$))?0:-1,b)}},dPb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=b.get(c.src))!=null?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var h=l(f);f=h.next().value;h=h.next().value;return{src:f,comments:jk(h)}})},
ePb=function(a){a&1&&(I(0,"span",1),Q(1),S(2,"reverse"),J());a&2&&(a=P(),z(),ch(T(2,1,a.leftText)))},fPb=function(a){a&1&&(I(0,"b-external-hyperlink-widget",2),Q(1),J());a&2&&(a=P(),D("href",a.redirectedHref)("originalHref",a.originalHref),z(),ch(a.linkText))},gPb=function(a){a&1&&(I(0,"b-issue-reference-widget",4),Q(1),J());a&2&&(a=P(2),D("href",a.redirectedHref)("issueId",a.issueId),z(),ch(a.linkText))},hPb=function(a){a&1&&(I(0,"a",5),Q(1),J());a&2&&(a=P(2),Qg("href",a.redirectedHref,uf),z(),ch(a.linkText))},
iPb=function(a){a&1&&E(0,gPb,2,3,"b-issue-reference-widget",4)(1,hPb,2,2,"a",5);a&2&&(a=P(),F(a.issueId?0:1))},jPb=function(a){a&1&&(I(0,"span",3),Q(1),J());a&2&&(a=P(),z(),ch(a.rightText))},kPb=function(a){var b=document.createElement("div");a&&rna(b,a);return b},lPb=function(a){a&1&&(I(0,"td"),K(1,"b-issue-priority-display",0),J(),I(2,"td",1)(3,"span",2),Q(4),J(),K(5,"mentioned-link-with-context",3),J(),I(6,"td"),K(7,"comments-info",4),S(8,"toComments"),J());if(a&2){a=P().$implicit;var b=P(3);z();
D("matTooltip",a.hasViewAccess?"":"Access is denied to this issue")("issuePriority",a.priority);z(2);D("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");z();var c;R(" ",(c=a.title)!=null?c:"--"," ");z();D("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);z(2);D("issueId",b.issueId)("comments",T(8,8,a.sourceComments))}},mPb=function(a,b){a&1&&(I(0,"tr"),E(1,lPb,9,10),J());a&2&&(a=b.$implicit,z(),F(a.sourceComments&&a.relatedLinks?1:-1))},nPb=function(a){if(a&
1){var b=r();I(0,"button",7);M("click",function(){t(b);var c=P(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return v()});Q(1," Load more ");J()}},oPb=function(a){if(a&1){var b=r();I(0,"button",8);M("click",function(){t(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all mentioned issues ");J()}},pPb=function(a){a&1&&(I(0,"div"),E(1,nPb,2,0,"button",5)(2,oPb,2,0,"button",6),J());a&2&&(a=P(3),z(),F(a.paginate?1:2))},qPb=function(a,b){a&1&&(I(0,"section")(1,
"table"),Dg(2,mPb,2,1,"tr",null,Cg),J(),E(4,pPb,3,1,"div"),J());a&2&&(a=P(),z(2),Eg(a),z(2),F(b.length!==a.length?4:-1))},rPb=function(a){a&1&&(E(0,qPb,5,1,"section"),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.allMentionedIssues$))?0:-1,b)}},sPb=function(a,b){a&1&&(I(0,"div",0),K(1,"mentioned-link-with-context",1)(2,"comments-info",2),S(3,"toComments"),J());a&2&&(a=b.$implicit,b=P(3),z(),D("sourceComment",a[0].comment)("relatedLink",a[0]),z(),D("issueId",b.issueId)("comments",T(3,4,a)))},tPb=
function(a){if(a&1){var b=r();I(0,"button",5);M("click",function(){t(b);var c=P(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return v()});Q(1," Load more ");J()}},uPb=function(a){if(a&1){var b=r();I(0,"button",6);M("click",function(){t(b);var c=P(4);return v(c.goToResourcesTab())});Q(1," See all related links ");J()}},vPb=function(a){a&1&&(I(0,"div"),E(1,tPb,2,0,"button",3)(2,uPb,2,0,"button",4),J());a&2&&(a=P(3),z(),F(a.paginate?1:2))},xPb=function(a,b){a&1&&
(Dg(0,sPb,4,6,"div",0,wPb),E(2,vPb,3,1,"div"));a&2&&(a=P(),Eg(b),z(2),F(a.length!==b.length?2:-1))},yPb=function(a){a&1&&(E(0,xPb,3,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.linkGroupsToRender$))?0:-1,b)}},APb=function(a,b){var c=a.filter(function(d){return sJa(d[0])});a=a.filter(function(d){return!sJa(d[0])});return zPb([].concat(p(c),p(a)).slice(0,b),"ASCENDING")},BPb=function(a){a&1&&K(0,"mat-icon",10)},CPb=function(a){a&1&&(Q(0),S(1,"async"));if(a&2){a=P(2);var b;R("Screenshots (",(b=
T(1,1,a.distinctImageLinksCount$))!=null?b:0,")")}},FPb=function(a,b){if(a&1){var c=r();I(0,"inline-images-summary",12);S(1,"async");M("click",function(){t(c);var e=P(3);DPb(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return v()});J()}if(a&2){a=P(3);var d;D("issueId",b)("imageLinks",(d=T(1,2,a.imageLinks$))!=null?d:ih(4,EPb))}},GPb=function(a){a&1&&(E(0,FPb,2,5,"inline-images-summary",11),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.issueId$))?0:-1,b)}},HPb=function(a){a&1&&K(0,"mat-icon",
13)},IPb=function(a){a&1&&(Q(0),S(1,"async"));if(a&2){a=P(2);var b;R("Mentioned issues (",(b=T(1,1,a.distinctIssuesCount$))!=null?b:0,")")}},JPb=function(a,b){if(a&1){var c=r();I(0,"b-mentioned-issues",15);M("click",function(){t(c);var d=P(3);DPb(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});J()}a&2&&(a=P(3),D("issueReferences",b)("currentIssueId",a.issueId))},KPb=function(a){a&1&&(E(0,JPb,1,2,"b-mentioned-issues",14),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.issues$))?
0:-1,b)}},LPb=function(a){a&1&&K(0,"mat-icon",16)},MPb=function(a){a&1&&(Q(0),S(1,"async"));if(a&2){a=P(2);var b;R("Links (",(b=T(1,1,a.distinctOtherLinksCount$))!=null?b:0,")")}},NPb=function(a){if(a&1){var b=r();I(0,"related-links-widget",17);S(1,"async");M("click",function(){t(b);var d=P(2);DPb(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return v()});J()}if(a&2){a=P(2);var c;D("links",(c=T(1,2,a.otherLinks$))!=null?c:ih(4,EPb))("issueId",a.issueId)}},OPb=function(a){a&1&&K(0,"mat-icon",18)},
PPb=function(a){a&1&&Q(0,"Similar issues")},QPb=function(a,b){if(a&1){var c=r();I(0,"suggested-similar-issues",20);M("click",function(){t(c);var e=P(4);DPb(e.issueSummaryTracking,e.issueId,e.TabKeys.SIMILAR_ISSUES);return v()});J()}if(a&2){a=P();var d=P(3);D("issueId",d.issueId)("similarIssueIds",a)("similarIssuesEnrichments",b)}},RPb=function(a){a&1&&(E(0,QPb,1,3,"suggested-similar-issues",19),S(1,"async"));if(a&2){var b;a=P(3);F((b=T(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},SPb=function(a){a&
1&&(E(0,RPb,2,3),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.similarIssueIds$))?0:-1,b)}},UPb=function(a,b){if(a&1){var c=r();I(0,"expandable-tabs",2);M("expandedTabsChanged",function(d){var e=t(c),f=P();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){t(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var h=l(TPb),k=h.next();!k.done;k=h.next())k=k.value,d.has(k)?(ws(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+
"-content-not-shown")):(ws(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));d.size>0?(f.recordImpressionOnce(),ws(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(ws(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return v()});I(1,"expandable-tab",
3);C(2,BPb,1,0,"ng-template",4)(3,CPb,2,3,"ng-template",5)(4,GPb,2,3,"ng-template",6);J();I(5,"expandable-tab",7);C(6,HPb,1,0,"ng-template",4)(7,IPb,2,3,"ng-template",5)(8,KPb,2,3,"ng-template",6);J();I(9,"expandable-tab",8);C(10,LPb,1,0,"ng-template",4)(11,MPb,2,3,"ng-template",5)(12,NPb,2,5,"ng-template",6);J();I(13,"expandable-tab",9);C(14,OPb,1,0,"ng-template",4)(15,PPb,1,0,"ng-template",5)(16,SPb,2,3,"ng-template",6);J()()}a&2&&(a=P(),D("tabKeys",b)("expandedTabs",a.initiallyExpandedTabs),z(),
D("key",a.TabKeys.IMAGES),z(4),D("key",a.TabKeys.MENTIONED_ISSUES),z(4),D("key",a.TabKeys.LINKS),z(4),D("key",a.TabKeys.SIMILAR_ISSUES))},VPb=function(a,b){a&1&&(I(0,"li",3)(1,"div",6),K(2,"b-user-image",7),J(),I(3,"div",8),K(4,"b-user-display",9)(5,"b-formatted-date-time",10),I(6,"p",11),Q(7," Formatting: "),I(8,"code",12),Q(9),J()(),K(10,"br"),I(11,"span",13)(12,"b-person-hovercard",14),S(13,"omitObfuscatedEmail"),Q(14),S(15,"appendDomain"),J()(),Q(16),J(),I(17,"pre"),Q(18),J()());a&2&&(a=b.$implicit,
b=b.$index,z(2),D("email",a.author==null?null:a.author.emailAddress),z(2),D("model",a.author),z(),D("timestamp",a.updateTime),z(4),R(" ",a.formattingMode," "),z(3),D("email",T(13,8,a.author==null?null:a.author.emailAddress)),z(2),R(" <",T(15,10,a.author==null?null:a.author.emailAddress),"> "),z(2),R(" #",b+1," "),z(2),ch(a.updateText))},WPb=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");J()}},XPb=function(a){a&1&&(I(0,
"header",4)(1,"h4",6),Q(2,"Status Update"),J(),I(3,"p",7),Q(4,"No update yet."),J(),E(5,WPb,2,0,"button",8),S(6,"async"),J());a&2&&(a=P(2),z(5),F(T(6,1,a.showEditButton$)?5:-1))},ZPb=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(4);return v(YPb(c))});Q(1," Mark as fresh ");J()}},$Pb=function(a){if(a&1){var b=r();I(0,"button",16);M("click",function(){t(b);var c=P(3);return v(c.editStatusUpdate())});Q(1," Edit ");J();E(2,ZPb,2,0,"button",17);S(3,"async")}a&2&&(a=P(3),
z(2),F(T(3,1,a.freshnessIndicator$)===a.Freshness.STALE?2:-1))},aQb=function(a){a&1&&K(0,"mat-icon",19)},bQb=function(a,b){a&1&&(E(0,aQb,1,0,"mat-icon",19),S(1,"async"),Q(2," Updated by "),I(3,"span",20),Q(4),S(5,"shortenEmail"),J(),K(6,"b-formatted-date-time",21),I(7,"onedev-hovercard",null,0),K(9,"b-issue-person-card",22),J());if(a&2){a=L(8);var c=P(3);F(T(1,5,c.freshnessIndicator$)===c.Freshness.FRESH?0:-1);z(3);D("onedevHovercardTrigger",a);z();var d;R(" ",T(5,7,(d=b.author==null?null:b.author.emailAddress)!=
null?d:"")," ");z(2);D("timestamp",b.updateTime);z(3);var e;D("email",(e=b.author==null?null:b.author.emailAddress)!=null?e:"")}},cQb=function(a,b){a&1&&K(0,"b-actions-menu",14);a&2&&D("buttonLabel","Status Update actions")("menuItems",b)},dQb=function(a,b){a&1&&(K(0,"b-note-container",23),S(1,"async"),S(2,"async"));if(a&2){a=P();var c=P(3),d;D("issueId",a.issueId)("issueAccessLevel",T(1,4,c.accessLevel$))("note",b)("formattingMode",(d=T(2,6,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)}},eQb=
function(a){if(a&1){var b=r();I(0,"button",25);M("click",function(){t(b);var c=P(4);return v(c.isCollapsed=!1)});Q(1," Show More ");J()}},fQb=function(a){a&1&&(I(0,"div",15)(1,"div",null,1),E(3,dQb,3,8,"b-note-container",23),S(4,"async"),J(),E(5,eQb,2,0,"button",24),J());if(a&2){var b;a=P(3);z();wg("collapsed",a.isCollapsed);z(2);F((b=T(4,4,a.statusUpdateAsNote$))?3:-1,b);z(2);F(a.isCollapsed?5:-1)}},gQb=function(a){a&1&&(I(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),Q(4,"Status Update"),J(),
E(5,$Pb,4,3),S(6,"async"),J(),I(7,"div",13),E(8,bQb,10,9),S(9,"async"),E(10,cQb,1,2,"b-actions-menu",14),S(11,"async"),J()(),E(12,fQb,6,6,"div",15),S(13,"async"),J());if(a&2){var b,c,d;a=P(2);z(5);F(T(6,4,a.showEditButton$)?5:-1);z(3);F((b=T(9,6,a.statusUpdate$))?8:-1,b);z(2);F((c=T(11,8,a.menuItems$))?10:-1,c);z(2);F((d=T(13,10,a.statusUpdate$))?12:-1,d)}},iQb=function(a,b){a&1&&(I(0,"div"),S(1,"async"),K(2,"mat-icon",3),E(3,XPb,7,3,"header",4),E(4,gQb,14,12,"div",5),J());a&2&&(a=P(),zg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",
T(1,9,a.semanticClass$)),wg("display-none",jh(11,hQb,a.UiState.LOADING).includes(b))("short-height",a.UiState.EMPTY===b),z(3),F(b===a.UiState.EMPTY?3:-1),z(),F(b===a.UiState.NORMAL?4:-1))},jQb=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";case 0:return"";default:return""}},kQb=function(a){a&1&&(K(0,"canonical-recommendation",9,0),S(2,"async"));if(a&2){a=L(1);var b=P();wg("hidden",!T(2,3,a.show$));D("currentIssueId",b)}},lQb=function(a){a&1&&K(0,"llm-suggested-bug-fix",7);
a&2&&(a=P(),D("issueId",a))},mQb=function(a,b){a&1&&(K(0,"issue-description-area",5),E(1,kQb,3,5,"canonical-recommendation",6),S(2,"async"),K(3,"status-update",7),E(4,lQb,1,1,"llm-suggested-bug-fix",7),K(5,"b-issue-description",8));a&2&&(a=P(),D("id",b),z(),F(a.enableIDPCanonicalRecommendation&&T(2,5,a.issuePermissionService.hasAclToEdit$)?1:-1),z(2),D("issueId",b),z(),F(a.enableGoosePrompting||a.enableGoosePromptingSupportedIssues?4:-1),z(),D("id",b))},nQb=function(a,b){a&1&&(K(0,"issue-summary-card",
10,1),S(2,"async"));a&2&&(a=L(1),wg("hidden",!T(2,3,a.shouldShowSummaryCard$)),D("issueId",b))},oQb=function(a){a&1&&K(0,"issue-event-list",12);a&2&&(a=P(),D("id",a))},pQb=function(a){a&1&&K(0,"issue-event-list",12);a&2&&(a=P(),D("id",a))},qQb=function(a,b){a&1&&(I(0,"div",11),K(1,"b-event-stream-header"),E(2,oQb,1,1,"issue-event-list",12),K(3,"b-post-comment",7),E(4,pQb,1,1,"issue-event-list",12),J());a&2&&(a=P(),wg("recent-first",a.showRecentEventsFirst),z(2),F(a.showRecentEventsFirst?-1:2),z(),
D("issueId",b),z(),F(a.showRecentEventsFirst?4:-1))},rQb=function(a){a&1&&(I(0,"section")(1,"h4"),K(2,"mat-icon",1),Q(3),J(),K(4,"inline-images-summary",2)(5,"br")(6,"hr",3),J());if(a&2){a=P(2);var b=P();z(3);R(" Screenshots (",a.length,") ");z();D("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},sQb=function(a){a&1&&E(0,rQb,7,4,"section");a&2&&(a=P(),F(a.length?0:-1))},tQb=function(a){a&1&&E(0,sQb,1,1);a&2&&(a=P(2),F(a.isInternalSession?0:-1))},uQb=function(a){a&1&&(I(0,"section")(1,"h4"),K(2,
"mat-icon",4),Q(3),J(),K(4,"b-mentioned-issues",5)(5,"br")(6,"hr",3),J());if(a&2){a=P();var b=P();z(3);R(" Mentioned issues (",a.length,") ");z();D("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},vQb=function(a,b){a&1&&E(0,uQb,7,4,"section");a&2&&F(b.length?0:-1)},wQb=function(a){a&1&&(I(0,"section")(1,"h4"),K(2,"mat-icon",6),Q(3),J(),K(4,"related-links-widget",7),J());if(a&2){a=P();var b=P();z(3);R(" Links (",a.length,") ");z();D("links",a)("issueId",b.issueId)("paginate",!0)}},
xQb=function(a,b){a&1&&E(0,wQb,5,4,"section");a&2&&F(b.length?0:-1)},yQb=function(a){a&1&&(E(0,tQb,1,1),S(1,"async"),E(2,vQb,1,1),S(3,"async"),E(4,xQb,1,1),S(5,"async"));if(a&2){var b,c,d;a=P();F((b=T(1,3,a.imageLinks$))?0:-1,b);z(2);F((c=T(3,5,a.issueReferences$))?2:-1,c);z(2);F((d=T(5,7,a.otherLinks$))?4:-1,d)}},zQb=function(a,b){a&1&&K(0,"b-package-mentions-listing",2);if(a&2){a=b.$implicit;b=P(2);var c=P(),d=P();D("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},
AQb=function(a){if(a&1){var b=r();Dg(0,zQb,1,3,"b-package-mentions-listing",2,Cg);I(2,"p",3)(3,"a",4);M("click",function(){t(b);var c=P(3);return v(c.trackSqueegeeClick())});Q(4,"View in Squeegee");J()()}a&2&&(a=P(),Eg(a.mentions.packageMentionSet),z(3),D("href",a.link,uf))},BQb=function(a){a&1&&(I(0,"div",1),K(1,"img",5),I(2,"p",6),Q(3," This issue has no TODOs "),J(),I(4,"p",7),Q(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),I(6,"a",8),Q(7,"Learn more"),
J()()());a&2&&(a=P(3),z(),D("src",a.ROBOT_SLEEPING,uf))},CQb=function(a,b){a&1&&E(0,AQb,5,1)(1,BQb,8,1,"div",1);a&2&&F(b.mentions&&b.mentions.totalMentions>0?0:1)},DQb=function(a){a&1&&(E(0,CQb,2,1),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.codeMentionsState$))?0:-1,b)}},EQb=function(a){a&1&&K(0,"b-spinner",4);a&2&&D("large",!0)},FQb=function(a){a&1&&K(0,"b-hotlist-grid",5);a&2&&(a=P(),D("hotlists",a.hotlists))},GQb=function(a){a&1&&(I(0,"div",6),K(1,"b-spinner"),I(2,"span"),Q(3),J()());a&2&&
(a=P(),z(3),R(" Searching",a.query?" for "+a.query:"","..."))},HQb=function(a){a&1&&Q(0," No issues match your search. ")},IQb=function(a){a&1&&Q(0," Use search box to find issues. ")},KQb=function(a){a&1&&(I(0,"a",10),Q(1," Click to see all open issues"),J());a&2&&D("queryParams",ih(1,JQb))},LQb=function(a){a&1&&(I(0,"a",11),Q(1,"Learn more about searching"),J())},MQb=function(a){a&1&&(I(0,"div",7),K(1,"img",9),E(2,HQb,1,0)(3,IQb,1,0),E(4,KQb,2,2,"a",10)(5,LQb,2,0,"a",11),J());a&2&&(a=P(),D("bFocus",
!0),z(),D("src",a.SPACE_EMPTY_STATE,uf),z(),F(a.query?2:3),z(2),F(a.currentTracker?4:5))},OQb=function(a){if(a&1){var b=r();I(0,"div",8)(1,"b-issues-grid",12);M("init",function(c){t(b);var d=P();return v(d.resultsGrid=c)});gh("columnsChange",function(c){t(b);var d=P();fh(d.issueColumns,c)||(d.issueColumns=c);return v(c)});M("columnsChange",function(){t(b);P();NQb();return v()})("sortChange",function(c){t(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=P();
return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=P();return v(xs(c,c.page,1))})("onPrevPage",function(){t(b);var c=P();return v(xs(c,c.page,-1))});J()()}a&2&&(a=P(),z(),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex),eh("columns",a.issueColumns),D("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},PQb=function(a){a&1&&(I(0,"div",3)(1,"h2"),Q(2,"Manage SLOs"),J(),I(3,"p",5),Q(4,"You have admin rights for all SLOs listed below."),
J()())},QQb=function(a){a&1&&K(0,"b-spinner",4);a&2&&D("large",!0)},RQb=function(a){a&1&&K(0,"b-slo-grid",6);a&2&&(a=P(2),D("slos",a.activeSlos))},SQb=function(a){a&1&&(I(0,"div",7),Q(1,"You have no Active SLOs"),J())},TQb=function(a){a&1&&K(0,"b-slo-grid",6);a&2&&(a=P(3),D("slos",a.archivedSlos))},UQb=function(a){a&1&&(I(0,"p",12),Q(1," You have no archived SLOs. "),J())},VQb=function(a){a&1&&(I(0,"div",11),E(1,TQb,1,1,"b-slo-grid",6)(2,UQb,2,0,"p",12),J());a&2&&(a=P(2),z(),F(a.archivedSlos.length?
1:2))},WQb=function(a){if(a&1){var b=r();E(0,RQb,1,1,"b-slo-grid",6)(1,SQb,2,0,"div",7);I(2,"button",8);M("click",function(){t(b);var c=P();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return v()});I(3,"h4",9);K(4,"mat-icon",10);Q(5);J()();E(6,VQb,3,1,"div",11)}a&2&&(a=P(),F(a.activeSlos.length?0:1),z(4),wg("rotate-180",a.areArchivedSlosExpanded),D("svgIcon","arrow-dropdown"),z(),R(" Archived SLOs (",a.archivedSlos.length,") "),z(),F(a.areArchivedSlosExpanded?6:-1))},XQb=function(a){a&1&&
(I(0,"p"),Q(1,"Team inheritance path:"),J(),K(2,"b-team-breadcrumb",0));a&2&&(a=P(),z(2),D("teamPath",a.teamPath))},YQb=function(a){a&1&&(I(0,"p"),Q(1,"Component inheritance path:"),J(),K(2,"b-component-breadcrumb",1));a&2&&(a=P(),z(2),D("componentPathInfo",a.componentPath))},ZQb=function(a){var b={};a=l(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},bRb=function(a){return{approximateSize:zl(a,2),groupEmail:Oh(a,1),sizeCategory:$Qb[pl(a,3)],permissionCategory:aRb[pl(a,
5)]}},dRb=function(a){a=Wk(a,cRb,1,Fk());return{groupMetadata:(a!=null?a:[]).map(bRb)}},fRb=function(a,b){var c=[];if(!b||!a)return c;for(var d=l(eRb),e=d.next();!e.done;e=d.next()){e=e.value;var f=Xj(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},hRb=function(a,b){if(!a.appenders||!b||Pj(b.appenders,a.appenders))return!1;a=l(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,gRb.has(c)&&!b.appenders.includes(c))return!0;return!1},
iRb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.sizeCategory){case "LARGE":case "HUGE":case "ENORMOUS":b.set(c.groupEmail,c)}return b},jRb=function(a,b){return a!==0&&b!==0?"Adding large and open groups to a public component":a!==0?a===1?"Adding a large group to a public component":"Adding large groups to a public component":b===1?"Adding an open group to a public component":"Adding open groups to a public component"},kRb=function(a){if(a.size===0)return Kr;
for(var b=a.size===1?Qi("p",{},"The following large group is added: "):Qi("p",{},"The following large groups are added: "),c=[],d=l(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Qi("p",{},Pi([Qi("b",{},e)," has approximately ",Qi("b",{},f)," Googlers."])))}return Pi([b].concat(p(c)))},lRb=function(a){if(a.size===0)return Kr;var b=a.size===1?Qi("p",{},"The following open group is added: "):Qi("p",{},"The following open groups are added: "),c=[];a=l(a.keys());
for(var d=a.next();!d.done;d=a.next())c.push(Qi("p",{},Qi("b",{},d.value)));return Pi([b].concat(p(c)))},mRb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.permissionCategory==="OPEN_TO_JOIN"&&b.set(c.groupEmail,c);return b},nRb=function(a,b){var c=b.restrictedPlusReaders;return a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("GROUP:")}).length>0},oRb=function(a,b,c){a="USER:"+a;var d=c.admins.concat(c.inheritedAdmins);
b=b.admins.concat(b.inheritedAdmins).filter(function(f){return!d.includes(f)});c=b.filter(function(f){return f.startsWith("GROUP:")});var e=b.filter(function(f){return f.startsWith("USER:")});return d.includes(a)||b.length===0?!1:e.includes(a)?!0:c.length?!0:!1},ys=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:mua(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},pRb=function(a,b){a&1&&K(0,"b-contact-chip",
4);a&2&&(a=b.$implicit,b=P(2),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},qRb=function(a,b){a&1&&(I(0,"tr",2)(1,"th",3),Q(2),J(),I(3,"td"),Dg(4,pRb,1,5,"b-contact-chip",4,Cg),J()());a&2&&(a=b.$implicit,z(2),ch(a.permission),z(2),Eg(a.principals))},uRb=function(a){var b="minimal";b=b===void 0?"expanded":b;a=rRb(a);a=Eua(a,function(c){c=sRb(c);return tRb(c,b)});return rRb(a)},wRb=function(a){a=
rRb(a);a=Eua(a,function(b){b=vRb(b);return sRb(b)});return rRb(a)},tRb=function(a,b){var c=b==="expanded"?xRb:yRb;return new Set([].concat(p(a)).flatMap(function(d){return[].concat(p(c.get(d)))}))},vRb=function(a){return new Set(zRb.filter(function(b){return Vta(a,yRb.get(b))}))},sRb=function(a){a=tRb(a,"expanded");var b=vRb(a);return new Set([].concat(p(b)).filter(function(c){return[].concat(p(ARb.get(c))).every(function(d){return!b.has(d)})}))},rRb=function(a){var b=new Map;a=l(a.entries());for(var c=
a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;b.set(e,((f=b.get(e))!=null?f:new Set).add(c))}}return b},CRb=function(){function a(f,h){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(h);var q;h=l((q=b.get(h))!=null?q:[]);for(q=h.next();!q.done;q=h.next())q=q.value,k.has(q)||a(f,q)}var b=BRb,c=new Map,d=[].concat(p(b.values())).flatMap(function(f){return[].concat(p(f))});d=l(new Set([].concat(p(b.keys()),
p(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},DRb=function(a){var b=uRb(new Map([["componentAdmin",new Set(a.componentAdmin)],["issueAdmin",new Set(a.issueAdmin)],["issueEditor",new Set(a.editor)],["issueContributor",new Set(a.contributor)],["componentAdminOnly",new Set(a.componentAdminOnly)],["issueCreator",new Set(a.createIssuesOnly)],["issueAdminOnly",new Set(a.issueAdminOnly)],["issueEditorExisting",new Set(a.editExistingIssuesOnly)],["issueCommenter",new Set(a.commentOnly)],
["restrictedPlusViewer",new Set(a.viewRestrictedPlus)],["restrictedViewer",new Set(a.viewRestricted)],["issueViewer",new Set(a.viewer)]])),c=function(d){var e;return[].concat(p((e=b.get(d))!=null?e:[])).sort()};return{componentPermissions:{inheritedAdmins:a.inheritedComponentAdmin,admins:c("componentAdmin"),appenders:c("componentAppender")},issuesPermissions:{admins:c("issueAdmin"),editors:c("issueEditor"),appenders:c("issueAppender"),readers:c("issueReader"),restrictedReaders:c("issueRestrictedReader"),
restrictedPlusReaders:c("issueRestrictedPlusReader")}}},ERb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return jk([].concat(p(b?[].concat(p(b.inheritedAdmins||[]),p(b.admins||[]),p(b.appenders||[])):[]),p(a?[].concat(p(a.admins||[]),p(a.editors||[]),p(a.appenders||[]),p(a.readers||[]),p(a.restrictedReaders||[]),p(a.restrictedPlusReaders||[])):[]))).sort()},GRb=function(a){function b(e){var f;return[].concat(p((f=d.get(e))!=null?f:[])).sort()}if(!a)return FRb;var c=a.issueAccessPolicy;
a=a.componentAccessPolicy;var d=wRb(new Map([["issueAdmin",new Set(c.admins)],["issueEditor",new Set(c.editors)],["issueAppender",new Set(c.appenders)],["issueReader",new Set(c.readers)],["issueRestrictedReader",new Set(c.restrictedReaders)],["issueRestrictedPlusReader",new Set(c.restrictedPlusReaders)],["componentAdmin",new Set(a.admins)],["componentAppender",new Set(a.appenders)],["componentReader",new Set(a.readers)]]));return{componentAdmin:b("componentAdmin"),issueAdmin:b("issueAdmin"),editor:b("issueEditor"),
contributor:b("issueContributor"),componentAdminOnly:b("componentAdminOnly"),createIssuesOnly:b("issueCreator"),issueAdminOnly:b("issueAdminOnly"),editExistingIssuesOnly:b("issueEditorExisting"),commentOnly:b("issueCommenter"),viewRestrictedPlus:b("restrictedPlusViewer"),viewRestricted:b("restrictedViewer"),viewer:b("issueViewer"),inheritedComponentAdmin:a.inheritedAdmins}},HRb=function(a,b){var c;(c=!b)||(c=!(!Pj([].concat(p(b.admins)).sort(),[].concat(p(a.admins)).sort())||!Pj([].concat(p(b.appenders)).sort(),
[].concat(p(a.appenders)).sort())||!Pj(b.implicitAccess,a.implicitAccess)));return!c},IRb=function(a,b){return b&&a?!Pj([].concat(p(a.admins)).sort(),[].concat(p(b.admins)).sort())||!Pj([].concat(p(a.editors)).sort(),[].concat(p(b.editors)).sort())||!Pj([].concat(p(a.appenders)).sort(),[].concat(p(b.appenders)).sort())||!Pj([].concat(p(a.readers)).sort(),[].concat(p(b.readers)).sort())||!Pj([].concat(p(a.restrictedReaders)).sort(),[].concat(p(b.restrictedReaders)).sort())||!Pj([].concat(p(a.restrictedPlusReaders)).sort(),
[].concat(p(b.restrictedPlusReaders)).sort()):!1},JRb=function(a,b){var c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!kk(a[d],b[d]))return!0;return!1},KRb=function(a){if(a&1){var b=r();I(0,"input",15);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});J()}a&2&&(a=P(2),D("disabled",!a.rolesEditor.isAdmin),eh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},
LRb=function(a){if(a&1){var b=r();I(0,"input",16);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});J()}a&2&&(a=P(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),eh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},MRb=function(a){if(a&1){var b=r();I(0,"input",17);gh("ngModelChange",function(c){t(b);var d=P(2);fh(d.rolesEditor.component.accessLimit.accessLevel,
c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});J()}a&2&&(a=P(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),eh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},NRb=function(a,b){a&1&&(I(0,"p",14)(1,"a",18),Q(2," Learn more "),J()());a&2&&(z(),D("href",b,uf))},ORb=function(a){a&1&&(I(0,"div",0)(1,"div",3)(2,"span",4),Q(3,"Component visibility: "),J()(),I(4,"div",5)(5,"div",6),E(6,KRb,1,2,"input",7),I(7,"label",8),Q(8),J()(),I(9,"div",6),E(10,LRb,1,2,
"input",9),I(11,"label",10),Q(12),J()(),I(13,"div",11),E(14,MRb,1,2,"input",12),I(15,"label",13),Q(16),J()()(),E(17,NRb,3,1,"p",14),J());if(a&2){var b;a=P();z(6);F(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?6:-1);z(2);R(" ",v6a(a.AccessLevelStrings.INTERNAL)," ");z(2);F(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);z(2);R(" ",v6a(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");z(2);F(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?14:-1);z(2);R(" ",
v6a(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");z();F((b=TWa(a.documentationLinks))?17:-1,b)}},TRb=function(a,b){if(a&1){var c=r();I(0,"tr")(1,"td")(2,"div",1)(3,"div",2)(4,"label",3);Q(5);J();I(6,"button",4);K(7,"mat-icon",5);J()();I(8,"b-multi-user-input",6);M("usersChange",function(e){var f=t(c).$implicit,h=P();return v(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=t(c).$implicit,h=P();h.aclFormValidity.set(f.roleType,e);e=[].concat(p(h.aclFormValidity.values())).every(Boolean);
h.formIsValid.emit(e);return v()});J()()();I(9,"td");K(10,"b-icon",7);J();I(11,"td");K(12,"b-icon",7);J();I(13,"td");K(14,"b-icon",7);J();I(15,"td");K(16,"b-icon",7);J();I(17,"td");K(18,"b-icon",7);J();I(19,"td");K(20,"b-icon",7);J();I(21,"td");K(22,"b-icon",7);J();I(23,"td");K(24,"b-icon",7);J()()}if(a&2){a=b.$implicit;b=P();z(2);wg("bv2-edit-resource-readonly",b.canEdit);z(2);D("htmlFor",a.roleType);z();ch(a.label);z();D("matTooltip",a.tooltip);z(2);var d;D("idForInputBox",a.roleType)("users",a.users)("ariaLabel",
a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",(d=a.customValidators)!=null?d:ih(22,PRb))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?jh(26,QRb,kh(23,RRb,a.chips.displayText,a.chips.values)):ih(28,SRb));ng("disabled",b.canEdit?null:!0);z(2);D("name",b.getIconName(a,"componentAdmin"));z(2);D("name",b.getIconName(a,"createIssues"));z(2);D("name",b.getIconName(a,"issueAdmin"));z(2);
D("name",b.getIconName(a,"issueEditor"));z(2);D("name",b.getIconName(a,"issueCommenter"));z(2);D("name",b.getIconName(a,"issueReader"));z(2);D("name",b.getIconName(a,"restrictedReader"));z(2);D("name",b.getIconName(a,"restrictedPlusReader"))}},URb=function(a){a&1&&(I(0,"div",0),K(1,"b-spinner"),J())},WRb=function(a){if(a&1){var b=r();I(0,"div")(1,"div",1)(2,"mat-tab-group",2);M("selectedIndexChange",function(c){t(b);var d=P();return v(d.tabChange(c))});I(3,"mat-tab",3)(4,"roles-view",4);M("saveRolesMap",
function(c){t(b);var d=P();VRb(d.rolesEditor,c);return v()});J()();I(5,"mat-tab",5);K(6,"permissions-view",6);J()()()()}a&2&&(a=P(),z(2),D("selectedIndex",a.selectedTabIndex),z(2),D("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),z(2),D("componentReaders",a.rolesEditor.componentReaders)("componentAccessPolicy",a.rolesEditor.componentFlattenedAccessPolicy)("issueAccessPolicy",a.rolesEditor.issueDefaultFlattenedAccessPolicy)("accessLevel",
a.rolesEditor.component==null?null:a.rolesEditor.component.accessLimit==null?null:a.rolesEditor.component.accessLimit.accessLevel))},YRb=function(a){if(a&1){var b=r();I(0,"b-button",19,1);M("onAction",function(){t(b);var c=P(3);return v(XRb(c))});Q(2);J()}a&2&&(a=P(3),D("disabled",a.isSaving()),z(2),R(" ",a.archiveAction," Component "))},ZRb=function(a){if(a&1){var b=r();I(0,"b-button",20);M("onAction",function(){t(b);var c=P(3);return v(c.createIssue())});Q(1," Create Issue ");J()}a&2&&(a=P(3),D("tooltip",
a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},$Rb=function(a){a&1&&(I(0,"a",16),Q(1," Browse Components "),J(),E(2,YRb,3,2,"b-button",17),E(3,ZRb,2,2,"b-button",18));a&2&&(a=P(2),D("routerLinkObj",a.componentListRoute(a.component.componentId)),z(2),F(a.isAdmin()?2:-1),z(),F(a.isAnonymous?-1:3))},aSb=function(a){a&1&&(I(0,"div",15),K(1,"b-spinner"),J())},bSb=function(a){a&1&&(I(0,"span",22),Q(1," (archived) "),J())},cSb=function(a){a&1&&Hg(0)},dSb=function(a){a&
1&&Hg(0)},eSb=function(a){a&1&&Hg(0)},fSb=function(a){a&1&&Hg(0)},gSb=function(a){a&1&&Hg(0)},iSb=function(a){if(a&1){var b=r();I(0,"div",52)(1,"div",44)(2,"label",73)(3,"span",41);Q(4,"Parent Component");J()();I(5,"span",46)(6,"div",74)(7,"strong");Q(8,"Careful!");J();Q(9," Moving this component can have significant consequences. If this component has custom fields that are defined on the parent or ancestor components, those fields will be lost, and issues in this component will no longer display those fields. ");
I(10,"div",48);K(11,"div",49)(12,"div",50);J()()()();I(13,"b-team-component-picker",75);M("selectedComponentChange",function(c){t(b);var d=P(4);return v(d.parentComponent=c!=null?c:null)});J()()}a&2&&(a=P(4),z(2),wg("required",a.isParentComponentRequired&&!hSb(a)),z(11),D("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!hSb(a)))},jSb=function(a){a&1&&(I(0,"a",58),Q(1," Learn more "),J());a&2&&(P(4),D("href",FHb(),uf))},kSb=function(a){if(a&
1){var b=r();I(0,"div",76)(1,"label",77)(2,"span",41);Q(3,"Retention Settings");J()();I(4,"div",78)(5,"p");Q(6,"Please choose a period of time to retain the data stored in this component.");K(7,"br");I(8,"a",79);Q(9," Learn more ");J()()();I(10,"div",80)(11,"b-retention-settings-form",81);M("modelChange",function(c){t(b);var d=P(4);return v(d.component.retentionSettings=c)})("validChange",function(c){t(b);P(4).retentionIsValid=c;return v()});J()()()}a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),
z(8),D("href",zs(),uf),z(3),D("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",a.component.retentionSettings))},mSb=function(a){if(a&1){var b=r();I(0,"div",84)(1,"b-component-team-picker",85);M("modelChange",function(c){t(b);var d=P(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&lSb(d);return v()});J()()}a&2&&(a=P(5),z(),Qg("anchorTarget",
a.hasUnsavedChanges()?"_blank":"_self"),D("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==null?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},nSb=function(a){a&1&&(I(0,"div",82)(1,"label",83)(2,"span",41),Q(3,"Team Configuration"),J()(),E(4,mSb,2,6,"div",84),J());a&2&&(a=P(4),wg("bv2-edit-resource-readonly",!a.isAdmin()),z(4),F(a.component.team?4:-1))},oSb=function(a){a&1&&(I(0,"a",95),Q(1),J());if(a&2){a=P();var b=
P(5);D("routerLinkObj",b.getSloManagementLink(a.id));z();var c;R(" ",(c=a.slo==null?null:a.slo.name)!=null?c:a.id," ")}},pSb=function(a){a&1&&Q(0," None ")},qSb=function(a,b){a&1&&(I(0,"div",90),Q(1," Inherited SLO Policy: "),E(2,oSb,2,2,"a",95)(3,pSb,1,0),J());a&2&&(z(2),F(b.id!=="0"?2:3))},rSb=function(a){a&1&&(I(0,"a",96),Q(1),S(2,"titlecase"),J());a&2&&(a=P(),D("routerLinkObj",a.link),z(),dh(" (",T(2,3,a.type),") ",a.name," "))},sSb=function(a){a&1&&Q(0," None ")},tSb=function(a){a&1&&(I(0,"div",
98),K(1,"slo-inheritance-breadcrumbs",99),J());a&2&&(a=P(),z(),D("componentPath",a.componentPath)("teamPath",a.teamPath))},uSb=function(a){a&1&&E(0,tSb,2,2,"div",98);a&2&&(a=P(6),F(a.showSloInheritancePath?0:-1))},vSb=function(a,b){if(a&1){var c=r();I(0,"div",91);Q(1," Policy Source: ");E(2,rSb,3,5,"a",96)(3,sSb,1,0);I(4,"button",97);M("click",function(){t(c);var e=P(5);return v(e.showSloInheritancePath=!e.showSloInheritancePath)});Q(5);J();E(6,uSb,1,1);S(7,"async");J()}if(a&2){var d;a=P(5);z(2);
F(b.link?2:3);z(2);ng("aria-expanded",a.showSloInheritancePath);z();R(" ",a.showSloInheritancePath?"Hide":"Show"," full path ");z();F((d=T(7,4,a.policySourcePath$))?6:-1,d)}},wSb=function(a){a&1&&(Q(0," , "),I(1,"a",100),Q(2,"Team Leads"),J());a&2&&(a=P(6),z(),D("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:a.tabsService.Tab.ACCESS}))},xSb=function(a){a&1&&(I(0,"div",92),Q(1," SLO Admins: "),I(2,"a",100),Q(3,"Component Admins"),J(),E(4,wSb,3,1),J());a&2&&(a=P(5),z(2),D("routerLinkObj",
a.componentPermissions(a.componentId)),z(2),F(a.component.team&&a.component.team.id!=="0"?4:-1))},ySb=function(a){a&1&&(K(0,"mat-icon",101),Q(1," on "))},zSb=function(a){a&1&&(K(0,"mat-icon",102),Q(1," off "))},ASb=function(a){a&1&&(Q(0," Lock: "),E(1,ySb,2,0),S(2,"async"),Ag(3,zSb,2,0));a&2&&(a=P(5),z(),F(T(2,1,a.sloLocked$)?1:3))},CSb=function(a){if(a&1){var b=r();I(0,"div",94)(1,"mat-checkbox",103);M("change",function(c){t(b);var d=P(5);c=c.checked;d.component.slo.inherit=!c;c||lSb(d);return v()});
I(2,"span");Q(3,"Override the inherited SLO policy");J()()()}a&2&&(a=P(5),z(),D("checked",!a.component.slo.inherit)("disabled",!BSb(a)))},ESb=function(a){if(a&1){var b=r();I(0,"div",104)(1,"label",110);Q(2," Justification ");J();K(3,"mat-icon",111);I(4,"textarea",112);gh("ngModelChange",function(c){t(b);var d=P(6);fh(d.component.slo.comment,c)||(d.component.slo.comment=c);return v(c)});J()()}a&2&&(a=P(6),z(4),eh("ngModel",a.component.slo.comment),D("disabled",!DSb(a)))},FSb=function(a){a&1&&(I(0,
"a",109),K(1,"mat-icon",113),J());a&2&&(a=P(6),Qg("target",a.hasUnsavedChanges()?"_blank":"_self"),D("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},JSb=function(a){if(a&1){var b=r();E(0,ESb,5,2,"div",104);I(1,"mat-slide-toggle",105);gh("ngModelChange",function(c){t(b);var d=P(5);fh(d.isEnableSloChecked,c)||(d.isEnableSloChecked=c);return v(c)});M("change",function(c){t(b);var d=P(5);c=c.checked;d.isEnableSloChecked=c;c||(d.component.slo.id="0");return v()});Q(2," Enable SLO ");J();
I(3,"div",106)(4,"label",107);Q(5,"SLO policy");J();I(6,"slo-picker",108);M("onSloSelect",function(c){t(b);var d=P(5);return v(d.onSloChange(c))});J();E(7,FSb,2,2,"a",109);J()}a&2&&(a=P(5),F(GSb(a)?0:-1),z(),wg("indented",HSb(a)),eh("ngModel",a.isEnableSloChecked),D("disabled",!ISb(a)),z(5),D("bv2Disabled",!a.isEnableSloChecked||!ISb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&ISb(a)?"Type to search for an SLO":"SLO disabled"),z(),F(a.component.slo.id&&a.component.slo.id!==
"0"?7:-1))},KSb=function(a){a&1&&(I(0,"div",86)(1,"div",44)(2,"label",87)(3,"span",41),Q(4,"SLO Configuration"),J()(),I(5,"span",46)(6,"div",88)(7,"strong"),Q(8,"Careful!"),J(),Q(9," Changing the SLO (service level objective) of a component has the potential to impact the Buganizer SLO compliance status of every issue under that component. "),I(10,"div",48),K(11,"div",49)(12,"div",50),J()()()(),I(13,"div",89),E(14,qSb,4,1,"div",90),S(15,"async"),E(16,vSb,8,6,"div",91),S(17,"async"),E(18,xSb,5,2,"div",
92),I(19,"div",93),E(20,ASb,4,3),J()(),E(21,CSb,4,2,"div",94),E(22,JSb,8,9),J());if(a&2){var b,c;a=P(4);wg("bv2-edit-resource-readonly",!DSb(a));z(14);F((b=T(15,8,a.inheritedSlo$))?14:-1,b);z(2);F((c=T(17,10,a.sloPolicySource$))?16:-1,c);z(2);F(a.sessionIsInternal?18:-1);z(2);F(a.enableSloLockingUi?20:-1);z();F(HSb(a)?21:-1);z();a.component&&a.component.slo?(b=!!a.component.team&&a.component.team.id!=="0",c=!a.component.slo.inherit,a=a.component.parentComponentId===0&&!b||c):a=!1;F(a?22:-1)}},LSb=
function(a){if(a&1){var b=r();I(0,"mat-slide-toggle",114);M("change",function(c){t(b);P(4).component.spamProtection=c.checked?"ALL_PROTECTIONS":"NO_PROTECTIONS";return v()});Q(1," Enable Spam Protections ");J()}a&2&&(a=P(4),D("checked",a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?a.component.spamProtection==="ALL_PROTECTIONS"||a.component.spamProtection==="SPAM_PROTECTION_UNSPECIFIED":!1)("disabled",a.isAccessEditDisabled()))},MSb=function(a){if(a&1){var b=r();I(0,"div",69)(1,
"b-button",115);M("onAction",function(){t(b);var c=P(4);return v(c.saveMetadata())});Q(2," Update ");J();I(3,"b-button",116);M("onAction",function(){t(b);var c=P(4);return v(c.revertMetadataChanges())});Q(4," Revert Changes ");J();I(5,"b-button",116);M("onAction",function(){t(b);var c=P(4);return v(c.createChild())});Q(6," Create Child Component ");J()()}a&2&&(a=P(4),z(),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),z(2),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),z(2),
D("disabled",a.hasUnsavedMetadataChanges()))},NSb=function(a){if(a&1){var b=r();I(0,"b-button",117);M("onAction",function(){t(b);var c=P(4);return v(c.showUpdateHistoryModal())});Q(1," View History ");J()}},OSb=function(a){a&1&&K(0,"b-spinner")},PSb=function(a){if(a&1){var b=r();I(0,"b-component-children-list",118);M("onVisit",function(){t(b);var c=P(4);return v(c.trackClick("openChildComponent"))});J()}a&2&&(a=P(4),D("children",a.childComponents))},QSb=function(a){a&1&&(I(0,"span"),Q(1," No child components. "),
J())},SSb=function(a){if(a&1){var b=r();I(0,"div",36)(1,"form",37,7);K(3,"b-error-banner",38);I(4,"div",39)(5,"label",40)(6,"span",41);Q(7,"Name");J()();I(8,"input",42);gh("ngModelChange",function(c){t(b);var d=P(3);fh(d.component.name,c)||(d.component.name=c);return v(c)});J()();I(9,"div",43)(10,"div",44)(11,"label",45)(12,"span",41);Q(13,"Description");J()();I(14,"span",46)(15,"div",47);Q(16," The description will be used during component searches. You can add previous project names or keywords that will help users search for your component. ");
I(17,"div",48);K(18,"div",49)(19,"div",50);J()()()();I(20,"textarea",51);gh("ngModelChange",function(c){t(b);var d=P(3);fh(d.component.description,c)||(d.component.description=c);return v(c)});Q(21,"                ");J()();E(22,iSb,14,5,"div",52);I(23,"div",53)(24,"div",54)(25,"mat-checkbox",55);M("change",function(c){t(b);var d=P(3);return v(d.setCommentEditState(c.checked))});J()();I(26,"div")(27,"strong",56);Q(28,"Editable Comments");J();I(29,"div",57);Q(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
K(31,"br");E(32,jSb,2,1,"a",58);J()()();E(33,kSb,12,8,"div",59);E(34,nSb,5,3,"div",60);E(35,KSb,23,12,"div",61);I(36,"div",62)(37,"div",44)(38,"label",63)(39,"span",41);Q(40,"Component Alias");J()();I(41,"span",46)(42,"div",64);Q(43," You can create a new issue in this component by sending an email to this alias. ");K(44,"br");I(45,"a",65);Q(46," Learn more ");J();I(47,"div",48);K(48,"div",49)(49,"div",50);J()()()();I(50,"div")(51,"a",66);Q(52);J()()();E(53,LSb,2,2,"mat-slide-toggle",67);I(54,"div",
68);E(55,MSb,7,3,"div",69);I(56,"div",69);E(57,NSb,2,0,"b-button",70);J()();I(58,"div",71)(59,"label")(60,"span",41);Q(61,"Child Components");J()();E(62,OSb,1,0,"b-spinner");E(63,PSb,1,1,"b-component-children-list",72);E(64,QSb,2,0,"span");J()()()}a&2&&(a=P(3),z(),wg("show-errors",a.error),z(2),D("error",a.error),z(),wg("bv2-edit-resource-readonly",RSb(a)),z(4),eh("ngModel",a.component.name),D("disabled",RSb(a)),z(),wg("bv2-edit-resource-readonly",RSb(a)),z(11),eh("ngModel",a.component.description),
D("disabled",RSb(a)),z(2),F(a.isAdmin()?22:-1),z(),wg("bv2-edit-resource-readonly",a.isAccessEditDisabled()),z(2),D("checked",a.commentEditsEnabled)("disabled",RSb(a)),z(7),F(a.sessionIsExternal?-1:32),z(),F(a.sessionIsExternal?-1:33),z(),F(a.sessionIsInternal?34:-1),z(),F(a.component.slo&&a.sessionIsInternal?35:-1),z(10),D("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",uf),z(6),Pg("href","mailto:",a.component.emailAlias,"",uf),ng("aria-label","Component Alias -"+a.component.emailAlias),
z(),ch(a.component.emailAlias),z(),F(a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?53:-1),z(2),F(a.isEditorInternal||DSb(a)?55:-1),z(2),F(a.componentHistoryUiEnabled?57:-1),z(5),F(a.childComponents===void 0?62:-1),z(),F(a.childComponents&&a.childComponents.length>0?63:-1),z(),F(a.childComponents&&a.childComponents.length===0?64:-1))},TSb=function(a){a&1&&(I(0,"div",119),Q(1," Standard Fields "),J())},VSb=function(a){if(a&1){var b=r();I(0,"b-component-standard-fields",123);M("updateComponent",
function(c){t(b);var d=P(4);return v(USb(d,c))});J()}a&2&&(a=P(4),D("effortSpec",a.component.effortSpec)("parentEffortSpec",a.parentComponent==null?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal))},WSb=function(a){a&1&&(I(0,"div",121),Q(1," Custom Fields "),J())},YSb=function(a){a&1&&(E(0,TSb,2,0,"div",119),E(1,VSb,1,3,"b-component-standard-fields",120),E(2,WSb,2,0,"div",121),K(3,"b-component-custom-fields",122));a&2&&(a=P(3),F(XSb(a)?0:-1),z(),F(XSb(a)?1:-1),z(),F(XSb(a)?2:-1),
z(),D("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},$Sb=function(a){a&1&&(I(0,"a",125),Q(1," Learn more "),J());a&2&&(P(4),D("href",ZSb(),uf))},bTb=function(a){if(a&1){var b=r();I(0,"div",36)(1,"div",124);Q(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");E(3,$Sb,2,1,"a",125);J();I(4,"b-field-reorder",126);M("onReload",function(){t(b);var c=
P(3);return v(aTb(c))});J()()}a&2&&(a=P(3),z(3),F(a.sessionIsInternal?3:-1),z(),D("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},cTb=function(a){a&1&&K(0,"b-edit-templates",127);a&2&&(a=P(4),D("componentId",a.componentId)("supportCustomFields",!0))},dTb=function(a){a&1&&(I(0,"div"),Q(1),J());a&2&&(a=P().$implicit,z(),ch(a.description))},eTb=function(a,b){a&1&&(I(0,"div",128)(1,"label"),Q(2),J(),E(3,dTb,2,1,"div"),
I(4,"div")(5,"a",66),Q(6),J()()());a&2&&(a=b.$implicit,z(2),ch(a.name),z(),F(a.description?3:-1),z(2),D("href",a.url,uf),ng("aria-label","Click to open the template "+a.name),z(),ch(a.url))},fTb=function(a){a&1&&Dg(0,eTb,7,5,"div",128,Cg);a&2&&(a=P(4),Eg(a.templates))},gTb=function(a){a&1&&(I(0,"div",36),E(1,cTb,1,2,"b-edit-templates",127)(2,fTb,2,0),J());a&2&&(a=P(3),z(),F(a.isEditorInternal?1:2))},iTb=function(a){if(a&1){var b=r();I(0,"role-based-permissions",129);M("onTabChange",function(c){t(b);
var d=P(3).tabsService;d.selectedAccessSubTabIndex=c;hTb(d);return v()});J()}a&2&&(a=P(3),D("tabIndex",a.tabsService.selectedAccessSubTabIndex))},jTb=function(a){if(a&1){var b=r();I(0,"div")(1,"div",21)(2,"h2");Q(3);J();E(4,bSb,2,0,"span",22);I(5,"a",23);M("click",function(){t(b);var k=P(2);return v(k.trackClick("recentIssues"))});Q(6," (Recent Issues)");J();K(7,"b-component-access-level-indicator",24)(8,"b-tracker-chip-smart",25);J();I(9,"div",26);K(10,"b-component-breadcrumb",27)(11,"div",28);J();
I(12,"mat-tab-group",29);M("selectedIndexChange",function(k){t(b);var q=P(2);return v(q.tabsService.tabChange(k))});I(13,"mat-tab",30);C(14,cSb,1,0,"ng-container",31);J();I(15,"mat-tab",32);C(16,dSb,1,0,"ng-container",31);J();I(17,"mat-tab",33);C(18,eSb,1,0,"ng-container",31);J();I(19,"mat-tab",34);C(20,fSb,1,0,"ng-container",31);J();I(21,"mat-tab",35);C(22,gSb,1,0,"ng-container",31);J()();C(23,SSb,65,31,"ng-template",null,2,nh)(25,YSb,4,7,"ng-template",null,3,nh)(27,bTb,5,5,"ng-template",null,4,
nh)(29,gTb,3,1,"ng-template",null,5,nh)(31,iTb,1,1,"ng-template",null,6,nh);J()}if(a&2){a=L(24);var c=L(26),d=L(28),e=L(30),f=L(32),h=P(2);z(3);dh(" Component ",h.component.componentId,": ",h.currentName," ");z();F(h.isArchived()?4:-1);z();D("routerLinkObj",h.getRecentIssuesLink());z(2);D("accessLevel",h.getComponentAccessLevel());z();D("trackerId",h.component.trackerId);z(2);D("componentPathInfo",h.component.componentPathInfo)("isArchived",h.isArchived())("label","Parent Component");z(2);D("selectedIndex",
h.tabsService.selectedTabIndex);z();D("id",h.tabsService.Tab.BASIC);z();D("ngTemplateOutlet",a);z();D("id",h.tabsService.Tab.CUSTOM_FIELDS)("label",XSb(h)?"Fields":"Custom Fields");z();D("ngTemplateOutlet",c);z();D("id",h.tabsService.Tab.FIELD_ORDERING);z();D("ngTemplateOutlet",d);z();D("id",h.tabsService.Tab.TEMPLATES);z();D("ngTemplateOutlet",e);z();D("id",h.tabsService.Tab.ACCESS);z();D("ngTemplateOutlet",f)}},kTb=function(a){a&1&&(I(0,"span")(1,"p"),Q(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),
K(3,"br"),I(4,"strong"),Q(5,"This action cannot be easily reverted."),J(),I(6,"a",134),Q(7," Learn more "),J()(),I(8,"p"),Q(9," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),K(10,"br"),Q(11," so they can be scheduled for deletion. "),I(12,"a",135),Q(13," Learn more "),J()()());a&2&&(P(3),z(6),D("href","http://go/archived-components",uf),z(6),D("href",zs(),uf))},lTb=function(a){a&1&&(I(0,"span")(1,"p"),Q(2," Unarchiving a component will NOT cause its subcomponents to be unarchived."),
K(3,"br"),Q(4," If you need to recursively unarchive subcomponents please use the buganizer_admin tool. "),I(5,"a",136),Q(6," Learn more "),J()()());a&2&&(P(3),z(5),D("href","http://go/buganizer-admin",uf))},mTb=function(a,b){a&1&&(I(0,"span")(1,"span"),Q(2),J(),I(3,"span"),Q(4," : "),I(5,"b"),Q(6),J()(),K(7,"br"),J());a&2&&(a=b.$implicit,b=P(4),z(2),ch(a.componentPath),z(),wg("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),z(3),ch(b.getRetentionPeriod(a)))},nTb=function(a){a&
1&&(I(0,"span"),Dg(1,mTb,8,4,"span",null,Cg),J());a&2&&(a=P(3),z(),Eg(a.descendants))},oTb=function(a){a&1&&(I(0,"span")(1,"span"),Q(2),J()());a&2&&(a=P(3),z(2),ch(a.descendants[0].componentPath))},pTb=function(a){if(a&1){var b=r();I(0,"h2",130);Q(1);J();I(2,"mat-dialog-content");E(3,kTb,14,2,"span");E(4,lTb,7,1,"span");I(5,"p");Q(6," The following components will be affected: ");J();I(7,"div",131);E(8,nTb,3,0,"span");E(9,oTb,3,1,"span");J()();I(10,"mat-dialog-actions")(11,"button",132);M("click",
function(){t(b);P(2).isArchiving=!1;return v()});Q(12," Cancel ");J();I(13,"button",133);M("click",function(){t(b);var c=P(2);c.archive();c.isArchiving=!1;return v()});Q(14," Confirm ");J()()}a&2&&(a=P(2),z(),ch(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),z(2),F(a.archiveAction==="Archive"?3:-1),z(),F(a.archiveAction==="Unarchive"?4:-1),z(4),F(a.archiveAction==="Archive"?
8:-1),z(),F(a.archiveAction==="Unarchive"?9:-1))},qTb=function(a){if(a&1){var b=r();I(0,"div",9)(1,"div",10)(2,"div",11)(3,"b-button",12);M("onAction",function(){t(b);var c=P();return v(c.back())});K(4,"b-icon",13);J();E(5,$Rb,4,3);J()()();I(6,"div",14);E(7,aSb,2,0,"div",15);E(8,jTb,33,21,"div");J();C(9,pTb,15,5,"ng-template",null,0,nh)}a&2&&(a=P(),z(5),F(a.component?5:-1),z(2),F(a.isLoading?7:-1),z(),F(!a.isLoading&&a.component&&a.component.componentId?8:-1))},rTb=function(a){a&1&&(I(0,"div",8),
K(1,"b-tracker-redirect",137),J());a&2&&(a=P(),z(),D("component",a.component))},sTb=function(a){var b=null;if(a.containerType==="TEAM")var c=a.content.sourceTeamId;else c=a.content.sourceTeamId,b=a.content.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},tTb=function(a,b){var c=a.componentPathInfo;a=c.componentPathId;c=c.componentPathName;var d=a.findIndex(function(e){return""+e===b});return{componentPathId:a.slice(d),componentPathName:c==null?void 0:c.slice(d),fieldConfigsMap:new Map}},
uTb=function(a,b,c,d){(c==null?0:c.inherit)||(c==null?void 0:c.id)!=="0"||!d||(a=d);if(!a)return null;c=a.pathNames;a=a.pathIds;d=[];for(var e=a.findIndex(function(f){return f===b});e<a.length;e++)d.push({id:a[e],name:c[e]});return d},vTb=function(a,b){a&1&&(I(0,"div",10),K(1,"b-team-breadcrumb",38),J());a&2&&(z(),D("teamPath",b))},wTb=function(a,b){a&1&&(Fg(0),Q(1),Gg());a&2&&(z(),ch(b.trim()))},xTb=function(a){a&1&&Q(0," No description ")},yTb=function(a,b){a&1&&K(0,"b-multi-user-input",25);a&2&&
(D("users",b),ng("disabled",!0))},zTb=function(a){a&1&&(I(0,"p"),Q(1,"No child teams"),J())},ATb=function(a,b){a&1&&(K(0,"br"),I(1,"a",39),Q(2),J());a&2&&(a=b.$implicit,z(),Pg("routerLink","/teams/",a.id,"/edit"),z(),ch(a.name))},BTb=function(a){a&1&&Dg(0,ATb,3,3,null,null,Cg);a&2&&(a=P(),Eg(a))},CTb=function(a,b){a&1&&E(0,zTb,2,0,"p")(1,BTb,2,0);a&2&&F(b.length===0?0:1)},DTb=function(a){a&1&&(I(0,"a",40),Q(1),J());if(a&2){a=P();D("routerLinkObj",a.link);z();var b;R(" ",(b=a.slo==null?null:a.slo.name)!=
null?b:a.id," ")}},ETb=function(a){a&1&&Q(0," None ")},FTb=function(a,b){a&1&&(I(0,"div",29),Q(1," Inherited SLO Policy: "),E(2,DTb,2,2,"a",40)(3,ETb,1,0),J());a&2&&(z(2),F(b.link?2:3))},GTb=function(a,b){a&1&&(I(0,"a",31),Q(1),J());a&2&&(D("routerLinkObj",b.link),z(),R(" ",b.name," "))},HTb=function(a){a&1&&Q(0," None ")},ITb=function(a){a&1&&(K(0,"mat-icon",41),Q(1," on "))},JTb=function(a){a&1&&(K(0,"mat-icon",42),Q(1," off "))},KTb=function(a){a&1&&(Q(0," Lock: "),E(1,ITb,2,0)(2,JTb,2,0));a&2&&
(a=P(2),z(),F(a.originalSloLock?1:2))},LTb=function(a){if(a&1){var b=r();I(0,"div",43)(1,"mat-checkbox",44);M("change",function(c){t(b);var d=P(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);return v()});I(2,"span");Q(3,"Override the inherited SLO");J()()()}a&2&&(a=P(3),z(),D("disabled",!a.hasSloEditAccess)("checked",!a.isSloInheritEnabled))},MTb=function(a){if(a&1){var b=r();I(0,"div",45)(1,"label",49);Q(2," Justification to override the org SLO ");J();
K(3,"mat-icon",50);I(4,"textarea",51);S(5,"async");M("ngModelChange",function(c){t(b);var d=P(4);return v(d.sloJustification$.next(c))});J()()}a&2&&(a=P(4),z(3),D("matTooltip",a.justificationRequiredText),ng("aria-label",a.justificationRequiredText),z(),D("ngModel",T(5,4,a.sloJustification$))("disabled",!a.hasSloEditAccess))},NTb=function(a,b){a&1&&(I(0,"a",48),S(1,"async"),K(2,"mat-icon",9),J());a&2&&(a=P(4),Qg("target",T(1,2,a.hasUnsavedChanges$)?"_blank":"_self"),D("routerLinkObj",b))},OTb=function(a){if(a&
1){var b=r();E(0,MTb,6,6,"div",45);I(1,"div",14)(2,"mat-slide-toggle",46);gh("ngModelChange",function(e){t(b);var f=P(3);fh(f.enableSloChecked,e)||(f.enableSloChecked=e);return v(e)});M("change",function(e){t(b);var f=P(3);return v(f.enableSloChecked=e.checked)});Q(3," Enable SLO ");J();I(4,"slo-picker",47);M("onSloSelect",function(e){t(b);var f=P(3);return v(f.onSloChange(e))});J();E(5,NTb,3,4,"a",48);S(6,"async");J()}if(a&2){var c;a=P();var d=P(2);F(a.value?-1:0);z(2);wg("indented",!a.value);eh("ngModel",
d.enableSloChecked);D("disabled",!d.hasSloEditAccess);z(2);D("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");z();F((c=T(6,9,d.sloPickerLink$))?5:-1,c)}},PTb=function(a,b){a&1&&(E(0,LTb,4,2,"div",43),E(1,OTb,7,11));a&2&&(a=P(2),F(b.value?-1:0),z(),F(a.isSloInheritEnabled?-1:1))},QTb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"mat-checkbox",52);M("change",function(c){t(b);
var d=P(2);return v(d.sloLocked=c.checked)});I(2,"span");Q(3,"Lock for all child teams");J()()()}a&2&&(a=P(2),z(),D("checked",a.sloLocked)("disabled",!a.canEditSloLock))},STb=function(a){if(a&1){var b=r();I(0,"div",14)(1,"mat-checkbox",54);M("change",function(c){t(b);var d=P(3);d.isOwnerInheritEnabled=!c.checked;d.isOwnerInheritEnabled&&RTb(d);return v()});I(2,"span");Q(3,"Override the inherited owner");J()()()}a&2&&(a=P(3),z(),D("checked",!a.isOwnerInheritEnabled)("disabled",!a.hasSloEditAccess))},
VTb=function(a,b){if(a&1){var c=r();E(0,STb,4,2,"div",14);I(1,"div",14)(2,"div")(3,"label");Q(4);J();I(5,"b-multi-user-input",53);M("usersChange",function(d){t(c);var e=P(2);d.length>1||(e.escalationOwner=d.length===1?d[0]:"");return v()})("isValid",function(d){t(c);var e=P(2);return v(e.isEscalationOwnerValid=d)});J()()()}a&2&&(a=P(2),F(b.value?-1:0),z(4),ch(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),z(),D("users",a.escalationOwner?jh(7,TTb,a.escalationOwner):ih(9,UTb))("customValidators",
a.escalationOwnerUserValidators)("detailedUserValidators",a.escalationOwnerGooglerValidators)("maxUserAllowed",1),ng("disabled",a.isOwnerInheritEnabled||!a.hasSloEditAccess?!0:null))},YTb=function(a){if(a&1){var b=r();I(0,"div",34)(1,"div",55)(2,"button",56);S(3,"async");M("click",function(){t(b);var c=P(),d=P();return v(WTb(d,c))});Q(4," Update ");J();I(5,"button",57);S(6,"async");M("click",function(){t(b);var c=P(2);return v(XTb(c))});Q(7," Revert changes ");J()()()}a&2&&(a=P(2),z(2),D("disabled",
!T(3,2,a.hasUnsavedChanges$)),z(3),D("disabled",!T(6,4,a.hasUnsavedChanges$)))},ZTb=function(a){a&1&&(I(0,"p"),Q(1,"No mapped components"),J())},$Tb=function(a,b){a&1&&(I(0,"ul")(1,"li")(2,"a",39),Q(3),J()()());a&2&&(a=b.$implicit,z(2),Pg("routerLink","/components/",a.componentId,"/edit"),z(),R(" ",a.name," "))},aUb=function(a){a&1&&(Dg(0,$Tb,4,3,"ul",null,Cg),S(2,"async"));a&2&&(a=P(3),Eg(T(2,0,a.associatedComponents$)))},bUb=function(a,b){a&1&&E(0,ZTb,2,0,"p")(1,aUb,3,2);a&2&&F(b.length===0?0:1)},
cUb=function(a){a&1&&(I(0,"th",68)(1,"span",69),Q(2,"Starred"),J()())},dUb=function(a,b){if(a&1){var c=r();I(0,"td",70)(1,"b-star-toggle",71);M("starClicked",function(){var f=t(c).$implicit,h=P(),k=P(2),q=P();return v(q.toggleStar(f.id,k.teamId,h))});J()()}if(a&2){a=b.$implicit;b=P();var d=P(2),e=P();z();D("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},eUb=function(a){a&1&&(I(0,"th",68),Q(1,"Name"),J())},fUb=function(a,
b){a&1&&(I(0,"td",72)(1,"a",73),Q(2),J()());if(a&2){a=b.$implicit;b=P(3);var c=P();z();D("href",c.getTriageLink(a.id,b.teamId),uf);z();R(" ",a.displayName||b.name+" triage"," ")}},gUb=function(a){a&1&&(I(0,"th",68)(1,"span",69),Q(2,"Actions"),J()())},hUb=function(a){a&1&&K(0,"div",77)},jUb=function(a){if(a&1){var b=r();I(0,"button",79);M("click",function(){t(b);var c=P().$implicit,d=P(4);return v(iUb(d,c))});K(1,"mat-icon",80);J()}a&2&&(a=P(5),D("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},
lUb=function(a,b){if(a&1){var c=r();I(0,"td",70)(1,"div",74)(2,"button",75);M("click",function(){var d=t(c).$implicit,e=P(3),f=P();return v(kUb(f,d.id,e))});K(3,"mat-icon",76);J();E(4,hUb,1,0,"div",77)(5,jUb,2,1,"button",78);J()()}a&2&&(a=b.$implicit,b=P(4),z(2),D("disabled",!b.hasTeamEditAccess&&!b.enableTeamAdmin),z(2),F(a.id===0?4:5))},mUb=function(a){a&1&&K(0,"tr",81)},nUb=function(a){a&1&&K(0,"tr",82)},pUb=function(a){if(a&1){var b=r();I(0,"h3");Q(1,"Triage views");J();I(2,"table",58);Fg(3,59);
C(4,cUb,3,0,"th",60)(5,dUb,2,3,"td",61);Gg();Fg(6,62);C(7,eUb,2,0,"th",60)(8,fUb,3,2,"td",63);Gg();Fg(9,64);C(10,gUb,3,0,"th",60)(11,lUb,6,2,"td",61);Gg();C(12,mUb,1,0,"tr",65)(13,nUb,1,0,"tr",66);J();I(14,"button",67);M("click",function(){t(b);var c=P(2),d=P();return v(oUb(d,c))});Q(15," Add new view ");J()}a&2&&(a=P(3),z(2),D("dataSource",a.teamExperiments.triage),z(10),D("matHeaderRowDef",a.tableColumns),z(),D("matRowDefColumns",a.tableColumns),z(),D("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},
qUb=function(a){a&1&&(I(0,"mat-tab",36)(1,"div",13),E(2,pUb,16,4),S(3,"async"),J()());if(a&2){var b;a=P(2);D("id",a.Tab.TRIAGE);z(2);F((b=T(3,2,a.starredTriageViews$))?2:-1,b)}},tUb=function(a){if(a&1){var b=r();I(0,"div",34)(1,"div",55)(2,"button",56);M("click",function(){t(b);var c=P(3);return v(rUb(c))});Q(3," Update ");J();I(4,"button",57);M("click",function(){t(b);var c=P(3);return v(sUb(c))});Q(5," Revert changes ");J()()()}a&2&&(a=P(3),z(2),D("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()),
z(2),D("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()))},uUb=function(a){if(a&1){var b=r();I(0,"mat-tab",37)(1,"div",13)(2,"div",14)(3,"div",18)(4,"label",19)(5,"span",16);Q(6," SLO delegates ");J();I(7,"span",20)(8,"div",21);Q(9," SLO delegates can manage the SLO policy for the team and its children, as well as all associated components and their children. ");I(10,"div",22);K(11,"div",23)(12,"div",24);J()()()()();I(13,"b-multi-user-input",83);M("usersChange",function(c){t(b);P(2).sloDelegates=
c;return v()});J()();E(14,tUb,6,2,"div",34);J()()}a&2&&(a=P(2),D("id",a.Tab.ACCESS),z(13),D("users",a.sloDelegates)("includeAliases",!0)("includeViewAliases",!0),ng("disabled",a.hasTeamEditAccess?null:!0),z(),F(a.hasTeamEditAccess?14:-1))},wUb=function(a,b){if(a&1){var c=r();I(0,"div",7)(1,"h2");Q(2);I(3,"a",8);Q(4);K(5,"mat-icon",9);J()()();E(6,vTb,2,1,"div",10);S(7,"async");I(8,"mat-tab-group",11);gh("selectedIndexChange",function(H){t(c);var N=P();fh(N.selectedTabIndex,H)||(N.selectedTabIndex=
H);return v(H)});M("selectedIndexChange",function(H){t(c);var N=P();return v(N.tabChange(H))});I(9,"mat-tab",12)(10,"div",13);Q(11," Team information on this page comes from ");I(12,"a",8);Q(13," Team Graph ");K(14,"mat-icon",9);J();Q(15," and is view only. ");I(16,"div",14)(17,"div",15)(18,"label")(19,"span",16);Q(20,"Description");J()();I(21,"div",17);E(22,wTb,2,1,"ng-container")(23,xTb,1,0);J()()();I(24,"div",14)(25,"div",18)(26,"label",19)(27,"span",16);Q(28," Team admins ");J();I(29,"span",20)(30,
"div",21);Q(31," Team admins are team leads from Team Graph. ");I(32,"div",22);K(33,"div",23)(34,"div",24);J()()()();E(35,yTb,1,2,"b-multi-user-input",25);S(36,"async");J()();I(37,"div",14)(38,"div",15)(39,"label")(40,"span",16);Q(41,"Child team(s)");J()();E(42,CTb,2,1);S(43,"async");J()()()();I(44,"mat-tab",26)(45,"div",13)(46,"div",18)(47,"label",19)(48,"span",16);Q(49,"SLO configuration");J()();I(50,"span",20)(51,"div",27)(52,"strong");Q(53,"Careful!");J();Q(54," Changing the SLO (service level objective) of a component has the potential to impact the compliance status of every issue under this team's components. ");
I(55,"div",22);K(56,"div",23)(57,"div",24);J()()()();I(58,"div",28);E(59,FTb,4,1,"div",29);S(60,"async");I(61,"div",30);Q(62," Policy Source: ");E(63,GTb,2,2,"a",31);S(64,"async");Ag(65,HTb,1,0);J();I(66,"div",32);E(67,KTb,3,1);J()();K(68,"b-error-banner",33);E(69,PTb,2,2);S(70,"async");E(71,QTb,4,2,"div",14);I(72,"div",14)(73,"div",18)(74,"label",19)(75,"span",16);Q(76," Owner configuration ");J()();I(77,"span",20)(78,"div",21);Q(79," Single team lead receiving SLO reports of unassigned issues. ");
I(80,"div",22);K(81,"div",23)(82,"div",24);J()()()()();E(83,VTb,6,10);S(84,"async");E(85,YTb,8,6,"div",34);J()();I(86,"mat-tab",35)(87,"div",13)(88,"div",14)(89,"div",15)(90,"label")(91,"span",16);Q(92," Component(s) that have mapped to this team ");J()()();E(93,bUb,2,1);S(94,"async");J()()();E(95,qUb,4,4,"mat-tab",36);E(96,uUb,15,6,"mat-tab",37);J()}if(a&2){var d,e,f,h,k,q,u,A,G;a=P();z(2);R(" Team ",b.teamId,": ");z();Pg("href","https://moma.corp.google.com/team/",b.teamId,"",uf);z();R(" ",b.name,
" ");z(2);F((d=T(7,25,a.teamPath$))?6:-1,d);z(2);eh("selectedIndex",a.selectedTabIndex);z();D("id",a.Tab.BASIC);z(3);Pg("href","https://moma.corp.google.com/team/",b.teamId,"",uf);z(10);F((e=b.description)?22:23,e);z(13);F((f=T(36,27,a.adminsAndLeads$))?35:-1,f);z(7);F((h=T(43,29,a.childTeams$))?42:-1,h);z(2);D("id",a.Tab.SLO);z(15);F((k=T(60,31,a.inheritedSlo$))?59:-1,k);z(4);F((q=T(64,33,a.sloPolicySource$))?63:65,q);z(4);F(a.enableSloLockingUi?67:-1);z();D("error",a.error);z();F((u=jh(41,vUb,T(70,
35,a.isRootTeam$)))?69:-1,u);z(2);F(a.enableSloLockingUi?71:-1);z(12);F((A=jh(43,vUb,T(84,37,a.isRootTeam$)))?83:-1,A);z(2);F(a.hasSloEditAccess?85:-1);z();D("id",a.Tab.MAPPINGS);z(7);F((G=T(94,39,a.associatedComponents$))?93:-1,G);z(2);F(a.enableTeamScope?95:-1);z();F(a.enableSloDelegatesUi?96:-1)}},xUb=function(a,b){a&1&&(I(0,"div",84),Q(1),J(),I(2,"div",85)(3,"button",86),Q(4," Cancel "),J(),I(5,"button",87),Q(6," Confirm "),J()());a&2&&(a=b.$implicit,z(),R(' Are you sure you want to delete this triage view: "',
a.displayName,'"? '),z(2),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0))},yUb=function(a){a&1&&(I(0,"mat-error"),Q(1),J());a&2&&(a=P(2),z(),ch(a.validationErrorMessage))},zUb=function(a){if(a&1){var b=r();I(0,"div",8)(1,"p");Q(2," Input a URL from a supported source to add a task. ");I(3,"a",9);Q(4,"Learn more");J()()();I(5,"mat-form-field",10);K(6,"input",11,3);E(8,yUb,2,1,"mat-error");J();I(9,"div",12)(10,"div",13)(11,"button",14);M("click",function(){t(b);var c=P();return v(c.cancelClicked.emit())});
Q(12,"Cancel");J();I(13,"button",15);M("click",function(){t(b);var c=P();return v(c.saveChanges())});Q(14,"Add Task");J()()()}a&2&&(a=P(),z(6),D("formControl",a.addTasksForm)("placeholder",a.urlPlaceholder),z(2),F(a.validationErrorMessage?8:-1),z(5),D("disabled",a.addTasksForm.invalid||a.saving))},AUb=function(a){a&1&&(I(0,"mat-error"),Q(1,"Title is required"),J())},BUb=function(a,b){a&1&&(I(0,"mat-option",25),Q(1),J());a&2&&(a=b.$implicit,D("value",a.id),z(),R(" ",a.title," "))},CUb=function(a){a&
1&&(I(0,"mat-error",26),Q(1,"Task list is required"),J())},EUb=function(a){if(a&1){var b=r();I(0,"div",16)(1,"form",17);M("ngSubmit",function(){t(b);var f=P();return v(f.onSubmit())});I(2,"mat-form-field",18);K(3,"input",19,3);I(5,"mat-hint",20);Q(6);J();E(7,AUb,2,0,"mat-error");J();I(8,"mat-form-field",18);K(9,"textarea",21,4);I(11,"mat-hint",20);Q(12);J()();I(13,"mat-form-field",22);K(14,"mat-icon",23);I(15,"mat-select",24);Dg(16,BUb,2,2,"mat-option",25,DUb);S(18,"async");J();E(19,CUb,2,0,"mat-error",
26);J();I(20,"mat-form-field",27);K(21,"mat-datepicker-toggle",28);I(22,"input",29);M("click",function(){t(b);var f=L(24);return v(f.open())});J();K(23,"mat-datepicker",null,5);J();I(25,"div",30)(26,"button",14);M("click",function(){t(b);var f=P();return v(f.cancelClicked.emit())});Q(27,"Cancel");J();I(28,"button",31);Q(29,"Add");J()()()()}if(a&2){a=L(4);var c=L(10),d=L(24),e=P();z();D("formGroup",e.gTaskForm);z(5);R("",a.value.length," / 1024");z();F((e.title==null?0:e.title.hasError("required"))?
7:-1);z(5);R("",c.value.length," / 8192");z(4);Eg(T(18,8,e.gtaskListIds$));z(3);F((e.taskListId==null?0:e.taskListId.hasError("required"))?19:-1);z(2);D("for",d);z();D("matDatepicker",d);z(6);D("disabled",e.gTaskForm.invalid)}},FUb=function(a){a&1&&Hg(0)},GUb=function(a){a&1&&Hg(0)},HUb=function(a){a&1&&(I(0,"mat-tab-group",7)(1,"mat-tab",32),C(2,FUb,1,0,"ng-container",33),J(),I(3,"mat-tab",34),C(4,GUb,1,0,"ng-container",33),J()());if(a&2){P();a=L(3);var b=L(5);z(2);D("ngTemplateOutlet",a);z(2);D("ngTemplateOutlet",
b)}},IUb=function(a){a&1&&Hg(0)},JUb=function(a){a&1&&C(0,IUb,1,0,"ng-container",33);a&2&&(P(),a=L(3),D("ngTemplateOutlet",a))},KUb=function(a){a&1&&(I(0,"div",0)(1,"div",1),K(2,"mat-icon",2),Q(3),J(),I(4,"div",3),K(5,"mat-icon",4),I(6,"span")(7,"a",5),Q(8),J(),Q(9," \u00b7 "),K(10,"b-formatted-date-time",6),Q(11," \u2010 "),K(12,"b-formatted-date-time",6),J()()());if(a&2){a=P();z(3);R(" ",a.iteration.workspace.name," ");z(4);var b,c,d;var e=a.getBaseUrl()+"/workspaces/"+((b=a.iteration)==null?void 0:
(c=b.workspace)==null?void 0:c.workspaceId)+"/iterations/"+((d=a.iteration)==null?void 0:d.iterationId);D("href",e,uf);z();R(" ",a.iteration.name," ");z(2);D("paddingLeftPx",0)("timestamp",a.iteration.startTimestamp);z(2);D("paddingLeftPx",0)("timestamp",a.iteration.endTimestamp)}},LUb=function(a){a&1&&K(0,"iteration-card",4,1);if(a&2){a=L(1);var b=P(2);D("onedevIsHovercardReady",a.hovercardReady$)("iteration",b.iteration)}},MUb=function(a){if(a&1){var b=r();I(0,"div",2);M("onedevHovercardShown",
function(){t(b);var c=P();return v(c.trackHoverEvent())})("click",function(c){t(b);var d=P();c.stopPropagation();d.analytics.trackEvent("missionControl","click","iteration-chip");var e,f,h;c=d.iteration||d.iteration.workspace||d.iteration.iterationId?d.getBaseUrl()+"/workspaces/"+((e=d.iteration)==null?void 0:(f=e.workspace)==null?void 0:f.workspaceId)+"/iterations/"+((h=d.iteration)==null?void 0:h.iterationId):d.getBaseUrl();d.domSafe.openInNewTab(c);return v()});Q(1," Current ");J();I(2,"onedev-hovercard",
null,0);C(4,LUb,2,2,"iteration-card",3);J()}a&2&&(a=L(3),D("onedevHovercardTrigger",a))},TUb=function(a,b,c,d,e){return NUb(a).map(function(f){var h=f.task,k=OUb(f.signals,b,e);if(h&&k&&k.length!==0){var q,u,A,G,H,N,O=h.taskId,U=h.taskResourceType,da=h.title,ma=PUb(k);f=QUb(f,k);if(h.issueResource){var ra=h.issueResource.priority;ra=ra==="P0"||ra==="P1"?ra:null}else ra=null;return{id:O,type:U,description:da,lastAlertTimestamp:ma,signals:f,link:h.externalLink,icon:Sya(h),priority:ra,accessLevel:(A=
(q=h.issueResource)==null?void 0:q.accessLevel)!=null?A:null,hotlistIds:h.issueResource?h.issueResource.hotlistIds:[],issueId:BJa(h.taskId).length===1?BJa(h.taskId)[0]:null,futureAvailability:RUb(k),reviewEstimate:SUb(k),lastMentionLink:((u=h.driveResource)==null?0:u.lastMentionLink)&&h.driveResource.lastMentionLink!==""?h.driveResource.lastMentionLink:void 0,isStaleTask:(G=h.isStaleTask)!=null?G:!1,snoozeUntilTimestamp:(H=h.snoozeUntilTimestamp)!=null?H:void 0,manualSignalTimestamp:(N=h.manualSignalTimestamp)!=
null?N:void 0,iteration:c.get(h.taskId),okrIds:d.get(h.taskId)}}}).filter(Tk)},OUb=function(a,b,c){return UUb(a).filter(function(d){var e;if(e=d.signalStatus===b)e=d.driveAlert?c.driveSignals.includes(d.driveAlert.signal):d.changelistAlert?c.changelistSignals.includes(d.changelistAlert.signal):d.issueAlert?c.buganizerSignals.includes(d.issueAlert.signal):d.gerritAlert?c.gerritSignals.includes(d.gerritAlert.signal):d.googleTasksAlert?c.googleTasksSignals.includes(d.googleTasksAlert.signal):d.irmAlert?
c.irmSignals.includes(d.irmAlert.signal):!1;return e})},NUb=function(a){return a.results.map(function(b){var c=b.task,d,e;return((e=c==null?void 0:(d=c.snoozeUntilTimestamp)==null?void 0:d.seconds)!=null?e:0)!==0?{task:c,signals:b.signals.map(function(f){return Object.assign({},f,{signalStatus:2})})}:b})},QUb=function(a,b){return b.map(function(c){var d={timestamp:c.timestamp,type:"DRIVE_SIGNAL_UNSPECIFIED"};if(c.driveAlert){d.type=c.driveAlert.signal;d.driveFileId=a.task.taskId.split("/")[1];d.driveCommentId=
c.driveAlert.commentId;var e;d.driveCommentLink=(e=a.task.driveResource)==null?void 0:e.lastMentionLink}c.changelistAlert&&(d.type=c.changelistAlert.signal);c.issueAlert&&(d.type=c.issueAlert.signal,d.commentNumbers=c.issueAlert.commentNumbers);c.googleTasksAlert&&(d.type=c.googleTasksAlert.signal);c.gerritAlert&&(d.type=c.gerritAlert.signal);c.irmAlert&&(d.type=c.irmAlert.signal);return d})},UUb=function(a){var b=a.some(function(c){var d;return((d=c.issueAlert)==null?void 0:d.signal)==="MENTIONED_NEEDS_RESPONSE"});
return a.filter(function(c){var d;return!b||((d=c.issueAlert)==null?void 0:d.signal)!=="COMMENT_MENTIONS_ME"})},PUb=function(a){return a.sort(function(b,c){var d,e;return((d=lm(c.timestamp))!=null?d:0)-((e=lm(b.timestamp))!=null?e:0)})[0].timestamp},VUb=function(a){switch(a.type){case "NEEDS_ATTENTION":case "GERRIT_CHANGE_NEEDS_ATTENTION":case "DUE_DATE_EXPIRED":case "MENTIONED_NEEDS_RESPONSE":return 0;case "REQUIRES_APPROVAL":case "READY_TO_SUBMIT":case "GERRIT_CHANGE_READY_TO_SUBMIT":case "NEAR_SLO":case "REPLIED_TO_MENTION":case "NEWLY_ASSIGNED_TO_ME":case "COMMENT_MENTIONS_ME":case "NEEDS_REPORTER_INPUT":case "CONFIGURABLE_ALERT":case "THREAD_MENTIONS_ME":case "TAGGED_IN_COMMENT":return 1;
default:return 2}},WUb=function(a){var b=a[0],c=VUb(b);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,VUb(d)<c&&(b=d,c=VUb(b));return b},RUb=function(a){return a.map(function(b){var c,d;return(c=b.changelistAlert)==null?void 0:(d=c.clAuthorAvailability)==null?void 0:d.futureAvailability}).find(Tk)},SUb=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(Tk)},XUb=function(a){if(a&1){var b=r();I(0,"a",5);M("click",function(){t(b);P(2).analytics.trackEvent("mentionsCard",
"navigate","comment");return v()});Q(1," a comment ");J()}a&2&&(a=P(2),D("href",a.lastMentionLink,uf))},YUb=function(a){a&1&&Q(0," a comment ")},ZUb=function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"span"),K(3,"b-user-display",2),Q(4," mentioned you in "),E(5,XUb,2,1,"a",3)(6,YUb,1,0),J(),I(7,"span"),K(8,"b-formatted-date-time",4),J()(),I(9,"div"),Q(10),J()());a&2&&(a=P(),z(3),D("model",{emailAddress:b.authorDisplayName}),z(2),F(a.lastMentionLink?5:6),z(3),D("timestamp",b.lastModifiedTimestamp),z(2),
ch(b.content))},$Ub=function(a,b){if(a&1){var c=r();I(0,"a",7);M("click",function(){t(c);P(3).analytics.trackEvent("mentionsCard","navigate","commentNumber");return v()});Q(1);J()}a&2&&(a=P(3),D("routerLinkObj",a.getCommentNumberLink(a.issueId,b)),z(),R(" comment #",b," "))},bVb=function(a){if(a&1){var b=r();I(0,"div",9)(1,"span",10);Q(2," Was this 'Needs Response' alert accurate? ");J();I(3,"button",11);M("click",function(){t(b);var c=P(4);return v(c.trackThumbsUp())});K(4,"mat-icon",12);J();I(5,
"button",13);M("click",function(){t(b);var c=P(4);return v(c.trackThumbsDown())});K(6,"mat-icon",14);J()()}a&2&&(a=P(4),z(3),D("disabled",a.hasReacted),z(),D("ngClass",jh(4,aVb,a.thumbsUpClicked)),z(),D("disabled",a.hasReacted),z(),D("ngClass",jh(6,aVb,a.thumbsDownClicked)))},cVb=function(a,b){a&1&&(I(0,"div"),K(1,"b-note-container",8),E(2,bVb,7,8,"div",9),J());if(a&2){a=P().$implicit;var c=P(2);z();D("issueId",c.issueId)("note",b)("formattingMode",a.formattingMode);z();F(c.needsResponse&&!a.commentRedacted?
2:-1)}},eVb=function(a,b){a&1&&(I(0,"div",1)(1,"div",2)(2,"span",3),K(3,"b-user-display",4),I(4,"span"),Q(5," mentioned you in "),E(6,$Ub,2,2,"a",5),J()(),I(7,"span"),K(8,"b-formatted-date-time",6),J()(),E(9,cVb,3,4,"div"),J());if(a&2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;var f=P(2);D("ngClass",jh(5,dVb,e!==b-1));z(3);D("model",a.lastCommentEditorUser);z(3);F((c=a.commentNumber)?6:-1,c);z(2);D("timestamp",a.commentLastModifiedAtDate);z();if(f.enableExternalMentionsFe||a.unlinkifiedComment){var h;
c={commentNumber:(h=a.commentNumber)!=null?h:void 0,unlinkifiedComment:a.commentRedacted?"Comment access restricted. Please reach out to the issue owner to view.":a.unlinkifiedComment,formattedComment:a.commentRedacted?void 0:a.formattedComment}}else c=null;F((d=c)?9:-1,d)}},gVb=function(a,b){a&1&&(I(0,"div",0),Dg(1,eVb,10,7,"div",1,fVb),I(3,"div"),Hg(4),J()());a&2&&(z(),Eg(b))},hVb=function(a){return a===void 0||a===null?[]:Object.keys(a).filter(function(b){return a.hasOwnProperty(b)})},iVb=function(a){a&
1&&Hg(0)},kVb=function(a){a&1&&C(0,iVb,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=L(3);D("ngTemplateOutlet",b)("ngTemplateOutletContext",jh(2,jVb,a))}},lVb=function(a,b){a&1&&E(0,kVb,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),F(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},nVb=function(a){a&1&&(I(0,"div",4),Dg(1,lVb,1,1,null,null,mVb),J());a&2&&(a=P(),z(),Eg(a.signals))},oVb=function(a){a&1&&Hg(0)},qVb=function(a,b){a&1&&(I(0,"div",6),C(1,oVb,1,0,"ng-container",5),I(2,"div",7),Q(3),
J()());if(a&2){a=P(2);var c=L(3);z();D("ngTemplateOutlet",c)("ngTemplateOutletContext",jh(4,jVb,b));z();D("matTooltip",pVb(a.signals,b));z();R(" and ",a.signals.length-1," more ")}},rVb=function(a){a&1&&E(0,qVb,4,6,"div",6);if(a&2){var b;a=P();F((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},vVb=function(a,b){if(a&1){var c=r();I(0,"div",11,2);M("mouseenter",function(){var f=t(c).xapLet,h=L(1);return v(f?h.disabled=!0:null)})("mouseleave",function(){var f=t(c).xapLet,h=L(1);return v(f?h.disabled=
!1:null)});Q(2);J()}if(a&2){a=b.xapLet;b=P().signal;var d=L(2),e=P();zg("signal-chip type-button urgent-",e.getSignalUrgency(b));wg("keep-focus-ring",a);D("onedevHovercardActive",a)("onedevHovercardTrigger",d)("matTooltip",sVb(e,b)||tVb(b)?'Press "Alt/Option + Right Arrow Key" to show comment':uVb.get(b.type));ng("tabindex",a?"0":"-1");z(2);R(" ",e.SIGNAL_TO_DISPLAY_TEXT.get(b.type)," ")}},xVb=function(a){a&1&&K(0,"mentioned-issue-comments-card",9,3);if(a&2){a=L(1);var b=P(2).signal,c=P(),d;D("onedevIsHovercardReady",
a.contentReady$)("issueId",c.issueId)("commentNumbers",(d=b.commentNumbers)!=null?d:ih(4,wVb))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},yVb=function(a){a&1&&C(0,xVb,2,5,"mentioned-issue-comments-card",12)},zVb=function(a){a&1&&K(0,"mentioned-drive-comments-card",10,3);if(a&2){a=L(1);var b=P(2).signal;D("onedevIsHovercardReady",a.contentReady$)("fileId",b.driveFileId)("commentId",b.driveCommentId)("lastMentionLink",b.driveCommentLink)}},AVb=function(a){a&1&&C(0,zVb,2,4,"mentioned-drive-comments-card",
13)},BVb=function(a,b){a&1&&(C(0,vVb,3,10,"div",8),I(1,"onedev-hovercard",null,1),E(3,yVb,1,0,"mentioned-issue-comments-card",9)(4,AVb,1,0,"mentioned-drive-comments-card",10),J());a&2&&(a=b.signal,b=P(),D("xapLet",sVb(b,a)||tVb(a)),z(3),F(sVb(b,a)?3:tVb(a)?4:-1))},DVb=function(a,b){a&1&&(I(0,"div",3)(1,"div",5),Q(2),J(),I(3,"div")(4,"a",6),Q(5),J()()());a&2&&(P(3),z(2),R(" O ",CVb(b==null?null:b.priorityRating)),z(2),D("href",b==null?null:b.url,uf),z(),ch(b==null?null:b.title))},EVb=function(a,b){a&
1&&(I(0,"div",4)(1,"div",7),Q(2),J(),I(3,"div")(4,"a",6),Q(5),J()()());a&2&&(P(3),z(2),R(" KR ",CVb(b.priorityRating)),z(2),D("href",b.url,uf),z(),R(" ",b==null?null:b.title))},HVb=function(a,b){a&1&&(I(0,"div",2),E(1,DVb,6,3,"div",3),E(2,EVb,6,3,"div",4),J());if(a&2){var c,d;a=b.$implicit;b=P();P();z();F((c=FVb(b,a))?1:-1,c);z();F((d=GVb(b,a))?2:-1,d)}},IVb=function(a){a&1&&(I(0,"div",0)(1,"div",1),Dg(2,HVb,3,2,"div",2,Cg),J()());a&2&&(a=P(),z(2),Eg(a.okrIds))},JVb=function(a){a&1&&K(0,"okr-card",
4,1);if(a&2){a=L(1);var b=P(2);D("onedevIsHovercardReady",a.hovercardReady$)("okrIds",b.okrIds)}},KVb=function(a){if(a&1){var b=r();I(0,"div",2);M("onedevHovercardShown",function(){t(b);var c=P();return v(c.trackHoverEvent())});Q(1,"OKR");J();I(2,"onedev-hovercard",null,0);C(4,JVb,2,2,"okr-card",3);J()}a&2&&(a=L(3),D("onedevHovercardTrigger",a))},LVb=function(a){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),Q(4," Your response time is longer than usual for similar items. Respond to unblock others ("),
I(5,"a",3),Q(6,"see more"),J(),Q(7,"). "),J()()()())},MVb=function(a){a&1&&K(0,"stale-task-card",5,1);if(a&2){a=L(1);var b=P();D("onedevIsHovercardReady",a.hovercardReady$)("taskId",b.taskId)}},NVb=function(a,b){if(a&1){var c=r();I(0,"button",5);M("click",function(d){var e=t(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});I(1,"mat-checkbox",8);Q(2);J()()}a&2&&(a=b.$implicit,b=P(),z(),D("checked",b.currentSelectedSignals.has(a)),z(),R(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," "))},
QVb=function(a,b){if(a&1){var c=r();I(0,"mat-chip-option",1)(1,"span",2);Q(2);J();I(3,"signal-list-dropdown",3);M("changeFilteredSignals",function(e){t(c);var f=P().$implicit,h=P();return v(h.signalFilterChange(e,f))})("chipSelectionStateChanged",function(e){t(c);var f=P().$implicit;P().chipsSelected[f]=e;return v()});J()()}if(a&2){a=P().$implicit;var d=P();D("value",a)("selected",d.chipsSelected[a]);z();D("matTooltip",b.tooltipText);z();R(" ",b.displayName," ");z();D("signalFilterKeys",OVb(d,a))("selectedSignals",
PVb(d,a))("source",a)}},RVb=function(a,b){a&1&&E(0,QVb,4,7,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();F((c=b.DEFINITIONS[a])?0:-1,c)}},SVb=function(a,b){a&1&&(I(0,"mat-chip-option",1)(1,"span",2),Q(2),J()());if(a&2){a=P().$implicit;var c=P();D("value",a)("selected",c.selectedSources.includes(a));z();D("matTooltip",b.tooltipText);z();R(" ",b.displayName," ")}},TVb=function(a,b){a&1&&E(0,SVb,3,4,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();F((c=b.DEFINITIONS[a])?0:-1,c)}},UVb=
function(a,b){if(a&1){var c=r();I(0,"button",7);M("click",function(){var d=t(c).$implicit,e=P();d=d.numberOfDays;e.selectedTimeBoundary=d;e.change.emit(d);return v()});Q(1);J()}a&2&&(a=b.$implicit,b=P(),D("disabled",a.numberOfDays===b.selectedTimeBoundary),z(),R(" ",a.label," "))},VVb=function(a){if(a&1){var b=r();I(0,"button",4);M("click",function(){t(b);var c=P();c.unsnooze.emit();c.onOpen(!1);return v()});K(1,"mat-icon",12);Q(2,"Unsnooze now ");J()}},WVb=function(a){if(a&1){var b=r();I(0,"div",
13);M("clickOutside",function(){t(b);P().timePickerOpen=!1;return v()});I(1,"b-date-time-picker-content",14);M("cancelClicked",function(){t(b);P().timePickerOpen=!1;return v()})("dateTimeChange",function(c){t(b);P().currentPickerDateTime=c;return v()})("saveClicked",function(){t(b);var c=P(),d=c.currentPickerDateTime;d&&c.snooze.emit(d);c.timePickerOpen=!1;return v()});J()()}a&2&&(a=P(),z(),D("required",!0)("renderPanel",!0)("dateTime",a.currentPickerDateTime)("includeTimePicker",!0)("todayButtonEnabled",
!1))},XVb=function(a){if(a&1){var b=r();Fg(0);I(1,"div",1)(2,"span",2)(3,"a",3);M("click",function(){t(b);P().onChipClicked.emit();return v()});Q(4,"DMA");J()()();Gg()}a&2&&(a=P(),z(),D("matTooltip",a.DMA_TOOLTIP_TEXT))},YVb=function(a){a&1&&(I(0,"label",10),Q(1),J());a&2&&(a=P().$implicit,D("matTooltip",a.description),z(),ch(a.label))},ZVb=function(a){a&1&&(I(0,"mat-tab"),C(1,YVb,2,2,"ng-template",9),J())},$Vb=function(a){if(a&1){var b=r();I(0,"mat-tab-group",8);M("selectedIndexChange",function(c){t(b);
var d=P();return v(d.onTabIndexChange(c))});Dg(1,ZVb,2,0,"mat-tab",null,Cg);J()}a&2&&(a=P(),D("selectedIndex",0),z(),Eg(a.tabData))},bWb=function(a,b){if(a&1){var c=r();I(0,"signal-filter-chips",12);M("changeSourceAndFilteredSignals",function(e){t(c);var f=P(3).missionControlPrefs,h=e.selectedSignals;f.prefs.needsAttentionSources=e.selectedSources.map($gb);f.prefs.needsAttentionBuganizerFilteredSignals=bhb(h.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=fhb(h.driveSignals,
f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=hhb(h.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=dhb(h.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=lhb(h.googleTasksSignals,f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=mhb(h.irmSignals,f.filteredSignalsOptions);Rr(f,{needsAttentionSources:f.prefs.needsAttentionSources,isNeedsAttentionSourcesConfigured:!0,needsAttentionBuganizerFilteredSignals:f.prefs.needsAttentionBuganizerFilteredSignals,
needsAttentionDriveFilteredSignals:f.prefs.needsAttentionDriveFilteredSignals,needsAttentionGerritFilteredSignals:f.prefs.needsAttentionGerritFilteredSignals,needsAttentionGoogleTasksFilteredSignals:f.prefs.needsAttentionGoogleTasksFilteredSignals,needsAttentionChangelistFilteredSignals:f.prefs.needsAttentionChangelistFilteredSignals,needsAttentionIrmFilteredSignals:f.prefs.needsAttentionIrmFilteredSignals});return v()})("changeSourceFilter",function(e){t(c);var f=P(3);aWb(f.missionControlPrefs,e);
return v()});J()}if(a&2){a=P();var d=P(2);D("sourceFilterKeys",d.SOURCE_FILTERS)("selectedSources",a)("selectedSignals",b)}},cWb=function(a){a&1&&(E(0,bWb,1,3,"signal-filter-chips",11),S(1,"async"));if(a&2){var b;a=P(2);F((b=T(1,1,a.filteredSignals$))?0:-1,b)}},dWb=function(a){a&1&&(E(0,cWb,2,3),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.sources$))?0:-1,b)}},eWb=function(a,b){if(a&1){var c=r();I(0,"source-filter-chips",14);M("change",function(d){t(c);var e=P(2);aWb(e.missionControlPrefs,d);return v()});
J()}a&2&&(a=P(2),D("sourceFilterKeys",a.SOURCE_FILTERS)("selectedSources",b))},fWb=function(a){a&1&&(E(0,eWb,1,2,"source-filter-chips",13),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.sources$))?0:-1,b)}},gWb=function(a,b){if(a&1){var c=r();I(0,"time-boundary-filter",15);M("change",function(d){t(c);var e=P().missionControlPrefs;e.prefs.needsAttentionDaysOld=d;Rr(e,{needsAttentionDaysOld:d});return v()});J()}a&2&&D("selectedTimeBoundary",b)},hWb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"button",
16,0);M("taskAdded",function(){t(b);var c=P();return v(c.refreshTaskData())});Q(3," Add a task ");J()()}},iWb=function(a){a&1&&(I(0,"p",17),Q(1," No alerts "),J())},jWb=function(a){if(a&1){var b=r();I(0,"th",33)(1,"mat-checkbox",34);M("change",function(d){t(b);var e=P(2),f=P(2);return v(d?f.toggleAllRows(e):null)});J()()}if(a&2){a=P(2);var c=P(2);z();D("checked",c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},
kWb=function(a,b){if(a&1){var c=r();I(0,"td",35)(1,"mat-checkbox",36);M("click",function(d){t(c);return v(d.stopPropagation())})("change",function(d){var e=t(c).$implicit,f=P(4);return v(d?f.selection.toggle(e.id):null)});J()()}a&2&&(a=b.$implicit,b=P(4),z(),D("checked",b.selection.isSelected(a.id)))},lWb=function(a){a&1&&(I(0,"th",33),Q(1),J());a&2&&(a=P(4),z(),ch(a.selection.hasValue()?"":"Source"))},mWb=function(a,b){a&1&&(I(0,"td",35),K(1,"mat-icon",37),J());a&2&&(a=b.$implicit,z(),zg("product-icon ",
a.icon),D("matTooltip",a.type)("svgIcon",a.icon))},oWb=function(a){if(a&1){var b=r();I(0,"button",40);M("click",function(){t(b);var c=P(5);nWb(c,c.selection.selected);c.selection.clear();return v()});Q(1);S(2,"async");J()}a&2&&(a=P(5),z(),ch(T(2,1,a.dismissButtonLabel$)))},pWb=function(a){a&1&&(I(0,"span"),Q(1,"Description"),J())},rWb=function(a){if(a&1){var b=r();I(0,"button",41);Q(1);S(2,"async");J();I(3,"snooze-menu",42,1);M("snooze",function(d){t(b);var e=P(5);qWb(e,e.selection.selected,d);e.selection.clear();
return v()})("unsnooze",function(){t(b);var d=P(5);qWb(d,d.selection.selected);d.selection.clear();return v()});J()}if(a&2){a=L(4);var c=P(5);D("matMenuTriggerFor",a.menu);z();ch(T(2,3,c.snoozeButtonLabel$));z(2);D("isSnoozed",c.signalStatusFilter$.getValue()===c.SignalStatus.SNOOZED)}},uWb=function(a){if(a&1){var b=r();I(0,"button",43);M("click",function(){t(b);var c=P(5);return v(sWb(c))});Q(1);J()}a&2&&(a=P(5),z(),ch(tWb(a)?"Trigger manual signal":"Remove manual signal"))},vWb=function(a){a&1&&
(I(0,"th",33),E(1,oWb,3,3,"button",38)(2,pWb,2,0,"span"),E(3,rWb,5,5),E(4,uWb,2,1,"button",39),J());a&2&&(a=P(4),z(),F(a.selection.hasValue()?1:2),z(2),F(a.selection.hasValue()?3:-1),z(),F(a.selection.hasValue()?4:-1))},wWb=function(a){a&1&&K(0,"b-issue-visibility-chip",46);if(a&2){a=P(2).$implicit;var b=P(4);D("issueId",b.extractLastDigits(a.id))}},xWb=function(a){a&1&&K(0,"okr-chip",47);a&2&&(a=P(2).$implicit,D("okrIds",a.okrIds))},yWb=function(a){a&1&&K(0,"iteration-chip",48);a&2&&(a=P(2).$implicit,
D("iteration",a.iteration))},zWb=function(a){a&1&&(I(0,"div",49),S(1,"futureAvailability"),K(2,"mat-icon",54),J());a&2&&(a=P(2).$implicit,D("matTooltip",T(1,1,a.futureAvailability)))},AWb=function(a){a&1&&(I(0,"div",50),Q(1),S(2,"number"),J());a&2&&(a=P(2).$implicit,z(),R(" <",mh(2,1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},BWb=function(a){a&1&&K(0,"b-issue-priority-display",51);a&2&&(a=P(2).$implicit,D("issuePriority",a.priority))},CWb=function(a){if(a&1){var b=r();I(0,"div",44);E(1,wWb,1,1,
"b-issue-visibility-chip",46);E(2,xWb,1,1,"okr-chip",47);E(3,yWb,1,1,"iteration-chip",48);E(4,zWb,3,3,"div",49);E(5,AWb,3,4,"div",50);E(6,BWb,1,1,"b-issue-priority-display",51);I(7,"a",52);M("auxclick",function(){t(b);var d=P().$implicit,e=P(2),f=P(2);return v(f.sendClickAnalytics(d,e.slice(0,f.numDisplayedRows)))});Q(8);J();I(9,"onedev-dma-chip",53);M("onChipClicked",function(){t(b);var d=P(5);return v(d.sendDmaAnalytics())});J()()}if(a&2){a=P().$implicit;var c=P(4);z();F(a.type===c.TaskResourceType.ISSUE?
1:-1);z();F(c.enableOkrChip&&a.okrIds&&a.okrIds.length>0?2:-1);z();F(c.enableIterationChip&&a.iteration?3:-1);z();F(c.hasFutureAvailability(a)?4:-1);z();F(a.reviewEstimate&&a.reviewEstimate.seconds>=60?5:-1);z();F(a.priority?6:-1);z();D("href",a.type==="ISSUE"?"/issues/"+a.issueId:a.lastMentionLink?a.lastMentionLink:a.link,uf);ng("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);z();R(" ",a.description," ");z();D("hotlistIds",a.hotlistIds)}},DWb=function(a){a&1&&(I(0,"span",45),Q(1,"No access to linked file"),
J())},EWb=function(a,b){a&1&&(I(0,"td",35),E(1,CWb,10,10,"div",44)(2,DWb,2,0,"span",45),J());a&2&&(a=b.$implicit,z(),F(a.description&&a.description!==""?1:2))},FWb=function(a){a&1&&(I(0,"th",33),Q(1),J());a&2&&(a=P(4),z(),ch(a.selection.hasValue()?"":"Most recent alert"))},GWb=function(a){if(a&1){var b=r();I(0,"div")(1,"stale-task-indicator",55);M("click",function(){t(b);P();P(4).analytics.trackEvent("missionControl","click","stalenessChip-{{row.type}}");return v()});J()()}a&2&&(a=P().$implicit,z(),
D("taskId",a.id)("lastAlertTimestamp",a.lastAlertTimestamp))},HWb=function(a){a&1&&K(0,"b-formatted-date-time",56);a&2&&(a=P(2).$implicit,D("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},IWb=function(a){a&1&&E(0,HWb,1,2,"b-formatted-date-time",56);a&2&&(a=P().$implicit,F(a.lastAlertTimestamp?0:-1))},JWb=function(a,b){a&1&&(I(0,"td",35),E(1,GWb,2,2,"div")(2,IWb,1,1),J());a&2&&(a=b.$implicit,b=P(4),z(),F(b.enableStaleTasks&&a.isStaleTask?1:2))},KWb=function(a){a&1&&(I(0,"th",33),Q(1),J());a&
2&&(a=P(4),z(),R(" ",a.selection.hasValue()?"":"Alert"," "))},LWb=function(a,b){a&1&&(I(0,"td",35),K(1,"needs-attention-signals-cell",57),J());a&2&&(a=b.$implicit,z(),D("issueId",a.issueId)("signals",a.signals))},MWb=function(a){a&1&&(I(0,"th",33),Q(1),J());a&2&&(a=P(4),z(),ch(a.selection.hasValue()?"":"Action"))},NWb=function(a,b){a&1&&(I(0,"td",35)(1,"a",58),Q(2),J()());a&2&&(a=b.$implicit,b=P(4),z(2),R(" ",b.SIGNAL_TO_ACTION_TEXT.get(b.getHighestPrioritySignal(a.signals).type)," "))},OWb=function(a){a&
1&&(I(0,"th",59),Q(1),J());a&2&&(a=P(4),z(),ch(a.selection.hasValue()?"":a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},QWb=function(a){a&1&&(I(0,"span",60),Q(1),J());a&2&&(a=P().$implicit,P(4),z(),R("",PWb(a)," "))},RWb=function(a,b){if(a&1){var c=r();I(0,"td",35);E(1,QWb,2,1,"span",60);I(2,"div",61)(3,"button",62);M("click",function(h){var k=t(c).$implicit,q=P(4);h.preventDefault();return v(q.copyIdOrLink(k))});K(4,"mat-icon",63);J();Kg(5);S(6,"async");I(7,
"button",64);M("click",function(h){var k=t(c).$implicit,q=P(4);h.preventDefault();return v(q.dismissAlert(k))});K(8,"mat-icon",65);J();Kg(9);S(10,"async");I(11,"button",66);M("click",function(h){t(c);return v(h.preventDefault())});K(12,"mat-icon",67);J();I(13,"snooze-menu",42,1);M("snooze",function(h){var k=t(c).$implicit,q=P(4);qWb(q,[k.id],h);return v()})("unsnooze",function(){var h=t(c).$implicit,k=P(4);qWb(k,[h.id]);return v()});J()()()}if(a&2){var d=b.$implicit;a=L(14);b=P(4);z();F(b.signalStatusFilter$.getValue()===
b.SignalStatus.SNOOZED?1:-1);z(2);D("matTooltip",d.type===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");ng("aria-label",d.type===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");var e;d=(e=T(6,9,b.dismissButtonTooltip$))!=null?e:"";z(4);D("ariaLabel",d)("matTooltip",d);var f;e=(f=T(10,11,b.snoozeButtonTooltip$))!=null?f:"";z(4);D("ariaLabel",e)("matTooltip",e)("matMenuTriggerFor",a.menu);z(2);D("isSnoozed",b.signalStatusFilter$.getValue()===b.SignalStatus.SNOOZED)}},
SWb=function(a){a&1&&K(0,"tr",68)},TWb=function(a){if(a&1){var b=r();I(0,"tr",69);M("click",function(c){var d=t(b).$implicit,e=P(2),f=P(2);return v(f.navigateToResource(c,d,e.slice(0,f.numDisplayedRows)))});J()}},UWb=function(a){a&1&&(I(0,"tr",70)(1,"td",71),Q(2," No alerts found "),J()())},VWb=function(a){a&1&&K(0,"mat-icon",73)},WWb=function(a){a&1&&K(0,"mat-icon",74)},XWb=function(a){if(a&1){var b=r();I(0,"button",72);M("click",function(){t(b);var d=P(2),e=P(2);return v(e.setNumDisplayedRows(d))});
Q(1);E(2,VWb,1,0,"mat-icon",73);E(3,WWb,1,0,"mat-icon",74);J()}if(a&2){a=P(2);var c=P(2);z();R(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");z();F(a.length>c.numDisplayedRows?2:-1);z();F(a.length===c.numDisplayedRows?3:-1)}},YWb=function(a){a&1&&(I(0,"table",18),Fg(1,19),C(2,jWb,2,2,"th",20)(3,kWb,2,1,"td",21),Gg(),Fg(4,22),C(5,lWb,2,1,"th",20)(6,mWb,2,5,"td",21),Gg(),Fg(7,23),C(8,vWb,5,3,"th",20)(9,EWb,3,1,"td",21),Gg(),Fg(10,24),C(11,FWb,2,1,"th",20)(12,JWb,3,1,"td",21),Gg(),Fg(13,
25),C(14,KWb,2,1,"th",20)(15,LWb,2,2,"td",21),Gg(),Fg(16,26),C(17,MWb,2,1,"th",20)(18,NWb,3,1,"td",21),Gg(),Fg(19,27),C(20,OWb,2,1,"th",28)(21,RWb,15,13,"td",21),Gg(),C(22,SWb,1,0,"tr",29)(23,TWb,1,0,"tr",30)(24,UWb,3,0,"tr",31),J(),E(25,XWb,4,3,"button",32));if(a&2){a=P();var b=P(2);D("dataSource",a.slice(0,b.numDisplayedRows));z(22);D("matHeaderRowDef",b.displayedColumns);z();D("matRowDefColumns",b.displayedColumns);z(2);F(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?25:-1)}},ZWb=function(a,b){a&1&&(E(0,
iWb,2,0,"p",17),E(1,YWb,26,4));a&2&&(F(b.length===0?0:-1),z(),F(b.length>0?1:-1))},$Wb=function(a){a&1&&(E(0,ZWb,2,2),S(1,"async"));if(a&2){var b;a=P();F((b=T(1,1,a.allNeedsAttention$))?0:-1,b)}},aXb=function(a){a&1&&(I(0,"div",7),K(1,"b-spinner",75),J());a&2&&(z(),D("ariaLabel","loading needs attention alerts"))},bXb=function(a,b){var c=a.signals.map(function(d){return d.type});a=b.flatMap(function(d){return d.signals.map(function(e){return e.type})});a=jk(a).filter(function(d){return!c.includes(d)}).sort();
return[c.join(","),a.join(",")]},cXb=function(a){return a.reduce(function(b,c){c.iterations!==void 0&&c.iterations.length>0&&b.set(c.workItemId,c.iterations[0]);return b},new Map)},dXb=function(a){return a.reduce(function(b,c){c.okrIds!==void 0&&c.okrIds.length>0&&b.set(c.workItemId,c.okrIds);return b},new Map)},eXb=function(a){return a.filter(function(b){return b.task&&b.task.taskResourceType==="ISSUE"}).map(function(b){var c;return(c=b.task)==null?void 0:c.taskId}).filter(Tk)},fXb=function(a,b){a&
1&&(I(0,"div",6)(1,"span",8),Q(2),J()());a&2&&(z(2),ch(b))},gXb=function(a){a&1&&(I(0,"div",7),K(1,"b-needs-attention-table",9),J());a&2&&(a=P(),z(),D("refreshTable",a.refreshData))},hXb=function(a,b){return{label:"Viewed",description:"Issues you recently viewed",issues:a.watchMany({custom:"viewed",pageSize:50}).pipe(y(function(c){c=c.results;return b?c.filter(function(d){return d.trackerId===b}):c})),loading:!1}},iXb=function(a){return a.includes("WTDM")&&!a.includes("NON_WTDM")?"WTDM_TYPES":a.includes("NON_WTDM")&&
!a.includes("WTDM")?"STANDARD_TYPES":"ISSUE_TYPE_GROUPS_UNSPECIFIED"},jXb=function(a){a&1&&(I(0,"label",11),Q(1),J());a&2&&(a=P().$implicit,D("matTooltip",a.description),z(),ch(a.label))},kXb=function(a,b){if(a&1){var c=r();I(0,"source-filter-chips",14);M("change",function(d){t(c);var e=P(5).prefsService;d=d.map($gb);e.prefs.myTasksSources=d;Rr(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return v()});J()}a&2&&(a=P(5),D("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},lXb=function(a){a&
1&&(I(0,"span",2),Q(1,"Sources"),J(),E(2,kXb,1,2,"source-filter-chips",13),S(3,"async"));if(a&2){var b;a=P(4);z(2);F((b=T(3,1,a.sources$))?2:-1,b)}},mXb=function(a,b){if(a&1){var c=r();I(0,"time-boundary-filter",15);M("change",function(d){t(c);var e=P(4).prefsService;e.prefs.myTasksDaysOld=d;Rr(e,{myTasksDaysOld:d});return v()});J()}a&2&&D("selectedTimeBoundary",b)},nXb=function(a){a&1&&(I(0,"div",9),E(1,lXb,4,3),E(2,mXb,1,1,"time-boundary-filter",12),S(3,"async"),J());if(a&2){var b;a=P(3);z();F(a.isInternalSession?
1:-1);z();F((b=T(3,2,a.timeBoundary$))?2:-1,b)}},oXb=function(a,b){a&1&&K(0,"b-issues-table",16);a&2&&(a=P(4),D("issueIds",a.getIds(b))("tableColumns",a.tableColumns)("options",a.tableOptions))},pXb=function(a,b){a&1&&(I(0,"p",18),Q(1),J());a&2&&(z(),R(" ",b.length===0?"Enable source filters to see tasks":"No tasks"," "))},qXb=function(a){a&1&&(E(0,pXb,2,1,"p",18),S(1,"async"));if(a&2){var b;a=P(5);F((b=T(1,1,a.sources$))?0:-1,b)}},rXb=function(a){a&1&&(I(0,"th",36),Q(1,"Source"),J())},sXb=function(a,
b){a&1&&(I(0,"td",37),K(1,"mat-icon",38),J());a&2&&(a=b.$implicit,b=P(6),z(),zg("product-icon ",b.taskResourceTypeToIcon(a)),D("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},tXb=function(a){a&1&&(I(0,"th",36),Q(1,"Description"),J())},uXb=function(a){a&1&&K(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,D("issueId",a.issueId)("compactMode",!0))},vXb=function(a){a&1&&K(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,D("issuePriority",a.issueResource.priority))},
wXb=function(a){if(a&1){var b=r();I(0,"onedev-dma-chip",44);M("onChipClicked",function(){t(b);var c=P(8);return v(c.sendDmaAnalytics())});J()}a&2&&(a=P(2).$implicit,D("hotlistIds",a.issueResource.hotlistIds))},yXb=function(a){if(a&1){var b=r();E(0,uXb,1,2,"b-issue-visibility-chip",40);E(1,vXb,1,1,"b-issue-priority-display",41);I(2,"a",42);M("auxclick",function(){t(b);var d=P().$implicit,e=P(6);return v(e.sendClickAnalytics(d))});Q(3);J();E(4,wXb,1,1,"onedev-dma-chip",43)}if(a&2){a=P().$implicit;var c=
P(6);F(a.issueId?0:-1);z();F(a.issueResource&&a.issueResource.priority&&xXb(a.issueResource.priority)?1:-1);z();D("href",a.taskResourceType===c.TaskResourceType.ISSUE?"/issues/"+c.extractLastDigits(a.taskId):a.externalLink,uf);ng("target",a.taskResourceType!==c.TaskResourceType.ISSUE?"_blank":null);z();ch(a.title);z();F(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},zXb=function(a){a&1&&(I(0,"span",39),Q(1,"No access to linked file"),J())},AXb=function(a,b){a&1&&(I(0,"td",37),E(1,yXb,5,6)(2,
zXb,2,0,"span",39),J());a&2&&(a=b.$implicit,z(),F(a.title&&a.title!==""?1:2))},BXb=function(a){a&1&&(I(0,"th",36),Q(1,"Last modified"),J())},CXb=function(a){a&1&&K(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,D("timestamp",a.lastModifiedTimestamp)("paddingLeftPx",0))},DXb=function(a,b){a&1&&(I(0,"td",37),E(1,CXb,1,2,"b-formatted-date-time",45),J());a&2&&(a=b.$implicit,z(),F(a.lastModifiedTimestamp?1:-1))},EXb=function(a){a&1&&(I(0,"th",36),Q(1,"My role"),J())},FXb=function(a,b){a&1&&(I(0,"td",
37),Q(1),J());a&2&&(a=b.$implicit,z(),ch(a.resourceRelationships[0].roleName))},GXb=function(a){a&1&&(I(0,"th",36),Q(1,"Creation date"),J())},HXb=function(a){a&1&&K(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,D("timestamp",a.createdTimestamp)("paddingLeftPx",0))},IXb=function(a){a&1&&Q(0," -- ")},JXb=function(a,b){a&1&&(I(0,"td",37),E(1,HXb,1,2,"b-formatted-date-time",45)(2,IXb,1,0),J());a&2&&(a=b.$implicit,z(),F(a.createdTimestamp?1:2))},KXb=function(a){a&1&&(I(0,"th",46),Q(1," Options "),
J())},MXb=function(a,b){if(a&1){var c=r();I(0,"td",47)(1,"div",48)(2,"button",49);M("click",function(d){var e=t(c).$implicit,f=P(6);d.preventDefault();return v(LXb(f,e))});K(3,"mat-icon",50);J();I(4,"button",51);M("click",function(d){var e=t(c).$implicit,f=P(6);d.preventDefault();return v(f.copyIdOrLink(e))});K(5,"mat-icon",52);J()()()}a&2&&(a=b.$implicit,b=P(6),z(2),D("disabled",b.isSavingManualSignal)("matTooltip","Trigger a needs attention alert on this task"),z(2),D("matTooltip",a.taskResourceType===
b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"),ng("aria-label",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"))},NXb=function(a){a&1&&K(0,"tr",53)},OXb=function(a){if(a&1){var b=r();I(0,"tr",54);M("click",function(c){var d=t(b).$implicit,e=P(6);return v(e.navigateToResource(c,d))});J()}},PXb=function(a){a&1&&K(0,"mat-icon",58)},QXb=function(a){a&1&&K(0,"mat-icon",59)},RXb=function(a){if(a&1){var b=r();I(0,"button",57);M("click",
function(){t(b);var d=P(3),e=P(4);return v(e.setNumDisplayedRows(d))});Q(1);E(2,PXb,1,0,"mat-icon",58);E(3,QXb,1,0,"mat-icon",59);J()}if(a&2){a=P(3);var c=P(4);z();R(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");z();F(a.length>c.numDisplayedRows?2:-1);z();F(a.length===c.numDisplayedRows?3:-1)}},SXb=function(a){a&1&&(I(0,"td",55),E(1,RXb,4,3,"button",56),J());if(a&2){a=P(2);var b=P(4);z();F(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?1:-1)}},TXb=function(a){a&1&&K(0,"tr",60);if(a&2){a=P(2);
var b=P(4);D("hidden",!(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED))}},UXb=function(a,b){a&1&&(I(0,"td",62),Q(1),J());a&2&&(z(),R(" ",b.length===0?"Enable source filters to see tasks":"No tasks found"," "))},VXb=function(a){a&1&&(I(0,"tr",61),E(1,UXb,2,1,"td",62),S(2,"async"),J());if(a&2){var b;a=P(6);z();F((b=T(2,1,a.sources$))?1:-1,b)}},YXb=function(a){a&1&&(I(0,"table",19),Fg(1,20),C(2,rXb,2,0,"th",21)(3,sXb,2,5,"td",22),Gg(),Fg(4,23),C(5,tXb,2,0,"th",21)(6,AXb,3,1,"td",22),Gg(),Fg(7,24),C(8,BXb,2,
0,"th",21)(9,DXb,2,1,"td",22),Gg(),Fg(10,25),C(11,EXb,2,0,"th",21)(12,FXb,2,1,"td",22),Gg(),Fg(13,26),C(14,GXb,2,0,"th",21)(15,JXb,3,1,"td",22),Gg(),Fg(16,27),C(17,KXb,2,0,"th",28)(18,MXb,6,4,"td",29),Gg(),C(19,NXb,1,0,"tr",30)(20,OXb,1,0,"tr",31),Fg(21,32),C(22,SXb,2,1,"td",33),Gg(),C(23,TXb,1,1,"tr",34)(24,VXb,3,3,"tr",35),J());if(a&2){a=P();var b=P(2).$implicit,c=P(2);zg("table-",b.label);D("dataSource",a.slice(0,c.numDisplayedRows)||ih(7,WXb));z(19);D("matHeaderRowDef",c.displayColumns);z();D("matRowDefColumns",
c.displayColumns);z(3);D("matFooterRowDef",ih(8,XXb))}},ZXb=function(a,b){a&1&&(E(0,qXb,2,3),E(1,YXb,25,9,"table",17));a&2&&(F(b.length===0?0:-1),z(),F(b.length>0?1:-1))},$Xb=function(a){a&1&&(E(0,oXb,1,3,"b-issues-table",16),S(1,"async"),E(2,ZXb,2,2),S(3,"async"));if(a&2){var b,c;a=P().$implicit;F((b=T(1,2,a.issues))?0:-1,b);z(2);F((c=T(3,4,a.liteTasks))?2:-1,c)}},aYb=function(a){a&1&&(I(0,"div",10),K(1,"b-spinner",63),J());a&2&&(z(),D("ariaLabel","loading tasks"))},bYb=function(a,b){a&1&&(I(0,"mat-tab"),
C(1,jXb,2,2,"ng-template",8),E(2,nXb,4,4,"div",9),E(3,$Xb,4,6)(4,aYb,2,1,"div",10),J());a&2&&(a=b.$implicit,z(2),F(a.liteTasks?2:-1),z(),F(a.loading?4:3))},cYb=function(a){if(a&1){var b=r();I(0,"div",6)(1,"mat-tab-group",7);M("selectedIndexChange",function(c){t(b);var d=P();return v(d.onTabIndexChange(c))});Dg(2,bYb,5,2,"mat-tab",null,Cg);J()()}a&2&&(a=P(),z(),D("selectedIndex",a.INITIAL_TAB_INDEX),z(),Eg(a.tabData))},dYb=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?lm(b.lastModifiedTimestamp)-
lm(a.lastModifiedTimestamp):1:-1},eYb=function(a){var b=SHa(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),e=a.getLastUpdatedTimestamp();if(!b)throw Error("md");if(!c)throw Error("nd");if(!d)throw Error("od");if(!e)throw Error("Kf");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:UHa(c),timeOfDay:WHa(d),displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:kl(a,8),showInBuganizerHome:kl(a,9),baselineIssueIds:[].concat(p(El(a,10))),isOverflowing:kl(a,11),lastUpdated:al(e)}},
fYb=function(a){var b=(new As).setId(a.id).setFrequency(THa(a.frequency)).setOrdinal(a.ordinal).setTimeZone(VHa(a.timeZone)).setTimeOfDay(XHa(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);b=Xm(b,8,a.sendEmail);b=Xm(b,9,a.showInBuganizerHome);b=jp(b,10,a.baselineIssueIds);b=Xm(b,11,a.isOverflowing);a=cl(a.lastUpdated);return W(b,bl,12,a)},gYb=function(a,b){a&1&&(I(0,"mat-option",2),Q(1),J());a&2&&(a=b.$implicit,D("value",a.id),z(),R(" ",a.displayName," "))},hYb=function(a,b){return a.gmt===
b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},iYb=function(a,b){a&1&&(I(0,"mat-option",2),Q(1),J());a&2&&(a=b.$implicit,D("value",a.frequency),z(),R(" ",a.display," "))},jYb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Frequency ");J();I(4,"mat-select",1);M("ngModelChange",function(d){t(c);var e=P();return v(e.frequency$.next(d))});Dg(5,iYb,2,2,"mat-option",2,Cg);J()()()}a&2&&(a=P(),z(4),D("ngModel",b),z(),Eg(a.frequencyOptions))},kYb=function(a,b){a&1&&(I(0,"mat-option",
2),Q(1),J());a&2&&(a=b.$implicit,D("value",a.ordinal),z(),R(" ",a.display," "))},lYb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Repeat on ");J();I(4,"mat-select",1);M("ngModelChange",function(d){t(c);var e=P();return v(e.ordinal$.next(d))});Dg(5,kYb,2,2,"mat-option",2,Cg);J()()()}a&2&&(a=P(),z(4),D("ngModel",b),z(),Eg(a.repeatOnOptions.get(a.frequency$.value)))},mYb=function(a,b){a&1&&(I(0,"mat-option",2),Q(1),J());a&2&&(a=b.$implicit,D("value",a.timeOfDay),
z(),R(" ~",a.display," "))},nYb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"mat-form-field",0)(2,"mat-label");Q(3," Repeat at ");J();I(4,"mat-select",3);M("ngModelChange",function(d){t(c);var e=P();return v(e.timeOfDay$.next(d))});Dg(5,mYb,2,2,"mat-option",2,Cg);J()()()}a&2&&(a=P(),z(4),D("ngModel",b)("compareWith",a.compareTimeOfDay),z(),Eg(a.repeatAtOptions))},oYb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"b-timezone-picker",4);M("timezoneIdChange",function(d){t(c);var e=P();return v(e.timeZoneId$.next(d))});
J()()}a&2&&(z(),D("timezoneId",b)("fullWidth",!0))},pYb=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&a.seconds===b.seconds&&a.nanos===b.nanos},qYb=function(a){a&1&&Hg(0)},rYb=function(a){a&1&&(I(0,"th",17),Q(1,"Name"),J())},sYb=function(a,b){a&1&&(I(0,"td",18),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.displayName," "))},tYb=function(a){a&1&&(I(0,"th",17),Q(1,"Status"),J())},uYb=function(a){a&1&&K(0,"mat-icon",19);a&2&&(a=P(3),D("matTooltip",a.warningTooltipText))},vYb=function(a,
b){a&1&&(I(0,"td",18),E(1,uYb,1,1,"mat-icon",19),J());a&2&&(a=b.$implicit,z(),F(a.isOverflowing?1:-1))},wYb=function(a){a&1&&(I(0,"th",17),Q(1,"Actions"),J())},xYb=function(a){if(a&1){var b=r();I(0,"td",18)(1,"button",20);K(2,"mat-icon",21);J();I(3,"mat-menu",null,2)(5,"button",22);M("click",function(){var c=t(b).$implicit,d=P(2);return v(d.openDialog(c))});Q(6," Edit subscription ");J();I(7,"button",23);M("click",function(){var c=t(b).$implicit,d=P(2);return v(d.openConfirmDeleteDialog(c))});Q(8,
" Delete subscription ");J()()()}a&2&&(a=L(4),z(),D("matMenuTriggerFor",a))},yYb=function(a){a&1&&K(0,"tr",24)},zYb=function(a,b){a&1&&K(0,"tr",25);a&2&&(a=b.$implicit,ng("aria-label","Subscription "+a.id+": "+a.displayName))},AYb=function(a){a&1&&(I(0,"div",8)(1,"table",9),Fg(2,10),C(3,rYb,2,0,"th",11)(4,sYb,2,1,"td",12),Gg(),Fg(5,13),C(6,tYb,2,0,"th",11)(7,vYb,2,1,"td",12),Gg(),Fg(8,14),C(9,wYb,2,0,"th",11)(10,xYb,9,1,"td",12),Gg(),C(11,yYb,1,0,"tr",15)(12,zYb,1,1,"tr",16),J()());a&2&&(a=P(),z(),
D("dataSource",a.ownedSubscriptions$),z(10),D("matHeaderRowDef",a.columnsToDisplay),z(),D("matRowDefColumns",a.columnsToDisplay))},BYb=function(a){a&1&&Q(0," Add configurable alert ")},CYb=function(a){a&1&&Q(0," Update configurable alert ")},DYb=function(a){a&1&&Q(0," Create a new configurable alert. ")},EYb=function(a){a&1&&Q(0," Update a configurable alert. ")},FYb=function(a){a&1&&Q(0);a&2&&(a=P().$implicit,R(" Subscription ID: ",a.id," "))},GYb=function(a){a&1&&K(0,"b-spinner")},HYb=function(a,
b){if(a&1){var c=r();I(0,"h1",26);E(1,BYb,1,0)(2,CYb,1,0);J();I(3,"mat-dialog-content")(4,"p",27);E(5,DYb,1,0)(6,EYb,1,0);J();I(7,"mat-form-field",28)(8,"mat-label");Q(9,"Name");J();I(10,"input",29);gh("ngModelChange",function(d){var e=t(c).$implicit;fh(e.displayName,d)||(e.displayName=d);return v(d)});J()();I(11,"mat-form-field",28)(12,"mat-label");Q(13,"Search query");J();I(14,"input",30);gh("ngModelChange",function(d){var e=t(c).$implicit;fh(e.query,d)||(e.query=d);return v(d)});J()();I(15,"b-delivery-frequency-subform",
31);M("frequencyChange",function(d){var e=t(c).$implicit,f=P();return v(f.setFrequency(e,d))});gh("ordinalChange",function(d){var e=t(c).$implicit;fh(e.ordinal,d)||(e.ordinal=d);return v(d)})("timeOfDayChange",function(d){var e=t(c).$implicit;fh(e.timeOfDay,d)||(e.timeOfDay=d);return v(d)})("timeZoneIdChange",function(d){var e=t(c).$implicit;fh(e.timeZone.id,d)||(e.timeZone.id=d);return v(d)});J();I(16,"div",28)(17,"mat-slide-toggle",32);M("change",function(d){var e=t(c).$implicit;return v(e.sendEmail=
d.checked)});Q(18," Send email when newly matching issues are found. ");J()();I(19,"div",33)(20,"span",34);E(21,FYb,1,1);J();E(22,GYb,1,0,"b-spinner");S(23,"async");J()();I(24,"mat-dialog-actions")(25,"button",35);Q(26,"Cancel");J();I(27,"button",7);M("click",function(){var d=t(c).$implicit,e=P();return v(e.save(d))});Q(28);J()()}a&2&&(a=b.$implicit,b=P(),z(),F(a.id==="0"?1:2),z(4),F(a.id==="0"?5:6),z(5),eh("ngModel",a.displayName),z(4),eh("ngModel",a.query),z(),D("frequency",a.frequency),eh("ordinal",
a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),z(2),D("checked",a.sendEmail),z(4),F(a.id!=="0"?21:-1),z(),F(T(23,12,b.isSaving$)?22:-1),z(6),R(" ",a.id==="0"?"Add":"Update"," "))},IYb=function(a){a&1&&(I(0,"mat-option",20),Q(1),J());a&2&&(a=P().$implicit,D("value",a),z(),R(" ",a.name," "))},JYb=function(a,b){a&1&&E(0,IYb,2,2,"mat-option",20);a&2&&F(b.$implicit.shouldDisplay()?0:-1)},KYb=function(a,b){a&1&&(I(0,"mat-option",22),Q(1),J());a&2&&(a=b.$implicit,D("value",a.id),z(),R(" ",
a.name," "))},MYb=function(a){if(a&1){var b=r();I(0,"mat-form-field",5)(1,"mat-select",21);gh("ngModelChange",function(c){t(b);var d=P();fh(d.preferredHomepage.selectedOptionId,c)||(d.preferredHomepage.selectedOptionId=c);return v(c)});M("selectionChange",function(){t(b);var c=P();return v(LYb(c.preferredHomepage))});Dg(2,KYb,2,2,"mat-option",22,Cg);J()()}a&2&&(a=P(),z(),eh("ngModel",a.preferredHomepage.selectedOptionId),z(),Eg(a.preferredHomepage.selectedMainOption.options))},NYb=function(a){if(a&
1){var b=r();I(0,"div")(1,"mat-slide-toggle",23);M("change",function(c){t(b);var d=P();c=c.checked;if(d.userPreferences){var e;d.userPreferences.missionControlPreferences=(e=d.userPreferences.missionControlPreferences)!=null?e:{};e=!c;d.userPreferences.missionControlPreferences.hideBadgeInNav=e;d.save("hideBadgeInNav",String(e))}return v()});Q(2,' Show red "attention" badge in left navigation ');J()()}a&2&&(a=P(),z(),D("checked",!a.hideBadgeInNav))},OYb=function(a,b){a&1&&(I(0,"mat-option",12),Q(1),
J());a&2&&(a=b.$implicit,D("value",a.value),z(),R(" ",a.label," "))},PYb=function(a,b){a&1&&(I(0,"mat-option",12),Q(1),J());a&2&&(a=b.$implicit,D("value",a.value),z(),R(" ",a.label," "))},QYb=function(a,b){a&1&&(I(0,"mat-option",12),Q(1),J());a&2&&(a=b.$implicit,D("value",a.value),z(),R(" ",a.label," "))},SYb=function(a){if(a&1){var b=r();I(0,"div",18)(1,"mat-slide-toggle",24);M("change",function(c){t(b);var d=P();d.userPreferences.textDisplayPreferences&&d.userPreferences.commentFormattingPreferences&&
(c=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c,d.userPreferences.commentFormattingPreferences.commentCreateOverride=c,d.userPreferences.textDisplayPreferences.commentDisplayOverride=c,d.save("saveTextDisplayPreferences.commentDisplayOverride"));return v()});Q(2," Force comments to display as plain text ");J()()}a&2&&(a=P(),z(),D("checked",RYb(a)))},TYb=function(a){if(a&1){var b=r();I(0,"div",18)(1,"mat-slide-toggle",25);M("change",
function(c){t(b);var d=P();c=c.checked;d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return v()});Q(2," Show SnipIt images inline in comments ");J()()}a&2&&(a=P(),z(),D("checked",a.getShowInlineImages()))},WYb=function(a){if(a&1){var b=r();K(0,"hr",8);I(1,"div",0)(2,"div",1)(3,"p",2);Q(4,"Comment formatting settings");J()();I(5,"div")(6,"div",18)(7,"mat-slide-toggle",26);M("change",function(c){t(b);var d=P();d.userPreferences.commentFormattingPreferences&&d.userPreferences.textDisplayPreferences&&
(c=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.userPreferences.textDisplayPreferences.commentDisplayOverride=c,d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c,d.save("saveCommentFormattingPreferences.commentDisplayOverride"));return v()});Q(8," Force comments to display as plain text ");J()();I(9,"div",18)(10,"mat-slide-toggle",27);M("change",function(c){t(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentCreateOverride=
c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentCreateOverride"));return v()});Q(11," Force comments to be created as plain text ");J()()()()}a&2&&(a=P(),z(7),D("checked",UYb(a)),z(3),D("checked",VYb(a)))},XYb=function(a){if(a&1){var b=r();I(0,"div",0)(1,"div",1)(2,"p",2);Q(3,"Other");J()();I(4,"div")(5,"div")(6,"mat-slide-toggle",28);M("change",function(c){t(b);var d=P();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return v(d.save("saveBugScreensaverPreferences"))});
Q(7," Enable bug screensaver ");J()()()()}a&2&&(a=P(),z(6),D("checked",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},YYb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},ZYb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},$Yb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());
a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},aZb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},bZb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},cZb=function(a,b){a&1&&(I(0,"mat-option",8),Q(1),S(2,"toNewEmailPreference"),J());a&2&&(a=b.$implicit,D("value",a),z(),R(" ",T(2,2,a)," "))},dZb=function(a){a&1&&
K(0,"b-spinner")},eZb=function(a){a&1&&(I(0,"mat-hint"),Q(1,"This field is read-only"),J())},fZb=function(a,b){a&1&&(I(0,"mat-option",21),Q(1),J());a&2&&(a=b.$implicit,D("value",a.value),z(),ch(a.displayText))},hZb=function(a,b){if(a&1){var c=r();I(0,"div",24)(1,"a",26);Q(2);J();I(3,"button",27);M("click",function(){var d=t(c).$implicit,e=P(2),f=P(2);return v(gZb(f,e,d))});K(4,"mat-icon",28);J()()}a&2&&(a=b.$implicit,z(),D("href","/slos/"+a,uf),z(),ch(a),z(),D("matTooltip","Remove SLO ID "+a))},iZb=
function(a){a&1&&(I(0,"div",25),Q(1),J());a&2&&(a=P(2),z(),R(" Subscription ID: ",a.id," "))},kZb=function(a){if(a&1){var b=r();I(0,"b-delivery-frequency-subform",17);M("frequencyChange",function(e){t(b);var f=P(),h=P(2);return v(h.setFrequency(e,f))})("ordinalChange",function(e){t(b);var f=P(),h=P(2);Ds(h,Object.assign({},f,{ordinal:e}));return v()})("timeOfDayChange",function(e){t(b);var f=P(),h=P(2);Ds(h,Object.assign({},f,{timeOfDay:e}));return v()})("timeZoneIdChange",function(e){t(b);var f=
P(),h=P(2);return v(h.setTimeZone(e,f))});J();I(1,"div")(2,"mat-form-field",18)(3,"mat-label");Q(4,"Days remaining");J();I(5,"input",19);gh("ngModelChange",function(e){t(b);var f=P(3);fh(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return v(e)});M("blur",function(){t(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))})("keydown.enter",function(){t(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))});J()()();I(6,"div")(7,"mat-form-field",18)(8,"mat-label");Q(9,"Types");J();I(10,"mat-select",
20);M("ngModelChange",function(e){t(b);var f=P(),h=P(2);return v(h.setIssueType(e,f))});Dg(11,fZb,2,2,"mat-option",21,Cg);J()()();I(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");Q(16,"Add SLO ID");J();I(17,"input",23);gh("ngModelChange",function(e){t(b);var f=P(3);fh(f.newSloId,e)||(f.newSloId=e);return v(e)});M("keydown.enter",function(){t(b);var e=P(),f=P(2);return v(jZb(f,e))})("blur",function(){t(b);var e=P(),f=P(2);return v(jZb(f,e))});J()();Dg(18,hZb,5,3,"div",24,Cg);J();E(20,iZb,2,1,
"div",25)}if(a&2){a=P();var c=P(2),d;D("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?d:0)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);z(5);eh("ngModel",c.inputDaysRemaining);z(5);D("ngModel",a.types);z();Eg(c.typeChoices);z(6);eh("ngModel",c.newSloId);z();Eg(a.sloIds);z(2);F(a.id?20:-1)}},mZb=function(a,b){if(a&1){var c=r();I(0,"div")(1,"div",8)(2,"mat-slide-toggle",14);S(3,"async");M("change",function(){t(c);var d=P(2);return v(lZb(d))});Q(4," Subscribe to your own reports ");E(5,
dZb,1,0,"b-spinner");S(6,"async");J()();I(7,"div")(8,"mat-form-field",15)(9,"mat-label");Q(10,"Scope");J();I(11,"input",16);M("focus",function(){t(c);var d=P(2);return v(d.inputHasFocus=!0)})("blur",function(){t(c);var d=P(2);return v(d.inputHasFocus=!1)});J();E(12,eZb,2,0,"mat-hint");J()();E(13,kZb,21,8);J()}a&2&&(a=P(2),z(2),D("disabled",T(3,6,a.isThinking$))("checked",b.id!==0),z(3),F(T(6,8,a.isThinking$)?5:-1),z(6),D("ngModel",a.currentUser.email),z(),F(a.inputHasFocus?12:-1),z(),F(b.id!==0?13:
-1))},nZb=function(a){a&1&&(I(0,"div",2)(1,"div",3)(2,"p",4),Q(3,"Frequency settings"),J(),I(4,"p",11),Q(5," Choose when to receive your own reports. "),I(6,"a",12),Q(7,"Learn more"),J()()(),E(8,mZb,14,10,"div"),S(9,"async"),J(),K(10,"hr",13));if(a&2){var b;a=P();z(8);F((b=T(9,1,a.userSubscription$))?8:-1,b)}},oZb=function(a){a&1&&K(0,"b-spinner")},pZb=function(a){a&1&&(I(0,"th",36),Q(1,"Scope"),J())},qZb=function(a,b){a&1&&(I(0,"td",37),Q(1),J());a&2&&(a=b.$implicit,z(),R(" ",a.lead.emailAddress,
" "))},rZb=function(a){a&1&&(I(0,"th",36),Q(1,"Frequency"),J())},tZb=function(a,b){a&1&&(I(0,"td",37),Q(1),S(2,"async"),S(3,"async"),J());if(a&2){var c;a=b.$implicit;b=P(2);z();var d=b.frequencyDisplayMap.get(a.frequency);if(a.ordinal)if(a.frequency==="weekly")var e="- "+sZb[a.ordinal-1].display;else if(a.frequency==="monthly"){e=a.ordinal;var f=e%10,h=e%100;e="- "+(f===1&&h!==11?String(e)+"st":f===2&&h!==12?String(e)+"nd":f===3&&h!==13?String(e)+"rd":String(e)+"th")}else e="";else e="";Cla(" ",d,
" ",e," - ",(c=T(2,4,b.hourOfDayDisplayMap$))==null?null:c.get(a.timeOfDay.hours)," - ",(c=T(3,6,b.timeZoneDisplayMap$))==null?null:c.get(a.timeZone.id)," ")}},uZb=function(a){a&1&&K(0,"th",36)},vZb=function(a){if(a&1){var b=r();I(0,"td",37)(1,"button",38);K(2,"mat-icon",39);J();I(3,"mat-menu",null,1)(5,"button",40);M("click",function(){var c=t(b).$implicit,d=P(2);return v(d.openDialog(c))});Q(6," Edit subscription ");J();I(7,"button",41);M("click",function(){var c=t(b).$implicit,d=P(2);return v(d.openConfirmDeleteDialog(c))});
Q(8," Delete subscription ");J()()()}a&2&&(a=L(4),z(),D("matMenuTriggerFor",a))},wZb=function(a){a&1&&K(0,"tr",42)},xZb=function(a,b){a&1&&K(0,"tr",43);a&2&&(a=b.$implicit,ng("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},yZb=function(a){a&1&&(I(0,"table",10),Fg(1,29),C(2,pZb,2,0,"th",30)(3,qZb,2,1,"td",31),Gg(),Fg(4,32),C(5,rZb,2,0,"th",30)(6,tZb,4,8,"td",31),Gg(),Fg(7,33),C(8,uZb,1,0,"th",30)(9,vZb,9,1,"td",31),Gg(),C(10,wZb,1,0,"tr",34)(11,xZb,1,1,"tr",35),J());
a&2&&(a=P(),D("dataSource",a.subscriptions$),z(10),D("matHeaderRowDef",a.columns),z(),D("matRowDefColumns",a.columns))},zZb=function(a){a&1&&(I(0,"mat-error"),Q(1,"Please select a valid, single user"),J())},AZb=function(a){a&1&&(I(0,"mat-error"),Q(1,"Report for sundar@ cannot be generated"),J())},BZb=function(a,b){a&1&&(I(0,"mat-option",21),Q(1),J());a&2&&(a=b.$implicit,D("value",a.value),z(),ch(a.displayText))},DZb=function(a,b){if(a&1){var c=r();I(0,"div",24)(1,"a",26);Q(2);J();I(3,"button",27);
M("click",function(){var d=t(c).$implicit,e=P().$implicit;P();return v(CZb(e,d))});K(4,"mat-icon",28);J()()}a&2&&(a=b.$implicit,z(),D("href","/slos/"+a,uf),z(),ch(a),z(),D("matTooltip","Remove SLO ID "+a))},EZb=function(a){a&1&&(I(0,"div",25),Q(1),J());a&2&&(a=P().$implicit,z(),R(" Subscription ID: ",a.id," "))},HZb=function(a,b){if(a&1){var c=r();I(0,"h1",44);Q(1,"Add report subscription");J();I(2,"mat-dialog-content")(3,"p",45);Q(4," Select the user (scope) and frequency of the report you wish to receive. ");
J();I(5,"div")(6,"mat-form-field",46)(7,"mat-label");Q(8,"Scope");J();I(9,"input",47);M("ngModelChange",function(f){var h=t(c).$implicit,k=P();return v(h.lead=k.emailToUser(f))});J();E(10,zZb,2,0,"mat-error");E(11,AZb,2,0,"mat-error");J()();I(12,"b-delivery-frequency-subform",17);M("frequencyChange",function(f){var h=t(c).$implicit;P();h.frequency=f;f!=="daily"?h.ordinal=1:delete h.ordinal;return v()})("ordinalChange",function(f){var h=t(c).$implicit;return v(h.ordinal=f)});gh("timeOfDayChange",function(f){var h=
t(c).$implicit;fh(h.timeOfDay,f)||(h.timeOfDay=f);return v(f)})("timeZoneIdChange",function(f){var h=t(c).$implicit;fh(h.timeZone.id,f)||(h.timeZone.id=f);return v(f)});J();I(13,"div")(14,"mat-form-field",15)(15,"mat-label");Q(16,"Days remaining");J();I(17,"input",48);gh("ngModelChange",function(f){var h=t(c).$implicit;fh(h.daysRemaining,f)||(h.daysRemaining=f);return v(f)});J()()();I(18,"div")(19,"mat-form-field",15)(20,"mat-label");Q(21,"Types");J();I(22,"mat-select",20);gh("ngModelChange",function(f){var h=
t(c).$implicit;fh(h.types,f)||(h.types=f);return v(f)});Dg(23,BZb,2,2,"mat-option",21,Cg);J()()();I(25,"div",8)(26,"mat-form-field",49)(27,"mat-label");Q(28,"Add SLO ID");J();I(29,"input",23);gh("ngModelChange",function(f){t(c);var h=P();fh(h.newSloId,f)||(h.newSloId=f);return v(f)});M("keydown.enter",function(){var f=t(c).$implicit,h=P();return v(FZb(h,f))})("blur",function(){var f=t(c).$implicit,h=P();return v(FZb(h,f))});J()();Dg(30,DZb,5,3,"div",24,Cg);J();E(32,EZb,2,1,"div",25);I(33,"p",50);
Q(34," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");J();I(35,"a",51);Q(36,"Learn more");J()();I(37,"mat-dialog-actions")(38,"button",52);Q(39,"Cancel");J();I(40,"button",9);M("click",function(){var f=t(c).$implicit,h=P();return v(GZb(h,f))});Q(41);J()()}if(a&2){a=b.$implicit;b=P();z(9);var d;D("ngModel",(d=a.lead==null?null:a.lead.emailAddress)!=null?d:"")("bContactAutocomplete","SINGLE");z();F(b.dialogInvalidEmailFormat?
10:-1);z();F(b.ceoSelected?11:-1);z();var e;D("frequency",a.frequency)("ordinal",(e=a.ordinal)!=null?e:0);eh("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);z(5);eh("ngModel",a.daysRemaining);z(5);eh("ngModel",a.types);z();Eg(b.typeChoices);z(6);eh("ngModel",b.newSloId);z();Eg(a.sloIds);z(2);F(a.id?32:-1);z(8);D("disabled",!a.lead||!a.lead.emailAddress);z();R(" ",a.id===0?"Add":"Update"," ")}},IZb=function(a){a&1&&(I(0,"div",7),K(1,"b-general-settings"),J())},JZb=function(a){a&1&&(I(0,"div",
7),K(1,"b-notification-settings"),J())},KZb=function(a){a&1&&(I(0,"div",7),K(1,"b-configurable-alert-settings"),J())},LZb=function(a){a&1&&(I(0,"mat-tab",5),C(1,KZb,2,0,"ng-template",3),J())},MZb=function(a){a&1&&(I(0,"div",7),K(1,"b-slo-reports-settings"),J())},NZb=function(a){a&1&&(I(0,"mat-tab",6),C(1,MZb,2,0,"ng-template",3),J())},OZb=function(a){a&1&&K(0,"b-star-toggle",5);a&2&&D("starMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are an admin of this bookmark group, and cannot star/unstar it.")("starred",
!0)("disabled",!0)},PZb=function(a){if(a&1){var b=r();I(0,"b-star-toggle",11);M("starClicked",function(){t(b);var c=P(2);return v(c.toggleStar())});J()}a&2&&(a=P(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},QZb=function(a,b){a&1&&(I(0,"li")(1,"a",12),Q(2),J()());a&2&&(a=b.$implicit,b=P(2),z(),D("href",b.getUrl(a),uf),z(),ch(b.getDisplayName(a)))},RZb=function(a){if(a&1){var b=r();I(0,"div")(1,"div",3)(2,"div",4);E(3,OZb,1,4,
"b-star-toggle",5)(4,PZb,1,3,"b-star-toggle",6);I(5,"span",7);Q(6);J();I(7,"button",8);M("click",function(){t(b);var c=P();return v(c.openEditBookmarkGroup())});J()();I(8,"div",9);Q(9);J()();I(10,"ul",10);Dg(11,QZb,3,2,"li",null,Cg);J()()}a&2&&(a=P(),z(3),F(a.userIsAdmin?3:4),z(3),R("Bookmark Group: ",a.bookmarkGroup.name," "),z(3),ch(a.bookmarkGroup.description),z(2),Eg(a.bookmarkGroup.item))},SZb=function(a){if(a&1){var b=r();I(0,"button",10);M("click",function(){t(b);var c=P(2);return v(c.addToMissionControl(c.hotlistId))});
Q(1," Hotlist insights in Home ");J()}},TZb=function(a,b){a&1&&E(0,SZb,2,0,"button",9);a&2&&(a=P(),F(a.showAddToMcButton(b)?0:-1))},UZb=function(a){if(a&1){var b=r();I(0,"b-star-toggle",16);M("starClicked",function(){t(b);var c=P(2);return v(c.toggleStar())})("keydown.space",function(c){t(b);return v(c.stopPropagation())})("keydown.enter",function(c){t(b);return v(c.stopPropagation())});J()}a&2&&(a=P(2),D("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},
VZb=function(a){a&1&&K(0,"b-star-toggle",12);a&2&&D("starMessage","You are an admin of this hotlist, and cannot star/unstar it.")("unStarMessage","You are an admin of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},WZb=function(a){a&1&&K(0,"b-star-toggle",12);a&2&&D("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},XZb=function(a){a&1&&(I(0,"div",14),Q(1," Hotlist not found. "),J());a&2&&D("bFocus",!0)},YZb=function(a){a&1&&(I(0,"div"),Q(1," Loading details... "),
J())},ZZb=function(a){a&1&&(I(0,"span",19),Q(1," (archived) "),J())},$Zb=function(a){a&1&&(I(0,"span",22),Q(1," \u00a0(changed) "),J())},a_b=function(a){if(a&1){var b=r();I(0,"div")(1,"span",17);Q(2," Hotlist: ");I(3,"span",18);Q(4);J()();E(5,ZZb,2,0,"span",19);I(6,"div",20)(7,"button",21);M("click",function(){t(b);var c=P(2);return v(c.openEditHotlist())});J()();E(8,$Zb,2,0,"span",22);J()}a&2&&(a=P(2),z(3),D("matTooltip",a.hotlist.description),z(),R(" ",a.hotlist.name," "),z(),F(a.hotlist.archived?
5:-1),z(3),F(a.hasParamChanges()?8:-1))},b_b=function(a){if(a&1){var b=r();I(0,"div",15)(1,"button",23);M("click",function(){t(b);var c=P(2);return v(c.save())});Q(2,"Save ");J();I(3,"button",24);M("click",function(){t(b);var c=P(2);return v(c.discardChanges())});Q(4,"Discard changes ");J()()}},c_b=function(a){a&1&&(I(0,"div",5),E(1,UZb,1,3,"b-star-toggle",11),E(2,VZb,1,4,"b-star-toggle",12),E(3,WZb,1,4,"b-star-toggle",12),I(4,"div",13),E(5,XZb,2,1,"div",14),E(6,YZb,2,0,"div"),E(7,a_b,9,4,"div"),
J(),E(8,b_b,5,0,"div",15),J());a&2&&(a=P(),z(),F(a.isDirectAdmin()||!a.hotlist||a.hotlist.archived?-1:1),z(),F(a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived?2:-1),z(),F(a.hotlist?-1:3),z(2),F(a.hotlist||a.hotlistLoading?-1:5),z(),F(a.hotlistLoading?6:-1),z(),F(a.hotlist&&!a.hotlistLoading?7:-1),z(),F(a.hasParamChanges()?8:-1))},d_b=function(a){a&1&&(I(0,"div",6),K(1,"b-spinner"),I(2,"span"),Q(3),J()());a&2&&(a=P(),z(3),R(" Loading hotlist: ",a.hotlistId))},e_b=function(a){a&1&&(I(0,"div",7),Q(1),
J());a&2&&(a=P(),D("bFocus",!0),z(),R(" No issues in hotlist ",a.hotlistId,". "))},f_b=function(a){if(a&1){var b=r();I(0,"div",8)(1,"b-issues-grid",25);M("init",function(c){t(b);var d=P();return v(d.resultsGrid=c)});gh("focusedRowIndexChange",function(c){t(b);var d=P();fh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){t(b);var d=P();fh(d.issueColumns,c)||(d.issueColumns=c);return v(c)});M("sortChange",function(c){t(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",
function(c){t(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){t(b);var d=P();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){t(b);var c=P();return v(xs(c,c.page,1))})("onPrevPage",function(){t(b);var c=P();return v(xs(c,c.page,-1))});J()()}a&2&&(a=P(),z(),D("searchResults",a.searchResults),eh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),D("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",
!0))},g_b=function(a){if(a&1){var b=r();I(0,"button",9);M("click",function(){t(b);var c=P(2);return v(c.addToMissionControl(c.savedSearchId))});Q(1," Saved Search insights in Home ");J()}},h_b=function(a,b){a&1&&E(0,g_b,2,0,"button",8);a&2&&(a=P(),F(a.showAddToMcButton(b)?0:-1))},i_b=function(a){a&1&&(I(0,"span",13),Q(1," \u00a0(changed) "),J())},j_b=function(a){if(a&1){var b=r();I(0,"div",10);Q(1," Saved search: ");I(2,"span",11);Q(3);J();I(4,"button",12);M("click",function(){t(b);var c=P(2);return v(c.openEditSavedSearch())});
J();E(5,i_b,2,0,"span",13);J()}a&2&&(a=P(2),z(2),D("matTooltip",a.savedSearch.description),z(),R(" ",a.savedSearch.name," "),z(2),F(a.hasParamChanges()?5:-1))},k_b=function(a){a&1&&(I(0,"div"),Q(1," Loading details... "),J())},l_b=function(a){a&1&&(I(0,"div"),Q(1," Saved search not found. "),J())},m_b=function(a){a&1&&E(0,k_b,2,0,"div")(1,l_b,2,0,"div");a&2&&(a=P(2),F(a.isLoading?0:1))},n_b=function(a){a&1&&(I(0,"div",6),E(1,j_b,6,3,"div",10)(2,m_b,2,1),J());a&2&&(a=P(),z(),F(a.savedSearch?1:2))},
o_b=function(a){if(a&1){var b=r();I(0,"button",18);M("click",function(){t(b);var c=P(2);return v(c.save())});Q(1,"Save ");J()}},p_b=function(a){if(a&1){var b=r();I(0,"div",7);E(1,o_b,2,0,"button",14);I(2,"button",15);M("click",function(){t(b);var c=P();return v(c.discardChanges())});Q(3,"Discard changes ");J();I(4,"span",16)(5,"a",17);M("click",function(){t(b);var c=P();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return v()});Q(6," Back to normal search");J()()()}a&2&&(a=P(),
z(),F(a.isEditable()?1:-1),z(4),D("href",a.exitLink,uf))},q_b=function(a){a&1&&(I(0,"span"),Q(1),J());a&2&&(a=P(3),z(),R(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},r_b=function(a){a&1&&(I(0,"div",19),K(1,"b-spinner"),E(2,q_b,2,1,"span"),J());a&2&&(a=P(2),z(2),F(a.searchParams?2:-1))},s_b=function(a){if(a&1){var b=r();I(0,"div",20)(1,"b-issues-grid",22);M("init",function(c){t(b);var d=P(3);return v(d.resultsGrid=c)});gh("focusedRowIndexChange",function(c){t(b);var d=
P(3);fh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){t(b);var d=P(3);fh(d.issueColumns,c)||(d.issueColumns=c);return v(c)});M("sortChange",function(c){t(b);var d=P(3);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){t(b);var d=P(3);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){t(b);var c=P(3);return v(xs(c,c.page,1))})("onPrevPage",function(){t(b);var c=P(3);return v(xs(c,c.page,-1))});J()()}a&2&&(a=P(3),z(),D("searchResults",
a.searchResults),eh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),D("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},t_b=function(a){a&1&&(I(0,"div",21),Q(1," No issues in saved search. "),J());a&2&&D("bFocus",!0)},u_b=function(a){a&1&&E(0,s_b,2,6,"div",20)(1,t_b,2,1,"div",21);a&2&&(a=P(2),F(a.hasResults()?0:1))},v_b=function(a){a&1&&(I(0,"div"),E(1,r_b,3,1,"div",19)(2,u_b,2,1),J());a&2&&(a=P(),z(),F(a.isLoading?1:2))},x_b=function(a,b){return w_b(function(){return wk(a)},
b)},w_b=function(a,b){return a()?[b]:[]},y_b=function(){var a=n(Es).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},A_b=function(a){a=a.internal;var b,c,d;(b=X(a,z_b,11))==null?d=void 0:d=Hc(b,1,Qb,Fk(Gk)).sort().join("-");b=(c=d)!=null?c:"";var e,f,h;(e=X(a,z_b,11))==null?h=void 0:h=Hc(e,2,Qb,Fk(Gk)).sort().join("-");c=(f=h)!=null?f:"";return Oh(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},Fs=function(a,b){return a.querySelector('[peoplekit-id="'+
b+'"]')},B_b=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+b+'"]'))},C_b=function(a){return Array.from(a.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function(b){return!(b.getAttribute("aria-hidden")==="true"||b.hasAttribute("disabled")||b.hasAttribute("hidden"))})},D_b=function(a){return a.closest('[class~="aU4VQc"]')},G_b=function(a,b){if(/-[a-z]/.test(b))return null;if(E_b&&a.dataset){if(wba()&&!(b in a.dataset))return null;a=a.dataset[b];
return a===void 0?null:a}return a.getAttribute("data-"+F_b(b))},H_b=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},Gs=function(a,b,c,d,e,f){e=e===void 0?new I_b:e;f=(f===void 0?"":f)||"https://lh3.googleusercontent.com/a/default-user";b=b.length?b.map(function(h){return h||"https://lh3.googleusercontent.com/a/default-user"}):[f];c=Lp(J_b,{imageUrls:b,backupUrl:f,size:c,preloadSize:d,pixelRatio:K_b()});e=new L_b(c,e);a.appendChild(c);return e},N_b=function(a,b){var c="",d=0;b=
l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c=c+a.substring(d,e.getStart())+"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3"+a.substring(e.getStart(),e.getEnd())+"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",d=e.getEnd();c+=a.substring(d,a.length);return M_b(M_b(Sr(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},O_b=function(a){var b=a.getDisplayName();return b?N_b(b,a.getMatchInfo().getDisplayNameMatches()):""},P_b=function(a){var b=a.getDisplayValue();
return b?N_b(b,a.getMatchInfo().getDisplayValueMatches()):""},Q_b=function(a,b){var c=b?O_b(a):Sr(a.getDisplayName());b=b?P_b(a):Sr(a.getDisplayValue());c=c||b;b=b||Sr(a.getDescription());var d=a.getPrimaryTarget();return{hovercardId:d.getTargetType()===1||d.getTargetType()===6?a.getDisplayValue():d.getProfileId(),label:c,sublabel:b,photos:[a.getPhotoUrl()]}},R_b=function(a){var b=a.result();b=Q_b(b,!1);a=a.getDisplayNameWithOverrideApplied();return{label:Sr(a)||b.sublabel,sublabel:b.sublabel,name:a,
photos:b.photos,hovercardId:b.hovercardId}},S_b=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||0){case 3:return"isError";default:return""}},U_b=function(a,b,c){var d=R_b(a),e=a.result().getPrimaryTarget();a=b.getWarnForExternalSelections()&&e.getOrgState()===2;e=b.getShouldDisplayExternalSelectionIcon()&&a&&e.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:d.photos;c=S_b(c);return{id:Hs(T_b),label:d.label,
name:d.name,photos:e,hovercardId:d.hovercardId,stateClass:c,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion()}},W_b=function(a,b,c,d){var e="",f=Sr(a.getDescription()),h=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(q){var u=q.getPrimaryTarget().getName(),A="";if(u){if(b){var G;var H=(u=(H=q.getPrimaryTarget())==null?void 0:(G=H.getName())==null?void 0:G.getGivenName())?N_b(u,q.getMatchInfo().getGivenNameMatches()):""}else H=Sr(u.getGivenName());
(A=H)||(A=b?O_b(q):Sr(q.getDisplayName()))}A||(A=b?P_b(q):Sr(q.getDisplayValue()));return A}),c&&(e=e.reverse()),e=b?O_b(a)||e.join(", "):Sr(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=V_b({memberCount:f}),h=!0);else if(k===1)return e=a.getMemberList()[0],f=Q_b(e,b),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});c=a.getPhotoUrl();c=a.getDisplayName()&&c?[c]:a.getMemberList().map(function(q){return q.getPhotoUrl()});
return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:h}},Js=function(a){return new Is(a)},X_b=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},Y_b=function(a,b){return X_b(a,b,"CustomEvent")},Z_b=function(a){return a.resultType===4||a.resultType===5},c0b=function(a){Ks.addCoreFactory({type:0,configurationKey:a,factory:{create:function(b){var c=b.chipConfig;var d=b.chipCustomization,e=b.isRightToLeft;e=W_b(b.selection.result(),
!1,e,!1);if(e.flatResult){var f=Object,h=f.assign,k=e.flatResult,q=k.getPrimaryTarget(),u=c.getWarnForExternalSelections()&&q.getOrgState()===2;q=c.getShouldDisplayExternalSelectionIcon()&&u&&q.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:e.photos;d=S_b(d);c={id:Hs(T_b),label:e.label,name:k.getDisplayName(),photos:q,hovercardId:e.hovercardId,stateClass:d,isWarning:u,isDeletionDisabled:!c.getAllowChipDeletion()};c=h.call(f,{},c,{type:e.type})}else c=
Object.assign({},{id:Hs($_b),isDeletionDisabled:!c.getAllowChipDeletion(),stateClass:"",isWarning:!1,name:e.label},e);e=Lp(a0b,c);Gs(Fs(e,"d6MZcd"),c.photos,b.avatarSize,b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(e);return{chip:new b0b(e,b.selection,b.selectionsState),root:e,state:0}},shouldCreate:Z_b}})},d0b=function(a){return 0===a.resultType},g0b=function(a){Ks.addCoreFactory({type:1,configurationKey:a,factory:{create:function(b){var c=U_b(b.selection,b.chipConfig,b.chipCustomization);
c=Lp(e0b,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new f0b(c,b.selection,b.selectionsState),root:c,state:0}},shouldCreate:d0b}})},p0b=function(a,b,c,d,e){var f=h0b(c),h=i0b(a),k=j0b(a);k&&h.intersection(k0b(k));l0b(h,Kp(a),Kp(c));a=m0b(a,b);b=h.left;a&4?b+=h.width:a&2&&(b+=h.width/2);h=new Ls(b,h.top+(a&1?h.height:0));h=n0b(h,f);a=m0b(c,d);h=o0b(h,Ms(c),a).rect;c=j0b(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;f=h;f.left<c.left?f.left=c.left:f.left+
f.width>c.right&&(f.left=c.right-f.width);h=f;e&&(e=h,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),h=e);return h},s0b=function(a,b){Ns(a,new Ls(b.left,b.top));b=b.getSize();q0b(Ms(a),b)||r0b(a,b)},t0b=function(a,b){return new Os(a,b)},x0b=function(a,b,c){b=Lp(u0b,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;c=c.hideDelayMs;c=new v0b(b,a===void 0?500:a,c===void 0?300:c);return new w0b(b,c)},y0b=function(a){return!a.chipCustomization.statefulChipConfig||
a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&a.chipCustomization.statefulChipConfig.chipState!==3?!1:!0},z0b=function(a){Ks.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new Ps(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:y0b},configurationKey:a})},B0b=function(a,b,c){return new Pq(new A0b(a===
void 0?0:a,b!=null?b:[],c!=null?c:null))},Qs=function(a){return(a||"").trim()},D0b=function(a,b,c,d){return new C0b(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Rs=function(a){var b=a.element,c=a.veid,d=a.actions,e=a.pairs;if(b){var f="";d&&d.length&&(f="; track:"+d.join(",").trim());d="";e&&e.length&&(d="; "+e.join("; ").trim());b.setAttribute("jslog",c+f+d);b.LSWHIf=void 0}a.mutable&&(b=a.element,c=b.getAttribute("jslog").concat("; mutable:true"),b.setAttribute("jslog",c));b=a.element;
a=a.componentId;a=b.getAttribute("jslog").concat("; cid:",a);b.setAttribute("jslog",a)},Ss=function(a){return Y_b("pcw-click",a)},E0b=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=Ts.get(a))==null?void 0:b.get("jCCvxc"),label:"Copy",keyboardShortcut:[512,67],veid:108906})},F0b=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=Ts.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},G0b=function(a){var b;return Object.freeze({id:"YCRBfe",
iconUrl:(b=Ts.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,69],veid:120676})},H0b=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=Ts.get(a))==null?void 0:b.get("l1309"),label:"Change email address",keyboardShortcut:[16,70],veid:135428})},I0b=function(a){var b=Us?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=Ts.get(a))==null?void 0:c.get("xTCd3");return e.call(d,{id:"xTCd3",iconUrl:a,label:"More info",keyboardShortcut:[18,39],veid:119507,ariaLabel:"More info, "+
b+" + right arrow key"})},J0b=function(a){var b;return Object.freeze({id:"ENOWEf",iconUrl:(b=Ts.get(a))==null?void 0:b.get("ENOWEf"),label:"Hide suggestion",keyboardShortcut:[],veid:181476})},K0b=function(a){return a.map(function(b){if(Us)switch(b){case 512:return"\u2318";case 18:return"Option"}switch(b){case 16:return"Shift";case 512:return"Ctrl";case 18:return"Alt";case 191:return"/";case 39:return"\u2006\u279d";default:return String.fromCharCode(b)}})},N0b=function(a,b){var c=Hs(Vs.getInstance()),
d=Object,e=d.assign;c=c+":"+a.id;var f=K0b(a.keyboardShortcut);a:switch(b=b.getDensity(),b){case 0:b="googleMaterialDefaultDensity";break a;case 1:b="workspaceMaterialComfortableDensity";break a;case 2:b="workspaceMaterialCompactDensity";break a;default:throw Error("Vf`"+b);}d=Lp(L0b,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&Rs({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});return new M0b(d,a)},O0b=function(a,b){return new Ws(a,b)},P0b=
function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},Xs=function(a){return new Q0b(a)},S0b=function(a,b){return new R0b(a,b)},T0b=function(){return!1},U0b=function(){},X0b=function(a,b,c,d){var e=Lp(V0b);Rs({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new W0b(e);a.appendChild(e);return new Ys(e,b,c,f,d)},$0b=function(a,b){b=Lp(Y0b,{label:b.label});a.appendChild(b);return new Z0b(b)},b1b=function(a,b){for(var c=l(a1b.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);
(b=a1b.get(b))&&a.classList.add(b)},d1b=function(a,b){for(var c=l(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=c1b.get(b))&&a.classList.add(b)},g1b=function(a,b,c,d,e){b=Lp(e1b,{content:b,header:d,confirmAction:!0});a.appendChild(b);d=Fs(b,"Sx9Kwc");a=$0b(Fs(b,"IbE0S"),{label:"Cancel"});var f={confirmButtonText:e};f=f||{};var h="";f=f.confirmButtonText;switch(cb(f)?f.toString():f){case "Confirm":h+="Confirm";break;case "Hide":h+="Hide";
break;case "Show":h+="Show";break;default:h+="Apply"}h=$0b(Fs(b,"McfNlf"),{label:h});d1b(b,c.getTheme());b1b(d,c.getStyle());c={element:h.getRoot(),veid:0,actions:["pcw-click","impression"],componentId:"peoplekitweb"};switch(e){case "Hide":c.veid=131909;Rs(c);break;case "Show":c.veid=131910,Rs(c)}return new f1b(b,a,h)},i1b=function(a,b,c,d){b=Lp(e1b,{content:b,header:d});a.appendChild(b);a=Fs(b,"Sx9Kwc");d=$0b(Fs(b,"IbE0S"),{label:"Close"});d1b(b,c.getTheme());b1b(a,c.getStyle());return new h1b(b,
d)},k1b=function(a,b){var c=j1b({header:"Couldn't hide suggestion"});var d=Zs("<div>There was a problem and this person could not be hidden</div>");a=i1b(a,d,b,c);Rs({element:a.getRoot(),veid:131913,actions:["impression"],componentId:"peoplekitweb"});return a},l1b=function(a,b){var c=j1b({header:"Couldn't hide suggestion"});var d=Zs("<div>Groups of 2 or more people can't be hidden</div>");a=i1b(a,d,b,c);Rs({element:a.getRoot(),veid:166230,actions:["impression"],componentId:"peoplekitweb"});return a},
m1b=function(a,b){var c=j1b({header:"Couldn't show suggestion"});var d=Zs("<div>There was a problem and this person could not be shown in suggestions</div>");a=i1b(a,d,b,c);Rs({element:a.getRoot(),veid:184760,actions:["impression"],componentId:"peoplekitweb"});return a},p1b=function(a,b,c,d){var e=b.result().getMemberList();e.length===1?(b=Q_b(e[0],!1),b={hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,name:"",photos:b.photos}):b=R_b(b);e=n1b({hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,
name:b.name});var f=d===0?"Hide":"Show",h='<div peoplekit-id="'+$s("bN97Pc")+'"><div class="'+$s("peoplekitComponentsHideconfirmationdialogImplHeadline")+'">';h=(d===0?h+"Hide Suggestion?":h+"Show Suggestion?")+('</div><div class="'+$s("peoplekitComponentsHideconfirmationdialogImplDescription")+'">');d=Zs((d===0?h+"This person won't be suggested again unless you search for them in Photos.":h+"Suggest this person when showing people results.")+"</div></div>");a=g1b(a,d,c,e,f);d=Fs(a.getRoot(),"d6MZcd");
Gs(d,b.photos,36,36,c);return new o1b(a)},r1b=function(a){at.addDecoratorFactory({type:0,factory:{create:function(b,c){return new bt(c,b.appearanceConfig,b.clientConfig,b.result,b.ariaParent,b.popupsContainer)},shouldCreate:function(b){var c=b.result.getResultType()===7,d=b.result.getMemberList().length>=2;c=!c&&!d;d=!!(new q1b).filterResult(b.result);return kl(b.clientConfig.internal,7)&&!d&&c}},configurationKey:a})},v1b=function(a,b,c){var d=Lp(s1b,{icon:c.icon,tooltipLabel:c.tooltipLabel,ariaLabel:c.ariaLabel});
a.appendChild(d);a=d.classList;var e=a.add;a:{var f=c.density||0;switch(f){case 0:f="googleMaterialDefaultDensity";break a;case 1:f="workspaceMaterialComfortableDensity";break a;case 2:f="workspaceMaterialCompactDensity";break a;default:throw Error("Vf`"+f);}}e.call(a,f);if(c.tooltipLabel){var h=d.getAttribute("data-tooltip-id")||"";h=x0b(b,h,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});t1b(h,d)}return new u1b(d,c.icon,c.disabledIcon,h,c.disableDomNavigation,c.onClick)},x1b=function(a,b,c,d,e){var f=
Object.assign({},c);f.onClick=function(h){d.select(a.getSelection(),1);var k;(k=c.onClick)==null||k.call(c,h)};return new w1b(a,b,f,e)},z1b=function(a){at.addDecoratorFactory({type:2,factory:{create:function(b,c){return new y1b(c,b.appearanceConfig,b.clientConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return kl(b.clientConfig.internal,7)&&!!(new q1b).filterResult(b.result)}},configurationKey:a})},A1b=function(a){at.addDecoratorFactory({type:1,factory:{create:function(b,c){return x1b(c,
b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig&&!(kl(b.clientConfig.internal,7)&&(new q1b).filterResult(b.result))}},configurationKey:a})},B1b=function(a){a=A_b(a);g0b(a);z0b(a);c0b(a);r1b(a);z1b(a);A1b(a)},C1b=function(a,b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");a.setAttribute("pkd-ac-state",String(Oi(b)))},D1b=function(a,b){b=
[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Oi(b)))},E1b=function(a,b){a.setAttribute("pkd-ps-state",String(Oi("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(Oi("2")))},function(){a.setAttribute("pkd-ps-state",String(Oi("3")))})},I1b=function(a){var b=Lp(F1b,{id:Hs(G1b)});a.appendChild(b);return new H1b(b)},L1b=function(a){if(ct){var b=J1b(a);K1b(a,b)}else a.scrollIntoView({block:"nearest"})},Q1b=function(a,b){var c=a.headerText,d=a.infoGroupConfig;
a=a.collapsibleGroupConfig;if(c){var e=Hs(Vs.getInstance());e=Lp(M1b,{id:e,header:c});c=new N1b(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new O1b(c,d,b,e));a&&(c=new dt(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(c=new P1b(c));return c}},R1b=function(a){return Object.values(a).filter(function(b){return b!=null}).length},S1b=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&R1b(b)!==0?b.headerText!=null&&R1b(b)===1:!0})},
T1b=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Vf`"+a);}},U1b=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Vf`"+a);}},V1b=function(){var a=a===void 0?10:a;var b="";if(a<1)return b;for(;b.length<a;)b+=String(Math.random().toString(36).substring(2));return b.length>a?b.substring(0,a):b},W1b=function(a){var b,c=
(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();return c&&a?[c,a]:null},X1b=function(a){return(a=W1b(a))?JSON.stringify(a):null},Y1b=function(a,b){b=b===void 0?null:b;b=a.getProfileId()||b;return b?(a=W1b(a))?JSON.stringify([a,b]):null:null},Z1b=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},$1b=function(){var a=null;try{a=ya.localStorage||null}catch(b){}Z1b.call(this,a)},et=function(a,b){this.mechanism_=a;this.prefix_=b+"::"},b2b=function(a){return a2b.map(function(b){return new et(a,
b)})},c2b=function(a,b){window.setTimeout(a,b)},d2b=function(a,b){return new Promise(function(c){b>0?c2b(function(){return c(a)},b):c(a)})},e2b=function(a){return new Promise(function(b,c){a>0?c2b(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},f2b=function(a,b,c){b=d2b(b,c);return Promise.race([a,b])},g2b=function(a,b){b=e2b(b);return Promise.race([a,b])},h2b=function(a){var b=new ft;if(a instanceof gt)switch(b.setErrorType(a.type),a.type){case 2:b.setErrorMessage("Failed to load flags from service");
break;case 3:b.setErrorMessage("Failed to retrieve flags from cache");break;case 4:b.setErrorMessage("Operation failed to complete before timeout");break;case 6:b.setErrorMessage("Operation failed because of invalid keys.");break;case 7:b.setErrorMessage("Failed to load flags from server"),b.setStatusCode(a.statusCode)}else b.setErrorType(5),b.setErrorMessage(a.message);return b},j2b=function(a){a=a===void 0?null:a;var b=(new i2b).setExperimentFlags(new ht).setSource(3);a&&b.setError(h2b(a));return b},
s2b=function(a){var b=b===void 0?new $1b:b;if(k2b)return k2b;var c=new l2b(a),d=new m2b(a),e;b.isAvailable()?e=new n2b(a,b):e=new o2b(a);b=e;try{b.clean()}catch(f){}c=new p2b(new q2b(b,c),d,a.runtime_);return k2b=new r2b(a,c)},u2b=function(a){var b=a.resultCustomizationConfig,c=Q_b(a.result,!0);a=t2b(a,c);c=a.sublabel;var d=a.allowSublabelTranslation;b.customSublabel&&(c=b.customSublabel.sublabel,d=b.customSublabel.shouldAllowTranslation);return{id:a.id,hovercardId:a.hovercardId,label:a.label,sublabel:b.shouldHideSublabel?
"":c,photos:a.photos,densityClass:a.densityClass,tags:a.tags,allowSublabelTranslation:d}},t2b=function(a,b){var c=a.result,d=a.resultConfig;a=U1b(a.appearanceConfig.getDensity());var e=[];kl(v2b.getExperiments(),3)&&d.getWarnForExternalSelections()&&c.getPrimaryTarget().getOrgState()===2&&e.push({iconUrl:"https://www.gstatic.com/people/peoplekit/icons/light_theme/domain_disabled_grey900.svg",altText:"External",style:1});return{id:Hs(w2b),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,
photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},y2b=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,e=a.isRightToLeft,f=kl(a.clientConfig.internal,6);d=U1b(d.getDensity());b=W_b(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=t2b(d,b),a=d.sublabel,e=d.allowSublabelTranslation,c.customSublabel&&(a=c.customSublabel.sublabel,e=c.customSublabel.shouldAllowTranslation),{id:d.id,hovercardId:d.hovercardId,label:d.label,sublabel:c.shouldHideSublabel?
"":a,photos:d.photos,densityClass:d.densityClass,tags:d.tags,type:b.type,allowSublabelTranslation:e};a=b.sublabel;e=b.allowSublabelTranslation;c.customSublabel&&(a=c.customSublabel.sublabel,e=c.customSublabel.shouldAllowTranslation);return{id:Hs(x2b),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},A2b=function(a,b,c,d,e,f){return new z2b(a,b,c,d,e,f)},B2b=function(a){return a.resultCustomizationConfig.shouldDisable?
2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},D2b=function(a,b,c,d){return new C2b(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},E2b=function(a){var b=-1;(a=it(a))&&ll(a,2)&&(b=Ik(a,2));return"index:"+b},jt=function(a){return a instanceof TypeError?4:3},F2b=function(){return"https://support.google.com/contacts/answer/7345608"},H2b=function(a){return G2b.some(function(b){return a instanceof b})},I2b=function(a){return a.getAttribute("peoplekit-id")===
"XLuqBd"},K2b=function(){return new (Function.prototype.bind.apply(J2b,[null].concat(p(ud.apply(0,arguments)))))},a3b=function(a,b,c,d,e,f,h,k,q,u){var A=Lp(L2b);b1b(A,h.getStyle());a.appendChild(A);a=Lp(M2b);Rs({element:a,veid:85843,actions:["impression"],componentId:"peoplekitweb"});b1b(a,h.getStyle());A.appendChild(a);var G=Fs(a,"tjneg"),H=new N2b(a),N=h.getAutocompleteHeader(),O=h.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var U=h.getAutocompleteGroupingType()===
4||h.getAutocompleteGroupingType()===5;var da=O&&H2b(O);U=U&&da?O:new O2b}else switch(h.getAutocompleteGroupingType()){case 1:U=new O2b;break;case 2:U=new P2b(h.getAutocompleteGroupingLabel());break;case 3:U=new Q2b(h.getAutocompleteGroupingLabel());break;case 4:case 5:U=O}O=U;N=Lp(R2b,{header:N||""});G.appendChild(N);N=I1b(Fs(N,"tjneg"));q=new S2b(N,h,h,k,d,e,q,b,H,O);e=new T2b(q,e,f);G=Fs(G,"rymPhb");b.setAttribute("aria-owns",G.id);b.setAttribute("aria-controls",G.id);G.setAttribute("aria-labelledby",
b.id);q=h.getNoResultsMessage();G=Lp(U2b);q?q.display?q=new V2b(G,q):(q=Lp(W2b,q),G.appendChild(q),q=new X2b):q=new Y2b;a.appendChild(G);f=K2b(a,b,e,c,f,h,q,k,u);kl(k.internal,7)&&(f=new Z2b(f,u,c,k,h,b));return new $2b(A,b,f,d,h)},c3b=function(a,b){return new b3b(a,b)},d3b=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},kt=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
e3b=function(a,b,c){switch(b){case 1:a.reporter.reportProceed(kt(c));break;case 2:a.dismiss(c);break;case 3:a.save(c);break;case 4:a.send(c);break;case 5:a.reporter.reportSecondaryAction(kt(c))}},g3b=function(a,b,c){return new f3b(a,b,c)},k3b=function(a,b){a=a.internal.getClearcut();b=new h3b(a,b);b=lt(b);a=a.getInterfaceType();return new i3b(new j3b(b,a))},l3b=function(a,b,c,d){var e;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(h){e||(e=h)}}if(e)throw e;},m3b=function(a,
b,c,d,e){e=l(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},o3b=function(a){if(n3b.has(a))return n3b.get(a);throw Error("ig`"+a);},q3b=function(a){if(p3b.has(a))return p3b.get(a);throw Error("jg`"+a);},r3b=function(a){for(var b=new Map,c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},s3b=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},u3b=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:
t3b(a):null},v3b=function(a,b,c){for(c||(a=u3b(a));a&&!b(a);)a=u3b(a)},w3b=function(a){Hp.call(this);this.domHelper_=a||Kp();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Ip(this.domHelper_.document_,this.eventType_,mt(this.handleChange_,this))},D3b=function(a,b,c){var d=new nt,e=YJa();c=(new x3b).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(739336995);d=new y3b(d,1394,e,void 0,void 0,void 0,new z3b(c));
d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=A3b(new B3b,v2b.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");d.clearcut_.setProductID(109303191);return new C3b(a,d)},J3b=function(a){var b=a.clientConfig,c=a.initializeIoC,d=b.internal;a=a.commonConfig.getEnvironmentConfig();var e=a.experimentsConfig_.getProfileId();if(e)if(d.getExperiments().getIsEnabled()){var f=pc(E3b||(E3b=F3b('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));
f=new G3b(f,7)}else f=new ot;else f=new ot;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new H3b).setPeopleApiEnv(a.apiEnv_),e);v2b=new I3b(d,a);c&&c(b)},L3b=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new pt);return K3b(a,b,c,h,d,e,f)},K3b=function(a,b,c,d,e,f,h){J3b({clientConfig:f,commonConfig:e,initializeIoC:B1b});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=Lp(M3b,{classes:"aU4VQc"});a.appendChild(k);
kl(f.internal,14,!0)&&e.setStyle(1);d1b(k,e.getTheme());Rs({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new qt;var q=g3b(d,a,e.getEntryPoint()),u=k3b(f,e.getEntryPoint());b=a3b(k,b,d,a,q,u,e,f,new N3b(h.intelligence),c);E1b(b.getRoot(),c);c=D3b(k,f.internal.getClearcut(),e.getEntryPoint());c.start(O3b);return new P3b(k,b,a,q,c,e)},Q3b=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Vf`"+a);}},R3b=function(a){var b=Number("2"),
c=Number("4");return Q3b(a)+2*b+2*c},Z3b=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return S3b(T3b(U3b(),V3b(c).setEdit(!0)));if(d)return S3b(W3b(U3b(),(new rt).setObfuscatedGaiaId(d).setEdit(!0)));var e;c=((e=a.getPrimaryTarget().getName())==null?void 0:e.getGivenName())||b;var f;b=((f=a.getPrimaryTarget().getName())==null?void 0:f.getFamilyName())||"";f=a.getTargetList().filter(function(h){return h.getTargetType()===1||h.getTargetType()===
6}).map(function(h){return h.getDisplayValue()});a=a.getTargetList().filter(function(h){return h.getTargetType()===2||h.getTargetType()===7}).map(function(h){return h.getDisplayValue()});return S3b(X3b(new st,Y3b((new tt).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},$3b=function(a){return(a==null?0:ut(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:{isValid:!0}},d4b=function(a,b,c,d){var e=R_b(b);b=Z3b(b.result(),b.getDisplayNameWithOverrideApplied());e={hovercardId:e.hovercardId,
label:e.label,sublabel:e.sublabel,photos:e.photos,name:e.name,contactsUrl:b};b=e.contactsUrl;var f=d.description;d='<div peoplekit-id="'+$s("bN97Pc")+'"><div class="'+$s("peoplekitComponentsNameeditdialogImplDescription")+'">';f?(d+=vt(f)+" ",b='To edit this contact permanently, use <a href="'+($s(wt(b))+'" target="_blank" class="'+$s("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=b):(b='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+
($s(wt(b))+'" target="_blank" class="'+$s("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=b);d+='</div><div peoplekit-id="'+$s("PN08Xe")+'"></div></div>';d=Zs(d);b=n1b(e);a=g1b(a,d,c,b);d=Fs(a.getRoot(),"d6MZcd");Gs(d,e.photos,36,36,c);c=Fs(a.getRoot(),"PN08Xe");e=Lp(a4b,{label:"Name",initialValue:e.name||"",id:Hs(b4b)});c.appendChild(e);c=new xt(e);return new c4b(a,c)},f4b=function(a,b,c,d,e,f,h,k,q,u){a={resultType:c.result().getResultType(),avatarSize:Q3b(f.getDensity()),
resultListItemAvatarSize:T1b(f.getDensity()),parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:h,chipCustomization:q,isRightToLeft:u,clientConfig:k};k=A_b(k);return e4b(Ks,k).create(a)},g4b=function(a){return JSON.stringify(a.map(function(b){return{id:String(b.getId()),dn:b.getDisplayName()||void 0,fdn:b.getForceDisplayNameOverride()?"f":void 0}}))},i4b=function(a){return JSON.parse(a).map(function(b){var c=new yt(zt(b.id));b.dn&&c.setDisplayName(b.dn);
b.fdn&&h4b(c,!0);return c})},j4b=function(a){return h4b((new yt(a.id())).setDisplayName(a.getDisplayNameOverride()),a.getForceDisplayNameOverride())},l4b=function(a,b,c,d,e,f,h,k,q,u){return new k4b(a,b,c,d,e,f,h,k,q,u)},o4b=function(a,b){var c=b.ownerDocument.defaultView.navigator;if(c.clipboard&&c.clipboard.writeText)c.clipboard.writeText(a);else if(c=b.ownerDocument,b=b.ownerDocument.defaultView,c.queryCommandSupported("copy"))try{var d=c.createElement("div");d.setAttribute("peoplekit-id","wbLqpc");
d.textContent=a;a=d;var e,f=m4b.height;if(!f){var h=n4b();f=h;if(a.style[h]===void 0){var k=EKa()+Yj(h);a.style[k]!==void 0&&(f=k)}m4b.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var q=b.getSelection();q&&(q.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},p4b=function(a,b){a=a.map(function(c){var d=c.result(),e=c.getDisplayNameWithOverrideApplied();switch(c.id().getType()){case 3:case 8:e=e||"Google User"}c=d.getDisplayValue();return new At(c,e)});o4b(a.join(", "),
b)},r4b=function(a,b,c,d,e,f,h,k,q,u,A){a=new Bt(a,b,c,d,e,f,h,k,q,u,A);return new q4b(a,A)},u4b=function(a,b,c,d,e,f,h,k,q,u,A){var G=new W0b(a),H=new s4b({getPrevKeyCode:function(){return Ct(a)?39:37},getNextKeyCode:function(){return Ct(a)?37:39},navigatePastBegin:q.navigatePastBegin,navigatePastEnd:q.navigatePastEnd});e=r4b(b,c,G,d,e,f,h,k,{chipClick:function(N,O){return H.onClick(N,Xs(O))},chipContextMenu:function(N,O){H.onContextMenu(Xs(O))},chipDrop:q.chipDrop||function(){},chipEditContactMethod:q.chipEditContactMethod||
function(){}},u,A);H.attach(a,e.getNavigatable());return new t4b(e,b,c,d,u,A)},v4b=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Vf`"+a);}},x4b=function(a){a=a.replace(/\\"/g,"%%").matchAll(w4b);return[].concat(p(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},y4b=function(a,b){var c=x4b(a);
c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b<=d.startIndex+d.length)return d;return{startIndex:0,length:a.length,value:a}},z4b=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},F4b=function(a,b,c,d,e,f,h,k,q){var u=new A4b(c,new Dt(c,d,k,q),f),A=Lp(B4b,{max_height:void 0});b1b(A,e.getStyle());a.appendChild(A);a=Fs(A,"kE8AEc");var G=Lp(C4b,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});
a.appendChild(G);a=Lp(D4b,{id:Hs(E4b),ariaLabel:"",helpText:e.helpText,shouldAutofocus:e.shouldAutofocus,height:R3b(e.getDensity()),densityClass:v4b(e.getDensity())});var H=Fs(a,"BbVjBd");G.appendChild(a);f=u4b(G,c,u,d,h,e,e,f,{navigatePastEnd:function(){H.focus()},chipDrop:function(){H.focus()},chipEditContactMethod:function(N){H.value=N;N=H.dispatchEvent;var O=X_b("input",H,"Event");N.call(H,O);H.focus()}},k,q);b=b(H);return new Et(A,f,a,b,c,u,d,k,e,q)},J4b=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);
e.internal.getClearcut().setComponentFlow(4);d.setAllowContactMethodEditing(kl(e.internal,5));var h=Lp(G4b,{classes:"aU4VQc"});a.appendChild(h);kl(e.internal,14,!0)&&d.setStyle(1);d1b(h,d.getTheme());Rs({element:h,veid:64611,actions:["impression"],componentId:"peoplekitweb"});E1b(h,b);var k=k3b(e,d.getEntryPoint()),q=new qt,u=g3b(c,q,d.getEntryPoint()),A=new N3b(f.intelligence);a=(new H4b).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=F4b(h,function(G){return a3b(h,
G,c,q,u,k,d,e,A,b)},q,b,d,e,A,a,k);f=D3b(h,e.internal.getClearcut(),d.getEntryPoint());f.start(O3b);return new I4b(h,a,q,u,f)},L4b=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new pt);return K4b(a,b,f,c,d,e)},K4b=function(a,b,c,d,e,f){J3b({clientConfig:e,commonConfig:d,initializeIoC:B1b});return J4b(a,b,c,d,e,f)},M4b=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Ft(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},
P4b=function(a,b,c){if(Ft(a.id)||Ft(b.id)){var d=N4b.has(a.id.getType()),e=N4b.has(b.id.getType());if(d!==e)return d?-1:1;if(Ft(a.id)&&Ft(b.id))return O4b(a,b,c,!1)}d=M4b(a,c);c=M4b(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},O4b=function(a,b,c,d){var e=isFinite(a.itemAffinity)?a.itemAffinity:-Infinity,f=isFinite(b.itemAffinity)?b.itemAffinity:-Infinity;return e!==f?e>f?-1:1:d?P4b(a,b,c):0},Q4b=function(a){a=a===void 0?{requestCorpHeaders:!1}:a;var b=(new Gt).setDevice(1);
a.requestCorpHeaders&&Sl(b,2,2);return b},S4b=function(a){return a?R4b.get(a)||0:0},W4b=function(a){switch(a.getValueCase()){case 2:return Ht(a.getEmail().getValue()||"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=T4b(b.getOriginalValue()||""),b=T4b(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):T4b(b.getCanonicalValue()||b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=Qm(a,U4b,4,It);if(a.hasProfileId())return a=a.getProfileId()||
"",new Jt(8,Ep(a).toLowerCase(),a);switch(vm(a,Kt)){case 2:return a=a.getEmail()||"",new Jt(6,Ep(a).toLowerCase(),a);case 3:return V4b(a.getPhone()||"")}}return Lt},$4b=function(a){return Wk(a,X4b,5,Fk()).map(function(b){switch(b.getIdCase()){case 1:return Y4b(b.getProfileId()||"");case 2:return Z4b(b.getContactId()||"");default:return null}}).filter(Boolean)},a5b=function(a,b){return nk(a,Mt,3)&&X(a,Mt,3).getIsPlaceholder()?3:Nt(b,8)?1:0},b5b=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):
-Infinity},c5b=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},d5b=function(a){return!!a&&!!a.getPrimary()},f5b=function(a){var b=a.getDisplayInfo();if(!b)return"";a=[];var c=b.getName();c&&(c.hasValue()?a.push(c.getValue()):(c.hasGivenName()&&a.push(c.getGivenName()),c.hasFamilyName()&&a.push(c.getFamilyName())));(b=b.getPhoto())&&b.hasUrl()&&a.push(b.getUrl());return a.length?"NameAndPhotoOnly"+e5b(a):""},j5b=function(a){var b=void 0;if(X(a,Mt,3)){var c;
b=(c=b)!=null?c:new Ot;Pt(b,g5b,X(a,Mt,3))}if(X(a,h5b,5)){var d;b=(d=b)!=null?d:new Ot;Pt(b,i5b,X(a,h5b,5))}return b},m5b=function(a){var b=void 0;if(X(a,k5b,9)){var c;b=(c=b)!=null?c:new Ot;Pt(b,l5b,X(a,k5b,9))}return b},o5b=function(a){var b=new Qt,c=a?2:1;n5b(b.setEventType(4),c).setToken(a);return b},q5b=function(a,b){var c=new Rt;c=(new Qt).setLookupInfo(c);St(c.setEventType(6),9).setItemCount(a.length).setQueryScope(p5b.get(b)||0);return c},r5b=function(){var a=new Qt;St(a.setEventType(6),10);
return a},s5b=function(){var a=new Qt;St(a.setEventType(6),2);return a},t5b=function(){var a=new Qt;St(a.setEventType(6),13);return a},u5b=function(a,b){var c=new Qt;St(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(p5b.get(b)||0);return c},v5b=function(a){var b=new Qt;St(b.setEventType(6),5).setQueryScope(p5b.get(a)||0);return b},w5b=function(a,b){switch(a){case 8:case 3:case 17:return(new Tt).setProfileId(b);case 1:case 6:return(new Tt).setEmail(b);case 7:case 2:return(new Tt).setPhone(b);
case 13:case 14:return a=new Tt,Am(a,4,Ut,b);case 4:case 9:return(new Tt).setContactId(b);default:return null}},z5b=function(a){return((a=Wk(a,x5b,2,Fk()).find(function(b){return Vt(b,1)===1}))?y5b.get(Vt(a,2)):0)||0},Wt=function(a){return(a||"").trim()},E5b=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(A5b(Wt($ma(Xt(b.getAffinity(),1)))));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new B5b).setDisplayName(c.getValue()).setGivenName(c.getGivenName()).setFamilyName(c.getFamilyName()),f=e.setSourceType;
a:switch(c.getSourceType()){case 1:c=3;break a;case 2:c=4;break a;default:c=0}d.call(a,f.call(e,c))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new C5b).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(D5b.get(b.getType())||0)))},G5b=function(a,b){if(b.hasProfileId())switch(vm(b,Kt)){case 2:var c=Wt(b.getEmail());return F5b(Yt(a.id).setValue(Wt(b.getProfileId())),(new Zt).setType(1).setValue(c));case 3:return c=Wt(b.getPhone()),F5b(Yt(a.id).setValue(Wt(b.getProfileId())),(new Zt).setType(2).setValue(c));
default:return b=Wt(b.getProfileId()),Yt(a.id).setValue(b)}switch(vm(b,Kt)){case 2:return b=Wt(b.getEmail()),F5b(Yt(a.id).setValue(b),(new Zt).setType(1).setValue(b));case 3:return b=Wt(b.getPhone()),F5b(Yt(a.id).setValue(b),(new Zt).setType(2).setValue(b));default:return b=Wt(b.getProfileId()),Yt(a.id).setValue(b)}},J5b=function(a,b){var c=Yt(a.id).setIsMe(!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&E5b(c,b);a.group&&((b=Wk(a.group,H5b,6,Fk()).find(function(d){return ap(d,1,I5b)!=
null}))?c.setValue(Wt(ap(b,1,I5b))):a.group.hasGroupId()&&c.setValue(Wt(a.group.getGroupId())));a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},L5b=function(a){var b=[],c=a.indexOf("@");if(c>=0&&a.length-c>1){var d=a.substring(c);b.push(d);c===0&&d.indexOf(".")<0&&K5b(b,d.substring(c+1));a=a.substring(0,c+1)}if(a==="@")return b;K5b(b,a);return b},K5b=function(a,b){a.push(b);var c=b.length+1;M5b.lastIndex=0;for(var d=M5b.exec(b);d&&d.index<c;d=M5b.exec(b))a.push(b.substring(Number(M5b.lastIndex)))},
$t=function(a){return Gp(N5b(a)).replace(O5b,"").toUpperCase().toLowerCase()},Q5b=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(P5b)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=$t(c.value);c=l(L5b(c).filter(Boolean));for(var d=c.next();!d.done;d=c.next())b.add(d.value)}var e="";return Array.from(b).sort().reverse().filter(function(f){if(e.startsWith(f))return!1;e=f;return!0})},S5b=function(a){return function c(){var d;
return R5b(c,function(e){switch(e.nextAddress){case 1:ve(e,2),d=0;case 4:if(!(d<a)){e.jumpTo(2);break}return x(e,d,7);case 7:d++;e.jumpTo(4);break;case 2:ue(e),we(e,0)}})}()},U5b=function(a){return new T5b(a)},X5b=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=V5b.get(b)))return b}return(b=W5b.get(a.getTargetType()))?b:Ft(a.getId())?8:0},Z5b=function(a,b,c){var d=new au,e=new bu;W(d,bu,2,e);e.setProvenance(b);b=new cu;W(d,cu,1,b);Ol(b,9,c===1);b.setProfileId(a.getProfileId()||
null);b.setContactId(a.getContactId()||null);c=X5b(a)===8?8:a.getProfileId()?3:4;Sl(b,8,c);c=null;a.getTargetType()===8&&(e=a.getOriginatingField())&&V5b.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Ft(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=X5b(a);Sl(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);du(b,7)===8&&b.setGroupId(a.getId().getValue());
return new Y5b(a,d)},a6b=function(a){a=$5b.indexOf(a.provenance);return a<0?$5b.length:a},b6b=function(a){return a.containerIds&&a.containerIds.some(function(b){return b.getType()===3})},c6b=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},e6b=function(a,b){b.getUseOriginalDisplayValue()&&(a=new Map(Array.from(a,function(c){var d=l(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.getOriginalValue()!==d.getDisplayValue()&&d.getPrimaryTarget().getValue()===
d.getDisplayValue()){var e=c.getOriginalValue(),f=d.getPrimaryTarget();d=mWa(d,new d6b(f,e))}return[c,d]})));return a},h6b=function(a){return kl(a,21)?new f6b:g6b},i6b=function(a){return a!==0&&a!==12},j6b=function(a){return a.substring(a.indexOf("@")+1)},k6b=function(a){return a.substring(0,a.indexOf("@")+1)},n6b=function(a,b){a=a.match(l6b);b=Ht(b);return a&&a.length&&(a=a[0]||"")&&!b.equals(Ht(a.replace(m6b,"")))?!0:!1},o6b=function(a,b){var c=0;return function(d){if(!a.isCancelled()){var e=d.getMetadata();
e.setCallbackNumber(c);e.setIsFirstCallback(!c);a.isDone()&&e.setIsLastCallback(!0);if(d.getResults().length||e.getIsLastCallback()||e.getCode()!==0)c++,b(d)}}},s6b=function(a,b,c,d){b=p6b(a,b).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new q6b(e,f)});c=p6b(a,c).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new q6b(e,f)});a=p6b(a,d).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new q6b(e,f)});return new r6b(b,c,a)},t6b=function(a){switch(a.getType()){case 1:case 6:return 1;
case 2:case 7:return 2;case 17:case 3:case 8:case 5:return 3;case 13:case 14:return 13;case 4:case 9:return 4;default:return 0}},u6b=function(a){return a.reduce(function(b,c){var d=t6b(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},v6b=function(a,b){b=b===void 0?new eu:b;var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=l(d.data.keys()),f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.data.get(f))}return{data:c,metadata:b}},
x6b=function(a,b){return!a||a instanceof w6b?a:new w6b(a,b)},A6b=function(a){var b=new y6b,c=b.setQueryId(z6b(a,3)).setSelectionId(z6b(a,4)),d=z6b(a,5);Hl(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},C6b=function(a){var b=new B6b,c;if(a=(c=X(a,fu,18))==null?void 0:c.getSessionState())c=A6b(a),W(b,y6b,2,c);return b},E6b=function(a){return D6b.get(a)||0},H6b=function(a,b){var c=F6b(gu(new hu,"PeopleStore").setLogSource(pl(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(739336995).setEnableClearcut(a.getEnableClearcut()),
[].concat(p(b.getExperiments().getExperimentIdsList()),p(G6b?G6b.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());if(a=Wk(a,iu,5,Fk()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(du(a,4)),c.setEventSourceId(du(a,4));return c},J6b=function(a,b){return new I6b(a,b)},K6b=function(a){return(nk(a,ju,12)?X(X(a,ju,12),iu,2):a.getSources())||new iu},L6b=function(a){return(nk(a,ju,12)?X(X(a,ju,12),iu,3):a.getSources())||new iu},M6b=function(a){return a.filter(function(b){var c,
d=(c=it(b))==null?void 0:pl(c,4),e;return((e=b.getInfo())==null?void 0:pl(e,8))!==3||d!==2&&d!==1?!0:!1})},O6b=function(a){return a.filter(function(b){var c;return(b=(c=b.getInfo())==null?void 0:c.getFieldType())&&N6b.has(b)?!1:!0})},P6b=function(a,b){return a.reduce(function(c,d){var e=b(d);c.has(e)||c.set(e,[]);c.get(e).push(d);return c},new Map)},Q6b=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return Dl(a,3)+":"+Dl(a,4)+":"+Dl(a,5)+":"+a.getInstanceId()},R6b=function(a){return nk(a,
bu,2)?it(a).getContext()||0:0},S6b=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?Dl(d,3)+"-"+Dl(d,4)+"-"+Dl(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},ku=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(h){return!kl(h,4)});if(d){d=l(a);for(var e=d.next();!e.done;e=d.next())Ol(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=l(d),e=d.next();!e.done;e=
d.next())e.value.setSessionState(c.clone());a=S6b(a);c=[];a=l(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new T6b;f.setSessionState(e);f.setEventType(b);sn(f,3,d);f.setEventSources(e.getSources());c.push(f)}return c},U6b=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new lu},Y6b=function(a,b,c){var d=V6b(b.getTargetType(),b.getValue()),e=
[],f=e.concat;var h=Ek(b,5,Fk());h=p(h.map(Y4b));var k=p(Ek(b,6,Fk()).map(Z4b));var q=Ek(b,13,Fk());e=f.call(e,h,k,p(q.map(W6b)));X6b.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Ek(b,6,Fk()).length?1:2,isMe:!!b.getIsMe(),isPrimary:a.getTargetList()[0]===b,itemAffinity:a.hasAffinity()?a.getAffinity().getValue():-Infinity,fieldAffinity:b.hasAffinity()?b.getAffinity().getValue():-Infinity,provenance:c,resultExtendedData:a.hasExtendedData()?a.getExtendedData():void 0,targetData:b,
resultData:a}},Z6b=function(a){return(a||"").trim()},b7b=function(a){var b=a.resultData,c=a.targetData,d=Yt(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);nl(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(Z6b(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(Z6b(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();d.setName((new B5b).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&
(e=c.getPhoto(),d.setPhoto((new C5b).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(ll(b,4)){var f;a.totalMemberCount=(f=b.getTotalMemberCount())!=null?f:void 0}b.hasAffinity()&&d.setPersonLoggingId(b.getAffinity().getLoggingId()||"");c.hasAffinity()&&d.setFieldLoggingId(c.getAffinity().getLoggingId()||"");nl(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(h){return(new mu).setAltText(h.getAltText()).setIconUrl(h.getIconUrl())}));
c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());nk(c,nu,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo($6b(a.getCertificateStatus(),zl(a,3),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));nk(c,ou,17)&&(c=c.getReachabilityInfo(),d.setReachabilityInfo(new a7b(c.getReachabilityStatus(),c.getClientData())));return d},d7b=function(a){a.cacheConfigurators_.push(new c7b);return a},e7b=function(a,b){var c={};return Qi("a",(c.href=b,c.target="_blank",c.rel="noopener noreferrer nofollow",
c),a)},h7b=function(){return n(Es).getEnvironmentType()==="QA"?f7b:g7b},k7b=function(){return n(Es).getEnvironmentType()==="QA"?i7b:j7b},n7b=function(){return n(Es).getEnvironmentType()==="QA"?l7b:m7b},o7b=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},p7b=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},q7b=function(a){a=["object"==typeof globalThis&&
globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");},ea=q7b(this),pu=function(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&p7b(c,a,{configurable:!0,writable:!0,value:b})}};
pu("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;p7b(this,"description",{configurable:!0,writable:!0,value:h})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("b");return new b(c+(f||"")+"_"+d++,f)};return e});
pu("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&p7b(d.prototype,a,{configurable:!0,writable:!0,value:function(){return r7b(o7b(this))}})}return a});pu("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var r7b=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},s7b=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},t7b=function(){function a(){function c(){}new c;Reflect.construct(c,[],function(){});return new c instanceof c}if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,
d,e){e===void 0&&(e=c);e=s7b(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),u7b;if(typeof Object.setPrototypeOf=="function")u7b=Object.setPrototypeOf;else{var v7b;a:{var w7b={a:!0},x7b={};try{x7b.__proto__=w7b;v7b=x7b.a;break a}catch(a){}v7b=!1}u7b=v7b?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var qu=u7b,Y=function(a,b){a.prototype=s7b(b.prototype);a.prototype.constructor=a;if(qu)qu(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},l=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:o7b(a)};throw Error("f`"+String(a));},yBa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);
return c},p=function(a){return a instanceof Array?a:yBa(l(a))},ru=function(a){return y7b(a,a)},y7b=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},su=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},z7b=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)su(d,e)&&(a[e]=d[e])}return a};pu("Object.assign",function(a){return a||z7b});
var tu=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};tu.prototype.start_=function(){if(this.isRunning_)throw new TypeError("h");this.isRunning_=!0};tu.prototype.next_=function(a){this.yieldResult=a};tu.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};
tu.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var x=function(a,b,c){a.nextAddress=c;return{value:b}};tu.prototype.jumpTo=function(a){this.nextAddress=a};
var ze=function(a){a.nextAddress=0},te=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)},ve=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0},uu=function(a,b){a.nextAddress=b;a.catchAddress_=0},xe=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},ue=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},we=function(a,b,c){c=a.finallyContexts_.splice(c||
0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:c.jumpTo!=void 0&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b},A7b=function(a){this.context_=new tu;this.program_=a};
A7b.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return B7b(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return C7b(this)};var D7b=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return B7b(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return C7b(a)};
A7b.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return B7b(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return C7b(this)};
var B7b=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(h){return a.context_.yieldAllIterator_=null,a.context_.throw_(h),C7b(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return C7b(a)},C7b=function(a){for(;a.context_.nextAddress;)try{var b=a.program_(a.context_);if(b)return a.context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.context_.yieldResult=
void 0,a.context_.throw_(c)}a.context_.isRunning_=!1;if(a.context_.abruptCompletion_){b=a.context_.abruptCompletion_;a.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}},E7b=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return D7b(a,b)};this[Symbol.iterator]=function(){return this}},R5b=function(a,b){b=new E7b(new A7b(b));qu&&a.prototype&&qu(b,a.prototype);
return b},F7b=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}f(a.next())})},w=function(a){return F7b(new E7b(new A7b(a)))},Bga=function(a){this[Symbol.asyncIterator]=function(){return this};this[Symbol.iterator]=function(){return a};this.next=function(b){return Promise.resolve(a.next(b))};this["throw"]=function(b){return new Promise(function(c,d){var e=a["throw"];
e!==void 0?c(e.call(a,b)):(c=a["return"],c!==void 0&&c.call(a),d(new TypeError("i")))})};a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},ud=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};pu("globalThis",function(a){return a||ea});pu("Reflect",function(a){return a?a:{}});pu("Reflect.construct",function(){return t7b});
pu("Reflect.setPrototypeOf",function(a){return a?a:qu?function(b,c){try{return qu(b,c),!0}catch(d){return!1}}:null});
pu("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof e?h:new e(function(k){k(h)})}if(a)return a;b.prototype.asyncExecute=function(h){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)};var d=ea.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(u){return function(A){q||(q=!0,u.call(k,A))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("j"));else if(h instanceof e)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k=h!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};e.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(q){this.reject_(q);return}typeof k=="function"?this.settleSameAsThenable_(k,h):this.fulfill_(h)};e.prototype.reject_=
function(h){this.settle_(2,h)};e.prototype.fulfill_=function(h){this.settle_(1,h)};e.prototype.settle_=function(h,k){if(this.state_!=0)throw Error("k`"+h+"`"+k+"`"+this.state_);this.state_=h;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=ea.console;typeof k!=="undefined"&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=ea.CustomEvent,k=ea.Event,q=ea.dispatchEvent;if(typeof q==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof k==="function"?h=new k("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(u){q.reject(u)}};e.prototype.then=function(h,k){function q(H,N){return typeof H=="function"?function(O){try{u(H(O))}catch(U){A(U)}}:
N}var u,A,G=new e(function(H,N){u=H;A=N});this.callWhenSettled_(q(h,u),q(k,A));return G};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(u.state_){case 1:h(u.result_);break;case 2:k(u.result_);break;default:throw Error("l`"+u.state_);}}var u=this;this.onSettledCallbacks_==null?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var u=l(h),A=u.next();!A.done;A=u.next())c(A.value).callWhenSettled_(k,q)})};e.all=function(h){var k=l(h),q=k.next();return q.done?c([]):new e(function(u,A){function G(O){return function(U){H[O]=U;N--;N==0&&u(H)}}var H=[],N=0;do H.push(void 0),N++,c(q.value).callWhenSettled_(G(H.length-1),A),q=k.next();while(!q.done)})};return e});var vu=function(a,b,c){if(a==null)throw new TypeError("m`"+c);if(b instanceof RegExp)throw new TypeError("n`"+c);return a+""};
pu("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=vu(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});pu("Object.setPrototypeOf",function(a){return a||qu});pu("Symbol.dispose",function(a){return a?a:Symbol("o")});
pu("WeakMap",function(a){function b(){}function c(q){var u=typeof q;return u==="object"&&q!==null||u==="function"}function d(q){if(!su(q,f)){var u=new b;p7b(q,f,{value:u})}}function e(q){var u=Object[q];u&&(Object[q]=function(A){if(A instanceof b)return A;Object.isExtensible(A)&&d(A);return u(A)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),u=Object.seal({}),A=new a([[q,2],[u,3]]);if(A.get(q)!=2||A.get(u)!=3)return!1;A.delete(q);A.set(u,4);return!A.has(q)&&A.get(u)==4}catch(G){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var h=0,k=function(q){this.id_=(h+=Math.random()+1).toString();if(q){q=l(q);for(var u;!(u=q.next()).done;)u=u.value,this.set(u[0],u[1])}};k.prototype.set=function(q,u){if(!c(q))throw Error("p");d(q);if(!su(q,f))throw Error("q`"+q);q[f][this.id_]=u;return this};k.prototype.get=function(q){return c(q)&&su(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&su(q,f)&&su(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&su(q,f)&&su(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
pu("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),q=new a(l([[k,"s"]]));if(q.get(k)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var u=q.entries(),A=u.next();if(A.done||A.value[0]!=k||A.value[1]!="s")return!1;A=u.next();return A.done||A.value[0].x!=4||A.value[1]!="t"||!u.next().done?!1:!0}catch(G){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=l(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=k===0?0:k;var u=d(this,k);u.list||(u.list=this[0][u.id]=[]);u.entry?u.entry.value=q:(u.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:q},u.list.push(u.entry),this[1].previous.next=u.entry,this[1].previous=u.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,q){for(var u=this.entries(),A;!(A=u.next()).done;)A=A.value,k.call(q,A[1],A[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var u=q&&typeof q;u=="object"||u=="function"?b.has(q)?u=b.get(q):(u=""+ ++h,b.set(q,u)):u="p_"+q;var A=k[0][u];if(A&&su(k[0],u))for(k=0;k<A.length;k++){var G=A[k];if(q!==q&&G.key!==G.key||q===G.key)return{id:u,list:A,index:k,entry:G}}return{id:u,list:A,index:-1,entry:void 0}},e=function(k,
q){var u=k[1];return r7b(function(){if(u){for(;u.head!=k[1];)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:q(u)};u=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});
pu("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(l([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
l(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=c===0?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(c){return this.map_.has(c)};b.prototype.entries=function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype.keys=
b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.map_.forEach(function(f){return c.call(d,f,f,e)})};return b});pu("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
pu("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)su(b,d)&&c.push([d,b[d]]);return c}});pu("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});pu("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});pu("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});pu("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
pu("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});pu("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=vu(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});pu("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
pu("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});pu("String.prototype.includes",function(a){return a?a:function(b,c){return vu(this,b,"includes").indexOf(b,c||0)!==-1}});
var G7b=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};pu("Array.prototype.entries",function(a){return a?a:function(){return G7b(this,function(b,c){return[b,c]})}});pu("Array.prototype.keys",function(a){return a?a:function(){return G7b(this,function(b){return b})}});pu("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
var H7b=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};pu("Array.prototype.find",function(a){return a?a:function(b,c){return H7b(this,b,c).v}});pu("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)su(b,d)&&c.push(b[d]);return c}});
pu("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});pu("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});pu("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
pu("Array.prototype.values",function(a){return a?a:function(){return G7b(this,function(b,c){return c})}});pu("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});var wu=function(a){return a?a:Array.prototype.fill};pu("Int8Array.prototype.fill",wu);pu("Uint8Array.prototype.fill",wu);pu("Uint8ClampedArray.prototype.fill",wu);
pu("Int16Array.prototype.fill",wu);pu("Uint16Array.prototype.fill",wu);pu("Int32Array.prototype.fill",wu);pu("Uint32Array.prototype.fill",wu);pu("Float32Array.prototype.fill",wu);pu("Float64Array.prototype.fill",wu);pu("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("r`"+b);b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("s");c[d[0]]=d[1]}return c}});
pu("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("t");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
pu("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});return c}});pu("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
pu("Array.prototype.findIndex",function(a){return a?a:function(b,c){return H7b(this,b,c).i}});pu("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,f){e=b.call(c,e,f,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});return d}});pu("String.prototype.repeat",function(a){return a?a:function(b){var c=vu(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("u");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
pu("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("v");var c=new RegExp(b,b instanceof RegExp?void 0:"g"),d=this,e=!1,f={next:function(){if(e)return{value:void 0,done:!0};var h=c.exec(d);if(!h)return e=!0,{value:void 0,done:!0};h[0]===""&&(c.lastIndex+=1);return{value:h,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});
pu("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}function c(d){return{status:"rejected",reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});var I7b=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};pu("Array.prototype.at",function(a){return a?a:I7b});var xu=function(a){return a?a:I7b};pu("Int8Array.prototype.at",xu);pu("Uint8Array.prototype.at",xu);
pu("Uint8ClampedArray.prototype.at",xu);pu("Int16Array.prototype.at",xu);pu("Uint16Array.prototype.at",xu);pu("Int32Array.prototype.at",xu);pu("Uint32Array.prototype.at",xu);pu("Float32Array.prototype.at",xu);pu("Float64Array.prototype.at",xu);pu("String.prototype.at",function(a){return a?a:I7b});var J7b=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};
pu("String.prototype.padStart",function(a){return a?a:function(b,c){var d=vu(this,null,"padStart");return J7b(c,b-d.length)+d}});pu("Reflect.isExtensible",function(a){return a?a:typeof Object.isExtensible=="function"?Object.isExtensible:function(){return!0}});pu("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});pu("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});
var K7b=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};pu("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=K7b(b,c);return f?f.set?(f.set.call(arguments.length>3?e:b,d),!0):f.writable&&!Object.isFrozen(b)?(b[c]=d,!0):!1:Reflect.isExtensible(b)?(b[c]=d,!0):!1}});pu("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=K7b(b,c);if(e)return e.get?e.get.call(d):e.value}});
pu("String.prototype.codePointAt",function(a){return a?a:function(b){var c=vu(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}});
pu("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("w`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
pu("Math.hypot",function(a){return a?a:function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(e>1E100||e<1E-100){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}});pu("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});
pu("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=vu(this,null,"padStart");return d+J7b(c,b-d.length)}});var L7b=L7b||{},ya=this||self,M7b=ya._F_toggles||[],Cp=function(a,b){a=a.split(".");b=b||ya;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},Ib=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},bb=function(a){var b=Ib(a);return b=="array"||b=="object"&&typeof a.length=="number"},cb=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},db=function(a){return Object.prototype.hasOwnProperty.call(a,N7b)&&a[N7b]||(a[N7b]=++O7b)},
N7b="closure_uid_"+(Math.random()*1E9>>>0),O7b=0,P7b=function(a,b,c){return a.call.apply(a.bind,arguments)},Q7b=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},mt=function(a,b,c){mt=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?P7b:Q7b;return mt.apply(null,
arguments)},yu=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},R7b=function(a){(0,eval)(a)},S7b=function(a,b){a=a.split(".");for(var c=ya,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},rc=function(a){return a},zu=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,
e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}};var qca=aa(function(a){return typeof a==="number"}),pca=aa(function(a){return typeof a==="string"}),sca=aa(function(a){return typeof a==="boolean"}),LGb=aa(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),caa=aa(function(a){return Array.isArray(a)});var ba=globalThis;var fa=Object.getOwnPropertyDescriptor,naa=Object.defineProperty,qaa=Object.getPrototypeOf,Gaa=Object.create,Haa=Array.prototype.slice,aba=ca("addEventListener"),bba=ca("removeEventListener"),oa=ca(""),T7b=typeof window!=="undefined",na=T7b?window:void 0,ia=T7b&&na||globalThis,U7b=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,zaa=!("nw"in ia)&&typeof ia.process!=="undefined"&&ia.process.toString()==="[object process]",Iaa=!zaa&&!U7b&&!(!T7b||!na.HTMLElement),Jaa=typeof ia.process!==
"undefined"&&ia.process.toString()==="[object process]"&&!U7b&&!(!T7b||!na.HTMLElement),laa={},V7b=ca("enable_beforeunload"),maa=function(a){if(a=a||ia.event){var b=laa[a.type];b||(b=laa[a.type]=ca("ON_PROPERTY"+a.type));var c=this||a.target||ia;b=c[b];Iaa&&c===na&&a.type==="error"?(c=a,c=b&&b.call(this,c.message,c.filename,c.lineno,c.colno,c.error),c===!0&&a.preventDefault()):(c=b&&b.apply(this,arguments),a.type==="beforeunload"&&ia[V7b]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},ja=ca("originalInstance"),saa=!1,taa=!1;var qa=!1;if(typeof window!=="undefined")try{var W7b=Object.defineProperty({},"passive",{get:function(){qa=!0}});window.addEventListener("test",W7b,W7b);window.removeEventListener("test",W7b,W7b)}catch(a){qa=!1}var Baa={useG:!0},pa={},Aaa={},Daa=new RegExp("^"+oa+"(\\w+)(true|false)$"),yaa=ca("propagationStopped");var Laa,Maa,Naa,Oaa,ta;var Waa=[].concat(p("abort animationcancel animationend animationiteration auxclick beforeinput blur cancel canplay canplaythrough change compositionstart compositionupdate compositionend cuechange click close contextmenu curechange dblclick drag dragend dragenter dragexit dragleave dragover drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadstart loadeddata loadedmetadata lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup mousewheel orientationchange pause play playing pointercancel pointerdown pointerenter pointerleave pointerlockchange mozpointerlockchange webkitpointerlockerchange pointerlockerror mozpointerlockerror webkitpointerlockerror pointermove pointout pointerover pointerup progress ratechange reset resize scroll seeked seeking select selectionchange selectstart show sort stalled submit suspend timeupdate volumechange touchcancel touchmove touchstart touchend transitioncancel transitionend waiting wheel".split(" ")),
p(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),p(["autocomplete","autocompleteerror"]),p(["toggle"]),p("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),p("absolutedeviceorientation afterinput afterprint appinstalled beforeinstallprompt beforeprint beforeunload devicelight devicemotion deviceorientation deviceorientationabsolute deviceproximity hashchange languagechange message mozbeforepaint offline online paint pageshow pagehide popstate rejectionhandled storage unhandledrejection unload userproximity vrdisplayconnected vrdisplaydisconnected vrdisplaypresentchange".split(" ")),
p("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),p("activate afterupdate ariarequest beforeactivate beforedeactivate beforeeditfocus beforeupdate cellchange controlselect dataavailable datasetchanged datasetcomplete errorupdate filterchange layoutcomplete losecapture move moveend movestart propertychange resizeend resizestart rowenter rowexit rowsdelete rowsinserted command compassneedscalibration deactivate help mscontentzoom msmanipulationstatechanged msgesturechange msgesturedoubletap msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup pointerout mssitemodejumplistitemremoved msthumbnailclick stop storagecommit".split(" ")));var $aa=ca("zoneTask");zu(wa,Error);wa.prototype.name="CustomError";var X7b;zu(eba,wa);eba.prototype.name="AssertionError";var jba=void 0,hba,iba,Y7b=typeof TextDecoder!=="undefined",nba,mba=typeof String.prototype.isWellFormed==="function",lba=typeof TextEncoder!=="undefined";var Fa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Z7b=/&/g,$7b=/</g,a8b=/>/g,b8b=/"/g,c8b=/'/g,d8b=/\x00/g,e8b=/[\x00&<>"']/;var f8b=!!(M7b[0]&2048);var g8b;if(M7b[0]&1024)g8b=f8b;else{var h8b=Cp("WIZ_global_data.oxN3nb"),i8b=h8b&&h8b[610401301];g8b=i8b!=null?i8b:!1}var Ia=g8b;var Ka,j8b=ya.navigator;Ka=j8b?j8b.userAgentData||null:null;var Wa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Va=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},k8b=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=typeof a==="string"?a.split(""):a,k=0;k<d;k++)if(k in h){var q=h[k];b.call(c,q,k,a)&&(e[f++]=q)}return e},l8b=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},m8b=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=
typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};var n8b=function(a){n8b[" "](a);return a};n8b[" "]=function(){};var o8b=function(a,b){try{return n8b(a[b]),!0}catch(c){}return!1};var p8b=tba(),ct=uba(),q8b=Ma("Edge"),Op=Ma("Gecko")&&!(Ea(Ha(),"WebKit")&&!Ma("Edge"))&&!(Ma("Trident")||Ma("MSIE"))&&!Ma("Edge"),Np=Ea(Ha(),"WebKit")&&!Ma("Edge"),r8b=Np&&Ma("Mobile"),Us=Bba(),s8b=Cba(),t8b=(Sa()?Ka.platform==="Linux":Ma("Linux"))||Dba(),u8b=zba(),v8b=Aba(),w8b=Ma("iPad"),x8b=Ma("iPod"),y8b=Ta();Ea(Ha(),"KaiOS");var z8b;
a:{var A8b="",B8b=function(){var a=Ha();if(Op)return/rv:([^\);]+)(\)|;)/.exec(a);if(q8b)return/Edge\/([\d\.]+)/.exec(a);if(ct)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Np)return/WebKit\/(\S+)/.exec(a);if(p8b)return/(?:Version)[ \/]?(\S+)/.exec(a)}();B8b&&(A8b=B8b?B8b[1]:"");if(ct){var C8b,D8b=ya.document;C8b=D8b?D8b.documentMode:void 0;if(C8b!=null&&C8b>parseFloat(A8b)){z8b=String(C8b);break a}}z8b=A8b}var E8b=z8b;var F8b=Pa(),G8b=Aba()||Ma("iPod"),H8b=Ma("iPad"),I8b=wba(),J8b=Ra(),K8b=vba()&&!Ta();var L8b={},M8b=null,N8b=Op||Np||!K8b&&typeof ya.atob=="function",P8b=function(a,b){b===void 0&&(b=0);O8b();b=L8b[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],u=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=u+h+k+q}u=0;q=d;switch(a.length-e){case 2:u=a[e+1],q=b[(u&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|u>>4]+q+d}return c.join("")},A5b=function(a){if(N8b)return ya.atob(a);var b="";Q8b(a,function(c){b+=String.fromCharCode(c)});
return b},R8b=function(a){var b=[];Q8b(a,function(c){b.push(c)});return b},Uba=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):Da("=.",a[b-1])&&(c=Da("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Q8b(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Q8b=function(a,b){function c(q){for(;d<a.length;){var u=a.charAt(d++),A=M8b[u];if(A!=null)return A;if(!Ca(u))throw Error("O`"+u);}return q}O8b();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(k===64&&e===-1)break;b(e<<2|f>>4);h!=
64&&(b(f<<4&240|h>>2),k!=64&&b(h<<6&192|k))}},O8b=function(){if(!M8b){M8b={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));L8b[c]=d;for(var e=0;e<d.length;e++){var f=d[e];M8b[f]===void 0&&(M8b[f]=e)}}}};var Xba=typeof Uint8Array!=="undefined",Tba=!ct&&typeof btoa==="function",Vba=/[-_.]/g,Rba={"-":"+",_:"/",".":"="},rb={},S8b=typeof structuredClone!="undefined";var qb=function(a,b){if(b!==rb)throw Error("Q");this.value_=a;if(a!=null&&a.length===0)throw Error("P");},pb=function(){return T8b||(T8b=new qb(null,rb))},Ada=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Tba){for(var c="",d=0,e=b.length-10240;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,d?b.subarray(d):b);b=btoa(c)}else b=P8b(b);a=a.value_=b}return a};qb.prototype.isEmpty=function(){return this.value_==null};
qb.prototype.sizeBytes=function(){var a=zc(this);return a?a.length:0};
var sza=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=zc(a)){var c=a.length;b=Y7b?kba(a,0,c,b):gba(a,0,c,b)}else b="";return b},U8b=function(a,b){if(!a.value_||!b.value_||a.value_===b.value_)return a.value_===b.value_;if(typeof a.value_==="string"&&typeof b.value_==="string"){var c=a.value_,d=b.value_;b.value_.length>a.value_.length&&(d=a.value_,c=b.value_);if(c.lastIndexOf(d,0)!==0)return!1;for(b=d.length;b<c.length;b++)if(c[b]!=="=")return!1;return!0}c=
zc(a);b=zc(b);return Yba(c,b)},zc=function(a){if(rb!==rb)throw Error("Q");var b=a.value_;b=b==null||eb(b)?b:typeof b==="string"?Wba(b):null;return b==null?b:a.value_=b},gda=function(a,b){if(typeof b==="string")b=b?new qb(b,rb):pb();else if(b instanceof Uint8Array)b=new qb(b,rb);else if(!(b instanceof qb))return!1;return U8b(a,b)},T8b;var aca=void 0;var ib=typeof Symbol==="function"&&typeof Symbol()==="symbol",V8b=hb("jas",void 0,!0),Yca=hb(void 0,"0di"),Oc=hb(void 0,"1oa"),Qda=hb(void 0,"0dg"),sc=hb(void 0,Symbol()),tda=hb(void 0,"0ub"),Lda=hb(void 0,"0actk"),hca=hb("m_m","messagePrototypeMarker",!0),kca=hb(void 0,"mrtk"),Dda=hb(void 0,"vps");var jb=ib?V8b:"internalArrayState",dca={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},cca=Object.defineProperties;var jca=typeof hca==="symbol",ica={},Sda,W8b=[];lb(W8b,55);Sda=Object.freeze(W8b);var X8b=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};X8b.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};X8b.prototype[Symbol.iterator]=function(){return this};var Gk=Object.freeze({});var Eda={};var rca=typeof ya.BigInt==="function"&&typeof ya.BigInt(0)==="bigint";var $b=aa(function(a){return rca?a>=Y8b&&a<=Z8b:a[0]==="-"?tca(a,$8b):tca(a,a9b)}),$8b=Number.MIN_SAFE_INTEGER.toString(),Y8b=rca?BigInt(Number.MIN_SAFE_INTEGER):void 0,a9b=Number.MAX_SAFE_INTEGER.toString(),Z8b=rca?BigInt(Number.MAX_SAFE_INTEGER):void 0;var b9b=typeof Uint8Array.prototype.slice==="function",Ab=0,Bb=0;var Ub=typeof BigInt==="function"?BigInt.asIntN:void 0,fc=typeof BigInt==="function"?BigInt.asUintN:void 0,Yb=Number.isSafeInteger,Mb=Number.isFinite,Zb=Math.trunc,Zca=zb(0),Fca=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var qda={},c9b=function(){try{var a=function(){return t7b(Map,[],this.constructor)};Y(a,Map);n8b(new a);return!1}catch(b){return!0}}(),d9b=function(){this.map_=new Map};g=d9b.prototype;g.get=function(a){return this.map_.get(a)};g.set=function(a,b){this.map_.set(a,b);this.size=this.map_.size;return this};g.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};g.clear=function(){this.map_.clear();this.size=this.map_.size};g.has=function(a){return this.map_.has(a)};g.entries=function(){return this.map_.entries()};
g.keys=function(){return this.map_.keys()};g.values=function(){return this.map_.values()};g.forEach=function(a,b){return this.map_.forEach(a,b)};d9b.prototype[Symbol.iterator]=function(){return this.entries()};
var xc=function(){if(c9b)return Object.setPrototypeOf(d9b.prototype,Map.prototype),Object.defineProperties(d9b.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),d9b;var a=function(){return t7b(Map,[],this.constructor)};Y(a,Map);return a}(),qc=function(a,b,c,d){c=c===void 0?jda:c;d=d===void 0?jda:d;var e=xc.call(this)||this;var f=a[jb]|0;f|=64;lb(a,f);e.arrayState=f;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?kda:d;for(var h=0;h<a.length;h++){var k=a[h],q=c(k[0],!1,!0),
u=k[1];b?u===void 0&&(u=null):u=d(k[1],!1,!0,void 0,void 0,f);xc.prototype.set.call(e,q,u)}return e};Y(qc,xc);var e9b=function(a){if(a.arrayState&2)throw Error("T");};g=qc.prototype;g.clear=function(){e9b(this);xc.prototype.clear.call(this)};g.delete=function(a){e9b(this);return xc.prototype.delete.call(this,this.keyToApi(a,!0,!1))};g.entries=function(){if(this.valueCtor){var a=xc.prototype.keys.call(this);a=new X8b(a,oda,this)}else a=xc.prototype.entries.call(this);return a};
g.values=function(){if(this.valueCtor){var a=xc.prototype.keys.call(this);a=new X8b(a,qc.prototype.get,this)}else a=xc.prototype.values.call(this);return a};g.forEach=function(a,b){this.valueCtor?xc.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):xc.prototype.forEach.call(this,a,b)};g.set=function(a,b){e9b(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(xc.prototype.delete.call(this,a),this):xc.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
g.has=function(a){return xc.prototype.has.call(this,this.keyToApi(a,!1,!1))};g.get=function(a){a=this.keyToApi(a,!1,!1);var b=xc.prototype.get.call(this,a);if(b!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&xc.prototype.set.call(this,a,c),c):b}};var fda=function(a,b,c){return b instanceof qc?lda(a,b,c):nda(a,b,c)};qc.prototype[Symbol.iterator]=function(){return this.entries()};qc.prototype.toJSON=void 0;var pda;var wda=function(){},Rma=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},xda=function(a){var b=new wda;Rma(a,function(c,d,e){b[d]=e.slice()});b.reviveUnknownFields=a.reviveUnknownFields;return b},Bda=function(a,b){Rma(a,function(c,d){uda(b,d)})},sda;var uGa=S8b?structuredClone:function(a){return Cda(a)},vda;var Gda,Hda;var f9b=function(a,b,c,d){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,b,c,d)};g=f9b.prototype;
g.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(a=Mda(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=c!==void 0?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};g.free=function(){this.clear();g9b.length<100&&g9b.push(this)};
g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};g.getEnd=function(){return this.end_};g.setEnd=function(a){this.end_=a};g.reset=function(){this.cursor_=this.start_};g.getCursor=function(){return this.cursor_};g.advance=function(a){h9b(this,this.cursor_+a)};
var h9b=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("ia`"+b+"`"+a.end_);},Au=function(a){var b=a.bytes_,c=a.cursor_,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Error("ha");h9b(a,c);return e},i9b=function(a){var b=a.bytes_,c=a.cursor_,d=b[c],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0},j9b=function(a){for(var b=
0,c=a.cursor_,d=c+10,e=a.bytes_;c<d;){var f=e[c++];b|=f;if((f&128)===0)return h9b(a,c),!!(b&127)}throw Error("ha");},k9b=function(a,b){if(b<0)throw Error("ja`"+b);var c=a.cursor_,d=c+b;if(d>a.end_)throw Error("ia`"+(a.end_-c)+"`"+b);a.cursor_=d;return c};f9b.prototype.readString=function(a,b){var c=k9b(this,a),d=this.bytes_;return Y7b?kba(d,c,a,b):gba(d,c,a,b)};
f9b.prototype.readByteString=function(a){if(a==0)return pb();var b=k9b(this,a);if(this.aliasBytesFields&&this.bytesAreImmutable_)b=this.bytes_.subarray(b,b+a);else{var c=this.bytes_;a=b+a;b=b===a?new Uint8Array(0):b9b?c.slice(b,a):new Uint8Array(c.subarray(b,a))}return gca(b)};var g9b=[];var l9b=function(a,b,c,d){if(g9b.length){var e=g9b.pop();e.init(a,b,c,d);a=e}else a=new f9b(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};l9b.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var Sma=function(a,b,c,d){if(m9b.length){var e=m9b.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new l9b(a,b,c,d)};g=l9b.prototype;g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;m9b.length<100&&m9b.push(this)};g.getCursor=function(){return this.decoder_.getCursor()};g.getTag=function(){return this.nextTag_};
g.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};g.advance=function(a){this.decoder_.advance(a)};
var Mma=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=Au(a.decoder_)>>>0;var c=b>>>3,d=b&7;if(!(d>=0&&d<=5))throw Error("da`"+d+"`"+a.fieldCursor_);if(c<1)throw Error("ea`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},Oma=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Oma(a):j9b(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)Oma(a);else{var b=Au(a.decoder_)>>>0;a.decoder_.advance(b)}break;
case 5:a.decoder_.advance(4);break;case 3:b=a.nextField_;do{if(!Mma(a))throw Error("fa");if(a.nextWireType_==4){if(a.nextField_!=b)throw Error("ga");break}Oma(a)}while(1);break;default:throw Error("da`"+a.nextWireType_+"`"+a.fieldCursor_);}},n9b=function(a,b,c){var d=a.decoder_.getEnd(),e=Au(a.decoder_)>>>0,f=a.decoder_.getCursor()+e,h=f-d;h<=0&&(a.decoder_.setEnd(f),c(b,a,void 0,void 0,void 0),h=f-a.decoder_.getCursor());if(h)throw Error("ca`"+e+"`"+(e-h));a.decoder_.cursor_=f;a.decoder_.setEnd(d)};
l9b.prototype.readString=function(){return o9b(this)};var o9b=function(a){var b=Au(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};l9b.prototype.readByteString=function(){var a=Au(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var m9b=[];var p9b=zb(0),rl=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ic(a,a[jb]|0,b)},Ic=function(a,b,c,d){if(c===-1)return null;var e=c+(b&512?0:-1),f=a.length-1;if(e>=f&&b&256){b=a[f][c];var h=!0}else if(e<=f)b=a[e];else return;if(d&&b!=null){d=d(b);if(d==null)return d;if(d!==b)return h?a[f][c]=d:a[e]=d,d}return b},tq=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[jb]|0;vb(e);Bc(d,e,b,c);return a},nk=function(a,b,c){return Xda(a,b,
c)!==void 0},an=function(a,b,c,d){return Xda(a,b,Km(a,d,c))!==void 0},q9b=function(a,b,c){return Yda(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[jb]|0,b,c,3,!0).length},Bu=function(a,b,c,d,e){Qc(a,b,c,e,d,1);return a},Cu=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ic(a,a[jb]|0,b,Cca)},Xt=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ic(a,a[jb]|0,b,Tda)},Fk=function(a){return a===Gk?2:4},sq=function(a,b){a=Xt(a,b);
return a==null?pb():a},Nm=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[jb]|0;vb(f);if(d==null){var h=Vda(e);if(Wda(h,e,f,c)===b)h.set(c,0);else return a}else{h=Vda(e);var k=Wda(h,e,f,c);k!==b&&(k&&(f=Bc(e,f,k)),h.set(c,b))}Bc(e,f,b,d);return a},Km=function(a,b,c){return vm(a,b)===c?c:-1},vm=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Wda(Vda(a),a,a[jb]|0,b)},Du=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
var d=a[jb]|0;vb(d);var e=Ic(a,d,c);b=pc(kc(e,b,!0,d));e!==b&&Bc(a,d,c,b);return b},r9b=function(a,b,c){var d=a[jb]|0,e=Ic(a,d,c);if(e!=null&&sb(e))return b=pc(e),b!==e&&Bc(a,d,c,b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(e)){var f=e[jb]|0;if(f&2){var h=yc(vc(e,f,Ac,!0,!0),b,!0);mb(h,2)}else f&64?h=e:h=yc(h,b,!0)}else h=yc(void 0,b,!0);h!==e&&Bc(a,d,c,h);return h},nr=function(a,b,c){(a=Xda(a,b,c))||(a=b[Yca])||(a=new b,ob(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),
a=b[Yca]=a);return a},X=function(a,b,c){b=Xda(a,b,c);if(b==null)return b;a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var d=a[jb]|0;if(!(d&2)){var e=pc(b);e!==b&&(b=e,Bc(a,d,c,b))}return b},Wk=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[jb]|0;return Yda(a,e,b,c,d,!1,!(2&e))},W=function(a,b,c,d){d==null&&(d=void 0);return tq(a,c,d)},Vm=function(a,b,c,d){d==null&&(d=void 0);return Nm(a,b,c,d)},sn=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
e=d[jb]|0;vb(e);if(c==null)return Bc(d,e,b),a;for(var f=c[jb]|0,h=f,k=Ec(f),q=k||Object.isFrozen(c),u=!0,A=!0,G=0;G<c.length;G++){var H=c[G];k||(H=nb(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),u&&(u=!H),A&&(A=H))}k||(f=u?13:5,f=A?f|16:f&-17);q&&f===h||(c=Fb(c),h=0,f=Dc(f,e),f=Fc(f,e,!0));f!==h&&lb(c,f);Bc(d,e,b,c);return a},Eu=function(a,b,c,d,e){Qc(a,b,c,d,e);return a},Fu=function(a,b,c,d){Qc(a,b,c,void 0,d,1,!0);return a},lo=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[jb]|
0;vb(e);b=Yda(a,e,c,b,2,!0);e=c=0;if(Array.isArray(d))for(var f=d.length,h=0;h<f;h++){var k=d[h];b.push(k);(k=nb(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows))&&!c++&&mb(b,8);k||e++||mb(b,16)}else for(d=l(d),f=d.next();!f.done;f=d.next())f=f.value,b.push(f),(f=nb(f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows))&&!c++&&mb(b,8),f||e++||mb(b,16);return a},Gu=function(a,b){return ac(rl(a,b))},Uk=function(a,b,c){return Hc(a,b,ac,c,void 0,0)},El=function(a,b){return Hc(a,b,Zda,1,void 0,
2048)},s9b=function(a,b){return Hc(a,b,bc,Fk(),void 0,0)},Nt=function(a,b){return Eca(rl(a,b))},Hu=function(a,b){return Sb(rl(a,b))},am=function(a,b){return ic(rl(a,b))},Vt=function(a,b){return Qb(rl(a,b))},kl=function(a,b,c){c=c===void 0?!1:c;var d;return(d=Nt(a,b))!=null?d:c},Ik=function(a,b,c){c=c===void 0?0:c;var d;return(d=Hu(a,b))!=null?d:c},zl=function(a,b,c){c=c===void 0?0:c;var d;return(d=Gu(a,b))!=null?d:c},t9b=function(a){var b=b===void 0?0:b;var c;return(c=gc(rl(a,23)))!=null?c:b},Iu=
function(a,b){var c=c===void 0?"0":c;var d;return(d=bc(rl(a,b)))!=null?d:c},Dl=function(a,b,c){c=c===void 0?p9b:c;var d;return(d=cc(rl(a,b)))!=null?d:c},Pm=function(a,b,c){c=c===void 0?0:c;var d;return(d=Cu(a,b))!=null?d:c},Oh=function(a,b,c){c=c===void 0?"":c;var d;return(d=am(a,b))!=null?d:c},pl=function(a,b,c){c=c===void 0?0:c;var d;return(d=Vt(a,b))!=null?d:c},Gl=function(a,b){var c=c===void 0?"0":c;var d;return(d=bc(rl(a,b),!0))!=null?d:c},sl=function(a,b){var c=c===void 0?"0":c;var d;return(d=
bc(rl(a,b),!0))!=null?d:c},Ju=function(a,b,c){a=Hc(a,b,Sb,3,!0);wb(a,c);return a[c]},u9b=function(a,b){a=Hc(a,b,cc,3,!0,4096);wb(a);return a[void 0]},Ek=function(a,b,c,d){return Hc(a,b,ic,c,d)},Ku=function(a,b,c){a=Ek(a,b,3,!0);wb(a,c);return a[c]},v9b=function(a,b,c){a=Hc(a,b,Qb,3,!0);wb(a,c);return a[c]},xm=function(a,b,c){return Oh(a,Km(a,c,b))},ap=function(a,b,c){return am(a,Km(a,c,b))},Qm=function(a,b,c,d){return X(a,b,Km(a,d,c))},Lu=function(a,b){var c;return(c=Hu(a,b))!=null?c:void 0},z6b=
function(a,b){var c;return(c=Gu(a,b))!=null?c:void 0},Mu=function(a,b){var c;return(c=cc(rl(a,b)))!=null?c:void 0},fr=function(a,b){var c;return(c=am(a,b))!=null?c:void 0},j_a=function(a,b){var c;return(c=Xt(a,b))!=null?c:void 0},du=function(a,b){var c;return(c=Vt(a,b))!=null?c:void 0},i_a=function(a,b){var c;return(c=bc(rl(a,b),!0))!=null?c:void 0},w9b=function(a,b){var c;return(c=bc(rl(a,b),!0))!=null?c:void 0},Ol=function(a,b,c){return tq(a,b,Kb(c))},Xm=function(a,b,c){return Nc(a,b,Kb(c),!1)},
Pl=function(a,b,c){return tq(a,b,c==null?c:Rb(c))},$k=function(a,b,c){return Nc(a,b,c==null?c:Rb(c),0)},Hl=function(a,b,c){return tq(a,b,Xb(c))},Fm=function(a,b,c){return Nc(a,b,Xb(c),"0")},x9b=function(a,b,c){c=c==null?c:Uca(c);return tq(a,b,c)},Vl=function(a,b,c){return tq(a,b,Xb(c))},on=function(a,b,c){return Nc(a,b,Hb(c),0)},Rl=function(a,b,c){return tq(a,b,Xca(c))},Lk=function(a,b,c){return Nc(a,b,Xca(c),"")},Am=function(a,b,c,d){return Nm(a,b,c,Xca(d))},Im=function(a,b,c){return Nc(a,b,ub(c,
!1,!0),pb())},Sl=function(a,b,c){return tq(a,b,Gca(c))},Nk=function(a,b,c){return Nc(a,b,Gca(c),0)},jp=function(a,b,c){return Mc(a,b,c,Wb)},y9b=function(a,b,c){return Pc(a,b,Wb,void 0,c,ac,1,!1,!0)},Nu=function(a,b,c){Pc(a,b,Wb,c,void 0,ac,void 0,!0)},Mk=function(a,b,c){return Mc(a,b,c,hc)},io=function(a,b,c){return Pc(a,b,hc,c,void 0,ic,void 0,!0)},Ou=function(a,b,c,d){return Pc(a,b,hc,d,c,ic,1)},ip=function(a,b,c){return Mc(a,b,c,Ob)},jl=function(a,b){return Nt(a,b)!=null},ll=function(a,b){return Hu(a,
b)!=null},yl=function(a,b){return Gu(a,b)!=null},ml=function(a,b){return am(a,b)!=null},nl=function(a,b){return Vt(a,b)!=null};var V=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,b,c)};V.prototype.toJSON=function(){return Fda(this)};V.prototype.serialize=function(a){return JSON.stringify(Fda(this,a))};var cna=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("na");return new a(fca(b))};
V.prototype.getExtension=function(a){uda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Fk()):a.getExtensionFn(this,a.ctor,a.fieldIndex):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Fk()):a.getExtensionFn(this,a.fieldIndex,a.defaultValue)};
var z9b=function(a,b){uda(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);a=b.ctor?b.getExtensionFn(a,b.ctor,b.fieldIndex):b.getExtensionFn(a,b.fieldIndex,null);return a===null?void 0:a};V.prototype.hasExtension=function(a){uda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);return a.ctor?nk(this,a.ctor,a.fieldIndex):z9b(this,a)!==void 0};
V.prototype.clone=function(){var a=this,b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=new a.constructor(vc(b,b[jb]|0,Ac,!0,!0));mb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return a};V.prototype.isMutable=function(){return!nb(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows)};V.prototype.isImmutable=function(){return nb(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows)};
var Pt=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=rc(sc);e&&e in d&&(d=d[e])&&delete d[b.fieldIndex];b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c):b.setExtensionFn(a,b.fieldIndex,c)};V.prototype[hca]=ica;V.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Pu=function(a,b){this.key_=a;this.value_=b},A9b=function(a){throw Error("oa`"+a.key_);},B9b=function(a,b){return new TypeError("pa`"+b+"`"+a.key_+"`"+a.value_+"`"+typeof a.value_)};Pu.prototype.string=function(a){if(arguments.length==0)var b=C9b(this);else{var c;b=(c=D9b(this))!=null?c:a}return b};var C9b=function(a){var b=D9b(a);b===null&&A9b(a);return b},D9b=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw B9b(a,"string");};
Pu.prototype.bool=function(a){if(arguments.length==0){var b=E9b(this);b===null&&A9b(this)}else b=F9b(this,a);return b};var F9b=function(a,b){var c;return(c=E9b(a))!=null?c:b},E9b=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="boolean")return b;if(typeof b==="string"){b=b.toLowerCase();if(b==="true"||b==="1")return!0;if(b==="false"||b==="0")return!1}throw B9b(a,"boolean");};
Pu.prototype.number=function(a){if(arguments.length==0){var b=G9b(this);b===null&&A9b(this)}else{var c;b=(c=G9b(this))!=null?c:a}return b};var G9b=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var c=Number(b);if(!isNaN(c)&&(c!==0||b.trim().length!==0))return c}throw B9b(a,"number");};Pu.prototype.toString=function(){return C9b(this)};
Pu.prototype.array=function(a){if(arguments.length==0){var b=H9b(this);b===null&&A9b(this);return b}b=H9b(this);return b==null?a:b};var H9b=function(a){var b=a.value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(c){return c.trim()})));return I9b(a,b)},I9b=function(a,b){var c=a.key_+"[";return Array.from(b,function(d,e){return new Pu(c+e+"]",d)})};
Pu.prototype.object=function(a){var b=this.value_;if(b==null)return a===void 0&&A9b(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.key_+".",d;for(d in b)a[d]=new Pu(c+d,b[d]);return a}throw B9b(this,"object");};var J9b;if(!(J9b=typeof window==="undefined")){var K9b,L9b=K9b=K9b===void 0?window:K9b;L9b=L9b===void 0?window:L9b;var M9b,N9b=L9b;N9b=N9b===void 0?window:N9b;M9b=N9b.WIZ_global_data;J9b=F9b(new Pu("mXaIFf",M9b&&"mXaIFf"in M9b?M9b.mXaIFf:null),!0)}if(J9b){var Qu=globalThis,O9b=Qu[ca("forceDuplicateZoneCheck")]===!0;if(Qu.Zone&&(O9b||typeof Qu.Zone.__symbol__!=="function"))throw Error("ta");Qu.Zone!=null||(Qu.Zone=gaa());var sa=Qu.Zone;bea();cea();dea();Kaa();Yaa();cba();dba()};var eea=Rc({"\u0275prov":Rc}),iea=Rc({"\u0275inj":Rc}),fea=Rc({ngInjectableDef:Rc}),jea=Rc({ngInjectorDef:Rc});var Wc=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b:""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(Wc,Error);var vd=Rc({"\u0275cmp":Rc}),Kea=Rc({"\u0275dir":Rc}),Mea=Rc({"\u0275pipe":Rc}),P9b=Rc({"\u0275mod":Rc}),Oea=Rc({"\u0275fac":Rc}),$d=Rc({__NG_ELEMENT_ID__:Rc}),Q9b=Rc({__NG_ENV_ID__:Rc});var Xc=null,oea=!1,$c=1,ed=Symbol("va"),Ru={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:function(){return!1},producerRecomputeValue:function(){},consumerMarkedDirty:function(){},consumerOnSignalRead:function(){}};var Su=Symbol("xa"),Tu=Symbol("ya"),dd=Symbol("za"),yea=Object.assign({},Ru,{value:Su,dirty:!0,error:null,equal:nea,kind:"computed",producerMustRecompute:function(a){return a.value===Su||a.value===Tu},producerRecomputeValue:function(a){if(a.value===Tu)throw Error("Aa");var b=a.value;a.value=Tu;var c=bd(a),d=!1;try{var e=a.computation();Yc(null);d=b!==Su&&b!==dd&&e!==dd&&a.equal(b,e)}catch(f){e=dd,a.error=f}finally{cd(a,c)}d?a.value=b:(a.value=e,a.version++)}});var Cea=function(){throw Error();};var Aea=Object.assign({},Ru,{equal:nea,value:void 0,kind:"signal"});var Dea=Object.assign({},Ru,{value:Su,dirty:!0,error:null,equal:nea,producerMustRecompute:function(a){return a.value===Su||a.value===Tu},producerRecomputeValue:function(a){if(a.value===Tu)throw Error("Aa");var b=a.value;a.value=Tu;var c=bd(a);try{var d=a.source();var e=a.computation(d,b===Su||b===dd?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=dd,a.error=f}finally{cd(a,c)}b!==Su&&e!==dd&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},Ru,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},hasRun:!1,cleanupFn:function(){}});var hd;var jd=void 0;var Hea=Rc({__forward_ref__:Rc});var yd=function(a,b){this._desc=a;this.\u0275prov=void 0;typeof b=="number"?this.__NG_ELEMENT_ID__=b:b!==void 0&&(this.\u0275prov=Sc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};yd.prototype.toString=function(){return"InjectionToken "+this._desc};ea.Object.defineProperties(yd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});var qf=globalThis;var R9b={},kfa=function(a){this.injector=a};kfa.prototype.retrieve=function(a,b){b=od(b)||0;return this.injector.get(a,b&8?null:void 0,b)};var S9b=/\n/gm;var Yea=new yd("");var T9b=new yd("",-1);var Xea=new yd("");var bfa=function(){};bfa.prototype.get=function(a,b){b=b===void 0?R9b:b;if(b===R9b)throw a=Error("Ba`"+Vc(a)),a.name="NullInjectorError",a;return b};var Gd={},wd=[];var Zea=Rc({provide:String,useValue:Rc});var lma=new yd("");var gfa={},U9b={},afa=void 0,Ef=function(){},Ad=function(a,b,c,d){var e=this;this.parent=b;this.source=c;this.scopes=d;this.records=new Map;this._ngOnDestroyHooks=new Set;this._onDestroyHooks=[];this._destroyed=!1;jfa(a,function(f){return V9b(e,f)});this.records.set(T9b,zd(void 0,this));d.has("environment")&&this.records.set(Ef,zd(void 0,this));a=this.records.get(lma);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(Xea,wd,{self:!0}))};Y(Ad,Ef);
g=Ad.prototype;g.retrieve=function(a,b){b=od(b)||0;return this.get(a,b&8?null:void 0,b)};g.destroy=function(){ifa(this);this._destroyed=!0;var a=Yc(null);try{for(var b=l(this._ngOnDestroyHooks),c=b.next();!c.done;c=b.next())c.value.ngOnDestroy();var d=this._onDestroyHooks;this._onDestroyHooks=[];for(var e=l(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Yc(a)}};
g.onDestroy=function(a){var b=this;ifa(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);c!==-1&&b._onDestroyHooks.splice(c,1)}};
g.get=function(a,b,c){b=b===void 0?R9b:b;ifa(this);if(a.hasOwnProperty(Q9b))return a[Q9b](this);var d=od(c);c=kd(this);var e=id();try{if(!(d&4)){var f=this.records.get(a);if(f===void 0){var h=(typeof a==="function"||typeof a==="object"&&a instanceof yd)&&gea(a),k;if(k=h)if(h.providedIn){var q=md(h.providedIn);k=typeof q==="string"?q==="any"||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=zd(efa(a),gfa):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var u=Yc(null);try{if(b.value===
U9b){var A=Vc(a);throw new Wc(-200,A);}b.value===gfa&&(b.value=U9b,b.value=b.factory());var G;if(G=typeof b.value==="object"&&b.value){var H=b.value;G=H!==null&&typeof H==="object"&&typeof H.ngOnDestroy==="function"}G&&this._ngOnDestroyHooks.add(b.value);var N=b.value;break a}finally{Yc(u)}N=void 0}return N}}var O=d&2?cfa():this.parent;b=d&8&&b===R9b?null:b;return O.get(a,b)}catch(gb){if(gb.name==="NullInjectorError"){(gb.ngTempTokenPath=gb.ngTempTokenPath||[]).unshift(Vc(a));if(c)throw gb;N=gb;var U=
this.source,da=N.ngTempTokenPath;a.__source&&da.unshift(a.__source);var ma="\n"+N.message;a=U;a=a===void 0?null:a;ma=ma&&ma.charAt(0)==="\n"&&ma.charAt(1)=="\u0275"?ma.slice(2):ma;var ra=Vc(da);if(Array.isArray(da))ra=da.map(Vc).join(" -> ");else if(typeof da==="object"){U=[];for(var Ga in da)if(da.hasOwnProperty(Ga)){var Na=da[Ga];U.push(Ga+":"+(typeof Na==="string"?JSON.stringify(Na):Vc(Na)))}ra="{"+U.join(", ")+"}"}var Qa="R3InjectorError"+(a?"("+a+")":"")+"["+ra+"]: "+ma.replace(S9b,"\n  ");N.message=
Qa;N.ngTokenPath=da;N.ngTempTokenPath=null;throw N;}throw gb;}finally{id(e),kd(c)}};g.resolveInjectorInitializers=function(){var a=Yc(null),b=kd(this),c=id();try{for(var d=this.get(Yea,wd,{self:!0}),e=l(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{kd(b),id(c),Yc(a)}};g.toString=function(){for(var a=[],b=l(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Vc(c.value));return"R3Injector["+a.join(", ")+"]"};
var V9b=function(a,b){b=md(b);var c=xd(b)?b:md(b&&b.provide),d=hfa(b);if(!xd(b)&&b.multi===!0){var e=a.records.get(c);e||(e=zd(void 0,gfa,!0),e.factory=function(){return Jea(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};ea.Object.defineProperties(Ad.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});var ofa=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var Uu=function(){var a=function(){return nfa};a.ngInherit=!0;return a}();var Nd=Bfa(null),Eia=null,vfa=!1,mg=!0;var de=function(a,b){var c=zf;this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var W9b={};var jja=function(a,b){this.injector=a;this.parentInjector=b};jja.prototype.get=function(a,b,c){var d=this.injector.get(a,W9b,c);return d!==W9b||b===W9b?d:this.parentInjector.get(a,b,c)};var Kfa=!0,Mfa=0,be={},ee=function(a,b){this._tNode=a;this._lView=b};ee.prototype.get=function(a,b,c){return Vfa(this._tNode,this._lView,a,od(c),b)};var Vu=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return ae(b.attributeName)}};Vu.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};(new yd("")).__NG_ELEMENT_ID__=function(a){var b=Pd();if(b===null)throw new Wc(204,!1);if(b.type&2)return b.value;if(a&8)return null;throw new Wc(204,!1);};var X9b=pd(ge(function(a){return{token:a}}),-1),Wu=pd(ge(),8);pd(ge(),2);var Xu=pd(ge(),4);pd(ge(),1);Rc({provide:String,useValue:Rc});var Ze=function(){},zh=function(a){if(Array.isArray(a))return aga({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return aga({name:c},a.parent,a.providers,c)},Y9b=new bfa;Ze.\u0275prov=Sc({token:Ze,providedIn:"any",factory:function(){return nd(T9b)}});Ze.__NG_ELEMENT_ID__=-1;var Z9b=function(){};var Yu=function(){},lta=function(){};var Gf=function(){},$9b=new yd("",{providedIn:"root",factory:function(){return!1}});new yd("",{providedIn:"root",factory:function(){return!1}});var Yla=new yd(""),Zla=new yd("");var cf=new yd("");var df=function(){};df.__NG_ELEMENT_ID__=fga;df.__NG_ENV_ID__=function(a){return a};var he=function(a){this._lView=a};Y(he,df);he.__NG_ENV_ID__=df.__NG_ENV_ID__;he.__NG_ELEMENT_ID__=df.__NG_ELEMENT_ID__;he.prototype.onDestroy=function(a){var b=this;sfa(this._lView,a);return function(){var c=b._lView;if(c[21]!==null){var d=c[21].indexOf(a);d!==-1&&c[21].splice(d,1)}}};var xf=function(){this._console=console};xf.prototype.handleError=function(a){this._console.error("ERROR",a)};var sh=new yd("",{providedIn:"root",factory:function(){var a=n(xf);return function(b){return a.handleError(b)}}});var a$b=ie(function(a){return function(b){a(this);this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"";this.name="UnsubscriptionError";this.errors=b}});var ke=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};g=ke.prototype;
g.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=l(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(je(b))try{b()}catch(f){var d=f instanceof a$b?f.errors:[f]}var e=this._teardowns;if(e)for(this._teardowns=null,b=l(e),c=b.next();!c.done;c=b.next()){c=c.value;try{je(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof a$b?d=[].concat(p(d),p(f.errors)):d.push(f)}}if(d)throw new a$b(d);
}};g.add=function(a){if(a&&a!==this)if(this.closed)je(a)?a():a.unsubscribe();else{if(a instanceof ke){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};g._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};g._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
g._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&gga(b,a)};g.remove=function(a){var b=this._teardowns;b&&gga(b,a);a instanceof ke&&a._removeParent(this)};var b$b=new ke;b$b.closed=!0;ke.EMPTY=b$b;var iga=function(){setTimeout.apply(null,p(ud.apply(0,arguments)))};var Zu=function(a){ke.call(this);this.isStopped=!1;this.destination=a instanceof Zu?a:new c$b(!a||je(a)?{next:a!=null?a:void 0}:a);hga(a)&&a.add(this)};Y(Zu,ke);Zu.EMPTY=ke.EMPTY;Zu.create=function(a,b,c){return new Ee(a,b,c)};g=Zu.prototype;g.next=function(a){this.isStopped||this._next(a)};g.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};g.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};g.unsubscribe=function(){this.closed||(this.isStopped=!0,ke.prototype.unsubscribe.call(this))};
g._next=function(a){this.destination.next(a)};g._error=function(a){this.destination.error(a);this.unsubscribe()};g._complete=function(){this.destination.complete();this.unsubscribe()};var c$b=function(a){this.partialObserver=a};c$b.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){me(c)}};c$b.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){me(c)}else me(a)};c$b.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){me(b)}};
var Ee=function(a,b,c){Zu.call(this);var d;je(a)||!a?d={next:a!=null?a:void 0,error:b!=null?b:void 0,complete:c!=null?c:void 0}:d=a;this.destination=new c$b(d)};Y(Ee,Zu);Ee.EMPTY=Zu.EMPTY;Ee.create=Zu.create;var qe=typeof Symbol==="function"&&Symbol.observable||"@@observable";var pe=function(a){a&&(this._subscribe=a)};g=pe.prototype;g.lift=function(a){var b=new pe;b.source=this;b.operator=a;return b};g.subscribe=function(a,b,c){a=a&&a instanceof Zu||a&&je(a.next)&&je(a.error)&&je(a.complete)&&hga(a)?a:new Ee(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
g.forEach=function(a,b){var c=this;b=kga(b);return new b(function(d,e){var f=c.subscribe(function(h){try{a(h)}catch(k){e(k),f==null||f.unsubscribe()}},e,d)})};g._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};pe.prototype[qe]=function(){return this};pe.prototype.pipe=function(){var a=ud.apply(0,arguments);return a.length?jga(a)(this):this};pe.create=function(a){return new pe(a)};var d$b=ie(function(a){return function(){a(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}});var bg=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};Y(bg,pe);g=bg.prototype;g.lift=function(a){var b=new $u(this,this);b.operator=a;return b};g._throwIfClosed=function(){if(this.closed)throw new d$b;};g.next=function(a){this._throwIfClosed();if(!this.isStopped)for(var b=l(this.observers.slice()),c=b.next();!c.done;c=b.next())c.value.next(a)};
g.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};g.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};g.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};g._trySubscribe=function(a){this._throwIfClosed();return pe.prototype._trySubscribe.call(this,a)};
g._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};g._innerSubscribe=function(a){var b=this,c=this.isStopped,d=this.observers;return this.hasError||c?ke.EMPTY:(d.push(a),new ke(function(){return gga(b.observers,a)}))};g._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};var av=function(a){var b=new pe;b.source=a;return b};
ea.Object.defineProperties(bg.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.observers)==null?void 0:a.length)>0}}});bg.create=function(a,b){return new $u(a,b)};var $u=function(a,b){bg.call(this);this.destination=a;this.source=b};Y($u,bg);$u.create=bg.create;$u.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};$u.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
$u.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};$u.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:ke.EMPTY};var tj=function(a){bg.call(this);this._value=a};Y(tj,bg);tj.create=bg.create;tj.prototype._subscribe=function(a){var b=bg.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};tj.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};tj.prototype.next=function(a){bg.prototype.next.call(this,this._value=a)};ea.Object.defineProperties(tj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Te=new pe(function(a){return a.complete()});var oga=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var tga=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var e$b={now:function(){return(e$b.delegate||Date).now()},delegate:void 0};var ag=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?e$b:c;bg.call(this);this.bufferSize=a;this.windowTime=b;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,a);this.windowTime=Math.max(1,b)};Y(ag,bg);ag.create=bg.create;
ag.prototype.next=function(a){var b=this.buffer,c=this.infiniteTimeWindow,d=this.timestampProvider,e=this.windowTime;this.isStopped||(b.push(a),!c&&b.push(d.now()+e));f$b(this);bg.prototype.next.call(this,a)};ag.prototype._subscribe=function(a){this._throwIfClosed();f$b(this);for(var b=this._innerSubscribe(a),c=this.infiniteTimeWindow,d=this.buffer.slice(),e=0;e<d.length&&!a.closed;e+=c?1:2)a.next(d[e]);this._checkFinalizedStatuses(a);return b};
var f$b=function(a){var b=a.bufferSize,c=a.timestampProvider,d=a.buffer;a=a.infiniteTimeWindow;var e=(a?1:2)*b;b<Infinity&&e<d.length&&d.splice(0,d.length-e);if(!a){b=c.now();c=0;for(a=1;a<d.length&&d[a]<=b;a+=2)c=a;c&&d.splice(0,c+1)}};var h$b=function(a,b){b=b===void 0?g$b:b;this.schedulerActionCtor=a;this.now=b};h$b.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var g$b=e$b.now;var Fe=ie(function(a){return function(){a(this);this.name="EmptyError";this.message="no elements in sequence"}});var Ie=function(a,b,c,d,e){Zu.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(f){try{b(f)}catch(h){this.destination.error(h)}});c&&(this._error=function(f){try{c(f)}catch(h){this.destination.error(h)}this.unsubscribe()});d&&(this._complete=function(){try{d()}catch(f){this.destination.error(f)}this.unsubscribe()})};Y(Ie,Zu);Ie.EMPTY=Zu.EMPTY;Ie.create=Zu.create;Ie.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);Zu.prototype.unsubscribe.call(this)};var $f=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};Y($f,pe);$f.create=pe.create;$f.prototype._subscribe=function(a){return i$b(this).subscribe(a)};var i$b=function(a){var b=a._subject;if(!b||b.isStopped)a._subject=a.subjectFactory();return a._subject};$f.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
$f.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new ke;var c=i$b(this);b.add(this.source.subscribe(new Ie(c,void 0,function(d){a._teardown();c.error(d)},function(){a._teardown();c.complete()},function(){return a._teardown()})));b.closed&&(this._connection=null,b=ke.EMPTY)}return b};$f.prototype.refCount=function(){return Ega()(this)};var Fga=Array.isArray;var Hga=Array.isArray,j$b=Object,Iga=j$b.getPrototypeOf,Jga=j$b.prototype,Kga=j$b.keys;var Ke=function(a,b,c){Zu.call(this,a);this._next=b;this.shouldComplete=c};Y(Ke,Zu);Ke.EMPTY=Zu.EMPTY;Ke.create=Zu.create;Ke.prototype._complete=function(){this.shouldComplete()?Zu.prototype._complete.call(this):this.unsubscribe()};var k$b=function(){return requestAnimationFrame.apply(null,p(ud.apply(0,arguments)))},l$b=function(){cancelAnimationFrame.apply(null,p(ud.apply(0,arguments)))};var Rga=["addListener","removeListener"],Qga=["addEventListener","removeEventListener"],Tga=["on","off"];var bv=function(){ke.call(this)};Y(bv,ke);bv.EMPTY=ke.EMPTY;bv.prototype.schedule=function(){return this};var m$b=function(a,b){return setInterval.apply(null,[a,b].concat(p(ud.apply(2,arguments))))};var cv=function(a,b){ke.call(this);this.scheduler=a;this.work=b;this.pending=!1};Y(cv,bv);cv.EMPTY=bv.EMPTY;g=cv.prototype;g.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};g.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return m$b(a.flush.bind(a,this),c)};
g.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&this.delay===c&&this.pending===!1)return b;clearInterval(b)};g.execute=function(a,b){if(this.closed)return Error("Ha");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};g._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
g.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler,c=b.actions;this.work=this.state=this.scheduler=null;this.pending=!1;gga(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;bv.prototype.unsubscribe.call(this)}};var dv=function(a,b){b=b===void 0?g$b:b;h$b.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Y(dv,h$b);dv.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};var Re=new dv(cv);var ev=new pe(le);var Wga=Array.isArray;var aha=ie(function(a){return function(b){b=b===void 0?null:b;a(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=b}});var n$b=function(a,b){cv.call(this,a,b);this.scheduler=a;this.work=b};Y(n$b,cv);n$b.EMPTY=cv.EMPTY;n$b.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return cv.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=k$b(function(){return a.flush(void 0)}))};
n$b.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return cv.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(l$b(b),a.scheduled=void 0)};var o$b=function(){dv.apply(this,arguments)};Y(o$b,dv);o$b.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};var p$b=new o$b(n$b);var q$b=1,r$b,bha={},s$b=function(a){var b=q$b++;bha[b]=!0;r$b||(r$b=Promise.resolve());r$b.then(function(){return cha(b)&&a()});return b};var t$b=function(){return s$b.apply(null,p(ud.apply(0,arguments)))};var u$b=function(a,b){cv.call(this,a,b);this.scheduler=a;this.work=b};Y(u$b,cv);u$b.EMPTY=cv.EMPTY;u$b.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return cv.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=t$b(a.flush.bind(a,void 0)))};
u$b.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return cv.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(cha(b),a.scheduled=void 0)};var v$b=function(){dv.apply(this,arguments)};Y(v$b,dv);v$b.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,d=-1;a=a||b.shift();var e=b.length;do if(c=a.execute(a.state,a.delay))break;while(++d<e&&(a=b.shift()));this.active=!1;if(c){for(;++d<e&&(a=b.shift());)a.unsubscribe();throw c;}};var qp=new v$b(u$b);ie(function(a){return function(){a(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}});ie(function(a){return function(b){a(this);this.name="NotFoundError";this.message=b}});ie(function(a){return function(b){a(this);this.name="SequenceError";this.message=b}});var fv=function(){this.taskId=0;this.pendingTasks=new Set;this.hasPendingTasks=new tj(!1)};fv.prototype.add=function(){this._hasPendingTasks||this.hasPendingTasks.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};fv.prototype.has=function(a){return this.pendingTasks.has(a)};fv.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)};
fv.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this._hasPendingTasks&&this.hasPendingTasks.next(!1)};ea.Object.defineProperties(fv.prototype,{_hasPendingTasks:{configurable:!0,enumerable:!0,get:function(){return this.hasPendingTasks.value}}});fv.\u0275prov=Sc({token:fv,providedIn:"root",factory:function(){return new fv}});var gv=function(){this.internalPendingTasks=n(fv);this.scheduler=n(Gf);this.errorHandler=n(sh)};
gv.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};gv.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};gv.\u0275prov=Sc({token:gv,providedIn:"root",factory:function(){return new gv}});var hv=function(a){a=a===void 0?!1:a;bg.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(hd!==void 0||jd!=null){var b;this.destroyRef=(b=n(df,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=n(fv,{optional:!0}))!=null?c:void 0}};Y(hv,bg);hv.create=bg.create;hv.prototype.emit=function(a){var b=Yc(null);try{bg.prototype.next.call(this,a)}finally{Yc(b)}};
hv.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&typeof a==="object"){var e;d=(e=a.next)==null?void 0:e.bind(a);var f;b=(f=a.error)==null?void 0:f.bind(a);var h;c=(h=a.complete)==null?void 0:h.bind(a)}this.__isAsync&&(b=w$b(this,b),d&&(d=w$b(this,d)),c&&(c=w$b(this,c)));d=bg.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof ke&&a.add(d);return d};
var w$b=function(a,b){return function(c){var d,e=(d=a.pendingTasks)==null?void 0:d.add();setTimeout(function(){b(c);if(e!==void 0){var f;(f=a.pendingTasks)==null||f.remove(e)}})}};var jha=0,ph=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new hv(!1);this.onMicrotaskEmpty=new hv(!1);this.onStable=new hv(!1);this.onError=new hv(!1);var b=a.enableLongStackTrace===void 0?!1:a.enableLongStackTrace,c=a.shouldCoalesceEventChangeDetection===void 0?!1:a.shouldCoalesceEventChangeDetection,d=a.shouldCoalesceRunChangeDetection===void 0?!1:a.shouldCoalesceRunChangeDetection;a=a.scheduleInRootZone===void 0?!1:a.scheduleInRootZone;if(typeof Zone==
"undefined")throw new Wc(908,!1);Zone.assertZonePatched();this._nesting=0;this._outer=this._inner=Zone.current;Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec));b&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec));this.shouldCoalesceEventChangeDetection=!d&&c;this.shouldCoalesceRunChangeDetection=d;this.callbackScheduled=!1;this.scheduleInRootZone=a;mha(this)},x$b=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},y$b=function(){if(x$b())throw new Wc(909,!1);};ph.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};ph.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,z$b,Xe,Xe);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};ph.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};ph.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var z$b={},iv=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new hv;this.onMicrotaskEmpty=new hv;this.onStable=new hv;this.onError=new hv};iv.prototype.run=function(a,b,c){return a.apply(b,c)};iv.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};iv.prototype.runOutsideAngular=function(a){return a()};iv.prototype.runTask=function(a,b,c){return a.apply(b,c)};var af=function(){this.impl=null};af.prototype.execute=function(){var a;(a=this.impl)==null||a.execute()};af.\u0275prov=Sc({token:af,providedIn:"root",factory:function(){return new af}});var A$b=[0,1,2,3],bf=function(){this.ngZone=n(ph);this.scheduler=n(Gf);this.errorHandler=n(xf,{optional:!0});this.sequences=new Set;this.deferredRegistrations=new Set;this.executing=!1;n(cf,{optional:!0})};
bf.prototype.execute=function(){this.executing=!0;for(var a=l(A$b),b=a.next(),c={};!b.done;c={phase:void 0},b=a.next()){c.phase=b.value;b=l(this.sequences);for(var d=b.next(),e={};!d.done;e={sequence:void 0},d=b.next())if(e.sequence=d.value,!e.sequence.erroredOrDestroyed&&e.sequence.hooks[c.phase])try{e.sequence.pipelinedValue=this.ngZone.runOutsideAngular(function(f,h){return function(){return B$b(function(){return(0,f.sequence.hooks[h.phase])(f.sequence.pipelinedValue)},f.sequence.snapshot)}}(e,
c))}catch(f){e.sequence.erroredOrDestroyed=!0,d=void 0,(d=this.errorHandler)==null||d.handleError(f)}}this.executing=!1;a=l(this.sequences);for(c=a.next();!c.done;c=a.next())c=c.value,C$b(c),c.once&&(this.sequences.delete(c),c.destroy());a=l(this.deferredRegistrations);for(c=a.next();!c.done;c=a.next())this.sequences.add(c.value);this.deferredRegistrations.size>0&&this.scheduler.notify(7);this.deferredRegistrations.clear()};
bf.prototype.register=function(a){var b=a.view;if(b!==void 0){var c;((c=b[25])!=null?c:b[25]=[]).push(a);Ld(b);b[2]|=8192}else this.executing?this.deferredRegistrations.add(a):(this.sequences.add(a),this.scheduler.notify(7))};bf.prototype.unregister=function(a){this.executing&&this.sequences.has(a)?(a.erroredOrDestroyed=!0,a.pipelinedValue=void 0,a.once=!0):(this.sequences.delete(a),this.deferredRegistrations.delete(a))};var B$b=function(a,b){return b?b.run(1,a):a()};
bf.\u0275prov=Sc({token:bf,providedIn:"root",factory:function(){return new bf}});var sha=function(a,b,c,d,e,f){var h=this;this.impl=a;this.hooks=b;this.view=c;this.once=d;this.snapshot=f===void 0?null:f;this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;this.unregisterOnDestroy=e==null?void 0:e.onDestroy(function(){return h.destroy()})},C$b=function(a){a.erroredOrDestroyed=!1;a.pipelinedValue=void 0;var b;(b=a.snapshot)==null||b.dispose();a.snapshot=null};
sha.prototype.destroy=function(){var a=this;this.impl.unregister(this);var b;(b=this.unregisterOnDestroy)==null||b.call(this);var c;(b=(c=this.view)==null?void 0:c[25])&&(this.view[25]=b.filter(function(d){return d!==a}))};var nha=function(a,b){this.view=a;this.node=b};nha.__NG_ELEMENT_ID__=oha;var pha=new Set;/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");new yd("",{providedIn:"root",factory:function(){return{}}});new yd("");var pia=new yd("",{providedIn:"root",factory:function(){return!1}});new yd("");new yd("");new yd("");new yd("",{providedIn:"root",factory:function(){return new Map}});new yd("");var tha=void 0;var vha=new Map,Jha=0;var D$b=new yd("",{providedIn:"root",factory:function(){return"ng"}}),mma=new yd(""),E$b=new yd("",{providedIn:"platform",factory:function(){return"unknown"}});new yd("");
var Gi=new yd(""),F$b=new yd("",{providedIn:"root",factory:function(){var a,b;return((a=uha().body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),G$b={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};new yd("",{providedIn:"root",factory:function(){return G$b}});var H$b=function(){},I$b=function(){};var ff=function(a){this.nativeElement=a};ff.__NG_ELEMENT_ID__=function(){return gf(Pd(),r())};var Ff=function(){},jv=function(){this.destroyNode=null};jv.__NG_ELEMENT_ID__=function(){var a=r(),b=Jd(Pd().index,a);return(Dd(b)?b:a)[11]};var zha=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,Aha=/(<|>)/g;var mf={};var nf=function(a){this.changingThisBreaksApplicationSecurity=a};nf.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)"};var J$b=function(){nf.apply(this,arguments)};Y(J$b,nf);J$b.prototype.getTypeName=function(){return"HTML"};var K$b=function(){nf.apply(this,arguments)};Y(K$b,nf);K$b.prototype.getTypeName=function(){return"URL"};
var L$b=function(){nf.apply(this,arguments)};Y(L$b,nf);L$b.prototype.getTypeName=function(){return"ResourceURL"};var Oha;var Zha=function(a){this.inertDocumentHelper=a};Zha.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Qha(a),"text/html").body;if(b===null)return this.inertDocumentHelper.getInertBodyElement(a);var c;(c=b.firstChild)==null||c.remove();return b}catch(d){return null}};var Yha=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
Yha.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=Qha(a);return b};var Rha=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var M$b=rf("area,br,col,hr,img,wbr"),N$b=rf("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),O$b=rf("rp,rt"),P$b=sf(O$b,N$b),Q$b=sf(N$b,rf("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),R$b=sf(O$b,rf("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),
aia=sf(M$b,Q$b,R$b,P$b),cia=rf("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),S$b=rf("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
T$b=rf("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),
bia=sf(cia,S$b,T$b),dia=rf("script,style,template"),$ha=function(){this.buf=[]};$ha.prototype.endElement=function(a){a=Tha(a).toLowerCase();aia.hasOwnProperty(a)&&!M$b.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var Uha=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vha=/([^#-~ |!])/g,Xha;var U$b={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5,0:"NONE",1:"HTML",2:"STYLE",3:"SCRIPT",4:"URL",5:"RESOURCE_URL"};var fia;var oja=Symbol("Ma");var $ia=[],aja=Object.assign({},Ru,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){Ld(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),bja=Object.assign({},Ru,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=Md(a.lView);a&&a[1].type===2;)a=Md(a);a&&pfa(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var oh=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=oh.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(Fd(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(Df(a,c),Qea(b,c))}this._attachedToViewContainer=!1}Pia(this._lView[1],this._lView)};g.onDestroy=function(a){sfa(this._lView,a)};
g.markForCheck=function(){uia(this._cdRefInjectingView||this._lView,4)};g.detach=function(){this._lView[2]&=-129};g.detectChanges=function(){this._lView[2]|=1024;Yia(this._lView)};
ea.Object.defineProperties(oh.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return Uia(b,a,b.firstChild,[])}},context:{configurable:!0,enumerable:!0,get:function(){return this._lView[8]},set:function(a){this._lView[8]=a}},destroyed:{configurable:!0,enumerable:!0,get:function(){return(this._lView[2]&256)===256}}});var lja=function(){};lja.\u0275prov=Sc({token:lja,providedIn:"root",factory:function(){return null}});var V$b=function(a){this.ngModule=a};Y(V$b,Z9b);var W$b=function(a,b){return new Fh(b[vd]||null,a.ngModule)},Fh=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(ega).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Y(Fh,I$b);
Fh.prototype.create=function(a,b,c,d,e,f){var h=Yc(null);try{var k=this.componentDef,q=qja(c,k,f,e),u=kja(k,d||this.ngModule,a),A=mja(u),G=A.rendererFactory.createRenderer(null,k),H=c?qia(G,c,k.encapsulation,u):nja(k,G),N=(f==null?void 0:f.some(rja))||(e==null?void 0:e.some(function(Qa){return typeof Qa!=="function"&&Qa.bindings.some(rja)})),O=Kha(null,q,null,512|Lha(k),null,null,A,G,u,null,null),U=[this.componentDef];if(e)for(var da=l(e),ma=da.next();!ma.done;ma=da.next()){var ra=ma.value,Ga=Lea(typeof ra===
"function"?ra:ra.type,!0);U.push(Ga)}O[26]=H;Afa(O);a=null;try{var Na=Lia(26,q,O,"#host",function(){return U},0);H&&(Cha(G,H,Na),ef(H,O));nia(q,O,Na);Aia(q,Na,O);Efa(q,Na);(Na.flags&4)!==0&&q.queries.elementEnd(Na);b!==void 0&&sja(Na,this.ngContentSelectors,b);a=Jd(Na.index,O);O[8]=a[8];Cia(q,O,null)}catch(Qa){throw a!==null&&vha.delete(a[19]),vha.delete(O[19]),Qa;}finally{Dfa()}return new kv(this.componentType,O,!!N)}finally{Yc(h)}};
ea.Object.defineProperties(Fh.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=hja(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=ija(this.componentDef.outputs));return this.cachedOutputs}}});
var kv=function(a,b,c){this._rootLView=b;this._hasInputBindings=c;this.previousInputValues=null;this._tNode=b[1].data[26];this.location=gf(this._tNode,b);this.instance=Jd(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new oh(b,void 0);this.componentType=a};Y(kv,H$b);
kv.prototype.setInput=function(a,b){var c=this._tNode;this.previousInputValues!=null||(this.previousInputValues=new Map);if(!this.previousInputValues.has(a)||!Object.is(this.previousInputValues.get(a),b)){var d=this._rootLView;vf(c,d[1],d,a,b);this.previousInputValues.set(a,b);a=Jd(c.index,d);uia(a,1)}};kv.prototype.destroy=function(){this.hostView.destroy()};kv.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
ea.Object.defineProperties(kv.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new ee(this._tNode,this._rootLView)}}});var Hf=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new V$b(this);var e=(a[P9b]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=$fa(a,b,[{provide:Yu,useValue:this},{provide:Z9b,useValue:this.componentFactoryResolver}].concat(p(c)),Vc(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Y(Hf,Yu);
Hf.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};Hf.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};Hf.prototype.onDestroy=function(a){this.destroyCbs.push(a)};ea.Object.defineProperties(Hf.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var mta=function(a){this.moduleType=a};Y(mta,lta);mta.prototype.create=function(a){return new Hf(this.moduleType,a,[])};var uja=function(a){this.componentFactoryResolver=new V$b(this);this.instance=null;var b=new Ad([].concat(p(a.providers),[{provide:Yu,useValue:this},{provide:Z9b,useValue:this.componentFactoryResolver}]),a.parent||cfa(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Y(uja,Yu);uja.prototype.destroy=function(){this.injector.destroy()};
uja.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var If=function(a){this._injector=a;this.cachedInjectors=new Map};If.prototype.ngOnDestroy=function(){try{for(var a=l(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;c!==null&&c.destroy()}}finally{this.cachedInjectors.clear()}};If.\u0275prov=Sc({token:If,providedIn:"environment",factory:function(){return new If(nd(Ef))}});var X$b=new yd(""),th=function(){var a=this;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){a.resolve=c;a.reject=d});var b;this.appInits=(b=n(X$b,{optional:!0}))!=null?b:[];this.injector=n(Ze)},cma=function(a){if(!a.initialized){for(var b=[],c=l(a.appInits),d=c.next(),e={};!d.done;e={initResult:void 0},d=c.next())e.initResult=Bd(a.injector,d.value),Mf(e.initResult)?b.push(e.initResult):Cja(e.initResult)&&(d=new Promise(function(f){return function(h,k){f.initResult.subscribe({complete:h,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});b.length===0&&(a.done=!0,a.resolve());a.initialized=!0}};th.\u0275fac=function(a){return new (a||th)};th.\u0275prov=Sc({token:th,factory:th.\u0275fac,providedIn:"root"});var lv=function(){};lv.prototype.log=function(a){console.log(a)};lv.prototype.warn=function(a){console.warn(a)};lv.\u0275fac=function(a){return new (a||lv)};lv.\u0275prov=Sc({token:lv,factory:lv.\u0275fac,providedIn:"platform"});var Bh=function(){};Bh.\u0275prov=Sc({token:Bh,providedIn:"root",factory:function(){return new Y$b}});var Y$b=function(){this.queuedEffectCount=0;this.queues=new Map};Y$b.prototype.schedule=function(a){this.enqueue(a)};Y$b.prototype.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),this.queuedEffectCount--)};Y$b.prototype.enqueue=function(a){var b=a.zone;this.queues.has(b)||this.queues.set(b,new Set);b=this.queues.get(b);b.has(a)||(this.queuedEffectCount++,b.add(a))};
Y$b.prototype.flush=function(){for(var a=this;this.queuedEffectCount>0;)for(var b=l(this.queues),c=b.next(),d={};!c.done;d={queue$jscomp$4:void 0},c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;d.queue$jscomp$4=e;c===null?Z$b(this,d.queue$jscomp$4):c.run(function(f){return function(){return Z$b(a,f.queue$jscomp$4)}}(d))}};var Z$b=function(a,b){for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,b.delete(d),a.queuedEffectCount--,d.run()};var $$b=new yd(""),aac=new yd(""),mv=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this.taskTrackingZone=null;bac||(bac=c,cac(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
mv.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._isZoneStable=!1}});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){y$b();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};mv.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
mv.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())queueMicrotask(function(){for(;a._callbacks.length!==0;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb()}});else{var b=dac(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var dac=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=mv.prototype;g.addCallback=function(a,b,c){var d=this,e=-1;b&&b>0&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a()},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Oa");this.addCallback(a,b,c);this._runCallbacksIfReady()};
g.registerApplication=function(a){this.registry.registerApplication(a,this)};g.unregisterApplication=function(a){this.registry.unregisterApplication(a)};g.findProviders=function(){return[]};mv.\u0275fac=function(a){return new (a||mv)(nd(ph),nd(nv),nd(aac))};mv.\u0275prov=Sc({token:mv,factory:mv.\u0275fac});var nv=function(){this._applications=new Map};nv.prototype.registerApplication=function(a,b){this._applications.set(a,b)};nv.prototype.unregisterApplication=function(a){this._applications.delete(a)};
nv.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=bac)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};nv.\u0275fac=function(a){return new (a||nv)};nv.\u0275prov=Sc({token:nv,factory:nv.\u0275fac,providedIn:"platform"});var bac;var cka={leading:!0,trailing:!1};var eac=new yd(""),vh=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=n(sh);this.afterRenderManager=n(af);this.zonelessEnabled=n($9b);this.rootEffectScheduler=n(Bh);this.dirtyFlags=0;this.tracingSnapshot=null;this.externalTestViews=new Set;this.afterTick=new bg;this.componentTypes=[];this.components=[];this.isStable=n(fv).hasPendingTasks.pipe(y(function(b){return!b}));this._injector=n(Ef);this._rendererFactory=null;this.tickImpl=
function(){if(a._runningTick)throw new Wc(101,!1);var b=Yc(null);try{a._runningTick=!0;a._rendererFactory!==null||a._injector.destroyed||(a._rendererFactory=a._injector.get(Ff,null,{optional:!0}));for(var c=0;a.dirtyFlags!==0&&c++<10;)a:{var d=void 0,e=void 0,f=void 0,h=void 0;a.dirtyFlags&16&&(a.dirtyFlags&=-17,a.rootEffectScheduler.flush());if(a.dirtyFlags&7){var k=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var q=l(a.allViews),u=q.next();!u.done;u=q.next()){var A=u.value._lView;(k||
qfa(A))&&Yia(A,k&&!a.zonelessEnabled?0:1)}a.dirtyFlags&=-5;fac(a);if(a.dirtyFlags&23)break a}else(h=a._rendererFactory)==null||(f=h.begin)==null||f.call(h),(e=a._rendererFactory)==null||(d=e.end)==null||d.call(e);a.dirtyFlags&8&&(a.dirtyFlags&=-9,a.afterRenderManager.execute());fac(a)}}finally{a._runningTick=!1;var G;(G=a.tracingSnapshot)==null||G.dispose();a.tracingSnapshot=null;Yc(b);a.afterTick.next()}};n(cf,{optional:!0})};
vh.prototype.whenStable=function(){var a=this,b;return(new Promise(function(c){b=a.isStable.subscribe({next:function(d){d&&c()}})})).finally(function(){b.unsubscribe()})};
vh.prototype.bootstrap=function(a,b){var c=this,d=a instanceof I$b;if(!this._injector.get(th).done)throw new Wc(405,"");var e;d?e=a:e=W$b(this._injector.get(Z9b),a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(Yu);var f=e.create(Y9b,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get($$b,null);k==null||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);hka(c.components,f);k==null||k.unregisterApplication(h)});this._loadComponent(f);
return f};vh.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};vh.prototype._tick=function(){this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};var fac=function(a){a.allViews.some(function(b){return qfa(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},gac=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Wc(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||eja(c,b._lView);rfa(b._lView)};
g=vh.prototype;g.detachView=function(a){hka(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Nia(c,a._lView);Mia(a._lView[1],a._lView)};g._loadComponent=function(a){gac(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(eac,[]).forEach(function(b){return b(a)})};
g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()})}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}};g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return hka(b._destroyListeners,a)}};g.destroy=function(){if(this._destroyed)throw new Wc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
ea.Object.defineProperties(vh.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.externalTestViews.keys()),p(this._views))}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,get:function(){return this._views.length}}});vh.\u0275fac=function(a){return new (a||vh)};
vh.\u0275prov=Sc({token:vh,factory:vh.\u0275fac,providedIn:"root"});new yd("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new yd("");var Ug=function(){};Ug.__NG_ELEMENT_ID__=tka;var lg=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Y(lg,Ug);lg.__NG_ELEMENT_ID__=Ug.__NG_ELEMENT_ID__;g=lg.prototype;g.clear=function(){for(;this.length>0;)this.remove(this.length-1)};g.get=function(a){var b=this._lContainer[8];return b!==null&&b[a]||null};
g.createEmbeddedView=function(a,b,c){if(typeof c==="number")var d=c;else if(c!=null){d=c.index;var e=c.injector}a=hac(a,b||{},e,null);iac(this,a,d,jg(this._hostTNode,null));return a};
g.createComponent=function(a,b,c,d,e,f,h){var k=a&&typeof a!=="function";k||(h=b||{},b=h.index,c=h.injector,d=h.projectableNodes,e=h.environmentInjector||h.ngModuleRef,f=h.directives,h=h.bindings);a=k?a:new Fh(a[vd]||null);c=c||this.parentInjector;e||a.ngModule!=null||(k=(k?c:this.parentInjector).get(Ef,null))&&(e=k);d=a.create(c,d,null,e,f,h);iac(this,d.hostView,b,jg(this._hostTNode,null));return d};g.insert=function(a,b){return iac(this,a,b,!0)};
var iac=function(a,b,c,d){var e=b._lView;if(Fd(e[3])){var f=a.indexOf(b);f!==-1?a.detach(f):(f=e[3],f=new lg(f,f[5],f[3]),f.detach(f.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;fja(a,e,c,d);if(b._appRef)throw new Wc(902,!1);b._attachedToViewContainer=!0;d=uka(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};g=lg.prototype;g.move=function(a,b){return this.insert(a,b)};g.indexOf=function(a){var b=this._lContainer[8];return b!==null?b.indexOf(a):-1};
g.remove=function(a){a=this._adjustIndex(a,-1);var b=Df(this._lContainer,a);b&&(Qea(uka(this._lContainer),a),Pia(b[1],b))};g.detach=function(a){a=this._adjustIndex(a,-1);var b=Df(this._lContainer,a);return b&&Qea(uka(this._lContainer),a)!=null?new oh(b):null};g._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
ea.Object.defineProperties(lg.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return gf(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new ee(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Qfa(this._hostTNode,this._hostLView);if(a!==-1){var b=Jfa(a,this._hostLView);return new ee(b[1].data[(a&32767)+8],b)}return new ee(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});var vka=wka;var xka=zka;var rg=0,sg=0,tg=0,Fka=0,Hka=0;var jac=function(){};jac.prototype.destroy=function(){};jac.prototype.updateValue=function(){};var Uka=function(a,b,c){var d=Math.min(b,c);b=Math.max(b,c);c=a.detach(b);if(b-d>1){var e=a.detach(d);a.attach(d,c);a.attach(b,e)}else a.attach(d,c)};jac.prototype.move=function(a,b){this.attach(b,this.detach(a))};var Vka=function(){this.kvMap=new Map;this._vMap=void 0};g=Vka.prototype;g.has=function(a){return this.kvMap.has(a)};
g.delete=function(a){if(!this.has(a))return!1;var b=this.kvMap.get(a);this._vMap!==void 0&&this._vMap.has(b)?(this.kvMap.set(a,this._vMap.get(b)),this._vMap.delete(b)):this.kvMap.delete(a);return!0};g.get=function(a){return this.kvMap.get(a)};g.set=function(a,b){if(this.kvMap.has(a)){a=this.kvMap.get(a);this._vMap===void 0&&(this._vMap=new Map);for(var c=this._vMap;c.has(a);)a=c.get(a);c.set(a,b)}else this.kvMap.set(a,b)};
g.forEach=function(a){for(var b=l(this.kvMap),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a(d,c);if(this._vMap!==void 0)for(var e=this._vMap;e.has(d);)d=e.get(d),a(d,c)}};var kac=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};ea.Object.defineProperties(kac.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var $ka=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},ala=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Y(ala,jac);g=ala.prototype;g.at=function(a){return dja(this.lContainer,a)[8].$implicit};
g.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);fja(this.lContainer,b,a,jg(this.templateTNode,c))};g.detach=function(a){this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length-1);return Df(this.lContainer,a)};g.create=function(a,b){a=ika(this.hostLView,this.templateTNode,new kac(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};
g.destroy=function(a){Pia(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};g.updateValue=function(a,b){dja(this.lContainer,a)[8].$implicit=b};g.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};ea.Object.defineProperties(ala.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var dla=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,
0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return Math.floor(Math.abs(a))===1&&b===0?1:5}];var ela={};var gla={};var lac,Vg=function(a){this._emitDistinctChangesOnly=a=a===void 0?!1:a;this.dirty=!0;this._onDirty=void 0;this._results=[];this._changesDetected=!1;this._changes=void 0;this.length=0;this.last=this.first=void 0;this[lac]=kla};g=Vg.prototype;g.get=function(a){return this._results[a]};g.map=function(a){return this._results.map(a)};g.filter=function(a){return this._results.filter(a)};g.find=function(a){return this._results.find(a)};g.reduce=function(a,b){return this._results.reduce(a,b)};g.forEach=function(a){this._results.forEach(a)};
g.some=function(a){return this._results.some(a)};g.toArray=function(){return this._results.slice()};g.toString=function(){return this._results.toString()};g.reset=function(a,b){this.dirty=!1;a=a.flat(Number.POSITIVE_INFINITY);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};
var Zg=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},zla=function(a,b){a._onDirty=b};Vg.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};Vg.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};ea.Object.defineProperties(Vg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new bg}}});
lac=Symbol.iterator;var Tg=function(){};Tg.__NG_ELEMENT_ID__=mla;var Sg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};Y(Sg,Tg);Sg.__NG_ELEMENT_ID__=Tg.__NG_ELEMENT_ID__;Sg.prototype.createEmbeddedView=function(a,b){return hac(this,a,b)};var hac=function(a,b,c,d){a=ika(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new oh(a)};
ea.Object.defineProperties(Sg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});var qla=function(a){this.queryList=a;this.matches=null};qla.prototype.clone=function(){return new qla(this.queryList)};qla.prototype.setDirty=function(){this.queryList.setDirty()};var pla=function(a){this.queries=a=a===void 0?[]:a};pla.prototype.createEmbeddedView=function(a){var b=a.queries;if(b!==null){a=a.contentQueries!==null?a.contentQueries[0]:b.length;for(var c=[],d=0;d<a;d++)c.push(this.queries[b.queries[d].indexInDeclarationView].clone());return new pla(c)}return null};
pla.prototype.detachView=function(a){Bia(this,a)};var Bia=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},tla=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=ula(a):this.predicate=a},vla=function(a){this.queries=a=a===void 0?[]:a};g=vla.prototype;g.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};g.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
g.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,b!==null?b.length:0);d&&(d.indexInDeclarationView=c,b!==null?b.push(d):b=[d])}return b!==null?new vla(b):null};g.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};g.track=function(a){this.queries.push(a)};ea.Object.defineProperties(vla.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var Yg=function(a,b){this.metadata=a;this.matches=null;this.indexInDeclarationView=-1;this.crossesNgTemplate=!1;this._appliesToNextNode=!0;this._declarationNodeIndex=b===void 0?-1:b};
Yg.prototype.elementStart=function(a,b){if(mac(this,b)){var c=this.metadata.predicate;if(Array.isArray(c))for(var d=0;d<c.length;d++){var e=c[d];a:{var f=b.localNames;if(f!==null)for(var h=0;h<f.length;h+=2)if(f[h]===e){f=f[h+1];break a}f=null}nac(this,a,b,f);nac(this,a,b,Xfa(b,a,e,!1,!1))}else c===Tg?b.type&4&&nac(this,a,b,-1):nac(this,a,b,Xfa(b,a,c,!1,!1))}};Yg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
Yg.prototype.template=function(a,b){this.elementStart(a,b)};Yg.prototype.embeddedTView=function(a,b){return mac(this,a)?(this.crossesNgTemplate=!0,oac(this,-a.index,b),new Yg(this.metadata)):null};
var mac=function(a,b){if(a._appliesToNextNode&&(a.metadata.flags&1)!==1){a=a._declarationNodeIndex;for(b=b.parent;b!==null&&b.type&8&&b.index!==a;)b=b.parent;return a===(b!==null?b.index:-1)}return a._appliesToNextNode},nac=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===ff||e===Ug||e===Tg&&c.type&4?oac(a,c.index,-2):(b=Xfa(c,b,e,!1,!1),b!==null&&oac(a,c.index,b)):oac(a,c.index,d)}},oac=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var ov=function(){};ov.\u0275fac=function(a){return new (a||ov)(nd(vh))};ov.\u0275mod=Jf({type:ov});ov.\u0275inj=Tc({});new yd("",{providedIn:"platform",factory:function(){return null}});new yd("",{providedIn:"platform",factory:function(){return null}});new yd("",{providedIn:"platform",factory:function(){return null}});var Rla=Symbol("Pa"),Sla=Object.assign({},Aea,{transformFn:void 0,applyValueToInputSignal:function(a,b){fd(a,b)}});Ula.required=function(){return yla(!0)};var qv=function(){};qv.__NG_ELEMENT_ID__=Vla;var pac=function(){};pac.prototype.supports=function(a){return Eha(a)};pac.prototype.create=function(a){return new qac(a)};var rac=function(a,b){return b},qac=function(a){this.length=0;this._identityChangesTail=this._identityChangesHead=this._removalsTail=this._removalsHead=this._movesTail=this._movesHead=this._additionsTail=this._additionsHead=this._itTail=this._itHead=this._previousItHead=this._unlinkedRecords=this._linkedRecords=null;this._trackByFn=a||rac};
qac.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};
var sac=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Wla(a,d,e)?c:a,h=Wla(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,f.previousIndex==null)d++;else{e||(e=[]);var q=h-d,u=k-d;if(q!=u){for(var A=0;A<q;A++){var G=A<e.length?e[A]:e[A]=0,H=G+A;u<=H&&H<q&&(e[A]=G+1)}e[f.previousIndex]=u-q}}h!==k&&b(f,h,k)}},tac=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};g=qac.prototype;
g.diff=function(a){a==null&&(a=[]);if(!Eha(a))throw new Wc(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var h=this._trackByFn(e,f);c!==null&&Object.is(c.trackById,h)?(d&&(c=this._verifyReinsertion(c,f,h,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,h,e),d=!0);c=c._next}}else{var k=0;Fha(a,function(q){h=b._trackByFn(k,q);c!==null&&Object.is(c.trackById,h)?(d&&(c=b._verifyReinsertion(c,q,h,k)),Object.is(c.item,q)||b._addIdentityChange(c,
q)):(c=b._mismatch(c,q,h,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;a!==null;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;a!==null;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
g._mismatch=function(a,b,c,d){if(a===null)var e=this._itTail;else e=a._prev,this._remove(a);a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=this._linkedRecords===null?null:this._linkedRecords.get(c,d),a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new uac(b,c),e,d));return a};
g._verifyReinsertion=function(a,b,c,d){b=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);b!==null?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
g._truncate=function(a){for(;a!==null;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}this._unlinkedRecords!==null&&this._unlinkedRecords.clear();this._additionsTail!==null&&(this._additionsTail._nextAdded=null);this._movesTail!==null&&(this._movesTail._nextMoved=null);this._itTail!==null&&(this._itTail._next=null);this._removalsTail!==null&&(this._removalsTail._nextRemoved=null);this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)};
g._reinsertAfter=function(a,b,c){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;d===null?this._removalsHead=e:d._nextRemoved=e;e===null?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};g._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
g._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=this._additionsTail===null?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};g._insertAfter=function(a,b,c){var d=b===null?this._itHead:b._next;a._next=d;a._prev=b;d===null?this._itTail=a:d._prev=a;b===null?this._itHead=a:b._next=a;this._linkedRecords===null&&(this._linkedRecords=new rv);this._linkedRecords.put(a);a.currentIndex=c;return a};g._remove=function(a){return this._addToRemovals(this._unlink(a))};
g._unlink=function(a){this._linkedRecords!==null&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;b===null?this._itHead=c:b._next=c;c===null?this._itTail=b:c._prev=b;return a};g._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=this._movesTail===null?this._movesHead=a:this._movesTail._nextMoved=a;return a};
g._addToRemovals=function(a){this._unlinkedRecords===null&&(this._unlinkedRecords=new rv);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;this._removalsTail===null?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
g._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=this._identityChangesTail===null?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};ea.Object.defineProperties(qac.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var uac=function(a,b){this.item=a;this.trackById=b;this._nextIdentityChange=this._nextMoved=this._nextAdded=this._nextRemoved=this._prevRemoved=this._nextDup=this._prevDup=this._next=this._prev=this._nextPrevious=this.previousIndex=this.currentIndex=null},vac=function(){this._tail=this._head=null};vac.prototype.add=function(a){this._head===null?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)};
vac.prototype.get=function(a,b){var c;for(c=this._head;c!==null;c=c._nextDup)if((b===null||b<=c.currentIndex)&&Object.is(c.trackById,a))return c;return null};vac.prototype.remove=function(a){var b=a._prevDup;a=a._nextDup;b===null?this._head=a:b._nextDup=a;a===null?this._tail=b:a._prevDup=b;return this._head===null};var rv=function(){this.map=new Map};rv.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new vac,this.map.set(b,c));c.add(a)};
rv.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};rv.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};rv.prototype.clear=function(){this.map.clear()};ea.Object.defineProperties(rv.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var wac=function(){};wac.prototype.supports=function(a){return a instanceof Map||Dha(a)};wac.prototype.create=function(){return new xac};var xac=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};g=xac.prototype;g.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};
g.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||Dha(a)))throw new Wc(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;a!==null;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};g._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
g._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new yac(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;a!==null;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;a!=null;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
g._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};g._addToAdditions=function(a){this._additionsHead===null?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};g._addToChanges=function(a){this._changesHead===null?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
g._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};ea.Object.defineProperties(xac.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var yac=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var sv=function(a){this.factories=a};sv.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Wc(901,!1);};sv.\u0275prov=Sc({token:sv,providedIn:"root",factory:function(){return new sv([new pac])}});var tv=function(a){this.factories=a};tv.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Wc(901,!1);};tv.\u0275prov=Sc({token:tv,providedIn:"root",factory:function(){return new tv([new wac])}});var uv=function(){var a=this;this.applicationErrorHandler=n(sh);this.appRef=n(vh);this.taskService=n(fv);this.ngZone=n(ph);this.zonelessEnabled=n($9b);this.tracing=n(cf,{optional:!0});var b;this.disableScheduling=(b=n(Yla,{optional:!0}))!=null?b:!1;this.zoneIsDefined=typeof Zone!=="undefined"&&!!Zone.root.run;this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];this.subscriptions=new ke;var c;this.angularZoneId=this.zoneIsDefined?(c=this.ngZone._inner)==null?void 0:c.get("isAngularZone_ID"):
null;var d;this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((d=n(Zla,{optional:!0}))!=null?d:!1);this.cancelScheduledCallback=null;this.runningTick=this.useMicrotaskScheduler=!1;this.pendingRenderTaskId=null;this.subscriptions.add(this.appRef.afterTick.subscribe(function(){a.runningTick||a.cleanup()}));this.subscriptions.add(this.ngZone.onUnstable.subscribe(function(){a.runningTick||a.cleanup()}));this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof
iv||!this.zoneIsDefined))};
uv.prototype.notify=function(a){var b=this;if(this.zonelessEnabled||a!==5){var c=!1;switch(a){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;c=!0;break;case 12:this.appRef.dirtyFlags|=16;c=!0;break;case 13:this.appRef.dirtyFlags|=2;c=!0;break;case 11:c=!0;break;default:this.appRef.dirtyFlags|=8}var d,e;this.appRef.tracingSnapshot=(e=(d=this.tracing)==null?void 0:d.snapshot(this.appRef.tracingSnapshot))!=null?
e:null;if(!(this.disableScheduling&&!c||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get("isAngularZone_ID"+this.angularZoneId))){var f=this.useMicrotaskScheduler?fha:eha;this.pendingRenderTaskId=this.taskService.add();this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(function(){return f(function(){return b.tick()})}):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(function(){return f(function(){return b.tick()})})}}};
uv.prototype.tick=function(){var a=this;if(!this.runningTick&&!this.appRef.destroyed)if(this.appRef.dirtyFlags===0)this.cleanup();else{!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);var b=this.taskService.add();try{this.ngZone.run(function(){a.runningTick=!0;a.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(c){this.taskService.remove(b),this.applicationErrorHandler(c)}finally{this.cleanup()}this.useMicrotaskScheduler=!0;fha(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};uv.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};uv.prototype.cleanup=function(){this.runningTick=!1;var a;(a=this.cancelScheduledCallback)==null||a.call(this);this.cancelScheduledCallback=null;this.pendingRenderTaskId!==null&&(a=this.pendingRenderTaskId,this.pendingRenderTaskId=null,this.taskService.remove(a))};uv.\u0275fac=function(a){return new (a||uv)};uv.\u0275prov=Sc({token:uv,factory:uv.\u0275fac,providedIn:"root"});var qh=function(){this.zone=n(ph);this.changeDetectionScheduler=n(Gf);this.applicationRef=n(vh);this.applicationErrorHandler=n(sh)};qh.prototype.initialize=function(){var a=this;this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:function(){a.changeDetectionScheduler.runningTick||a.zone.run(function(){try{a.applicationRef.tick()}catch(b){a.applicationErrorHandler(b)}})}}))};
qh.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};qh.\u0275fac=function(a){return new (a||qh)};qh.\u0275prov=Sc({token:qh,factory:qh.\u0275fac,providedIn:"root"});new yd("",{factory:function(){return!1}});var rh=function(){this.subscription=new ke;this.initialized=!1;this.zone=n(ph);this.pendingTasks=n(fv)};
rh.prototype.initialize=function(){var a=this;if(!this.initialized){this.initialized=!0;var b=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(b=this.pendingTasks.add());this.zone.runOutsideAngular(function(){a.subscription.add(a.zone.onStable.subscribe(function(){y$b();queueMicrotask(function(){b===null||a.zone.hasPendingMacrotasks||a.zone.hasPendingMicrotasks||(a.pendingTasks.remove(b),b=null)})}))});this.subscription.add(this.zone.onUnstable.subscribe(function(){if(!x$b())throw new Wc(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};rh.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};rh.\u0275fac=function(a){return new (a||rh)};rh.\u0275prov=Sc({token:rh,factory:rh.\u0275fac,providedIn:"root"});var uh=new yd("",{providedIn:"root",factory:function(){return n(uh,{optional:!0,skipSelf:!0})||(typeof L7b!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new yd("",{providedIn:"root",factory:function(){return"USD"}});new yd("");new yd("");var ama=new yd("");var dma=new yd("");var vv=function(){};vv.\u0275fac=function(a){return new (a||vv)};vv.\u0275prov=Sc({token:vv,factory:vv.\u0275fac,providedIn:"root"});new yd("");var xh=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},zac=function(a,b,c){var d=c==null?void 0:c.scheduleInRootZone;b=tja(b.moduleType,a.injector,[$la({ngZoneFactory:function(){var e=c==null?void 0:c.ngZone,f=Object.assign({},Xla({eventCoalescing:c==null?void 0:c.ngZoneEventCoalescing,runCoalescing:c==null?void 0:c.ngZoneRunCoalescing}),{scheduleInRootZone:d});e=e===void 0?"zone.js":e;return e==="noop"?new iv:e==="zone.js"?new ph(f):e},ignoreChangesOutsideZone:c==
null?void 0:c.ignoreChangesOutsideZone}),{provide:Gf,useExisting:uv}]);return fma({moduleRef:b,allPlatformModules:a._modules,platformInjector:a.injector})},Bac=function(){var a=Aac(),b=wv;var c=c===void 0?[]:c;var d=gka({},c);Promise.resolve(new mta(b)).then(function(e){return zac(a,e,d)})};xh.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
xh.prototype.destroy=function(){if(this._destroyed)throw new Wc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(ama,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};ea.Object.defineProperties(xh.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
xh.\u0275fac=function(a){return new (a||xh)(nd(Ze))};xh.\u0275prov=Sc({token:xh,factory:xh.\u0275fac,providedIn:"platform"});var wh=null,hma=new yd("");var pma=function(a){this[ed]=a};pma.prototype.destroy=function(){this[ed].destroy()};new yd("",{providedIn:"root",factory:function(){return n(Bh)}});
var Cac=Object.assign({},Ru,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Xe,run:function(){var a=this;this.dirty=!1;if(!this.hasRun||tea(this)){this.hasRun=!0;var b,c=function(f){var h;return((h=(b=a).cleanupFns)!=null?h:b.cleanupFns=[]).push(f)},d=bd(this),e=wfa(!1);try{this.maybeCleanup(),this.fn(c)}finally{wfa(e),cd(this,d)}}},maybeCleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=
[]}}}),sma=Object.assign({},Cac,{consumerMarkedDirty:function(){this.scheduler.schedule(this);this.notifier.notify(12)},destroy:function(){wea(this);this.onDestroyFn();this.maybeCleanup();this.scheduler.remove(this)}}),rma=Object.assign({},Cac,{consumerMarkedDirty:function(){this.view[2]|=8192;Ld(this.view);this.notifier.notify(13)},destroy:function(){wea(this);this.onDestroyFn();this.maybeCleanup();var a;(a=this.view[23])==null||a.delete(this)}});var tma=function(a){return a};var Dac=function(a){var b=this;this.isLoading=Ah(function(){return b.status()===2||b.status()===3});this.value=a;this.value.set=this.set.bind(this);this.value.update=this.update.bind(this);this.value.asReadonly=xla};Dac.prototype.update=function(a){this.set(a(gd(this.value)))};Dac.prototype.hasValue=function(){return this.value()!==void 0};Dac.prototype.asReadonly=function(){return this};
var xv=function(a,b,c,d,e){Dac.call(this,Ah(function(){var h,k,q=(k=(h=f.state()).stream)==null?void 0:k.call(h);return q&&q.error===void 0?q.value:f.defaultValue},{equal:d}));var f=this;this.loaderFn=b;this.defaultValue=c;this.equal=d;this.resolvePendingTask=void 0;this.destroyed=!1;this.status=Ah(function(){return vma(f.state())});this.error=Ah(function(){var h,k,q=(k=(h=f.state()).stream)==null?void 0:k.call(h);return q&&q.error!==void 0?q.error:void 0});this.extRequest=Ch({source:a,computation:function(h){return{request:h,
reload:0}}});this.state=Ch({source:this.extRequest,computation:function(h,k){var q=h.request===void 0?0:2;return k?{extRequest:h,status:q,previousStatus:vma(k.value),stream:k.value.extRequest.request===h.request?k.value.stream:void 0}:{extRequest:h,status:q,previousStatus:0,stream:void 0}}});this.effectRef=qma(this.loadEffect.bind(this),{injector:e,manualCleanup:!0});this.pendingTasks=e.get(gv);e.get(df).onDestroy(function(){return f.destroy()})};Y(xv,Dac);
xv.prototype.set=function(a){if(!this.destroyed){var b=gd(this.value),c=gd(this.state);c.status===5&&(this.equal?this.equal(b,a):b===a)||(this.state.set({extRequest:c.extRequest,status:5,previousStatus:5,stream:bh({value:a})}),Eac(this))}};xv.prototype.reload=function(){var a=gd(this.state).status;if(a===0||a===2)return!1;this.extRequest.update(function(b){return{request:b.request,reload:b.reload+1}});return!0};
xv.prototype.destroy=function(){this.destroyed=!0;this.effectRef.destroy();Eac(this);this.state.set({extRequest:{request:void 0,reload:0},status:0,previousStatus:0,stream:void 0})};
xv.prototype.loadEffect=function(){var a=this,b,c,d,e,f,h,k,q,u,A;return w(function(G){switch(G.nextAddress){case 1:b=a.extRequest();c=gd(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!==2)return G.return();Eac(a);f=a.resolvePendingTask=a.pendingTasks.add();h=a.pendingController=new AbortController;k=h.signal;te(G,2,3);return x(G,gd(function(){return a.loaderFn({request:b.request,abortSignal:k,previous:{status:e}})}),5);case 5:q=G.yieldResult;if(k.aborted||gd(a.extRequest)!==b)return G.return();
a.state.set({extRequest:b,status:4,previousStatus:4,stream:q});case 3:ue(G);(u=f)==null||u();f=void 0;we(G,0);break;case 2:A=xe(G);if(k.aborted||gd(a.extRequest)!==b)return G.return();a.state.set({extRequest:b,status:4,previousStatus:1,stream:bh({error:A})});G.jumpTo(3)}})};var Eac=function(a){gd(function(){var c;return(c=a.pendingController)==null?void 0:c.abort()});a.pendingController=void 0;var b;(b=a.resolvePendingTask)==null||b.call(a);a.resolvePendingTask=void 0};var Fac=Symbol("Qa"),Gac=new Set;
Object.assign({},Aea,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Fac,cleanup:null,consumerMarkedDirty:function(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn:function(a){this.sequence.lastPhase=this.phase;if(!this.dirty)return this.signal;this.dirty=!1;if(this.value!==Fac&&!tea(this))return this.signal;try{for(var b,c=l((b=this.cleanup)!=null?
b:Gac),d=c.next();!d.done;d=c.next()){var e=d.value;e()}}finally{var f;(f=this.cleanup)==null||f.clear()}b=[];a!==void 0&&b.push(a);b.push(this.registerCleanupFn);a=bd(this);try{var h=this.userFn.apply(null,b)}finally{cd(this,a)}this.value!==Fac&&this.equal(this.value,h)||(this.value=h,this.version++);return this.signal}});var Hac=kma(null,"core",[]);var roa=new function(a){a=a.split(".");this.major=a[0];this.minor=a[1];this.patch=a.slice(2).join(".")}("0.0.0-PLACEHOLDER");new yd("@ngrx/store Internal Root Guard");new yd("@ngrx/store Internal Initial State");new yd("@ngrx/store Initial State");new yd("@ngrx/store Reducer Factory");new yd("@ngrx/store Internal Reducer Factory Provider");new yd("@ngrx/store Initial Reducers");new yd("@ngrx/store Internal Initial Reducers");new yd("@ngrx/store Store Features");new yd("@ngrx/store Internal Store Reducers");new yd("@ngrx/store Internal Feature Reducers");new yd("@ngrx/store Internal Feature Configs");new yd("@ngrx/store Internal Store Features");
new yd("@ngrx/store Internal Feature Reducers Token");new yd("@ngrx/store Feature Reducers");new yd("@ngrx/store User Provided Meta Reducers");new yd("@ngrx/store Meta Reducers");new yd("@ngrx/store Internal Resolved Meta Reducers");new yd("@ngrx/store User Runtime Checks Config");new yd("@ngrx/store Internal User Runtime Checks Config");new yd("@ngrx/store Internal Runtime Checks");new yd("@ngrx/store Check if Action types are unique");new yd("@ngrx/store Root Store Provider");new yd("@ngrx/store Feature State Provider");Object.values({RDL:"rdl",DAPPER:"dapper",SHERLOG:"sherlog",SHERLOG_DATA_ID:"sherlog_data_id",THIRD_EYE:"error_insights"});
var Ana=Object.values({ENTITY:"entity",BORG_USER:"borg_user",BORG_JOB:"borg_job",BORG_CELL:"cell",BORG_TASK_INDEX:"task_index",BORG_TASK_ATTEMPT_UID:"task_attempt_uid",START_TIME:"start_time",END_TIME:"end_time",RPC_SERVER_SERVICE_NAME:"rpc_server_service_name",RPC_CLIENT_SERVICE_NAME:"rpc_client_service_name",LPC_SERVICE_NAME:"lpc_service_name",RPC_SERVER_METHOD_NAME:"rpc_server_method_name",RPC_CLIENT_METHOD_NAME:"rpc_client_method_name",LPC_METHOD_NAME:"lpc_method_name",STATUS_CODE:"status_code",
SEVERITY:"severity",MIN_LATENCY:"min_latency",MAX_LATENCY:"max_latency",TEXT_PAYLOAD:"text_payload",CALLSITE:"site_path",HAS_SAMPLED_TRACE:"has_sampled_trace",SNIPPET:"snippet",LOG_NAME:"log_name",PROCESS_NAME:"process_name",THREAD_ID:"thread_id",TRACE_ID:"trace_id",SPAN_ID:"span_id",JOB_UID:"job_uid",LOCAL_PROCESS_ID:"local_process_id",DATA_ID:"data_id"}),aaa={EQUALS:"=",NOT_EQUALS:"!=",REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~"},yna="entity borg_user borg_job cell rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code text_payload site_path snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id".split(" "),
xna="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid".split(" "),zna=["has_sampled_trace"];(function(a,b){if(typeof b==="function")return eaa(a,function(){return Object.assign({},b.apply(null,p(ud.apply(0,arguments))),{type:a})});switch(b?b._as:"empty"){case "empty":return eaa(a,function(){return{type:a}});case "props":return eaa(a,function(c){return Object.assign({},c,{type:a})});default:throw Error("Ra");}})("NoopAction");var Iac=function(a,b){this.lo=a>>>0;this.hi=b>>>0},Kac=function(a){if(!a)return Jac||(Jac=new Iac(0,0));if(!/^\d+$/.test(a))return null;Aca(a);return new Iac(Ab,Bb)},Jac,Lac=function(a,b){this.lo=a>>>0;this.hi=b>>>0},Nac=function(a){if(!a)return Mac||(Mac=new Lac(0,0));if(!/^-?\d+$/.test(a))return null;Aca(a);return new Lac(Ab,Bb)},Mac;var yv=function(){this.buffer_=[]};yv.prototype.length=function(){return this.buffer_.length};yv.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};yv.prototype.writeSplitVarint64=function(a,b){for(;b>0||a>127;)this.buffer_.push(a&127|128),a=(a>>>7|b<<25)>>>0,b>>>=7;this.buffer_.push(a)};yv.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var Oac=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},Pac=function(a,b){if(b>=0)Oac(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};g=yv.prototype;g.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};g.writeUint64=function(a){uca(a);this.writeUint32(Ab);this.writeUint32(Bb)};
g.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};g.writeInt64=function(a){Cb(a);this.writeSplitFixed64(Ab,Bb)};g.writeBool=function(a){this.buffer_.push(a?1:0)};g.writeEnum=function(a){Pac(this,a)};var Qac=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new yv},Kh=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},Rac=function(a){Kh(a,a.encoder_.end());for(var b=new Uint8Array(a.totalLength_),c=a.blocks_,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}a.blocks_=[b];return b},Jh=function(a,b,c){Oac(a.encoder_,b*8+c)};g=Qac.prototype;g.writeInt32=function(a,b){b!=null&&b!=null&&(Jh(this,a,0),Pac(this.encoder_,b))};
g.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":Nac(b)}if(b!=null)switch(Jh(this,a,0),typeof b){case "number":a=this.encoder_;Cb(b);a.writeSplitVarint64(Ab,Bb);break;case "bigint":b=BigInt.asUintN(64,b);b=new Lac(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=Nac(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};g.writeUint32=function(){};g.writeUint64=function(){};
g.writeBool=function(a,b){b!=null&&(Jh(this,a,0),this.encoder_.writeBool(b))};g.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),Jh(this,a,0),Pac(this.encoder_,b))};g.writeSplitFixed64=function(a,b){Jh(this,a,1);this.encoder_.writeSplitFixed64(b)};g.writeSplitVarint64=function(a,b){Jh(this,a,0);this.encoder_.writeSplitVarint64(b)};var zma=Hh(),Sac=Hh(),Tac=Hh();var Ih=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=rc(zma);this.$$isMsg=!!a&&c===a||!1},Dma=Ama(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;n9b(a,r9b(b,d,c),e);return!0}),Fma=Ama(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;n9b(a,r9b(b,d,c),e);return!0}),Tma=Symbol(),Ima=Symbol(),Lma=Symbol(),Xma=Symbol(),Pma=Symbol(),Bma,Cma;var Uac=Mh(function(a,b,c){if(a.nextWireType_!==0)return!1;a=a.decoder_;var d=0,e=0,f=0,h=a.bytes_,k=a.cursor_;do{var q=h[k++];d|=(q&127)<<f;f+=7}while(f<32&&q&128);f>32&&(e|=(q&127)>>4);for(f=3;f<32&&q&128;f+=7)q=h[k++],e|=(q&127)<<f;h9b(a,k);if(q<128)a=xca(d>>>0,e>>>0);else throw Error("ha");Nh(b,c,a);return!0},function(a,b,c){a.writeInt64(c,Vca(b))},Hh()),zv=Mh(function(a,b,c){if(a.nextWireType_!==0)return!1;Nh(b,c,Au(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Sb(b))},Tac),Vac;
Vac=new Ih(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;var d=b[jb]|0;vb(d);var e=!!(64&d)||!(8192&d),f=Pda(b,d,c),h=f!==Sda;if(e||!h){var k=e=h?f[jb]|0:0;if(!h||2&k||Ec(k)||4&k&&!(32&k))f=Fb(f),k=Dc(k,d),d=Bc(b,d,c,f);k=Rda(k,d)&-13;k=Fc(k|16,d,!0);k!==e&&lb(f,k)}b=f;if(a.nextWireType_==2)for(c=Au(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(Au(a.decoder_));else b.push(Au(a.decoder_));return!0},function(a,b,c){if(Array.isArray(b)){var d=b[jb]|
0;if(!(d&4)){for(var e=0,f=0;e<b.length;e++){var h=Sb(b[e]);h!=null&&(b[f++]=h)}f<e&&(b.length=f);lb(b,(d|5)&-6145);d&2&&Object.freeze(b)}}else b=void 0;if(b!=null)for(d=0;d<b.length;d++)e=a,f=c,h=b[d],h!=null&&(Jh(e,f,0),Pac(e.encoder_,h))},Tac);
var Wac=Mh(function(a,b,c){if(a.nextWireType_!==1)return!1;var d=a.decoder_;a=i9b(d);d=i9b(d);Nh(b,c,Db(a,d));return!0},function(a,b,c){b=Wca(b);if(b!=null){switch(typeof b){case "string":Kac(b)}Jh(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new Iac(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=Kac(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},Hh()),Xac=Mh(function(a,b,c){if(a.nextWireType_!==
5)return!1;Nh(b,c,i9b(a.decoder_));return!0},function(a,b,c){b=Ica(b);b!=null&&(Jh(a,c,5),a.encoder_.writeUint32(b))},Hh()),Av=Mh(function(a,b,c){if(a.nextWireType_!==0)return!1;Nh(b,c,j9b(a.decoder_));return!0},function(a,b,c){a.writeBool(c,Eca(b))},Hh()),Yac=Mh(function(a,b,c){if(a.nextWireType_!==2)return!1;Nh(b,c,o9b(a));return!0},function(a,b,c){b=ic(b);b!=null&&(b=oba(b,!1),Jh(a,c,2),Oac(a.encoder_,b.length),Kh(a,a.encoder_.end()),Kh(a,b))},Sac),Zac=Mh(function(a,b,c){if(a.nextWireType_!==0)return!1;
Nh(b,c,Au(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Sb(b))},Hh());var Bv=function(a,b){this.fieldIndex=a;this.ctor=b;this.isRepeated=0;this.getExtensionFn=X;this.setExtensionFn=W;this.defaultValue=void 0};Bv.prototype.register=function(){n8b(this)};var bl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bl,V);g=bl.prototype;g.getSeconds=function(){return Dl(this,1)};g.getSeconds_asLegacyNumberOrString=function(){return zl(this,1)};g.getSeconds_asString=function(){return Gl(this,1)};g.setSeconds=function(a){return Fm(this,1,a)};g.getNanos=function(){return Ik(this,2)};g.setNanos=function(a){return $k(this,2,a)};
g.toDate=function(){var a=Number(this.getSeconds_asString()),b=this.getNanos();return new Date(a*1E3+b/1E6)};g.fromMillis=function(a){Number.isFinite(a)||(a=0);return this.setSeconds(Math.floor(a/1E3)).setNanos((a%1E3+1E3)%1E3*1E6)};var cr=function(a,b){this.low_=a|0;this.high_=b|0},Cv=function(a){return a.high_*4294967296+(a.low_>>>0)};g=cr.prototype;g.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)};
g.toString=function(a){a=a||10;if(a<2||36<a)throw Error("Va`"+a);if(this.isSafeInteger()){var b=Cv(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=Dv(c,c/4294967296);c=Ev(this,d);d=Math.abs(Cv(Fv(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=Cv(c);return(a==10?d:d.toString(a))+e};g.isZero=function(){return this.low_==0&&this.high_==0};g.equals=function(a){return this.low_==a.low_&&this.high_==a.high_};
g.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};var Gv=function(a){var b=~a.low_+1|0;return Dv(b,~a.high_+!b|0)};cr.prototype.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,h=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);h=(a>>>16)+(d+h);d=h>>>16;d+=c+f;return Dv((h&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var Fv=function(a,b){return a.add(Gv(b))};
cr.prototype.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,h=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var q=e*a;var u=(q>>>16)+d*a;var A=u>>>16;u=(u&65535)+e*k;A+=u>>>16;A+=c*a;var G=A>>>16;A=(A&65535)+d*k;G+=A>>>16;A=(A&65535)+e*h;G=G+(A>>>16)+(b*a+c*k+d*h+e*f)&65535;return Dv((u&65535)<<16|q&65535,G<<16|A&65535)};
var Ev=function(a,b){if(b.isZero())throw Error("Wa");if(a.high_<0){if(a.equals($ac)){if(b.equals(abc)||b.equals(bbc))return $ac;if(b.equals($ac))return abc;var c=a.high_;c=Dv(a.low_>>>1|c<<31,c>>1);c=Ev(c,b).shiftLeft(1);if(c.equals(Hv))return b.high_<0?abc:bbc;a=Fv(a,b.multiply(c));return c.add(Ev(a,b))}return b.high_<0?Ev(Gv(a),Gv(b)):Gv(Ev(Gv(a),b))}if(a.isZero())return Hv;if(b.high_<0)return b.equals($ac)?Hv:Gv(Ev(a,Gv(b)));for(c=Hv;a.compare(b)>=0;){var d=Math.max(1,Math.floor(Cv(a)/Cv(b))),
e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=Iv(d),h=f.multiply(b);h.high_<0||h.compare(a)>0;)d-=e,f=Iv(d),h=f.multiply(b);f.isZero()&&(f=abc);c=c.add(f);a=Fv(a,h)}return c};cr.prototype.and=function(a){return Dv(this.low_&a.low_,this.high_&a.high_)};cr.prototype.or=function(a){return Dv(this.low_|a.low_,this.high_|a.high_)};cr.prototype.xor=function(a){return Dv(this.low_^a.low_,this.high_^a.high_)};
cr.prototype.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?Dv(b<<a,this.high_<<a|b>>>32-a):Dv(0,b<<a-32)};
var Iv=function(a){return a>0?a>=0x7fffffffffffffff?cbc:new cr(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?$ac:Gv(new cr(-a,-a/4294967296)):Hv},Dv=function(a,b){return new cr(a,b)},er=function(a,b){if(a.charAt(0)=="-")return Gv(er(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new cr(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("Xa");if(a.indexOf("-")>=0)throw Error("Ya`"+a);b=b||10;if(b<2||36<b)throw Error("Va`"+b);c=Iv(Math.pow(b,8));for(var d=Hv,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),h=parseInt(a.substring(e,e+f),b);f<8?(f=Iv(Math.pow(b,f)),d=d.multiply(f).add(Iv(h))):(d=d.multiply(c),d=d.add(Iv(h)))}return d},Hv=Dv(0,0),abc=Dv(1,0),bbc=Dv(-1,-1),cbc=Dv(4294967295,2147483647),$ac=Dv(0,2147483648);var dbc={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},Jv=dbc;Jv=dbc;var ebc=globalThis.trustedTypes,ena=ebc,gna;var Th=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};Th.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var fbc=ru([""]),gbc=y7b(["\x00"],["\\0"]),hbc=y7b(["\n"],["\\n"]),ibc=y7b(["\x00"],["\\u0000"]);ina(function(a){return a(fbc)})||ina(function(a){return a(gbc)})||ina(function(a){return a(hbc)})||ina(function(a){return a(ibc)});var Wh=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};Wh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var lna=new Wh("about:invalid#zClosurez");var jna=function(a){this.isValid=a},kna=[Zh("data"),Zh("http"),Zh("https"),Zh("mailto"),Zh("ftp"),new jna(function(a){return/^[^:]*([/?#]|$)/.test(a)})],mna=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var bi=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};bi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var Kr=new bi(ebc?ebc.emptyHTML:"");var jbc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var mbc=function(a){var b=Cp("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||ya.$googDebugFname||b}catch(h){e="Not available",c=!0}b=kbc(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,lbc[c])c=lbc[c];else{c=String(c);if(!lbc[c]){var f=/function\s+([^\(]+)/m.exec(c);lbc[c]=f?f[1]:"[Anonymous]"}c=lbc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}},kbc=function(a,b){b||(b={});b[nbc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[nbc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=kbc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[nbc(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=kbc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},nbc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},lbc={};var obc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")},pbc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Ofb=function(a){return!/[^0-9]/.test(a)},Sr=function(a){e8b.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Z7b,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace($7b,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(a8b,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(b8b,"&quot;")),a.indexOf("'")!=
-1&&(a=a.replace(c8b,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(d8b,"&#0;")));return a},qbc=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a},M_b=function(a,b,c){return a.replace(new RegExp(ak(b),"g"),c.replace(/\$/g,"$$$$"))},ak=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},rbc=String.prototype.repeat?function(a,b){return a.repeat(b)}:
function(a,b){return Array(b+1).join(a)},Kv=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");c===-1&&(c=a.length);var d=a[0]==="-"?"-":"";d&&(a=a.substring(1));return d+rbc("0",Math.max(0,b-c))+a},Vr=function(a){return a==null?"":String(a)},Pdb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},kn=function(a){var b=Number(a);return b==0&&Ca(a)?NaN:b},n4b=function(){return"height".replace(/\-([a-z])/g,
function(a,b){return b.toUpperCase()})},F_b=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},Yj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Vj=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},sbc=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};var tbc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),ubc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,vbc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,wbc=function(a,b){switch(b){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31},xbc=function(a,b,c,d,e){a=new Date(a,b,c);d=d!==void 0?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+((d-e+7)%7-b)*864E5},Lv=function(a,b,c,d,e,f){typeof a===
"string"?(this.years=a=="y"?b:0,this.months=a=="m"?b:0,this.days=a=="d"?b:0,this.hours=a=="h"?b:0,this.minutes=a=="n"?b:0,this.seconds=a=="s"?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};g=Lv.prototype;
g.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(b<0&&c>0)return null;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a)c.push("T"),(this.hours||
a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};g.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};g.clone=function(){return new Lv(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
g.isZero=function(){return this.years==0&&this.months==0&&this.days==0&&this.hours==0&&this.minutes==0&&this.seconds==0};g.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
var Uj=function(a,b,c){typeof a==="number"?(this.date=ybc(a,b||0,c||1),zbc(this,c||1)):cb(a)?(this.date=ybc(a.getFullYear(),a.getMonth(),a.getDate()),zbc(this,a.getDate())):(this.date=new Date(Date.now()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),zbc(this,a))},ybc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};g=Uj.prototype;g.firstDayOfWeek_=Jv.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=Jv.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new Uj(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getYear=function(){return this.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};
g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};g.getUTCDay=function(){return this.date.getDay()};g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var Abc=function(a){return wbc(a.getFullYear(),a.getMonth())};g=Uj.prototype;g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.setFullYear=function(a){this.date.setFullYear(a)};g.setYear=function(a){this.setFullYear(a)};g.setMonth=function(a){this.date.setMonth(a)};g.setDate=function(a){this.date.setDate(a)};g.setTime=function(a){this.date.setTime(a)};g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};g.setUTCMonth=function(a){this.date.setUTCMonth(a)};g.setUTCDate=function(a){this.date.setUTCDate(a)};
g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(wbc(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,c=new Date(c,this.getMonth(),this.getDate(),12),a=new Date(c.getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),zbc(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+Kv(Math.abs(b),c?6:4),Kv(this.getMonth()+1,2),Kv(this.getDate(),2)].join(a?"-":"")};g.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.toIsoString()};var zbc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};Uj.prototype.valueOf=function(){return this.date.valueOf()};
var bk=function(a,b,c,d,e,f,h){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a&&a.getTime?a.getTime():Date.now())};zu(bk,Uj);g=bk.prototype;g.getHours=function(){return this.date.getHours()};g.getMinutes=function(){return this.date.getMinutes()};g.getSeconds=function(){return this.date.getSeconds()};g.getMilliseconds=function(){return this.date.getMilliseconds()};g.getUTCDay=function(){return this.date.getUTCDay()};g.getUTCHours=function(){return this.date.getUTCHours()};
g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getUTCSeconds=function(){return this.date.getUTCSeconds()};g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};g.setHours=function(a){this.date.setHours(a)};g.setMinutes=function(a){this.date.setMinutes(a)};g.setSeconds=function(a){this.date.setSeconds(a)};g.setMilliseconds=function(a){this.date.setMilliseconds(a)};g.setUTCHours=function(a){this.date.setUTCHours(a)};g.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
g.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};g.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};g.add=function(a){Uj.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
g.toIsoString=function(a){var b=Uj.prototype.toIsoString.call(this,a);return a?b+"T"+Kv(this.getHours(),2)+":"+Kv(this.getMinutes(),2)+":"+Kv(this.getSeconds(),2):b+"T"+Kv(this.getHours(),2)+Kv(this.getMinutes(),2)+Kv(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new bk(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var Bbc=/\s+/,Cbc=[],Mv=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=Cbc;this.stateMap=new Map};Mv.prototype.ngDoCheck=function(){for(var a=l(this.initialClasses),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);a=this.rawClass;if(Array.isArray(a)||a instanceof Set)for(a=l(a),b=a.next();!b.done;b=a.next())this._updateState(b.value,!0);else if(a!=null){b=l(Object.keys(a));for(var c=b.next();!c.done;c=b.next())c=c.value,this._updateState(c,!!a[c])}this._applyStateDiff()};
Mv.prototype._updateState=function(a,b){var c=this.stateMap.get(a);c!==void 0?(c.enabled!==b&&(c.changed=!0,c.enabled=b),c.touched=!0):this.stateMap.set(a,{enabled:b,changed:!0,touched:!0})};Mv.prototype._applyStateDiff=function(){for(var a=l(this.stateMap),b=a.next();!b.done;b=a.next()){var c=b.value;b=c[0];c=c[1];c.changed?(this._toggleClass(b,c.enabled),c.changed=!1):c.touched||(c.enabled&&this._toggleClass(b,!1),this.stateMap.delete(b));c.touched=!1}};
Mv.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(Bbc).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};ea.Object.defineProperties(Mv.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(Bbc):Cbc}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(Bbc):a}}});
Mv.\u0275fac=function(a){return new (a||Mv)(zf(ff),zf(jv))};Mv.\u0275dir=Kf({type:Mv,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var Dbc=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};ea.Object.defineProperties(Dbc.prototype,{first:{configurable:!0,enumerable:!0,get:function(){return this.index===0}},last:{configurable:!0,enumerable:!0,get:function(){return this.index===this.count-1}},even:{configurable:!0,enumerable:!0,get:function(){return this.index%2===0}},odd:{configurable:!0,enumerable:!0,get:function(){return!this.even}}});
var Nv=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Nv.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var a=this._ngForOf;!this._differ&&a&&(this._differ=this._differs.find(a).create(this.ngForTrackBy))}this._differ&&(a=this._differ.diff(this._ngForOf))&&this._applyChanges(a)};
Nv.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;sac(a,function(h,k,q){h.previousIndex==null?c.createEmbeddedView(b._template,new Dbc(h.item,b._ngForOf,-1,-1),q===null?void 0:q):q==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,q),k.context.$implicit=h.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}tac(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
ea.Object.defineProperties(Nv.prototype,{ngForOf:{configurable:!0,enumerable:!0,set:function(a){this._ngForOf=a;this._ngForOfDirty=!0}},ngForTrackBy:{configurable:!0,enumerable:!0,set:function(a){this._trackByFn=a},get:function(){return this._trackByFn}},ngForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._template=a)}}});Nv.\u0275fac=function(a){return new (a||Nv)(zf(Ug),zf(Tg),zf(sv))};
Nv.\u0275dir=Kf({type:Nv,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var Ov=function(a,b){this._viewContainer=a;this._context=new Ebc;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Ov.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))};
ea.Object.defineProperties(Ov.prototype,{ngIf:{configurable:!0,enumerable:!0,set:function(a){this._context.$implicit=this._context.ngIf=a;this._updateView()}},ngIfThen:{configurable:!0,enumerable:!0,set:function(a){Ena(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Ena(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Ov.\u0275fac=function(a){return new (a||Ov)(zf(Ug),zf(Tg))};
Ov.\u0275dir=Kf({type:Ov,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Ebc=function(){this.ngIf=this.$implicit=null};var Pv=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};Pv.prototype.ngOnChanges=function(a){if(this._shouldRecreateView(a))if(a=this._viewContainerRef,this._viewRef&&a.remove(a.indexOf(this._viewRef)),this.ngTemplateOutlet){var b=this._createContextForwardProxy(),c;this._viewRef=a.createEmbeddedView(this.ngTemplateOutlet,b,{injector:(c=this.ngTemplateOutletInjector)!=null?c:void 0})}else this._viewRef=null};
Pv.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};Pv.prototype._createContextForwardProxy=function(){var a=this;return new Proxy({},{set:function(b,c,d){return a.ngTemplateOutletContext?Reflect.set(a.ngTemplateOutletContext,c,d):!1},get:function(b,c,d){if(a.ngTemplateOutletContext)return Reflect.get(a.ngTemplateOutletContext,c,d)}})};Pv.\u0275fac=function(a){return new (a||Pv)(zf(Ug))};
Pv.\u0275dir=Kf({type:Pv,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Uu]});var Fbc=function(){};Fbc.prototype.createSubscription=function(a,b,c){return gd(function(){return a.subscribe({next:b,error:c})})};Fbc.prototype.dispose=function(a){gd(function(){return a.unsubscribe()})};var Gbc=function(){};Gbc.prototype.createSubscription=function(a,b,c){return a.then(b,c)};Gbc.prototype.dispose=function(){};
var Hbc=new Gbc,Ibc=new Fbc,Qv=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=n(sh);this._ref=a};g=Qv.prototype;g.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};
g.transform=function(a){if(!this._obj){if(a)try{this.markForCheckOnValueUpdate=!1,this._subscribe(a)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue};g._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)},function(c){return b.applicationErrorHandler(c)})};
g._selectStrategy=function(a){if(Mf(a))return Hbc;if(Cja(a))return Ibc;throw ki();};g._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};g._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};Qv.\u0275fac=function(a){return new (a||Qv)(zf(qv,16))};Qv.\u0275pipe=Lf({name:"async",type:Qv,pure:!1});var Rv=function(){};Rv.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw ki();return a.toLowerCase()};Rv.\u0275fac=function(a){return new (a||Rv)};Rv.\u0275pipe=Lf({name:"lowercase",type:Rv,pure:!0});
var Jbc=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Sv=
function(){};Sv.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw ki();return a.replace(Jbc,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Sv.\u0275fac=function(a){return new (a||Sv)};Sv.\u0275pipe=Lf({name:"titlecase",type:Sv,pure:!0});var doa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oi={},Rna=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Una={};var Kbc=new yd(""),Lbc=new yd(""),Tv=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};Tv.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,h=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,q,u,A=(u=(q=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?q:this.defaultTimezone)!=null?u:void 0;return Yna(a,h,d||this.locale,A)}catch(G){throw ki();}};
Tv.\u0275fac=function(a){return new (a||Tv)(zf(uh,16),zf(Kbc,24),zf(Lbc,24))};Tv.\u0275pipe=Lf({name:"date",type:Tv,pure:!0});var Uv=function(){};Uv.prototype.transform=function(a){return JSON.stringify(a,null,2)};Uv.\u0275fac=function(a){return new (a||Uv)};Uv.\u0275pipe=Lf({name:"json",type:Uv,pure:!1});var Vv=function(a){this.differs=a;this.keyValues=[];this.compareFn=foa};Vv.prototype.transform=function(a,b){var c=this;b=b===void 0?foa:b;if(!a||!(a instanceof Map)&&typeof a!=="object")return null;this.differ!=null||(this.differ=this.differs.find(a).create());a=this.differ.diff(a);var d=b!==this.compareFn;a&&(this.keyValues=[],a.forEachItem(function(e){c.keyValues.push({key:e.key,value:e.currentValue})}));if(a||d)b&&this.keyValues.sort(b),this.compareFn=b;return this.keyValues};
Vv.\u0275fac=function(a){return new (a||Vv)(zf(tv,16))};Vv.\u0275pipe=Lf({name:"keyvalue",type:Vv,pure:!1});var ioa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var Wv=function(a){this._locale=a};
Wv.prototype.transform=function(a,b,c){if(a==null||a===""||a!==a)return null;c||(c=this._locale);try{if(typeof a!=="string"||isNaN(Number(a)-parseFloat(a))){if(typeof a!=="number")throw Error("mb`"+a);var d=a}else d=Number(a);a=d;var e=Jg(c)[14][0],f=ji(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],u=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],A=u[0],G=u[1]||"";d.posPre=A.substring(0,A.indexOf("#"));for(e=0;e<G.length;e++){var H=G.charAt(e);H==="0"?d.minFrac=d.maxFrac=e+1:H==="#"?d.maxFrac=e+1:d.posSuf+=H}var N=A.split(",");d.gSize=N[1]?N[1].length:0;d.lgSize=N[2]||N[1]?(N[2]||N[1]).length:0;if(q){var O=k.length-d.posPre.length-d.posSuf.length,U=q.indexOf("#");d.negPre=q.substring(0,U).replace(/'/g,"");d.negSuf=q.slice(U+O).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return loa(a,d,c,b)}catch(da){throw ki();}};
Wv.\u0275fac=function(a){return new (a||Wv)(zf(uh,16))};Wv.\u0275pipe=Lf({name:"number",type:Wv,pure:!0});var Xv=function(){};Xv.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw ki();return a.slice(b,c)};Xv.\u0275fac=function(a){return new (a||Xv)};Xv.\u0275pipe=Lf({name:"slice",type:Xv,pure:!1});var Yv=function(){};Yv.\u0275fac=function(a){return new (a||Yv)};Yv.\u0275mod=Jf({type:Yv});Yv.\u0275inj=Tc({});var Mbc=function(a){return a.src};new yd("",{providedIn:"root",factory:function(){return Mbc}});var Ei=new yd("");new yd("");new yd("",{providedIn:"root",factory:function(){return new Set}});var Nbc=null,Obc=function(){};var Zv=function(){};Zv.prototype.historyGo=function(){throw Error("wa");};Zv.\u0275fac=function(a){return new (a||Zv)};Zv.\u0275prov=Sc({token:Zv,factory:function(){return n($v)},providedIn:"platform"});var Pbc=new yd(""),$v=function(){this._doc=n(Ei);this._location=window.location;this._history=window.history};Y($v,Zv);$v.prototype.onPopState=function(a){var b=Qbc(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var Rbc=function(a,b){var c=Qbc(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=$v.prototype;g.pushState=function(a,b,c){this._history.pushState(a,b,c)};g.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};g.forward=function(){this._history.forward()};g.back=function(){this._history.back()};g.historyGo=function(a){this._history.go(a===void 0?0:a)};g.getState=function(){return this._history.state};
ea.Object.defineProperties($v.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return this._location.href}},protocol:{configurable:!0,enumerable:!0,get:function(){return this._location.protocol}},hostname:{configurable:!0,enumerable:!0,get:function(){return this._location.hostname}},port:{configurable:!0,enumerable:!0,get:function(){return this._location.port}},pathname:{configurable:!0,enumerable:!0,get:function(){return this._location.pathname},set:function(a){this._location.pathname=
a}},search:{configurable:!0,enumerable:!0,get:function(){return this._location.search}},hash:{configurable:!0,enumerable:!0,get:function(){return this._location.hash}}});$v.\u0275fac=function(a){return new (a||$v)};$v.\u0275prov=Sc({token:$v,factory:function(){return new $v},providedIn:"platform"});var aw=function(){};aw.prototype.historyGo=function(){throw Error("wa");};aw.\u0275fac=function(a){return new (a||aw)};aw.\u0275prov=Sc({token:aw,factory:function(){return n(bw)},providedIn:"root"});var Sbc=new yd(""),bw=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:Nbc.getBaseHref())!=null?d:(c=n(Ei).location)==null?void 0:c.origin)!=null?e:""};Y(bw,aw);g=bw.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Rbc(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return moa(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+qi(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+qi(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+qi(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};bw.\u0275fac=function(a){return new (a||bw)(nd(Zv),nd(Sbc,8))};bw.\u0275prov=Sc({token:bw,factory:bw.\u0275fac,providedIn:"root"});var cw=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Y(cw,aw);g=cw.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Rbc(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};
g.path=function(){var a,b=(a=this._platformLocation.hash)!=null?a:"#";return b.length>0?b.substring(1):b};g.prepareExternalUrl=function(a){a=moa(this._baseHref,a);return a.length>0?"#"+a:a};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+qi(d))||this._platformLocation.pathname)};g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+qi(d))||this._platformLocation.pathname)};g.forward=function(){this._platformLocation.forward()};
g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};cw.\u0275fac=function(a){return new (a||cw)(nd(Zv),nd(Sbc,8))};cw.\u0275prov=Sc({token:cw,factory:cw.\u0275fac});var dw=function(a){var b=this;this._subject=new bg;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=ooa(noa(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.next({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};g=dw.prototype;g.ngOnDestroy=function(){var a;(a=this._urlChangeSubscription)==null||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._locationStrategy.path(a===void 0?!1:a))};g.getState=function(){return this._locationStrategy.getState()};g.normalize=function(a){var b=this._basePath;a=a.replace(/\/index.html$/,"");b&&a.startsWith(b)?(b=a.substring(b.length),b=b===""||["/",";","?","#"].includes(b[0])?b:a):b=a;return noa(b)};g.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+qi(b)),c)};g.replaceState=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+qi(b)),c)};g.forward=function(){this._locationStrategy.forward()};g.back=function(){this._locationStrategy.back()};
g.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};g._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};g.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};dw.\u0275fac=function(a){return new (a||dw)(nd(aw))};dw.\u0275prov=Sc({token:dw,factory:function(){return new dw(nd(aw))},providedIn:"root"});var Tbc=function(){};Tbc.\u0275prov=Sc({token:Tbc,providedIn:"root",factory:function(){return new Ubc}});var Ubc=function(){var a=n(Ei),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},Vbc=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};Ubc.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};var Wbc=function(){};var soa,toa="color button checkbox date datetime-local email file hidden image month number password radio range reset search submit tel text time url week".split(" ");var ti;var xoa,vi;var zoa;var Xbc;try{Xbc=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){Xbc=!1}
var ew=function(){this.EDGE=(this.isBrowser=(this._platformId=n(E$b))?this._platformId==="browser":typeof document==="object"&&!!document)&&/(edge)/i.test(navigator.userAgent);this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);this.BLINK=this.isBrowser&&!(!window.chrome&&!Xbc)&&typeof CSS!=="undefined"&&!this.EDGE&&!this.TRIDENT;this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&
!("MSStream"in window);this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};ew.\u0275fac=function(a){return new (a||ew)};ew.\u0275prov=Sc({token:ew,factory:ew.\u0275fac,providedIn:"root"});var Ybc=new yd("cdk-input-modality-detector-options"),Zbc={ignoreKeys:[18,17,224,91,16]},$bc={passive:!0,capture:!0},fw=function(){var a=this;this._platform=n(ew);this._mostRecentTarget=null;this._modality=new tj(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;((h=a._options)==null?0:(k=h.ignoreKeys)==null?0:k.some(function(q){return q===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=xi(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(poa(f)?
"keyboard":"mouse"),a._mostRecentTarget=xi(f))};this._onTouchstart=function(f){qoa(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=xi(f))};var b=n(ph),c=n(Ei),d=n(Ybc,{optional:!0});this._options=Object.assign({},Zbc,d);this.modalityDetected=this._modality.pipe(dg(1));this.modalityDetected.pipe(Xf());if(this._platform.isBrowser){var e=n(Ff).createRenderer(null,null);this._listenerCleanups=b.runOutsideAngular(function(){return[si(e,c,"keydown",
a._onKeydown,$bc),si(e,c,"mousedown",a._onMousedown,$bc),si(e,c,"touchstart",a._onTouchstart,$bc)]})}};fw.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};ea.Object.defineProperties(fw.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});fw.\u0275fac=function(a){return new (a||fw)};fw.\u0275prov=Sc({token:fw,factory:fw.\u0275fac,providedIn:"root"});var acc=new yd("cdk-focus-monitor-default-options"),bcc=ui({passive:!0,capture:!0}),gw=function(){var a=this;this._ngZone=n(ph);this._platform=n(ew);this._inputModalityDetector=n(fw);this._origin=null;this._originFromTouchInteraction=this._windowFocused=!1;this._elementInfo=new Map;this._monitoredElementCount=0;this._rootNodeFocusListenerCount=new Map;this._windowFocusListener=function(){a._windowFocused=!0;a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})};this._document=
n(Ei,{optional:!0});this._stopInputModalityDetector=new bg;this._rootNodeFocusAndBlurListener=function(c){for(var d=xi(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=n(acc,{optional:!0}))==null?void 0:b.detectionMode)||0};
gw.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=Bi(a);if(!this._platform.isBrowser||a.nodeType!==1)return Ce();var c=Aoa(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new bg,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
gw.prototype.stopMonitoring=function(a){a=Bi(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var hw=function(a,b,c,d){b=Bi(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=l(e);e=f.next().value;f=f.next().value;return a._originChanged(e,c,f)}):(a._setOrigin(c),typeof b.focus==="function"&&b.focus(d))};g=gw.prototype;
g.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};g._getDocument=function(){return this._document||document};g._getWindow=function(){return this._getDocument().defaultView||window};
g._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:a&&this._isLastInteractionFromInputLabel(a)?"mouse":"program"};g._shouldBeAttributedToTouch=function(a){return this._detectionMode===1||!(a==null||!a.contains(this._inputModalityDetector._mostRecentTarget))};
g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused",b==="touch");a.classList.toggle("cdk-keyboard-focused",b==="keyboard");a.classList.toggle("cdk-mouse-focused",b==="mouse");a.classList.toggle("cdk-program-focused",b==="program")};
g._setOrigin=function(a,b){var c=this;b=b===void 0?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction=a==="touch"&&b;c._detectionMode===0&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=xi(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,bcc);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,bcc)});this._rootNodeFocusListenerCount.set(c,a+1);++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(gg(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
g._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);b>1?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bcc),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bcc),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};g._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};g._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
g._isLastInteractionFromInputLabel=function(a){var b=this._inputModalityDetector,c=b._mostRecentTarget;if(b.mostRecentModality!=="mouse"||!c||c===a||a.nodeName!=="INPUT"&&a.nodeName!=="TEXTAREA"||a.disabled)return!1;if(a=a.labels)for(b=0;b<a.length;b++)if(a[b].contains(c))return!0;return!1};gw.\u0275fac=function(a){return new (a||gw)};gw.\u0275prov=Sc({token:gw,factory:gw.\u0275fac,providedIn:"root"});
var iw=function(){this._elementRef=n(ff);this._focusMonitor=n(gw);this._focusOrigin=null;this.cdkFocusChange=new hv};iw.prototype.ngAfterViewInit=function(){var a=this,b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,b.nodeType===1&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){a._focusOrigin=c;a.cdkFocusChange.emit(c)})};iw.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
ea.Object.defineProperties(iw.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});iw.\u0275fac=function(a){return new (a||iw)};iw.\u0275dir=Kf({type:iw,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var jw=function(){this._platform=n(ew)};jw.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};jw.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var ccc=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(h){c=null}if(c&&(Doa(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=Doa(b);if(b.hasAttribute("contenteditable"))a=d!==-1;else{var e;if(!(e=c==="iframe"||c==="object")&&(e=a._platform.WEBKIT&&a._platform.IOS)){e=b.nodeName.toLowerCase();var f=e==="input"&&b.type;e=!(f==="text"||f==="password"||e==="select"||e==="textarea")}a=e?!1:c==="audio"?
b.hasAttribute("controls")?d!==-1:!1:c==="video"?d===-1?!1:d!==null?!0:a._platform.FIREFOX||b.hasAttribute("controls"):b.tabIndex>=0}return a};
jw.prototype.isFocusable=function(a,b){if(a.nodeName.toLowerCase()=="input"&&a.type=="hidden")var c=!1;else c=a.nodeName.toLowerCase(),c=c==="input"||c==="select"||c==="button"||c==="textarea"||a.nodeName.toLowerCase()=="a"&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||Coa(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};jw.\u0275fac=function(a){return new (a||jw)};jw.\u0275prov=Sc({token:jw,factory:jw.\u0275fac,providedIn:"root"});var dcc=new WeakMap,kw=function(){this._injector=n(Ze);this._environmentInjector=n(Ef)};kw.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(vh),c=dcc.get(b);c||(c={loaders:new Set,refs:[]},dcc.set(b,c),b.onDestroy(function(){var d;(d=dcc.get(b))==null||d.refs.forEach(function(e){return e.destroy()});dcc.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(wma(a,{environmentInjector:this._environmentInjector})))};kw.\u0275fac=function(a){return new (a||kw)};
kw.\u0275prov=Sc({token:kw,factory:kw.\u0275fac,providedIn:"root"});var lw=function(){};lw.\u0275fac=function(a){return new (a||lw)};lw.\u0275cmp=B({type:lw,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}\n"],encapsulation:2,changeDetection:0});var ow=function(a,b,c,d,e,f){var h=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._injector=f;this._hasAttached=!1;this.startAnchorListener=function(){return ecc(h)};this.endAnchorListener=function(){return mw(h)};this._enabled=!0;(e===void 0?0:e)||nw(this)};
ow.prototype.destroy=function(){var a=this._startAnchor,b=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove());b&&(b.removeEventListener("focus",this.endAnchorListener),b.remove());this._startAnchor=this._endAnchor=null;this._hasAttached=!1};
var nw=function(a){a._hasAttached||(a._ngZone.runOutsideAngular(function(){a._startAnchor||(a._startAnchor=a._createAnchor(),a._startAnchor.addEventListener("focus",a.startAnchorListener));a._endAnchor||(a._endAnchor=a._createAnchor(),a._endAnchor.addEventListener("focus",a.endAnchorListener))}),a._element.parentNode&&(a._element.parentNode.insertBefore(a._startAnchor,a._element),a._element.parentNode.insertBefore(a._endAnchor,a._element.nextSibling),a._hasAttached=!0))},fcc=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})};
ow.prototype._getRegionBoundary=function(a){var b=this._element.querySelectorAll("[cdk-focus-region-"+a+"], [cdkFocusRegion"+(a+"], [cdk-focus-")+(a+"]"));return a=="start"?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)};
ow.prototype.focusInitialElement=function(){var a=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(a){if(!this._checker.isFocusable(a))return a=this._getFirstTabbableElement(a),a==null||a.focus(void 0),!!a;a.focus(void 0);return!0}return mw(this)};var mw=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},ecc=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=ow.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&ccc(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};g._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&ccc(this._checker,a))return a;a=a.children;for(var b=a.length-1;b>=0;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
g._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};g._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var gcc=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
ow.prototype._executeOnStable=function(a){this._injector?$e(a,{injector:this._injector}):setTimeout(a)};ea.Object.defineProperties(ow.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled=a;this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}}});var pw=function(){this._checker=n(jw);this._ngZone=n(ph);this._document=n(Ei);this._injector=n(Ze);n(kw).load(lw)};
pw.prototype.create=function(a,b){return new ow(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};pw.\u0275fac=function(a){return new (a||pw)};pw.\u0275prov=Sc({token:pw,factory:pw.\u0275fac,providedIn:"root"});var qw=function(){this._elementRef=n(ff);this._focusTrapFactory=n(pw);this._previouslyFocusedElement=null;n(ew).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};g=qw.prototype;
g.ngOnDestroy=function(){var a;(a=this.focusTrap)==null||a.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){var a;(a=this.focusTrap)==null||nw(a);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&nw(this.focusTrap)};
g.ngOnChanges=function(a){a=a.autoCapture;var b;a&&!a.firstChange&&this.autoCapture&&((b=this.focusTrap)==null?0:b.hasAttached())&&this._captureFocus()};g._captureFocus=function(){this._previouslyFocusedElement=wi();var a;(a=this.focusTrap)==null||fcc(a)};ea.Object.defineProperties(qw.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.focusTrap)==null?void 0:a.enabled)||!1},set:function(a){this.focusTrap&&(this.focusTrap.enabled=a)}}});
qw.\u0275fac=function(a){return new (a||qw)};qw.\u0275dir=Kf({type:qw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Dh],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Dh]},exportAs:["cdkTrapFocus"],features:[Uu]});var hcc=new Set,rw,sw=function(){this._platform=n(ew);this._nonce=n(F$b,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Eoa};sw.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!hcc.has(a))try{rw||(rw=document.createElement("style"),b&&rw.setAttribute("nonce",b),rw.setAttribute("type","text/css"),document.head.appendChild(rw)),rw.sheet&&(rw.sheet.insertRule("@media "+a+" {body{ }}",0),hcc.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
sw.\u0275fac=function(a){return new (a||sw)};sw.\u0275prov=Sc({token:sw,factory:sw.\u0275fac,providedIn:"root"});var tw=function(){this._mediaMatcher=n(sw);this._zone=n(ph);this._queries=new Map;this._destroySubject=new bg};tw.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
tw.prototype.observe=function(a){var b=this;a=Foa(yi(a)).map(function(c){return b._registerQuery(c).observable});a=Je(a);a=Ne(a.pipe(Uf()),a.pipe(dg(1),Sf(0)));return a.pipe(y(function(c){var d={matches:!1,breakpoints:{}};c.forEach(function(e){var f=e.matches;e=e.query;d.matches=d.matches||f;d.breakpoints[e]=f});return d}))};
tw.prototype._registerQuery=function(a){var b=this;if(this._queries.has(a))return this._queries.get(a);var c=this._mediaMatcher.matchMedia(a),d={observable:(new pe(function(e){var f=function(h){return b._zone.run(function(){return e.next(h)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(eg(c),y(function(e){return{query:a,matches:e.matches}}),gg(this._destroySubject)),mql:c};this._queries.set(a,d);return d};tw.\u0275fac=function(a){return new (a||tw)};
tw.\u0275prov=Sc({token:tw,factory:tw.\u0275fac,providedIn:"root"});var uw=function(){var a=this;this._platform=n(ew);this._document=n(Ei);this._breakpointSubscription=n(tw).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},icc=function(a){if(!a._platform.isBrowser)return 0;var b=a._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)";b.style.position="absolute";a._document.body.appendChild(b);a=(a=a._document.defaultView||window)&&a.getComputedStyle?
a.getComputedStyle(b):null;a=(a&&a.backgroundColor||"").replace(/ /g,"");b.remove();switch(a){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return 2;case "rgb(255,255,255)":case "rgb(255,250,239)":return 1}return 0};uw.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
uw.prototype._applyBodyHighContrastModeCssClasses=function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var a=this._document.body.classList;a.remove("cdk-high-contrast-active","cdk-high-contrast-black-on-white","cdk-high-contrast-white-on-black");this._hasCheckedHighContrastMode=!0;var b=icc(this);b===1?a.add("cdk-high-contrast-active","cdk-high-contrast-black-on-white"):b===2&&a.add("cdk-high-contrast-active","cdk-high-contrast-white-on-black")}};
uw.\u0275fac=function(a){return new (a||uw)};uw.\u0275prov=Sc({token:uw,factory:uw.\u0275fac,providedIn:"root"});var jcc=new yd("liveAnnouncerElement",{providedIn:"root",factory:Goa}),kcc=new yd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var vw=function(){};vw.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};vw.\u0275fac=function(a){return new (a||vw)};vw.\u0275prov=Sc({token:vw,factory:vw.\u0275fac,providedIn:"root"});var ww=function(){this._mutationObserverFactory=n(vw);this._observedElements=new Map;this._ngZone=n(ph)};g=ww.prototype;g.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
g.observe=function(a){var b=this,c=Bi(a);return new pe(function(d){var e=b._observeElement(c).pipe(y(function(f){return f.filter(function(h){return!Hoa(h)})}),Ve(function(f){return!!f.length})).subscribe(function(f){b._ngZone.run(function(){d.next(f)})});return function(){e.unsubscribe();b._unobserveElement(c)}})};
g._observeElement=function(a){var b=this;return this._ngZone.runOutsideAngular(function(){if(b._observedElements.has(a))b._observedElements.get(a).count++;else{var c=new bg,d=b._mutationObserverFactory.create(function(e){return c.next(e)});d&&d.observe(a,{characterData:!0,childList:!0,subtree:!0});b._observedElements.set(a,{observer:d,stream:c,count:1})}return b._observedElements.get(a).stream})};
g._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};g._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};ww.\u0275fac=function(a){return new (a||ww)};ww.\u0275prov=Sc({token:ww,factory:ww.\u0275fac,providedIn:"root"});
var xw=function(){this._contentObserver=n(ww);this._elementRef=n(ff);this.event=new hv;this._disabled=!1;this._currentSubscription=null};xw.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};xw.prototype.ngOnDestroy=function(){this._unsubscribe()};xw.prototype._subscribe=function(){this._unsubscribe();var a=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?a.pipe(Sf(this.debounce)):a).subscribe(this.event)};
xw.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};ea.Object.defineProperties(xw.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=a)?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=Ci(a);this._subscribe()}}});xw.\u0275fac=function(a){return new (a||xw)};
xw.\u0275dir=Kf({type:xw,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Dh],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var yw=function(){};yw.\u0275fac=function(a){return new (a||yw)};yw.\u0275mod=Jf({type:yw});yw.\u0275inj=Tc({providers:[vw]});var lcc=0,zw=function(){this._ngZone=n(ph);this._defaultOptions=n(kcc,{optional:!0});this._document=n(Ei);this._liveElement=n(jcc,{optional:!0})||this._createLiveElement()};g=zw.prototype;
g.announce=function(a){var b=ud.apply(1,arguments),c=this,d=this._defaultOptions;if(b.length===1&&typeof b[0]==="number")var e=b[0];else{b=l(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");e==null&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(h){return c._currentResolve=h}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;typeof e==="number"&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));var h;(h=c._currentResolve)==null||h.call(c);c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};g.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
g.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;(a=this._liveElement)==null||a.remove();this._liveElement=null;var b;(b=this._currentResolve)==null||b.call(this);this._currentPromise=this._currentResolve=void 0};
g._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");b.id="cdk-live-announcer-"+lcc++;this._document.body.appendChild(b);return b};
g._exposeAnnouncerToModals=function(a){for(var b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};zw.\u0275fac=function(a){return new (a||zw)};zw.\u0275prov=Sc({token:zw,factory:zw.\u0275fac,providedIn:"root"});var Aw=function(){n(uw)._applyBodyHighContrastModeCssClasses()};Aw.\u0275fac=function(a){return new (a||Aw)};Aw.\u0275mod=Jf({type:Aw});Aw.\u0275inj=Tc({imports:[yw]});var Loa=0,Bw=function(){this._platform=n(ew);this._document=n(Ei);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+Loa++;n(kw).load(lw);this._id=n(D$b)+"-"+Loa++},mcc=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=Koa(c,d);typeof c!=="string"?(Moa(c,a._id),a._messageRegistry.set(e,{messageElement:c,referenceCount:0})):a._messageRegistry.has(e)||a._createMessageElement(c,d);a._isElementDescribedByMessage(b,e)||a._addMessageReference(b,e)}},Cw=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
Koa(c,d);a._isElementDescribedByMessage(b,d)&&a._removeMessageReference(b,d);typeof c==="string"&&(b=a._messageRegistry.get(d))&&b.referenceCount===0&&a._deleteMessageElement(d);var e;((e=a._messagesContainer)==null?void 0:e.childNodes.length)===0&&(a._messagesContainer.remove(),a._messagesContainer=null)}};g=Bw.prototype;
g.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;(c=this._messagesContainer)==null||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
g._createMessageElement=function(a,b){var c=this._document.createElement("div");Moa(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(Koa(a,b),{messageElement:c,referenceCount:0})};g._deleteMessageElement=function(a){var b,c;(b=this._messageRegistry.get(a))==null||(c=b.messageElement)==null||c.remove();this._messageRegistry.delete(a)};
g._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
g._removeCdkDescribedByReferenceIds=function(a){var b=Ioa(a,"aria-describedby").filter(function(c){return c.indexOf("cdk-describedby-message")!=0});a.setAttribute("aria-describedby",b.join(" "))};g._addMessageReference=function(a,b){b=this._messageRegistry.get(b);Joa(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Di(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};g._isElementDescribedByMessage=function(a,b){a=Ioa(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!=-1};
g._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&typeof b==="object")return!0;b=b==null?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};g._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};Bw.\u0275fac=function(a){return new (a||Bw)};Bw.\u0275prov=Sc({token:Bw,factory:Bw.\u0275fac,providedIn:"root"});var Dw=function(a,b,c,d,e,f,h,k){ow.call(this,a,b,c,d,h.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Y(Dw,ow);Dw.prototype.destroy=function(){this._focusTrapManager.deregister(this);ow.prototype.destroy.call(this)};Dw.prototype._enable=function(){this._inertStrategy.preventFocus(this);gcc(this,!0)};Dw.prototype._disable=function(){this._inertStrategy.allowFocus(this);gcc(this,!1)};
ea.Object.defineProperties(Dw.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){(this._enabled=a)?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}}});var ncc=function(){this._listener=null};ncc.prototype.preventFocus=function(a){var b=this;this._listener&&a._document.removeEventListener("focus",this._listener,!0);this._listener=function(c){return b._trapFocus(a,c)};a._ngZone.runOutsideAngular(function(){a._document.addEventListener("focus",b._listener,!0)})};ncc.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
ncc.prototype._trapFocus=function(a,b){b=b.target;var c=a._element,d;!b||c.contains(b)||((d=b.closest)==null?0:d.call(b,"div.cdk-overlay-pane"))||setTimeout(function(){a.enabled&&!c.contains(a._document.activeElement)&&mw(a)})};var occ=new yd("FOCUS_TRAP_INERT_STRATEGY");var Ew=function(){this._focusTrapStack=[]};Ew.prototype.register=function(a){var b=this._focusTrapStack=this._focusTrapStack.filter(function(c){return c!==a});b.length&&b[b.length-1]._disable();b.push(a);a._enable()};Ew.prototype.deregister=function(a){a._disable();var b=this._focusTrapStack;a=b.indexOf(a);a!==-1&&(b.splice(a,1),b.length&&b[b.length-1]._enable())};Ew.\u0275fac=function(a){return new (a||Ew)};Ew.\u0275prov=Sc({token:Ew,factory:Ew.\u0275fac,providedIn:"root"});var Fw=function(){this._checker=n(jw);this._ngZone=n(ph);this._focusTrapManager=n(Ew);this._document=n(Ei);this._injector=n(Ze);this._inertStrategy=n(occ,{optional:!0})||new ncc};Fw.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new Dw(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};Fw.\u0275fac=function(a){return new (a||Fw)};Fw.\u0275prov=Sc({token:Fw,factory:Fw.\u0275fac,providedIn:"root"});var pcc={},Gw=function(){this._appId=n(D$b)};Gw.prototype.getId=function(a){this._appId!=="ng"&&(a+=this._appId);pcc.hasOwnProperty(a)||(pcc[a]=0);return a+pcc[a]++};Gw.\u0275fac=function(a){return new (a||Gw)};Gw.\u0275prov=Sc({token:Gw,factory:Gw.\u0275fac,providedIn:"root"});var qcc=function(a,b){this._letterKeyStream=new bg;this._items=[];this._selectedItemIndex=-1;this._pressedLetters=[];this.selectedItem=this._selectedItem=new bg;var c=typeof(b==null?void 0:b.debounceInterval)==="number"?b.debounceInterval:200;if(b==null?0:b.skipPredicate)this._skipPredicateFn=b.skipPredicate;this.setItems(a);this._setupKeyHandler(c)};g=qcc.prototype;g.destroy=function(){this._pressedLetters=[];this._letterKeyStream.complete();this._selectedItem.complete()};
g.setItems=function(a){this._items=a};g.handleKey=function(a){var b=a.keyCode;a.key&&a.key.length===1?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(b>=65&&b<=90||b>=48&&b<=57)&&this._letterKeyStream.next(String.fromCharCode(b))};g.isTyping=function(){return this._pressedLetters.length>0};g.reset=function(){this._pressedLetters=[]};
g._setupKeyHandler=function(a){var b=this;this._letterKeyStream.pipe(hg(function(c){return b._pressedLetters.push(c)}),Sf(a),Ve(function(){return b._pressedLetters.length>0}),y(function(){return b._pressedLetters.join("").toLocaleUpperCase()})).subscribe(function(c){for(var d=1;d<b._items.length+1;d++){var e=b._items[(b._selectedItemIndex+d)%b._items.length],f=void 0,h=void 0,k=void 0,q=void 0;if(((h=(f=b)._skipPredicateFn)==null||!h.call(f,e))&&((q=(k=e).getLabel)==null?void 0:q.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var Hw=function(a,b){var c=this;this._items=a;this._activeItemIndex=-1;this._activeItem=bh(null);this._wrap=!1;this._typeaheadSubscription=ke.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._pageUpAndDown={enabled:!1,delta:10};this._skipPredicateFn=function(d){return d.disabled};this.tabOut=new bg;this.change=new bg;a instanceof Vg?this._itemChangesSubscription=a.changes.subscribe(function(d){return c._itemsChanged(d.toArray())}):Nf(a)&&(this._effectRef=qma(function(){return c._itemsChanged(a())},
{injector:b}))};Hw.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var Iw=function(a){a._wrap=!0;return a},Jw=function(a,b){a._vertical=b===void 0?!0:b;return a},Kw=function(a,b){a._horizontal=b;return a},rcc=function(a){a._allowedModifierKeys=["shiftKey"];return a},scc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new qcc(c,{debounceInterval:typeof b==="number"?b:void 0,skipPredicate:function(d){return a._skipPredicateFn(d)}});a._typeaheadSubscription=a._typeahead.selectedItem.subscribe(function(d){a.setActiveItem(d)});
return a},Lw=function(a){a._homeAndEnd=!0;return a},tcc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};Hw.prototype.setActiveItem=function(a){var b=this._activeItem();Mw(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex)};
Hw.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(h){return!a[h]||b._allowedModifierKeys.indexOf(h)>-1});switch(c){case 9:this.tabOut.next();return;case 40:if(this._vertical&&d){this.setNextItemActive();break}else return;case 38:if(this._vertical&&d){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&d){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){this._setActiveItemByIndex(0,1);break}else return;case 35:if(this._homeAndEnd&&d){ucc(this);break}else return;case 33:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(c>0?c:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&d){c=this._activeItemIndex+this._pageUpAndDown.delta;d=this._getItemsArray().length;
this._setActiveItemByIndex(c<d?c:d-1,-1);break}else return;default:if(d||ri(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};Hw.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var ucc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};Hw.prototype.setNextItemActive=function(){this._activeItemIndex<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
Hw.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?ucc(this):this._setActiveItemByDelta(-1)};var Mw=function(a,b){var c=a._getItemsArray();b=typeof b==="number"?b:c.indexOf(b);c=c[b];a._activeItem.set(c==null?null:c);a._activeItemIndex=b;(a=a._typeahead)!=null&&(a._selectedItemIndex=b)};g=Hw.prototype;
g.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._itemChangesSubscription)==null||a.unsubscribe();var b;(b=this._effectRef)==null||b.destroy();var c;(c=this._typeahead)==null||c.destroy();this.tabOut.complete();this.change.complete()};g._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
g._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};g._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)};g._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};
g._getItemsArray=function(){return Nf(this._items)?this._items():this._items instanceof Vg?this._items.toArray():this._items};g._itemsChanged=function(a){var b;(b=this._typeahead)==null||b.setItems(a);if(b=this._activeItem())a=a.indexOf(b),a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a,(b=this._typeahead)!=null&&(b._selectedItemIndex=a))};
ea.Object.defineProperties(Hw.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var Nw=function(){Hw.apply(this,arguments)};Y(Nw,Hw);Nw.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Hw.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var Ow=function(){Hw.apply(this,arguments);this._origin="program"};Y(Ow,Hw);var vcc=function(a,b){a._origin=b;return a};Ow.prototype.setActiveItem=function(a){Hw.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var wcc=function(a,b){var c=this;this._activeItemIndex=-1;this._activeItem=null;this._shouldActivationFollowFocus=!1;this._horizontalOrientation="ltr";this._skipPredicateFn=function(){return!1};this._trackByFn=function(d){return d};this._items=[];this._typeaheadSubscription=ke.EMPTY;this._hasInitialFocused=!1;this.change=new bg;a instanceof Vg?(this._items=a.toArray(),a.changes.subscribe(function(d){c._items=d.toArray();var e;(e=c._typeahead)==null||e.setItems(c._items);c._updateActiveItemIndex(c._items);
c._initializeFocus()})):dha(a)?a.subscribe(function(d){c._items=d;var e;(e=c._typeahead)==null||e.setItems(d);c._updateActiveItemIndex(d);c._initializeFocus()}):(this._items=a,this._initializeFocus());typeof b.shouldActivationFollowFocus==="boolean"&&(this._shouldActivationFollowFocus=b.shouldActivationFollowFocus);b.horizontalOrientation&&(this._horizontalOrientation=b.horizontalOrientation);b.skipPredicate&&(this._skipPredicateFn=b.skipPredicate);b.trackBy&&(this._trackByFn=b.trackBy);typeof b.typeAheadDebounceInterval!==
"undefined"&&this._setTypeAhead(b.typeAheadDebounceInterval)};g=wcc.prototype;
g._initializeFocus=function(){if(!this._hasInitialFocused&&this._items.length!==0){for(var a=0,b=0;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b])&&!this._isItemDisabled(this._items[b])){a=b;break}b=this._items[a];if(b.makeFocusable){var c;(c=this._activeItem)==null||c.unfocus();this._activeItemIndex=a;this._activeItem=b;(c=this._typeahead)!=null&&(c._selectedItemIndex=a);b.makeFocusable()}else Pw(this,a);this._hasInitialFocused=!0}};
g.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._typeahead)==null||a.destroy();this.change.complete()};
g.onKeydown=function(a){switch(a.key){case "Tab":return;case "ArrowDown":this._focusNextItem();break;case "ArrowUp":this._focusPreviousItem();break;case "ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case "ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case "Home":this._focusFirstItem();break;case "End":this._focusLastItem();break;case "Enter":case " ":this._activateCurrentItem();
break;default:if(a.key==="*")this._expandAllItemsAtCurrentItemLevel();else{var b;(b=this._typeahead)==null||b.handleKey(a);return}}var c;(c=this._typeahead)==null||c.reset();a.preventDefault()};g._focusFirstItem=function(){Pw(this,this._findNextAvailableItemIndex(-1))};g._focusLastItem=function(){Pw(this,this._findPreviousAvailableItemIndex(this._items.length))};g._focusNextItem=function(){Pw(this,this._findNextAvailableItemIndex(this._activeItemIndex))};g._focusPreviousItem=function(){Pw(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var Pw=function(a,b){var c=c===void 0?{}:c;c.emitChangeEvent!=null||(c.emitChangeEvent=!0);var d=typeof b==="number"?b:a._items.findIndex(function(k){return a._trackByFn(k)===a._trackByFn(b)});if(!(d<0||d>=a._items.length)){var e=a._items[d];if(a._activeItem===null||a._trackByFn(e)!==a._trackByFn(a._activeItem)){var f=a._activeItem;a._activeItem=e!=null?e:null;a._activeItemIndex=d;(e=a._typeahead)!=null&&(e._selectedItemIndex=d);var h;(h=a._activeItem)==null||h.focus();f==null||f.unfocus();c.emitChangeEvent&&
a.change.next(a._activeItem);a._shouldActivationFollowFocus&&a._activateCurrentItem()}}};g=wcc.prototype;g._updateActiveItemIndex=function(a){var b=this,c=this._activeItem;if(c&&(a=a.findIndex(function(e){return b._trackByFn(e)===b._trackByFn(c)}),a>-1&&a!==this._activeItemIndex)){this._activeItemIndex=a;var d;(d=this._typeahead)!=null&&(d._selectedItemIndex=a)}};
g._setTypeAhead=function(a){var b=this;this._typeahead=new qcc(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){Pw(b,c)})};g._findNextAvailableItemIndex=function(a){for(var b=a+1;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b]))return b;return a};
g._findPreviousAvailableItemIndex=function(a){for(var b=a-1;b>=0;b--)if(!this._skipPredicateFn(this._items[b]))return b;return a};g._collapseCurrentItem=function(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{var a=this._activeItem.getParent();a&&!this._skipPredicateFn(a)&&Pw(this,a)}};
g._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?Noa(this._activeItem.getChildren()).pipe(Uf()).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&Pw(a,b)}):this._activeItem.expand())};g._isCurrentItemExpanded=function(){return this._activeItem?typeof this._activeItem.isExpanded==="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1};
g._isItemDisabled=function(a){var b;return typeof a.isDisabled==="boolean"?a.isDisabled:(b=a.isDisabled)==null?void 0:b.call(a)};g._expandAllItemsAtCurrentItemLevel=function(){if(this._activeItem){var a=this._activeItem.getParent();(a?Noa(a.getChildren()):Ce(this._items.filter(function(b){return b.getParent()===null}))).pipe(Uf()).subscribe(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};g._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new yd("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new wcc(a,b)}}});var xcc=new yd("cdk-dir-doc",{providedIn:"root",factory:Ooa});var ycc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Qw=function(){this.value="ltr";this.change=new hv;var a=n(xcc,{optional:!0});if(a){var b=a.documentElement?a.documentElement.dir:null;b=(a.body?a.body.dir:null)||b||"ltr";b=(b==null?void 0:b.toLowerCase())||"";var c;this.value=b==="auto"&&typeof navigator!=="undefined"&&((c=navigator)==null?0:c.language)?ycc.test(navigator.language)?"rtl":"ltr":b==="rtl"?"rtl":"ltr"}};
Qw.prototype.ngOnDestroy=function(){this.change.complete()};Qw.\u0275fac=function(a){return new (a||Qw)};Qw.\u0275prov=Sc({token:Qw,factory:Qw.\u0275fac,providedIn:"root"});var Rw=function(){};Rw.\u0275fac=function(a){return new (a||Rw)};Rw.\u0275mod=Jf({type:Rw});Rw.\u0275inj=Tc({});var Sw=function(){this._attachedOverlays=[];this._document=n(Ei)};Sw.prototype.ngOnDestroy=function(){this.detach()};Sw.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};Sw.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};Sw.\u0275fac=function(a){return new (a||Sw)};Sw.\u0275prov=Sc({token:Sw,factory:Sw.\u0275fac,providedIn:"root"});var Tw=function(){Sw.apply(this,arguments);var a=this;this._ngZone=n(ph);this._renderer=n(Ff).createRenderer(null,null);this._keydownListener=function(b){var c=a._attachedOverlays,d={};for(d.i$jscomp$566=c.length-1;d.i$jscomp$566>-1;d={i$jscomp$566:d.i$jscomp$566},d.i$jscomp$566--)if(c[d.i$jscomp$566]._keydownEvents.observers.length>0){a._ngZone.run(function(e){return function(){return c[e.i$jscomp$566]._keydownEvents.next(b)}}(d));break}}};Y(Tw,Sw);
Tw.prototype.add=function(a){var b=this;Sw.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};Tw.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);this._isAttached=!1}};Tw.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Tw)))(b||Tw)}}();Tw.\u0275prov=Sc({token:Tw,factory:Tw.\u0275fac,providedIn:"root"});var Uw=function(){Sw.apply(this,arguments);var a=this;this._platform=n(ew);this._ngZone=n(ph);this._renderer=n(Ff).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=xi(b)};this._clickListener=function(b){var c=xi(b),d=b.type==="click"&&a._pointerDownEventTarget?a._pointerDownEventTarget:c;a._pointerDownEventTarget=null;for(var e=a._attachedOverlays.slice(),f={},h=e.length-1;h>-1;f={outsidePointerEvents:void 0},h--){var k=e[h];if(!(k._outsidePointerEvents.observers.length<
1)&&k.hasAttached()){if(Poa(k.overlayElement,c)||Poa(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(q){return function(){return q.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Y(Uw,Sw);
Uw.prototype.add=function(a){var b=this;Sw.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body,d={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(function(){return[si(b._renderer,c,"pointerdown",b._pointerDownListener,d),si(b._renderer,c,"click",b._clickListener,d),si(b._renderer,c,"auxclick",b._clickListener,d),si(b._renderer,c,"contextmenu",b._clickListener,d)]});this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor=
"pointer",this._cursorStyleIsSet=!0);this._isAttached=!0}};Uw.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanups)==null||a.forEach(function(b){return b()});this._cleanups=void 0;this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1);this._isAttached=!1}};Uw.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Uw)))(b||Uw)}}();Uw.\u0275prov=Sc({token:Uw,factory:Uw.\u0275fac,providedIn:"root"});var Vw=function(){};Vw.\u0275fac=function(a){return new (a||Vw)};
Vw.\u0275cmp=B({type:Vw,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,
changeDetection:0});var Ww=function(){this._platform=n(ew);this._document=n(Ei);this._styleLoader=n(kw)};Ww.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var zcc=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
Ww.prototype._createContainer=function(){if(this._platform.isBrowser||Boa())for(var a=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.classList.add("cdk-overlay-container");Boa()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
Ww.prototype._loadStyles=function(){this._styleLoader.load(Vw)};Ww.\u0275fac=function(a){return new (a||Ww)};Ww.\u0275prov=Sc({token:Ww,factory:Ww.\u0275fac,providedIn:"root"});var Acc=woa(),Bcc=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};Bcc.prototype.attach=function(){};
Bcc.prototype.enable=function(){if(this._canBeEnabled()){var a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition();this._previousHTMLStyles.left=a.style.left||"";this._previousHTMLStyles.top=a.style.top||"";a.style.left=Ai(-this._previousScrollPosition.left);a.style.top=Ai(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
Bcc.prototype.disable=function(){if(this._isEnabled){var a=this._document.documentElement,b=a.style,c=this._document.body.style,d=b.scrollBehavior||"",e=c.scrollBehavior||"";this._isEnabled=!1;b.left=this._previousHTMLStyles.left;b.top=this._previousHTMLStyles.top;a.classList.remove("cdk-global-scrollblock");Acc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);Acc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
Bcc.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.body,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};var Ccc=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._ngZone=b;this._viewportRuler=c;this._config=d;this._scrollSubscription=null;this._detach=function(){e.disable();e._overlayRef.hasAttached()&&e._ngZone.run(function(){return e._overlayRef.detach()})}};Ccc.prototype.attach=function(a){this._overlayRef=a};
Ccc.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(Ve(function(c){return!c||!a._overlayRef.overlayElement.contains(c.elementRef.nativeElement)}));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=b.subscribe(function(){var c=a._viewportRuler.getViewportScrollPosition().top;Math.abs(c-a._initialScrollPosition)>a._config.threshold?
a._detach():a._overlayRef.updatePosition()})):this._scrollSubscription=b.subscribe(this._detach)}};Ccc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};Ccc.prototype.detach=function(){this.disable();this._overlayRef=null};var Dcc=function(){};Dcc.prototype.enable=function(){};Dcc.prototype.disable=function(){};Dcc.prototype.attach=function(){};var Ecc=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};Ecc.prototype.attach=function(a){this._overlayRef=a};
Ecc.prototype.enable=function(){var a=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){a._overlayRef.updatePosition();if(a._config&&a._config.autoClose){var b=a._overlayRef.overlayElement.getBoundingClientRect(),c=a._viewportRuler.getViewportSize(),d=c.width;c=c.height;Qoa(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
Ecc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};Ecc.prototype.detach=function(){this.disable();this._overlayRef=null};new yd("VIRTUAL_SCROLL_STRATEGY");var Xw=function(){this._ngZone=n(ph);this._platform=n(ew);this._renderer=n(Ff).createRenderer(null,null);this._scrolled=new bg;this._scrolledCount=0;this.scrollContainers=new Map};Xw.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};Xw.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
Xw.prototype.scrolled=function(a){var b=this;a=a===void 0?20:a;return this._platform.isBrowser?new pe(function(c){b._cleanupGlobalListener||(b._cleanupGlobalListener=b._ngZone.runOutsideAngular(function(){return b._renderer.listen("document","scroll",function(){return b._scrolled.next()})}));var d=a>0?b._scrolled.pipe(Of(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;if(!b._scrolledCount){var e;(e=b._cleanupGlobalListener)==null||
e.call(b);b._cleanupGlobalListener=void 0}}}):Ce()};Xw.prototype.ngOnDestroy=function(){var a=this,b;(b=this._cleanupGlobalListener)==null||b.call(this);this._cleanupGlobalListener=void 0;this.scrollContainers.forEach(function(c,d){return a.deregister(d)});this._scrolled.complete()};var Fcc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
Xw.prototype._scrollableContainsElement=function(a,b){b=Bi(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};Xw.\u0275fac=function(a){return new (a||Xw)};Xw.\u0275prov=Sc({token:Xw,factory:Xw.\u0275fac,providedIn:"root"});var Yw=function(){this.elementRef=n(ff);this.scrollDispatcher=n(Xw);this.ngZone=n(ph);this.dir=n(Qw,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new bg;this._renderer=n(jv);this._elementScrolled=new bg};Yw.prototype.ngOnInit=function(){var a=this;this._cleanupScroll=this.ngZone.runOutsideAngular(function(){return a._renderer.listen(a._scrollElement,"scroll",function(b){return a._elementScrolled.next(b)})});this.scrollDispatcher.register(this)};
Yw.prototype.ngOnDestroy=function(){var a;(a=this._cleanupScroll)==null||a.call(this);this._elementScrolled.complete();this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
Yw.prototype.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&this.dir.value=="rtl";a.left==null&&(a.left=c?a.end:a.start);a.right==null&&(a.right=c?a.start:a.end);a.bottom!=null&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&yoa()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),yoa()==2?a.left=a.right:yoa()==1&&(a.left=a.right?-a.right:a.right)):a.right!=null&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
Yw.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;woa()?b.scrollTo(a):(a.top!=null&&(b.scrollTop=a.top),a.left!=null&&(b.scrollLeft=a.left))};Yw.\u0275fac=function(a){return new (a||Yw)};Yw.\u0275dir=Kf({type:Yw,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var Gcc=new yd("_ViewRepeater");var Hcc=function(){};Hcc.prototype.applyChanges=function(a,b,c,d,e){sac(a,function(f,h,k){if(f.previousIndex==null){var q=c(f,h,k);q=b.createEmbeddedView(q.templateRef,q.context,q.index);h=1}else k==null?(b.remove(h),h=3):(q=b.get(h),b.move(q,k),h=2);if(e){var u;e({context:(u=q)==null?void 0:u.context,operation:h,record:f})}})};Hcc.prototype.detach=function(){};var Icc=function(){this._viewCache=[]};g=Icc.prototype;g.applyChanges=function(a,b,c,d,e){var f=this;sac(a,function(h,k,q){var u;if(h.previousIndex==null)var A=(u=f._insertView(function(){return c(h,k,q)},q,b,d(h)))?1:0;else q==null?(f._detachAndCacheView(k,b),A=3):(u=f._moveView(k,q,b,d(h)),A=2);if(e){var G;e({context:(G=u)==null?void 0:G.context,operation:A,record:h})}})};g.detach=function(){for(var a=l(this._viewCache),b=a.next();!b.done;b=a.next())b.value.destroy();this._viewCache=[]};
g._insertView=function(a,b,c,d){if(b=this._insertViewFromCache(b,c))b.context.$implicit=d;else return a=a(),c.createEmbeddedView(a.templateRef,a.context,a.index)};g._detachAndCacheView=function(a,b){a=b.detach(a);this._maybeCacheView(a,b)};g._moveView=function(a,b,c,d){a=c.get(a);c.move(a,b);a.context.$implicit=d;return a};g._maybeCacheView=function(a,b){if(this._viewCache.length<20)this._viewCache.push(a);else{var c=b.indexOf(a);c===-1?a.destroy():b.remove(c)}};
g._insertViewFromCache=function(a,b){var c=this._viewCache.pop();c&&b.insert(c,a);return c||null};var Zw=function(a,b,c,d){var e=this;a=a===void 0?!1:a;c=c===void 0?!0:c;this._multiple=a;this._emitChanges=c;this.compareWith=d;this._selection=new Set;this._deselectedToEmit=[];this._selectedToEmit=[];this.changed=new bg;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=Zw.prototype;
g.select=function(){var a=this;ud.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.deselect=function(){var a=this;ud.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
g.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};g.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};g.isEmpty=function(){return this._selection.size===0};g.hasValue=function(){return!this.isEmpty()};g.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
g._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};g._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};g._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};g._verifyValueAssignment=function(){};g._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
g._getConcreteValue=function(a,b){if(this.compareWith){var c;b=(c=b)!=null?c:this._selection;b=l(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c}return a};ea.Object.defineProperties(Zw.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var $w=function(){this._listeners=[]};$w.prototype.notify=function(a,b){for(var c=l(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};$w.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};$w.prototype.ngOnDestroy=function(){this._listeners=[]};$w.\u0275fac=function(a){return new (a||$w)};$w.\u0275prov=Sc({token:$w,factory:$w.\u0275fac,providedIn:"root"});var ax=function(){var a=this;this._platform=n(ew);this._change=new bg;this._document=n(Ei,{optional:!0});var b=n(ph),c=n(Ff).createRenderer(null,null);b.runOutsideAngular(function(){if(a._platform.isBrowser){var d=function(e){return a._change.next(e)};a._listeners=[c.listen("window","resize",d),c.listen("window","orientationchange",d)]}a.change().subscribe(function(){return a._viewportSize=null})})};g=ax.prototype;
g.ngOnDestroy=function(){var a;(a=this._listeners)==null||a.forEach(function(b){return b()});this._change.complete()};g.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
g.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};g.change=function(a){a=a===void 0?20:a;return a>0?this._change.pipe(Of(a)):this._change};g._getWindow=function(){return this._document.defaultView||window};
g._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};ax.\u0275fac=function(a){return new (a||ax)};ax.\u0275prov=Sc({token:ax,factory:ax.\u0275fac,providedIn:"root"});new yd("VIRTUAL_SCROLLABLE");var bx=function(){};bx.\u0275fac=function(a){return new (a||bx)};bx.\u0275mod=Jf({type:bx});bx.\u0275inj=Tc({});var cx=function(){};cx.\u0275fac=function(a){return new (a||cx)};cx.\u0275mod=Jf({type:cx});cx.\u0275inj=Tc({imports:[Rw,bx,Rw,bx]});var dx=function(){var a=this;this._scrollDispatcher=n(Xw);this._viewportRuler=n(ax);this._ngZone=n(ph);this._document=n(Ei);this.noop=function(){return new Dcc};this.close=function(b){return new Ccc(a._scrollDispatcher,a._ngZone,a._viewportRuler,b)};this.block=function(){return new Bcc(a._viewportRuler,a._document)};this.reposition=function(b){return new Ecc(a._scrollDispatcher,a._viewportRuler,a._ngZone,b)}};dx.\u0275fac=function(a){return new (a||dx)};
dx.\u0275prov=Sc({token:dx,factory:dx.\u0275fac,providedIn:"root"});var ex=function(a){this.scrollStrategy=new Dcc;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c]!==void 0&&(this[c]=a[c])}};var Jcc=function(a,b,c,d){var e=this;this._renderer=b;this._ngZone=c;this.dispose=function(){clearTimeout(e._fallbackTimeout);var f;(f=e._cleanupClick)==null||f.call(e);var h;(h=e._cleanupTransitionEnd)==null||h.call(e);e._cleanupClick=e._cleanupTransitionEnd=e._fallbackTimeout=void 0;e.element.remove()};this.element=a.createElement("div");this.element.classList.add("cdk-overlay-backdrop");this._cleanupClick=b.listen(this.element,"click",d)};
Jcc.prototype.detach=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a.element;clearTimeout(a._fallbackTimeout);var c;(c=a._cleanupTransitionEnd)==null||c.call(a);a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a.dispose);a._fallbackTimeout=setTimeout(a.dispose,500);b.style.pointerEvents="none";b.classList.remove("cdk-overlay-backdrop-showing")})};var fx=function(a,b,c,d,e,f,h,k,q,u,A,G){var H=this;u=u===void 0?!1:u;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=u;this._injector=A;this._renderer=G;this._backdropClick=new bg;this._attachments=new bg;this._detachments=new bg;this._locationChanges=ke.EMPTY;this._backdropRef=null;this._keydownEvents=new bg;this._outsidePointerEvents=new bg;this._renders=
new bg;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy;this._afterRenderRef=gd(function(){return rha(function(){H._renders.next()},{injector:H._injector})})};g=fx.prototype;
g.attach=function(a){var b=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);a=this._portalOutlet.attach(a);this._positionStrategy&&this._positionStrategy.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();var c;(c=this._afterNextRenderRef)==null||c.destroy();this._afterNextRenderRef=$e(function(){b.hasAttached()&&b.updatePosition()},{injector:this._injector});
this._togglePointerEvents(!0);this._config.hasBackdrop&&this._attachBackdrop();this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0);this._attachments.next();this._keyboardDispatcher.add(this);this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return b.dispose()}));this._outsideClickDispatcher.add(this);if(typeof(a==null?void 0:a.onDestroy)==="function")a.onDestroy(function(){b.hasAttached()&&b._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return b.detach()})})});
return a};g.detach=function(){if(this.hasAttached()){Kcc(this);this._togglePointerEvents(!1);this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach();this._scrollStrategy&&this._scrollStrategy.disable();var a=this._portalOutlet.detach();this._detachments.next();this._keyboardDispatcher.remove(this);this._detachContentWhenEmpty();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
g.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();var b;(b=this._backdropRef)==null||b.dispose();this._locationChanges.unsubscribe();this._keyboardDispatcher.remove(this);this._portalOutlet.dispose();this._attachments.complete();this._backdropClick.complete();this._keydownEvents.complete();this._outsidePointerEvents.complete();this._outsideClickDispatcher.remove(this);var c;(c=this._host)==null||c.remove();var d;(d=
this._afterNextRenderRef)==null||d.destroy();this._previousHostParent=this._pane=this._host=this._backdropRef=null;a&&this._detachments.next();this._detachments.complete();this._afterRenderRef.destroy();this._renders.complete()};g.hasAttached=function(){return this._portalOutlet.hasAttached()};g.backdropClick=function(){return this._backdropClick};g.attachments=function(){return this._attachments};g.keydownEvents=function(){return this._keydownEvents};g.outsidePointerEvents=function(){return this._outsidePointerEvents};
g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};var Lcc=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};fx.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
fx.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};fx.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};fx.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var Mcc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};g=fx.prototype;g._updateElementDirection=function(){this._host.setAttribute("dir",Mcc(this))};
g._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Ai(this._config.width);a.height=Ai(this._config.height);a.minWidth=Ai(this._config.minWidth);a.minHeight=Ai(this._config.minHeight);a.maxWidth=Ai(this._config.maxWidth);a.maxHeight=Ai(this._config.maxHeight)}};g._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
g._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new Jcc(this._document,this._renderer,this._ngZone,function(c){a._backdropClick.next(c)});this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0);this._host.parentElement.insertBefore(this._backdropRef.element,this._host);this._animationsDisabled||
typeof requestAnimationFrame==="undefined"?this._backdropRef.element.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c;return(c=a._backdropRef)==null?void 0:c.element.classList.add("cdk-overlay-backdrop-showing")})})};g._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var Kcc=function(a){if(a._animationsDisabled){var b;(b=a._backdropRef)==null||b.dispose();a._backdropRef=null}else{var c;(c=a._backdropRef)==null||c.detach()}};fx.prototype._toggleClasses=function(a,b,c){b=yi(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,p(b)):a.classList.remove.apply(a.classList,p(b)))};
fx.prototype._detachContentWhenEmpty=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._renders.pipe(gg(Ue(a._attachments,a._detachments))).subscribe(function(){a._pane&&a._host&&a._pane.children.length!==0||(a._pane&&a._config.panelClass&&a._toggleClasses(a._pane,a._config.panelClass,!1),a._host&&a._host.parentElement&&(a._previousHostParent=a._host.parentElement,a._host.remove()),b.unsubscribe())})})};
fx.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a==null||a.disable();var b;a==null||(b=a.detach)==null||b.call(a)};ea.Object.defineProperties(fx.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var Ncc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var Toa=/([A-Za-z%]+)$/,gx=function(a,b,c,d,e){this._viewportRuler=b;this._document=c;this._platform=d;this._overlayContainer=e;this._lastBoundingBoxSize={width:0,height:0};this._isPushed=!1;this._canPush=!0;this._growAfterOpen=!1;this._hasFlexibleDimensions=!0;this._positionLocked=!1;this._viewportMargin=0;this._scrollables=[];this._preferredPositions=[];this._positionChanges=new bg;this._resizeSubscription=ke.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};gx.prototype.attach=function(a){var b=this;a.hostElement.classList.add("cdk-overlay-connected-position-bounding-box");this._overlayRef=a;this._boundingBox=a.hostElement;this._pane=a.overlayElement;this._isDisposed=!1;this._isInitialRender=!0;this._lastPosition=null;this._resizeSubscription.unsubscribe();this._resizeSubscription=this._viewportRuler.change().subscribe(function(){b._isInitialRender=!0;b.apply()})};
gx.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)Occ(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=zcc(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=l(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),u=this._getOverlayPoint(q,b,k),A=this._getOverlayFit(u,b,c,k);if(A.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(A,u,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<A.visibleArea)f={overlayFit:A,
overlayPoint:u,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=l(e);for(c=e.next();!c.done;c=e.next())c=c.value,d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1),d>b&&(b=d,a=c);this._isPushed=!1;this._applyPosition(a.position,a.origin)}else this._canPush&&(this._isPushed=!0),this._applyPosition(f.position,f.originPoint)}};gx.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
gx.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Fi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)};
var Occ=function(a){if(!a._isDisposed&&a._platform.isBrowser){var b=a._lastPosition;if(b){a._originRect=a._getOriginRect();a._overlayRect=a._pane.getBoundingClientRect();a._viewportRect=a._getNarrowedViewportRect();a._containerRect=zcc(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},Pcc=function(a,b){a._scrollables=b;return a},hx=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},ix=function(a,b){a._viewportMargin=b;return a},jx=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},Qcc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},Rcc=function(a,b){a._canPush=b===void 0?!0:b;return a},Scc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};gx.prototype.setOrigin=function(a){this._origin=a;return this};var Tcc=function(a,b){a._transformOriginSelector=b;return a};g=gx.prototype;
g._getOriginPoint=function(a,b,c){if(c.originX=="center")var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d=c.originX=="start"?d:e}b.left<0&&(d-=b.left);a=c.originY=="center"?a.top+a.height/2:c.originY=="top"?a.top:a.bottom;b.top<0&&(a-=b.top);return{x:d,y:a}};
g._getOverlayPoint=function(a,b,c){var d=c.overlayX=="center"?-b.width/2:c.overlayX==="start"?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+(c.overlayY=="center"?-b.height/2:c.overlayY=="top"?0:-b.height)}};
g._getOverlayFit=function(a,b,c,d){b=Voa(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
g._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=Uoa(this._overlayRef.getConfig().minHeight);var e=Uoa(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||e!=null&&e<=c;return(a.fitsInViewportVertically||b!=null&&b<=d)&&c}return!1};
g._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=Voa(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),h=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._viewportMargin?d.left-c.left-a.x:0;c=b.height<=d.height?h||-f:a.y<this._viewportMargin?d.top-c.top-a.y:0;this._previousPushAmount={x:e,y:c};
return{x:a.x+e,y:a.y+c}};
g._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);if(this._positionChanges.observers.length){b=this._getScrollVisibility();var c;if(c=a===this._lastPosition&&this._lastScrollVisibility)c=this._lastScrollVisibility,c=c===b?!0:c.isOriginClipped===b.isOriginClipped&&c.isOriginOutsideView===b.isOriginOutsideView&&c.isOverlayClipped===b.isOverlayClipped&&c.isOverlayOutsideView===
b.isOverlayOutsideView;c||this._positionChanges.next(new Ncc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a=a.overlayX==="center"?"center":this._isRtl()?a.overlayX==="start"?"right":"left":a.overlayX==="start"?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if(b.overlayY==="top"){var e=a.y;var f=c.height-e+this._viewportMargin}else if(b.overlayY==="bottom"){var h=c.height-a.y+this._viewportMargin*2;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=e*2;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k=b.overlayX==="start"&&!d||b.overlayX==="end"&&d;if(b.overlayX==="end"&&!d||b.overlayX===
"start"&&d){var q=c.width-a.x+this._viewportMargin*2;b=a.x-this._viewportMargin}else if(k){var u=a.x;b=c.right-a.x}else u=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=u*2,u=a.x-u,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-c/2);return{top:e,left:u,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=Ai(a.height);c.top=Ai(a.top);c.bottom=Ai(a.bottom);
c.width=Ai(a.width);c.left=Ai(a.left);c.right=Ai(a.right);c.alignItems=b.overlayX==="center"?"center":b.overlayX==="end"?"flex-end":"flex-start";c.justifyContent=b.overlayY==="center"?"center":b.overlayY==="bottom"?"flex-end":"flex-start";d&&(c.maxHeight=Ai(d));e&&(c.maxWidth=Ai(e))}this._lastBoundingBoxSize=a;Fi(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){Fi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){Fi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
g._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var h=this._viewportRuler.getViewportScrollPosition();Fi(c,this._getExactOverlayY(b,a,h));Fi(c,this._getExactOverlayX(b,a,h))}else c.position="static";a="";h=this._getOffset(b,"x");b=this._getOffset(b,"y");h&&(a+="translateX("+h+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Ai(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Ai(f.maxWidth):e&&(c.maxWidth=""));Fi(this._pane.style,c)};g._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));a.overlayY==="bottom"?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=Ai(b.y);return d};
g._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));(this._isRtl()?a.overlayX==="end"?"left":"right":a.overlayX==="end"?"right":"left")==="right"?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=Ai(b.x);return d};
g._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:Roa(a,c),isOriginOutsideView:Qoa(a,c),isOverlayClipped:Roa(b,c),isOverlayOutsideView:Qoa(b,c)}};g._subtractOverflows=function(a){return ud.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
g._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+a-this._viewportMargin,bottom:c.top+b-this._viewportMargin,width:a-2*this._viewportMargin,height:b-2*this._viewportMargin}};g._isRtl=function(){return Mcc(this._overlayRef)==="rtl"};
g._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};g._getOffset=function(a,b){return b==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY};g._validatePositions=function(){};g._addPanelClasses=function(a){var b=this;this._pane&&yi(a).forEach(function(c){c!==""&&b._appliedPanelClasses.indexOf(c)===-1&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
g._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};g._getOriginRect=function(){var a=this._origin;if(a instanceof ff)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();var b=a.width||0,c=a.height||0;return{top:a.y,bottom:a.y+c,left:a.x,right:a.x+b,height:c,width:b}};
ea.Object.defineProperties(gx.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var Ucc=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=Ucc.prototype;g.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
g.top=function(a){this._bottomOffset="";this._topOffset=a===void 0?"":a;this._alignItems="flex-start";return this};g.left=function(a){this._xOffset=a===void 0?"":a;this._xPosition="left";return this};g.bottom=function(a){this._topOffset="";this._bottomOffset=a===void 0?"":a;this._alignItems="flex-end";return this};g.right=function(a){this._xOffset=a===void 0?"":a;this._xPosition="right";return this};g.start=function(a){this._xOffset=a===void 0?"":a;this._xPosition="start";return this};
g.end=function(a){this._xOffset=a===void 0?"":a;this._xPosition="end";return this};g.width=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};g.height=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var kx=function(a){a.left("");a._xPosition="center";return a},Vcc=function(a){a.top("");a._alignItems="center";return a};
Ucc.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=(d==="100%"||d==="100vw")&&(!f||f==="100%"||f==="100vw");e=(e==="100%"||e==="100vh")&&(!c||c==="100%"||c==="100vh");f=this._xPosition;c=this._xOffset;var h=this._overlayRef.getConfig().direction==="rtl",k="",q="",u="";if(d)u="flex-start";else if(f==="center")u=
"center",h?q=c:k=c;else if(h)if(f==="left"||f==="end")u="flex-end",k=c;else{if(f==="right"||f==="start")u="flex-start",q=c}else if(f==="left"||f==="start")u="flex-start",k=c;else if(f==="right"||f==="end")u="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=u;b.alignItems=e?"flex-start":this._alignItems}};
Ucc.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement,c=b.style;b.classList.remove("cdk-global-overlay-wrapper");c.justifyContent=c.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="";this._overlayRef=null;this._isDisposed=!0}};var lx=function(){this._viewportRuler=n(ax);this._document=n(Ei);this._platform=n(ew);this._overlayContainer=n(Ww)};lx.prototype.global=function(){return new Ucc};var mx=function(a,b){return new gx(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};lx.\u0275fac=function(a){return new (a||lx)};lx.\u0275prov=Sc({token:lx,factory:lx.\u0275fac,providedIn:"root"});var nx=function(){};nx.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};nx.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};ea.Object.defineProperties(nx.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var ox=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Y(ox,nx);
var px=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Y(px,nx);px.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return nx.prototype.attach.call(this,a)};px.prototype.detach=function(){this.context=void 0;return nx.prototype.detach.call(this)};ea.Object.defineProperties(px.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var qx=function(){this._isDisposed=!1};g=qx.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof ox)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof px)return this._attachedPortal=a,this.attachTemplatePortal(a)};g.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};g.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
g.setDisposeFn=function(a){this._disposeFn=a};g._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var rx=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Y(rx,qx);
rx.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(Yu,null,{optional:!0})||void 0;var d=a.viewContainerRef.createComponent(a.component,{index:a.viewContainerRef.length,injector:b,ngModuleRef:c,projectableNodes:a.projectableNodes||void 0});this.setDisposeFn(function(){return d.destroy()})}else{var e=this._appRef;b=a.injector||this._defaultInjector||Y9b;c=b.get(Ef,e.injector);d=wma(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});gac(e,d.hostView);this.setDisposeFn(function(){e.viewCount>0&&e.detachView(d.hostView);d.destroy()})}this.outletElement.appendChild(this._getComponentRootNode(d));this._attachedPortal=a;return d};
rx.prototype.attachTemplatePortal=function(a){var b=this,c=a.viewContainerRef,d=c.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});d.rootNodes.forEach(function(e){return b.outletElement.appendChild(e)});d.detectChanges();this.setDisposeFn(function(){var e=c.indexOf(d);e!==-1&&c.remove(e)});this._attachedPortal=a;return d};rx.prototype.dispose=function(){qx.prototype.dispose.call(this);this.outletElement.remove()};rx.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var sx=function(){var a=n(Tg),b=n(Ug);px.call(this,a,b)};Y(sx,px);sx.\u0275fac=function(a){return new (a||sx)};sx.\u0275dir=Kf({type:sx,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[kg]});var tx=function(){this._isDisposed=!1;this._moduleRef=n(Yu,{optional:!0});this._document=n(Ei);this._viewContainerRef=n(Ug);this._isInitialized=!1;this.attached=new hv};Y(tx,qx);g=tx.prototype;g.ngOnInit=function(){this._isInitialized=!0};
g.ngOnDestroy=function(){qx.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
g.attachComponentPortal=function(a){a._attachedHost=this;var b=a.viewContainerRef!=null?a.viewContainerRef:this._viewContainerRef,c=b.createComponent(a.component,{index:b.length,injector:a.injector||b.injector,projectableNodes:a.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});b!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]);qx.prototype.setDisposeFn.call(this,function(){return c.destroy()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);
return c};g.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});qx.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};g._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
ea.Object.defineProperties(tx.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&qx.prototype.detach.call(this),a&&qx.prototype.attach.call(this,a),this._attachedPortal=a||null}}});tx.\u0275fac=function(a){return new (a||tx)};
tx.\u0275dir=Kf({type:tx,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[kg]});var ux=function(){};ux.\u0275fac=function(a){return new (a||ux)};ux.\u0275mod=Jf({type:ux});ux.\u0275inj=Tc({});var vx=function(){this.scrollStrategies=n(dx);this._overlayContainer=n(Ww);this._positionBuilder=n(lx);this._keyboardDispatcher=n(Tw);this._injector=n(Ze);this._ngZone=n(ph);this._document=n(Ei);this._directionality=n(Qw);this._location=n(dw);this._outsideClickDispatcher=n(Uw);this._animationsModuleType=n(Gi,{optional:!0});this._idGenerator=n(Gw);this._renderer=n(Ff).createRenderer(null,null);this._styleLoader=n(kw)};g=vx.prototype;
g.create=function(a){this._styleLoader.load(Vw);var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c),e=new ex(a);e.direction=e.direction||this._directionality.value;var f;return new fx(d,b,c,e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,(f=a==null?void 0:a.disableAnimations)!=null?f:this._animationsModuleType==="NoopAnimations",this._injector.get(Ef),this._renderer)};g.position=function(){return this._positionBuilder};
g._createPaneElement=function(a){var b=this._document.createElement("div");b.id=this._idGenerator.getId("cdk-overlay-");b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");zcc(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(vh));return new rx(a,this._appRef,this._injector)};vx.\u0275fac=function(a){return new (a||vx)};
vx.\u0275prov=Sc({token:vx,factory:vx.\u0275fac,providedIn:"root"});var Wcc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Xcc=new yd("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition()}}}),wx=function(){this.elementRef=n(ff)};
wx.\u0275fac=function(a){return new (a||wx)};wx.\u0275dir=Kf({type:wx,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var xx=function(){this._overlay=n(vx);this._dir=n(Qw,{optional:!0});this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=ke.EMPTY;this._scrollStrategyFactory=n(Xcc);this._disposeOnNavigation=!1;this._ngZone=n(ph);this.viewportMargin=0;this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.backdropClick=new hv;this.positionChange=new hv;this.attach=new hv;this.detach=new hv;this.overlayKeydown=
new hv;this.overlayOutsideClick=new hv;var a=n(Tg),b=n(Ug);this._templatePortal=new px(a,b);this.scrollStrategy=this._scrollStrategyFactory()};g=xx.prototype;g.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();var a;(a=this._overlayRef)==null||a.dispose()};
g.ngOnChanges=function(a){if(this._position){this._updatePositionStrategy(this._position);var b;(b=this._overlayRef)==null||b.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight});a.origin&&this.open&&this._position.apply()}a.open&&(this.open?Ycc(this):Zcc(this))};
g._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=Wcc);var b=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=b.attachments().subscribe(function(){return a.attach.emit()});this._detachSubscription=b._detachments.subscribe(function(){return a.detach.emit()});b.keydownEvents().subscribe(function(c){a.overlayKeydown.next(c);c.keyCode!==27||a.disableClose||ri(c)||(c.preventDefault(),Zcc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=xi(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
g._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new ex({direction:this._dir||"ltr",positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});if(this.width||this.width===0)a.width=this.width;if(this.height||this.height===0)a.height=this.height;if(this.minWidth||this.minWidth===0)a.minWidth=this.minWidth;if(this.minHeight||this.minHeight===0)a.minHeight=this.minHeight;this.backdropClass&&
(a.backdropClass=this.backdropClass);this.panelClass&&(a.panelClass=this.panelClass);return a};
g._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return Tcc(Scc(ix(Qcc(Rcc(jx(hx(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=mx(this._overlay.position(),this._getOrigin());this._updatePositionStrategy(a);return a};g._getOrigin=function(){return this.origin instanceof wx?this.origin.elementRef:this.origin};g._getOriginElement=function(){return this.origin instanceof wx?this.origin.elementRef.nativeElement:this.origin instanceof ff?this.origin.nativeElement:typeof Element!=="undefined"&&this.origin instanceof Element?this.origin:null};
var Ycc=function(a){a._overlayRef?a._overlayRef.getConfig().hasBackdrop=a.hasBackdrop:a._createOverlay();a._overlayRef.hasAttached()||a._overlayRef.attach(a._templatePortal);a.hasBackdrop?a._backdropSubscription=a._overlayRef.backdropClick().subscribe(function(b){a.backdropClick.emit(b)}):a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.positionChange.observers.length>0&&(a._positionSubscription=a._position.positionChanges.pipe(bka(function(){return a.positionChange.observers.length>
0})).subscribe(function(b){a._ngZone.run(function(){return a.positionChange.emit(b)});a.positionChange.observers.length===0&&a._positionSubscription.unsubscribe()}));a.open=!0},Zcc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
ea.Object.defineProperties(xx.prototype,{offsetX:{configurable:!0,enumerable:!0,get:function(){return this._offsetX},set:function(a){this._offsetX=a;this._position&&this._updatePositionStrategy(this._position)}},offsetY:{configurable:!0,enumerable:!0,get:function(){return this._offsetY},set:function(a){this._offsetY=a;this._position&&this._updatePositionStrategy(this._position)}},disposeOnNavigation:{configurable:!0,enumerable:!0,get:function(){return this._disposeOnNavigation},set:function(a){this._disposeOnNavigation=
a}},overlayRef:{configurable:!0,enumerable:!0,get:function(){return this._overlayRef}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir?this._dir.value:"ltr"}}});xx.\u0275fac=function(a){return new (a||xx)};
xx.\u0275dir=Kf({type:xx,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight",
"height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],
transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Dh],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Dh],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Dh],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Dh],push:[2,"cdkConnectedOverlayPush","push",Dh],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
Dh]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Uu]});var $cc={provide:Xcc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};var yx=function(){};yx.\u0275fac=function(a){return new (a||yx)};yx.\u0275mod=Jf({type:yx});yx.\u0275inj=Tc({providers:[vx,$cc],imports:[Rw,ux,cx,cx]});new yd("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});var zx=function(){n(uw)._applyBodyHighContrastModeCssClasses()};zx.\u0275fac=function(a){return new (a||zx)};zx.\u0275mod=Jf({type:zx});zx.\u0275inj=Tc({imports:[Rw,Rw]});var adc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};adc.prototype.updateErrorState=function(){var a=this.errorState,b=this._parentFormGroup||this._parentForm,c=this.ngControl?this.ngControl.control:null,d,e,f=(e=(d=this.matcher||this._defaultMatcher)==null?void 0:d.isErrorState(c,b))!=null?e:!1;f!==a&&(this.errorState=f,this._stateChanges.next())};new yd("MAT_DATE_LOCALE",{providedIn:"root",factory:Woa});var Ax=function(){this.localeChanges=this._localeChanges=new bg};Ax.prototype.setTime=function(){throw Error("nb");};Ax.prototype.getHours=function(){throw Error("nb");};Ax.prototype.getMinutes=function(){throw Error("nb");};Ax.prototype.getSeconds=function(){throw Error("nb");};var Bx=function(a,b){return bdc(b)&&a.isValid(b)?b:null},Cx=function(a,b){return b==null||bdc(b)&&a.isValid(b)?b:a.invalid()};
Ax.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var Dx=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};Ax.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!Dx(this,a,b):c==d}return a==b};var cdc=function(a,b,c,d){return c&&Dx(a,b,c)<0?c:d&&Dx(a,b,d)>0?d:b};var Ex=new yd("mat-date-formats");var Fx=function(){};Fx.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};Fx.\u0275fac=function(a){return new (a||Fx)};Fx.\u0275prov=Sc({token:Fx,factory:Fx.\u0275fac,providedIn:"root"});var Gx=function(){};Gx.\u0275fac=function(a){return new (a||Gx)};
Gx.\u0275cmp=B({type:Gx,selectors:[["structural-styles"]],decls:0,vars:0,template:function(){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}\n'],encapsulation:2,
changeDetection:0});var Hx=function(){};Hx.\u0275fac=function(a){return new (a||Hx)};
Hx.\u0275cmp=B({type:Hx,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-form-field--align-end",b.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:["mat-internal-form-field",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,
changeDetection:0});var ddc=new yd("MAT_OPTION_PARENT_COMPONENT");var edc=new yd("MatOptgroup");var fdc=ui({passive:!0,capture:!0}),hdc=function(a,b,c,d){var e=gdc,f=e._events.get(b);f?(a=f.get(c))?a.add(d):f.set(c,new Set([d])):(e._events.set(b,new Map([[c,new Set([d])]])),a.runOutsideAngular(function(){document.addEventListener(b,e._delegateEventHandler,fdc)}))};var idc=function(a,b,c,d){d=d===void 0?!1:d;this._renderer=a;this.element=b;this.config=c;this._animationForciblyDisabledThroughCss=d;this.state=3};var jdc={enterDuration:225,exitDuration:150},kdc=ui({passive:!0,capture:!0}),ldc=["mousedown","touchstart"],mdc=["mouseup","mouseleave","touchend","touchcancel"],ndc=function(){};ndc.\u0275fac=function(a){return new (a||ndc)};
ndc.\u0275cmp=B({type:ndc,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}\n"],encapsulation:2,
changeDetection:0});
var odc=function(a,b,c,d,e){this._target=a;this._ngZone=b;this._platform=d;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=Bi(c));e&&e.get(kw).load(ndc)},pdc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},jdc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||Xoa(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
q=document.createElement("div");q.classList.add("mat-ripple-element");q.style.left=b-h+"px";q.style.top=c-h+"px";q.style.height=h*2+"px";q.style.width=h*2+"px";d.color!=null&&(q.style.backgroundColor=d.color);q.style.transitionDuration=k+"ms";a._containerElement.appendChild(q);h=window.getComputedStyle(q);c=h.transitionDuration;e=h.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var u=new idc(a,q,d,e);q.style.transform="scale3d(1, 1, 1)";u.state=0;d.persistent||(a._mostRecentTransientRipple=
u);var A=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var G=function(){A&&(A.fallbackTimer=null);clearTimeout(N);a._finishRippleTransition(u)},H=function(){return a._destroyRipple(u)},N=setTimeout(H,k+100);q.addEventListener("transitionend",G);q.addEventListener("transitioncancel",H);A={onTransitionEnd:G,onTransitionCancel:H,fallbackTimer:N}});a._activeRipples.set(u,A);!e&&k||a._finishRippleTransition(u);return u},qdc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},jdc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};odc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||qdc(a._renderer,a)})};
var rdc=function(a,b){var c=Bi(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,ldc.forEach(function(d){hdc(a._ngZone,d,c,a)}))};g=odc.prototype;
g.handleEvent=function(a){var b=this;a.type==="mousedown"?this._onMousedown(a):a.type==="touchstart"?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(function(){mdc.forEach(function(c){b._triggerElement.addEventListener(c,b,kdc)})}),this._pointerUpEventsRegistered=!0)};g._finishRippleTransition=function(a){a.state===0?this._startFadeOutTransition(a):a.state===2&&this._destroyRipple(a)};
g._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||qdc(a._renderer,a)};
g._destroyRipple=function(a){var b,c=(b=this._activeRipples.get(a))!=null?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;c!==null&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel),c.fallbackTimer!==null&&clearTimeout(c.fallbackTimer));a.element.remove()};
g._onMousedown=function(a){var b=poa(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,pdc(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!qoa(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)pdc(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
g._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=a.state===1||a.config.terminateOnPointerUp&&a.state===0;!a.config.persistent&&b&&qdc(a._renderer,a)}))};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(ldc.forEach(function(c){var d=gdc,e=d._events.get(c);if(e){var f=e.get(b);f&&(f.delete(a),f.size===0&&e.delete(b),e.size===0&&(d._events.delete(c),document.removeEventListener(c,d._delegateEventHandler,fdc)))}}),this._pointerUpEventsRegistered&&(mdc.forEach(function(c){return b.removeEventListener(c,a,kdc)}),this._pointerUpEventsRegistered=!1))};
var gdc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=xi(b);if(c){var d;(d=a._events.get(b.type))==null||d.forEach(function(e,f){(f===c||f.contains(c))&&e.forEach(function(h){return h.handleEvent(b)})})}}};var Ix=new yd("mat-ripple-global-options"),Jx=function(){this._elementRef=n(ff);this._animationsDisabled=Hi();this.radius=0;this._isInitialized=this._disabled=!1;var a=n(ph),b=n(ew),c=n(Ix,{optional:!0}),d=n(Ze);this._globalOptions=c||{};this._rippleRenderer=new odc(this,a,this._elementRef,b,d)};g=Jx.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};g.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};g.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
g._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&rdc(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return typeof a==="number"?pdc(this._rippleRenderer,a,b===void 0?0:b,Object.assign({},this.rippleConfig,c)):pdc(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
ea.Object.defineProperties(Jx.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){a&&this.fadeOutAllNonPersistent();this._disabled=a;this._setupTriggerEventsIfEnabled()}},trigger:{configurable:!0,enumerable:!0,get:function(){return this._trigger||this._elementRef.nativeElement},set:function(a){this._trigger=a;this._setupTriggerEventsIfEnabled()}},rippleConfig:{configurable:!0,enumerable:!0,get:function(){return{centered:this.centered,radius:this.radius,
color:this.color,animation:Object.assign({},this._globalOptions.animation,this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||!!this._globalOptions.disabled}}});Jx.\u0275fac=function(a){return new (a||Jx)};
Jx.\u0275dir=Kf({type:Jx,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-ripple-unbounded",b.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]});var Kx=function(){this._animationsDisabled=Hi();this.state="unchecked";this.disabled=!1;this.appearance="full"};Kx.\u0275fac=function(a){return new (a||Kx)};
Kx.\u0275cmp=B({type:Kx,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&wg("mat-pseudo-checkbox-indeterminate",b.state==="indeterminate")("mat-pseudo-checkbox-checked",b.state==="checked")("mat-pseudo-checkbox-disabled",b.disabled)("mat-pseudo-checkbox-minimal",b.appearance==="minimal")("mat-pseudo-checkbox-full",b.appearance==="full")("_mat-animation-noopable",b._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},
decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],
encapsulation:2,changeDetection:0});var sdc=["text"],tdc=[[["mat-icon"]],"*"],udc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},Lx=function(){this._element=n(ff);this._changeDetectorRef=n(qv);this._parent=n(ddc,{optional:!0});this.group=n(edc,{optional:!0});this._disabled=this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=n(Gw).getId("mat-option-");this.onSelectionChange=new hv;this._stateChanges=new bg;var a=n(kw);a.load(Gx);a.load(lw);this._signalDisableRipple=!!this._parent&&
Nf(this._parent.disableRipple)};g=Lx.prototype;g.select=function(a){a=a===void 0?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};g.deselect=function(a){a=a===void 0?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};g.focus=function(a,b){var c=this._getHostElement();typeof c.focus==="function"&&c.focus(b)};
g.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};g.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};g.getLabel=function(){return this.viewValue};g._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||ri(a)||(this._selectViaInteraction(),a.preventDefault())};
g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._element.nativeElement};g.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};g.ngOnDestroy=function(){this._stateChanges.complete()};
g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new udc(this,a===void 0?!1:a))};
ea.Object.defineProperties(Lx.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._parent&&this._parent.multiple}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.group&&this.group.disabled||this._disabled},set:function(a){this._disabled=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){var a;return this._signalDisableRipple?this._parent.disableRipple():!((a=this._parent)==
null||!a.disableRipple)}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}},active:{configurable:!0,enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this._text)==null?void 0:a.nativeElement.textContent)||"").trim()}}});Lx.\u0275fac=function(a){return new (a||Lx)};
Lx.\u0275cmp=B({type:Lx,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&Wg(sdc,7);if(a&2){var c;$g(c=ah())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(a,b){a&1&&M("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Ig("id",b.id),ng("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),wg("mdc-list-item--selected",b.selected)("mat-mdc-option-multiple",
b.multiple)("mat-mdc-option-active",b.active)("mdc-list-item--disabled",b.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Dh]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:["mat-icon","*"],decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",
3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,b){a&1&&(Ng(tdc),E(0,Yoa,1,2,"mat-pseudo-checkbox",1),Og(1),I(2,"span",2,0),Og(4,1),J(),E(5,Zoa,1,1,"mat-pseudo-checkbox",3),E(6,$oa,2,1,"span",4),K(7,"div",5));a&2&&(F(b.multiple?0:-1),z(5),F(b.multiple||!b.selected||b.hideSingleSelectionIndicator?-1:5),z(),F(b.group&&b.group._inert?6:-1),z(),D("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[Kx,Jx],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var Mx=function(){};Mx.\u0275fac=function(a){return new (a||Mx)};Mx.\u0275mod=Jf({type:Mx});Mx.\u0275inj=Tc({imports:[zx,zx]});var Nx=function(){};Nx.\u0275fac=function(a){return new (a||Nx)};Nx.\u0275mod=Jf({type:Nx});Nx.\u0275inj=Tc({imports:[zx]});var Ox=function(){};Ox.\u0275fac=function(a){return new (a||Ox)};Ox.\u0275mod=Jf({type:Ox});Ox.\u0275inj=Tc({imports:[Mx,zx,Nx,Lx]});var vdc={capture:!0},wdc=["focus","mousedown","mouseenter","touchstart"],Px=function(){var a=this;this._document=n(Ei);this._animationsDisabled=Hi();this._globalRippleOptions=n(Ix,{optional:!0});this._platform=n(ew);this._ngZone=n(ph);this._injector=n(Ze);this._hosts=new Map;this._onInteraction=function(c){c=xi(c);if(c instanceof HTMLElement){var d,e;(c=c.closest('[mat-ripple-loader-uninitialized="'+((e=(d=a._globalRippleOptions)==null?void 0:d.namespace)!=null?e:"")+'"]'))&&a._createRipple(c)}};
var b=n(Ff).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return wdc.map(function(c){return si(b,a._document,c,a._onInteraction,vdc)})})};Px.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=l(a);for(var b=a.next();!b.done;b=a.next())xdc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var ydc=function(a,b,c){var d,e;b.setAttribute("mat-ripple-loader-uninitialized",(e=(d=a._globalRippleOptions)==null?void 0:d.namespace)!=null?e:"");!c.className&&b.hasAttribute("mat-ripple-loader-class-name")||b.setAttribute("mat-ripple-loader-class-name",c.className||"");c.centered&&b.setAttribute("mat-ripple-loader-centered","");c.disabled&&b.setAttribute("mat-ripple-loader-disabled","")};
Px.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,rdc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
Px.prototype._createRipple=function(a){if(this._document&&!this._hosts.has(a)){var b;(b=a.querySelector(".mat-ripple"))==null||b.remove();b=this._document.createElement("span");b.classList.add("mat-ripple",a.getAttribute("mat-ripple-loader-class-name"));a.append(b);var c=this._globalRippleOptions,d,e,f=this._animationsDisabled?0:(e=c==null?void 0:(d=c.animation)==null?void 0:d.enterDuration)!=null?e:jdc.enterDuration,h,k;d=this._animationsDisabled?0:(k=c==null?void 0:(h=c.animation)==null?void 0:
h.exitDuration)!=null?k:jdc.exitDuration;h={rippleDisabled:this._animationsDisabled||(c==null?void 0:c.disabled)||a.hasAttribute("mat-ripple-loader-disabled"),rippleConfig:{centered:a.hasAttribute("mat-ripple-loader-centered"),terminateOnPointerUp:c==null?void 0:c.terminateOnPointerUp,animation:{enterDuration:f,exitDuration:d}}};b=new odc(h,this._ngZone,b,this._platform,this._injector);(k=!h.rippleDisabled)&&rdc(b,a);this._hosts.set(a,{target:h,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var xdc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};Px.\u0275fac=function(a){return new (a||Px)};Px.\u0275prov=Sc({token:Px,factory:Px.\u0275fac,providedIn:"root"});var Qx=function(){this.changes=new bg;this.openCalendarLabel="Open calendar";this.closeCalendarLabel="Close calendar";this.comparisonDateLabel="Comparison range"};Qx.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};Qx.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};Qx.\u0275fac=function(a){return new (a||Qx)};Qx.\u0275prov=Sc({token:Qx,factory:Qx.\u0275fac,providedIn:"root"});var gpa=function(a,b){return b.id},zdc=0,Adc=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=f===void 0?a:f;this.rawValue=h;this.id=zdc++},Bdc={passive:!1,capture:!0},Cdc={passive:!0,capture:!0},Ddc={passive:!0},Rx=function(){var a=this;this._elementRef=n(ff);this._ngZone=n(ph);this._platform=n(ew);this._intl=n(Qx);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new hv;this.previewChange=new hv;this.activeDateChange=new hv;this.dragStarted=new hv;this.dragEnded=new hv;this._didDragSinceMouseDown=!1;this._injector=n(Ze);this.comparisonDateAccessibleName=this._intl.comparisonDateLabel;this._trackRow=function(d){return d};this._enterHandler=function(d){if(a._skipNextFocus&&d.type==="focus")a._skipNextFocus=!1;else if(d.target&&a.isRange){var e=a._getCellFromElement(d.target);
e&&a._ngZone.run(function(){return a.previewChange.emit({value:e.enabled?e:null,event:d})})}};this._touchmoveHandler=function(d){if(a.isRange){var e=npa(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);jpa(d.target)&&d.preventDefault();a._ngZone.run(function(){return a.previewChange.emit({value:(f==null?0:f.enabled)?f:null,event:d})})}};this._leaveHandler=function(d){a.previewEnd!==null&&a.isRange&&(d.type!=="blur"&&(a._didDragSinceMouseDown=!0),!d.target||!a._getCellFromElement(d.target)||
d.relatedTarget&&a._getCellFromElement(d.relatedTarget)||a._ngZone.run(function(){return a.previewChange.emit({value:null,event:d})}))};this._mousedownHandler=function(d){if(a.isRange){a._didDragSinceMouseDown=!1;var e=d.target&&a._getCellFromElement(d.target);e&&a._isInRange(e.compareValue)&&a._ngZone.run(function(){a.dragStarted.emit({value:e.rawValue,event:d})})}};this._mouseupHandler=function(d){if(a.isRange){var e=jpa(d.target);e?e.closest(".mat-calendar-body")===a._elementRef.nativeElement&&
a._ngZone.run(function(){var f=a._getCellFromElement(e),h;a.dragEnded.emit({value:(h=f==null?void 0:f.rawValue)!=null?h:null,event:d})}):a._ngZone.run(function(){a.dragEnded.emit({value:null,event:d})})}};this._touchendHandler=function(d){(d=npa(d))&&a._mouseupHandler({target:d})};var b=n(jv),c=n(Gw);this._startDateLabelId=c.getId("mat-calendar-body-start-");this._endDateLabelId=c.getId("mat-calendar-body-end-");this._comparisonStartDateLabelId=c.getId("mat-calendar-body-comparison-start-");this._comparisonEndDateLabelId=
c.getId("mat-calendar-body-comparison-end-");n(kw).load(Gx);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[si(b,d,"touchmove",a._touchmoveHandler,Bdc),si(b,d,"mouseenter",a._enterHandler,Cdc),si(b,d,"focus",a._enterHandler,Cdc),si(b,d,"mouseleave",a._leaveHandler,Cdc),si(b,d,"blur",a._leaveHandler,Cdc),si(b,d,"mousedown",a._mousedownHandler,Ddc),si(b,d,"touchstart",a._mousedownHandler,Ddc)];a._platform.isBrowser&&d.push(b.listen("window","mouseup",a._mouseupHandler),
b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};g=Rx.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};g._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};g._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
g._isSelected=function(a){return this.startValue===a||this.endValue===a};g.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};g.ngOnDestroy=function(){this._eventCleanups.forEach(function(a){return a()})};
g._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};g._focusActiveCell=function(a){var b=this;a=a===void 0?!0:a;$e(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})},{injector:this._injector})};g._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};
g._isRangeStart=function(a){return kpa(a,this.startValue,this.endValue)};g._isRangeEnd=function(a){return lpa(a,this.startValue,this.endValue)};g._isInRange=function(a){return mpa(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return kpa(a,this.comparisonStart,this.comparisonEnd)};
g._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};g._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};
g._isComparisonEnd=function(a){return lpa(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return mpa(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};g._isPreviewStart=function(a){return kpa(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return lpa(a,this.previewStart,this.previewEnd)};
g._isInPreview=function(a){return mpa(a,this.previewStart,this.previewEnd,this.isRange)};
g._getDescribedby=function(a){if(!this.isRange)return null;if(this.startValue===a&&this.endValue===a)return this._startDateLabelId+" "+this._endDateLabelId;if(this.startValue===a)return this._startDateLabelId;if(this.endValue===a)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(a===this.comparisonStart&&a===this.comparisonEnd)return this._comparisonStartDateLabelId+" "+this._comparisonEndDateLabelId;if(a===this.comparisonStart)return this._comparisonStartDateLabelId;
if(a===this.comparisonEnd)return this._comparisonEndDateLabelId}return null};g._getCellFromElement=function(a){var b=jpa(a);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};Rx.\u0275fac=function(a){return new (a||Rx)};
Rx.\u0275cmp=B({type:Rx,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",
endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Uu],attrs:["mat-calendar-body",""],decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",
1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,b){a&1&&(E(0,dpa,3,6,"tr",0),Dg(1,hpa,4,1,"tr",1,cpa,!0),I(3,"span",2),Q(4),J(),I(5,"span",2),Q(6),J(),I(7,"span",2),Q(8),J(),I(9,"span",2),Q(10),
J());a&2&&(F(b._firstRowOffset<b.labelMinRequiredCells?0:-1),z(),Eg(b.rows),z(2),D("id",b._startDateLabelId),z(),R(" ",b.startDateAccessibleName,"\n"),z(),D("id",b._endDateLabelId),z(),R(" ",b.endDateAccessibleName,"\n"),z(),D("id",b._comparisonStartDateLabelId),z(),dh(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),z(),D("id",b._comparisonEndDateLabelId),z(),dh(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[Mv],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],
encapsulation:2,changeDetection:0});var Edc=new yd("MAT_BUTTON_CONFIG"),Sx=function(){this._elementRef=n(ff);this._ngZone=n(ph);this._animationsDisabled=Hi();this._config=n(Edc,{optional:!0});this._focusMonitor=n(gw);this._renderer=n(jv);this._rippleLoader=n(Px);this._disabled=this._disableRipple=this._isFab=!1;n(kw).load(Gx);var a=this._elementRef.nativeElement;this._isAnchor=a.tagName==="A";var b,c;this.disabledInteractive=(c=(b=this._config)==null?void 0:b.disabledInteractive)!=null?c:!1;var d,e;this.color=(e=(d=this._config)==null?
void 0:d.color)!=null?e:null;var f;(f=this._rippleLoader)==null||ydc(f,a,{className:"mat-mdc-button-ripple"})};g=Sx.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0);this._isAnchor&&this._setupAsAnchor()};g.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);var b;(b=this._rippleLoader)==null||xdc(b,this._elementRef.nativeElement)};
g.focus=function(a,b){(a=a===void 0?"program":a)?hw(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};g._getAriaDisabled=function(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null};g._getDisabledAttribute=function(){return this.disabledInteractive||!this.disabled?null:!0};
g._updateRippleDisabled=function(){var a;(a=this._rippleLoader)==null||a.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)};g._getTabIndex=function(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex};g._setupAsAnchor=function(){var a=this;this._cleanupClick=this._ngZone.runOutsideAngular(function(){return a._renderer.listen(a._elementRef.nativeElement,"click",function(b){a.disabled&&(b.preventDefault(),b.stopImmediatePropagation())})})};
ea.Object.defineProperties(Sx.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=a;this._updateRippleDisabled()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._updateRippleDisabled()}},_tabindex:{configurable:!0,enumerable:!0,set:function(a){this.tabIndex=a}}});Sx.\u0275fac=function(a){return new (a||Sx)};
Sx.\u0275dir=Kf({type:Sx,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(a,b){a&2&&(ng("disabled",b._getDisabledAttribute())("aria-disabled",b._getAriaDisabled())("tabindex",b._getTabIndex()),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-button-disabled",b.disabled)("mat-mdc-button-disabled-interactive",b.disabledInteractive)("mat-unthemed",!b.color)("_mat-animation-noopable",b._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Dh],disabled:[2,
"disabled","disabled",Dh],ariaDisabled:[2,"aria-disabled","ariaDisabled",Dh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dh],tabIndex:[2,"tabIndex","tabIndex",opa],_tabindex:[2,"tabindex","_tabindex",opa]}});var Fdc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Gdc=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],
["tonal",["mat-tonal-button"]]]),Tx=function(){Sx.call(this);this._appearance=null;var a=this._elementRef.nativeElement;(a=a.hasAttribute("mat-raised-button")?"elevated":a.hasAttribute("mat-stroked-button")?"outlined":a.hasAttribute("mat-flat-button")?"filled":a.hasAttribute("mat-button")?"text":null)&&Hdc(this,a)};Y(Tx,Sx);Tx.\u0275dir=Sx.\u0275dir;
var Hdc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?Gdc.get(a._appearance):null,e=Gdc.get(b);d&&c.remove.apply(c,p(d));c.add.apply(c,p(e));a._appearance=b}};ea.Object.defineProperties(Tx.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;Hdc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});Tx.\u0275fac=function(a){return new (a||Tx)};
Tx.\u0275cmp=B({type:Tx,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[kg],attrs:["matButton",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(Ng(Fdc),K(0,"span",0),Og(1),I(2,"span",1),Og(3,1),J(),Og(4,2),K(5,"span",2)(6,"span",3));a&2&&wg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-tonal-button-container-height, 40px);font-family:var(--mat-tonal-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-tonal-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-tonal-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-tonal-button-label-text-transform);font-weight:var(--mat-tonal-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-tonal-button-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-tonal-button-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-tonal-button-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-tonal-button-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-tonal-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-tonal-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-tonal-button-icon-spacing, 8px);margin-left:var(--mat-tonal-button-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-tonal-button-icon-offset, -8px);margin-left:var(--mat-tonal-button-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-tonal-button-icon-offset, -8px);margin-left:var(--mat-tonal-button-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-tonal-button-icon-spacing, 8px);margin-left:var(--mat-tonal-button-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-tonal-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-tonal-button-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-tonal-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-tonal-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-tonal-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-tonal-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-tonal-button-touch-target-display, block)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var Idc=new yd("mat-mdc-fab-default-options",{providedIn:"root",factory:ppa});var Ux=function(){Sx.call(this);ydc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Y(Ux,Sx);Ux.\u0275dir=Sx.\u0275dir;Ux.\u0275fac=function(a){return new (a||Ux)};
Ux.\u0275cmp=B({type:Ux,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[kg],attrs:["mat-icon-button",""],ngContentSelectors:["*"],decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a){a&1&&(Ng(),K(0,"span",0),
Og(1),K(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',
"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0});var Vx=function(){};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275mod=Jf({type:Vx});Vx.\u0275inj=Tc({imports:[zx,Mx,zx]});var Wx=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new bg;this.selection=a};Wx.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};Wx.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};Wx.prototype._isValidDateInstance=function(a){return bdc(a)&&this._adapter.isValid(a)};Wx.\u0275fac=function(){Fia()};Wx.\u0275prov=Sc({token:Wx,factory:Wx.\u0275fac});
var Xx=function(a){Wx.call(this,null,a)};Y(Xx,Wx);Xx.prototype.add=function(a){Wx.prototype.updateSelection.call(this,a,this)};Xx.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};Xx.prototype.isComplete=function(){return this.selection!=null};Xx.prototype.clone=function(){var a=new Xx(this._adapter);a.updateSelection(this.selection,this);return a};Xx.\u0275fac=function(a){return new (a||Xx)(nd(Ax))};Xx.\u0275prov=Sc({token:Xx,factory:Xx.\u0275fac});
var Jdc={provide:Wx,deps:[[new Wu,new Xu,Wx],Ax],useFactory:function(a,b){return a||new Xx(b)}};new Wu;new Xu;var Kdc=new yd("MAT_DATE_RANGE_SELECTION_STRATEGY");new Wu;new Xu;var Ldc=function(a,b){return b.id},Mdc=0,Yx=function(){this._changeDetectorRef=n(qv);this._dateFormats=n(Ex,{optional:!0});this._dateAdapter=n(Ax,{optional:!0});this._dir=n(Qw,{optional:!0});this._rangeStrategy=n(Kdc,{optional:!0});this._rerenderSubscription=ke.EMPTY;this.activeDrag=null;this.selectedChange=new hv;this._userSelection=new hv;this.dragStarted=new hv;this.dragEnded=new hv;this.activeDateChange=new hv;n(kw).load(lw);this._activeDate=new bk};g=Yx.prototype;
g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(eg(null)).subscribe(function(){return a._init()})};g.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._clearPreview();this._changeDetectorRef.markForCheck()};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);Dx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=Zx(this._activeDate,c?1:-1);break;case 39:this.activeDate=Zx(this._activeDate,c?-1:1);break;case 38:this.activeDate=Zx(this._activeDate,-7);break;case 40:this.activeDate=Zx(this._activeDate,7);break;case 36:this.activeDate=Zx(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=Zx(this._activeDate,Abc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?ay(this._activeDate,-1):by(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?ay(this._activeDate,1):by(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd==null||ri(a)||(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:a}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a})),a.preventDefault(),
a.stopPropagation());return;default:return}Dx(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){this._setRanges(this.selected);this._todayDate=this._getCellCompareValue(new bk);this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();this._firstWeekOffset=(7+cy(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1).getDay()-this._dateAdapter.getFirstDayOfWeek())%
7;this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._previewChanged=function(a){var b=a.event;a=a.value;if(this._rangeStrategy){a=a?a.rawValue:null;var c=this._rangeStrategy.createPreview(a,this.selected,b);this._previewStart=this._getCellCompareValue(c.start);this._previewEnd=this._getCellCompareValue(c.end);if(this.activeDrag&&a){var d,e;if(c=(e=(d=this._rangeStrategy).createDrag)==null?void 0:e.call(d,this.activeDrag.value,this.selected,a,b))this._previewStart=this._getCellCompareValue(c.start),this._previewEnd=this._getCellCompareValue(c.end)}this._changeDetectorRef.detectChanges()}};
g._dragEnded=function(a){if(this.activeDrag)if(a.value){var b,c,d=(b=this._rangeStrategy)==null?void 0:(c=b.createDrag)==null?void 0:c.call(b,this.activeDrag.value,this.selected,a.value,a.event);this.dragEnded.emit({value:d!=null?d:null,event:a.event})}else this.dragEnded.emit({value:null,event:a.event})};g._getDateFromDayOfMonth=function(a){return cy(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=Ndc(this._dateAdapter,"narrow"),c=Ndc(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:Mdc++}});this._weekdays=c.slice(a).concat(c.slice(0,a))};
g._createWeekCells=function(){var a=Abc(this.activeDate),b=Odc;this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){d==7&&(this._weeks.push([]),d=0);var e=cy(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),c+1),f=this._shouldEnableDate(e),h=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),k=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-1].push(new Adc(c+1,b[c],h,f,k,this._getCellCompareValue(e),
e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||Dx(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||Dx(this._dateAdapter,a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a))};g._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};g._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
g._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);return(new Date(b,c,this._dateAdapter.getDate(a))).getTime()}return null};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setRanges=function(a){this._rangeStart=this._rangeEnd=this._getCellCompareValue(a);this._isRange=!1;this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart);this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)};
g._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};g._clearPreview=function(){this._previewStart=this._previewEnd=null};
ea.Object.defineProperties(Yx.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Bx(this._dateAdapter,Cx(this._dateAdapter,a))||new bk;this._activeDate=cdc(this._dateAdapter,a,this.minDate,this.maxDate);this._hasSameMonthAndYear(b,this._activeDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Bx(this._dateAdapter,Cx(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}}});Yx.\u0275fac=function(a){return new (a||Yx)};
Yx.\u0275cmp=B({type:Yx,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&Wg(Rx,5);if(a&2){var c;$g(c=ah())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",
_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Uu],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue",
"endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,b){a&1&&(I(0,"table",0)(1,"thead",1)(2,"tr"),Dg(3,qpa,5,2,"th",2,Ldc),J(),I(5,"tr",3),K(6,"th",4),J()(),I(7,"tbody",5),M("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("dragStarted",
function(c){return b.dragStarted.emit(c)})("dragEnded",function(c){return b._dragEnded(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),J()());a&2&&(z(3),Eg(b._weekdays),z(4),D("label",b._monthLabel)("rows",b._weeks)("todayValue",b._todayDate)("startValue",b._rangeStart)("endValue",b._rangeEnd)("comparisonStart",b._comparisonRangeStart)("comparisonEnd",b._comparisonRangeEnd)("previewStart",b._previewStart)("previewEnd",
b._previewEnd)("isRange",b._isRange)("labelMinRequiredCells",3)("activeCell",b._dateAdapter.getDate(b.activeDate)-1)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName))},dependencies:[Rx],encapsulation:2,changeDetection:0});var dy=function(){this._changeDetectorRef=n(qv);this._dateAdapter=n(Ax,{optional:!0});this._dir=n(Qw,{optional:!0});this._rerenderSubscription=ke.EMPTY;this.selectedChange=new hv;this.yearSelected=new hv;this.activeDateChange=new hv;this._activeDate=new bk};g=dy.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(eg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(new bk);var b=this._dateAdapter.getYear(this._activeDate)-Ii(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var c=0,d=[];c<24;c++)d.push(b+c),d.length==4&&(this._years.push(d.map(function(e){return a._createCellForYear(e)})),d=[]);this._changeDetectorRef.markForCheck()};g._yearSelected=function(a){var b=a.value;a=cy(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);Dx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=ay(this._activeDate,c?1:-1);break;case 39:this.activeDate=ay(this._activeDate,c?-1:1);break;case 38:this.activeDate=ay(this._activeDate,-4);break;case 40:this.activeDate=ay(this._activeDate,4);break;case 36:this.activeDate=ay(this._activeDate,-Ii(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=ay(this._activeDate,24-Ii(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=ay(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=ay(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Dx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};g._getActiveCell=function(){return Ii(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=cy(a,b,1);c=Abc(c);return cy(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};g._createCellForYear=function(a){var b=cy(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Adc(a,c,c,this._shouldEnableYear(a),b)};
g._shouldEnableYear=function(a){if(a===void 0||a===null||this.maxDate&&a>this._dateAdapter.getYear(this.maxDate)||this.minDate&&a<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var b=cy(a,0,1);this._dateAdapter.getYear(b)==a;b=Zx(b,1))if(this.dateFilter(b))return!0;return!1};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setSelectedYear=function(a){this._selectedYear=null;a&&(this._selectedYear=this._dateAdapter.getYear(a))};
ea.Object.defineProperties(dy.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Bx(this._dateAdapter,Cx(this._dateAdapter,a))||new bk;this._activeDate=cdc(this._dateAdapter,a,this.minDate,this.maxDate);spa(this._dateAdapter,b,this._activeDate,this.minDate,this.maxDate)||this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Bx(this._dateAdapter,Cx(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}}});dy.\u0275fac=function(a){return new (a||dy)};
dy.\u0275cmp=B({type:dy,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&Wg(Rx,5);if(a&2){var c;$g(c=ah())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden",
"true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(I(0,"table",0)(1,"thead",1)(2,"tr"),K(3,"th",2),J()(),I(4,"tbody",3),M("selectedValueChange",function(c){return b._yearSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",
function(c){return b._handleCalendarBodyKeydown(c)}),J()());a&2&&(z(4),D("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[Rx],encapsulation:2,changeDetection:0});var ey=function(){this._changeDetectorRef=n(qv);this._dateFormats=n(Ex,{optional:!0});this._dateAdapter=n(Ax,{optional:!0});this._dir=n(Qw,{optional:!0});this._rerenderSubscription=ke.EMPTY;this.selectedChange=new hv;this.monthSelected=new hv;this.activeDateChange=new hv;this._activeDate=new bk};g=ey.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(eg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=cy(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);Dx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=by(this._activeDate,c?1:-1);break;case 39:this.activeDate=by(this._activeDate,c?-1:1);break;case 38:this.activeDate=by(this._activeDate,-4);break;case 40:this.activeDate=by(this._activeDate,4);break;case 36:this.activeDate=by(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=by(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=ay(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=ay(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}Dx(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth=this._getMonthInCurrentYear(new bk);this._yearLabel=""+this.activeDate.getFullYear();var b=this._dateAdapter.locale.SHORTMONTHS;this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})});this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};g._getDateFromMonth=function(a){var b=cy(this._dateAdapter.getYear(this.activeDate),a,1);b=Abc(b);return cy(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=cy(this._dateAdapter.getYear(this.activeDate),a,1),d=this._dateAdapter.format(c,this._dateFormats.display.monthYearA11yLabel);c=this.dateClass?this.dateClass(c,"year"):void 0;return new Adc(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
g._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(a===void 0||a===null||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=cy(b,a,1);this._dateAdapter.getMonth(b)==a;b=Zx(b,1))if(this.dateFilter(b))return!0;return!1};g._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};
g._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setSelectedMonth=function(a){this._selectedMonth=this._getMonthInCurrentYear(a)};
ea.Object.defineProperties(ey.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=Bx(this._dateAdapter,Cx(this._dateAdapter,a))||new bk;this._activeDate=cdc(this._dateAdapter,a,this.minDate,this.maxDate);this._dateAdapter.getYear(b)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Bx(this._dateAdapter,
Cx(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}}});ey.\u0275fac=function(a){return new (a||ey)};
ey.\u0275cmp=B({type:ey,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&Wg(Rx,5);if(a&2){var c;$g(c=ah())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",
1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(a,b){a&1&&(I(0,"table",0)(1,"thead",1)(2,"tr"),K(3,"th",2),J()(),I(4,"tbody",3),M("selectedValueChange",function(c){return b._monthSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("keyup",
function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),J()());a&2&&(z(4),D("label",b._yearLabel)("rows",b._months)("todayValue",b._todayMonth)("startValue",b._selectedMonth)("endValue",b._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._dateAdapter.getMonth(b.activeDate)))},dependencies:[Rx],encapsulation:2,changeDetection:0});var gy=function(){this._intl=n(Qx);this.calendar=n(fy);this._dateAdapter=n(Ax,{optional:!0});this._dateFormats=n(Ex,{optional:!0});this._periodButtonLabelId=n(Gw).getId("mat-calendar-period-label-");n(kw).load(lw);var a=n(qv);this.calendar.stateChanges.subscribe(function(){return a.markForCheck()})};
gy.prototype._isSameView=function(a,b){return this.calendar.currentView=="month"?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(a)==this._dateAdapter.getMonth(b):this.calendar.currentView=="year"?this._dateAdapter.getYear(a)==this._dateAdapter.getYear(b):spa(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
gy.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-Ii(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+cy(a,0,1).getFullYear();b=""+cy(b,0,1).getFullYear();return[a,b]};
ea.Object.defineProperties(gy.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?""+this.calendar.activeDate.getFullYear():this._intl.formatYearRange.apply(this._intl,p(this._formatMinAndMaxYearLabels()))}},periodButtonDescription:{configurable:!0,enumerable:!0,get:function(){return this.calendar.currentView==
"month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?""+this.calendar.activeDate.getFullYear():this._intl.formatYearRangeLabel.apply(this._intl,p(this._formatMinAndMaxYearLabels()))}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this.calendar.currentView=="month"?"Choose month and year":"Choose date"}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Previous month",
year:"Previous year","multi-year":"Previous 24 years"}[this.calendar.currentView]}},nextButtonLabel:{configurable:!0,enumerable:!0,get:function(){return{month:"Next month",year:"Next year","multi-year":"Next 24 years"}[this.calendar.currentView]}}});gy.\u0275fac=function(a){return new (a||gy)};
gy.\u0275cmp=B({type:gy,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton",
"","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],"viewBox;0 0 24 24;focusable;false;aria-hidden;true".split(";"),["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"div",1)(2,"span",2),Q(3),J(),I(4,"button",3),M("click",function(){b.calendar.currentView=b.calendar.currentView=="month"?
"multi-year":"month"}),I(5,"span",4),Q(6),J(),Vd(),I(7,"svg",5),K(8,"polygon",6),J()(),Wd(),K(9,"div",7),Og(10),I(11,"button",8),M("click",function(){b.calendar.activeDate=b.calendar.currentView=="month"?by(b.calendar.activeDate,-1):ay(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24)}),Vd(),I(12,"svg",9),K(13,"path",10),J()(),Wd(),I(14,"button",11),M("click",function(){b.calendar.activeDate=b.calendar.currentView=="month"?by(b.calendar.activeDate,1):ay(b.calendar.activeDate,b.calendar.currentView==
"year"?1:24)}),Vd(),I(15,"svg",9),K(16,"path",12),J()()()());a&2&&(z(2),D("id",b._periodButtonLabelId),z(),ch(b.periodButtonDescription),z(),ng("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),z(2),ch(b.periodButtonText),z(),wg("mat-calendar-invert",b.calendar.currentView!=="month"),z(4),D("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),ng("aria-label",b.prevButtonLabel),z(3),D("disabled",!(!b.calendar.maxDate||
!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),ng("aria-label",b.nextButtonLabel))},dependencies:[Tx,Ux],encapsulation:2,changeDetection:0});
var fy=function(){var a=this;this._dateAdapter=n(Ax,{optional:!0});this._dateFormats=n(Ex,{optional:!0});this._changeDetectorRef=n(qv);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new hv;this.yearSelected=new hv;this.monthSelected=new hv;this.viewChanged=new hv(!0);this._userSelection=new hv;this._userDragDrop=new hv;this._activeDrag=null;this.stateChanges=new bg;this._intlChanges=n(Qx).changes.subscribe(function(){a._changeDetectorRef.markForCheck();a.stateChanges.next()})};
g=fy.prototype;g.ngAfterContentInit=function(){this._calendarHeaderPortal=new ox(this.headerComponent||gy);this.activeDate=this.startAt||new bk;this._currentView=this.startView};g.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};g.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
g.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
g._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};g._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};g._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};g._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};g._dragStarted=function(a){this._activeDrag=a};g._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
g._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
ea.Object.defineProperties(fy.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=cdc(this._dateAdapter,a,this.minDate,this.maxDate);this.stateChanges.next();this._changeDetectorRef.markForCheck()}},currentView:{configurable:!0,enumerable:!0,get:function(){return this._currentView},set:function(a){var b=
this._currentView!==a?a:null;this._currentView=a;this._moveFocusOnNextTick=!0;this._changeDetectorRef.markForCheck();b&&this.viewChanged.emit(b)}}});fy.\u0275fac=function(a){return new (a||fy)};
fy.\u0275cmp=B({type:fy,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(Wg(Yx,5),Wg(ey,5),Wg(dy,5));if(a&2){var c;$g(c=ah())&&(b.monthView=c.first);$g(c=ah())&&(b.yearView=c.first);$g(c=ah())&&(b.multiYearView=c.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",
startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[hh([Jdc]),Uu],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate",
"dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter",
"maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,b){a&1&&(C(0,tpa,0,0,"ng-template",0),I(1,"div",1),E(2,upa,1,11,"mat-month-view",2)(3,vpa,1,6,"mat-year-view",3)(4,wpa,1,6,"mat-multi-year-view",3),J());if(a&2){var c;D("cdkPortalOutlet",b._calendarHeaderPortal);z(2);F((c=b.currentView)==="month"?2:c==="year"?3:c==="multi-year"?4:-1)}},dependencies:[tx,iw,Yx,ey,dy],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var hy=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};hy.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};hy.prototype.registerOnTouched=function(a){this.onTouched=a};hy.prototype.registerOnChange=function(a){this.onChange=a};hy.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};hy.\u0275fac=function(a){return new (a||hy)(zf(jv),zf(ff))};hy.\u0275dir=Kf({type:hy});
var Mi=function(){hy.apply(this,arguments)};Y(Mi,hy);Mi.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Mi)))(b||Mi)}}();Mi.\u0275dir=Kf({type:Mi,features:[kg]});var iy=new yd("");var Pdc={provide:iy,useExisting:ld(function(){return Li}),multi:!0},Qdc=new yd(""),Li=function(a,b,c){hy.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((Nbc?window.navigator.userAgent:"").toLowerCase()))};Y(Li,hy);Li.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};Li.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Li.prototype._compositionStart=function(){this._composing=!0};Li.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Li.\u0275fac=function(a){return new (a||Li)(zf(jv),zf(ff),zf(Qdc,8))};
Li.\u0275dir=Kf({type:Li,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(a,b){a&1&&M("input",function(c){return b._handleInput(c.target.value)})("blur",function(){return b.onTouched()})("compositionstart",function(){return b._compositionStart()})("compositionend",
function(c){return b._compositionEnd(c.target.value)})},standalone:!1,features:[hh([Pdc]),kg]});var jy=new yd(""),Rdc=new yd(""),ky=function(a){return Bpa(a)};var ly=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=ly.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Lpa(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Npa(this._rawAsyncValidators)};g._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
g._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};g.reset=function(a){this.control&&this.control.reset(a)};g.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};g.getError=function(a,b){return this.control?this.control.getError(a,b):null};
ea.Object.defineProperties(ly.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.value:null}},valid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valid:null}},invalid:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.invalid:null}},pending:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pending:null}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.disabled:null}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.enabled:null}},errors:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.errors:null}},pristine:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.pristine:null}},dirty:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.dirty:null}},touched:{configurable:!0,enumerable:!0,get:function(){return this.control?
this.control.touched:null}},status:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.status:null}},untouched:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.untouched:null}},statusChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.statusChanges:null}},valueChanges:{configurable:!0,enumerable:!0,get:function(){return this.control?this.control.valueChanges:null}},path:{configurable:!0,enumerable:!0,get:function(){return null}},
validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn||null}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn||null}}});var my=function(){ly.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Y(my,ly);var ny=function(){ly.apply(this,arguments)};Y(ny,ly);ea.Object.defineProperties(ny.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var Sdc=function(a){this._cd=a};
ea.Object.defineProperties(Sdc.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._touched)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._pristine)==
null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._status)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==
null?0:(b=a.control)==null?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a,b;(a=this._cd)==null||(b=a._submitted)==null||b.call(a);var c;return!((c=this._cd)==null||!c.submitted)}}});
Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},{"[class.ng-submitted]":"isSubmitted"});var oy=function(a){this._cd=a};Y(oy,Sdc);oy.\u0275fac=function(a){return new (a||oy)(zf(my,2))};
oy.\u0275dir=Kf({type:oy,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&wg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)},standalone:!1,features:[kg]});var py=function(a){this._cd=a};Y(py,Sdc);py.\u0275fac=function(a){return new (a||py)(zf(ny,10))};
py.\u0275dir=Kf({type:py,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&wg("ng-untouched",b.isUntouched)("ng-touched",b.isTouched)("ng-pristine",b.isPristine)("ng-dirty",b.isDirty)("ng-valid",b.isValid)("ng-invalid",b.isInvalid)("ng-pending",b.isPending)("ng-submitted",b.isSubmitted)},standalone:!1,features:[kg]});var Tdc=new yd("",{providedIn:"root",factory:function(){return"whenDisabledForLegacyCode"}});var qy=function(){},Udc=function(a,b){this.value=a;this.source=b};Y(Udc,qy);var Vdc=function(a,b){this.pristine=a;this.source=b};Y(Vdc,qy);var Wdc=function(a,b){this.touched=a;this.source=b};Y(Wdc,qy);var Xdc=function(a,b){this.status=a;this.source=b};Y(Xdc,qy);var Ydc=function(a){this.source=a};Y(Ydc,qy);var Zdc=function(a){this.source=a};Y(Zdc,qy);
var ry=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=Ah(function(){return c.statusReactive()});this.statusReactive=bh();this._pristine=Ah(function(){return c.pristineReactive()});this.pristineReactive=bh(!0);this._touched=Ah(function(){return c.touchedReactive()});this.touchedReactive=bh(!1);this._events=new bg;this.events=av(this._events);this._onDisabledChange=[];
this._assignValidators(a);this._assignAsyncValidators(b)},Ypa=function(a,b){a._assignValidators(b)},Zpa=function(a,b){a._assignAsyncValidators(b)},$dc=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(ky):a===ky},aqa=function(a,b){b=b===void 0?{}:b;var c=a.touched===!1;a.touched=!0;var d,e=(d=b.sourceControl)!=null?d:a;a._parent&&!b.onlySelf&&aqa(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new Wdc(!0,e))},aec=function(a,b){b=b===void 0?{}:b;
var c=a.touched===!0;a.touched=!1;a._pendingTouched=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._forEachChild(function(f){aec(f,{onlySelf:!0,emitEvent:b.emitEvent,sourceControl:e})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b,e);c&&b.emitEvent!==!1&&a._events.next(new Wdc(!1,e))},bqa=function(a,b){b=b===void 0?{}:b;var c=a.pristine===!0;a.pristine=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._parent&&!b.onlySelf&&bqa(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new Vdc(!1,
e))},bec=function(a,b){b=b===void 0?{}:b;var c=a.pristine===!1;a.pristine=!0;a._pendingDirty=!1;var d,e=(d=b.sourceControl)!=null?d:a;a._forEachChild(function(f){bec(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new Vdc(!0,e))};g=ry.prototype;
g.disable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(e){e.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();var c,d=(c=a.sourceControl)!=null?c:this;a.emitEvent!==!1&&(this._events.next(new Udc(this.value,d)),this._events.next(new Xdc(this.status,d)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);
this._onDisabledChange.forEach(function(e){return e(!0)})};g.enable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});Ki(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);this._onDisabledChange.forEach(function(c){return c(!1)})};
g._updateAncestors=function(a,b){this._parent&&!a.onlySelf&&(Ki(this._parent,a),a.skipPristineCheck||this._parent._updatePristine({},b),this._parent._updateTouched({},b))};g.setParent=function(a){this._parent=a};g.getRawValue=function(){return this.value};
var Ki=function(a,b){b=b===void 0?{}:b;a._setInitialStatus();a._updateValue();if(a.enabled){var c=a._cancelExistingSubscription();a.errors=a._runValidator();a.status=a._calculateStatus();a.status!=="VALID"&&a.status!=="PENDING"||a._runAsyncValidator(c,b.emitEvent)}var d;c=(d=b.sourceControl)!=null?d:a;b.emitEvent!==!1&&(a._events.next(new Udc(a.value,c)),a._events.next(new Xdc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Ki(a._parent,Object.assign({},
b,{sourceControl:c}))};g=ry.prototype;g._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Ki(this,{onlySelf:!0,emitEvent:a.emitEvent})};g._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};g._runValidator=function(){return this.validator?this.validator(this):null};
g._runAsyncValidator=function(a,b){var c=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator={emitEvent:b!==!1,shouldHaveEmitted:a!==!1},this._asyncValidationSubscription=Gpa(this.asyncValidator(this)).subscribe(function(d){c._hasOwnPendingAsyncValidator=null;c.setErrors(d,{emitEvent:b,shouldHaveEmitted:a})}))};
g._cancelExistingSubscription=function(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();var a,b,c,d=(c=((a=this._hasOwnPendingAsyncValidator)==null?void 0:a.emitEvent)||((b=this._hasOwnPendingAsyncValidator)==null?void 0:b.shouldHaveEmitted))!=null?c:!1;this._hasOwnPendingAsyncValidator=null;return d}return!1};g.setErrors=function(a,b){b=b===void 0?{}:b;this.errors=a;this._updateControlsErrors(b.emitEvent!==!1,this,b.shouldHaveEmitted)};
g.get=function(a){if(a==null)return null;Array.isArray(a)||(a=a.split("."));return a.length===0?null:a.reduce(function(b,c){return b&&b._find(c)},this)};g.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};g.hasError=function(a,b){return!!this.getError(a,b)};
g._updateControlsErrors=function(a,b,c){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);(a||c)&&this._events.next(new Xdc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};g._initObservables=function(){this.valueChanges=new hv;this.statusChanges=new hv};
g._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};g._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};g._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};g._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};
g._updatePristine=function(a,b){var c=!this._anyControlsDirty(),d=this.pristine!==c;this.pristine=c;this._parent&&!a.onlySelf&&this._parent._updatePristine(a,b);d&&this._events.next(new Vdc(this.pristine,b))};g._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new Wdc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};g._registerOnCollectionChange=function(a){this._onCollectionChange=a};
g._setUpdateStrategy=function(a){Ni(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)};g._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};g._find=function(){return null};g._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?Lpa(a):a||null};
g._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Npa(a):a||null};
ea.Object.defineProperties(ry.prototype,{validator:{configurable:!0,enumerable:!0,get:function(){return this._composedValidatorFn},set:function(a){this._rawValidators=this._composedValidatorFn=a}},asyncValidator:{configurable:!0,enumerable:!0,get:function(){return this._composedAsyncValidatorFn},set:function(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}},parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},status:{configurable:!0,enumerable:!0,get:function(){return gd(this.statusReactive)},
set:function(a){var b=this;gd(function(){return b.statusReactive.set(a)})}},valid:{configurable:!0,enumerable:!0,get:function(){return this.status==="VALID"}},invalid:{configurable:!0,enumerable:!0,get:function(){return this.status==="INVALID"}},pending:{configurable:!0,enumerable:!0,get:function(){return this.status=="PENDING"}},disabled:{configurable:!0,enumerable:!0,get:function(){return this.status==="DISABLED"}},enabled:{configurable:!0,enumerable:!0,get:function(){return this.status!=="DISABLED"}},
pristine:{configurable:!0,enumerable:!0,get:function(){return gd(this.pristineReactive)},set:function(a){var b=this;gd(function(){return b.pristineReactive.set(a)})}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},touched:{configurable:!0,enumerable:!0,get:function(){return gd(this.touchedReactive)},set:function(a){var b=this;gd(function(){return b.touchedReactive.set(a)})}},untouched:{configurable:!0,enumerable:!0,get:function(){return!this.touched}},updateOn:{configurable:!0,
enumerable:!0,get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},root:{configurable:!0,enumerable:!0,get:function(){for(var a=this;a._parent;)a=a._parent;return a}}});var sy=function(a,b,c){ry.call(this,(Ni(b)?b.validators:b)||null,(Ni(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Ki(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(sy,ry);var cec=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};g=sy.prototype;
g.addControl=function(a){var b=b===void 0?{}:b;cec(this,a);Ki(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.removeControl=function(a){var b=b===void 0?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];Ki(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;gqa(this,a);Object.keys(a).forEach(function(d){fqa(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Ki(this,b)};g.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(Object.keys(a).forEach(function(d){var e=c.controls[d];e&&e.patchValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})}),Ki(this,b))};
g.reset=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;this._forEachChild(function(c,d){c.reset(a?a[d]:null,{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b,this);this._updateTouched(b,this);Ki(this,b)};g.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};g._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&Ki(this,{onlySelf:!0});return a};
g._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};g._updateValue=function(){this.value=this._reduceValue()};g._anyControls=function(a){for(var b=l(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};
g._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};g._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};g._allControlsDisabled=function(){for(var a=l(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled};
g._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var dec=function(){sy.apply(this,arguments)};Y(dec,sy);var eec={provide:ny,useExisting:ld(function(){return ty})},fec=Promise.resolve(),ty=function(a,b,c){ny.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Ah(function(){return d.submittedReactive()});this.submittedReactive=bh(!1);this._directives=new Set;this.ngSubmit=new hv;this.form=new sy({},Lpa(a),Npa(b))};Y(ty,ny);g=ty.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};
g.addControl=function(a){var b=this;fec.then(function(){var c=b._findContainer(a.path);a.control=cec(c,a.name,a.control);Ji(a.control,a,b.callSetDisabledState);Ki(a.control,{emitEvent:!1});b._directives.add(a)})};g.removeControl=function(a){var b=this;fec.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};g.updateModel=function(a,b){var c=this;fec.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};
g.onSubmit=function(a){this.submittedReactive.set(!0);dqa(this.form,this._directives);this.ngSubmit.emit(a);var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};g.onReset=function(){this.resetForm()};g.resetForm=function(a){this.form.reset(a);this.submittedReactive.set(!1)};g._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)};g._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};
ea.Object.defineProperties(ty.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return gd(this.submittedReactive)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},controls:{configurable:!0,enumerable:!0,get:function(){return this.form.controls}}});ty.\u0275fac=function(a){return new (a||ty)(zf(jy,10),zf(Rdc,10),zf(Tdc,8))};
ty.\u0275dir=Kf({type:ty,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&M("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[hh([eec]),kg]});var uy=function(a,b,c){a=a===void 0?null:a;ry.call(this,(Ni(b)?b.validators:b)||null,(Ni(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Ki(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Ni(b)&&(b.nonNullable||b.initialValueIsDefault)&&(hqa(a)?this.defaultValue=a.value:this.defaultValue=a)};Y(uy,ry);g=uy.prototype;
g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;this.value=this._pendingValue=a;this._onChange.length&&b.emitModelToViewChange!==!1&&this._onChange.forEach(function(d){return d(c.value,b.emitViewToModelChange!==!1)});Ki(this,b)};g.patchValue=function(a,b){b=b===void 0?{}:b;this.setValue(a,b)};g.reset=function(a,b){a=a===void 0?this.defaultValue:a;b=b===void 0?{}:b;this._applyFormState(a);bec(this,b);aec(this,b);this.setValue(this.value,b);this._pendingChange=!1};g._updateValue=function(){};
g._anyControls=function(){return!1};g._allControlsDisabled=function(){return this.disabled};g.registerOnChange=function(a){this._onChange.push(a)};g._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};g._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};g._forEachChild=function(){};
g._syncPendingControls=function(){return this.updateOn==="submit"&&(this._pendingDirty&&bqa(this),this._pendingTouched&&aqa(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){hqa(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a};var gec={provide:my,useExisting:ld(function(){return vy})},hec=Promise.resolve(),vy=function(a,b,c,d,e,f){my.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new uy;this._registered=!1;this.name="";this.update=new hv;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=eqa(d)};Y(vy,my);g=vy.prototype;
g.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);cqa(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};g._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)};g._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
g._setUpStandalone=function(){Ji(this.control,this,this.callSetDisabledState);Ki(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._checkName()};g._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};g._updateValue=function(a){var b=this;hec.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
g._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&Dh(a);hec.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;(d=b._changeDetectorRef)==null||d.markForCheck()})};g._getPath=function(a){return this._parent?Ppa(a,this._parent):[a]};
ea.Object.defineProperties(vy.prototype,{path:{configurable:!0,enumerable:!0,get:function(){return this._getPath(this.name)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});vy.\u0275fac=function(a){return new (a||vy)(zf(ny,9),zf(jy,10),zf(Rdc,10),zf(iy,10),zf(qv,8),zf(Tdc,8))};
vy.\u0275dir=Kf({type:vy,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[hh([gec]),kg,Uu]});var wy=function(){};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275dir=Kf({type:wy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var iec={provide:iy,useExisting:ld(function(){return xy}),multi:!0},xy=function(){Mi.apply(this,arguments)};Y(xy,Mi);xy.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};xy.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};xy.\u0275fac=function(){var a;return function(b){return(a||(a=fe(xy)))(b||xy)}}();
xy.\u0275dir=Kf({type:xy,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&M("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},standalone:!1,features:[hh([iec]),kg]});var jec={provide:iy,useExisting:ld(function(){return yy}),multi:!0},zy=function(){this._accessors=[]};zy.prototype.add=function(a,b){this._accessors.push([a,b])};zy.prototype.remove=function(a){for(var b=this._accessors.length-1;b>=0;--b)if(this._accessors[b][1]===a){this._accessors.splice(b,1);break}};zy.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
zy.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};zy.\u0275fac=function(a){return new (a||zy)};zy.\u0275prov=Sc({token:zy,factory:zy.\u0275fac,providedIn:"root"});var yy=function(a,b,c,d){Mi.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=n(Tdc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Y(yy,Mi);g=yy.prototype;
g.ngOnInit=function(){this._control=this._injector.get(my);this._checkName();this._registry.add(this._control,this)};g.ngOnDestroy=function(){this._registry.remove(this)};g.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};g.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};
g.setDisabledState=function(a){(this.setDisabledStateFired||a||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};g._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};yy.\u0275fac=function(a){return new (a||yy)(zf(jv),zf(ff),zf(zy),zf(Ze))};
yy.\u0275dir=Kf({type:yy,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&M("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[hh([jec]),kg]});var kec=new yd(""),lec={provide:my,useExisting:ld(function(){return Ay})},Ay=function(a,b,c,d,e){my.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new hv;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=eqa(c)};Y(Ay,my);
Ay.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Wpa(b,this);Ji(this.form,this,this.callSetDisabledState);Ki(this.form,{emitEvent:!1})}cqa(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};Ay.prototype.ngOnDestroy=function(){this.form&&Wpa(this.form,this)};Ay.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};Ay.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
ea.Object.defineProperties(Ay.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return[]}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});Ay.\u0275fac=function(a){return new (a||Ay)(zf(jy,10),zf(Rdc,10),zf(iy,10),zf(kec,8),zf(Tdc,8))};
Ay.\u0275dir=Kf({type:Ay,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[hh([lec]),kg,Uu]});var mec={provide:ny,useExisting:ld(function(){return By})},By=function(a,b,c){ny.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Ah(function(){return d._submittedReactive()});this._submittedReactive=bh(!1);this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new hv;this._setValidators(a);this._setAsyncValidators(b)};Y(By,ny);g=By.prototype;
g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};g.ngOnDestroy=function(){this.form&&(Vpa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Ji(b,a,this.callSetDisabledState);Ki(b,{emitEvent:!1});this.directives.push(a);return b};
g.removeControl=function(a){Wpa(a.control||null,a);var b=this.directives;a=b.indexOf(a);a>-1&&b.splice(a,1)};g.updateModel=function(a,b){this.form.get(a.path).setValue(b)};g.onSubmit=function(a){this._submittedReactive.set(!0);dqa(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new Ydc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};g.onReset=function(){this.resetForm()};
g.resetForm=function(a){this.form.reset(a);this._submittedReactive.set(!1);this.form._events.next(new Zdc(this.form))};g._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Wpa(c||null,b),d instanceof uy&&(Ji(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};g._setUpFormContainer=function(a){var b=this.form.get(a.path);Qpa(b,a);Ki(b,{emitEvent:!1})};
g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Vpa(b,a)&&Ki(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Qpa(this.form,this);this._oldForm&&Vpa(this._oldForm,this)};
ea.Object.defineProperties(By.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return gd(this._submittedReactive)},set:function(a){this._submittedReactive.set(a)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});By.\u0275fac=function(a){return new (a||By)(zf(jy,10),zf(Rdc,10),zf(Tdc,8))};
By.\u0275dir=Kf({type:By,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&M("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[hh([mec]),kg,Uu]});var nec={provide:my,useExisting:ld(function(){return Cy})},Cy=function(a,b,c,d,e){my.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new hv;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=eqa(d)};Y(Cy,my);Cy.prototype.ngOnChanges=function(a){this._added||this._setUpControl();cqa(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
Cy.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};Cy.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};Cy.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
ea.Object.defineProperties(Cy.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Ppa(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});Cy.\u0275fac=function(a){return new (a||Cy)(zf(ny,13),zf(jy,10),zf(Rdc,10),zf(iy,10),zf(kec,8))};
Cy.\u0275dir=Kf({type:Cy,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[hh([nec]),kg,Uu]});var Dy=function(){this._validator=Dpa};Dy.prototype.ngOnChanges=function(a){this.inputName in a&&(a=this.normalizeInput(a[this.inputName].currentValue),this._validator=(this._enabled=this.enabled(a))?this.createValidator(a):Dpa,this._onChange&&this._onChange())};Dy.prototype.validate=function(a){return this._validator(a)};Dy.prototype.registerOnValidatorChange=function(a){this._onChange=a};Dy.prototype.enabled=function(a){return a!=null};Dy.\u0275fac=function(a){return new (a||Dy)};
Dy.\u0275dir=Kf({type:Dy,features:[Uu]});var oec={provide:jy,useExisting:ld(function(){return Ey}),multi:!0},Ey=function(){Dy.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return Apa(a)}};Y(Ey,Dy);Ey.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Ey)))(b||Ey)}}();
Ey.\u0275dir=Kf({type:Ey,selectors:["input type number max  formControlName ".split(" "),"input type number max  formControl ".split(" "),"input type number max  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&ng("max",b._enabled?b.max:null)},inputs:{max:"max"},standalone:!1,features:[hh([oec]),kg]});
var pec={provide:jy,useExisting:ld(function(){return Fy}),multi:!0},Fy=function(){Dy.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return zpa(a)}};Y(Fy,Dy);Fy.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Fy)))(b||Fy)}}();
Fy.\u0275dir=Kf({type:Fy,selectors:["input type number min  formControlName ".split(" "),"input type number min  formControl ".split(" "),"input type number min  ngModel ".split(" ")],hostVars:1,hostBindings:function(a,b){a&2&&ng("min",b._enabled?b.min:null)},inputs:{min:"min"},standalone:!1,features:[hh([pec]),kg]});var qec={provide:jy,useExisting:ld(function(){return Gy}),multi:!0},Gy=function(){Dy.apply(this,arguments);this.inputName="required";this.normalizeInput=Dh;this.createValidator=function(){return Bpa}};
Y(Gy,Dy);Gy.prototype.enabled=function(a){return a};Gy.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Gy)))(b||Gy)}}();Gy.\u0275dir=Kf({type:Gy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&ng("required",b._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[hh([qec]),kg]});
var rec={provide:jy,useExisting:ld(function(){return Hy}),multi:!0},Hy=function(){Dy.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return Cpa(a)}};Y(Hy,Dy);Hy.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Hy)))(b||Hy)}}();
Hy.\u0275dir=Kf({type:Hy,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ng("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[hh([rec]),kg]});
var sec={provide:jy,useExisting:ld(function(){return Iy}),multi:!0},Iy=function(){Dy.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Epa(a)}};Y(Iy,Dy);Iy.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Iy)))(b||Iy)}}();
Iy.\u0275dir=Kf({type:Iy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&ng("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[hh([sec]),kg]});var Jy=function(){};Jy.\u0275fac=function(a){return new (a||Jy)};Jy.\u0275mod=Jf({type:Jy});Jy.\u0275inj=Tc({});var tec=function(a,b,c){ry.call(this,(Ni(b)?b.validators:b)||null,(Ni(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Ki(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(tec,ry);g=tec.prototype;g.at=function(a){return this.controls[this._adjustIndex(a)]};g.push=function(a,b){b=b===void 0?{}:b;this.controls.push(a);this._registerControl(a);Ki(this,{emitEvent:b.emitEvent});this._onCollectionChange()};
g.insert=function(a,b,c){c=c===void 0?{}:c;this.controls.splice(a,0,b);this._registerControl(b);Ki(this,{emitEvent:c.emitEvent})};g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;gqa(this,a);a.forEach(function(d,e){fqa(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});Ki(this,b)};g.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(a.forEach(function(d,e){c.at(e)&&c.at(e).patchValue(d,{onlySelf:!0,emitEvent:b.emitEvent})}),Ki(this,b))};
g.reset=function(a,b){a=a===void 0?[]:a;b=b===void 0?{}:b;this._forEachChild(function(c,d){c.reset(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b,this);this._updateTouched(b,this);Ki(this,b)};g.getRawValue=function(){return this.controls.map(function(a){return a.getRawValue()})};g.clear=function(a){a=a===void 0?{}:a;this.controls.length<1||(this._forEachChild(function(b){return b._registerOnCollectionChange(function(){})}),this.controls.splice(0),Ki(this,{emitEvent:a.emitEvent}))};
g._adjustIndex=function(a){return a<0?a+this.length:a};g._syncPendingControls=function(){var a=this.controls.reduce(function(b,c){return c._syncPendingControls()?!0:b},!1);a&&Ki(this,{onlySelf:!0});return a};g._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};g._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};
g._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};g._allControlsDisabled=function(){for(var a=l(this.controls),b=a.next();!b.done;b=a.next())if(b.value.enabled)return!1;return this.controls.length>0||this.disabled};g._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};
g._find=function(a){var b;return(b=this.at(a))!=null?b:null};ea.Object.defineProperties(tec.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var Ky=function(){this.useNonNullable=!1};g=Ky.prototype;g.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};iqa(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new sy(a,c)};g.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new dec(a,b)};g.control=function(a,b,c){var d={};if(!this.useNonNullable)return new uy(a,b,c);iqa(b)?d=b:(d.validators=b,d.asyncValidators=c);return new uy(a,Object.assign({},d,{nonNullable:!0}))};
g.array=function(a,b,c){var d=this;a=a.map(function(e){return d._createControl(e)});return new tec(a,b,c)};g._reduceControls=function(a){var b=this,c={};Object.keys(a).forEach(function(d){c[d]=b._createControl(a[d])});return c};g._createControl=function(a){return a instanceof uy?a:a instanceof ry?a:Array.isArray(a)?this.control(a[0],a.length>1?a[1]:null,a.length>2?a[2]:null):this.control(a)};
ea.Object.defineProperties(Ky.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new Ky;a.useNonNullable=!0;return a}}});Ky.\u0275fac=function(a){return new (a||Ky)};Ky.\u0275prov=Sc({token:Ky,factory:Ky.\u0275fac,providedIn:"root"});var Ly=function(){};Ly.\u0275fac=function(a){return new (a||Ly)};Ly.\u0275mod=Jf({type:Ly});Ly.\u0275inj=Tc({imports:[Jy]});var My=function(){};My.\u0275fac=function(a){return new (a||My)};My.\u0275mod=Jf({type:My});My.\u0275inj=Tc({imports:[Jy]});var uec=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},Ny=function(){var a=this;this._elementRef=n(ff);this._dateAdapter=n(Ax,{optional:!0});this._dateFormats=n(Ex,{optional:!0});this.dateChange=new hv;this.dateInput=new hv;this.stateChanges=new bg;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=ke.EMPTY;this._parseValidator=function(){return a._lastValueValid?null:
{matDatepickerParse:{text:a._elementRef.nativeElement.value}}};this._filterValidator=function(b){b=Bx(a._dateAdapter,Cx(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=Bx(a._dateAdapter,Cx(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||Dx(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=Bx(a._dateAdapter,Cx(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
Dx(a._dateAdapter,c,b)>=0?null:{matDatepickerMax:{max:c,actual:b}}};this._lastValueValid=!1;this._localeSubscription=this._dateAdapter.localeChanges.subscribe(function(){a._assignValueProgrammatically(a.value)})};g=Ny.prototype;g._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
g._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new uec(b,b._elementRef.nativeElement)),b.dateChange.emit(new uec(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(bdc(d)&&bdc(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.validate=function(a){return this._validator?this._validator(a):null};g.writeValue=function(a){this._assignValueProgrammatically(a)};g.registerOnChange=function(a){this._cvaOnChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];ri(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!ri(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
g._onInput=function(a){a=a.target.value;var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=Bx(this._dateAdapter,c);var d=!this._dateAdapter.sameDate(c,this.value);!c||d?this._cvaOnChange(c):(a&&!this.value&&this._cvaOnChange(c),b!==this._lastValueValid&&this._validatorOnChange());d&&(this._assignValue(c),this.dateInput.emit(new uec(this,this._elementRef.nativeElement)))};
g._onChange=function(){this.dateChange.emit(new uec(this,this._elementRef.nativeElement))};g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=a!=null?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};
g._parentDisabled=function(){return!1};g._assignValueProgrammatically=function(a){a=Cx(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=Bx(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
ea.Object.defineProperties(Ny.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(a){this._assignValueProgrammatically(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return!!this._disabled||!1},set:function(a){var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
Ny.\u0275fac=function(a){return new (a||Ny)};Ny.\u0275dir=Kf({type:Ny,inputs:{value:"value",disabled:[2,"disabled","disabled",Dh]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Uu]});var vec=new yd("MatError"),Oy=function(){this.id=n(Gw).getId("mat-mdc-error-");n(new Vu("aria-live"),{optional:!0})||n(ff).nativeElement.setAttribute("aria-live","polite")};Oy.\u0275fac=function(a){return new (a||Oy)};Oy.\u0275dir=Kf({type:Oy,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(a,b){a&2&&Ig("id",b.id)},inputs:{id:"id"},features:[hh([{provide:vec,useExisting:Oy}])]});var Py=function(){this.align="start";this.id=n(Gw).getId("mat-mdc-hint-")};Py.\u0275fac=function(a){return new (a||Py)};Py.\u0275dir=Kf({type:Py,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Ig("id",b.id),ng("align",null),wg("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var Qy=function(){};Qy.\u0275fac=function(a){return new (a||Qy)};Qy.\u0275dir=Kf({type:Qy,selectors:[["mat-label"]]});var wec=new yd("MatPrefix"),Ry=function(){this._isText=!1};ea.Object.defineProperties(Ry.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});Ry.\u0275fac=function(a){return new (a||Ry)};Ry.\u0275dir=Kf({type:Ry,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[hh([{provide:wec,useExisting:Ry}])]});var xec=new yd("MatSuffix");var Sy=function(){};Sy.\u0275fac=function(a){return new (a||Sy)};Sy.\u0275dir=Kf({type:Sy});var yec=function(a){var b=this;this._box=a;this._destroyed=new bg;this._resizeSubject=new bg;this._elementObservables=new Map;typeof ResizeObserver!=="undefined"&&(this._resizeObserver=new ResizeObserver(function(c){return b._resizeSubject.next(c)}))};
yec.prototype.observe=function(a){var b=this;this._elementObservables.has(a)||this._elementObservables.set(a,(new pe(function(c){var d=b._resizeSubject.subscribe(c),e;(e=b._resizeObserver)==null||e.observe(a,{box:b._box});return function(){var f;(f=b._resizeObserver)==null||f.unobserve(a);d.unsubscribe();b._elementObservables.delete(a)}})).pipe(Ve(function(c){return c.some(function(d){return d.target===a})}),cg({bufferSize:1,refCount:!0}),gg(this._destroyed)));return this._elementObservables.get(a)};
yec.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var Ty=function(){this._observers=new Map;this._ngZone=n(ph)};Ty.prototype.ngOnDestroy=function(){for(var a=l(this._observers),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b.next().value.destroy();this._observers.clear();var c;(c=this._cleanupErrorListener)==null||c.call(this)};
Ty.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new yec(b));return this._observers.get(b).observe(a)};Ty.\u0275fac=function(a){return new (a||Ty)};Ty.\u0275prov=Sc({token:Ty,factory:Ty.\u0275fac,providedIn:"root"});var zec=new yd("FloatingLabelParent"),Uy=function(){this._elementRef=n(ff);this._monitorResize=this._floating=!1;this._resizeObserver=n(Ty);this._ngZone=n(ph);this._parent=n(zec);this._resizeSubscription=new ke};Uy.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
Uy.prototype.getWidth=function(){var a=this._elementRef.nativeElement;if(a.offsetParent!==null)a=a.scrollWidth;else{a=a.cloneNode(!0);a.style.setProperty("position","absolute");a.style.setProperty("transform","translate(-9999px, -9999px)");document.documentElement.appendChild(a);var b=a.scrollWidth;a.remove();a=b}return a};Uy.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
Uy.prototype._subscribeToResize=function(){var a=this;this._resizeSubscription.unsubscribe();this._ngZone.runOutsideAngular(function(){a._resizeSubscription=a._resizeObserver.observe(a._elementRef.nativeElement,{box:"border-box"}).subscribe(function(){return a._handleResize()})})};
ea.Object.defineProperties(Uy.prototype,{floating:{configurable:!0,enumerable:!0,get:function(){return this._floating},set:function(a){this._floating=a;this.monitorResize&&this._handleResize()}},monitorResize:{configurable:!0,enumerable:!0,get:function(){return this._monitorResize},set:function(a){(this._monitorResize=a)?this._subscribeToResize():this._resizeSubscription.unsubscribe()}},element:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement}}});
Uy.\u0275fac=function(a){return new (a||Uy)};Uy.\u0275dir=Kf({type:Uy,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var Vy=function(){var a=this;this._elementRef=n(ff);this._handleTransitionEnd=function(d){var e=a._elementRef.nativeElement.classList,f=e.contains("mdc-line-ripple--deactivating");d.propertyName==="opacity"&&f&&e.remove("mdc-line-ripple--active","mdc-line-ripple--deactivating")};var b=n(ph),c=n(jv);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
Vy.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};Vy.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};Vy.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};Vy.\u0275fac=function(a){return new (a||Vy)};Vy.\u0275dir=Kf({type:Vy,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var Aec=["notch"],Wy=function(){this._elementRef=n(ff);this._ngZone=n(ph);this.open=!1};Wy.prototype.ngAfterViewInit=function(){var a=this._elementRef.nativeElement.querySelector(".mdc-floating-label");a?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame==="function"&&(a.style.transitionDuration="0s",this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return a.style.transitionDuration=""})}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")};
Wy.prototype._setNotchWidth=function(a){this._notch.nativeElement.style.width=this.open&&a?"calc("+a+"px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)":""};Wy.\u0275fac=function(a){return new (a||Wy)};
Wy.\u0275cmp=B({type:Wy,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&Wg(Aec,5);if(a&2){var c;$g(c=ah())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-notched-outline--notched",b.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:["matFormFieldNotchedOutline",""],ngContentSelectors:["*"],decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,
"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(a){a&1&&(Ng(),K(0,"div",1),I(1,"div",2,0),Og(3),J(),K(4,"div",3))},encapsulation:2,changeDetection:0});var Bec=["textField"],Cec=["iconPrefixContainer"],Dec=["textPrefixContainer"],Eec=["iconSuffixContainer"],Fec=["textSuffixContainer"],Gec=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Hec=new yd("MatFormField"),Iec=new yd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Xy=function(){var a=this;this._elementRef=
n(ff);this._changeDetectorRef=n(qv);this._dir=n(Qw);this._platform=n(ew);this._idGenerator=n(Gw);this._ngZone=n(ph);this._injector=n(Ze);this._defaults=n(Iec,{optional:!0});this._labelChild=Ula();this._hideRequiredMarker=!1;this.color="primary";this._appearance="fill";this._subscriptSizing=null;this._hintLabel="";this._hasTextSuffix=this._hasIconSuffix=this._hasTextPrefix=this._hasIconPrefix=!1;this._labelId=this._idGenerator.getId("mat-mdc-form-field-label-");this._hintLabelId=this._idGenerator.getId("mat-mdc-hint-");
this._destroyed=new bg;this._isFocused=null;this._needsOutlineLabelOffsetUpdate=!1;this._previousControlValidatorFn=this._previousControl=null;this._animationsDisabled=Hi();this.getLabelId=Ah(function(){return a._hasFloatingLabel()?a._labelId:null});this._hasFloatingLabel=Ah(function(){return!!a._labelChild()});var b=this._defaults;b&&(b.appearance&&(this.appearance=b.appearance),this._hideRequiredMarker=!(b==null||!b.hideRequiredMarker),b.color&&(this.color=b.color))};g=Xy.prototype;
g.ngAfterViewInit=function(){var a=this;this._updateFocusState();this._animationsDisabled||this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)});this._changeDetectorRef.detectChanges()};g.ngAfterContentInit=function(){this._initializeSubscript();this._initializePrefixAndSuffix();this._initializeOutlineLabelOffsetSubscriptions()};
g.ngAfterContentChecked=function(){this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control);this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()};
g.ngOnDestroy=function(){var a;(a=this._stateChanges)==null||a.unsubscribe();var b;(b=this._valueChanges)==null||b.unsubscribe();var c;(c=this._describedByChanges)==null||c.unsubscribe();this._destroyed.next();this._destroyed.complete()};g.getConnectedOverlayOrigin=function(){return this._textField||this._elementRef};g._animateAndLockLabel=function(){this._hasFloatingLabel()&&(this.floatLabel="always")};
g._initializeControl=function(a){var b=this,c=this._control;a&&this._elementRef.nativeElement.classList.remove("mat-mdc-form-field-type-"+a.controlType);c.controlType&&this._elementRef.nativeElement.classList.add("mat-mdc-form-field-type-"+c.controlType);var d;(d=this._stateChanges)==null||d.unsubscribe();this._stateChanges=c.stateChanges.subscribe(function(){b._updateFocusState();b._changeDetectorRef.markForCheck()});var e;(e=this._describedByChanges)==null||e.unsubscribe();this._describedByChanges=
c.stateChanges.pipe(eg([void 0,void 0]),y(function(){return[c.errorState,c.userAriaDescribedBy]}),Vja(),Ve(function(h){var k=l(h);var q=l(k.next().value);h=q.next().value;q=q.next().value;var u=l(k.next().value);k=u.next().value;u=u.next().value;return h!==k||q!==u})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(gg(this._destroyed)).subscribe(function(){return b._changeDetectorRef.markForCheck()}))};
g._checkPrefixAndSuffixTypes=function(){this._hasIconPrefix=!!this._prefixChildren.find(function(a){return!a._isText});this._hasTextPrefix=!!this._prefixChildren.find(function(a){return a._isText});this._hasIconSuffix=!!this._suffixChildren.find(function(a){return!a._isText});this._hasTextSuffix=!!this._suffixChildren.find(function(a){return a._isText})};
g._initializePrefixAndSuffix=function(){var a=this;this._checkPrefixAndSuffixTypes();Ue(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._checkPrefixAndSuffixTypes();a._changeDetectorRef.markForCheck()})};g._initializeSubscript=function(){var a=this;this._hintChildren.changes.subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._syncDescribedByIds()};
g._assertFormFieldControl=function(){};g._updateFocusState=function(){if(this._control.focused&&!this._isFocused){this._isFocused=!0;var a;(a=this._lineRipple)==null||a.activate()}else if(!this._control.focused&&(this._isFocused||this._isFocused===null)){this._isFocused=!1;var b;(b=this._lineRipple)==null||b.deactivate()}var c;(c=this._textField)==null||c.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)};
g._initializeOutlineLabelOffsetSubscriptions=function(){var a=this;this._prefixChildren.changes.subscribe(function(){return a._needsOutlineLabelOffsetUpdate=!0});rha(function(){a._needsOutlineLabelOffsetUpdate&&(a._needsOutlineLabelOffsetUpdate=!1,a._updateOutlineLabelOffset())},{injector:this._injector});this._dir.change.pipe(gg(this._destroyed)).subscribe(function(){return a._needsOutlineLabelOffsetUpdate=!0})};g._shouldAlwaysFloat=function(){return this.floatLabel==="always"};
g._hasOutline=function(){return this.appearance==="outline"};g._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};g._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};g._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};
g._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};g._handleLabelResized=function(){this._refreshOutlineNotchWidth()};g._refreshOutlineNotchWidth=function(){if(this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()){var a;(a=this._notchedOutline)==null||a._setNotchWidth(this._floatingLabel.getWidth())}else{var b;(b=this._notchedOutline)==null||b._setNotchWidth(0)}};g._processHints=function(){this._syncDescribedByIds()};
g._validateHints=function(){};
g._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,p(this._control.userAriaDescribedBy.split(" ")));if(this._getDisplayedMessages()==="hint"){var b=this._hintChildren?this._hintChildren.find(function(d){return d.align==="start"}):null,c=this._hintChildren?this._hintChildren.find(function(d){return d.align==="end"}):null;b?a.push(b.id):this._hintLabel&&a.push(this._hintLabelId);c&&a.push(c.id)}else this._errorChildren&&
a.push.apply(a,p(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};
g._updateOutlineLabelOffset=function(){if(this._hasOutline()&&this._floatingLabel){var a=this._floatingLabel.element;if(this._iconPrefixContainer||this._textPrefixContainer)if(this._isAttachedToDom()){var b,c=(b=this._iconPrefixContainer)==null?void 0:b.nativeElement,d;b=(d=this._textPrefixContainer)==null?void 0:d.nativeElement;var e;d=(e=this._iconSuffixContainer)==null?void 0:e.nativeElement;var f;e=(f=this._textSuffixContainer)==null?void 0:f.nativeElement;var h;c=(h=c==null?void 0:c.getBoundingClientRect().width)!=
null?h:0;var k;h=(k=b==null?void 0:b.getBoundingClientRect().width)!=null?k:0;var q;k=(q=d==null?void 0:d.getBoundingClientRect().width)!=null?q:0;var u;q=(u=e==null?void 0:e.getBoundingClientRect().width)!=null?u:0;a.style.transform="var(\n        --mat-mdc-form-field-label-transform,\n        translateY(-50%) translateX(calc("+((this._dir.value==="rtl"?"-1":"1")+" * ("+(c+h+"px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n    )"));this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",
"calc(100% - "+(c+h+k+q)+"px)")}else this._needsOutlineLabelOffsetUpdate=!0;else a.style.transform=""}};g._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
ea.Object.defineProperties(Xy.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=zi(a)}},floatLabel:{configurable:!0,enumerable:!0,get:function(){var a;return this._floatLabel||((a=this._defaults)==null?void 0:a.floatLabel)||"auto"},set:function(a){a!==this._floatLabel&&(this._floatLabel=a,this._changeDetectorRef.markForCheck())}},appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},
set:function(a){var b=this._appearance,c;this._appearance=a||((c=this._defaults)==null?void 0:c.appearance)||"fill";this._appearance==="outline"&&this._appearance!==b&&(this._needsOutlineLabelOffsetUpdate=!0)}},subscriptSizing:{configurable:!0,enumerable:!0,get:function(){var a;return this._subscriptSizing||((a=this._defaults)==null?void 0:a.subscriptSizing)||"fixed"},set:function(a){var b;this._subscriptSizing=a||((b=this._defaults)==null?void 0:b.subscriptSizing)||"fixed"}},hintLabel:{configurable:!0,
enumerable:!0,get:function(){return this._hintLabel},set:function(a){this._hintLabel=a;this._processHints()}},_control:{configurable:!0,enumerable:!0,get:function(){return this._explicitFormFieldControl||this._formFieldControl},set:function(a){this._explicitFormFieldControl=a}}});Xy.\u0275fac=function(a){return new (a||Xy)};
Xy.\u0275cmp=B({type:Xy,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Ala(b._labelChild,Xg(c,Qy,5)),Xg(c,Sy,5),Xg(c,wec,5),Xg(c,xec,5),Xg(c,vec,5),Xg(c,Py,5));if(a&2){Nd.currentQueryIndex+=1;var d;$g(d=ah())&&(b._formFieldControl=d.first);$g(d=ah())&&(b._prefixChildren=d);$g(d=ah())&&(b._suffixChildren=d);$g(d=ah())&&(b._errorChildren=d);$g(d=ah())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(Wg(Bec,5),Wg(Cec,5),Wg(Dec,5),Wg(Eec,5),Wg(Fec,5),Wg(Uy,5),Wg(Wy,5),Wg(Vy,5));
if(a&2){var c;$g(c=ah())&&(b._textField=c.first);$g(c=ah())&&(b._iconPrefixContainer=c.first);$g(c=ah())&&(b._textPrefixContainer=c.first);$g(c=ah())&&(b._iconSuffixContainer=c.first);$g(c=ah())&&(b._textSuffixContainer=c.first);$g(c=ah())&&(b._floatingLabel=c.first);$g(c=ah())&&(b._notchedOutline=c.first);$g(c=ah())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&wg("mat-mdc-form-field-label-always-float",b._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",
b._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",b._hasIconSuffix)("mat-form-field-invalid",b._control.errorState)("mat-form-field-disabled",b._control.disabled)("mat-form-field-autofilled",b._control.autofilled)("mat-form-field-appearance-fill",b.appearance=="fill")("mat-form-field-appearance-outline",b.appearance=="outline")("mat-form-field-hide-placeholder",b._hasFloatingLabel()&&!b._shouldLabelFloat())("mat-focused",b._control.focused)("mat-primary",b.color!=="accent"&&b.color!=="warn")("mat-accent",
b.color==="accent")("mat-warn",b.color==="warn")("ng-untouched",b._shouldForward("untouched"))("ng-touched",b._shouldForward("touched"))("ng-pristine",b._shouldForward("pristine"))("ng-dirty",b._shouldForward("dirty"))("ng-valid",b._shouldForward("valid"))("ng-invalid",b._shouldForward("invalid"))("ng-pending",b._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},
exportAs:["matFormField"],features:[hh([{provide:Hec,useExisting:Xy},{provide:zec,useExisting:Xy}])],ngContentSelectors:"*;mat-label;[matPrefix], [matIconPrefix];[matTextPrefix];[matTextSuffix];[matSuffix], [matIconSuffix];mat-error, [matError];mat-hint:not([align='end']);mat-hint[align='end']".split(";"),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(a,b){if(a&1){var c=r();Ng(Gec);C(0,lqa,1,1,"ng-template",null,0,nh);I(2,"div",6,1);M("click",function(){t(c);return v(b._control.onContainerClick())});E(4,mqa,1,0,"div",7);I(5,"div",8);E(6,pqa,2,2,"div",9);E(7,qqa,3,0,"div",10);E(8,rqa,3,
0,"div",11);I(9,"div",12);E(10,tqa,1,1,null,13);Og(11);J();E(12,uqa,3,0,"div",14);E(13,vqa,3,0,"div",15);J();E(14,wqa,1,0,"div",16);J();I(15,"div",17);E(16,xqa,2,0,"div",18)(17,zqa,5,1,"div",19);J()}if(a&2){var d;z(2);wg("mdc-text-field--filled",!b._hasOutline())("mdc-text-field--outlined",b._hasOutline())("mdc-text-field--no-label",!b._hasFloatingLabel())("mdc-text-field--disabled",b._control.disabled)("mdc-text-field--invalid",b._control.errorState);z(2);F(b._hasOutline()||b._control.disabled?-1:
4);z(2);F(b._hasOutline()?6:-1);z();F(b._hasIconPrefix?7:-1);z();F(b._hasTextPrefix?8:-1);z(2);F(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1);z(2);F(b._hasTextSuffix?12:-1);z();F(b._hasIconSuffix?13:-1);z();F(b._hasOutline()?-1:14);z();wg("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic");z();F((d=b._getDisplayedMessages())==="error"?16:d==="hint"?17:-1)}},dependencies:[Uy,Wy,Pv,Vy,Py],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],
encapsulation:2,changeDetection:0});var Yy=function(){};Yy.\u0275fac=function(a){return new (a||Yy)};Yy.\u0275mod=Jf({type:Yy});Yy.\u0275inj=Tc({imports:[zx,yw,Xy,zx]});var Jec=new yd("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition()}}}),Kec={provide:Jec,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},Zy=function(){var a=this;this._elementRef=n(ff);this._animationsDisabled=Hi();this._changeDetectorRef=n(qv);this._globalModel=n(Wx);this._dateAdapter=n(Ax);this._ngZone=n(ph);this._rangeSelectionStrategy=n(Kdc,{optional:!0});this._animationDone=
new bg;this._isAnimating=!1;this._actionsPortal=null;this._handleAnimationEvent=function(d){var e=a._elementRef.nativeElement;d.target===e&&d.animationName.startsWith("_mat-datepicker-content")&&(clearTimeout(a._animationFallback),a._isAnimating=d.type==="animationstart",e.classList.toggle("mat-datepicker-content-animating",a._isAnimating),a._isAnimating||a._animationDone.next())};n(kw).load(lw);this._closeButtonText=n(Qx).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,
c=n(jv);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[c.listen(b,"animationstart",a._handleAnimationEvent),c.listen(b,"animationend",a._handleAnimationEvent),c.listen(b,"animationcancel",a._handleAnimationEvent)]})}};g=Zy.prototype;g.ngAfterViewInit=function(){var a=this;this._stateChanges=this.datepicker.stateChanges.subscribe(function(){a._changeDetectorRef.markForCheck()});this._calendar._getCurrentViewComponent()._focusActiveCell(!1)};
g.ngOnDestroy=function(){clearTimeout(this._animationFallback);var a;(a=this._eventCleanups)==null||a.forEach(function(c){return c()});var b;(b=this._stateChanges)==null||b.unsubscribe();this._animationDone.complete()};g._handleUserSelection=function(a){var b=this._model.selection;a=a.value;!a||this._dateAdapter.sameDate(a,b)||this._model.add(a);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()};
g._handleUserDragDrop=function(a){this._model.updateSelection(a.value,this)};g._startExitAnimation=function(){var a=this;this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit");this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(function(){a._isAnimating||a._animationDone.next()},200))};g._getSelected=function(){return this._model.selection};
g._applyPendingSelection=function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)};g._assignActions=function(a,b){this._model=a?this._globalModel.clone():this._globalModel;this._actionsPortal=a;b&&this._changeDetectorRef.detectChanges()};Zy.\u0275fac=function(a){return new (a||Zy)};
Zy.\u0275cmp=B({type:Zy,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&Wg(fy,5);if(a&2){var c;$g(c=ah())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(xg(b.color?"mat-"+b.color:""),wg("mat-datepicker-content-touch",b.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!b._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",
1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"mat-calendar",1),M("yearSelected",
function(d){return b.datepicker._selectYear(d)})("monthSelected",function(d){return b.datepicker._selectMonth(d)})("viewChanged",function(d){return b.datepicker._viewChanged(d)})("_userSelection",function(d){return b._handleUserSelection(d)})("_userDragDrop",function(d){return b._handleUserDragDrop(d)}),J(),C(2,Aqa,0,0,"ng-template",2),I(3,"button",3),M("focus",function(){return b._closeButtonFocused=!0})("blur",function(){return b._closeButtonFocused=!1})("click",function(){return b.datepicker.close()}),
Q(4),J()());if(a&2){wg("mat-datepicker-content-container-with-custom-header",b.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",b._actionsPortal);var c;ng("aria-modal",!0)("aria-labelledby",(c=b._dialogLabelId)!=null?c:void 0);z();xg(b.datepicker.panelClass);D("id",b.datepicker.id)("startAt",b.datepicker.startAt)("startView",b.datepicker.startView)("minDate",b.datepicker._getMinDate())("maxDate",b.datepicker._getMaxDate())("dateFilter",b.datepicker._getDateFilter())("headerComponent",
b.datepicker.calendarHeaderComponent)("selected",b._model.selection)("dateClass",b.datepicker.dateClass)("comparisonStart",b.comparisonStart)("comparisonEnd",b.comparisonEnd)("startDateAccessibleName",b.startDateAccessibleName)("endDateAccessibleName",b.endDateAccessibleName);z();D("cdkPortalOutlet",b._actionsPortal);z();wg("cdk-visually-hidden",!b._closeButtonFocused);D("color",b.color||"primary");z();ch(b._closeButtonText)}},dependencies:[qw,fy,tx,Tx],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],
encapsulation:2,changeDetection:0});
var $y=function(){var a=this;this._overlay=n(vx);this._viewContainerRef=n(Ug);this._dateAdapter=n(Ax,{optional:!0});this._dir=n(Qw,{optional:!0});this._model=n(Wx);this._animationsDisabled=Hi();this._scrollStrategy=n(Jec);this._inputStateChanges=ke.EMPTY;this._document=n(Ei);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new hv;this.monthSelected=new hv;this.viewChanged=new hv(!0);this.openedStream=new hv;this.closedStream=
new hv;this._opened=!1;this.id=n(Gw).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new bg;this._injector=n(Ze);this._changeDetectorRef=n(qv);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};g=$y.prototype;g._getMinDate=function(){return this.datepickerInput&&this.datepickerInput.min};g._getMaxDate=function(){return this.datepickerInput&&this.datepickerInput.max};
g._getDateFilter=function(){return this.datepickerInput&&this.datepickerInput.dateFilter};g.ngOnChanges=function(a){(a=a.xPosition||a.yPosition)&&!a.firstChange&&this._overlayRef&&(a=this._overlayRef.getConfig().positionStrategy,a instanceof gx&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition()));this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._destroyOverlay();this.close();this._inputStateChanges.unsubscribe();this.stateChanges.complete()};g.select=function(a){this._model.add(a)};
g._selectYear=function(a){this.yearSelected.emit(a)};g._selectMonth=function(a){this.monthSelected.emit(a)};g._viewChanged=function(a){this.viewChanged.emit(a)};var Lec=function(a,b){a._inputStateChanges.unsubscribe();a.datepickerInput=b;a._inputStateChanges=b.stateChanges.subscribe(function(){return a.stateChanges.next(void 0)});return a._model};g=$y.prototype;
g.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=wi(),this._openOverlay(),this._opened=!0,this.openedStream.emit())};
g.close=function(){var a=this,b;if(this._opened&&((b=this._componentRef)==null||!b.instance._isAnimating)){var c=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus==="function";b=function(){a._opened&&(a._opened=!1,a.closedStream.emit())};if(this._componentRef){var d=this._componentRef,e=d.instance,f=d.location;e._animationDone.pipe(Uf()).subscribe(function(){var h=a._document.activeElement;!c||h&&h!==a._document.activeElement&&!f.nativeElement.contains(h)||
a._focusedElementBeforeOpen.focus();a._focusedElementBeforeOpen=null;a._destroyOverlay()});e._startExitAnimation()}c?setTimeout(b):b()}};g._applyPendingSelection=function(){var a,b;(a=this._componentRef)==null||(b=a.instance)==null||b._applyPendingSelection()};
g._forwardContentValues=function(a){a.datepicker=this;a.color=this.color;var b=this.datepickerInput;b=b._formField?b._formField.getLabelId():b._elementRef.nativeElement.getAttribute("aria-labelledby");a._dialogLabelId=b;a._assignActions(this._actionsPortal,!1)};
g._openOverlay=function(){var a=this;this._destroyOverlay();var b=this.touchUi,c=new ox(Zy,this._viewContainerRef),d=this._overlayRef=this._overlay.create(new ex({positionStrategy:b?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[b?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:b?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(b?"dialog":
"popup"),disableAnimations:this._animationsDisabled}));this._getCloseStream(d).subscribe(function(e){e&&e.preventDefault();a.close()});d.keydownEvents().subscribe(function(e){var f=e.keyCode;f!==38&&f!==40&&f!==37&&f!==39&&f!==33&&f!==34||e.preventDefault()});this._componentRef=d.attach(c);this._forwardContentValues(this._componentRef.instance);b||$e(function(){d.updatePosition()},{injector:this._injector})};
g._destroyOverlay=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)};g._getDialogStrategy=function(){return Vcc(kx(this._overlay.position().global()))};g._getDropdownStrategy=function(){var a=Scc(ix(jx(Tcc(mx(this._overlay.position(),this.datepickerInput.getConnectedOverlayOrigin()),".mat-datepicker-content"),!1),8));return this._setConnectedPositions(a)};
g._setConnectedPositions=function(a){var b=this.xPosition==="end"?"end":"start",c=b==="start"?"end":"start",d=this.yPosition==="above"?"bottom":"top",e=d==="top"?"bottom":"top";return hx(a,[{originX:b,originY:e,overlayX:b,overlayY:d},{originX:b,originY:d,overlayX:b,overlayY:e},{originX:c,originY:e,overlayX:c,overlayY:d},{originX:c,originY:d,overlayX:c,overlayY:e}])};
g._getCloseStream=function(a){var b=this,c=["ctrlKey","shiftKey","metaKey"];return Ue(a.backdropClick(),a._detachments,a.keydownEvents().pipe(Ve(function(d){return d.keyCode===27&&!ri(d)||b.datepickerInput&&ri(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!ri(d,e)})})))};
ea.Object.defineProperties($y.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=Bx(this._dateAdapter,Cx(this._dateAdapter,a))}},color:{configurable:!0,enumerable:!0,get:function(){var a;(a=this._color)||(this.datepickerInput?(a=this.datepickerInput,a=a._formField?a._formField.color:void 0):a=void 0);return a},set:function(a){this._color=a}},disabled:{configurable:!0,enumerable:!0,
get:function(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(a){a!==this._disabled&&(this._disabled=a,this.stateChanges.next(void 0))}},panelClass:{configurable:!0,enumerable:!0,get:function(){return this._panelClass},set:function(a){var b=b===void 0?/\s+/:b;var c=[];if(a!=null)for(a=Array.isArray(a)?a:(""+a).split(b),a=l(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);this._panelClass=c}},opened:{configurable:!0,
enumerable:!0,get:function(){return this._opened},set:function(a){a?this.open():this.close()}}});$y.\u0275fac=function(a){return new (a||$y)};
$y.\u0275dir=Kf({type:$y,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Dh],disabled:[2,"disabled","disabled",Dh],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Dh],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Dh]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[Uu]});var Mec=new yd("MAT_INPUT_VALUE_ACCESSOR");var az=function(){};az.\u0275fac=function(a){return new (a||az)};
az.\u0275cmp=B({type:az,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,
changeDetection:0});var Nec={passive:!0},bz=function(){this._platform=n(ew);this._ngZone=n(ph);this._renderer=n(Ff).createRenderer(null,null);this._styleLoader=n(kw);this._monitoredElements=new Map};
bz.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return Te;this._styleLoader.load(az);var c=Bi(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new bg,e=function(f){f.animationName!=="cdk-text-field-autofill-start"||c.classList.contains("cdk-text-field-autofilled")?f.animationName==="cdk-text-field-autofill-end"&&c.classList.contains("cdk-text-field-autofilled")&&(c.classList.remove("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,
isAutofilled:!1})})):(c.classList.add("cdk-text-field-autofilled"),b._ngZone.run(function(){return d.next({target:f.target,isAutofilled:!0})}))};a=this._ngZone.runOutsideAngular(function(){c.classList.add("cdk-text-field-autofill-monitored");return si(b._renderer,c,"animationstart",e,Nec)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
bz.prototype.stopMonitoring=function(a){a=Bi(a);var b=this._monitoredElements.get(a);b&&(b.unlisten(),b.subject.complete(),a.classList.remove("cdk-text-field-autofill-monitored"),a.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(a))};bz.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};bz.\u0275fac=function(a){return new (a||bz)};bz.\u0275prov=Sc({token:bz,factory:bz.\u0275fac,providedIn:"root"});var cz=function(){var a=this;this._elementRef=n(ff);this._platform=n(ew);this._ngZone=n(ph);this._renderer=n(jv);this._resizeEvents=new bg;this._destroyed=new bg;this._enabled=!0;this._previousMinRows=-1;this._document=n(Ei,{optional:!0});this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};n(kw).load(az);this._textareaElement=this._elementRef.nativeElement};g=cz.prototype;
g._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};g._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,Oec(this),this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen("window","resize",function(){return a._resizeEvents.next()}),a._renderer.listen(a._textareaElement,"focus",a._handleFocusEvent),a._renderer.listen(a._textareaElement,"blur",a._handleFocusEvent)];a._resizeEvents.pipe(Of(16)).subscribe(function(){a._cachedLineHeight=a._cachedPlaceholderHeight=
void 0;Oec(a,!0)})}),this._isViewInited=!0,Oec(this,!0))};g.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()});this._resizeEvents.complete();this._destroyed.next();this._destroyed.complete()};
g._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1),b=a.style;a.rows=1;b.position="absolute";b.visibility="hidden";b.border="none";b.padding="0";b.height="";b.minHeight="";b.maxHeight="";b.top=b.bottom=b.left=b.right="auto";b.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
g._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
g._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&this._cachedPlaceholderHeight==void 0)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};g.ngDoCheck=function(){this._platform.isBrowser&&Oec(this)};
var Oec=function(a,b){b=b===void 0?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),a._cachedScrollTop=a._textareaElement.scrollTop,a._cachedLineHeight)){var c=a._elementRef.nativeElement,d=c.value;if(b||a._minRows!==a._previousMinRows||d!==a._previousValue)b=a._measureScrollHeight(),c.style.height=Math.max(b,a._cachedPlaceholderHeight||0)+"px",a._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame!=="undefined"?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):
setTimeout(function(){return a._scrollToCaretPosition(c)})}),a._previousValue=d,a._previousMinRows=a._minRows}};cz.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};cz.prototype._noopInputHandler=function(){};cz.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&(a.setSelectionRange(b,c),a.scrollTop=this._cachedScrollTop)};
ea.Object.defineProperties(cz.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Ci(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Ci(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?Oec(this,!0):this.reset())}},placeholder:{configurable:!0,enumerable:!0,
get:function(){return this._textareaElement.placeholder},set:function(a){this._cachedPlaceholderHeight=void 0;a?this._textareaElement.setAttribute("placeholder",a):this._textareaElement.removeAttribute("placeholder");this._cacheTextareaPlaceholderHeight()}}});cz.\u0275fac=function(a){return new (a||cz)};
cz.\u0275dir=Kf({type:cz,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&M("input",function(){})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",Dh],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var dz=function(){};dz.\u0275fac=function(a){return new (a||dz)};dz.\u0275mod=Jf({type:dz});dz.\u0275inj=Tc({});var Pec="button checkbox file hidden image radio range reset submit".split(" "),Qec=new yd("MAT_INPUT_CONFIG"),ez=function(){var a=this;this._elementRef=n(ff);this._platform=n(ew);this.ngControl=n(my,{optional:!0,self:!0});this._autofillMonitor=n(bz);this._ngZone=n(ph);this._formField=n(Hec,{optional:!0});this._renderer=n(jv);this._uid=n(Gw).getId("mat-input-");this._config=n(Qec,{optional:!0});this.focused=!1;this.stateChanges=new bg;this.controlType="mat-input";this._disabled=this.autofilled=!1;
this._type="text";this._readonly=!1;this._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(q){return uoa().has(q)});this._iOSKeyupListener=function(q){q=q.target;q.value||q.selectionStart!==0||q.selectionEnd!==0||(q.setSelectionRange(1,1),q.setSelectionRange(0,0))};this._webkitBlinkWheelListener=function(){};var b=n(ty,{optional:!0}),c=n(By,{optional:!0}),d=n(Fx),e=n(Mec,{optional:!0,self:!0}),f=this._elementRef.nativeElement,h=f.nodeName.toLowerCase();
e?Nf(e.value)?this._signalBasedValueAccessor=e:this._inputValueAccessor=e:this._inputValueAccessor=f;this._previousNativeValue=this.value;this.id=this.id;this._platform.IOS&&this._ngZone.runOutsideAngular(function(){a._cleanupIosKeyup=a._renderer.listen(f,"keyup",a._iOSKeyupListener)});this._errorStateTracker=new adc(d,this.ngControl,c,b,this.stateChanges);this._isServer=!this._platform.isBrowser;this._isNativeSelect=h==="select";this._isTextarea=h==="textarea";this._isInFormField=!!this._formField;
var k;this.disabledInteractive=((k=this._config)==null?void 0:k.disabledInteractive)||!1;this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select");this._signalBasedValueAccessor&&qma(function(){a._signalBasedValueAccessor.value();a.stateChanges.next()})};g=ez.prototype;g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};
g.ngOnChanges=function(){this.stateChanges.next()};g.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);var a;(a=this._cleanupIosKeyup)==null||a.call(this);var b;(b=this._cleanupWebkitWheel)==null||b.call(this)};
g.ngDoCheck=function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next()));this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};g.focus=function(a){this._elementRef.nativeElement.focus(a)};g.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
g._focusChanged=function(a){if(a!==this.focused){if(!this._isNativeSelect&&a&&this.disabled&&this.disabledInteractive){var b=this._elementRef.nativeElement;b.type==="number"?(b.type="text",b.setSelectionRange(0,0),b.type="number"):b.setSelectionRange(0,0)}this.focused=a;this.stateChanges.next()}};g._onInput=function(){};g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};
g._dirtyCheckPlaceholder=function(){var a=this._getPlaceholder();if(a!==this._previousPlaceholder){var b=this._elementRef.nativeElement;(this._previousPlaceholder=a)?b.setAttribute("placeholder",a):b.removeAttribute("placeholder")}};g._getPlaceholder=function(){return this.placeholder||null};g._validateType=function(){Pec.indexOf(this._type)};g._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};
g._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};g.setDescribedByIds=function(a){var b=this._elementRef.nativeElement,c=b.getAttribute("aria-describedby");if(c){var d=this._formFieldDescribedBy||a;c=a.concat(c.split(" ").filter(function(e){return e&&!d.includes(e)}))}else c=a;this._formFieldDescribedBy=a;c.length?b.setAttribute("aria-describedby",c.join(" ")):b.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focused||this.focus()};
g._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)};g._ensureWheelDefaultBehavior=function(){var a;(a=this._cleanupWebkitWheel)==null||a.call(this);this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))};
g._getReadonlyAttribute=function(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null};
ea.Object.defineProperties(ez.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=zi(a);this.focused&&(this.focused=!1,this.stateChanges.next())}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid}},required:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return(d=(c=this._required)!=null?c:(a=this.ngControl)==null?void 0:(b=a.control)==null?void 0:$dc(b))!=null?d:!1},
set:function(a){this._required=zi(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){var b=this._type;this._type=a||"text";this._validateType();!this._isTextarea&&uoa().has(this._type)&&(this._elementRef.nativeElement.type=this._type);this._type!==b&&this._ensureWheelDefaultBehavior()}},errorStateMatcher:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.matcher},set:function(a){this._errorStateTracker.matcher=a}},value:{configurable:!0,
enumerable:!0,get:function(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(a):this._inputValueAccessor.value=a,this.stateChanges.next())}},readonly:{configurable:!0,enumerable:!0,get:function(){return this._readonly},set:function(a){this._readonly=zi(a)}},errorState:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.errorState},
set:function(a){this._errorStateTracker.errorState=a}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,b=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&b&&b.label)}return this.focused&&!this.disabled||!this.empty}}});
ez.\u0275fac=function(a){return new (a||ez)};
ez.\u0275dir=Kf({type:ez,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(a,b){a&1&&M("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(Ig("id",b.id)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),ng("name",
b.name||null)("readonly",b._getReadonlyAttribute())("aria-disabled",b.disabled&&b.disabledInteractive?"true":null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required)("id",b.id),wg("mat-input-server",b._isServer)("mat-mdc-form-field-textarea-control",b._isInFormField&&b._isTextarea)("mat-mdc-form-field-input-control",b._isInFormField)("mat-mdc-input-disabled-interactive",b.disabledInteractive)("mdc-text-field__input",b._isInFormField)("mat-mdc-native-select-inline",b._isInlineSelect()))},
inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dh]},exportAs:["matInput"],features:[hh([{provide:Sy,useExisting:ez}]),Uu]});var fz=function(){};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275mod=Jf({type:fz});fz.\u0275inj=Tc({imports:[zx,Yy,Yy,dz,zx]});var Rec={provide:iy,useExisting:ld(function(){return gz}),multi:!0},Sec={provide:jy,useExisting:ld(function(){return gz}),multi:!0},gz=function(){Ny.call(this);this._formField=n(Hec,{optional:!0});this._openedSubscription=this._closedSubscription=ke.EMPTY;this._ariaOwns=bh(null);this._validator=Kpa(Ny.prototype._getValidators.call(this))};Y(gz,Ny);g=gz.prototype;g.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
g.ngOnDestroy=function(){Ny.prototype.ngOnDestroy.call(this);this._closedSubscription.unsubscribe();this._openedSubscription.unsubscribe()};g._openPopup=function(){this._datepicker&&this._datepicker.open()};g._getValueFromModel=function(a){return a};g._assignValueToModel=function(a){this._model&&this._model.updateSelection(a,this)};g._getMinDate=function(){return this._min};g._getMaxDate=function(){return this._max};g._getDateFilter=function(){return this._dateFilter};
g._shouldHandleChangeEvent=function(a){return a.source!==this};
ea.Object.defineProperties(gz.prototype,{matDatepicker:{configurable:!0,enumerable:!0,set:function(a){var b=this;a&&(this._datepicker=a,this._ariaOwns.set(a.opened?a.id:null),this._closedSubscription=a.closedStream.subscribe(function(){b._onTouched();b._ariaOwns.set(null)}),this._openedSubscription=a.openedStream.subscribe(function(){b._ariaOwns.set(a.id)}),this._registerModel(Lec(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=Bx(this._dateAdapter,
Cx(this._dateAdapter,a));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}},max:{configurable:!0,enumerable:!0,get:function(){return this._max},set:function(a){a=Bx(this._dateAdapter,Cx(this._dateAdapter,a));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}},dateFilter:{configurable:!0,enumerable:!0,get:function(){return this._dateFilter},set:function(a){var b=this._matchesFilter(this.value);this._dateFilter=a;this._matchesFilter(this.value)!==
b&&this._validatorOnChange()}}});gz.\u0275fac=function(a){return new (a||gz)};
gz.\u0275dir=Kf({type:gz,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,b){a&1&&M("input",function(c){return b._onInput(c)})("change",function(){return b._onChange()})("blur",function(){return b._onBlur()})("keydown",function(c){return b._onKeydown(c)});a&2&&(Ig("disabled",b.disabled),ng("aria-haspopup",b._datepicker?"dialog":null)("aria-owns",b._ariaOwns())("min",b.min?b.min.toIsoString(!0):null)("max",b.max?b.max.toIsoString(!0):
null)("data-mat-calendar",b._datepicker?b._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[hh([Rec,Sec,{provide:Mec,useExisting:gz}]),kg]});var Tec=["button"],Uec=[[["","matDatepickerToggleIcon",""]]],Vec=function(){};Vec.\u0275fac=function(a){return new (a||Vec)};Vec.\u0275dir=Kf({type:Vec,selectors:[["","matDatepickerToggleIcon",""]]});var hz=function(){this._intl=n(Qx);this._changeDetectorRef=n(qv);this._stateChanges=ke.EMPTY;var a=n(new Vu("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};g=hz.prototype;g.ngOnChanges=function(a){a.datepicker&&this._watchStateChanges()};g.ngOnDestroy=function(){this._stateChanges.unsubscribe()};
g.ngAfterContentInit=function(){this._watchStateChanges()};g._open=function(a){this.datepicker&&!this.disabled&&(this.datepicker.open(),a.stopPropagation())};
g._watchStateChanges=function(){var a=this,b=this.datepicker?this.datepicker.stateChanges:Ce(),c=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Ce(),d=this.datepicker?Ue(this.datepicker.openedStream,this.datepicker.closedStream):Ce();this._stateChanges.unsubscribe();this._stateChanges=Ue(this._intl.changes,b,c,d).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
ea.Object.defineProperties(hz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(a){this._disabled=a}}});hz.\u0275fac=function(a){return new (a||hz)};
hz.\u0275cmp=B({type:hz,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&Xg(c,Vec,5);if(a&2){var d;$g(d=ah())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&Wg(Tec,5);if(a&2){var c;$g(c=ah())&&(b._button=c.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,b){a&1&&M("click",function(c){return b._open(c)});a&2&&(ng("tabindex",null)("data-mat-calendar",b.datepicker?b.datepicker.id:null),wg("mat-datepicker-toggle-active",b.datepicker&&
b.datepicker.opened)("mat-accent",b.datepicker&&b.datepicker.color==="accent")("mat-warn",b.datepicker&&b.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Dh],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Uu],ngContentSelectors:["[matDatepickerToggleIcon]"],decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],
["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,b){a&1&&(Ng(Uec),I(0,"button",1,0),E(2,Bqa,2,0,":svg:svg",2),Og(3),J());a&2&&(D("tabIndex",b.disabled?-1:b.tabIndex)("disabled",b.disabled)("disableRipple",b.disableRipple),ng("aria-haspopup",
b.datepicker?"dialog":null)("aria-label",b.ariaLabel||b._intl.openCalendarLabel)("aria-expanded",b.datepicker?b.datepicker.opened:null),z(2),F(b._customIcon?-1:2))},dependencies:[Ux],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],
encapsulation:2,changeDetection:0});var iz=function(){$y.apply(this,arguments)};Y(iz,$y);iz.\u0275dir=$y.\u0275dir;iz.\u0275fac=function(){var a;return function(b){return(a||(a=fe(iz)))(b||iz)}}();iz.\u0275cmp=B({type:iz,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[hh([Jdc,{provide:$y,useExisting:iz}]),kg],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var jz=function(){};jz.\u0275fac=function(a){return new (a||jz)};jz.\u0275mod=Jf({type:jz});jz.\u0275inj=Tc({providers:[Qx,Kec],imports:[Vx,yx,Aw,ux,zx,Zy,hz,gy,bx]});var Cqa=/^[a-z][a-z\d-]*$/i,Dqa="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Gqa="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Hqa=["action","formaction","href"];var Jqa=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var kz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kz,V);kz.prototype.getId=function(){return Oh(this,1)};kz.prototype.setId=function(a){return Lk(this,1,a)};kz.prototype.getSourceId=function(){return pl(this,2)};kz.prototype.setSourceId=function(a){return Nk(this,2,a)};var dl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dl,V);g=dl.prototype;g.getSeconds=function(){return Dl(this,1)};g.getSeconds_asLegacyNumberOrString=function(){return zl(this,1)};g.getSeconds_asString=function(){return Gl(this,1)};g.setSeconds=function(a){return Fm(this,1,a)};g.getNanos=function(){return Ik(this,2)};g.setNanos=function(a){return $k(this,2,a)};
g.fromMillis=function(a){if(!Number.isFinite(a))throw Error();var b=Math.trunc(a);a=(a-b+b%1E3)*1E6;return this.setSeconds(Math.trunc(b/1E3)).setNanos(Math.trunc(a))};var Wec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wec,V);g=Wec.prototype;g.getUrl=function(){return Oh(this,1)};g.setUrl=function(a){return Lk(this,1,a)};g.getHeight=function(){return Ik(this,2)};g.setHeight=function(a){return $k(this,2,a)};g.getWidth=function(){return Ik(this,3)};g.setWidth=function(a){return $k(this,3,a)};var lz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lz,V);lz.prototype.getDuration=function(){return X(this,dl,2)};var Xec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xec,V);var Yec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yec,V);g=Yec.prototype;g.getEmailList=function(){return Ek(this,1,Fk())};g.setEmailList=function(a){return Mk(this,1,a)};g.addEmail=function(a){return Pc(this,1,hc,a,void 0,ic)};g.removeEmail=function(a){return Pc(this,1,hc,void 0,a,ic,1,!1,!0)};g.getEmail=function(a){return Ku(this,1,a)};g.setEmail=function(a){return Ou(this,1,a)};g.getGroupId=function(a){return Ku(this,2,a)};
g.setGroupId=function(a){Ou(this,2,a)};var Zec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zec,V);var $ec=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($ec,V);$ec.prototype.getDownloadUrl=function(){return Oh(this,5)};var afc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(afc,V);var bfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bfc,V);var cfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cfc,V);cfc.prototype.getPhotoId=function(){return Oh(this,1)};var dfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dfc,V);var efc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(efc,V);var ffc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ffc,V);var mz=[2,4,5,6,7];var gfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gfc,V);var Go=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Go,V);Go.prototype.getTypeName=function(){return Oh(this,1).split("/").pop()};Go.prototype.getValue=function(){var a=rl(this,2);if(Array.isArray(a)||a instanceof V)throw Error("Sa");return sq(this,2)};Go.prototype.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=tq(this,2,Cda(a));else if(typeof a==="string"||a instanceof qb||eb(a))a=Im(this,2,a);else throw Error("ma`"+a);return a};var nz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nz,V);g=nz.prototype;g.getId=function(){return X(this,kz,1)};g.setId=function(a){return W(this,kz,1,a)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Lk(this,2,a)};g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Lk(this,3,a)};g.getParentId=function(){return Oh(this,4)};g.setParentId=function(a){return Lk(this,4,a)};g.getType=function(){return pl(this,6)};
g.setType=function(a){return Nk(this,6,a)};g.getMimeType=function(){return Oh(this,7)};g.setMimeType=function(a){Lk(this,7,a)};g.getUrl=function(){return Oh(this,8)};g.setUrl=function(a){return Lk(this,8,a)};g.getIconUrl=function(){return Oh(this,11)};g.setIconUrl=function(a){return Lk(this,11,a)};var oz=function(a){return Wk(a,Wec,10,Fk())};g=nz.prototype;g.getLastModifiedTimestamp=function(){return X(this,bl,12)};g.getVideoMetadata=function(){return X(this,lz,34)};
g.hasVideoMetadata=function(){return nk(this,lz,34)};g.setOwnedByMe=function(a){return Xm(this,39,a)};g.getOwner=function(){return Ku(this,40)};g.setOwner=function(a){return Ou(this,40,a)};g.getStarred=function(){return kl(this,44)};var pz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pz,V);g=pz.prototype;g.getShared=function(){return kl(this,1)};g.setShared=function(a){Xm(this,1,a)};g.getVideoMetadata=function(){return X(this,lz,3)};
g.hasVideoMetadata=function(){return nk(this,lz,3)};g.getDownloadUrl=function(){return Oh(this,10)};var hfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hfc,V);hfc.prototype.getLabel=function(){return Oh(this,2)};hfc.prototype.setLabel=function(a){return Lk(this,2,a)};var ifc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ifc,V);g=ifc.prototype;g.getStatus=function(){return pl(this,1)};g.setStatus=function(a){return Nk(this,1,a)};g.getItemList=function(a){return Wk(this,nz,2,Fk(a))};g.addItem=function(a,b){return Eu(this,2,nz,a,b)};g.setItem=function(a,b){return Bu(this,2,nz,a,b)};g.removeItem=function(a){return Fu(this,2,nz,a)};g.getItemCount=function(){return q9b(this,nz,2)};g.getErrorCode=function(){return pl(this,4)};
g.getInternalOnlyV1ViewInfo=function(){return X(this,hfc,7)};var jfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jfc,V);g=jfc.prototype;g.getSourceId=function(){return pl(this,1)};g.setSourceId=function(a){return Nk(this,1,a)};g.getName=function(){return Oh(this,8)};g.setName=function(a){return Lk(this,8,a)};g.getInternalOnlyV1ViewInfo=function(){return X(this,hfc,18)};var kfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kfc,V);g=kfc.prototype;g.getCommand=function(){return pl(this,1)};g.setCommand=function(a){return Nk(this,1,a)};g.getSource=function(){return X(this,jfc,2)};g.setSource=function(a){return W(this,jfc,2,a)};g.hasSource=function(){return nk(this,jfc,2)};g.setVisible=function(a){return Xm(this,5,a)};g.getItemList=function(a){return Wk(this,nz,7,Fk(a))};g.addItem=function(a,b){return Eu(this,7,nz,a,b)};
g.setItem=function(a,b){return Bu(this,7,nz,a,b)};g.removeItem=function(a){return Fu(this,7,nz,a)};g.getItemCount=function(){return q9b(this,nz,7)};g.getQuery=function(){return Oh(this,8)};g.setQuery=function(a){return Lk(this,8,a)};g.clearQuery=function(){tq(this,8)};g.getAppId=function(){return Oh(this,9)};g.setAppId=function(a){Lk(this,9,a)};var lfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lfc,V);g=lfc.prototype;g.getCommand=function(){return pl(this,1)};g.setCommand=function(a){return Nk(this,1,a)};g.getItemList=function(a){return Wk(this,nz,4,Fk(a))};g.addItem=function(a,b){return Eu(this,4,nz,a,b)};g.setItem=function(a,b){return Bu(this,4,nz,a,b)};g.removeItem=function(a){return Fu(this,4,nz,a)};g.getItemCount=function(){return q9b(this,nz,4)};var mfc=Rh(lfc);var nfc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nfc,V);var ofc=[0,Uac,Xac,-1];var qz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qz,V);qz.prototype.setBase=function(a){return W(this,nfc,1,a)};var rz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rz,V);var JEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JEa,V);JEa.prototype.getValue=function(){return Dl(this,1)};JEa.prototype.getValue_asLegacyNumberOrString=function(){return zl(this,1)};JEa.prototype.setValue=function(a){return Fm(this,1,a)};var Zk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zk,V);g=Zk.prototype;g.getYear=function(){return Ik(this,1)};g.setYear=function(a){return $k(this,1,a)};g.getMonth=function(){return Ik(this,2)};g.setMonth=function(a){return $k(this,2,a)};g.getDay=function(){return Ik(this,3)};var oo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oo,V);var po=function(a,b){Pc(a,1,hc,b,void 0,ic)};var IEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(IEa,V);IEa.prototype.getValue=function(){return Ik(this,1)};IEa.prototype.setValue=function(a){return $k(this,1,a)};var LEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LEa,V);LEa.prototype.getValue=function(){return kl(this,1)};LEa.prototype.setValue=function(a){return Xm(this,1,a)};var gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gp,V);g=gp.prototype;g.getHours=function(){return Ik(this,1)};g.setHours=function(a){return $k(this,1,a)};g.getMinutes=function(){return Ik(this,2)};g.setMinutes=function(a){return $k(this,2,a)};g.getSeconds=function(){return Ik(this,3)};g.setSeconds=function(a){return $k(this,3,a)};g.getNanos=function(){return Ik(this,4)};g.setNanos=function(a){return $k(this,4,a)};var txa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(txa,V);var KEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KEa,V);KEa.prototype.getValue=function(){return Oh(this,1)};KEa.prototype.setValue=function(a){return Lk(this,1,a)};var sz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sz,V);g=sz.prototype;g.getCode=function(){return Ik(this,1)};g.setCode=function(a){return Pl(this,1,a)};g.getCodeOrUndefined=function(){return Lu(this,1)};g.getMessage=function(){return Oh(this,3)};g.setMessage=function(a){return Rl(this,3,a)};var pfc=[0,ofc,Uac];var Uqa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var qfc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,Xi("action"),Xi("frontend_access_mode"),Xi("environment_type"))};qfc.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};qfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var rfc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,Xi("action"),Xi("frontend_access_mode"),Xi("environment_type"))};rfc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};rfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var sfc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,Xi("action"),Xi("frontend_access_mode"),Xi("environment_type"))};sfc.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};sfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var tfc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,Xi("name"),Xi("source"),{fieldType:1,fieldName:"state"})};tfc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};tfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var ufc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,Xi("source"),Xi("name"))};ufc.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};ufc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var vfc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,Xi("source"),Xi("method_id"))};vfc.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};vfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var wfc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,Xi("source"),Xi("method_id"),{fieldType:2,fieldName:"code"})};wfc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};wfc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var tz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tz,V);tz.prototype.getResourcePath=function(){return Oh(this,2)};tz.prototype.setResourcePath=function(a){return Lk(this,2,a)};var Ls=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};Ls.prototype.clone=function(){return new Ls(this.x,this.y)};Ls.prototype.equals=function(a){return a instanceof Ls&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var n0b=function(a,b){return new Ls(a.x-b.x,a.y-b.y)};g=Ls.prototype;g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.translate=function(a,b){a instanceof Ls?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};g.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};var uz=function(a,b){this.width=a;this.height=b},q0b=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=uz.prototype;g.clone=function(){return new uz(this.width,this.height)};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!(this.width*this.height)};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var zfc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===xfc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=yfc};zfc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var yfc={},xfc={};var Kp=function(a){return a?new vz(wz(a)):X7b||(X7b=new vz)},Afc=function(a,b){return typeof b==="string"?a.getElementById(b):b},xz=function(a,b){return(b||document).getElementsByTagName(String(a))},yz=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},Cfc=function(a,b){Si(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Bfc.hasOwnProperty(d)?a.setAttribute(Bfc[d],c):d.lastIndexOf("aria-",
0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},Bfc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},zz=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new uz(a.clientWidth,a.clientHeight)},Efc=function(a){var b=Dfc(a);a=a.defaultView;return new Ls(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},Dfc=function(a){return a.scrollingElement?a.scrollingElement:Np||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement},Az=function(a){return a?a.defaultView:window},Gfc=function(a,b,c){return Ffc(document,arguments)},Ffc=function(a,b){var c=b[1],d=or(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):Cfc(d,c));b.length>2&&Hfc(a,d,b,2);return d},Hfc=function(a,b,c,d){function e(k){k&&b.appendChild(typeof k===
"string"?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!bb(f)||cb(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(cb(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}Va(h?ab(f):f,e)}}},or=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},Ifc=function(a,b){Hfc(wz(a),a,arguments,1)},Bz=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},
Cz=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},Dz=function(a){return cb(a)&&a.nodeType==1},t3b=function(a){return a.parentElement||null},Mdb=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},wz=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Jfc=function(a){return a.contentDocument||
a.contentWindow.document},Ez=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else Bz(a),a.appendChild(wz(a).createTextNode(String(b)))},Kfc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Lfc={IMG:" ",BR:"\n"},Mfc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},Ofc=function(a){var b=[];Nfc(a,b,!0);a=b.join("");
a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a},Nfc=function(a,b,c){if(!(a.nodeName in Kfc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Lfc)b.push(Lfc[a.nodeName]);else for(a=a.firstChild;a;)Nfc(a,b,c),a=a.nextSibling},K_b=function(){var a=Az();return a.devicePixelRatio!==void 0?a.devicePixelRatio:a.matchMedia?Pfc(3)||Pfc(2)||Pfc(1.5)||
Pfc(1)||.75:1},Pfc=function(a){return Az().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},vz=function(a){this.document_=a||ya.document||document};g=vz.prototype;g.getDomHelper=Kp;g.getElement=function(a){return Afc(this.document_,a)};g.$=vz.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};
g.getElementsByTagNameAndClass=function(a,b,c){return yz(this.document_,a,b,c)};g.$$=vz.prototype.getElementsByTagNameAndClass;g.setProperties=Cfc;g.getViewportSize=function(a){return zz(a||this.getWindow())};g.createDom=function(a,b,c){return Ffc(this.document_,arguments)};g.createElement=function(a){return or(this.document_,a)};g.createTextNode=function(a){return this.document_.createTextNode(String(a))};g.getWindow=function(){return this.document_.defaultView};g.appendChild=function(a,b){a.appendChild(b)};
g.append=Ifc;g.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};g.removeChildren=Bz;g.removeNode=Cz;
g.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};g.getParentElement=t3b;g.contains=Mdb;g.isFocusable=function(a){var b;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?b=!a.disabled&&(!a.hasAttribute("tabindex")||Mfc(a)):b=a.hasAttribute("tabindex")&&Mfc(a);return b};var Fz=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Qfc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};Qfc.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a};Qfc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};var Rfc=[],Sfc=[],Tfc=!1,Ufc=function(a){Rfc[Rfc.length]=a;if(Tfc)for(var b=0;b<Sfc.length;b++)a(mt(Sfc[b].wrap,Sfc[b]))};Ufc(function(){});var Vfc=function(){this.workTail_=this.workHead_=null};Vfc.prototype.add=function(a,b){var c=Xqa.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};Vfc.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};var Xqa=new Qfc(function(){return new Wfc},function(a){return a.reset()}),Wfc=function(){this.next=this.scope=this.fn=null};
Wfc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};Wfc.prototype.reset=function(){this.next=this.scope=this.fn=null};var Xfc,Yqa=!1,Wqa=new Vfc,Hz=function(a,b){Xfc||Yfc();Yqa||(Xfc(),Yqa=!0);Wqa.add(a,b)},Yfc=function(){var a=Promise.resolve(void 0);Xfc=function(){a.then(Zqa)}};var Zfc=function(a){return function(){return a}},Iz=function(){},$fc=function(a){return a},IKa=function(){var a=HKa;return function(){return!a.apply(this,arguments)}},agc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}},bgc=function(a,b){var c=0;return function(d){ya.clearTimeout(c);var e=arguments;c=ya.setTimeout(function(){a.apply(void 0,e)},b)}},cgc=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,h())},h=function(){c=ya.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};
return function(k){e=arguments;c?d=!0:h()}},dgc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ya.setTimeout(c,1E3),a.apply(void 0,arguments))}};var egc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Kz=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=Iz)try{var b=this;a.call(void 0,function(c){Jz(b,2,c)},function(c){Jz(b,3,c)})}catch(c){Jz(this,3,c)}},fgc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};fgc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var ggc=new Qfc(function(){return new fgc},function(a){a.reset()}),hgc=function(a,b,c){var d=ggc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},igc=function(a){if(a instanceof Kz)return a;var b=new Kz(Iz);Jz(b,2,a);return b},jgc=function(a){return new Kz(function(b,c){c(a)})},lgc=function(a,b,c){kgc(a,b,c,null)||Hz(yu(b,a))},mgc=function(a){return new Kz(function(b,c){a.length||b(void 0);for(var d,e=0;e<a.length;e++)d=a[e],lgc(d,b,c)})},ngc=function(a){return new Kz(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(u,A){d--;e[u]=A;d==0&&b(e)},h=function(u){c(u)},k,q=0;q<a.length;q++)k=a[q],lgc(k,yu(f,q),h);else b(e)})},ogc=function(a){return new Kz(function(b,c){var d=a.length,e=[];if(d)for(var f=function(u){b(u)},h=function(u,A){d--;e[u]=A;d==0&&c(e)},k,q=0;q<a.length;q++)k=a[q],lgc(k,f,yu(h,q));else b(void 0)})},qgc=function(){var a,b,c=new Kz(function(d,e){a=d;b=e});return new pgc(c,a,b)};
Kz.prototype.then=function(a,b,c){return rgc(this,Fz(typeof a==="function"?a:null),Fz(typeof b==="function"?b:null),c)};Kz.prototype.$goog_Thenable=!0;var tgc=function(a,b,c,d){sgc(a,hgc(b||Iz,c||null,d))},ugc=function(a,b){b=Fz(b);b=hgc(b,b);b.always=!0;sgc(a,b);return a};Kz.prototype.finally=function(a){var b=this;a=Fz(a);return new Promise(function(c,d){tgc(b,function(e){a();c(e)},function(e){a();d(e)})})};Kz.prototype.thenCatch=function(a,b){return rgc(this,null,Fz(a),b)};Kz.prototype.catch=Kz.prototype.thenCatch;
Kz.prototype.cancel=function(a){if(this.state_==0){var b=new Lz(a);Hz(function(){vgc(this,b)},this)}};
var vgc=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,h=c.callbackEntries_;h&&(h.always||(d++,h.child==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.state_==0&&d==1?vgc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):wgc(c),xgc(c,e,3,b)))}a.parent_=null}else Jz(a,3,b)},sgc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||ygc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},rgc=function(a,b,c,d){var e=hgc(null,null,null);e.child=new Kz(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(u){h(u)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);q===void 0&&k instanceof Lz?h(k):f(q)}catch(u){h(u)}}:h});e.child.parent_=a;sgc(a,e);return e.child};Kz.prototype.unblockAndFulfill_=function(a){this.state_=0;Jz(this,2,a)};Kz.prototype.unblockAndReject_=function(a){this.state_=0;Jz(this,3,a)};
var Jz=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("qb")),a.state_=1,kgc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,ygc(a),b!=3||c instanceof Lz||zgc(a,c)))},kgc=function(a,b,c,d){if(a instanceof Kz)return tgc(a,b,c,d),!0;if(egc(a))return a.then(b,c,d),!0;if(cb(a))try{var e=a.then;if(typeof e==="function")return Agc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Agc=function(a,b,c,d,e){var f=!1,h=function(q){f||(f=!0,c.call(e,q))},k=
function(q){f||(f=!0,d.call(e,q))};try{b.call(a,h,k)}catch(q){k(q)}},ygc=function(a){a.executing_||(a.executing_=!0,Hz(a.executeCallbacks_,a))},wgc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};Kz.prototype.executeCallbacks_=function(){for(var a;a=wgc(this);)xgc(this,a,this.state_,this.result_);this.executing_=!1};
var xgc=function(a,b,c,d){if(c==3&&b.onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,Bgc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):Bgc(b,c,d)}catch(e){Cgc.call(null,e)}ggc.put(b)},Bgc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},zgc=function(a,b){a.hadUnhandledRejection_=!0;Hz(function(){a.hadUnhandledRejection_&&Cgc.call(null,b)})},Cgc=za,Lz=function(a){wa.call(this,
a);this.reportErrorToServer=!1};zu(Lz,wa);Lz.prototype.name="cancel";var pgc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var Dgc=function(a){this.servicePromise_=a;a.then(mt(function(){},this),function(){},this)},Egc=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("rb`"+b);return e.apply(d,c)})},Hgc=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=Fgc(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("sb`"+b+"`"+a,{cause:f});delete Ggc[b];return jgc(f)});return new Dgc(e)},Ggc={},Fgc=function(a,b){var c=Ggc[b];
if(c)return c;c=(c=Cp(b))?igc(c):(new Kz(function(d,e){var f=(new vz(document)).createElement("SCRIPT");f.async=!0;gi(f,Uh(a instanceof zfc&&a.constructor===zfc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===yfc?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||d()};f.onerror=function(h){e(Error("tb`"+b+"`"+a,{cause:h}))};(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=
Cp(b);if(!d)throw Error("ub`"+b+"`"+a);return d});return Ggc[b]=c};var Igc={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Kgc=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=$qa(function(){return w(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):x(b,Jgc(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);ze(b)})});this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=l(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};Kgc.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Jgc=function(a){var b,c,d,e;return w(function(f){switch(f.nextAddress){case 1:b=l(Object.values(Igc)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;te(f,5);return x(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);uu(f,3);break;case 5:xe(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new Kgc).initialize();var Lgc=function(a){this.loader_=a};Lgc.prototype.startFeedback=function(a){Egc(this.loader_,"startFeedback",arguments)};Lgc.prototype.requestSurvey=function(a){Egc(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};Lgc.prototype.presentSurvey=function(a){Egc(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var Mgc=new zfc(xfc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");Fgc(Mgc,"help.service.Lazy.create").thenCatch(function(){});var us=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(us,V);us.prototype.getRevisionNumber=function(){return Ik(this,4)};us.prototype.setRevisionNumber=function(a){return Pl(this,4,a)};var Mz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mz,V);Mz.prototype.getRevisionNumber=function(){return Ik(this,2,-1)};Mz.prototype.setRevisionNumber=function(a){return Pl(this,2,a)};var Ngc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ngc,V);g=Ngc.prototype;g.getChangeNumber=function(){return Dl(this,1,zb(-1))};g.getChangeNumber_asLegacyNumberOrString=function(){return zl(this,1,-1)};g.setChangeNumber=function(a){return Hl(this,1,a)};g.getWorkspaceId=function(){return X(this,Mz,2)};g.getRevisionNumber=function(){return Ik(this,3,-1)};g.setRevisionNumber=function(a){return Pl(this,3,a)};var Ogc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ogc,V);g=Ogc.prototype;g.getPort=function(){return Oh(this,1)};g.setPort=function(a){return Rl(this,1,a)};g.hasPort=function(){return ml(this,1)};g.getUser=function(){return Oh(this,2)};g.setUser=function(a){return Rl(this,2,a)};g.hasUser=function(){return ml(this,2)};g.getWorkspaceId=function(){return X(this,Mz,3)};var Pgc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pgc,V);g=Pgc.prototype;g.getKey=function(){return Oh(this,1)};g.getValue=function(){return Oh(this,2)};g.getValue_legacyNullable=function(){return am(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};var Nz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nz,V);Nz.prototype.getText=function(){return Oh(this,1)};Nz.prototype.setText=function(a){return Rl(this,1,a)};Nz.prototype.getTagsList=function(a){return Wk(this,Pgc,2,Fk(a))};var Qgc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qgc,V);var oLb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oLb,V);g=oLb.prototype;g.getReadonlySourceFileId=function(){return nr(this,us,1)};g.setSourceFileId=function(a){return W(this,us,1,a)};g.getOperation=function(){return pl(this,2)};g.setOperation=function(a){return Sl(this,2,a)};g.getType=function(){return X(this,Qgc,3)};g.setType=function(a){return W(this,Qgc,3,a)};g.hasType=function(){return nk(this,Qgc,3)};g.getSize=function(){return Dl(this,5)};
g.setSize=function(a){return Hl(this,5,a)};g.getChangeId=function(){return X(this,Ngc,11)};var nLb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nLb,V);nLb.prototype.getContent=function(){return sq(this,2)};nLb.prototype.setContent=function(a){return tq(this,2,ub(a,!1,!0))};nLb.prototype.hasContent=function(){return Xt(this,2)!=null};var Rgc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rgc,V);g=Rgc.prototype;g.setBase=function(a){return W(this,Ogc,1,a)};g.getDescription=function(){return X(this,Nz,2)};g.setDescription=function(a){return W(this,Nz,2,a)};g.hasDescription=function(){return nk(this,Nz,2)};g.setMode=function(a){return Sl(this,6,a)};var Oz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,500)};Y(Oz,V);g=Oz.prototype;g.getStatus=function(){return X(this,sz,1002)};g.setStatus=function(a){return W(this,sz,1002,a)};g.hasStatus=function(){return nk(this,sz,1002)};g.getChangeId=function(){return X(this,Ngc,1)};g.getWorkspaceId=function(){return X(this,Mz,2)};g.getToken=function(){return Oh(this,3)};g.setToken=function(a){return Rl(this,3,a)};var Sgc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sgc,V);Sgc.prototype.setBase=function(a){return W(this,Ogc,1,a)};var iLb=function(){var a=new Sgc;return Sl(a,2,0)},hLb=function(a,b){return sn(a,3,b)};var Tgc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,500)};Y(Tgc,V);g=Tgc.prototype;g.getStatus=function(){return X(this,sz,1002)};g.setStatus=function(a){return W(this,sz,1002,a)};g.hasStatus=function(){return nk(this,sz,1002)};g.getReadonlySourceFileId=function(){return nr(this,us,2)};g.setSourceFileId=function(a){return W(this,us,2,a)};g.getContent=function(){return sq(this,3)};g.setContent=function(a){return tq(this,3,ub(a,!1,!0))};
g.hasContent=function(){return Xt(this,3)!=null};new Promise(function(){});var Z=function(){this.destroyed$=new ag(1);this.subscriptions=new ke};Z.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Z.\u0275fac=function(a){return new (a||Z)};Z.\u0275dir=Kf({type:Z});var cra=new WeakMap;var bj={},Ugc={logInfo:function(){console.log(era());console.log("\nDuplicate Requests:");console.table(dra())},getCounts:function(){return bj},getDupes:dra,getAggregates:era};var pj=Symbol("vb"),Pz=function(a){this.params=a||{}};Pz.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};Pz.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};Pz.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};ea.Object.defineProperties(Pz.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var ira={exact:nra,subset:qra},jra={exact:lra,subset:ora,ignored:function(){return!0}},hj=function(a,b,c){a=a===void 0?new gj([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};hj.prototype.toString=function(){return Vgc.serialize(this)};ea.Object.defineProperties(hj.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new Pz(this.queryParams));return this._queryParamMap}}});
var gj=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Object.values(b).forEach(function(d){return d.parent=c})};gj.prototype.hasChildren=function(){return this.numberOfChildren>0};gj.prototype.toString=function(){return vra(this)};ea.Object.defineProperties(gj.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var lj=function(a,b){this.path=a;this.parameters=b};
lj.prototype.toString=function(){return tra(this.path)+ura(this.parameters)};var Qz=function(){};Qz.\u0275fac=function(a){return new (a||Qz)};Qz.\u0275prov=Sc({token:Qz,factory:function(){return new Wgc},providedIn:"root"});var Wgc=function(){};Wgc.prototype.parse=function(a){a=new Xgc(a);Rz(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new gj([],{}):new gj([],Ygc(a));return new hj(b,a.parseQueryParams(),Rz(a,"#")?decodeURIComponent(a.remaining):null)};
Wgc.prototype.serialize=function(a){var b="/"+fj(a.root,!0),c=yra(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};var Vgc=new Wgc,zra=/^[^\/()?;#]+/,Zgc=/^[^\/()?;=#]+/,$gc=/^[^=?&#]+/,ahc=/^[^&#]+/,Xgc=function(a){this.remaining=this.url=a};
Xgc.prototype.parseQueryParams=function(){var a={};if(Rz(this,"?")){do{var b,c=this.remaining.match($gc);if(b=c?c[0]:""){this.capture(b);c="";if(Rz(this,"=")){var d;if(d=(d=this.remaining.match(ahc))?d[0]:"")c=d,this.capture(c)}b=decodeURIComponent(b.replace(/\+/g,"%20"));c=decodeURIComponent(c.replace(/\+/g,"%20"));a.hasOwnProperty(b)?(d=a[b],Array.isArray(d)||(d=[d],a[b]=d),d.push(c)):a[b]=c}}while(Rz(this,"&"))}return a};
var Ygc=function(a){if(a.remaining==="")return{};Rz(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(bhc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(bhc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=chc(a,!0));var d={};a.remaining.startsWith("(")&&(d=chc(a,!1));if(b.length>0||Object.keys(c).length>0)d.primary=new gj(b,c);return d},bhc=function(a){var b=Ara(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Wc(4009,
!1);a.capture(b);b=decodeURIComponent(b);for(var c={};Rz(a,";");){var d,e=a;if(d=(d=e.remaining.match(Zgc))?d[0]:""){e.capture(d);var f="";if(Rz(e,"=")){var h=Ara(e.remaining);h&&(f=h,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new lj(b,c)},chc=function(a,b){var c={};for(a.capture("(");!Rz(a,")")&&a.remaining.length>0;){var d=Ara(a.remaining),e=a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Wc(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),
a.capture(e),a.capture(":")):b&&(e="primary");d=Ygc(a);c[e]=Object.keys(d).length===1?d.primary:new gj([],d);Rz(a,"//")}return c},Rz=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};Xgc.prototype.capture=function(a){if(!Rz(this,a))throw new Wc(4011,!1);};var Lra=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&Hra(c[0]))throw new Wc(4003,!1);if((a=c.find(kj))&&a!==(c.length>0?c[c.length-1]:null))throw new Wc(4004,!1);},Gra=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var Sz=function(a,b){this.id=a;this.url=b},Jj=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;Sz.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Y(Jj,Sz);Jj.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var Dj=function(a,b,c){Sz.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Y(Dj,Sz);
Dj.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var Ej=function(a,b,c,d){Sz.call(this,a,b);this.reason=c;this.code=d;this.type=2};Y(Ej,Sz);Ej.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var Gj=function(a,b,c,d){Sz.call(this,a,b);this.reason=c;this.code=d;this.type=16};Y(Gj,Sz);
var Fj=function(a,b,c,d){Sz.call(this,a,b);this.error=c;this.target=d;this.type=3};Y(Fj,Sz);Fj.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var dhc=function(a,b,c,d){Sz.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Y(dhc,Sz);dhc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var ehc=function(a,b,c,d){Sz.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Y(ehc,Sz);ehc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var fhc=function(a,b,c,d,e){Sz.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Y(fhc,Sz);
fhc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var ghc=function(a,b,c,d){Sz.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Y(ghc,Sz);ghc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var hhc=function(a,b,c,d){Sz.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Y(hhc,Sz);hhc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var ihc=function(a){this.route=a;this.type=9};ihc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var jhc=function(a){this.route=a;this.type=10};
jhc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var osa=function(a){this.snapshot=a;this.type=11};osa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var khc=function(a){this.snapshot=a;this.type=12};khc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var psa=function(a){this.snapshot=a;this.type=13};psa.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var lhc=function(a){this.snapshot=a;this.type=14};lhc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var mhc=function(a,b){this.position=a;this.anchor=b;this.type=15};
mhc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var nhc=function(){},ohc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var phc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new Tz(this.rootInjector)};ea.Object.defineProperties(phc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=nj((a=this.route)==null?void 0:a.snapshot))!=null?b:this.rootInjector}}});
var Tz=function(a){this.rootInjector=a;this.contexts=new Map},qhc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},rhc=function(a,b){var c=a.getContext(b);c||(c=new phc(a.rootInjector),a.contexts.set(b,c));return c};Tz.prototype.getContext=function(a){return this.contexts.get(a)||null};Tz.\u0275fac=function(a){return new (a||Tz)(nd(Ef))};Tz.\u0275prov=Sc({token:Tz,factory:Tz.\u0275fac,providedIn:"root"});var Uz=function(a){this._root=a};Uz.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};Uz.prototype.children=function(a){return(a=Sra(a,this._root))?a.children.map(function(b){return b.value}):[]};Uz.prototype.firstChild=function(a){return(a=Sra(a,this._root))&&a.children.length>0?a.children[0].value:null};Uz.prototype.pathFromRoot=function(a){return Tra(a,this._root).map(function(b){return b.value})};
ea.Object.defineProperties(Uz.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var rj=function(a,b){this.value=a;this.children=b};rj.prototype.toString=function(){return"TreeNode("+this.value+")"};var shc=function(a,b){this._root=a;this.snapshot=b;Vra(this,a)};Y(shc,Uz);shc.prototype.toString=function(){return this.snapshot.toString()};
var sj=function(a,b,c,d,e,f,h,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=h;this._futureSnapshot=k;var q,u;this.title=(u=(q=this.dataSubject)==null?void 0:q.pipe(y(function(A){return A[pj]})))!=null?u:Ce(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};sj.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
ea.Object.defineProperties(sj.prototype,{routeConfig:{configurable:!0,enumerable:!0,get:function(){return this._futureSnapshot.routeConfig}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap!=null||(this._paramMap=this.params.pipe(y(function(a){return new Pz(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(y(function(a){return new Pz(a)})));return this._queryParamMap}}});
var Vz=function(a,b,c,d,e,f,h,k,q){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this.routeConfig=k;this._resolve=q};Vz.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
ea.Object.defineProperties(Vz.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[pj]}},root:{configurable:!0,enumerable:!0,get:function(){return this._routerState.root}},parent:{configurable:!0,enumerable:!0,get:function(){return this._routerState.parent(this)}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this._routerState.firstChild(this)}},children:{configurable:!0,enumerable:!0,get:function(){return this._routerState.children(this)}},
pathFromRoot:{configurable:!0,enumerable:!0,get:function(){return this._routerState.pathFromRoot(this)}},paramMap:{configurable:!0,enumerable:!0,get:function(){this._paramMap!=null||(this._paramMap=new Pz(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new Pz(this.queryParams));return this._queryParamMap}}});var thc=function(a,b){this._root=b;this.url=a;Vra(this,b)};Y(thc,Uz);thc.prototype.toString=function(){return Wra(this._root)};var uhc=new yd(""),Wz=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new hv;this.deactivateEvents=new hv;this.attachEvents=new hv;this.detachEvents=new hv;this.routerOutletData=Tla();this.parentContexts=n(Tz);this.location=n(Ug);this.changeDetector=n(qv);this.inputBinder=n(vhc,{optional:!0})};Wz.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(whc(this,b)&&(this.deactivate(),qhc(this.parentContexts,b)),xhc(this))}};
Wz.prototype.ngOnDestroy=function(){whc(this,this.name)&&qhc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||yhc(a,this)};var whc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};Wz.prototype.ngOnInit=function(){xhc(this)};
var xhc=function(a){var b=a.parentContexts,c=a.name,d=rhc(b,c);d.outlet=a;b.contexts.set(c,d);!a.activated&&(b=a.parentContexts.getContext(a.name),b==null?0:b.route)&&(b.attachRef?a.attach(b.attachRef,b.route):zhc(a,b.route,b.injector))};Wz.prototype.detach=function(){if(!this.activated)throw new Wc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
Wz.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(yhc(b,this),Ahc(b,this));this.attachEvents.emit(a.instance)};Wz.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var zhc=function(a,b,c){if(a.isActivated)throw new Wc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=rhc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new Bhc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(yhc(b,a),Ahc(b,a));a.activateEvents.emit(a.activated.instance)};
ea.Object.defineProperties(Wz.prototype,{activatedComponentRef:{configurable:!0,enumerable:!0,get:function(){return this.activated}},isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Wc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Wc(4012,!1);return this._activatedRoute}}});
Wz.\u0275fac=function(a){return new (a||Wz)};Wz.\u0275dir=Kf({type:Wz,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Uu]});var Bhc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};Bhc.prototype.__ngOutletInjector=function(a){return new Bhc(this.route,this.childContexts,a,this.outletData)};
Bhc.prototype.get=function(a,b){return a===sj?this.route:a===Tz?this.childContexts:a===uhc?this.outletData:this.parent.get(a,b)};
var vhc=new yd(""),Xz=function(){this.outletDataSubscriptions=new Map},yhc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},Ahc=function(a,b){var c=b.activatedRoute,d=Je([c.queryParams,c.params,c.data]).pipe(fg(function(e,f){var h=l(e);e=h.next().value;var k=h.next().value;h=h.next().value;h=Object.assign({},e,k,h);return f===0?Ce(h):Promise.resolve(h)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=xma(c.component);if(f){f=l(f.inputs);for(var h=f.next();!h.done;h=f.next())h=h.value.templateName,b.activatedComponentRef.setInput(h,e[h])}else yhc(a,b)}else yhc(a,b)});a.outletDataSubscriptions.set(b,d)};Xz.\u0275fac=function(a){return new (a||Xz)};Xz.\u0275prov=Sc({token:Xz,factory:Xz.\u0275fac});var qj=function(){};qj.\u0275fac=function(a){return new (a||qj)};qj.\u0275cmp=B({type:qj,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&K(0,"router-outlet")},dependencies:[Wz],encapsulation:2});var Dhc=function(a,b,c,d){return y(function(e){(new Chc(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},Chc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};Chc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;Ehc(this,b,c,a);Xra(this.futureState.root);Fhc(this,b,c,a)};
var Ehc=function(a,b,c,d){var e=oj(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,u=k?k.value:null;q===u?q.component?(q=d.getContext(q.outlet))&&Ehc(a,f,k,q.children):Ehc(a,f,k,d):u&&Ghc(a,k,d);delete e[h]});Object.values(e).forEach(function(f){Ghc(a,f,d)})},Ghc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=oj(b);b=l(Object.values(b));for(var e=b.next();!e.done;e=b.next())Ghc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},Fhc=function(a,b,c,d){var e=oj(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;Xra(k);k===q?k.component?(k=rhc(d,k.outlet),Fhc(a,f,h,k.children)):Fhc(a,f,h,d):k.component?(h=rhc(d,k.outlet),h.attachRef=null,h.route=k,h.outlet&&zhc(h.outlet,k,h.injector),Fhc(a,f,null,h.children)):Fhc(a,f,null,d);a.forwardEvent(new lhc(f.value.snapshot))});b.children.length&&a.forwardEvent(new khc(b.value.snapshot))};var fsa=Symbol("xb");var hsa=function(a){this.path=a;this.route=this.path[this.path.length-1]},isa=function(a,b){this.component=a;this.route=b};var vsa=function(a){this.segmentGroup=a||null},Hhc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a};Y(Hhc,Error);
var Ihc=function(a,b){this.urlSerializer=a;this.urlTree=b},Jhc=function(a){var b=[];for(a=a.root;;){b=b.concat(a.segments);if(a.numberOfChildren===0)return Ce(b);if(a.numberOfChildren>1||!a.children.primary)return De(new Wc(4E3,!1));a=a.children.primary}},Lhc=function(a,b,c,d,e,f){if(typeof c!=="string"){var h=c,k=e.queryParams,q=e.fragment,u=e.routeConfig,A=e.url,G=e.outlet,H=e.params,N=e.data,O=e.title;c=Bd(f,function(){return h({params:H,data:N,queryParams:k,fragment:q,routeConfig:u,url:A,outlet:G,
title:O})});if(c instanceof hj)throw new Hhc(c);}a=Khc(a,c,a.urlSerializer.parse(c),b,d);if(c[0]==="/")throw new Hhc(a);return a},Khc=function(a,b,c,d,e){b=Mhc(a,b,c.root,d,e);return new hj(b,Nhc(c.queryParams,a.urlTree.queryParams),c.fragment)},Nhc=function(a,b){var c={};Object.entries(a).forEach(function(d){var e=l(d);d=e.next().value;e=e.next().value;c[d]=typeof e==="string"&&e[0]===":"?b[e.substring(1)]:e});return c},Mhc=function(a,b,c,d,e){var f=Ohc(c.segments,d,e),h={};Object.entries(c.children).forEach(function(k){var q=
l(k);k=q.next().value;q=q.next().value;h[k]=Mhc(a,b,q,d,e)});return new gj(f,h)},Ohc=function(a,b,c){return a.map(function(d){if(d.path[0]===":"){if(d=c[d.path.substring(1)],!d)throw new Wc(4001,!1);}else a:for(var e=0,f=l(b),h=f.next();!h.done;h=f.next()){h=h.value;if(h.path===d.path){b.splice(e);d=h;break a}e++}return d})};var xsa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var Phc=function(){},Gsa=function(a,b,c,d,e,f,h){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=h;this.absoluteRedirectCount=0;this.allowRedirects=!0;this.applyRedirects=new Ihc(this.urlSerializer,this.urlTree)};
Gsa.prototype.recognize=function(){var a=this,b=Csa(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe(y(function(c){var d=c.children;c=c.rootSnapshot;d=new thc("",new rj(c,d));var e=a.urlTree.queryParams,f=a.urlTree.fragment;e=e===void 0?null:e;f=f===void 0?null:f;c=Dra(c);c=Jra(c,[],e,f);c.queryParams=a.urlTree.queryParams;d.url=a.urlSerializer.serialize(c);return{state:d,tree:c}}))};
Gsa.prototype.match=function(a){var b=this,c=new Vz([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),"primary",this.rootComponentType,null,{});return Qhc(this,this.injector,this.config,a,"primary",c).pipe(y(function(d){return{children:d,rootSnapshot:c}}),Pf(function(d){if(d instanceof Hhc)return b.urlTree=d.urlTree,b.match(d.urlTree.root);if(d instanceof vsa)throw new Wc(4002,"'"+d.segmentGroup+"'");throw d;}))};
var Qhc=function(a,b,c,d,e,f){return d.segments.length===0&&d.hasChildren()?a.processChildren(b,c,d,f):Rhc(a,b,c,d,d.segments,e,!0,f).pipe(y(function(h){return h instanceof rj?[h]:[]}))};
Gsa.prototype.processChildren=function(a,b,c,d){for(var e=this,f=[],h=l(Object.keys(c.children)),k=h.next();!k.done;k=h.next())k=k.value,k==="primary"?f.unshift(k):f.push(k);return se(f).pipe(Rf(function(q){var u=c.children[q],A=Rra(b,q);return Qhc(e,a,A,u,q,d)}),Yja(function(q,u){q.push.apply(q,p(u));return q}),Kja(null),Rja(),Le(function(q){if(q===null)return zj(c);q=Fsa(q);Dsa(q);return Ce(q)}))};
var Rhc=function(a,b,c,d,e,f,h,k){return se(c).pipe(Rf(function(q){var u;return Shc(a,(u=q._injector)!=null?u:b,c,q,d,e,f,h,k).pipe(Pf(function(A){if(A instanceof vsa)return Ce(null);throw A;}))}),Zf(function(q){return!!q}),Pf(function(q){if(jsa(q))return e.length!==0||d.children[f]?zj(d):Ce(new Phc);throw q;}))},Shc=function(a,b,c,d,e,f,h,k,q){return mj(d)===h||h!=="primary"&&Bsa(e,f,d)?d.redirectTo===void 0?Thc(a,b,e,d,f,h,q):a.allowRedirects&&k?Uhc(a,b,e,c,d,f,h,q):zj(e):zj(e)},Uhc=function(a,
b,c,d,e,f,h,k){var q=wsa(c,e,f),u=q.parameters,A=q.consumedSegments,G=q.positionalParamSegments,H=q.remainingSegments;if(!q.matched)return zj(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,a.absoluteRedirectCount>31&&(a.allowRedirects=!1));var N,O;f=new Vz(f,u,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},mj(e),(O=(N=e.component)!=null?N:e._loadedComponent)!=null?O:null,e,e.resolve||{});N=Ura(f,k,a.paramsInheritanceStrategy);
f.params=Object.freeze(N.params);f.data=Object.freeze(N.data);e=Lhc(a.applyRedirects,A,e.redirectTo,G,f,b);return Jhc(e).pipe(Le(function(U){return Rhc(a,b,d,c,U.concat(H),h,!1,k)}))},Thc=function(a,b,c,d,e,f,h){var k=ysa(c,d,e,b);d.path==="**"&&(c.children={});return k.pipe(fg(function(q){if(!q.matched)return zj(c);var u;b=(u=d._injector)!=null?u:b;return Vhc(a,b,d,e).pipe(fg(function(A){A=A.routes;var G,H=(G=d._loadedInjector)!=null?G:b;G=q.consumedSegments;var N=q.remainingSegments,O,U,da=new Vz(G,
q.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},mj(d),(U=(O=d.component)!=null?O:d._loadedComponent)!=null?U:null,d,d.resolve||{});O=Ura(da,h,a.paramsInheritanceStrategy);da.params=Object.freeze(O.params);da.data=Object.freeze(O.data);U=Csa(c,G,N,A);O=U.segmentGroup;U=U.slicedSegments;return U.length===0&&O.hasChildren()?a.processChildren(H,A,O,da).pipe(y(function(ma){return new rj(da,ma)})):A.length===0&&U.length===0?Ce(new rj(da,[])):Rhc(a,H,A,O,
U,mj(d)===f?"primary":f,!0,da).pipe(y(function(ma){return new rj(da,ma instanceof rj?[ma]:[])}))}))}))},Vhc=function(a,b,c,d){return c.children?Ce({routes:c.children,injector:b}):c.loadChildren?c._loadedRoutes!==void 0?Ce({routes:c._loadedRoutes,injector:c._loadedInjector}):tsa(b,c,d).pipe(Le(function(e){return e?a.configLoader.loadChildren(b,c).pipe(hg(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):De(csa(3))})):Ce({routes:[],injector:b})};var Whc=function(){};Y(Whc,Obc);var Yz=function(){};Y(Yz,Whc);var Xhc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};Yz.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Yz.prototype.remove=function(a){a.remove()};Yz.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var Qbc=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
Yz.prototype.getBaseHref=function(){var a=(Yhc=Yhc||document.querySelector("base"))?Yhc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var Yhc=null;var Zhc=function(){},cac=function(a){qf.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Wc(5103,!1);return b};qf.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};qf.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};qf.frameworkStabilizers||(qf.frameworkStabilizers=[]);qf.frameworkStabilizers.push(function(b){var c=qf.getAllAngularTestabilities(),d=c.length,e=function(){d--;d==0&&b()};
c.forEach(function(f){f.whenStable(e)})})};Zhc.prototype.findTestabilityInTree=function(a,b,c){if(b==null)return null;var d=a._applications.get(b)||null;if(d!=null)a=d;else{var e;c?e=b instanceof DocumentFragment?this.findTestabilityInTree(a,b.host,!0):this.findTestabilityInTree(a,b.parentElement,!0):e=null;a=e}return a};var Zz=function(){};Zz.prototype.build=function(){return new XMLHttpRequest};Zz.\u0275fac=function(a){return new (a||Zz)};Zz.\u0275prov=Sc({token:Zz,factory:Zz.\u0275fac});var $hc=new yd(""),$z=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.slice().reverse()};$z.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};$z.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins.find(function(c){return c.supports(a)});if(!b)throw new Wc(5101,!1);this._eventNameToPlugin.set(a,b);return b};
$z.\u0275fac=function(a){return new (a||$z)(nd($hc),nd(ph))};$z.\u0275prov=Sc({token:$z,factory:$z.\u0275fac});var aic=function(a){this._doc=a};var aA=function(a,b,c,d){d=d===void 0?{}:d;this.doc=a;this.appId=b;this.nonce=c;this.inline=new Map;this.external=new Map;this.hosts=new Set;this.isServer=d==="server";c=this.inline;d=this.external;var e,f=(e=a.head)==null?void 0:e.querySelectorAll('style[ng-app-id="'+b+'"],link[ng-app-id="'+b+'"]');if(f)for(b=l(f),e=b.next();!e.done;e=b.next())e=e.value,e.removeAttribute("ng-app-id"),e instanceof HTMLLinkElement?d.set(e.href.slice(e.href.lastIndexOf("/")+1),{usage:0,elements:[e]}):e.textContent&&
c.set(e.textContent,{usage:0,elements:[e]});this.hosts.add(a.head)},cic=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())bic(a,d.value,a.inline,Psa);c==null||c.forEach(function(e){return bic(a,e,a.external,Qsa)})},eic=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())dic(d.value,a.inline);c==null||c.forEach(function(e){return dic(e,a.external)})},bic=function(a,b,c,d){var e=c.get(b);e?e.usage++:c.set(b,{usage:1,elements:[].concat(p(a.hosts)).map(function(f){return a.addElement(f,
d(b,a.doc))})})},dic=function(a,b){var c=b.get(a);c&&(c.usage--,c.usage<=0&&(Osa(c.elements),b.delete(a)))};aA.prototype.ngOnDestroy=function(){for(var a=l([].concat(p(this.inline),p(this.external))),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b=b.next().value.elements,Osa(b);this.hosts.clear()};aA.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);this.isServer&&b.setAttribute("ng-app-id",this.appId);return a.appendChild(b)};
aA.\u0275fac=function(a){return new (a||aA)(nd(Ei),nd(D$b),nd(F$b,8),nd(E$b))};aA.\u0275prov=Sc({token:aA,factory:aA.\u0275fac});var fic={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Rsa=/%COMP%/g,gic=new yd("",{providedIn:"root",factory:function(){return!0}}),cA=function(a,b,c,d,e,f,h,k,q){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=h;this.nonce=k===void 0?null:k;this.tracingService=
q===void 0?null:q;this.rendererByCompId=new Map;this.platformIsServer=f==="server";this.defaultRenderer=new bA(a,e,h,this.platformIsServer,this.tracingService)};
cA.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;this.platformIsServer&&b.encapsulation===3&&(b=Object.assign({},b,{encapsulation:0}));a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,h=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,q=this.platformIsServer,u=this.tracingService;switch(b.encapsulation){case 0:d=new hic(f,h,b,this.appId,k,d,e,q,u);break;case 3:b=new iic(f,h,a,b,d,e,this.nonce,q,u);break a;default:d=
new dA(f,h,b,k,d,e,q,u)}c.set(b.id,d)}b=d}b instanceof hic?(cic(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof dA&&cic(b.sharedStylesHost,b.styles,b.styleUrls);return b};cA.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};cA.\u0275fac=function(a){return new (a||cA)(nd($z),nd(aA),nd(D$b),nd(gic),nd(Ei),nd(E$b),nd(ph),nd(F$b),nd(cf,8))};cA.\u0275prov=Sc({token:cA,factory:cA.\u0275fac});
var bA=function(a,b,c,d,e){this.eventManager=a;this.doc=b;this.ngZone=c;this.platformIsServer=d;this.tracingService=e;this.data=Object.create(null);this.destroyNode=null};g=bA.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?this.doc.createElementNS(fic[b]||b,a):this.doc.createElement(a)};g.createComment=function(a){return this.doc.createComment(a)};g.createText=function(a){return this.doc.createTextNode(a)};
g.appendChild=function(a,b){(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).appendChild(b)};g.insertBefore=function(a,b,c){a&&(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).insertBefore(b,c)};g.removeChild=function(a,b){b.remove()};g.selectRootElement=function(a,b){a=typeof a==="string"?this.doc.querySelector(a):a;if(!a)throw new Wc(-5104,!1);b||(a.textContent="");return a};g.parentNode=function(a){return a.parentNode};g.nextSibling=function(a){return a.nextSibling};
g.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=fic[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=fic[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};g.addClass=function(a,b){a.classList.add(b)};g.removeClass=function(a,b){a.classList.remove(b)};g.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
g.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};g.setProperty=function(a,b,c){a!=null&&(a[b]=c)};g.setValue=function(a,b){a.nodeValue=b};g.listen=function(a,b,c,d){if(typeof a==="string"&&(a=Qbc(this.doc,a),!a))throw new Wc(5102,!1);c=jic(this,c);var e;if((e=this.tracingService)==null?0:e.wrapEventListener)c=this.tracingService.wrapEventListener(a,b,c);return this.eventManager.addEventListener(a,b,c,d)};
var jic=function(a,b){return function(c){if(c==="__ngUnwrap__")return b;(a.platformIsServer?a.ngZone.runGuarded(function(){return b(c)}):b(c))===!1&&c.preventDefault()}},iic=function(a,b,c,d,e,f,h,k,q){bA.call(this,a,e,f,k,q);this.sharedStylesHost=b;this.hostEl=c;this.shadowRoot=c.attachShadow({mode:"open"});a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);c=l(a.inline);for(f=c.next();!f.done;f=c.next())f=l(f.value),k=f.next().value,f.next().value.elements.push(a.addElement(b,Psa(k,a.doc)));
c=l(a.external);for(f=c.next();!f.done;f=c.next())f=l(f.value),k=f.next().value,f.next().value.elements.push(a.addElement(b,Qsa(k,a.doc)));a=d.styles;a=Ssa(d.id,a);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=document.createElement("style"),h&&c.setAttribute("nonce",h),c.textContent=b,this.shadowRoot.appendChild(c);var u;if(a=(u=d.getExternalStyles)==null?void 0:u.call(d))for(d=l(a),u=d.next();!u.done;u=d.next())u=Qsa(u.value,e),h&&u.setAttribute("nonce",h),this.shadowRoot.appendChild(u)};
Y(iic,bA);var kic=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=iic.prototype;g.appendChild=function(a,b){return bA.prototype.appendChild.call(this,kic(this,a),b)};g.insertBefore=function(a,b,c){return bA.prototype.insertBefore.call(this,kic(this,a),b,c)};g.removeChild=function(a,b){return bA.prototype.removeChild.call(this,null,b)};g.parentNode=function(a){return kic(this,bA.prototype.parentNode.call(this,kic(this,a)))};g.destroy=function(){this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var dA=function(a,b,c,d,e,f,h,k,q){bA.call(this,a,e,f,h,k);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;a=c.styles;this.styles=q?Ssa(q,a):a;var u;this.styleUrls=(u=c.getExternalStyles)==null?void 0:u.call(c,q)};Y(dA,bA);dA.prototype.destroy=function(){this.removeStylesOnCompDestroy&&eic(this.sharedStylesHost,this.styles,this.styleUrls)};
var hic=function(a,b,c,d,e,f,h,k,q){d=d+"-"+c.id;dA.call(this,a,b,c,e,f,h,k,q,d);this.contentAttr="_ngcontent-%COMP%".replace(Rsa,d);this.hostAttr="_nghost-%COMP%".replace(Rsa,d)};Y(hic,dA);hic.prototype.createElement=function(a,b){a=dA.prototype.createElement.call(this,a,b);dA.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var eA=function(a){this._doc=a};Y(eA,aic);eA.prototype.supports=function(){return!0};eA.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};eA.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};eA.\u0275fac=function(a){return new (a||eA)(nd(Ei))};eA.\u0275prov=Sc({token:eA,factory:eA.\u0275fac});var lic=["alt","control","meta","shift"],mic={"\b":"Backspace","\t":"Tab","\u007f":"Delete","\u001b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},nic={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},fA=function(a){this._doc=a};Y(fA,aic);fA.prototype.supports=function(a){return oic(a)!=null};
fA.prototype.addEventListener=function(a,b,c,d){var e=oic(b),f=pic(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return Xhc(a,e.domEventName,f,d)})};
var oic=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=qic(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");lic.forEach(function(f){var h=b.indexOf(f);h>-1&&(b.splice(h,1),d+=f+".")});d+=c;if(b.length!=0||c.length===0)return null;a={domEventName:a};a.fullKey=d;return a},ric=function(a,b){var c=mic[a.key]||a.key,d="";b.indexOf("code.")>-1&&(c=a.code,d="code.");if(c==null||!c)return!1;c=c.toLowerCase();c===" "?
c="space":c==="."&&(c="dot");lic.forEach(function(e){e!==c&&(0,nic[e])(a)&&(d+=e+".")});d+=c;return d===b},pic=function(a,b,c){return function(d){ric(d,a)&&c.runGuarded(function(){return b(d)})}},qic=function(a){return a==="esc"?"escape":a};fA.\u0275fac=function(a){return new (a||fA)(nd(Ei))};fA.\u0275prov=Sc({token:fA,factory:fA.\u0275fac});var Aac=kma(Hac,"browser",[{provide:E$b,useValue:"browser"},{provide:mma,useValue:function(){var a=new Yz;Nbc!=null||(Nbc=a)},multi:!0},{provide:Ei,useFactory:function(){return tha=document},deps:[]}]);new yd("");
var sic=[{provide:aac,useClass:Zhc,deps:[]},{provide:$$b,useClass:mv,deps:[ph,nv,aac]},{provide:mv,useClass:mv,deps:[ph,nv,aac]}],tic=[{provide:lma,useValue:"root"},{provide:xf,useFactory:function(){return new xf},deps:[]},{provide:$hc,useClass:eA,multi:!0,deps:[Ei]},{provide:$hc,useClass:fA,multi:!0,deps:[Ei]},cA,aA,$z,{provide:Ff,useExisting:cA},{provide:Wbc,useClass:Zz,deps:[]},[]],gA=function(){};gA.\u0275fac=function(a){return new (a||gA)};gA.\u0275mod=Jf({type:gA});
gA.\u0275inj=Tc({providers:[].concat(p(tic),p(sic)),imports:[Yv,ov]});var hA=function(a){this._doc=a};hA.prototype.getTitle=function(){return this._doc.title};hA.prototype.setTitle=function(a){this._doc.title=a||""};hA.\u0275fac=function(a){return new (a||hA)(nd(Ei))};hA.\u0275prov=Sc({token:hA,factory:hA.\u0275fac,providedIn:"root"});new yd("");new yd("");var uic=function(){},vic=function(){};var Aj=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?typeof a==="string"?this.lazyInit=function(){b.headers=new Map;a.split("\n").forEach(function(c){var d=c.indexOf(":");d>0&&wic(b,c.slice(0,d),c.slice(d+1).trim())})}:typeof Headers!=="undefined"&&a instanceof Headers?(this.headers=new Map,a.forEach(function(c,d){wic(b,d,c)})):this.lazyInit=function(){b.headers=new Map;Object.entries(a).forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;xic(b,c,d)})}:this.headers=
new Map};g=Aj.prototype;g.has=function(a){this.init();return this.headers.has(a.toLowerCase())};g.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};g.keys=function(){this.init();return Array.from(this.normalizedNames.values())};g.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};g.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
g.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var yic=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};Aj.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof Aj?zic(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return Aic(a,b)}),this.lazyUpdate=null))};
var zic=function(a,b){b.init();Array.from(b.headers.keys()).forEach(function(c){a.headers.set(c,b.headers.get(c));a.normalizedNames.set(c,b.normalizedNames.get(c))})};Aj.prototype.clone=function(a){var b=new Aj;b.lazyInit=this.lazyInit&&this.lazyInit instanceof Aj?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var Aic=function(a,b){var c=b.name.toLowerCase();switch(b.op){case "a":case "s":var d=b.value;typeof d==="string"&&(d=[d]);if(d.length===0)break;yic(a,b.name,c);b=(b.op==="a"?a.headers.get(c):void 0)||[];b.push.apply(b,p(d));a.headers.set(c,b);break;case "d":var e=b.value;if(e){if(d=a.headers.get(c))d=d.filter(function(f){return e.indexOf(f)===-1}),d.length===0?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}},wic=function(a,
b,c){var d=b.toLowerCase();yic(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},xic=function(a,b,c){c=(Array.isArray(c)?c:[c]).map(function(e){return e.toString()});var d=b.toLowerCase();a.headers.set(d,c);yic(a,b,d)};Aj.prototype.forEach=function(a){var b=this;this.init();Array.from(this.normalizedNames.keys()).forEach(function(c){return a(b.normalizedNames.get(c),b.headers.get(c))})};var Bic=function(){},Usa=/%(\d[a-f0-9])/gi,Vsa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},Bj=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new Bic;if(a.fromString){if(a.fromObject)throw new Wc(2805,!1);this.map=Tsa(a.fromString)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(c){var d=a.fromObject[c];d=Array.isArray(d)?d.map(Xsa):[""+d];b.map.set(c,d)})):this.map=null};g=Bj.prototype;
g.has=function(a){this.init();return this.map.has(a)};g.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};g.getAll=function(a){this.init();return this.map.get(a)||null};g.keys=function(){this.init();return Array.from(this.map.keys())};g.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
g.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=Wsa(b);return a.map.get(b).map(function(d){return c+"="+Wsa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};g.clone=function(a){var b=new Bj({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
g.init=function(){var a=this;this.map===null&&(this.map=new Map);this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=(b.op==="a"?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(b.value!==void 0){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);d!==-1&&c.splice(d,1);c.length>0?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var Cic=function(){this.map=new Map};g=Cic.prototype;g.set=function(a,b){this.map.set(a,b);return this};g.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};g.delete=function(a){this.map.delete(a);return this};g.has=function(a){return this.map.has(a)};g.keys=function(){return this.map.keys()};var Cj=function(a,b,c,d){this.url=b;this.body=null;this.withCredentials=this.reportProgress=!1;this.responseType="json";this.method=a.toUpperCase();a:switch(this.method){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":a=!1;break a;default:a=!0}if(a||d)this.body=c!==void 0?c:null,c=d;c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),
c.params&&(this.params=c.params),this.transferCache=c.transferCache);this.headers!=null||(this.headers=new Aj);this.context!=null||(this.context=new Cic);this.params?(c=this.params.toString(),c.length===0?this.urlWithParams=b:(d=b.indexOf("?"),this.urlWithParams=b+(d===-1?"?":d<b.length-1?"&":"")+c)):(this.params=new Bj,this.urlWithParams=b)},Dic=function(a){return a.body===null?null:typeof a.body==="string"||Ysa(a.body)||Zsa(a.body)||$sa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof
URLSearchParams?a.body:a.body instanceof Bj?a.body.toString():typeof a.body==="object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
Cj.prototype.clone=function(a){a=a===void 0?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e,f=(e=a.transferCache)!=null?e:this.transferCache;e=a.body!==void 0?a.body:this.body;var h,k=(h=a.withCredentials)!=null?h:this.withCredentials,q;h=(q=a.reportProgress)!=null?q:this.reportProgress;q=a.headers||this.headers;var u=a.params||this.params,A,G=(A=a.context)!=null?A:this.context;a.setHeaders!==void 0&&(q=Object.keys(a.setHeaders).reduce(function(H,N){return H.set(N,
a.setHeaders[N])},q));a.setParams&&(u=Object.keys(a.setParams).reduce(function(H,N){return H.set(N,a.setParams[N])},u));return new Cj(b,c,e,{params:u,headers:q,context:G,reportProgress:h,responseType:d,withCredentials:k,transferCache:f})};var iA=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new Aj;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.ok=this.status>=200&&this.status<300},Eic=function(a){a=a===void 0?{}:a;iA.call(this,a);this.type=2};Y(Eic,iA);
Eic.prototype.clone=function(a){a=a===void 0?{}:a;return new Eic({headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};var jA=function(a){a=a===void 0?{}:a;iA.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Y(jA,iA);
jA.prototype.clone=function(a){a=a===void 0?{}:a;return new jA({body:a.body!==void 0?a.body:this.body,headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})};
var Fic=function(a){iA.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(a.url||"(unknown url)"):"Http failure response for "+(a.url||"(unknown url)")+": "+a.status+" "+a.statusText;this.error=a.error||null};Y(Fic,iA);var kA=function(a){this.handler=a};g=kA.prototype;
g.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof Cj)b=a;else{var e=void 0;e=c.headers instanceof Aj?c.headers:new Aj(c.headers);var f=void 0;c.params&&(f=c.params instanceof Bj?c.params:new Bj({fromObject:c.params}));b=new Cj(a,b,c.body!==void 0?c.body:null,{headers:e,context:c.context,params:f,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials,transferCache:c.transferCache})}e=Ce(b).pipe(Rf(function(h){return d.handler.handle(h)}));
if(a instanceof Cj||c.observe==="events")return e;a=e.pipe(Ve(function(h){return h instanceof jA}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(y(function(h){if(h.body!==null&&!(h.body instanceof ArrayBuffer))throw new Wc(2806,!1);return h.body}));case "blob":return a.pipe(y(function(h){if(h.body!==null&&!(h.body instanceof Blob))throw new Wc(2807,!1);return h.body}));case "text":return a.pipe(y(function(h){if(h.body!==null&&typeof h.body!=="string")throw new Wc(2808,
!1);return h.body}));default:return a.pipe(y(function(h){return h.body}))}case "response":return a;default:throw new Wc(2809,!1);}};g.delete=function(a,b){b=b===void 0?{}:b;return this.request("DELETE",a,b)};g.get=function(a,b){b=b===void 0?{}:b;return this.request("GET",a,b)};g.head=function(a,b){b=b===void 0?{}:b;return this.request("HEAD",a,b)};g.options=function(a,b){b=b===void 0?{}:b;return this.request("OPTIONS",a,b)};
g.patch=function(a,b,c){c=c===void 0?{}:c;return this.request("PATCH",a,ata(c,b))};g.post=function(a,b,c){c=c===void 0?{}:c;return this.request("POST",a,ata(c,b))};g.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,ata(c,b))};kA.\u0275fac=function(a){return new (a||kA)(nd(uic))};kA.\u0275prov=Sc({token:kA,factory:kA.\u0275fac});var Gic=new yd("");var Hic=new yd(""),Iic=new yd(""),Jic=new yd(""),Kic=new yd("",{providedIn:"root",factory:function(){return!0}}),lA=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=n(fv);this.contributeToStability=n(Kic)};Y(lA,uic);
lA.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(p(this.injector.get(Iic)),p(this.injector.get(Jic,[]))))).reduceRight(function(d,e){return dta(d,e,b.injector)},bta));if(this.contributeToStability){var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(Yf(function(){return b.pendingTasks.remove(c)}))}return this.chain(a,function(d){return b.backend.handle(d)})};
lA.\u0275fac=function(a){return new (a||lA)(nd(vic),nd(Ef))};lA.\u0275prov=Sc({token:lA,factory:lA.\u0275fac});var Lic=/^\)\]\}',?\n/,Mic=RegExp("^X-Request-URL:","m"),mA=function(a){this.xhrFactory=a};
mA.prototype.handle=function(a){if(a.method==="JSONP")throw new Wc(-2800,!1);var b=this.xhrFactory;return(b.\u0275loadImpl?se(b.\u0275loadImpl()):Ce(null)).pipe(fg(function(){return new pe(function(c){var d=b.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(N,O){return d.setRequestHeader(N,O.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=a.body===
null||$sa(a.body)?null:Zsa(a.body)?a.body.type||null:Ysa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof Bj?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;e!==null&&d.setRequestHeader("Content-Type",e)}a.responseType&&(e=a.responseType.toLowerCase(),d.responseType=e!=="json"?e:"text");var f=Dic(a),h=null,k=function(){if(h!==null)return h;var N=d.statusText||"OK",O=new Aj(d.getAllResponseHeaders()),
U=("responseURL"in d&&d.responseURL?d.responseURL:Mic.test(d.getAllResponseHeaders())?d.getResponseHeader("X-Request-URL"):null)||a.url;return h=new Eic({headers:O,status:d.status,statusText:N,url:U})},q=function(){var N=k(),O=N.headers,U=N.status,da=N.statusText;N=N.url;var ma=null;U!==204&&(ma=typeof d.response==="undefined"?d.responseText:d.response);U===0&&(U=ma?200:0);var ra=U>=200&&U<300;if(a.responseType==="json"&&typeof ma==="string"){var Ga=ma;ma=ma.replace(Lic,"");try{ma=ma!==""?JSON.parse(ma):
null}catch(Na){ma=Ga,ra&&(ra=!1,ma={error:Na,text:ma})}}ra?(c.next(new jA({body:ma,headers:O,status:U,statusText:da,url:N||void 0})),c.complete()):c.error(new Fic({error:ma,headers:O,status:U,statusText:da,url:N||void 0}))},u=function(N){var O=k().url;N=new Fic({error:N,status:d.status||0,statusText:d.statusText||"Unknown Error",url:O||void 0});c.error(N)},A=!1,G=function(N){A||(c.next(k()),A=!0);var O={type:3,loaded:N.loaded};N.lengthComputable&&(O.total=N.total);a.responseType==="text"&&d.responseText&&
(O.partialText=d.responseText);c.next(O)},H=function(N){var O={type:1,loaded:N.loaded};N.lengthComputable&&(O.total=N.total);c.next(O)};d.addEventListener("load",q);d.addEventListener("error",u);d.addEventListener("timeout",u);d.addEventListener("abort",u);a.reportProgress&&(d.addEventListener("progress",G),f!==null&&d.upload&&d.upload.addEventListener("progress",H));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",u);d.removeEventListener("abort",u);d.removeEventListener("load",
q);d.removeEventListener("timeout",u);a.reportProgress&&(d.removeEventListener("progress",G),f!==null&&d.upload&&d.upload.removeEventListener("progress",H));d.readyState!==d.DONE&&d.abort()}})}))};mA.\u0275fac=function(a){return new (a||mA)(nd(Wbc))};mA.\u0275prov=Sc({token:mA,factory:mA.\u0275fac});var eta=new yd(""),Nic=new yd("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),gta=new yd("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),fta=function(){},nA=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
nA.prototype.getToken=function(){if(this.platform==="server")return null;var a=this.doc.cookie||"";if(a!==this.lastCookieString){a:{var b=this.cookieName;b=encodeURIComponent(b);for(var c=l(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=l(e==-1?[d,""]:[d.slice(0,e),d.slice(e+1)]);d=e.next().value;e=e.next().value;if(d.trim()===b){b=decodeURIComponent(e);break a}}b=null}this.lastToken=b;this.lastCookieString=a}return this.lastToken};
nA.\u0275fac=function(a){return new (a||nA)(nd(Ei),nd(E$b),nd(Nic))};nA.\u0275prov=Sc({token:nA,factory:nA.\u0275fac});var Oic=new yd("");var oA=function(){};oA.\u0275fac=function(a){return new (a||oA)};oA.\u0275mod=Jf({type:oA});
oA.\u0275inj=Tc({providers:[function(){for(var a=[kA,mA,lA,{provide:uic,useExisting:lA},{provide:vic,useFactory:function(){var d;return(d=n(Gic,{optional:!0}))!=null?d:n(mA)}},{provide:Iic,useValue:hta,multi:!0},{provide:eta,useValue:!0},{provide:fta,useClass:nA}],b=l(ud.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,p(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:Oic,useFactory:function(){var a=null;return function(b,c){if(a===
null){var d;a=((d=n(Hic,{optional:!0}))!=null?d:[]).reduceRight(cta,bta)}var e=n(fv);if(n(Kic)){var f=e.add();return a(b,c).pipe(Yf(function(){return e.remove(f)}))}return a(b,c)}}},{provide:Iic,useExisting:Oic,multi:!0}]})]});var Pic=jta("json");Pic.arrayBuffer=jta("arraybuffer");Pic.blob=jta("blob");Pic.text=jta("text");
var ita=function(a,b,c,d,e){xv.call(this,b,function(h){var k=h.request;var q=h.abortSignal;var u=function(){return N.unsubscribe()};q.addEventListener("abort",u);var A=bh({value:void 0}),G;h=new Promise(function(O){return G=O});var H=function(O){A.set(O);var U;(U=G)==null||U(A);G=void 0};var N=f.client.request(k).subscribe({next:function(O){switch(O.type){case 4:f._headers.set(O.headers);f._statusCode.set(O.status);try{H({value:d?d(O.body):O.body})}catch(U){H({error:U})}break;case 3:f._progress.set(O)}},
error:function(O){return H({error:O})},complete:function(){G&&H({error:Error("yb")});q.removeEventListener("abort",u)}});return h},c,e,a);var f=this;this._headers=Ch({source:this.extRequest,computation:function(){}});this._progress=Ch({source:this.extRequest,computation:function(){}});this._statusCode=Ch({source:this.extRequest,computation:function(){}});this.headers=Ah(function(){return f.status()===4||f.status()===1?f._headers():void 0});this.progress=this._progress.asReadonly();this.statusCode=
this._statusCode.asReadonly();this.client=a.get(kA)};Y(ita,xv);new yd("");new yd("");var pA=function(){};pA.\u0275fac=function(a){return new (a||pA)};pA.\u0275prov=Sc({token:pA,factory:function(a){var b=null;return b=a?new (a||pA):nd(qA)},providedIn:"root"});var qA=function(a){this._doc=a};Y(qA,pA);
qA.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return pf(b,"HTML")?of(b):eia(this._doc,String(b)).toString();case 2:return pf(b,"Style")?of(b):b;case 3:if(pf(b,"Script"))return of(b);throw new Wc(5200,!1);case 4:return pf(b,"URL")?of(b):Sha(String(b));case 5:if(pf(b,"ResourceURL"))return of(b);throw new Wc(5201,!1);default:throw new Wc(5202,!1);}};qA.prototype.bypassSecurityTrustHtml=function(a){return new J$b(a)};qA.prototype.bypassSecurityTrustUrl=function(a){return new K$b(a)};
qA.prototype.bypassSecurityTrustResourceUrl=function(a){return new L$b(a)};qA.\u0275fac=function(a){return new (a||qA)(nd(Ei))};qA.\u0275prov=Sc({token:qA,factory:qA.\u0275fac,providedIn:"root"});var rA=function(a){this.decorated=new qA(a)};Y(rA,pA);rA.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof Th||Xh(b)||b instanceof bi){if(Qic(b,a))return this.decorated.sanitize(a,Ric(this,b));throw Error("zb`"+U$b[a]+"`"+b);}return this.decorated.sanitize(a,b)};rA.prototype.bypassSecurityTrustHtml=function(){throw Error("Ab");};rA.prototype.bypassSecurityTrustUrl=function(){throw Error("Ab");};rA.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Ab");};
var Ric=function(a,b){if(b!=null){if(b instanceof bi)return a.decorated.bypassSecurityTrustHtml(String(b));if(Xh(b))return a.decorated.bypassSecurityTrustUrl(Yh(b));if(b instanceof Th)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},Qic=function(a,b){switch(b){case 1:return a instanceof bi;case 4:return Xh(a)||a instanceof Th;case 5:return a instanceof Th;case 3:return!1;default:return!1}};rA.\u0275fac=function(a){return new (a||rA)(nd(Ei))};rA.\u0275prov=Sc({token:rA,factory:rA.\u0275fac});var Sic=[{provide:lja,useExisting:pA},{provide:pA,useClass:rA}],sA=function(){};sA.\u0275fac=function(a){return new (a||sA)};sA.\u0275mod=Jf({type:sA});sA.\u0275inj=Tc({providers:Sic,imports:[gA]});var tA=function(){},Tic=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[pj])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};tA.\u0275fac=function(a){return new (a||tA)};tA.\u0275prov=Sc({token:tA,factory:function(){return n(uA)},providedIn:"root"});var uA=function(a){this.title=a};Y(uA,tA);uA.\u0275fac=function(a){return new (a||uA)(nd(hA))};uA.\u0275prov=Sc({token:uA,factory:uA.\u0275fac,providedIn:"root"});var Uic=new yd("",{providedIn:"root",factory:function(){return{}}});var nta=new yd(""),vA=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;n(vv)};
vA.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return Ce(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=dj(a.loadComponent()).pipe(y(kta),hg(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),Yf(function(){b.componentLoaders.delete(a)}));c=(new $f(c,function(){return new bg})).pipe(Ega());this.componentLoaders.set(a,c);return c};
vA.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return Ce({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);a=ota(b,a,this.onLoadEndListener).pipe(Yf(function(){c.childrenLoaders.delete(b)}));a=(new $f(a,function(){return new bg})).pipe(Ega());this.childrenLoaders.set(b,a);return a};vA.\u0275fac=function(a){return new (a||vA)};
vA.\u0275prov=Sc({token:vA,factory:vA.\u0275fac,providedIn:"root"});var wA=function(){};wA.\u0275fac=function(a){return new (a||wA)};wA.\u0275prov=Sc({token:wA,factory:function(){return n(xA)},providedIn:"root"});var xA=function(){};xA.prototype.merge=function(a){return a};xA.\u0275fac=function(a){return new (a||xA)};xA.\u0275prov=Sc({token:xA,factory:xA.\u0275fac,providedIn:"root"});var Vic=new yd(""),pta=new yd("");var Wic=new yd(""),yA=function(){var a=this;this.lastSuccessfulNavigation=this.currentTransition=this.currentNavigation=null;this.events=new bg;this.transitionAbortSubject=new bg;this.configLoader=n(vA);this.environmentInjector=n(Ef);this.destroyRef=n(df);this.urlSerializer=n(Qz);this.rootContexts=n(Tz);this.location=n(dw);this.inputBindingEnabled=n(vhc,{optional:!0})!==null;this.titleStrategy=n(tA);this.options=n(Uic,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||
"emptyOnly";this.urlHandlingStrategy=n(wA);this.createViewTransition=n(Vic,{optional:!0});this.navigationErrorHandler=n(Wic,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return Ce(void 0)};this.rootComponentType=null;this.destroyed=!1;this.configLoader.onLoadEndListener=function(b){return a.events.next(new jhc(b))};this.configLoader.onLoadStartListener=function(b){return a.events.next(new ihc(b))};this.destroyRef.onDestroy(function(){a.destroyed=!0})};
yA.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var Xic=function(a,b){var c=++a.navigationId,d;(d=a.transitions)==null||d.next(Object.assign({},b,{extractedUrl:b.rawUrl,targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:c}))},ajc=function(a,b){a.transitions=new tj(null);return a.transitions.pipe(Ve(function(c){return c!==null}),fg(function(c){var d=!1,e=!1;return Ce(c).pipe(fg(function(f){if(a.navigationId>c.id)return Yic(a,c,1),Te;a.currentTransition=c;a.currentNavigation={id:f.id,
initialUrl:f.rawUrl,extractedUrl:f.extractedUrl,targetBrowserUrl:typeof f.extras.browserUrl==="string"?a.urlSerializer.parse(f.extras.browserUrl):f.extras.browserUrl,trigger:f.source,extras:f.extras,previousNavigation:a.lastSuccessfulNavigation?Object.assign({},a.lastSuccessfulNavigation,{previousNavigation:null}):null};var h=!b.navigated||Zic(a)||$ic(a),k,q=(k=f.extras.onSameUrlNavigation)!=null?k:b.onSameUrlNavigation;return h||q==="reload"?Ce(f).pipe(fg(function(u){a.events.next(new Jj(u.id,a.urlSerializer.serialize(u.extractedUrl),
u.source,u.restoredState));return u.id!==a.navigationId?Te:Promise.resolve(u)}),Hsa(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,a.paramsInheritanceStrategy),hg(function(u){c.targetSnapshot=u.targetSnapshot;c.urlAfterRedirects=u.urlAfterRedirects;a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:u.urlAfterRedirects});u=new dhc(u.id,a.urlSerializer.serialize(u.extractedUrl),a.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);a.events.next(u)})):
(a.events.next(new Gj(f.id,a.urlSerializer.serialize(f.rawUrl),"",0)),f.resolve(!1),Te)}),hg(function(f){f=new ehc(f.id,a.urlSerializer.serialize(f.extractedUrl),a.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);a.events.next(f)}),y(function(f){var h=Object,k=h.assign;var q=f.currentSnapshot;var u=f.targetSnapshot._root;q=wj(u,q?q._root:null,a.rootContexts,[u.value]);return a.currentTransition=c=k.call(h,{},f,{guards:q})}),msa(a.environmentInjector,function(f){return a.events.next(f)}),
hg(function(f){if((c.guardsResult=f.guardsResult)&&typeof f.guardsResult!=="boolean")throw dsa(f.guardsResult);f=new fhc(f.id,a.urlSerializer.serialize(f.extractedUrl),a.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot,!!f.guardsResult);a.events.next(f)}),Ve(function(f){return f.guardsResult?!0:(Yic(a,f,3),!1)}),Nsa(function(f){if(f.guards.canActivateChecks.length!==0)return Ce(f).pipe(hg(function(h){h=new ghc(h.id,a.urlSerializer.serialize(h.extractedUrl),a.urlSerializer.serialize(h.urlAfterRedirects),
h.targetSnapshot);a.events.next(h)}),fg(function(h){var k=!1;return Ce(h).pipe(Ksa(a.paramsInheritanceStrategy,a.environmentInjector),hg({next:function(){return k=!0},complete:function(){k||Yic(a,h,2)}}))}),hg(function(h){h=new hhc(h.id,a.urlSerializer.serialize(h.extractedUrl),a.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);a.events.next(h)}))}),Nsa(function(f){var h=function(k){var q=[],u;((u=k.routeConfig)==null?0:u.loadComponent)&&!k.routeConfig._loadedComponent&&q.push(a.configLoader.loadComponent(k.routeConfig).pipe(hg(function(G){k.component=
G}),y(function(){})));u=l(k.children);for(var A=u.next();!A.done;A=u.next())q.push.apply(q,p(h(A.value)));return q};return Je(h(f.targetSnapshot.root)).pipe(Kja(null),Uf())}),Nsa(function(){return a.afterPreactivation()}),fg(function(){var f=c,h=f.currentSnapshot;f=f.targetSnapshot;var k,q=(k=a.createViewTransition)==null?void 0:k.call(a,a.environmentInjector,h.root,f.root);return q?se(q).pipe(y(function(){return c})):Ce(c)}),y(function(f){var h=f.targetSnapshot;var k=f.currentRouterState;k=bsa(b.routeReuseStrategy,
h._root,k?k._root:void 0);h=new shc(k,h);a.currentTransition=c=Object.assign({},f,{targetRouterState:h});a.currentNavigation.targetRouterState=h;return c}),hg(function(){a.events.next(new nhc)}),Dhc(a.rootContexts,b.routeReuseStrategy,function(f){return a.events.next(f)},a.inputBindingEnabled),Uf(),hg({next:function(f){d=!0;a.lastSuccessfulNavigation=a.currentNavigation;a.events.next(new Dj(f.id,a.urlSerializer.serialize(f.extractedUrl),a.urlSerializer.serialize(f.urlAfterRedirects)));var h;if((h=
a.titleStrategy)!=null){var k=Tic(f.targetRouterState.snapshot);k!==void 0&&h.title.setTitle(k)}f.resolve(!0)},complete:function(){d=!0}}),gg(a.transitionAbortSubject.pipe(hg(function(f){throw f;}))),Yf(function(){d||e||Yic(a,c,1);var f;((f=a.currentTransition)==null?void 0:f.id)===c.id&&(a.currentNavigation=null,a.currentTransition=null)}),Pf(function(f){if(a.destroyed)return c.resolve(!1),Te;e=!0;if(esa(f))a.events.next(new Ej(c.id,a.urlSerializer.serialize(c.extractedUrl),f.message,f.cancellationCode)),
esa(f)&&ij(f.url)?a.events.next(new ohc(f.url,f.navigationBehaviorOptions)):c.resolve(!1);else{var h,k=new Fj(c.id,a.urlSerializer.serialize(c.extractedUrl),f,(h=c.targetSnapshot)!=null?h:void 0);try{throw Bd(a.environmentInjector,function(){var q;return(q=a.navigationErrorHandler)==null?void 0:q.call(a,k)}),a.events.next(k),f;}catch(q){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(q)}}return Te}))}))},Yic=function(a,b,c){c=new Ej(b.id,a.urlSerializer.serialize(b.extractedUrl),
"",c);a.events.next(c);b.resolve(!1)},Zic=function(a){var b,c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},$ic=function(a){var b=a.urlSerializer.parse(a.location.path(!0));var c,d,e,f=(e=(c=a.currentNavigation)==null?void 0:c.targetBrowserUrl)!=null?e:(d=a.currentNavigation)==null?void 0:d.extractedUrl,h;return b.toString()!==(f==null?void 0:f.toString())&&!((h=a.currentNavigation)==null?0:h.extras.skipLocationChange)};
ea.Object.defineProperties(yA.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});yA.\u0275fac=function(a){return new (a||yA)};yA.\u0275prov=Sc({token:yA,factory:yA.\u0275fac,providedIn:"root"});var zA=function(){};zA.\u0275fac=function(a){return new (a||zA)};zA.\u0275prov=Sc({token:zA,factory:function(){return n(AA)},providedIn:"root"});var bjc=function(){};bjc.prototype.store=function(){};bjc.prototype.retrieve=function(){return null};bjc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var AA=function(){};Y(AA,bjc);AA.\u0275fac=function(){var a;return function(b){return(a||(a=fe(AA)))(b||AA)}}();AA.\u0275prov=Sc({token:AA,factory:AA.\u0275fac,providedIn:"root"});var BA=function(){};BA.\u0275fac=function(a){return new (a||BA)};BA.\u0275prov=Sc({token:BA,factory:function(){return n(CA)},providedIn:"root"});
var CA=function(){this.location=n(dw);this.urlSerializer=n(Qz);this.options=n(Uic,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.urlHandlingStrategy=n(wA);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new hj;this.currentPageId=0;this.lastSuccessfulId=-1;var a=new thc("",new rj(new Vz([],{},{},"",{},"primary",null,null,{}),[])),b=new sj(new tj([new lj("",{})]),new tj({}),new tj({}),
new tj(""),new tj({}),"primary",null,a.root);b.snapshot=a.root;this.routerState=new shc(new rj(b,[]),a);this.stateMemento=cjc(this)};Y(CA,BA);CA.prototype.restoredState=function(){return this.location.getState()};
var cjc=function(a){return{rawUrlTree:a.rawUrlTree,currentUrlTree:a.currentUrlTree,routerState:a.routerState}},djc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&b(c.url,c.state)})},fjc=function(a,b,c){b=b instanceof hj?a.urlSerializer.serialize(b):b;var d=a.location;var e=e===void 0?"":e;d.path()==d.normalize(b+qi(e))||c.extras.replaceUrl?(c=Object.assign({},c.extras.state,ejc(a,c.id,a.browserPageId)),a.location.replaceState(b,"",c)):(c=Object.assign({},c.extras.state,
ejc(a,c.id,a.browserPageId+1)),a.location.go(b,"",c))},hjc=function(a,b,c){c=c===void 0?!1:c;a.canceledNavigationResolution==="computed"?(c=a.currentPageId-a.browserPageId,c!==0?a.location.historyGo(c):a.currentUrlTree===b.finalUrl&&c===0&&(a.resetState(b),gjc(a))):a.canceledNavigationResolution==="replace"&&(c&&a.resetState(b),gjc(a))};
CA.prototype.resetState=function(a){this.routerState=this.stateMemento.routerState;this.currentUrlTree=this.stateMemento.currentUrlTree;var b;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(b=a.finalUrl)!=null?b:this.rawUrlTree)};var gjc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",ejc(a,a.lastSuccessfulId,a.currentPageId))},ejc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
ea.Object.defineProperties(CA.prototype,{browserPageId:{configurable:!0,enumerable:!0,get:function(){if(this.canceledNavigationResolution!=="computed")return this.currentPageId;var a,b;return(b=(a=this.restoredState())==null?void 0:a.\u0275routerPageId)!=null?b:this.currentPageId}}});CA.\u0275fac=function(){var a;return function(b){return(a||(a=fe(CA)))(b||CA)}}();CA.\u0275prov=Sc({token:CA,factory:CA.\u0275fac,providedIn:"root"});var ijc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jjc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},DA=function(){var a=this;this.disposed=!1;this.console=n(lv);this.stateManager=n(BA);this.options=n(Uic,{optional:!0})||{};this.pendingTasks=n(fv);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=n(yA);this.urlSerializer=n(Qz);this.location=n(dw);this.urlHandlingStrategy=n(wA);this.injector=
n(Ef);this._events=new bg;this.navigated=!1;this.routeReuseStrategy=n(zA);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=n(nta,{optional:!0}))==null?void 0:b.flat())!=null?c:[];n(vhc,{optional:!0});this.eventsSubscription=new ke;this.config=this.config.map(Zra);this.navigated=!1;ajc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});kjc(this)},kjc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=
a.navigationTransitions.currentTransition,e=a.navigationTransitions.currentNavigation;if(d!==null&&e!==null){var f=a.stateManager;if(c instanceof Jj)f.stateMemento=cjc(f);else if(c instanceof Gj)f.rawUrlTree=e.initialUrl;else if(c instanceof dhc){if(f.urlUpdateStrategy==="eager"&&!e.extras.skipLocationChange){var h=f.urlHandlingStrategy.merge(e.finalUrl,e.initialUrl),k;fjc(f,(k=e.targetBrowserUrl)!=null?k:h,e)}}else if(c instanceof nhc){if(f.currentUrlTree=e.finalUrl,f.rawUrlTree=f.urlHandlingStrategy.merge(e.finalUrl,
e.initialUrl),f.routerState=e.targetRouterState,f.urlUpdateStrategy==="deferred"&&!e.extras.skipLocationChange){var q;fjc(f,(q=e.targetBrowserUrl)!=null?q:f.rawUrlTree,e)}}else c instanceof Ej&&(c.code===3||c.code===2)?hjc(f,e):c instanceof Fj?hjc(f,e,!0):c instanceof Dj&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof Ej&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof Dj)a.navigated=!0;else if(c instanceof ohc){var u=c.navigationBehaviorOptions,A=a.urlHandlingStrategy.merge(c.url,
d.currentRawUrl),G=Object.assign({},{browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,replaceUrl:d.extras.replaceUrl||a.urlUpdateStrategy==="eager"||d.source!=="imperative"},u);ljc(a,A,"imperative",null,G,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof nhc||c instanceof ohc||a._events.next(c)}catch(H){a.navigationTransitions.transitionAbortSubject.next(H)}});a.eventsSubscription.add(b)};
DA.prototype.initialNavigation=function(){mjc(this);this.navigationTransitions.hasRequestedNavigation||njc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var mjc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=djc(a.stateManager,function(b,c){setTimeout(function(){njc(a,b,"popstate",c)},0)}))},njc=function(a,b,c,d){var e={replaceUrl:!0},f=(d==null?0:d.navigationId)?d:null;d&&(d=Object.assign({},d),delete d.navigationId,delete d.\u0275routerPageId,Object.keys(d).length!==0&&(e.state=d));b=a.parseUrl(b);ljc(a,b,c,f,e).catch(function(h){a.injector.get(sh)(h)})};DA.prototype.ngOnDestroy=function(){this.dispose()};
DA.prototype.dispose=function(){this._events.unsubscribe();this.navigationTransitions.complete();this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0);this.disposed=!0;this.eventsSubscription.unsubscribe()};
var EA=function(a,b,c){var d=c=c===void 0?{}:c;c=d.relativeTo;var e=d.queryParams,f=d.fragment;f=d.preserveFragment?a.currentUrlTree.fragment:f;var h;switch((h=d.queryParamsHandling)!=null?h:a.options.defaultQueryParamsHandling){case "merge":h=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":h=a.currentUrlTree.queryParams;break;default:h=e||null}h!==null&&(h=ojc(h));try{var k=Dra(c?c.snapshot:a.routerState.snapshot.root)}catch(q){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return Jra(k,b,h,f!=null?f:null)},Nr=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=ij(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return ljc(a,b,"imperative",null,c)};DA.prototype.navigate=function(a,b){b=b===void 0?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++)if(a[c]==null)throw new Wc(4008,!1);return Nr(this,EA(this,a,b),b)};DA.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.urlSerializer.parse("/")}};
DA.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},ijc):b===!1?c=Object.assign({},jjc):c=b;if(ij(a))return kra(this.currentUrlTree,a,c);a=this.parseUrl(a);return kra(this.currentUrlTree,a,c)};
var ojc=function(a){return Object.entries(a).reduce(function(b,c){var d=l(c);c=d.next().value;d=d.next().value;d!==null&&d!==void 0&&(b[c]=d);return b},{})},ljc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var h=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(u,A){h=u;k=A});var q=a.pendingTasks.add();sta(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(q)})});Xic(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,
currentRawUrl:a.currentUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(u){return Promise.reject(u)})};
ea.Object.defineProperties(DA.prototype,{currentUrlTree:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.currentUrlTree}},rawUrlTree:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.rawUrlTree}},events:{configurable:!0,enumerable:!0,get:function(){return this._events}},routerState:{configurable:!0,enumerable:!0,get:function(){return this.stateManager.routerState}},url:{configurable:!0,enumerable:!0,get:function(){return this.urlSerializer.serialize(this.currentUrlTree)}},
lastSuccessfulNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationTransitions.lastSuccessfulNavigation}}});DA.\u0275fac=function(a){return new (a||DA)};DA.\u0275prov=Sc({token:DA,factory:DA.\u0275fac,providedIn:"root"});var FA=function(a,b,c,d,e,f){var h=this;this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.locationStrategy=f;this.href=null;this.onChanges=new bg;this.applicationErrorHandler=n(sh);this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;var k;b=(k=e.nativeElement.tagName)==null?void 0:k.toLowerCase();(this.isAnchorElement=b==="a"||b==="area")?this.subscription=a.events.subscribe(function(q){q instanceof Dj&&pjc(h)}):qjc(this,"0")},
qjc=function(a,b){a.tabIndexAttribute!=null||a.isAnchorElement||rjc(a,"tabindex",b)};FA.prototype.ngOnChanges=function(){this.isAnchorElement&&pjc(this);this.onChanges.next(this)};
FA.prototype.onClick=function(a,b,c,d,e){var f=this,h=this.urlTree;if(h===null||this.isAnchorElement&&(a!==0||b||c||d||e||typeof this.target==="string"&&this.target!="_self"))return!0;var k;(k=Nr(this.router,h,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(q){f.applicationErrorHandler(q)});return!this.isAnchorElement};FA.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var pjc=function(a){var b=a.urlTree,c;a.href=b!==null&&a.locationStrategy?(c=a.locationStrategy)==null?void 0:c.prepareExternalUrl(a.router.urlSerializer.serialize(b)):null;a.href===null?b=null:(b=a.el.nativeElement.tagName.toLowerCase(),b=(b==="base"||b==="link"?lia:uf)(a.href));rjc(a,"href",b)},rjc=function(a,b,c){var d=a.renderer;a=a.el.nativeElement;c!==null?d.setAttribute(a,b,c):d.removeAttribute(a,b)};
ea.Object.defineProperties(FA.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){a==null?(this.routerLinkInput=null,qjc(this,null)):(ij(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],qjc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:ij(this.routerLinkInput)?this.routerLinkInput:EA(this.router,this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,
fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}});FA.\u0275fac=function(a){return new (a||FA)(zf(DA),zf(sj),ae("tabindex"),zf(jv),zf(ff),zf(aw))};
FA.\u0275dir=Kf({type:FA,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&ng("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Dh],skipLocationChange:[2,"skipLocationChange","skipLocationChange",
Dh],replaceUrl:[2,"replaceUrl","replaceUrl",Dh],routerLink:"routerLink"},features:[Uu]});var GA=function(a,b,c,d,e){var f=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new hv;this.routerEventsSubscription=a.events.subscribe(function(h){h instanceof Dj&&f.update()})};GA.prototype.ngAfterContentInit=function(){var a=this;Ce(this.links.changes,Ce(null)).pipe(Me()).subscribe(function(){a.update();sjc(a)})};
var sjc=function(a){var b;(b=a.linkInputChangesSubscription)==null||b.unsubscribe();b=[].concat(p(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=se(b).pipe(Me()).subscribe(function(c){a._isActive!==tjc(a,a.router)(c)&&a.update()})};GA.prototype.ngOnChanges=function(){this.update()};GA.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
GA.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=ujc(a);a.classes.forEach(function(c){b?a.renderer.addClass(a.element.nativeElement,c):a.renderer.removeClass(a.element.nativeElement,c)});b&&a.ariaCurrentWhenActive!==void 0?a.renderer.setAttribute(a.element.nativeElement,"aria-current",a.ariaCurrentWhenActive.toString()):a.renderer.removeAttribute(a.element.nativeElement,"aria-current");a._isActive!==b&&(a._isActive=b,a.cdr.markForCheck(),
a.isActiveChange.emit(b))})};var tjc=function(a,b){var c=a.routerLinkActiveOptions.paths?a.routerLinkActiveOptions:a.routerLinkActiveOptions.exact||!1;return function(d){return(d=d.urlTree)?b.isActive(d,c):!1}},ujc=function(a){var b=tjc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
ea.Object.defineProperties(GA.prototype,{isActive:{configurable:!0,enumerable:!0,get:function(){return this._isActive}},routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});GA.\u0275fac=function(a){return new (a||GA)(zf(DA),zf(ff),zf(jv),zf(qv),zf(FA,8))};
GA.\u0275dir=Kf({type:GA,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&Xg(c,FA,5);if(a&2){var d;$g(d=ah())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Uu]});var vjc=function(){},HA=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},wjc=function(a){a.subscription=a.router.events.pipe(Ve(function(b){return b instanceof Dj}),Rf(function(){return a.preload()})).subscribe(function(){})};HA.prototype.preload=function(){return xjc(this,this.injector,this.router.config)};HA.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var xjc=function(a,b,c){var d=[];c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=vja(e.providers,b,"Route: "+e.path));var f=void 0,h=(f=e._injector)!=null?f:b,k=void 0;f=(k=e._loadedInjector)!=null?k:h;(e.loadChildren&&!e._loadedRoutes&&e.canLoad===void 0||e.loadComponent&&!e._loadedComponent)&&d.push(yjc(a,h,e));if(e.children||e._loadedRoutes)h=void 0,d.push(xjc(a,f,(h=e.children)!=null?h:e._loadedRoutes))}return se(d).pipe(Me())},yjc=function(a,b,
c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&c.canLoad===void 0?a.loader.loadChildren(b,c):Ce(null)).pipe(Le(function(f){if(f===null)return Ce(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return xjc(a,(h=f.injector)!=null?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return se([d,e]).pipe(Me())}return d})};HA.\u0275fac=function(a){return new (a||HA)(nd(DA),nd(vv),nd(Ef),nd(vjc),nd(vA))};
HA.\u0275prov=Sc({token:HA,factory:HA.\u0275fac,providedIn:"root"});var zjc=new yd(""),IA=function(a,b,c,d,e){e=e===void 0?{}:e;this.urlSerializer=a;this.transitions=b;this.viewportScroller=c;this.zone=d;this.options=e;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};var f;(f=e).scrollPositionRestoration||(f.scrollPositionRestoration="disabled");var h;(h=e).anchorScrolling||(h.anchorScrolling="disabled")};
IA.prototype.init=function(){this.options.scrollPositionRestoration!=="disabled"&&(this.viewportScroller.window.history.scrollRestoration="manual");this.routerEventsSubscription=Ajc(this);this.scrollEventsSubscription=Bjc(this)};
var Ajc=function(a){return a.transitions.events.subscribe(function(b){b instanceof Jj?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof Dj?(a.lastId=b.id,Cjc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof Gj&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,Cjc(a,a.urlSerializer.parse(b.url).fragment))})},Bjc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
mhc)if(b.position)if(a.options.scrollPositionRestoration==="top"){var c=[0,0];a.viewportScroller.window.scrollTo(c[0],c[1])}else a.options.scrollPositionRestoration==="enabled"&&(c=b.position,a.viewportScroller.window.scrollTo(c[0],c[1]));else if(b.anchor&&a.options.anchorScrolling==="enabled"){c=a.viewportScroller;a:{var d=c.document;b=b.anchor;var e=d.getElementById(b)||d.getElementsByName(b)[0];if(e)b=e;else{if(typeof d.createTreeWalker==="function"&&d.body&&typeof d.body.attachShadow==="function")for(d=
d.createTreeWalker(d.body,NodeFilter.SHOW_ELEMENT),e=d.currentNode;e;){if(e=e.shadowRoot)if(e=e.getElementById(b)||e.querySelector('[name="'+b+'"]')){b=e;break a}e=d.nextNode()}b=null}}if(b){e=b.getBoundingClientRect();d=e.left+c.window.pageXOffset;e=e.top+c.window.pageYOffset;var f=c.offset();c.window.scrollTo(d-f[0],e-f[1]);b.focus()}}else a.options.scrollPositionRestoration!=="disabled"&&(c=[0,0],a.viewportScroller.window.scrollTo(c[0],c[1]))})},Cjc=function(a,b){a.zone.runOutsideAngular(function(){return w(function(c){if(c.nextAddress==
1)return x(c,new Promise(function(d){setTimeout(d);typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame(d)}),2);a.zone.run(function(){a.transitions.events.next(new mhc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b))});ze(c)})})};IA.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};IA.\u0275fac=function(){Fia()};IA.\u0275prov=Sc({token:IA,factory:IA.\u0275fac});new yd("",{providedIn:"root",factory:function(){return!1}});var Djc=new yd("",{factory:function(){return new bg}}),Ejc=new yd("",{providedIn:"root",factory:function(){return 1}}),Fjc=new yd("");new yd("");var Gjc=[dw,{provide:Qz,useClass:Wgc},DA,Tz,{provide:sj,useFactory:function(a){return a.routerState.root},deps:[DA]},vA,[]],JA=function(){};JA.\u0275fac=function(a){return new (a||JA)};JA.\u0275mod=Jf({type:JA});JA.\u0275inj=Tc({});var Hjc=new yd("");var Ijc={attributes:!1,childList:!0,subtree:!0},KA=function(){var a=this;this.ngZone=n(ph);this.router=n(DA);this.activatedRoute=n(sj);this.dom$=new bg;this.cdr$=this.ngZone.onStable;this.xhr$=new bg;this.render$=Ue(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(Sf(200));this.navigatedTo$=this.router.events.pipe(Ve(Ij),y(function(){return tta(a.activatedRoute.snapshot)}));this.navigatedTo$.pipe(fg(function(b){return a.renderSettled$.pipe(Uf(),y(function(){return b}))}),cg(1));this.domObserver=
new MutationObserver(function(){return void a.dom$.next()})},Jjc=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,Ijc)};KA.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;bj[c]=~~bj[c]+1;this.xhr$.next(c);return b.handle(a)};KA.\u0275fac=function(a){return new (a||KA)};KA.\u0275prov=Sc({token:KA,factory:KA.\u0275fac,providedIn:"root"});var Kjc={provide:Hic,useExisting:KA,multi:!0};var LA=function(){hv.apply(this,arguments)};Y(LA,hv);LA.create=hv.create;LA.prototype.emit=function(a){hv.prototype.emit.call(this,a)};var MA=function(){};g=MA.prototype;g.debug=function(){Lj.apply(null,p(ud.apply(0,arguments)))};g.error=function(){wta.apply(null,p(ud.apply(0,arguments)))};g.info=function(){Mj.apply(null,p(ud.apply(0,arguments)))};g.log=function(){vta.apply(null,p(ud.apply(0,arguments)))};g.warn=function(){Nj.apply(null,p(ud.apply(0,arguments)))};MA.\u0275fac=function(a){return new (a||MA)};MA.\u0275prov=Sc({token:MA,factory:MA.\u0275fac,providedIn:"root"});var NA=function(){this.cdr=n(qv);this.zone=n(ph);this.destroyed=!1};NA.prototype.ngOnDestroy=function(){this.destroyed=!0};NA.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};NA.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};NA.\u0275fac=function(a){return new (a||NA)};NA.\u0275prov=Sc({token:NA,factory:NA.\u0275fac});var OA=function(){Z.apply(this,arguments);var a=this;this.ngZone=n(ph);this.activeSubject$=new tj(!1);this.active$=this.activeSubject$.pipe(Xf(),gg(this.destroyed$),xta(this.ngZone));this.onUserEvent=cgc(function(){a.activeSubject$.next(!0);Ljc(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),Ljc(a))}};Y(OA,Z);OA.\u0275dir=Z.\u0275dir;
OA.prototype.install=function(){var a=this;if(document.visibilityState==="visible")this.onUserEvent();this.ngZone.runOutsideAngular(function(){window.addEventListener("click",a.onUserEvent);window.addEventListener("keydown",a.onUserEvent);window.addEventListener("mousemove",a.onUserEvent);window.addEventListener("wheel",a.onUserEvent);window.addEventListener("touchstart",a.onUserEvent);window.addEventListener("focus",a.onUserEvent)});document.addEventListener("visibilitychange",this.onVisibilityChange)};
OA.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);clearTimeout(this.activeTimeoutId);window.removeEventListener("click",this.onUserEvent);window.removeEventListener("keydown",this.onUserEvent);window.removeEventListener("mousemove",this.onUserEvent);window.removeEventListener("wheel",this.onUserEvent);window.removeEventListener("touchstart",this.onUserEvent);window.removeEventListener("focus",this.onUserEvent);document.removeEventListener("visibilitychange",this.onVisibilityChange)};
var Ljc=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};OA.\u0275fac=function(){var a;return function(b){return(a||(a=fe(OA)))(b||OA)}}();OA.\u0275prov=Sc({token:OA,factory:OA.\u0275fac,providedIn:"root"});var Mjc=new yd("GMAT_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var PA=function(a,b){this.elementRef=a;this.options=b};PA.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};PA.\u0275fac=function(a){return new (a||PA)(zf(ff),zf(Mjc))};
PA.\u0275dir=Kf({type:PA,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["a","mat-button",""],["button","mat-raised-button",""],["a","mat-raised-button",""],["button","mat-flat-button",""],["a","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-stroked-button",""],["button","matIconButton",""],["button","mat-icon-button",""],["a","mat-icon-button",""],[""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-button",!b.options.disableGmatStyle)},
standalone:!1});var Njc=new yd("GMAT_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Ojc={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},Pjc=Ojc;Pjc=Ojc;var Qjc={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var Rjc={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},QA=Rjc;QA=Rjc;var RA=function(a){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=QA.MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;this.pattern_=
typeof a==="string"?a:"";typeof a==="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
RA.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=Sjc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,u=!0;b[0]<q&&u;b[0]++)switch(a.charAt(b[0])){case "#":f>0?h++:e++;k>=0&&d<0&&k++;break;case "0":if(h>0)throw Error("Kb`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("Lb`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("Mb`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<q&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<q&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Nb`"+a);u=!1;break;default:b[0]--,u=!1}f==0&&e>0&&d>=0&&(f=d,f==0&&f++,h=e-f,e=f-1,f=1);if(d<0&&h>0||d>=0&&(d<e||d>e+f)||k==0)throw Error("Ob`"+a);h=e+f+h;this.maximumFractionDigits_=d>=0?h-d:0;d>=0&&(this.minimumFractionDigits_=e+f-d,this.minimumFractionDigits_<0&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(d>=0?d:h)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,this.maximumFractionDigits_==0&&this.minimumIntegerDigits_==0&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=d==0||d==h;c=b[0]-c;this.positiveSuffix_=Sjc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=Sjc(this,a,b),b[0]+=c,
this.negativeSuffix_=Sjc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
RA.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(QA.DECIMAL_PATTERN);break;case 2:this.applyPattern_(QA.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(QA.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=QA.CURRENCY_PATTERN;var c=["0"],d=Qjc[QA.DEF_CURRENCY_CODE];if(d){d=d[0]&7;if(d>0){c.push(".");for(var e=0;e<d;e++)c.push("0")}b=b.replace(/0.00/g,c.join(""))}a.call(this,b);break;case 5:Tjc(this,1);break;case 6:Tjc(this,2);break;default:throw Error("Eb");
}};var Tjc=function(a,b){a.compactStyle_=b;a.applyPattern_(QA.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(a.minimumFractionDigits_>0)throw Error("Cb");a.significantDigits_=2};
RA.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("Fb");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(QA.INFINITY,b[0])==b[0]){b[0]+=QA.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,u=1,A=QA.DECIMAL_SEP,G=QA.GROUP_SEP,H=QA.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("Gb");G=G.replace(/\u202f/g,"\u00a0");for(var N="";b[0]<e.length;b[0]++){var O=e.charAt(b[0]),U=Ujc(O);if(U>=0&&U<=9)N+=U,k=!0;else if(O==A.charAt(0)){if(f||h)break;N+=".";f=!0}else if(O==G.charAt(0)&&("\u00a0"!=G.charAt(0)||b[0]+1<e.length&&Ujc(e.charAt(b[0]+1))>=0)){if(f||h)break}else if(O==H.charAt(0)){if(h)break;N+="E";h=!0;q=b[0]}else if(O=="+"||O=="-"){if(k&&q!=b[0]-1)break;N+=
O}else if(this.multiplier_==1&&O==QA.PERCENT.charAt(0)){if(u!=1)break;u=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&O==QA.PERMILL.charAt(0)){if(u!=1)break;u=1E3;if(k){b[0]++;break}}else break}this.multiplier_!=1&&(u=this.multiplier_);e=parseFloat(N)/u}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
RA.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("Hb");if(isNaN(a))return QA.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=Vjc;else{c=Math.abs(c);var d=Wjc(this,c<=1?0:Xjc(c)).divisorBase;c=Wjc(this,d+Xjc(Yjc(this,SA(c,-d)).intValue))}a=SA(a,-c.divisorBase);(d=a<0||a==0&&1/a<0)?c.negative_prefix?b.push(c.negative_prefix):(b.push(c.prefix),b.push(this.negativePrefix_)):(b.push(c.prefix),b.push(this.positivePrefix_));if(isFinite(a))if(a*=d?-1:
1,a*=this.multiplier_,this.useExponentialNotation_){var e=a;if(e==0)Zjc(this,e,this.minimumIntegerDigits_,b),$jc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=SA(e,-f);var h=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,h<0&&(h=this.maximumIntegerDigits_+h),e=SA(e,h),f-=h,h=1):this.minimumIntegerDigits_<1?(f++,e=SA(e,-1)):(f-=this.minimumIntegerDigits_-1,e=SA(e,this.minimumIntegerDigits_-
1));Zjc(this,e,h,b);$jc(this,f,b)}}else Zjc(this,a,this.minimumIntegerDigits_,b);else b.push(QA.INFINITY);d?c.negative_suffix?b.push(c.negative_suffix):(isFinite(a)&&b.push(c.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(c.suffix),b.push(this.positiveSuffix_));return b.join("")};
var Yjc=function(a,b){var c=SA(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=akc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(SA(c,-a.maximumFractionDigits_));c=Math.floor(c-SA(d,a.maximumFractionDigits_));if(c<0||c>=SA(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},Zjc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("Hb");d||(d=[]);b=Yjc(a,b);var e=b.intValue,
f=b.fracValue,h=a.minimumFractionDigits_>0||f>0||!1;b=a.minimumFractionDigits_;h&&(b=a.minimumFractionDigits_);for(var k="",q=e;q>1E20;)k="0"+k,q=Math.round(SA(q,-1));k=q+k;var u=QA.DECIMAL_SEP;q=QA.ZERO_DIGIT.codePointAt(0);var A=k.length,G=0;if(e>0||c>0){for(e=A;e<c;e++)d.push(String.fromCodePoint(q));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)G+=a.groupingArray_[c];c=A-G;if(c>0){e=a.groupingArray_;G=A=0;for(var H,N=QA.GROUP_SEP,O=k.length,U=0;U<O;U++)if(d.push(String.fromCodePoint(q+
Number(k.charAt(U)))),O-U>1)if(H=e[G],U<c){var da=c-U;(H===1||H>0&&da%H===1)&&d.push(N)}else G<e.length&&(U===c?G+=1:H===U-c-A+1&&(d.push(N),A+=H,G+=1))}else{c=k;k=a.groupingArray_;e=QA.GROUP_SEP;H=c.length;N=[];for(A=k.length-1;A>=0&&H>0;A--){G=k[A];for(O=0;O<G&&H-O-1>=0;O++)N.push(String.fromCodePoint(q+Number(c.charAt(H-O-1))));H-=G;H>0&&N.push(e)}d.push.apply(d,N.reverse())}}else h||d.push(String.fromCodePoint(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(u);f=String(f);h=f.split("e+");h.length==
2&&(f=String(akc(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=rbc("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+rbc("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;f.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCodePoint(q+Number(f.charAt(b))))},$jc=function(a,b,c){c.push(QA.EXP_SYMBOL);b<0?(b=-b,c.push(QA.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(QA.PLUS_SIGN);b=""+b;for(var d=QA.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);
a=d.codePointAt(0)-bkc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},Ujc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=QA.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},bkc="0".codePointAt(0),Sjc=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var h=b.charAt(c[0]);if(h=="'")c[0]+1<f&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&b.charAt(c[0]+
1)=="\u00a4"?(c[0]++,d+=QA.DEF_CURRENCY_CODE):(h=QA.DEF_CURRENCY_CODE,d+=h in Qjc?Qjc[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("Ib");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("Jb");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=QA.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("Ib");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("Jb");a.multiplier_=1E3;a.negativePercentSignExpected_=
!1;d+=QA.PERMILL;break;default:d+=h}}return d},Vjc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Wjc=function(a,b){a=a.compactStyle_==1?Pjc.COMPACT_DECIMAL_SHORT_PATTERN:Pjc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=Pjc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return Vjc;b=Math.min(14,b);var c=a[SA(1,b)];for(--b;!c&&b>=3;)c=a[SA(1,b)],b--;if(!c)return Vjc;c=c.other;var d=a="",e=c.indexOf(";");e>=0&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],
d=d[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],suffix:c[3]}:Vjc:Vjc},Xjc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},SA=function(a,b){if(!a||!isFinite(a)||b==0)return a;a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},ckc=function(a,b){return a&&isFinite(a)?SA(Math.round(SA(a,b)),-b):a},akc=function(a,b,c){if(!a)return a;b=b-Xjc(a)-1;return b<-c?
ckc(a,-c):ckc(a,b)};var dkc=new RA(3);var ekc=new yd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new yd("mat-progress-bar-location",{providedIn:"root",factory:Ata});
var TA=function(){var a=this;this._elementRef=n(ff);this._ngZone=n(ph);this._changeDetectorRef=n(qv);this._renderer=n(jv);this._isNoopAnimation=Hi();this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new hv;this._mode="determinate";this._transitionendHandler=function(c){a.animationEnd.observers.length!==0&&c.target&&c.target.classList.contains("mdc-linear-progress__primary-bar")&&(a.mode!=="determinate"&&a.mode!=="buffer"||a._ngZone.run(function(){return a.animationEnd.next({value:a.value})}))};
var b=n(ekc,{optional:!0});b&&(b.color&&(this.color=this._defaultColor=b.color),this.mode=b.mode||this.mode)};g=TA.prototype;g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._cleanupTransitionEnd=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._transitionendHandler)})};g.ngOnDestroy=function(){var a;(a=this._cleanupTransitionEnd)==null||a.call(this)};
g._getPrimaryBarTransform=function(){return"scaleX("+(this._isIndeterminate()?1:this.value/100)+")"};g._getBufferBarFlexBasis=function(){return(this.mode==="buffer"?this.bufferValue:100)+"%"};g._isIndeterminate=function(){return this.mode==="indeterminate"||this.mode==="query"};
ea.Object.defineProperties(TA.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,a||0));this._changeDetectorRef.markForCheck()}},bufferValue:{configurable:!0,enumerable:!0,get:function(){return this._bufferValue||0},set:function(a){this._bufferValue=Math.max(0,Math.min(100,a||0));this._changeDetectorRef.markForCheck()}},
mode:{configurable:!0,enumerable:!0,get:function(){return this._mode},set:function(a){this._mode=a;this._changeDetectorRef.markForCheck()}}});TA.\u0275fac=function(a){return new (a||TA)};
TA.\u0275cmp=B({type:TA,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(a,b){a&2&&(ng("aria-valuenow",b._isIndeterminate()?null:b.value)("mode",b.mode),xg("mat-"+b.color),wg("_mat-animation-noopable",b._isNoopAnimation)("mdc-linear-progress--animation-ready",!b._isNoopAnimation)("mdc-linear-progress--indeterminate",b._isIndeterminate()))},inputs:{color:"color",
value:[2,"value","value",Eh],bufferValue:[2,"bufferValue","bufferValue",Eh],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],
template:function(a,b){a&1&&(I(0,"div",0),K(1,"div",1),E(2,zta,1,0,"div",2),J(),I(3,"div",3),K(4,"span",4),J(),I(5,"div",5),K(6,"span",4),J());a&2&&(z(),vg("flex-basis",b._getBufferBarFlexBasis()),z(),F(b.mode==="buffer"?2:-1),z(),vg("transform",b._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],
encapsulation:2,changeDetection:0});var UA=function(){};UA.\u0275fac=function(a){return new (a||UA)};UA.\u0275mod=Jf({type:UA});UA.\u0275inj=Tc({imports:[zx]});var VA=function(a,b){var c=this;this.options=a;this.progressbar=b;this.destroyed=new bg;this.labelElement=document.createElement("label");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-bar-accessible-label");yta(b._elementRef.nativeElement).pipe(gg(this.destroyed)).subscribe(function(d){c.writeLabelSpan(d[0],d[1])})};VA.prototype.ngOnInit=function(){this.initializeLabelSpan()};
VA.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};VA.prototype.initializeLabelSpan=function(){this.progressbar._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressbar._elementRef.nativeElement.getAttribute("aria-label");this.writeLabelSpan(a!=null?a:"",this.progressbar.mode==="indeterminate"||this.progressbar.mode==="query"?"indeterminate":this.progressbar.value.toString())};
VA.prototype.writeLabelSpan=function(a,b){a=b==="indeterminate"?a:a+" "+dkc.format(Number(b)/100);this.labelElement.textContent=a};VA.\u0275fac=function(a){return new (a||VA)(zf(Njc),zf(TA,10))};VA.\u0275dir=Kf({type:VA,selectors:[["mat-progress-bar"]],hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&2&&(ng("tabindex",null),wg("gmat-mdc-progress-bar",!b.options.disableGmatStyle))},standalone:!1});var WA=function(){vx.apply(this,arguments)};Y(WA,vx);WA.\u0275fac=function(){var a;return function(b){return(a||(a=fe(WA)))(b||WA)}}();WA.\u0275prov=Sc({token:WA,factory:WA.\u0275fac,providedIn:"root"});var XA=function(){this.overlayDelegate=n(WA);this.gmatPanelClasses=[];this.scrollStrategies=this.overlayDelegate.scrollStrategies};XA.prototype.appendGmatPanelClass=function(a){this.gmatPanelClasses.includes(a)||this.gmatPanelClasses.push(a)};
XA.prototype.create=function(a){return this.overlayDelegate.create(Object.assign({},a,{panelClass:(a==null?0:a.panelClass)?yi(a.panelClass).concat(this.gmatPanelClasses):this.gmatPanelClasses}))};XA.prototype.position=function(){return this.overlayDelegate.position()};XA.\u0275fac=function(a){return new (a||XA)};XA.\u0275prov=Sc({token:XA,factory:XA.\u0275fac});var fkc=new yd("GMAT_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var YA=function(){n(fkc).disableGmatStyle||n(XA).appendGmatPanelClass("gmat-mdc-tooltip")};YA.\u0275fac=function(a){return new (a||YA)};YA.\u0275dir=Kf({type:YA,selectors:[["","matTooltip",""]],features:[hh([XA,{provide:vx,useExisting:XA}])]});var ZA=function(a){this.options=a;this.nextRequestId=0;this.destroyed=!1};ZA.prototype.call=function(a,b,c){var d=this,e,f,h;return w(function(k){if(d.destroyed)throw Error("Qb");f={type:"request",method:a,id:d.nextRequestId++,payload:b,recipientId:(e=d.options)==null?void 0:e.recipientId};return((h=c)==null?0:h.deadlineMillis)?k.return(Promise.race([d.sendMessage(f),Bta(c.deadlineMillis)])):k.return(d.sendMessage(f))})};
ZA.prototype.sendMessage=function(a){var b=this,c,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:return((d=b.options)==null?0:d.tabId)?x(q,chrome.tabs.sendMessage(b.options.tabId,a,{frameId:(h=(f=b.options)==null?void 0:f.frameId)!=null?h:0}),5):x(q,chrome.runtime.sendMessage((e=b.options)==null?void 0:e.extensionId,a),4);case 4:c=q.yieldResult;q.jumpTo(3);break;case 5:c=q.yieldResult;case 3:if(c===void 0?0:c.id===a.id&&c.method===a.method){if(c.status==="ok")return q.return(c.payload);
throw Error("Rb`"+String(c.method)+"`"+c.error);}k=void 0;try{k=JSON.stringify(c)}catch(u){}throw Error("Sb`"+(k||c));}})};ZA.prototype.destroy=function(){this.destroyed=!0};var Cta;var gkc=function(a,b){this.url=a;this.svgText=null;this.options=b},$A=function(a,b,c,d){this._httpClient=a;this._sanitizer=b;this._errorHandler=d;this._svgIconConfigs=new Map;this._iconSetConfigs=new Map;this._cachedIconsByUrl=new Map;this._inProgressUrlFetches=new Map;this._fontCssClassesByAlias=new Map;this._resolvers=[];this._defaultFontSetClass=["material-icons","mat-ligature-font"];this._document=c},hkc=function(a,b){return a._fontCssClassesByAlias.get(b)||b},ikc=function(a,b,c){c=c===void 0?
"":c;var d=c+":"+b,e=a._svgIconConfigs.get(d);return e?a._getSvgFromConfig(e):(e=a._getIconConfigFromResolvers(c,b))?(a._svgIconConfigs.set(d,e),a._getSvgFromConfig(e)):(c=a._iconSetConfigs.get(c))?a._getSvgFromIconSetConfigs(b,c):De(Error("Tb`"+d))};g=$A.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?Ce(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(y(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return Ce(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(Pf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return Ce(null)}))});return Pe(d).pipe(y(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Tb`"+a);return e}))};
g._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];if(d.svgText&&d.svgText.toString().indexOf(a)>-1){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};g._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(hg(function(c){return a.svgText=c}),y(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?Ce(null):this._fetchIcon(a).pipe(hg(function(b){return a.svgText=b}))};
g._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if(a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,c);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(Eta("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
g._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("Wb");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(Eta("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;f!=="id"&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
g._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
g._fetchIcon=function(a){var b=this,c=a.url,d,e;a=(e=(d=a.options)==null?void 0:d.withCredentials)!=null?e:!1;if(!this._httpClient)throw Error("Ub");if(c==null)throw Error("Xb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Vb`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(y(function(h){return Eta(h)}),Yf(function(){return b._inProgressUrlFetches.delete(f)}),Zja());this._inProgressUrlFetches.set(f,c);return c};
g._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};g._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};g._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
g._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new gkc(d.url,d.options):new gkc(d)}};$A.\u0275fac=function(a){return new (a||$A)(nd(kA,8),nd(pA),nd(Ei,8),nd(xf))};$A.\u0275prov=Sc({token:$A,factory:$A.\u0275fac,providedIn:"root"});new Wu;new Xu;new Wu;new Wu;var jkc=new yd("MAT_ICON_DEFAULT_OPTIONS"),kkc=new yd("mat-icon-location",{providedIn:"root",factory:Fta}),lkc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),mkc=lkc.map(function(a){return"["+a+"]"}).join(", "),nkc=/^url\(['"]?#(.*?)['"]?\)$/,aB=function(){this._elementRef=n(ff);this._iconRegistry=n($A);this._location=n(kkc);this._errorHandler=n(xf);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=ke.EMPTY;var a=
n(new Vu("aria-hidden"),{optional:!0}),b=n(jkc,{optional:!0});b&&(b.color&&(this.color=this._defaultColor=b.color),b.fontSet&&(this.fontSet=b.fontSet));a||this._elementRef.nativeElement.setAttribute("aria-hidden","true")};g=aB.prototype;g._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("Yb`"+a);}};g.ngOnInit=function(){this._updateFontIconClasses()};
g.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};g.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};g._usingFontIcon=function(){return!this.svgIcon};
g._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};g._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];c.nodeType===1&&c.nodeName.toLowerCase()!=="svg"||c.remove()}};
g._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?hkc(this._iconRegistry,this.fontSet).split(/ +/):this._iconRegistry._defaultFontSetClass).filter(function(c){return c.length>0});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon===this._previousFontIconClass||b.includes("mat-ligature-font")||(this._previousFontIconClass&&
a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};g._cleanupFontValue=function(a){return typeof a==="string"?a.trim().split(" ")[0]:a};g._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
g._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(mkc),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$648:0};a.i$jscomp$648<b.length;a={i$jscomp$648:a.i$jscomp$648},a.i$jscomp$648++)lkc.forEach(function(d){return function(e){var f=b[d.i$jscomp$648],h=f.getAttribute(e);if(h=h?h.match(nkc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:h[1]})}}}(a))};
g._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=l(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=ikc(this._iconRegistry,d,c).pipe(Uf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Zb`"+c+"`"+d+"`"+e.message))})}};
ea.Object.defineProperties(aB.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=a}},svgIcon:{configurable:!0,enumerable:!0,get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},fontSet:{configurable:!0,enumerable:!0,get:function(){return this._fontSet},set:function(a){a=this._cleanupFontValue(a);a!==this._fontSet&&(this._fontSet=
a,this._updateFontIconClasses())}},fontIcon:{configurable:!0,enumerable:!0,get:function(){return this._fontIcon},set:function(a){a=this._cleanupFontValue(a);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}}});aB.\u0275fac=function(a){return new (a||aB)};
aB.\u0275cmp=B({type:aB,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,b){a&2&&(ng("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet)("fontIcon",b._usingFontIcon()?b.fontIcon:null),xg(b.color?"mat-"+b.color:""),wg("mat-icon-inline",b.inline)("mat-icon-no-color",b.color!=="primary"&&b.color!=="accent"&&b.color!=="warn"))},inputs:{color:"color",
inline:[2,"inline","inline",Dh],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],
encapsulation:2,changeDetection:0});var okc=["tooltip"],pkc=new yd("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}}),qkc={provide:pkc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},rkc=new yd("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),skc=ui({passive:!0}),cB=function(){this._elementRef=
n(ff);this._ngZone=n(ph);this._platform=n(ew);this._ariaDescriber=n(Bw);this._focusMonitor=n(gw);this._dir=n(Qw);this._injector=n(Ze);this._viewContainerRef=n(Ug);this._animationsDisabled=Hi();this._defaultOptions=n(rkc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=bB;this._viewportMargin=8;this._cssClassPrefix="mat-mdc";this._dirSubscribed=!1;this.touchGestures="auto";this._message="";
this._passiveListeners=[];this._touchstartTimeout=null;this._destroyed=new bg;this._isDestroyed=!1;var a=this._defaultOptions;a&&(this._showDelay=a.showDelay,this._hideDelay=a.hideDelay,a.position&&(this.position=a.position),a.positionAtOrigin&&(this.positionAtOrigin=a.positionAtOrigin),a.touchGestures&&(this.touchGestures=a.touchGestures),a.tooltipClass&&(this.tooltipClass=a.tooltipClass));this._viewportMargin=8};g=cB.prototype;
g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(gg(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,skc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;Cw(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new ox(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(gg(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};g.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};g.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof ff)return this._overlayRef;this._detach()}var d=Fcc(this._injector.get(Xw),this._elementRef);c=this._injector.get(vx);a=Pcc(ix(jx(Tcc(mx(c.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),d);a.positionChanges.pipe(gg(this._destroyed)).subscribe(function(f){b._updateCurrentPositionClass(f.connectionPair);
b._tooltipInstance&&f.scrollableViewProperties.isOverlayClipped&&b._tooltipInstance.isVisible()&&b._ngZone.run(function(){return b.hide(0)})});this._overlayRef=c.create({direction:this._dir,positionStrategy:a,panelClass:this._cssClassPrefix+"-tooltip-panel",scrollStrategy:this._injector.get(pkc)(),disableAnimations:this._animationsDisabled});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(gg(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(gg(this._destroyed)).subscribe(function(){var f;
return(f=b._tooltipInstance)==null?void 0:f._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(gg(this._destroyed)).subscribe(function(f){b._isTooltipVisible()&&f.keyCode===27&&!ri(f)&&(f.preventDefault(),f.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var e;((e=this._defaultOptions)==null?0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+"-tooltip-panel-non-interactive");this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(gg(this._destroyed)).subscribe(function(){b._overlayRef&&
b._updatePosition(b._overlayRef)}));return this._overlayRef};g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();hx(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};
g._addOffset=function(a){var b=!this._dir||this._dir.value=="ltr";a.originY==="top"?a.offsetY=-8:a.originY==="bottom"?a.offsetY=8:a.originX==="start"?a.offsetX=b?-8:8:a.originX==="end"&&(a.offsetX=b?8:-8);return a};
g._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),$e(function(){a._tooltipInstance&&a._overlayRef.updatePosition()},{injector:this._injector}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);var e,f;a._touchstartTimeout=setTimeout(function(){a._touchstartTimeout=null;a.show(void 0,d)},(f=(e=a._defaultOptions)==null?void 0:e.touchLongPressShowDelay)!=null?f:500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);
var d;a.hide((d=a._defaultOptions)==null?void 0:d.touchendHideDelay)};b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,p(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,skc)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(Ei).elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
g._syncAriaDescription=function(a){var b=this;this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,Cw(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||$e({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&mcc(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
ea.Object.defineProperties(cB.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){if(a!==this._position&&(this._position=a,this._overlayRef)){this._updatePosition(this._overlayRef);var b;(b=this._tooltipInstance)==null||b.show(0);this._overlayRef.updatePosition()}}},positionAtOrigin:{configurable:!0,enumerable:!0,get:function(){return this._positionAtOrigin},set:function(a){this._positionAtOrigin=zi(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=zi(a);this._disabled!==a&&((this._disabled=a)?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Ci(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Ci(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=
this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this._message;this._message=a!=null?String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage());this._syncAriaDescription(b)}},tooltipClass:{configurable:!0,enumerable:!0,get:function(){return this._tooltipClass},set:function(a){this._tooltipClass=a;this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}});
cB.\u0275fac=function(a){return new (a||cB)};
cB.\u0275dir=Kf({type:cB,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-tooltip-disabled",b.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],
message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]});var bB=function(){this._changeDetectorRef=n(qv);this._elementRef=n(ff);this._isMultiline=!1;this._animationsDisabled=Hi();this._isVisible=this._closeOnInteraction=!1;this._onHide=new bg;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};g=bB.prototype;
g.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};g.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.afterHidden=function(){return this._onHide};g.isVisible=function(){return this._isVisible};
g.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};g._onShow=function(){this._isMultiline=this._isTooltipMultiline();this._markForCheck()};
g._isTooltipMultiline=function(){var a=this._elementRef.nativeElement.getBoundingClientRect();return a.height>24&&a.width>=200};g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};g._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};
g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);this._isVisible!==a&&(this._isVisible=a,this._changeDetectorRef.markForCheck());a&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&
(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};bB.\u0275fac=function(a){return new (a||bB)};
bB.\u0275cmp=B({type:bB,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Wg(okc,7);if(a&2){var c;$g(c=ah())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(a,b){a&1&&M("mouseleave",function(c){return b._handleMouseLeave(c)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1,0);M("animationend",
function(d){t(c);return v(b._handleAnimationEnd(d))});I(2,"div",2);Q(3);J()()}a&2&&(wg("mdc-tooltip--multiline",b._isMultiline),D("ngClass",b.tooltipClass),z(3),ch(b.message))},dependencies:[Mv],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],
encapsulation:2,changeDetection:0});var tkc=["container"],ukc=["inputBox"],vkc=["dropdownTemplate"],Jta=function(a){return{$implicit:a}},wkc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],dB=function(){Z.apply(this,arguments);this.overlay=n(vx);this.viewContainerRef=n(Ug);this.extensionClient=n(ZA);this.suggestedIssueMetadataList=null;this.initialTitleValue=void 0;this.title="";this.suggestionSelected=new LA;this.titleChanged=new LA;this.titleBlur=
new LA;this.isDropdownOpen=!1;this.selectedSuggestion$=new tj(void 0)};Y(dB,Z);dB.\u0275dir=Z.\u0275dir;dB.prototype.ngOnInit=function(){var a=this;xkc(this);this.selectedSuggestion$.pipe(gg(this.destroyed$)).subscribe(function(b){var c;a.inputBox.nativeElement.value=(c=b==null?void 0:b.title)!=null?c:"";b&&a.suggestionSelected.emit(b);a.close()},function(){})};dB.prototype.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
var xkc=function(a){ykc(a).then(function(b){a.suggestedIssueMetadataList=[];b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.suggestedIssueMetadataList.push({key:c.key,title:c.suggestedIssue.title,description:c.suggestedIssue.description,assignee:c.suggestedIssue.assignee,ccs:c.suggestedIssue.cc,collaborators:c.suggestedIssue.collaborators,sourceContext:c.sourceContext.sourceExplanation})})},ykc=function(a){return a.extensionClient.call("GET_IN_PAGE_SUGGESTIONS",{contextType:"BUGANIZER_NEW_ISSUE"},
{deadlineMillis:5E3}).then(function(b){return b.suggestions?[].concat(p(b.suggestions)):[]}).then(function(b){return b.filter(function(c){return c.type==="BUGANIZER_NEW_ISSUE_SUGGESTION"&&c.suggestedIssue})}).catch(function(b){console.error("Found error calling the extension: ",b);return[]})},Kta=function(a,b){if(!b)return[];var c=a.title.toLowerCase().trim();return c===(a.initialTitle?a.initialTitle:"").toLowerCase().trim()?b:b.filter(function(d){return d.title.toLowerCase().includes(c)})};
dB.prototype.clearTitle=function(){this.selectedSuggestion$.next(void 0);this.inputBox.nativeElement.focus()};dB.prototype.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};dB.prototype.close=function(){this.isDropdownOpen&&this.dropdownOverlayRef&&(this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0)};
var zkc=function(a){var b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,Zi(0),2);b=document.getElementsByClassName("b-title-suggestion-picker-dropdown")[0];d=(c=b)==null?void 0:c.contains(document.activeElement);e=a.inputBox.nativeElement.contains(document.activeElement);d||e||a.close();a.titleBlur.emit();ze(f)})};
dB.prototype.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new ex({positionStrategy:a,scrollStrategy:b,panelClass:["b-title-suggestion-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};dB.prototype.attach=function(){var a=new px(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
dB.prototype.getPositionStrategy=function(){return hx(Rcc(jx(mx(this.overlay.position(),this.container),!1),!1),wkc)};dB.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};ea.Object.defineProperties(dB.prototype,{initialTitle:{configurable:!0,enumerable:!0,set:function(a){this.initialTitleValue||(this.initialTitleValue=a)},get:function(){return this.initialTitleValue}}});dB.\u0275fac=function(){var a;return function(b){return(a||(a=fe(dB)))(b||dB)}}();
dB.\u0275cmp=B({type:dB,selectors:[["b-title-suggestion-picker"]],viewQuery:function(a,b){a&1&&(Wg(tkc,7),Wg(ukc,7),Wg(vkc,7));if(a&2){var c;$g(c=ah())&&(b.container=c.first);$g(c=ah())&&(b.inputBox=c.first);$g(c=ah())&&(b.dropdownTemplateRef=c.first)}},inputs:{initialTitle:"initialTitle"},outputs:{suggestionSelected:"suggestionSelected",titleChanged:"titleChanged",titleBlur:"titleBlur"},standalone:!1,features:[kg],decls:9,vars:3,consts:[["container",""],["inputBox",""],["dropdownTemplate",""],["suggestionList",
""],["dropdown",""],[1,"container","pseudo-input"],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-label","Pick a suggestion to fill the title and other fields or type a title manually.","aria-autocomplete","list","required","true",1,"override",3,"ngModelChange","click","blur","ngModel"],[1,"dropdown"],[1,"progress-bar-container"],[1,"suggestion-container"],["mode","indeterminate"],[1,"title"],["svgIcon","auto_fix_normal_24px",1,"icon-s","margin-xs-right","color-text"],
"type;button;format;hairline;mat-icon-button;;matTooltip;Clear title;aria-label;Clear title".split(";"),[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","format","hairline","mat-icon-button","","matTooltip","Clear title","aria-label","Clear title",3,"click"],["svgIcon","clear"],["role","listbox",1,"suggestion-list"],["role","option","tabindex","0",1,"list-option"],["role","option","tabindex","0",1,"list-option",3,"click"],[1,"suggested-title"],[1,"source-context"],[1,"start-draft"],
[1,"empty-list"]],template:function(a,b){if(a&1){var c=r();I(0,"div",5,0)(2,"input",6,1);S(4,"async");M("ngModelChange",function(f){t(c);b.titleChanged.emit(f);b.title=f;return v()})("click",function(){t(c);return v(b.open())})("blur",function(){t(c);return v(zkc(b))});J()();C(5,Mta,4,2,"ng-template",null,2,nh)(7,Rta,2,1,"ng-template",null,3,nh)}if(a&2){var d;z(2);var e;D("ngModel",(e=(d=T(4,1,b.selectedSuggestion$))==null?null:d.title)!=null?e:b.initialTitle)}},dependencies:[Pv,aB,PA,Ux,YA,cB,VA,
TA,Li,oy,Gy,vy,Qv],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%}.suggestion-container[_ngcontent-%COMP%]{width:100%;max-height:600px;overflow:auto;margin:.8rem 0}.suggestion-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;display:flex;align-items:center;margin-bottom:10px;padding:0 16px}.suggestion-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.suggestion-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;left:5px}.suggestion-container[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:5px 16px}.suggestion-container[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]   .suggested-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;margin-bottom:6px;word-break:break-all}.suggestion-container[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]   .source-context[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.65rem}.suggestion-container[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]   .start-draft[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary);border:1px solid;border-color:#dadce0;border-color:var(--divider);display:flex;align-items:center;justify-content:center;border-radius:4px;background:rgba(0,0,0,0);height:20px;flex:0 0 100px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.empty-list[_ngcontent-%COMP%]{padding:4px 18px}  .b-title-suggestion-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}"],
changeDetection:0});var Akc={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Yya={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Bkc={},$ya=(Bkc.ACCESS_LEVEL_UNSPECIFIED=0,Bkc.INTERNAL=1,Bkc.EXTERNAL_PARTNER=2,Bkc.EXTERNAL_PUBLIC=3,Bkc),Ckc={},MDa=(Ckc.ACTION_TYPE_UNSPECIFIED=0,Ckc.ADD=1,Ckc.REMOVE=2,Ckc),aHa={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},mxa={0:"CHANGELIST_SIGNAL_UNSPECIFIED",
1:"THREAD_MENTIONS_ME",2:"IDLE_FOR_HOURS",3:"AUTHOR_GOING_OOO",4:"NEEDS_ATTENTION",5:"NUDGED",6:"READY_TO_SUBMIT",7:"CHANGELIST_MANUAL_SIGNAL",8:"CHANGELIST_SNOOZE_EXPIRED"},eB={},dxa=(eB.CHANGELIST_SIGNAL_UNSPECIFIED=0,eB.THREAD_MENTIONS_ME=1,eB.IDLE_FOR_HOURS=2,eB.AUTHOR_GOING_OOO=3,eB.NEEDS_ATTENTION=4,eB.NUDGED=5,eB.READY_TO_SUBMIT=6,eB.CHANGELIST_MANUAL_SIGNAL=7,eB.CHANGELIST_SNOOZE_EXPIRED=8,eB),eHa={0:"CHANGELIST_SIGNAL_UNSPECIFIED",1:"THREAD_MENTIONS_ME",2:"IDLE_FOR_HOURS",3:"AUTHOR_GOING_OOO",
4:"NEEDS_ATTENTION",5:"NUDGED",6:"READY_TO_SUBMIT",7:"CHANGELIST_MANUAL_SIGNAL",8:"CHANGELIST_SNOOZE_EXPIRED"},fB={},xHa=(fB.CHANGELIST_SIGNAL_UNSPECIFIED=0,fB.THREAD_MENTIONS_ME=1,fB.IDLE_FOR_HOURS=2,fB.AUTHOR_GOING_OOO=3,fB.NEEDS_ATTENTION=4,fB.NUDGED=5,fB.READY_TO_SUBMIT=6,fB.CHANGELIST_MANUAL_SIGNAL=7,fB.CHANGELIST_SNOOZE_EXPIRED=8,fB),Mva={COMMENT_FORMATTING_MODE_UNSPECIFIED:"COMMENT_FORMATTING_MODE_UNSPECIFIED",PLAIN_FORMATTING_MODE:"PLAIN_FORMATTING_MODE",MARKDOWN_FORMATTING_MODE:"MARKDOWN_FORMATTING_MODE",
LITERAL_FORMATTING_MODE:"LITERAL_FORMATTING_MODE"},owa={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},Dkc={},Lwa=(Dkc.COMMENT_FORMATTING_MODE_UNSPECIFIED=0,Dkc.PLAIN_FORMATTING_MODE=1,Dkc.MARKDOWN_FORMATTING_MODE=2,Dkc.LITERAL_FORMATTING_MODE=3,Dkc),zFa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},gB={},Ekc=(gB.CONFIDENCE_LEVEL_UNSPECIFIED=0,gB.VERY_HIGH=1,gB.HIGH=2,gB.MEDIUM=3,gB.LOW=4,gB),
Fkc={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},cAa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},Gkc={},eAa=(Gkc.DAY_TYPE_UNSPECIFIED=0,Gkc.CALENDAR=1,Gkc.BUSINESS=2,Gkc),CAa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},hB={},JAa=(hB.DELETION_REASON_UNSPECIFIED=0,hB.USER_REQUEST=1,hB.ABUSE=2,hB.RESTRICTED=3,hB.RETENTION=4,hB.ACCOUNT_CAPABILITIES=5,hB),Hkc={COMFORTABLE:"COMFORTABLE",
COZY:"COZY",COMPACT:"COMPACT"},awa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Ikc={},Iwa=(Ikc.COMFORTABLE=1,Ikc.COZY=2,Ikc.COMPACT=3,Ikc),OHa={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},YGa={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},kxa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},iB={},$wa=(iB.DRIVE_SIGNAL_UNSPECIFIED=
0,iB.TAGGED_IN_COMMENT=1,iB.REQUIRES_APPROVAL=2,iB.COMMENTS_REQUIRE_ATTENTION=3,iB.DRIVE_MANUAL_SIGNAL=4,iB.DRIVE_SNOOZE_EXPIRED=5,iB),cHa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},jB={},vHa=(jB.DRIVE_SIGNAL_UNSPECIFIED=0,jB.TAGGED_IN_COMMENT=1,jB.REQUIRES_APPROVAL=2,jB.COMMENTS_REQUIRE_ATTENTION=3,jB.DRIVE_MANUAL_SIGNAL=4,jB.DRIVE_SNOOZE_EXPIRED=5,jB),Eza={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",
1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},kB={},Iza=(kB.EDIT_SIGNIFICANCE_UNSPECIFIED=0,kB.SILENT=1,kB.MINOR=2,kB.MAJOR=3,kB.BULK=4,kB.CLOSING=5,kB),ol={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},lB={},Tl=(lB.UNKNOWN_PRIORITY=0,lB.CLOSURE_ONLY=4,lB.MINIMAL=1,lB.IMPORTANT=2,lB.ALL=3,lB),Jkc={ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED:"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",THUMBS_UP:"THUMBS_UP",THUMBS_DOWN:"THUMBS_DOWN",OPEN:"OPEN",CLOSE:"CLOSE",COPY:"COPY",CLOSE_AS_DUPLICATE:"CLOSE_AS_DUPLICATE",
ISSUE_HOVERCARD:"ISSUE_HOVERCARD",GO_TO_ISSUE:"GO_TO_ISSUE",DELETE:"DELETE"},mB={},rBa=(mB.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,mB.THUMBS_UP=1,mB.THUMBS_DOWN=2,mB.OPEN=3,mB.CLOSE=4,mB.COPY=5,mB.CLOSE_AS_DUPLICATE=6,mB.ISSUE_HOVERCARD=7,mB.GO_TO_ISSUE=8,mB.DELETE=9,mB),$va={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Kkc={},Hwa=(Kkc.DEFAULT=0,Kkc.ASSIGNMENT=1,Kkc.RESPONSE=2,Kkc.CLOSURE=3,Kkc),Lkc={},hEa=(Lkc.QUERY_UNSPECIFIED=0,Lkc.QUERY_TRIAGE_PHASE=1,Lkc.QUERY_CLUSTER=2,Lkc),Mkc={},kEa=
(Mkc.SORT_UNSPECIFIED=0,Mkc.SORT_TRIAGE_PHASE=1,Mkc),GBb={0:"ISSUE_LABEL_FIELD_UNSPECIFIED",1:"ID",2:"BLOCKING_ID",3:"BLOCKED_BY_ID",4:"CANONICAL_ID",5:"PARENT_ID",6:"INCOMING_DEPENDENCY_ID",7:"LINKED_ID",8:"HOTLIST_ID",9:"SAVED_SEARCH_ID",10:"COMPONENT_ID",11:"TEAM_ID",12:"REPORTER",13:"ASSIGNEE",14:"CC",15:"VERIFIER",16:"MODIFIER",17:"LAST_MODIFIER",18:"COMMENTER",19:"LAST_COMMENTER",20:"PRIORITY",21:"SEVERITY",22:"TYPE",23:"STATUS",24:"DELETION_REASON",25:"TITLE",26:"COMMENT",27:"ATTACHMENT",28:"CL",
29:"POSTMORTEM",30:"FOUND_IN",31:"TARGETED_TO",32:"VERIFIED_IN",33:"CREATED",34:"MODIFIED",35:"RESOLVED",36:"VERIFIED",37:"DELETION_TIME",38:"IN_PROD",39:"STAR",40:"MUTE",41:"IS_DELETED",42:"CUSTOM_FIELD",43:"DUPLICATE_COUNT",44:"VOTE_COUNT",45:"COMMENT_COUNT",46:"CC_COUNT",47:"ARCHIVED",48:"MIN_SLO_TARGET",49:"EFFORT_LABEL",50:"EFFORT_VALUE",51:"MENTION",52:"VOTE",53:"EFFORT_TOTAL_OPEN",54:"EFFORT_TOTAL_COMPLETE",55:"COLLABORATOR",56:"COLLABORATOR_COUNT",57:"TRACKER_ID",58:"ACCESS_LEVEL",59:"DESCENDANT_COUNT",
60:"OPEN_DESCENDANT_COUNT",61:"ONE_DAY_VIEW_COUNT",62:"SEVEN_DAY_VIEW_COUNT",63:"THIRTY_DAY_VIEW_COUNT",64:"STAFFING_USER",65:"STAFFING_USER_COUNT",66:"STAFFING_PLACEHOLDER",67:"STAFFING_PLACEHOLDER_COUNT",68:"ESCALATION_OWNER"},qCa={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},Nkc={},Okc=(Nkc.FIELD_ORDERING_UNSPECIFIED=0,Nkc.INHERITED=1,Nkc.CUSTOMIZED=2,Nkc),Pkc={FIELD_STATE_UNSPECIFIED:"FIELD_STATE_UNSPECIFIED",INHERIT:"INHERIT",DISABLED:"DISABLED",ENABLED:"ENABLED"},cCa={0:"FIELD_STATE_UNSPECIFIED",
1:"INHERIT",2:"DISABLED",3:"ENABLED"},Qkc={},Rkc=(Qkc.FIELD_STATE_UNSPECIFIED=0,Qkc.INHERIT=1,Qkc.DISABLED=2,Qkc.ENABLED=3,Qkc),Skc={},Tkc=(Skc.UNSPECIFIED_FORMATTING_AUDIENCE=0,Skc.INTERNAL=1,Skc.EXTERNAL=2,Skc),Yk={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},yCa={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},lxa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",
3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},nB={},bxa=(nB.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,nB.GERRIT_CHANGE_NEEDS_ATTENTION=1,nB.GERRIT_CHANGE_READY_TO_SUBMIT=2,nB.GERRIT_MANUAL_SIGNAL=3,nB.GERRIT_SNOOZE_EXPIRED=4,nB),nHa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},oB={},zHa=(oB.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,oB.GERRIT_CHANGE_NEEDS_ATTENTION=1,oB.GERRIT_CHANGE_READY_TO_SUBMIT=
2,oB.GERRIT_MANUAL_SIGNAL=3,oB.GERRIT_SNOOZE_EXPIRED=4,oB),nxa={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",3:"GOOGLE_TASKS_MANUAL_SIGNAL",4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},pB={},fxa=(pB.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,pB.DUE_SOON=1,pB.DUE_DATE_EXPIRED=2,pB.GOOGLE_TASKS_MANUAL_SIGNAL=3,pB.GOOGLE_TASKS_SNOOZE_EXPIRED=4,pB),oxa={0:"IRM_SIGNAL_UNSPECIFIED",1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},qB={},hxa=(qB.IRM_SIGNAL_UNSPECIFIED=
0,qB.IRM_MANUAL_SIGNAL=1,qB.IRM_SNOOZE_EXPIRED=2,qB.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,qB.IRM_REVIEW_POSTMORTEM=4,qB),Ukc={ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",
RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",ESCALATION_OWNER:"ESCALATION_OWNER",CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",
LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE",ACCESS_LEVEL:"ACCESS_LEVEL",DESCENDANT_COUNT:"DESCENDANT_COUNT",OPEN_DESCENDANT_COUNT:"OPEN_DESCENDANT_COUNT",ONE_DAY_VIEW_COUNT:"ONE_DAY_VIEW_COUNT",SEVEN_DAY_VIEW_COUNT:"SEVEN_DAY_VIEW_COUNT",THIRTY_DAY_VIEW_COUNT:"THIRTY_DAY_VIEW_COUNT",
RELATIVE_MODIFIED_TIME:"RELATIVE_MODIFIED_TIME",ALERTS:"ALERTS",TIMEFRAME:"TIMEFRAME",PROGRESS:"PROGRESS",TRIAGER:"TRIAGER",ENRICHMENT_CATEGORIES:"ENRICHMENT_CATEGORIES"},nwa={1:"ISSUE_ID",2:"COMPONENT_PATH",3:"TYPE",4:"STATUS",5:"PRIORITY",6:"SEVERITY",7:"REPORTER",8:"ASSIGNEE",9:"VERIFIER",10:"CC",43:"COLLABORATOR",11:"CHANGELIST",32:"POSTMORTEM",12:"BLOCKING_ISSUE_ID",13:"BLOCKED_BY_ISSUE_ID",14:"CREATED_TIME",15:"MODIFIED_TIME",16:"RESOLVED_TIME",17:"VERIFIED_TIME",38:"DELETION_TIME",18:"TITLE",
19:"FOUND_IN_VERSION",20:"TARGETED_TO_VERSION",21:"VERIFIED_IN_VERSION",22:"IN_PROD",23:"CANONICAL_ISSUE_ID",51:"ESCALATION_OWNER",24:"CUSTOM_FIELD",25:"POSITION",26:"VOTE_COUNT",27:"DUPLICATE_COUNT",28:"CC_COUNT",44:"COLLABORATOR_COUNT",29:"MODIFIED_BY",30:"LAST_MODIFIER",31:"ARCHIVED",33:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE",45:"ACCESS_LEVEL",46:"DESCENDANT_COUNT",47:"OPEN_DESCENDANT_COUNT",
48:"ONE_DAY_VIEW_COUNT",49:"SEVEN_DAY_VIEW_COUNT",50:"THIRTY_DAY_VIEW_COUNT",52:"RELATIVE_MODIFIED_TIME",53:"ALERTS",54:"TIMEFRAME",55:"PROGRESS",56:"TRIAGER",57:"ENRICHMENT_CATEGORIES"},rB={},Swa=(rB.ISSUE_ID=1,rB.COMPONENT_PATH=2,rB.TYPE=3,rB.STATUS=4,rB.PRIORITY=5,rB.SEVERITY=6,rB.REPORTER=7,rB.ASSIGNEE=8,rB.VERIFIER=9,rB.CC=10,rB.COLLABORATOR=43,rB.CHANGELIST=11,rB.POSTMORTEM=32,rB.BLOCKING_ISSUE_ID=12,rB.BLOCKED_BY_ISSUE_ID=13,rB.CREATED_TIME=14,rB.MODIFIED_TIME=15,rB.RESOLVED_TIME=16,rB.VERIFIED_TIME=
17,rB.DELETION_TIME=38,rB.TITLE=18,rB.FOUND_IN_VERSION=19,rB.TARGETED_TO_VERSION=20,rB.VERIFIED_IN_VERSION=21,rB.IN_PROD=22,rB.CANONICAL_ISSUE_ID=23,rB.ESCALATION_OWNER=51,rB.CUSTOM_FIELD=24,rB.POSITION=25,rB.VOTE_COUNT=26,rB.DUPLICATE_COUNT=27,rB.CC_COUNT=28,rB.COLLABORATOR_COUNT=44,rB.MODIFIED_BY=29,rB.LAST_MODIFIER=30,rB.ARCHIVED=31,rB.MIN_SLO=33,rB.ASSIGNMENT_SLO=35,rB.RESPONSE_SLO=36,rB.CLOSURE_SLO=37,rB.TEAM=39,rB.ESTIMATE=40,rB.ESTIMATE_TOTAL_OPEN=41,rB.ESTIMATE_TOTAL_COMPLETE=42,rB.ACCESS_LEVEL=
45,rB.DESCENDANT_COUNT=46,rB.OPEN_DESCENDANT_COUNT=47,rB.ONE_DAY_VIEW_COUNT=48,rB.SEVEN_DAY_VIEW_COUNT=49,rB.THIRTY_DAY_VIEW_COUNT=50,rB.RELATIVE_MODIFIED_TIME=52,rB.ALERTS=53,rB.TIMEFRAME=54,rB.PROGRESS=55,rB.TRIAGER=56,rB.ENRICHMENT_CATEGORIES=57,rB),Vkc={},sB=(Vkc.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=0,Vkc.CHILD=1,Vkc.DEPENDENCY=2,Vkc.LINKED=3,Vkc),jxa={0:"ISSUE_SIGNAL_UNSPECIFIED",1:"NEAR_SLO",2:"COMMENT_MENTIONS_ME",8:"MENTIONED_NEEDS_RESPONSE",3:"BLOCKERS_CLOSED",4:"NEWLY_BLOCKING",5:"NEEDS_REPORTER_INPUT",
6:"REPLIED_TO_MENTION",7:"NEWLY_ASSIGNED_TO_ME",9:"ISSUE_MANUALLY_SIGNALED",10:"ISSUE_SNOOZE_EXPIRED",11:"CONFIGURABLE_ALERT"},tB={},Ywa=(tB.ISSUE_SIGNAL_UNSPECIFIED=0,tB.NEAR_SLO=1,tB.COMMENT_MENTIONS_ME=2,tB.MENTIONED_NEEDS_RESPONSE=8,tB.BLOCKERS_CLOSED=3,tB.NEWLY_BLOCKING=4,tB.NEEDS_REPORTER_INPUT=5,tB.REPLIED_TO_MENTION=6,tB.NEWLY_ASSIGNED_TO_ME=7,tB.ISSUE_MANUALLY_SIGNALED=9,tB.ISSUE_SNOOZE_EXPIRED=10,tB.CONFIGURABLE_ALERT=11,tB),jHa={0:"ISSUE_SIGNAL_UNSPECIFIED",1:"NEAR_SLO",2:"COMMENT_MENTIONS_ME",
8:"MENTIONED_NEEDS_RESPONSE",3:"BLOCKERS_CLOSED",4:"NEWLY_BLOCKING",5:"NEEDS_REPORTER_INPUT",6:"REPLIED_TO_MENTION",7:"NEWLY_ASSIGNED_TO_ME",9:"ISSUE_MANUALLY_SIGNALED",10:"ISSUE_SNOOZE_EXPIRED",11:"CONFIGURABLE_ALERT"},uB={},tHa=(uB.ISSUE_SIGNAL_UNSPECIFIED=0,uB.NEAR_SLO=1,uB.COMMENT_MENTIONS_ME=2,uB.MENTIONED_NEEDS_RESPONSE=8,uB.BLOCKERS_CLOSED=3,uB.NEWLY_BLOCKING=4,uB.NEEDS_REPORTER_INPUT=5,uB.REPLIED_TO_MENTION=6,uB.NEWLY_ASSIGNED_TO_ME=7,uB.ISSUE_MANUALLY_SIGNALED=9,uB.ISSUE_SNOOZE_EXPIRED=10,
uB.CONFIGURABLE_ALERT=11,uB),vB={},Wkc=(vB.ISSUE_SUMMARY_FEEDBACK_TYPE_UNSPECIFIED=0,vB.THUMBS_UP=1,vB.THUMBS_DOWN=2,vB.COPY=3,vB.FEEDBACK=4,vB),GEa={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},Xkc={},Ykc=(Xkc.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,Xkc.COMMENTS_SHORT=1,Xkc.COMMENTS_LONG=2,Xkc),FBb={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},Zkc={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",
SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},SAa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},wB={},SDa=(wB.UNKNOWN_SUBSCRIPTION=0,wB.UNSUBSCRIBED=1,wB.SUBSCRIBED_CLOSURE_ONLY=2,wB.SUBSCRIBED_MAJOR_UPDATES=3,wB.SUBSCRIBED_ALL_UPDATES=4,wB),tDa={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},$kc={},oDa=($kc.UNSPECIFIED=0,$kc.ADD=1,$kc.REMOVE=2,$kc),HBb={0:"OPERATOR_UNSPECIFIED",
1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},aRb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},NHa={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},alc={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},wn={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},xB={},GAa=(xB.PRIORITY_UNSPECIFIED=0,xB.P0=1,xB.P1=2,xB.P2=3,xB.P3=4,xB.P4=5,xB),blc={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},clc={},dlc=(clc.REACTION_TYPE_UNSPECIFIED=
0,clc.UPVOTE=1,clc),yB={},elc=(yB.UNSPECIFIED=0,yB.USER_REQUEST=1,yB.ABUSE=2,yB.RESTRICTED=3,yB.RETENTION=4,yB.ACCOUNT_CAPABILITIES=5,yB),zB={},EFa=(zB.REJECTION_REASON_UNSPECIFIED=0,zB.REVERSED=1,zB.SIMILAR=2,zB.NOT_SIMILAR=3,zB.OTHER=4,zB),flc={},pEa=(flc.UNSPECIFIED_RELATION=0,flc.AND=1,flc.OR=2,flc),glc={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},hlc={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",
COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},DAa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},ilc={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},mza={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},jlc={},oza=(jlc.UNSPECIFIED_RETENTION=0,jlc.BUGANIZER_DEFAULT=1,jlc.CUSTOM_PERIOD=2,jlc.INDEFINITE_RETENTION=
3,jlc),lwa={0:"UNSPECIFIED",1:"COMPONENT",2:"TEAM"},klc={},Pwa=(klc.UNSPECIFIED=0,klc.COMPONENT=1,klc.TEAM=2,klc),llc={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},AAa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},AB={},HAa=(AB.SEVERITY_UNSPECIFIED=0,AB.S0=1,AB.S1=2,AB.S2=3,AB.S3=4,AB.S4=5,AB),ABb={0:"SIMPLE_VALUE_TYPE_UNSPECIFIED",1:"TEXT",2:"QUOTED_TEXT",3:"YEAR",4:"MONTH",5:"DAY",6:"HOUR",7:"MINUTE",8:"SECOND",9:"RELATIVE_YEAR",10:"RELATIVE_MONTH",
15:"RELATIVE_WEEK",11:"RELATIVE_DAY",16:"TODAY"},$Qb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},zAa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},BB={},KAa=(BB.SLO_SNOOZE_TYPE_UNSPECIFIED=0,BB.STARTS_ON=1,BB.ASSIGNMENT_ETA=2,BB.RESPONSE_ETA=3,BB.CLOSURE_ETA=4,BB),pCa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},mlc={},gAa=(mlc.SLO_SOURCE_UNSPECIFIED=0,mlc.USER=1,mlc.BUGSCOPE=2,mlc),xza={0:"STANDARD_FIELD_UNSPECIFIED",1:"REPORTER",
2:"ASSIGNEE",3:"VERIFIER",4:"CC",5:"TYPE",6:"STATUS",7:"PRIORITY",8:"SEVERITY",9:"CHANGELISTS",10:"PENDING_CHANGELISTS",11:"POSTMORTEMS",12:"FOUND_IN",13:"TARGETED_TO",14:"VERIFIED_IN",15:"IN_PRODUCTION",16:"SLO_STATUS",17:"TEAM",18:"COLLABORATORS"},CB={},zza=(CB.STANDARD_FIELD_UNSPECIFIED=0,CB.REPORTER=1,CB.ASSIGNEE=2,CB.VERIFIER=3,CB.CC=4,CB.TYPE=5,CB.STATUS=6,CB.PRIORITY=7,CB.SEVERITY=8,CB.CHANGELISTS=9,CB.PENDING_CHANGELISTS=10,CB.POSTMORTEMS=11,CB.FOUND_IN=12,CB.TARGETED_TO=13,CB.VERIFIED_IN=
14,CB.IN_PRODUCTION=15,CB.SLO_STATUS=16,CB.TEAM=17,CB.COLLABORATORS=18,CB),Dxa={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",PENDING:"PENDING",MERGED:"MERGED"},MAa={0:"STATE_UNSPECIFIED",1:"PENDING",2:"MERGED"},nlc={},NAa=(nlc.STATE_UNSPECIFIED=0,nlc.PENDING=1,nlc.MERGED=2,nlc),olc={STATUS_UNSPECIFIED:"STATUS_UNSPECIFIED",NEW:"NEW",ASSIGNED:"ASSIGNED",ACCEPTED:"ACCEPTED",FIXED:"FIXED",VERIFIED:"VERIFIED",NOT_REPRODUCIBLE:"NOT_REPRODUCIBLE",INTENDED_BEHAVIOR:"INTENDED_BEHAVIOR",OBSOLETE:"OBSOLETE",INFEASIBLE:"INFEASIBLE",
DUPLICATE:"DUPLICATE",INACTIVE:"INACTIVE"},vn={0:"STATUS_UNSPECIFIED",1:"NEW",2:"ASSIGNED",3:"ACCEPTED",4:"FIXED",5:"VERIFIED",6:"NOT_REPRODUCIBLE",7:"INTENDED_BEHAVIOR",8:"OBSOLETE",9:"INFEASIBLE",10:"DUPLICATE",11:"INACTIVE"},DB={},FAa=(DB.STATUS_UNSPECIFIED=0,DB.NEW=1,DB.ASSIGNED=2,DB.ACCEPTED=3,DB.FIXED=4,DB.VERIFIED=5,DB.NOT_REPRODUCIBLE=6,DB.INTENDED_BEHAVIOR=7,DB.OBSOLETE=8,DB.INFEASIBLE=9,DB.DUPLICATE=10,DB.INACTIVE=11,DB),plc={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",
CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",IRM:"IRM"},twa={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",8:"GOOGLE_TASKS",9:"IRM"},EB={},ixa=(EB.UNKNOWN_SOURCE=0,EB.WTDM=1,EB.NON_WTDM=2,EB.CRITIQUE=3,EB.DRIVE=4,EB.BUGANIZER=5,EB.ARIANE=6,EB.GERRIT=7,EB.GOOGLE_TASKS=8,EB.IRM=9,EB),Hva={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},qlc={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",
IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},aDa={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},FB={},dDa=(FB.UNSPECIFIED=0,FB.NEW=1,FB.CONFIRMED=2,FB.IN_PROGRESS=3,FB.FIXED=4,FB.WONT_FIX=5,FB),rlc={TRIAGE_SUBPHASE_UNSPECIFIED:"TRIAGE_SUBPHASE_UNSPECIFIED",NEEDS_INFO:"NEEDS_INFO",PENDING_TRIAGE:"PENDING_TRIAGE",REPORTER_RESPONDED:"REPORTER_RESPONDED",PENDING_OWNER:"PENDING_OWNER",EXPECTED:"EXPECTED",PLANNED:"PLANNED",COMMITTED:"COMMITTED",REOPENED:"REOPENED"},
bDa={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",8:"REOPENED"},GB={},eDa=(GB.TRIAGE_SUBPHASE_UNSPECIFIED=0,GB.NEEDS_INFO=1,GB.PENDING_TRIAGE=2,GB.REPORTER_RESPONDED=3,GB.PENDING_OWNER=4,GB.EXPECTED=5,GB.PLANNED=6,GB.COMMITTED=7,GB.REOPENED=8,GB),LBb={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Dza={0:"TYPE_UNSPECIFIED",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",
7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},HB={},Hza=(HB.TYPE_UNSPECIFIED=0,HB.TEXT=1,HB.DATE=2,HB.ENUM=3,HB.NUMERIC=4,HB.REPEATED_TEXT=5,HB.REPEATED_DATE=6,HB.REPEATED_ENUM=7,HB.REPEATED_NUMERIC=8,HB),slc={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",BUG:"BUG",FEATURE_REQUEST:"FEATURE_REQUEST",CUSTOMER_ISSUE:"CUSTOMER_ISSUE",INTERNAL_CLEANUP:"INTERNAL_CLEANUP",PROCESS:"PROCESS",VULNERABILITY:"VULNERABILITY",PRIVACY_ISSUE:"PRIVACY_ISSUE",PORTFOLIO:"PORTFOLIO",PROGRAM:"PROGRAM",PROJECT:"PROJECT",FEATURE:"FEATURE",
MILESTONE:"MILESTONE",EPIC:"EPIC",STORY:"STORY",TASK:"TASK"},IB={},xDa=(IB.TYPE_UNSPECIFIED=0,IB.BUG=1,IB.FEATURE_REQUEST=2,IB.CUSTOMER_ISSUE=3,IB.INTERNAL_CLEANUP=4,IB.PROCESS=5,IB.VULNERABILITY=6,IB.PRIVACY_ISSUE=7,IB.PORTFOLIO=8,IB.PROGRAM=9,IB.PROJECT=10,IB.FEATURE=11,IB.MILESTONE=12,IB.EPIC=13,IB.STORY=14,IB.TASK=15,IB),yFa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST"},tlc={},ulc=(tlc.TYPE_UNSPECIFIED=0,tlc.ISSUE_DEDUPLICATION=1,tlc.HOTLIST=2,tlc),vlc={},DFa=(vlc.TYPE_UNSPECIFIED=
0,vlc.VIEWED=1,vlc.ACCEPTED=2,vlc.REJECTED=3,vlc),JB={},wlc=(JB.USER_ACTIVITY_TYPE_UNDEFINED=0,JB.VIEW=1,JB.RELOAD=2,JB.EDIT=3,JB.MARK_AS_READ_OR_UNREAD=4,JB),Bva={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},CBb={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},xlc={},ylc=(xlc.VIEW_UNSPECIFIED=0,xlc.BASIC=1,xlc.FULL=2,xlc);var qAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qAa,V);var rAa=[1,2];var Jm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jm,V);Jm.prototype.getStatus=function(){return pl(this,1)};Jm.prototype.setStatus=function(a){return Nk(this,1,a)};Jm.prototype.getReason=function(){return pl(this,2)};Jm.prototype.setReason=function(a){return Nk(this,2,a)};var yn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yn,V);var hn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hn,V);g=hn.prototype;g.getStartTime=function(){return X(this,bl,1)};g.setStartTime=function(a){W(this,bl,1,a)};g.getEndTime=function(){return X(this,bl,2)};g.setEndTime=function(a){W(this,bl,2,a)};g.getObjective=function(){return X(this,dl,4)};g.setObjective=function(a){return W(this,dl,4,a)};g.getBusinessDays=function(){return Ik(this,5)};g.setBusinessDays=function(a){return $k(this,5,a)};
g.getDayType=function(){return pl(this,6)};g.setDayType=function(a){return Nk(this,6,a)};var wo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wo,V);var yo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yo,V);yo.prototype.getSourceIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,1,Fk())};yo.prototype.setSourceIssueIdsList=function(a){return jp(this,1,a)};var TAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TAa,V);var Dm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dm,V);Dm.prototype.getAccessLevel=function(){return pl(this,1)};Dm.prototype.setAccessLevel=function(a){return Nk(this,1,a)};var uza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uza,V);var bza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bza,V);bza.prototype.getSeverity=function(){return pl(this,1)};bza.prototype.setSeverity=function(a){return Nk(this,1,a)};var zlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zlc,V);var xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xo,V);xo.prototype.getRetentionPeriod=function(){return X(this,dl,1)};var Hm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hm,V);g=Hm.prototype;g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getAttachmentId_asString=function(){return Gl(this,1)};g.setAttachmentId=function(a){return Fm(this,1,a)};g.getFilename=function(){return Oh(this,4)};g.setFilename=function(a){Lk(this,4,a)};g.getEntityStatus=function(){return X(this,Jm,6)};g.setEntityStatus=function(a){return W(this,Jm,6,a)};
g.getEtag=function(){return sq(this,7)};g.setEtag=function(a){Im(this,7,a)};g.getContentVerdict=function(){return X(this,zlc,10)};g.getRestrictedRetentionState=function(){return X(this,xo,11)};g.getRestrictedRetention=function(){return pl(this,12)};g.setRestrictedRetention=function(a){return Nk(this,12,a)};var Tm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tm,V);Tm.prototype.getValuesList=function(a){return Wk(this,Zk,1,Fk(a))};Tm.prototype.setValuesList=function(a){return sn(this,1,a)};Tm.prototype.setValues=function(a,b){Bu(this,1,Zk,a,b)};var Sm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sm,V);Sm.prototype.getValuesList=function(a){return Hc(this,1,Cca,Fk(a))};Sm.prototype.setValuesList=function(a){return Mc(this,1,a,Bca)};Sm.prototype.getValues=function(a){var b=Hc(this,1,Cca,3,!0);wb(b,a);return b[a]};Sm.prototype.setValues=function(a,b){Pc(this,1,Bca,b,a,Cca,1)};var Rm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rm,V);Rm.prototype.getValuesList=function(a){return Ek(this,1,Fk(a))};Rm.prototype.setValuesList=function(a){return Mk(this,1,a)};Rm.prototype.getValues=function(a){return Ku(this,1,a)};Rm.prototype.setValues=function(a,b){Ou(this,1,a,b)};var $l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($l,V);var Um=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Um,V);g=Um.prototype;g.getValueCase=function(){return vm(this,Om)};g.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,1)};g.getCustomFieldId_asString=function(){return Gl(this,1)};g.setCustomFieldId=function(a){return Fm(this,1,a)};g.getDateValue=function(){return Qm(this,Zk,3,Om)};g.getDisplayString=function(){return Oh(this,10)};var Om=[2,3,4,5,6,7,8,9];var Wm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wm,V);g=Wm.prototype;g.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,1)};g.getCustomFieldId_asString=function(){return Gl(this,1)};g.setCustomFieldId=function(a){return Fm(this,1,a)};g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};
g.setComponentId=function(a){return Fm(this,2,a)};g.getType=function(){return pl(this,3)};g.setType=function(a){return Nk(this,3,a)};g.getName=function(){return Oh(this,5)};g.setName=function(a){return Lk(this,5,a)};g.getDescription=function(){return Oh(this,6)};g.setDescription=function(a){return Lk(this,6,a)};g.getEnumValues=function(a){return Ku(this,8,a)};g.setFieldSignificance=function(a){return Nk(this,9,a)};g.getShared=function(){return kl(this,11)};g.setShared=function(a){Xm(this,11,a)};var Mm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mm,V);Mm.prototype.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,Km(this,Lm,1))};Mm.prototype.getCustomFieldId_asString=function(){return Gl(this,Km(this,Lm,1))};Mm.prototype.setCustomFieldId=function(a){return Nm(this,1,Lm,Xb(a))};Mm.prototype.hasCustomFieldId=function(){return Gu(this,Km(this,Lm,1))!=null};var Lm=[1,2];var Kk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kk,V);Kk.prototype.getEmailAddress=function(){return Oh(this,1)};Kk.prototype.getUserGaiaStatus=function(){return pl(this,3)};var gn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gn,V);gn.prototype.getCount=function(){return Dl(this,2)};gn.prototype.setCount=function(a){return Fm(this,2,a)};gn.prototype.getType=function(){return pl(this,4)};gn.prototype.setType=function(a){return Nk(this,4,a)};var Uza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uza,V);var en=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(en,V);en.prototype.getContent=function(){return X(this,$l,1)};en.prototype.setContent=function(a){return W(this,$l,1,a)};en.prototype.hasContent=function(){return nk(this,$l,1)};var dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dn,V);dn.prototype.getContent=function(){return X(this,$l,1)};dn.prototype.setContent=function(a){return W(this,$l,1,a)};dn.prototype.hasContent=function(){return nk(this,$l,1)};var cn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cn,V);cn.prototype.getContent=function(){return X(this,$l,2)};cn.prototype.setContent=function(a){return W(this,$l,2,a)};cn.prototype.hasContent=function(){return nk(this,$l,2)};var Wza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wza,V);var tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tn,V);tn.prototype.getKindCase=function(){return vm(this,bn)};var bn=[1,2,3];var Alc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Alc,V);Alc.prototype.getState=function(){return pl(this,2)};Alc.prototype.setState=function(a){return Nk(this,2,a)};var qo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qo,V);g=qo.prototype;g.getIssueId=function(){return Dl(this,6)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,6)};g.getIssueId_asString=function(){return Gl(this,6)};g.setIssueId=function(a){return Fm(this,6,a)};g.getCommentNumber=function(){return Ik(this,7)};g.setCommentNumber=function(a){return $k(this,7,a)};g.getComment=function(){return Oh(this,1)};
g.setComment=function(a){return Lk(this,1,a)};g.getFormattedComment=function(){return X(this,tn,16)};g.hasFormattedComment=function(){return nk(this,tn,16)};g.getMentionsList=function(a){return Wk(this,Alc,14,Fk(a))};g.getFormattingMode=function(){return pl(this,9)};g.setFormattingMode=function(a){return Nk(this,9,a)};g.getAttachmentsList=function(){return Wk(this,Hm,2,Fk())};g.setAttachmentsList=function(a){return sn(this,2,a)};g.addAllAttachments=function(a){lo(this,2,Hm,a)};
g.getModifiedTime=function(){return X(this,bl,4)};g.setModifiedTime=function(a){return W(this,bl,4,a)};g.getEntityStatus=function(){return X(this,Jm,5)};g.setEntityStatus=function(a){return W(this,Jm,5,a)};g.getVersion=function(){return Ik(this,8)};g.setVersion=function(a){return $k(this,8,a)};g.getContentVerdict=function(){return X(this,zlc,10)};g.getRestrictedRetentionState=function(){return X(this,xo,11)};g.getRestrictedRetention=function(){return pl(this,12)};
g.setRestrictedRetention=function(a){return Nk(this,12,a)};g.getEtag=function(){return sq(this,15)};g.setEtag=function(a){Im(this,15,a)};var zn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zn,V);g=zn.prototype;g.getChangeNumber=function(){return Dl(this,3)};g.getChangeNumber_asLegacyNumberOrString=function(){return zl(this,3)};g.setChangeNumber=function(a){return Fm(this,3,a)};g.getState=function(){return pl(this,4)};g.setState=function(a){return Nk(this,4,a)};var Cm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cm,V);Cm.prototype.getAccessLevel=function(){return pl(this,1)};Cm.prototype.setAccessLevel=function(a){return Nk(this,1,a)};var pn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pn,V);pn.prototype.getRole=function(){return pl(this,1)};pn.prototype.setRole=function(a){return Nk(this,1,a)};pn.prototype.getCount=function(){return Pm(this,2)};pn.prototype.setCount=function(a){return on(this,2,a)};var nn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nn,V);nn.prototype.getUser=function(){return X(this,Kk,1)};nn.prototype.setUser=function(a){return W(this,Kk,1,a)};nn.prototype.hasUser=function(){return nk(this,Kk,1)};var mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mn,V);mn.prototype.getUser=function(){return Qm(this,nn,1,qn)};mn.prototype.setUser=function(a){return Vm(this,1,qn,a)};mn.prototype.hasUser=function(){return an(this,nn,1,qn)};mn.prototype.getPlaceholder=function(){return Qm(this,pn,2,qn)};var qn=[1,2];var rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rn,V);var xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xn,V);g=xn.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getType=function(){return pl(this,2)};g.setType=function(a){return Nk(this,2,a)};g.getStatus=function(){return pl(this,3)};g.setStatus=function(a){return Nk(this,3,a)};
g.getPriority=function(){return pl(this,4)};g.setPriority=function(a){return Nk(this,4,a)};g.getSeverity=function(){return pl(this,5)};g.setSeverity=function(a){return Nk(this,5,a)};g.getTitle=function(){return Oh(this,6)};g.setTitle=function(a){return Lk(this,6,a)};g.clearTitle=function(){return tq(this,6)};g.getReporter=function(){return X(this,Kk,7)};g.setReporter=function(a){W(this,Kk,7,a)};g.getAssignee=function(){return X(this,Kk,8)};g.setAssignee=function(a){return W(this,Kk,8,a)};
g.clearAssignee=function(){return tq(this,8)};g.getVerifier=function(){return X(this,Kk,9)};g.setVerifier=function(a){W(this,Kk,9,a)};g.clearVerifier=function(){return tq(this,9)};g.getCcsList=function(){return Wk(this,Kk,10,Fk())};g.setCcsList=function(a){sn(this,10,a)};g.addAllCcs=function(a){lo(this,10,Kk,a)};g.setCcs=function(a,b){return Bu(this,10,Kk,a,b)};g.getCollaboratorsList=function(){return Wk(this,Kk,31,Fk())};g.setCollaboratorsList=function(a){sn(this,31,a)};
g.addAllCollaborators=function(a){lo(this,31,Kk,a)};g.setCollaborators=function(a,b){return Bu(this,31,Kk,a,b)};g.getStaffing=function(){return X(this,rn,36)};g.setStaffing=function(a){W(this,rn,36,a)};g.getCanonicalIssueId_asLegacyNumberOrString=function(){return zl(this,11)};g.setCanonicalIssueId=function(a){Fm(this,11,a)};g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,12,Fk())};g.setBlockedByIssueIdsList=function(a){jp(this,12,a)};
g.addAllBlockedByIssueIds=function(a){Nu(this,12,a)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,13,Fk())};g.setBlockingIssueIdsList=function(a){jp(this,13,a)};g.addAllBlockingIssueIds=function(a){Nu(this,13,a)};g.getHotlistIdsList_asLegacyNumberOrString=function(a){return Uk(this,14,Fk(a))};g.getHotlistIdsList_asString=function(){return El(this,14)};g.setHotlistIdsList=function(a){return jp(this,14,a)};g.addHotlistIds=function(a,b){return Pc(this,14,Wb,a,b,ac)};
g.addAllHotlistIds=function(a){Nu(this,14,a)};g.removeHotlistIds=function(a){return y9b(this,14,a)};g.getCustomFieldsList=function(){return Wk(this,Um,15,Fk())};g.setCustomFieldsList=function(a){return sn(this,15,a)};g.addCustomFields=function(a){Eu(this,15,Um,a)};g.getCodeChangesList=function(a){return Ek(this,16,Fk(a))};g.setCodeChangesList=function(a){Mk(this,16,a)};g.addAllCodeChanges=function(a){io(this,16,a)};g.setCodeChanges=function(a,b){return Ou(this,16,a,b)};
g.getGerritChangesList=function(){return Wk(this,zn,35,Fk())};g.setGerritChangesList=function(a){sn(this,35,a)};g.addAllGerritChanges=function(a){lo(this,35,zn,a)};g.getInProd=function(){return kl(this,20)};g.setInProd=function(a){Xm(this,20,a)};g.getIsArchived=function(){return kl(this,21)};g.setIsArchived=function(a){return Xm(this,21,a)};g.getDuplicateIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,22,Fk())};g.setDuplicateIssueIdsList=function(a){jp(this,22,a)};
g.getIsDeleted=function(){return kl(this,23)};g.setIsDeleted=function(a){Xm(this,23,a)};g.setDeletionReason=function(a){Nk(this,24,a)};g.getEntityStatus=function(){return X(this,Jm,25)};g.setEntityStatus=function(a){return W(this,Jm,25,a)};g.getSloSnoozeUntil=function(){return X(this,bl,26)};g.setSloSnoozeUntil=function(a){W(this,bl,26,a)};g.getSloEndTime=function(){return X(this,bl,34)};g.setSloEndTime=function(a){W(this,bl,34,a)};g.hasSloEndTime=function(){return nk(this,bl,34)};
g.setSloSnoozeType=function(a){Nk(this,30,a)};g.getRetention=function(){return pl(this,28)};g.setRetention=function(a){return Nk(this,28,a)};g.getEffort=function(){return X(this,yn,29)};g.setEffort=function(a){W(this,yn,29,a)};g.hasEffort=function(){return nk(this,yn,29)};g.getAccessLimit=function(){return X(this,Cm,32)};g.setAccessLimit=function(a){return W(this,Cm,32,a)};var RDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(RDa,V);RDa.prototype.setNotificationSubscription=function(a){return Nk(this,4,a)};var QAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QAa,V);var PAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PAa,V);g=PAa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Hl(this,1,a)};g.getCommentNumber=function(){return Ik(this,2)};g.setCommentNumber=function(a){return Pl(this,2,a)};var UAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UAa,V);var OAa=[1,2];var un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(un,V);g=un.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getFormattingMode=function(){return pl(this,4)};g.setFormattingMode=function(a){return Nk(this,4,a)};g.getAuthor=function(){return X(this,Kk,5)};g.setAuthor=function(a){W(this,Kk,5,a)};
g.hasAuthor=function(){return nk(this,Kk,5)};g.getUpdateTime=function(){return X(this,bl,6)};g.setUpdateTime=function(a){W(this,bl,6,a)};g.hasUpdateTime=function(){return nk(this,bl,6)};g.getVersion=function(){return Ik(this,7)};g.setVersion=function(a){return $k(this,7,a)};g.getEntityStatus=function(){return X(this,Jm,8)};g.setEntityStatus=function(a){return W(this,Jm,8,a)};var vo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vo,V);g=vo.prototype;g.getIssueId=function(){return Dl(this,2)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,2)};g.getIssueId_asString=function(){return Gl(this,2)};g.setIssueId=function(a){return Fm(this,2,a)};g.getIssueState=function(){return X(this,xn,3)};g.setIssueState=function(a){return W(this,xn,3,a)};g.getIssueComment=function(){return X(this,qo,4)};
g.setIssueComment=function(a){W(this,qo,4,a)};g.hasIssueComment=function(){return nk(this,qo,4)};g.getAttachmentsList=function(){return Wk(this,Hm,18,Fk())};g.setAttachmentsList=function(a){return sn(this,18,a)};g.addAllAttachments=function(a){lo(this,18,Hm,a)};g.getDescription=function(){return X(this,qo,44)};g.setDescription=function(a){return W(this,qo,44,a)};g.hasDescription=function(){return nk(this,qo,44)};g.getStatusUpdate=function(){return X(this,un,43)};
g.setStatusUpdate=function(a){W(this,un,43,a)};g.hasStatusUpdate=function(){return nk(this,un,43)};g.getCreatedTime=function(){return X(this,bl,5)};g.setCreatedTime=function(a){return W(this,bl,5,a)};g.getModifiedTime=function(){return X(this,bl,6)};g.setModifiedTime=function(a){return W(this,bl,6,a)};g.getMajorModifiedTime=function(){return X(this,bl,35)};g.setMajorModifiedTime=function(a){return W(this,bl,35,a)};g.getResolvedTime=function(){return X(this,bl,7)};
g.setResolvedTime=function(a){return W(this,bl,7,a)};g.getVerifiedTime=function(){return X(this,bl,8)};g.setVerifiedTime=function(a){return W(this,bl,8,a)};g.getUserData=function(){return X(this,RDa,9)};g.setUserData=function(a){W(this,RDa,9,a)};g.getParentIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,37,Fk())};g.setParentIssueIdsList=function(a){return jp(this,37,a)};g.getAccessLimit=function(){return X(this,Dm,11)};g.setAccessLimit=function(a){return W(this,Dm,11,a)};
g.getVersion=function(){return Ik(this,12)};g.setVersion=function(a){return $k(this,12,a)};g.getEtag=function(){return sq(this,13)};g.setEtag=function(a){Im(this,13,a)};g.getCustomFieldsList=function(){return Wk(this,Wm,15,Fk())};g.setCustomFieldsList=function(a){return sn(this,15,a)};g.addCustomFields=function(a){Eu(this,15,Wm,a)};g.getSloStatus=function(){return X(this,wo,16)};g.setSloStatus=function(a){W(this,wo,16,a)};g.hasSloStatus=function(){return nk(this,wo,16)};
g.getSloId=function(){return Dl(this,17)};g.getSloId_asLegacyNumberOrString=function(){return zl(this,17)};g.setSloId=function(a){return Fm(this,17,a)};g.getTeamId_asLegacyNumberOrString=function(){return zl(this,33)};g.getTeamId_asString=function(){return Gl(this,33)};g.setTeamId=function(a){return Fm(this,33,a)};g.getEscalationOwner=function(){return X(this,Kk,48)};g.setEscalationOwner=function(a){W(this,Kk,48,a)};g.getRetentionState=function(){return X(this,xo,29)};
g.setRetentionState=function(a){W(this,xo,29,a)};g.getAncestorsMap=function(){return Lc(this,38,yo,mc)};g.getChildIssueCount=function(){return Ik(this,39)};g.setChildIssueCount=function(a){return $k(this,39,a)};g.getDescendantIssueCount=function(){return Ik(this,45)};g.setDescendantIssueCount=function(a){return $k(this,45,a)};g.getOpenDescendantIssueCount=function(){return Ik(this,46)};g.setOpenDescendantIssueCount=function(a){return $k(this,46,a)};g.getIsArchived=function(){return kl(this,40)};
g.setIsArchived=function(a){return Xm(this,40,a)};g.getTrackerId_asLegacyNumberOrString=function(){return zl(this,42)};g.getTrackerId_asString=function(){return Gl(this,42)};g.setTrackerId=function(a){Fm(this,42,a)};var KB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KB,V);KB.prototype.getCode=function(){return pl(this,1)};KB.prototype.setCode=function(a){return Sl(this,1,a)};KB.prototype.getCodeOrUndefined=function(){return du(this,1)};var Ot=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y(Ot,V);var LB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LB,V);g=LB.prototype;g.getLoggingId=function(){return Oh(this,1)};g.setLoggingId=function(a){Rl(this,1,a)};g.getValue=function(){return Pm(this,2)};g.setValue=function(a){return tq(this,2,Hb(a))};g.hasValue=function(){return Cu(this,2)!=null};var nu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nu,V);nu.prototype.getEncryptionSupport=function(){return pl(this,1)};nu.prototype.getCertificateStatus=function(){return pl(this,2)};var MB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MB,V);g=MB.prototype;g.getDisplayName=function(){return Oh(this,1)};g.setDisplayName=function(a){return Rl(this,1,a)};g.getGivenName=function(){return Oh(this,2)};g.setGivenName=function(a){return Rl(this,2,a)};g.hasGivenName=function(){return ml(this,2)};g.getFamilyName=function(){return Oh(this,3)};g.setFamilyName=function(a){return Rl(this,3,a)};g.hasFamilyName=function(){return ml(this,3)};
g.getSourceType=function(){return pl(this,4)};g.setSourceType=function(a){return Sl(this,4,a)};var Blc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Blc,V);g=Blc.prototype;g.getUrl=function(){return Oh(this,1)};g.setUrl=function(a){return Rl(this,1,a)};g.hasUrl=function(){return ml(this,1)};g.getType=function(){return pl(this,2)};g.setType=function(a){return Sl(this,2,a)};g.hasType=function(){return nl(this,2)};g.getSourceType=function(){return pl(this,3)};g.setSourceType=function(a){return Sl(this,3,a)};g.getGlyph=function(){return Oh(this,4)};
g.setGlyph=function(a){return Rl(this,4,a)};var ou=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ou,V);ou.prototype.getReachabilityStatus=function(){return pl(this,1)};ou.prototype.getClientData=function(){return Oh(this,2)};ou.prototype.hasClientData=function(){return ml(this,2)};var NB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NB,V);NB.prototype.getAltText=function(){return Oh(this,1)};NB.prototype.setAltText=function(a){return Rl(this,1,a)};NB.prototype.getIconUrl=function(){return Oh(this,2)};NB.prototype.setIconUrl=function(a){return Rl(this,2,a)};var OB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(OB,V);g=OB.prototype;g.getTargetType=function(){return pl(this,1,18)};g.getValue=function(){return Oh(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};g.getName=function(){return X(this,MB,3)};g.setName=function(a){return W(this,MB,3,a)};g.hasName=function(){return nk(this,MB,3)};g.getPhoto=function(){return X(this,Blc,4)};g.setPhoto=function(a){W(this,Blc,4,a)};
g.hasPhoto=function(){return nk(this,Blc,4)};g.getProfileId=function(){return Ku(this,5)};g.setProfileId=function(a){return Ou(this,5,a)};g.getContactId=function(){return Ku(this,6)};g.setContactId=function(a){return Ou(this,6,a)};g.getIsMe=function(){return kl(this,7)};g.setIsMe=function(a){return Ol(this,7,a)};g.getAffinity=function(){return X(this,LB,8)};g.hasAffinity=function(){return nk(this,LB,8)};g.getEmailSecurityInfo=function(){return X(this,nu,9)};
g.setEmailSecurityInfo=function(a){W(this,nu,9,a)};g.getOrgState=function(){return pl(this,10)};g.setOrgState=function(a){Sl(this,10,a)};g.getDataSource=function(){return pl(this,11)};g.setDataSource=function(a){return Sl(this,11,a)};g.hasDataSource=function(){return nl(this,11)};g.getDescription=function(){return Oh(this,12)};g.setDescription=function(a){return Rl(this,12,a)};g.hasDescription=function(){return ml(this,12)};g.getTagList=function(){return Wk(this,NB,14,Fk())};
g.setTagList=function(a){sn(this,14,a)};g.addTag=function(a){Eu(this,14,NB,a)};g.getExtendedData=function(){return X(this,Ot,15)};g.setExtendedData=function(a){W(this,Ot,15,a)};g.hasExtendedData=function(){return nk(this,Ot,15)};g.getCanonicalValue=function(){return Oh(this,16)};g.setCanonicalValue=function(a){return Rl(this,16,a)};g.hasCanonicalValue=function(){return ml(this,16)};g.getReachabilityInfo=function(){return X(this,ou,17)};g.setReachabilityInfo=function(a){W(this,ou,17,a)};var Clc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Clc,V);g=Clc.prototype;g.getResultType=function(){return pl(this,1,7)};g.setResultType=function(a){return Sl(this,1,a)};g.getTargetList=function(){return Wk(this,OB,2,Fk())};g.setTarget=function(a,b){return Bu(this,2,OB,a,b)};g.getTargetCount=function(){return q9b(this,OB,2)};g.getMemberList=function(){return Wk(this,Clc,3,Fk())};g.getTotalMemberCount=function(){return Ik(this,4)};
g.getIsBoosted=function(){return kl(this,5)};g.setIsBoosted=function(a){Ol(this,5,a)};g.getAffinity=function(){return X(this,LB,6)};g.hasAffinity=function(){return nk(this,LB,6)};g.getExtendedData=function(){return X(this,Ot,7)};g.setExtendedData=function(a){W(this,Ot,7,a)};g.hasExtendedData=function(){return nk(this,Ot,7)};var Dlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dlc,V);var Elc=function(a,b){sn(a,1,b)};Dlc.prototype.getMetadata=function(){return X(this,KB,2)};Dlc.prototype.getMutableMetadata=function(){return Du(this,KB,2)};Dlc.prototype.setMetadata=function(a){W(this,KB,2,a)};var Wta=Object.prototype.hasOwnProperty;var Flc={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},gRb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),Glc={ASSIGNEE:"assignee",ATTACHMENTS:"attachments",BLOCKED_BY_ISSUE_ID:"blockedByIssueId",BLOCKING_ISSUE_ID:"blockingIssueId",CCS:"ccs",CHANGELISTS:"changelists",COLLABORATORS:"collaborators",COMMENT:"comment",
COMPONENT_ID:"componentId",CUSTOM_FIELD:"customField",DELETION_REASON:"deletionReason",DUPLICATE_OF_ISSUE_ID:"duplicateOfIssueId",EFFORT_ESTIMATE:"effortEstimate",FOUND_IN_VERSION:"foundInVersion",GERRIT_CHANGES:"gerritChanges",HOTLISTS:"hotlists",IN_PROD:"inProd",ISSUE_TYPE:"type",IS_ARCHIVED:"isArchived",IS_DELETED:"isDeleted",PARENT_ID:"parentId",PRIORITY:"priority",READ_STATE:"readState",REPORTER:"reporter",SEVERITY:"severity",SLO_END_TIME:"sloEndTime",SLO_SNOOZE_TYPE:"sloSnoozeType",SLO_START_TIME:"sloStartTime",
STAFFING:"staffing",STATUS:"status",TARGETED_TO_VERSION:"targetedToVersion",TITLE:"title",TYPE:"type",VERIFIED_IN_VERSION:"verifiedInVersion",VERIFIER:"verifier"},Hlc={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},Ilc={ASSIGNED_TO_ME_AND_OPEN:"ASSIGNED_TO_ME_AND_OPEN",ASSIGNED_TO_ME:"ASSIGNED_TO_ME",OPEN:"OPEN",FIXED:"FIXED",BROAD_IN_PROGRESS:"BROAD_IN_PROGRESS",NEWLY_FILED:"NEWLY_FILED",RECENTLY_ACTIVE:"RECENTLY_ACTIVE",HIGH_PRIORITY:"HIGH_PRIORITY",TRENDING:"TRENDING",
PROGRESS:"PROGRESS"};var oua=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),nua=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),sua=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var Jlc=function(){this.transform=tua};Jlc.\u0275fac=function(a){return new (a||Jlc)};Jlc.\u0275pipe=Lf({name:"toNewEmailPreference",type:Jlc,pure:!0,standalone:!1});var PB=function(){this.transform=uua};PB.\u0275fac=function(a){return new (a||PB)};PB.\u0275pipe=Lf({name:"enumToHuman",type:PB,pure:!0,standalone:!1});var QB=function(){this.transform=vua};QB.\u0275fac=function(a){return new (a||QB)};QB.\u0275pipe=Lf({name:"arrayToHuman",type:QB,pure:!0,standalone:!1});var RB=function(){};
RB.prototype.transform=function(a,b){return ei(wua(a,b)).toString()};RB.\u0275fac=function(a){return new (a||RB)};RB.\u0275pipe=Lf({name:"boldPrefixMatches",type:RB,pure:!0,standalone:!1});var SB=function(){this.transform=xua};SB.\u0275fac=function(a){return new (a||SB)};SB.\u0275pipe=Lf({name:"yesNo",type:SB,pure:!0,standalone:!1});var Klc=function(){this.transform=yua};Klc.\u0275fac=function(a){return new (a||Klc)};Klc.\u0275pipe=Lf({name:"teamPath",type:Klc,pure:!0,standalone:!1});
var Llc=function(){this.transform=zua};Llc.\u0275fac=function(a){return new (a||Llc)};Llc.\u0275pipe=Lf({name:"humanFileSize",type:Llc,pure:!0,standalone:!1});var Mlc=function(){this.transform=Bua};Mlc.\u0275fac=function(a){return new (a||Mlc)};Mlc.\u0275pipe=Lf({name:"omitObfuscatedEmail",type:Mlc,pure:!0,standalone:!1});var Nlc=function(){this.transform=ck};Nlc.\u0275fac=function(a){return new (a||Nlc)};Nlc.\u0275pipe=Lf({name:"toString",type:Nlc,pure:!0,standalone:!1});
var Olc=function(){this.transform=Cua};Olc.\u0275fac=function(a){return new (a||Olc)};Olc.\u0275pipe=Lf({name:"csv",type:Olc,pure:!0,standalone:!1});var Plc=new Map([["(",")"],[")","("],["{","}"],["}","{"],["[","]"],["]","["],["<",">"],[">","<"]]),TB=function(){};TB.prototype.transform=function(a){if(a!=null)return[].concat(p(a)).reverse().map(function(b){var c;return(c=Plc.get(b))!=null?c:b}).join("")};TB.\u0275fac=function(a){return new (a||TB)};
TB.\u0275pipe=Lf({name:"reverse",type:TB,pure:!0,standalone:!1});var UB=function(){};UB.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};UB.\u0275fac=function(a){return new (a||UB)};UB.\u0275pipe=Lf({name:"isOutOfBounds",type:UB,pure:!0,standalone:!1});var VB=function(){};VB.\u0275fac=function(a){return new (a||VB)};VB.\u0275mod=Jf({type:VB});VB.\u0275inj=Tc({});var WB=function(){FA.apply(this,arguments)};Y(WB,FA);ea.Object.defineProperties(WB.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});WB.\u0275fac=function(){var a;return function(b){return(a||(a=fe(WB)))(b||WB)}}();WB.\u0275dir=Kf({type:WB,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},standalone:!1,features:[kg]});var XB=function(){};
XB.\u0275fac=function(a){return new (a||XB)};XB.\u0275mod=Jf({type:XB});XB.\u0275inj=Tc({imports:[JA]});var YB=function(){};YB.\u0275fac=function(a){return new (a||YB)};YB.\u0275mod=Jf({type:YB});YB.\u0275inj=Tc({imports:[zx,zx]});var ZB=function(){};ZB.\u0275fac=function(a){return new (a||ZB)};ZB.\u0275mod=Jf({type:ZB});ZB.\u0275inj=Tc({imports:[Yv,YB,JA,XB]});var $B=function(){};$B.\u0275fac=function(a){return new (a||$B)};$B.\u0275mod=Jf({type:$B});$B.\u0275inj=Tc({providers:[{provide:Idc,useValue:{color:"primary"}}],imports:[Vx]});var aC=function(){};aC.\u0275fac=function(a){return new (a||aC)};aC.\u0275mod=Jf({type:aC});aC.\u0275inj=Tc({imports:[UA]});var bC=function(){};bC.\u0275fac=function(a){return new (a||bC)};bC.\u0275mod=Jf({type:bC});bC.\u0275inj=Tc({providers:[qkc],imports:[Aw,yx,zx,zx,bx]});var cC=function(){};cC.\u0275fac=function(a){return new (a||cC)};cC.\u0275mod=Jf({type:cC});cC.\u0275inj=Tc({imports:[bC]});var dC=function(){};dC.\u0275fac=function(a){return new (a||dC)};dC.\u0275mod=Jf({type:dC});dC.\u0275inj=Tc({providers:[{provide:ZA,useFactory:function(){return new ZA({extensionId:"mmmcpmgpcndnklhnngbgkobgkioapnke"})}}],imports:[ZB,$B,cC,aC,Ly,YB,yx,ux,Aw,VB]});var Qlc=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],eC={},Rlc=(eC.UNSPECIFIED=[],eC.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],eC.CONFIRMED=["PENDING_OWNER"],eC.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],eC.FIXED=["REOPENED"],eC.WONT_FIX=["REOPENED"],eC),fC={},Slc=(fC.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",fC.NEEDS_INFO="Needs more info",fC.PENDING_TRIAGE="Pending triage",fC.PENDING_OWNER="Pending owner",fC.REPORTER_RESPONDED="Reporter responded",fC.EXPECTED="Expected",
fC.PLANNED="Planned",fC.COMMITTED="Committed",fC.REOPENED="Reopened",fC),gC={},Tlc=(gC.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",gC.NEEDS_INFO="needs-info",gC.PENDING_TRIAGE="pending-triage",gC.PENDING_OWNER="pending-owner",gC.REPORTER_RESPONDED="reporter-responded",gC.EXPECTED="expected",gC.PLANNED="planned",gC.COMMITTED="committed",gC.REOPENED="reopened",gC),Ulc=Fua(Gua(Tlc)),hC={},Or=(hC.UNSPECIFIED="unspecified",hC.NEW="new",hC.CONFIRMED="confirmed",hC.IN_PROGRESS="in-progress",hC.FIXED="fixed",
hC.WONT_FIX="wont-fix",hC),Vlc=Fua(Gua(Or)),qr=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),iC={},Wlc=(iC.NEW="status:new modified:7d",iC.CONFIRMED="status:assigned modified:7d",iC.IN_PROGRESS="status:accepted modified:30d",iC.FIXED="status:fixed|verified modified:30d",iC.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",iC),Xlc=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],jC={},Ylc=(jC.UNSPECIFIED=Xlc,jC.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],jC.CONFIRMED=Xlc,jC.IN_PROGRESS=Xlc,jC.FIXED=Xlc,jC.WONT_FIX=Xlc,jC);var Hua=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Zlc=new Set([1049953,209989]);var Cl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cl,V);Cl.prototype.getOpen=function(){return kl(this,1,!0)};Cl.prototype.setOpen=function(a){return Ol(this,1,a)};var wl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wl,V);var Al=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Al,V);var vl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vl,V);vl.prototype.getLastPublishMode=function(){return pl(this,1)};vl.prototype.setLastPublishMode=function(a){Sl(this,1,a)};vl.prototype.getCommentDisplayOverride=function(){return pl(this,2)};vl.prototype.setCommentDisplayOverride=function(a){Sl(this,2,a)};var Ul=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ul,V);Ul.prototype.getTimeZone=function(){return Oh(this,5)};Ul.prototype.setTimeZone=function(a){return Rl(this,5,a)};Ul.prototype.hasTimeZone=function(){return ml(this,5)};var Xl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xl,V);g=Xl.prototype;g.getType=function(){return pl(this,1,1)};g.setType=function(a){return Sl(this,1,a)};g.hasType=function(){return nl(this,1)};g.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,2)};g.getCustomFieldId_asString=function(){return Gl(this,2)};g.setCustomFieldId=function(a){return Hl(this,2,a)};g.hasCustomFieldId=function(){return yl(this,2)};var Wl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wl,V);Wl.prototype.getColumnList=function(){return Wk(this,Xl,1,Fk())};Wl.prototype.setColumnList=function(a){return sn(this,1,a)};Wl.prototype.setColumn=function(a){return Bu(this,1,Xl,a)};var Gwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gwa,V);var Zva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zva,V);var Yl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yl,V);Yl.prototype.getColumn=function(){return X(this,Xl,1)};Yl.prototype.setColumn=function(a){return W(this,Xl,1,a)};var Ql=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ql,V);Ql.prototype.getColumnList=function(){return Wk(this,Yl,1,Fk())};Ql.prototype.setColumnList=function(a){return sn(this,1,a)};Ql.prototype.setColumn=function(a){return Bu(this,1,Yl,a)};var ql=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ql,V);ql.prototype.getDensity=function(){return pl(this,1,1)};ql.prototype.setDensity=function(a){return Sl(this,1,a)};var xl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xl,V);var Jwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jwa,V);Jwa.prototype.setResourceId=function(a){Vl(this,2,a)};var cwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cwa,V);var Ll=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ll,V);Ll.prototype.getSignal=function(){return pl(this,1)};Ll.prototype.setSignal=function(a){return Sl(this,1,a)};Ll.prototype.getChecked=function(){return kl(this,2)};Ll.prototype.setChecked=function(a){return Ol(this,2,a)};var Jl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jl,V);Jl.prototype.getSignal=function(){return pl(this,1)};Jl.prototype.setSignal=function(a){return Sl(this,1,a)};Jl.prototype.getChecked=function(){return kl(this,2)};Jl.prototype.setChecked=function(a){return Ol(this,2,a)};var Kl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kl,V);Kl.prototype.getSignal=function(){return pl(this,1)};Kl.prototype.setSignal=function(a){return Sl(this,1,a)};Kl.prototype.getChecked=function(){return kl(this,2)};Kl.prototype.setChecked=function(a){return Ol(this,2,a)};var Ml=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ml,V);Ml.prototype.getSignal=function(){return pl(this,1)};Ml.prototype.setSignal=function(a){return Sl(this,1,a)};Ml.prototype.getChecked=function(){return kl(this,2)};Ml.prototype.setChecked=function(a){return Ol(this,2,a)};var Nl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nl,V);Nl.prototype.getSignal=function(){return pl(this,1)};Nl.prototype.setSignal=function(a){return Sl(this,1,a)};Nl.prototype.getChecked=function(){return kl(this,2)};Nl.prototype.setChecked=function(a){return Ol(this,2,a)};var Il=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Il,V);Il.prototype.getSignal=function(){return pl(this,1)};Il.prototype.setSignal=function(a){return Sl(this,1,a)};Il.prototype.getChecked=function(){return kl(this,2)};Il.prototype.setChecked=function(a){return Ol(this,2,a)};var Bl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Bl,V);Bl.prototype.getCollapsedMap=function(){return Kc(this,2,lc)};var Uwa=function(a,b){ip(a,7,b)},Wwa=function(a,b){ip(a,8,b)};Bl.prototype.getMyTasksSources=function(){return v9b(this,8)};var Xwa=function(a,b){sn(a,18,b)},Zwa=function(a,b){sn(a,19,b)},axa=function(a,b){sn(a,20,b)},cxa=function(a,b){sn(a,21,b)},exa=function(a,b){sn(a,22,b)},gxa=function(a,b){sn(a,24,b)};var Yva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yva,V);var Fl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fl,V);Fl.prototype.getTeamId_asLegacyNumberOrString=function(){return zl(this,1)};Fl.prototype.getTeamId_asString=function(){return Gl(this,1)};Fl.prototype.setTeamId=function(a){return Hl(this,1,a)};var jwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jwa,V);var qwa=function(a,b){return jp(a,1,b)},rwa=function(a,b){W(a,bl,2,b)},pwa=function(a,b){return sn(a,3,b)};var ewa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ewa,V);g=ewa.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Hl(this,1,a)};g.hasComponentId=function(){return yl(this,1)};var dwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dwa,V);var Twa=function(a,b){sn(a,1,b)};var tl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tl,V);tl.prototype.getLastPublishMode=function(){return pl(this,1)};tl.prototype.setLastPublishMode=function(a){Sl(this,1,a)};tl.prototype.getCommentDisplayOverride=function(){return pl(this,2)};tl.prototype.setCommentDisplayOverride=function(a){Sl(this,2,a)};var rk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,500)};Y(rk,V);g=rk.prototype;g.getDisplayColumns=function(){return X(this,Wl,4)};g.setDisplayColumns=function(a){W(this,Wl,4,a)};g.getSortColumns=function(){return X(this,Ql,6)};g.getLayoutPreferences=function(){return X(this,Gwa,10)};g.getDateTimePreferences=function(){return X(this,Ul,11)};g.getHomepagePreferences=function(){return X(this,Jwa,13)};g.getCollapsedMap=function(){return Kc(this,27,lc)};
g.getShowInlineImages=function(){return kl(this,29)};var ok=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ok,V);g=ok.prototype;g.getAppName=function(){return Oh(this,2)};g.getDocumentationBaseUrl=function(){return Oh(this,3)};g.getEnvironmentType=function(){return Oh(this,5)};g.getOnePickUrl=function(){return Oh(this,7)};g.getOnePickSecretToken=function(){return Oh(this,12)};g.getCommentNumberLimit=function(){return Ik(this,8)};g.getCreateComponentRedirectDelay=function(){return Pm(this,9)};
g.getCreateRestrictedSubresourcesComponentIds=function(){return u9b(this,13)};g.getIndefiniteRetentionComponentsAllowlist=function(){return u9b(this,20)};g.getHelpMeFixSidebarComponentAllowlist=function(){return u9b(this,23)};g.getInternalBaseUrl=function(){return Oh(this,24)};g.getExternalBaseUrl=function(){return Oh(this,25)};var qk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qk,V);g=qk.prototype;g.getEmail=function(){return Oh(this,1)};g.setEmail=function(a){return Rl(this,1,a)};g.hasEmail=function(){return ml(this,1)};g.getSessionIdentifier=function(){return Oh(this,3)};g.getUserTypeLabel=function(){return Oh(this,5)};var bm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bm.messageId)};Y(bm,V);bm.prototype.getId=function(){return Oh(this,1)};bm.prototype.setId=function(a){return Rl(this,1,a)};bm.messageId="b.TimeZoneData";var cm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,cm.messageId)};Y(cm,V);g=cm.prototype;g.getMessage=function(){return Oh(this,1)};g.setMessage=function(a){return Rl(this,1,a)};g.getMessageId=function(){return Oh(this,2)};g.getTagsList=function(a){return Ek(this,4,Fk(a))};g.getTags=function(a){return Ku(this,4,a)};cm.messageId="b.Announcement";var pk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pk,V);pk.prototype.getAnnouncement=function(){return X(this,cm,2)};var Vk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vk,V);Vk.prototype.getLogoUrl=function(){return Oh(this,1)};Vk.prototype.getTheme=function(){return pl(this,2)};Vk.prototype.setTheme=function(a){return Nk(this,2,a)};var kC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kC,V);g=kC.prototype;g.getTrackerId_asLegacyNumberOrString=function(){return zl(this,1)};g.getTrackerId_asString=function(){return Gl(this,1)};g.setTrackerId=function(a){Fm(this,1,a)};g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};g.setComponentId=function(a){return Fm(this,2,a)};
g.getName=function(){return Oh(this,3)};g.setName=function(a){return Lk(this,3,a)};g.getInternalBaseUrl=function(){return Oh(this,8)};g.getExternalBaseUrl=function(){return Oh(this,9)};g.getEtag=function(){return sq(this,7)};g.setEtag=function(a){Im(this,7,a)};var dm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dm.messageId)};Y(dm,V);dm.prototype.getIt=function(){return X(this,kC,9)};dm.prototype.setIt=function(a){return W(this,kC,9,a)};dm.messageId="b.Tracker";var Yua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yua,V);g=Yua.prototype;g.getUser=function(){return X(this,qk,1)};g.setUser=function(a){return W(this,qk,1,a)};g.hasUser=function(){return nk(this,qk,1)};g.getConfig=function(){return X(this,ok,2)};g.setConfig=function(a){W(this,ok,2,a)};g.getXsrfToken=function(){return Oh(this,3)};g.getCspNonce=function(){return Oh(this,8)};g.getFrontendAccessMode=function(){return Oh(this,4)};
g.getMustAcknowledgeTerms=function(){return kl(this,5)};g.getShowNewFeaturesDialog=function(){return kl(this,6)};g.getUserPreferences=function(){return X(this,rk,7)};g.getAppBaseHref=function(){return Oh(this,10)};g.getTracker=function(){return X(this,dm,11)};g.getPassiveLoginIframeUrl=function(){return X(this,txa,12)};var Zua=window,mk;var $lc={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},sk=$lc;try{sk=window.localStorage||$lc}catch(a){}
var amc=function(a){return function(){var b=sk.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},dva=function(a){return function(){var b=sk.getItem(a);if(b!=null)return String(b)}},bmc=function(a){return function(b){b==null?sk.removeItem(a):sk.setItem(a,String(b))}},cmc=function(a){return function(b){b==null?sk.removeItem(a):sk.setItem(a,b)}},dmc=function(a){return function(){var b=tk(a)();uk(a)(!b);return!b}},eva=function(a){return function(){var b=sk.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},vk=function(a){return function(b){b==null?sk.removeItem(a):sk.setItem(a,JSON.stringify(b))}};var kva=hk(function(){var a=gva(),b,c=(b=$ua().getConfig())==null?void 0:Kc(b,4,lc);if(a&&c){b=l(a.overrides);for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(d.flagName,d.value);console.warn("Active flag overrides:");console.table(a.overrides);cva()}});var gFa=new Map([[1,"Bug"],[3,"Customer Issue"],[13,"Epic"],[11,"Feature"],[2,"Feature Request"],[4,"Internal Cleanup"],[12,"Milestone"],[7,"Privacy Issue"],[5,"Process"],[9,"Program"],[10,"Project"],[14,"Story"],[15,"Task"],[0,"Unspecified"],[6,"Vulnerability"]]),Lo=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress (Accepted)"],[4,"Fixed"],[5,"Fixed (Verified)"],[6,"Won't fix (Not reproducible)"],[7,"Won't fix (Intended behavior)"],[8,"Won't fix (Obsolete)"],[9,"Won't fix (Infeasible)"],[11,"Won't fix (Inactive)"],
[10,"Duplicate"],[0,""]]),lC=new Map([[1,"New"],[2,"Assigned"],[3,"In Progress"],[4,"Fixed"],[5,"Verified"],[6,"Can't Repro"],[7,"WAI"],[8,"Obsolete"],[9,"Infeasible"],[11,"Inactive"],[10,"Duplicate"],[0,""]]),emc=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),mC=new Map([[1,"SWE"],[2,"SRE"],[3,"PM"],[4,"T/PgM"],[5,"UX"],[0,"--"]]);var fmc=new Map([["STATUS_UNSPECIFIED",lC.get(0)],["NEW",lC.get(1)],["ASSIGNED",lC.get(2)],["ACCEPTED",lC.get(3)],["FIXED",lC.get(4)],["VERIFIED",lC.get(5)],["DUPLICATE",lC.get(10)],["INFEASIBLE",lC.get(9)],["INACTIVE",lC.get(11)],["NOT_REPRODUCIBLE",lC.get(6)],["OBSOLETE",lC.get(8)],["INTENDED_BEHAVIOR",lC.get(7)]]),gmc={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},kya=new Map([["STATUS_UNSPECIFIED",0],["NEW",10],["ASSIGNED",20],["ACCEPTED",30],["FIXED",40],["VERIFIED",50],["DUPLICATE",
60],["INFEASIBLE",70],["INACTIVE",75],["NOT_REPRODUCIBLE",80],["OBSOLETE",90],["INTENDED_BEHAVIOR",100]]),nC={},hmc=(nC.ASSIGNED=!0,nC.ACCEPTED=!0,nC.FIXED=!0,nC.VERIFIED=!0,nC.DUPLICATE=!0,nC.INFEASIBLE=!0,nC.INACTIVE=!0,nC.NOT_REPRODUCIBLE=!0,nC.OBSOLETE=!0,nC.INTENDED_BEHAVIOR=!0,nC),yk=new Map([["STATUS_UNSPECIFIED",Lo.get(0)],["NEW",Lo.get(1)],["ASSIGNED",Lo.get(2)],["ACCEPTED",Lo.get(3)],["FIXED",Lo.get(4)],["VERIFIED",Lo.get(5)],["DUPLICATE",Lo.get(10)],["INFEASIBLE",Lo.get(9)],["INACTIVE",
Lo.get(11)],["NOT_REPRODUCIBLE",Lo.get(6)],["OBSOLETE",Lo.get(8)],["INTENDED_BEHAVIOR",Lo.get(7)]]),oC={},imc=(oC.P0="P0",oC.P1="P1",oC.P2="P2",oC.P3="P3",oC.P4="P4",oC.PRIORITY_UNSPECIFIED="--",oC),pC={},uya=(pC.P0=0,pC.P1=10,pC.P2=20,pC.P3=30,pC.P4=40,pC.PRIORITY_UNSPECIFIED=99,pC),qC={},jmc=(qC.S0="S0",qC.S1="S1",qC.S2="S2",qC.S3="S3",qC.S4="S4",qC.SEVERITY_UNSPECIFIED="--",qC),kmc=new Map([["STATUS_UNSPECIFIED","issue-status-wont-fix"],["NEW","issue-status-new"],["ASSIGNED","issue-status-assigned"],
["ACCEPTED","issue-status-accepted"],["FIXED","issue-status-fixed"],["VERIFIED","issue-status-verified"],["DUPLICATE","issue-status-duplicate"],["INFEASIBLE","issue-status-wont-fix"],["INACTIVE","issue-status-wont-fix"],["NOT_REPRODUCIBLE","issue-status-wont-fix"],["OBSOLETE","issue-status-wont-fix"],["INTENDED_BEHAVIOR","issue-status-wont-fix"]]),rC={},Pxa=(rC.INVOLVEMENT_UNSPECIFIED=emc.get(0),rC.HIGH=emc.get(1),rC.MEDIUM=emc.get(2),rC.LOW=emc.get(3),rC.ZERO=emc.get(4),rC),sC={},km=(sC.JOB_ROLE_UNSPECIFIED=
mC.get(0),sC.SWE=mC.get(1),sC.SRE=mC.get(2),sC.PM=mC.get(3),sC.TPGM=mC.get(4),sC.UX=mC.get(5),sC);var lva=zk("NEW",!0,"FORBIDDEN",10),mva=zk("ASSIGNED",!0,"REQUIRED",20),nva=zk("ACCEPTED",!0,"REQUIRED",30),ova=zk("FIXED",!1,"REQUIRED",40),pva=zk("VERIFIED",!1,"REQUIRED",50),qva=zk("DUPLICATE",!1,"ALLOWED",60),rva=zk("INFEASIBLE",!1,"ALLOWED",70),vva=zk("INACTIVE",!1,"ALLOWED",75),sva=zk("NOT_REPRODUCIBLE",!1,"ALLOWED",80),tva=zk("OBSOLETE",!1,"ALLOWED",90),uva=zk("INTENDED_BEHAVIOR",!1,"ALLOWED",100),om=new Map(wva().map(function(a){return[a.status,a]})),lmc=wva().map(function(a){return{value:a.status,
displayText:a.displayValue}}),mmc=new Set(wva().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var nmc=function(){},Jk=function(a){if(typeof a=="number"){var b=new nmc;b.standardOffset_=a;var c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",Kv(c,2));c=d.join("")}b.timeZoneId_=c;c=a;c==0?c="UTC":(d=["UTC",c<0?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,c!=0&&d.push(":",c),c=d.join(""));a=omc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new nmc;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},omc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(Kv(Math.floor(a/60)%100,2),":",Kv(a%60,2));return b.join("")},pmc=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c<a.transitions_.length&&b>=a.transitions_[c];)c+=2;return c==0?0:a.transitions_[c-1]},qmc=function(a,
b){a=a.standardOffset_-pmc(a,b);return a===-1440?0:a};var tC={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:50,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",collaboratorPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,
expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},textDisplayPreferences:{},commentFormattingPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,
commentFilterPreferences:{commentFilter:void 0},showInlineImages:!0,missionControlPreferences:{}};var sxa;var zxa=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var Gxa=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var rya=em().user.email,Bya=new WeakMap,Dya=new WeakMap;var uC=function(a){a=a===void 0?[]:a;this.internalValue$=new tj(new Set);this.value$=av(this.internalValue$).pipe(y(function(b){return new Set(b)}),Xf(Pj),cg({refCount:!0,bufferSize:1}));this.reset(a)};g=uC.prototype;g.reset=function(a){this.value.clear();a=l(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
g.add=function(){for(var a=l(ud.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};g.clear=function(){this.value.clear();this.internalValue$.next(this.value)};g.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};g.has=function(a){return this.value.has(a)};var Tq=function(a,b){return a.internalValue$.pipe(y(function(c){return c.has(b)}),Xf())};uC.prototype[Symbol.iterator]=function(){return this.value.values()};
uC.prototype.toString=function(){return"[ReactiveSet](["+[].concat(p(this.value.values())).join(", ")+"])"};uC.prototype.indexOf=function(a){return[].concat(p(this.value.values())).indexOf(a)};
ea.Object.defineProperties(uC.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}},size$:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.pipe(y(function(a){return a.size}),Xf())}}});var rmc=new uC,smc=rmc.value$.pipe(Tf(),Sf(0,qp));var tmc={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var umc=em().user.email,vmc={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return um(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},wmc={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return Wxa(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||Wxa(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},xmc={key:"INACTIVE_1Y",displayAs:"\ud83d\udc0c Inactive",
emoji:"\ud83d\udc0c",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3>315576E5},tooltip:"Issues that have not been modified in 1 year",showCount:!0},ymc={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=Uxa((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return Zlc.has(d.customFieldId)}))==null?void 0:c.dateValue);return!!a&&a<new Date},tooltip:"End date custom field is in the past.",chipColor:"red",showCount:!0},
zmc={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return pm(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.phase)==="FIXED"||((c=a.experimentalFields)==null?void 0:c.triage.phase)==="WONT_FIX")},tooltip:"Issues that were triaged as closed by the team, but someone else reopened.",chipColor:"blue",showCount:!0},Amc={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return pm(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
umc||aya(a)===umc)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},Bmc={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!rmc.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},vC={key:"LAST_30_DAYS",displayAs:"Last 30 days",emoji:"\ud83c\udf31",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3<=2592E6},queryFragment:"modified:30d",
tooltip:"Issues modified in the last 30 days"},Cmc={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=Ekb.get("NEW"))==null?void 0:b.some(function(d){return Tya(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},Dmc={key:"HIGH_PRIORITY",displayAs:"High priority",emoji:"",check:function(a){return a.snapshot[0].priority==="P0"||a.snapshot[0].priority==="P1"},tooltip:"Issues which user marked as p0/p1.",chipColor:"orange",
showCount:!0},Emc={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return aya(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},Fmc=new Map([["NEW",[Cmc,Amc,vC]],["CONFIRMED",[Bmc,xmc,vC]],["IN_PROGRESS",[wmc,ymc,vC]],["FIXED",[vC]],["WONT_FIX",[vC]]]),Ekb=new Map([["NEW",[Dmc,wmc,vmc]],["CONFIRMED",[Bmc,wmc,xmc,Dmc]],["IN_PROGRESS",[wmc,ymc,Emc]],["FIXED",[zmc]],["WONT_FIX",[zmc]]]),Gmc={INACTIVE_1Y:xmc,INACTIVE_2W:{key:"INACTIVE_2W",displayAs:"Inactive",
emoji:"\ud83d\udc0c",check:function(a){return Date.now()-a.aggregatedData.modifiedTimeMicros/1E3>12096E5},tooltip:"Not modified in 2 weeks",showCount:!0},LAST_30_DAYS:vC,MY_ISSUES:Amc,NEEDS_ATTENTION:Cmc,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return um(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:wmc,PAST_DEADLINE:ymc,REOPENED:zmc,TRENDING:Bmc,USER_RESPONDED:vmc,
HIGH_PRIORITY:Dmc,NOT_ASSIGNED:Emc};var Es=function(){this.session=em()};g=Es.prototype;g.getAppBaseHref=function(){return this.session.appBaseHref};g.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};g.getFrontendAccessMode=function(){return this.session.frontendAccessMode||"INTERNAL"};g.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};g.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var wC=function(a){return a.getFrontendAccessMode()==="PARTNER"},xC=function(a){return a.getFrontendAccessMode()==="PUBLIC"};Es.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var Hmc=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1},Yr=function(a,b){return!!a.session.config.enabledFlags.get(b)};Es.prototype.isAnonymous=function(){return this.session.user.anonymous};
Es.prototype.getUserEmail=function(){return this.session.user.email||""};Es.prototype.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};Es.prototype.getTracker=function(){var a;return(a=this.session.tracker)!=null?a:void 0};var Gq=function(a){return!!a.session.tracker};g=Es.prototype;g.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};g.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};
g.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};g.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};g.getAppBaseUrl=function(a){return(a===void 0?0:a)||!this.isInternalSession()?fm(this.session)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":fm(this.session)?"http://b/":"http://b-qa/"};g.getOnePickUrl=function(){return this.session.config.onePickUrl};g.getAppName=function(){return this.session.config.appName};
g.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};g.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};g.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};g.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};g.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};g.getUserPreferences=function(){return this.session.userPreferences};
g.getXsrfToken=function(){return this.session.xsrfToken};g.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};g.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};g.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};g.getCspNonce=function(){return this.session.cspNonce};g.getAnnouncement=function(){return this.session.preload.announcement};
g.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};g.getHelpMeFixSidebarComponentAllowlist=function(){return new Set(this.session.config.helpMeFixSidebarComponentAllowlist)};Es.\u0275fac=function(a){return new (a||Es)};Es.\u0275prov=Sc({token:Es,factory:Es.\u0275fac,providedIn:"root"});var BDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BDa,V);g=BDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getIssueAccessLimit=function(){return X(this,Cm,2)};g.setIssueAccessLimit=function(a){W(this,Cm,2,a)};g.setAddedCollaboratorsList=function(a){sn(this,3,a)};
g.setRemovedCollaboratorsList=function(a){sn(this,4,a)};var zm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zm,V);g=zm.prototype;g.getUser=function(){return Qm(this,Kk,1,wm)};g.setUser=function(a){return Vm(this,1,wm,a)};g.hasUser=function(){return an(this,Kk,1,wm)};g.getGroup=function(){return Qm(this,Kk,2,wm)};g.setGroup=function(a){Vm(this,2,wm,a)};var wm=[1,2,3];var Imc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Imc,V);g=Imc.prototype;g.getAppendersList=function(){return Wk(this,zm,6,Fk())};g.setAppendersList=function(a){return sn(this,6,a)};g.getReadersList=function(){return Wk(this,zm,8,Fk())};g.setReadersList=function(a){return sn(this,8,a)};g.setImplicitAccess=function(a){return Nk(this,10,a)};var Jmc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jmc,V);g=Jmc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getIssueAccessLimit=function(){return X(this,Cm,2)};g.setIssueAccessLimit=function(a){W(this,Cm,2,a)};g.setAddedCollaboratorsList=function(a){sn(this,3,a)};
g.setRemovedCollaboratorsList=function(a){sn(this,4,a)};var Em=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Em,V);Em.prototype.getResourcePath=function(){return Oh(this,2)};Em.prototype.setResourcePath=function(a){return Lk(this,2,a)};Em.prototype.getRestrictionSeverity=function(){return pl(this,3)};var Gm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gm,V);var Zm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zm,V);Zm.prototype.getLabel=function(){return Oh(this,1)};Zm.prototype.setLabel=function(a){return Lk(this,1,a)};Zm.prototype.getValue=function(){return Pm(this,2)};Zm.prototype.setValue=function(a){return on(this,2,a)};var Qza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qza,V);var Pza=function(a,b){return sn(a,1,b)};Qza.prototype.setOptions=function(a,b){return Bu(this,1,Zm,a,b)};var Nza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nza,V);var Mza=function(a,b){return on(a,1,b)};var Ym=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ym,V);g=Ym.prototype;g.getInherit=function(){return kl(this,1)};g.setInherit=function(a){return Xm(this,1,a)};g.getId=function(){return Dl(this,2)};g.getId_asLegacyNumberOrString=function(){return zl(this,2)};g.getId_asString=function(){return Gl(this,2)};g.setId=function(a){return Fm(this,2,a)};g.getName=function(){return Oh(this,3)};g.setName=function(a){return Lk(this,3,a)};
var Lza=function(a,b){Vm(a,4,Yn,b)},Oza=function(a,b){Vm(a,5,Yn,b)};Ym.prototype.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,100)};Ym.prototype.getCustomFieldId_asString=function(){return Gl(this,100)};Ym.prototype.setCustomFieldId=function(a){return Fm(this,100,a)};var Yn=[4,5];var jn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jn,V);g=jn.prototype;g.getInherit=function(){return kl(this,1)};g.setInherit=function(a){return Xm(this,1,a)};g.getSource=function(){return pl(this,2)};g.setSource=function(a){return Nk(this,2,a)};g.getId=function(){return Dl(this,3)};g.getId_asLegacyNumberOrString=function(){return zl(this,3)};g.getId_asString=function(){return Gl(this,3)};g.setId=function(a){return Fm(this,3,a)};
g.getSourceTeamId=function(){return Dl(this,5)};g.getSourceTeamId_asLegacyNumberOrString=function(){return zl(this,5)};g.setSourceTeamId=function(a){return Fm(this,5,a)};g.getComment=function(){return Oh(this,4)};g.setComment=function(a){return Lk(this,4,a)};g.getEscalationOwner=function(){return X(this,Kk,7)};g.setEscalationOwner=function(a){W(this,Kk,7,a)};g.getInheritEscalationOwner=function(){return kl(this,8)};g.setInheritEscalationOwner=function(a){Xm(this,8,a)};var ln=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ln,V);g=ln.prototype;g.getMetric=function(){return pl(this,1)};g.getMatcher=function(){return Oh(this,2)};g.setMatcher=function(a){return Lk(this,2,a)};g.getDayType=function(){return pl(this,4)};g.setDayType=function(a){return Nk(this,4,a)};g.getObjective=function(){return X(this,dl,3)};g.setObjective=function(a){return W(this,dl,3,a)};g.getBusinessDays=function(){return Ik(this,5)};
g.setBusinessDays=function(a){return $k(this,5,a)};var lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lp,V);g=lp.prototype;g.getSloId=function(){return Dl(this,1)};g.getSloId_asLegacyNumberOrString=function(){return zl(this,1)};g.setSloId=function(a){return Fm(this,1,a)};g.getParentId=function(){return Dl(this,2)};g.setParentId=function(a){return Fm(this,2,a)};g.getName=function(){return Oh(this,3)};g.setName=function(a){return Lk(this,3,a)};g.getDescription=function(){return Oh(this,4)};
g.setDescription=function(a){return Lk(this,4,a)};g.addRules=function(a,b){return Eu(this,5,ln,a,b)};g.removeRules=function(a){return Fu(this,5,ln,a)};g.getIsArchived=function(){return kl(this,7)};g.setIsArchived=function(a){return Xm(this,7,a)};var aEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(aEa,V);aEa.prototype.getTemplateId_asLegacyNumberOrString=function(){return zl(this,2)};aEa.prototype.setTemplateId=function(a){return Fm(this,2,a)};var $Da=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($Da,V);g=$Da.prototype;g.getIssue=function(){return X(this,vo,1)};g.setIssue=function(a){return W(this,vo,1,a)};g.setSignificanceOverride=function(a){return Nk(this,4,a)};g.getContentJudgement=function(){return X(this,Em,5)};g.setContentJudgement=function(a){return W(this,Em,5,a)};var yC=function(){},zC=function(){};var Kmc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kmc,V);g=Kmc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setPageSize=function(a){return $k(this,2,a)};g.setPageToken=function(a){return Lk(this,3,a)};var AC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,AC.messageId)};Y(AC,V);AC.prototype.getIt=function(){return X(this,Kmc,4)};AC.prototype.setIt=function(a){return W(this,Kmc,4,a)};AC.messageId="b.AggregateIssueDescendantsRequest";var Lmc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lmc,V);g=Lmc.prototype;g.getPriority=function(){return pl(this,1)};g.setPriority=function(a){return Nk(this,1,a)};g.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,2,Fk())};g.getIssueIdsList_asString=function(){return El(this,2)};g.setIssueIdsList=function(a){return jp(this,2,a)};g.setIssueIds=function(a){Pc(this,2,Wb,void 0,a,ac,1)};var Mmc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mmc,V);g=Mmc.prototype;g.getStatus=function(){return pl(this,1)};g.setStatus=function(a){return Nk(this,1,a)};g.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,2,Fk())};g.getIssueIdsList_asString=function(){return El(this,2)};g.setIssueIdsList=function(a){return jp(this,2,a)};g.setIssueIds=function(a){Pc(this,2,Wb,void 0,a,ac,1)};var Nmc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nmc,V);g=Nmc.prototype;g.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,3,Fk())};g.getIssueIdsList_asString=function(){return El(this,3)};g.setIssueIdsList=function(a){return jp(this,3,a)};g.setIssueIds=function(a){Pc(this,3,Wb,void 0,a,ac,1)};g.getCollaboratorsList=function(){return Wk(this,Kk,8,Fk())};g.setCollaboratorsList=function(a){sn(this,8,a)};
g.addAllCollaborators=function(a){lo(this,8,Kk,a)};g.setCollaborators=function(a,b){return Bu(this,8,Kk,a,b)};g.getCodeChangesList=function(a){return Ek(this,9,Fk(a))};g.setCodeChangesList=function(a){Mk(this,9,a)};g.addAllCodeChanges=function(a){io(this,9,a)};g.setCodeChanges=function(a,b){return Ou(this,9,a,b)};g.getGerritChangesList=function(){return Wk(this,zn,13,Fk())};g.setGerritChangesList=function(a){sn(this,13,a)};g.addAllGerritChanges=function(a){lo(this,13,zn,a)};
g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,10,Fk())};g.setBlockedByIssueIdsList=function(a){jp(this,10,a)};g.addAllBlockedByIssueIds=function(a){Nu(this,10,a)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,11,Fk())};g.setBlockingIssueIdsList=function(a){jp(this,11,a)};g.addAllBlockingIssueIds=function(a){Nu(this,11,a)};var Omc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Omc,V);Omc.prototype.getNextPageToken=function(){return Oh(this,4)};var BC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,BC.messageId)};Y(BC,V);BC.prototype.getIt=function(){return X(this,Omc,3)};BC.prototype.setIt=function(a){return W(this,Omc,3,a)};BC.messageId="b.AggregateIssueDescendantsResponse";var CC=function(){this.executor=n(yC)};
CC.prototype.get=function(a){var b=(new AC).setIt((new Kmc).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:BC}).pipe(y(function(c){var d=Ik(c.getIt(),2),e=Ik(c.getIt(),3),f=X(c.getIt(),Nmc,1);if(f){var h,k,q,u,A,G,H,N,O,U;c={_rootId:a,issueIds:f.getIssueIdsList_asLegacyNumberOrString().map(Rk).filter(Tk),aggregatedStatus:(A=Wk(f,Mmc,4,Fk()).map(WAa).filter(Tk))!=null?A:[],aggregatedPriority:(G=Wk(f,Lmc,12,Fk()).map(XAa).filter(Tk))!=
null?G:[],reporters:(H=(h=Wk(f,Kk,5,Fk()))==null?void 0:h.map(Pk))!=null?H:[],assignees:(N=(k=Wk(f,Kk,6,Fk()))==null?void 0:k.map(Pk))!=null?N:[],verifiers:(O=(q=Wk(f,Kk,7,Fk()))==null?void 0:q.map(Pk))!=null?O:[],collaborators:(U=(u=f.getCollaboratorsList())==null?void 0:u.map(Pk))!=null?U:[],changelists:f.getCodeChangesList(Gk),gerritChanges:f.getGerritChangesList().map(BAa),blockedByIssueIds:f.getBlockedByIssueIdsList_asLegacyNumberOrString().map(Rk).filter(Tk),blockingIssueIds:f.getBlockingIssueIdsList_asLegacyNumberOrString().map(Rk).filter(Tk),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};CC.\u0275fac=function(a){return new (a||CC)};CC.\u0275prov=Sc({token:CC,factory:CC.\u0275fac,providedIn:"root"});var Pmc=function(a){this.isEqual=a===void 0?function(){return!1}:a;this.values$=new ag(1);this.distinctValues$=new ag(1);this.lastValue=void 0;this.empty=!0};Pmc.prototype.next=function(a){this.values$.next(a);!this.empty&&this.isEqual(a,this.lastValue)||this.distinctValues$.next(a);this.lastValue=a;this.empty=!1};var DC=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};DC.prototype.isFresh=function(){return Date.now()-this.lastValidated<this.cfg.freshUntil};DC.prototype.isAncient=function(){return Date.now()-this.lastValidated>this.cfg.ancientAfter};DC.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};DC.prototype.toString=function(){var a=String(this.data);return Math.ceil((Date.now()-this.lastValidated)/1E3)+"s old -- "+a};
var Qmc=function(a){this.cfg=a;this.cache=new Map},Rmc=function(a,b){a=EC(a,b);return a==null?Infinity:a},EC=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:Date.now()-c.lastValidated};Qmc.prototype.isFresh=function(a){return Rmc(this,a)<this.cfg.freshUntil};var Smc=function(a,b){return Rmc(a,b)<=a.cfg.ancientAfter};g=Qmc.prototype;g.isAncient=function(){var a=EC(this);return a?a>this.cfg.ancientAfter:!1};g.getStatus=function(a){a=this.get(a,!0);if(a!=null)return a.getStatus()};
g.has=function(a,b){return!!this.get(a,b===void 0?!1:b)};g.get=function(a,b){b=b===void 0?!1:b;var c=this.cache.get(a);if(c!=null)return Date.now()-c.lastValidated>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};g.getData=function(a,b){var c;return(c=this.get(a,b===void 0?!1:b))==null?void 0:c.data};g.set=function(a,b){this.cache.set(a,new DC(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new DC(b.data,this.cfg))};
g.validate=function(a,b,c,d){d=d===void 0?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};g.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};g.toString=function(){return Array.from(this.cache,function(a){a=l(a);var b=a.next().value;a=a.next().value;b=String(b).slice(-16);var c=a.toString();return a.getStatus()+"  "+b+": "+c}).join("\n")};var Tmc={trustMemory:!0},Umc=function(){},$ta=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],Vmc=function(a){this.ids=[];Object.assign(this,a)};Y(Vmc,Umc);Vmc.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var Wmc={freshUntil:1E4,ancientAfter:792E5},FC=function(a){var b=this;a=a===void 0?{}:a;this.error$=new bg;this.watchOneError=function(c){if(c==null)return Ce();typeof c==="number"&&(c=String(c));return b.error$.pipe(Ve(function(d){return d.idOrKey===c}))};this.memoryWasSet$=new bg;this.collectiveMemoryWasSet$=new bg;this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new tj(Object.freeze({}));this.inFlightSaves$=new tj(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(y(ZAa));
this.saving$=this.inFlightSaves$.pipe(y(ZAa));this.thinking$=Je(this.getting$,this.saving$).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),Xf());this.gotOne=function(c){return function(d,e){e=e===void 0?{}:e;e=e.doNotTrack?YAa:Xmc({label:c,value:EC(b.memory,c)},b.recordType);b.memory.validate(c,d,b.isEqual)?(e("one-isSame"),b.memory.touch(c)):(e("one-isChanged"),b.memoryWasSet$.next(),b.memory.set(c,d));Ymc(b,c).next(d)}};this.gotSet=function(c){return function(d){for(var e=
l(d),f=e.next();!f.done;f=e.next())f=f.value,b.gotOne(b.idForRecord(f))(f,{doNotTrack:!0});Zmc(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=Xmc({label:c,value:EC(b.collectiveMemory,c)},b.recordType),f=l(d.results),h=f.next();!h.done;h=f.next())h=h.value,b.gotOne(b.idForRecord(h))(h,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,Zta);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=$mc(b,f,d.results),
e.next(d)):vta(c+" gotAll but don't have a behaviorSubject set up to broadcast on. Strange...",d)}};this.dereferenceOne=function(c){return function(d){var e=c.find(function(f){return b.idForRecord(f)===d});e==null&&Nj("Fridge<"+b.recordType+"> Couldn't find a record for id "+d+". (among "+c.length+" records)");return e}};this.debug=function(){return{recordType:b.recordType,isThinking:b.isThinking(),inFlightGets:Object.entries(b.inFlightGets()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;
return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves()).map(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),records:b.memory.debug(),lists:b.collectiveMemory.debug()}};this.implementsFn=function(){return function(){try{b.doSave()}catch(d){var c=d;if((c.message===void 0?"":c.message).match("Default no-op for Fridge"))return!1}return!0}};this.canSave=this.implementsFn();this.icons={fetchOne:"\ud83d\udcbf",fetchAll:"\ud83d\udcdc",__doCreate:"\ud83c\udf1f",
doSave:"\u270f\ufe0f",no:"\u274c"};this.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=function(c){return c==null?ZAa(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(y(function(d){return!!d[c]}),Xf())};this.isGetting=function(c){return c==null?ZAa(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("vc");c=b.doSave(c).pipe(Wf(0,qp),Wja(),Ega());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),
b.gotErr(d,b.inFlightSaves$),anc(d,b.inFlightSaves$)));return c};this.setIsSaving=function(c){var d={};$Aa(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){aBa(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};$Aa(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){aBa(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries()).map(function(c){c=l(c);c.next();return c.next().value.data}).filter(Tk)};this.poke.bind(this);this.subscriptions=
new ke;this.memory=new Qmc(Object.assign({},Wmc,a));this.collectiveMemory=new Qmc(Object.assign({},Wmc,a))};g=FC.prototype;g.fetchOne=function(){throw Error("wc");};g.fetchAll=function(){throw Error("xc");};g.fetchSet=function(){throw Error("yc");};g.doSave=function(){throw Error("zc");};g.copy=function(){throw Error("Ac");};g.isEqual=function(a,b){return Zta(a,b,100)};g.inFlightGets=function(){return this.inFlightGets$.getValue()};g.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var bnc=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=Xmc({label:b,value:EC(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&Smc(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),gBa(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=Ymc(a,b),fBa(c.values$).then(gBa);c("one-fetch");try{var f=a.fetchOne(b).pipe(Uf(),Wf(0,qp))}catch(h){f=De(function(){return h})}a.setIsGetting(b);return new Promise(function(h,k){a.subscriptions.add(f.subscribe(function(q){a.gotOne(b)(q);
h(q)},function(q){a.gotErr(b,a.inFlightGets$)(q);k(q)},anc(b,a.inFlightGets$)))})},enc=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(p(b)).sort().join("-")+"]",e=Xmc({label:d},a.recordType);if(c&&cnc(a,b))dnc(a,b),e("set-trustMemory");else if(a.inFlightGets()[d])e("set-inFlight");else if(b.every(function(k){return a.inFlightGets()[k]}))Promise.all(b.map(function(k){k=Ymc(a,k);return fBa(k.values$)})).then(function(k){return k.filter(Tk)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(Uf(),Wf(0,qp))}catch(k){f=De(function(){return k})}c={};c=(c[d]=!0,c);e=l(b);for(var h=e.next();!h.done;h=e.next())c[h.value]=!0;$Aa(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){bBa(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){bBa(a.inFlightGets$,[d].concat(p(b)))}))}},cnc=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},dnc=function(a,b){var c=fnc(a,b).filter(Tk);Zmc(a,b).next(c)};
FC.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=cBa(a),d=Xmc({label:c,value:EC(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=gnc(this,a);e.results.length!==a.ids.length&&Nj("Fridge<"+this.recordType+"> getAll thinks the collectiveMemory cache is fresh, but only found "+e.results.length+"/"+a.ids.length+" things in the normalized record cache");return Promise.resolve(e)}if(this.inFlightGets()[c])return d("all-inFlight"),
a=hnc(this,a),fBa(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(Uf(),Wf(0,qp))}catch(f){e=De(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),anc(c,this.inFlightGets$)));a=hnc(this,a);return fBa(a.values$)};FC.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);wta(a+" gotErr()",d);aBa(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var anc=function(a,b){return function(){aBa(b,a)}};FC.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new Vmc(Object.assign({},eBa(a),{ids:b}))};
var $mc=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},eBa(b),{results:a})},gnc=function(a,b){var c=fnc(a,b.ids).filter(Tk);return $mc(a,b,c)},fnc=function(a,b){return b.map(function(c){return a.memory.getData(c)})},hnc=function(a,b){b=cBa(b);return dBa(a.collectionsById,b,new Pmc)},Zmc=function(a,b){b="["+[].concat(p(b)).sort().join("-")+"]";return dBa(a.setsByLabel,b,new Pmc)},Ymc=function(a,b){var c=new Pmc(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return dBa(a.valsById,b,c)};g=FC.prototype;g.watch=function(a,b){b=b===void 0?Tmc:b;typeof b==="number"&&(b=Tmc);if(a==null)return Ce();typeof a==="number"&&(a=String(a));var c=Ymc(this,a);bnc(this,a,b).catch(function(){});return av(c.distinctValues$)};g.watchSet=function(a,b){b=b===void 0?Tmc:b;typeof b==="number"&&(b=Tmc);if(a.length===0)return Ce([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=Zmc(this,a);enc(this,a,b);return av(c.values$)};
g.watchMany=function(a,b){b=b===void 0?Tmc:b;a=Object.assign({},this.defaultQuery,a);var c=hnc(this,a);this.getAll(a,b);return av(c.values$)};g.peek=function(a){if(a!=null)return this.memory.getData(String(a),!0)};g.poke=function(a,b){return a==null?hBa():bnc(this,String(a),b)};var inc=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},jnc=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(cBa(b))};
FC.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Bc");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};FC.prototype.invalidate=function(a){a==null?(this.memory.cache.clear(),this.collectiveMemory.cache.clear()):["string","number"].includes(typeof a)?this.memory.cache.delete(String(a)):this.collectiveMemory.cache.delete(cBa(a))};
FC.prototype.manualUpdate=function(a,b,c){c=c===void 0?{}:c;if(c.evenWhenInFlight!==void 0&&c.evenWhenInFlight||!this.inFlightGets()[a])if(a=this.copy(this.memory.getData(String(a))))b(a),this.announce(a)};FC.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var Xmc=function(a,b){for(var c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,a[d]==null&&delete a[d];return function(e){var f=a;f=f===void 0?{}:f;knc&&Lj("Fridge<"+b+">::trackEvent('"+e+"')",f)}},GC=function(){FC.apply(this,arguments);this.defaultQuery={}};Y(GC,FC);var knc=!1;var HC=function(){GC.call(this);this.api=n(CC);this.recordType="AggregatedIssueMetadata";this.isEqual=Pj;this.idForRecord=function(a){return a._rootId}};Y(HC,GC);HC.prototype.fetchOne=function(a){return this.api.get(a)};HC.\u0275fac=function(a){return new (a||HC)};HC.\u0275prov=Sc({token:HC,factory:HC.\u0275fac,providedIn:"root"});var uq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,uq.messageId)};Y(uq,V);uq.prototype.getIt=function(){return X(this,Em,6)};uq.prototype.setIt=function(a){return W(this,Em,6,a)};uq.messageId="b.ContentJudgement";var mBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mBa,V);mBa.prototype.getContent=function(){return Oh(this,1)};mBa.prototype.setContent=function(a){return Lk(this,1,a)};mBa.prototype.getFormattedContent=function(){return X(this,tn,2)};var Dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dn,V);Dn.prototype.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,1,Fk())};Dn.prototype.getIssueIdsList_asString=function(){return El(this,1)};Dn.prototype.setIssueIdsList=function(a){return jp(this,1,a)};Dn.prototype.setIssueIds=function(a){Pc(this,1,Wb,void 0,a,ac,1)};var lnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lnc,V);lnc.prototype.getContent=function(){return Oh(this,1)};lnc.prototype.setContent=function(a){return Lk(this,1,a)};lnc.prototype.getFormattedContent=function(){return X(this,tn,2)};var mnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mnc,V);g=mnc.prototype;g.getContentCase=function(){return vm(this,nBa)};g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCategory=function(){return Oh(this,2)};g.setCategory=function(a){return Lk(this,2,a)};
g.getSummary=function(){return Qm(this,lnc,5,nBa)};g.getAuthor=function(){return X(this,Kk,6)};g.setAuthor=function(a){W(this,Kk,6,a)};g.hasAuthor=function(){return nk(this,Kk,6)};g.getTimestamp=function(){return X(this,bl,7)};g.setTimestamp=function(a){return W(this,bl,7,a)};g.hasTimestamp=function(){return nk(this,bl,7)};var nBa=[3,4,5];var qBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qBa,V);g=qBa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCategory=function(){return Oh(this,2)};g.setCategory=function(a){return Lk(this,2,a)};g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,3)};
g.getAttachmentId_asString=function(){return Gl(this,3)};g.setAttachmentId=function(a){return Fm(this,3,a)};g.setFeedbackType=function(a){return Nk(this,4,a)};var nnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nnc,V);g=nnc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getAttachmentId_asString=function(){return Gl(this,2)};g.setAttachmentId=function(a){return Fm(this,2,a)};
g.getCategory=function(){return Oh(this,3)};g.setCategory=function(a){return Lk(this,3,a)};var onc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(onc,V);g=onc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getAttachmentId_asString=function(){return Gl(this,2)};g.setAttachmentId=function(a){return Fm(this,2,a)};
g.getCategory=function(){return Oh(this,3)};g.setCategory=function(a){return Lk(this,3,a)};var pnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pnc,V);pnc.prototype.getQuery=function(){return Oh(this,1)};pnc.prototype.setQuery=function(a){return Lk(this,1,a)};pnc.prototype.clearQuery=function(){tq(this,1)};var qnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qnc,V);qnc.prototype.getQuery=function(){return Oh(this,1)};qnc.prototype.setQuery=function(a){return Lk(this,1,a)};qnc.prototype.clearQuery=function(){tq(this,1)};var rnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rnc,V);rnc.prototype.getName=function(){return Oh(this,1)};rnc.prototype.setName=function(a){return Lk(this,1,a)};var snc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(snc,V);snc.prototype.setFeedback=function(a){return W(this,qBa,1,a)};var IC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,IC.messageId)};Y(IC,V);IC.messageId="f.mt";var tnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tnc,V);g=tnc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getAttachmentId_asString=function(){return Gl(this,2)};g.setAttachmentId=function(a){return Fm(this,2,a)};
g.getCategory=function(){return Oh(this,3)};g.setCategory=function(a){return Lk(this,3,a)};g.getContent=function(){return Oh(this,4)};g.setContent=function(a){return Lk(this,4,a)};g.getFormattedContent=function(){return X(this,tn,5)};g.getAuthor=function(){return X(this,Kk,6)};g.setAuthor=function(a){W(this,Kk,6,a)};g.hasAuthor=function(){return nk(this,Kk,6)};g.getTimestamp=function(){return X(this,bl,7)};g.setTimestamp=function(a){return W(this,bl,7,a)};
g.hasTimestamp=function(){return nk(this,bl,7)};g.getContentVerdict=function(){return X(this,zlc,8)};var unc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,unc.messageId)};Y(unc,V);unc.messageId="b.GetAttachmentEnrichmentResponse";var vnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vnc,V);g=vnc.prototype;g.getName=function(){return Oh(this,1)};g.setName=function(a){return Rl(this,1,a)};g.hasName=function(){return ml(this,1)};g.getNameOrUndefined=function(){return fr(this,1)};g.getDisplayName=function(){return Oh(this,2)};g.setDisplayName=function(a){return Rl(this,2,a)};g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Rl(this,3,a)};
g.hasDescription=function(){return ml(this,3)};var JC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JC.messageId)};Y(JC,V);JC.prototype.getCategory=function(){return X(this,vnc,1)};JC.prototype.setCategory=function(a){return W(this,vnc,1,a)};JC.messageId="b.GetEnrichmentCategoryResponse";var wnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wnc,V);var KC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,KC.messageId)};Y(KC,V);KC.prototype.getResponse=function(){return X(this,wnc,1)};KC.prototype.getReadonlyResponse=function(){return nr(this,wnc,1)};KC.prototype.getMutableResponse=function(){return Du(this,wnc,1)};KC.prototype.setResponse=function(a){return W(this,wnc,1,a)};KC.messageId="b.ListAttachmentEnrichmentsResponse";var xnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xnc,V);var LC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,LC.messageId)};Y(LC,V);LC.prototype.getResponse=function(){return X(this,xnc,1)};LC.prototype.getReadonlyResponse=function(){return nr(this,xnc,1)};LC.prototype.getMutableResponse=function(){return Du(this,xnc,1)};LC.prototype.setResponse=function(a){return W(this,xnc,1,a)};LC.messageId="b.ListIssueEnrichmentsResponse";var MC=function(){this.executor=n(yC)},ync=function(a,b){var c=(new rnc).setName(b);return a.executor.post({url:"action/enrichment_category/"+b+"/get",body:c,responseConstructor:JC}).pipe(y(function(d){return d.getCategory()}),y(lBa))},znc=function(a,b){var c="issueid:"+b;c=(new qnc).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:LC}).pipe(y(function(d){d=d.getResponse();return Wk(d,mnc,1,Fk()).map(oBa)}))},Anc=function(a,b,c,d,e){var f=
{};e&&(f["X-Restricted-Content-Limit"]=String(iBa(e)));e=(new onc).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:unc}).pipe(y(function(h){return pBa(X(h,tnc,1))}))},Bnc=function(a,b){var c="issueid:"+b;c=(new pnc).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:KC}).pipe(y(function(d){d=d.getResponse();
return Wk(d,tnc,1,Fk()).map(pBa)}))},Cnc=function(a,b,c,d){var e=(new nnc).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:IC}).pipe(y(function(){}))};MC.prototype.submitEnrichmentFeedback=function(a){var b=(new snc).setFeedback(sBa(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:IC}).pipe(y(function(){}))};
MC.\u0275fac=function(a){return new (a||MC)};MC.\u0275prov=Sc({token:MC,factory:MC.\u0275fac,providedIn:"root"});var NC=function(){GC.call(this);this.api=n(MC);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Pj};Y(NC,GC);NC.prototype.fetchOne=function(a){return Bnc(this.api,a).pipe(y(function(b){return{issueId:a,enrichments:b}}))};NC.\u0275fac=function(a){return new (a||NC)};NC.\u0275prov=Sc({token:NC,factory:NC.\u0275fac,providedIn:"root"});var OC={},tBa=(OC[1]="issue_id",OC[3]="type",OC[4]="status",OC[5]="priority",OC[6]="severity",OC[18]="title",OC[15]="modified_time",OC[14]="created_time",OC[17]="verified_time",OC[16]="resolved_time",OC[38]="deletion_time",OC[13]="blocked_by_issue_ids",OC[12]="blocking_issue_ids",OC[26]="vote_count",OC[28]="cc_count",OC[44]="collaborators_count",OC[2]="component_path",OC[27]="duplicate_count",OC[10]="ccs",OC[43]="collaborators",OC[11]="code_changes",OC[32]="postmortems",OC[8]="assignee",OC[9]="verifier",
OC[7]="reporter",OC[19]="found_in_versions",OC[20]="targeted_to_versions",OC[21]="verified_in_versions",OC[22]="in_prod",OC[30]="last_modifier",OC[25]="position",OC[24]="custom_field",OC[29]="modified_by",OC[31]="archived",OC[23]="canonical_issue_id",OC[33]="min_slo",OC[35]="assignment_slo",OC[36]="response_slo",OC[37]="closure_slo",OC[39]="team",OC[40]="estimate",OC[41]="estimate_total_open",OC[42]="estimate_total_complete",OC[45]="access_level",OC[46]="descendant_count",OC[47]="open_descendant_count",
OC[48]="one_day_view_count",OC[49]="seven_day_view_count",OC[50]="thirty_day_view_count",OC[51]="escalation_owner",OC[52]="relative_modified_time",OC[53]="alerts",OC[54]="timeframe",OC[55]="progress",OC[56]="triager",OC[57]="enrichment_categories",OC),PC={},vBa=(PC.issue_id=1,PC.type=3,PC.status=4,PC.priority=5,PC.severity=6,PC.title=18,PC.modified_time=15,PC.created_time=14,PC.verified_time=17,PC.resolved_time=16,PC.deletion_time=38,PC.blocked_by_issue_ids=13,PC.blocking_issue_ids=12,PC.vote_count=
26,PC.cc_count=28,PC.collaborators_count=44,PC.component_path=2,PC.duplicate_count=27,PC.ccs=10,PC.collaborators=43,PC.code_changes=11,PC.postmortems=32,PC.assignee=8,PC.verifier=9,PC.reporter=7,PC.found_in_versions=19,PC.targeted_to_versions=20,PC.verified_in_versions=21,PC.in_prod=22,PC.last_modifier=30,PC.position=25,PC.custom_field=24,PC.modified_by=29,PC.archived=31,PC.canonical_issue_id=23,PC.min_slo=33,PC.assignment_slo=35,PC.response_slo=36,PC.closure_slo=37,PC.team=39,PC.estimate=40,PC.estimate_total_open=
41,PC.estimate_total_complete=42,PC.access_level=45,PC.descendant_count=46,PC.open_descendant_count=47,PC.one_day_view_count=48,PC.seven_day_view_count=49,PC.thirty_day_view_count=50,PC.escalation_owner=51,PC.relative_modified_time=52,PC.alerts=53,PC.timeframe=54,PC.progress=55,PC.triager=56,PC.enrichment_categories=57,PC);var Fn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fn,V);Fn.prototype.getDisplayColumns=function(){return Ku(this,1)};Fn.prototype.setDisplayColumns=function(a){Ou(this,1,a)};var En=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(En,V);g=En.prototype;g.getHotlistId=function(){return Dl(this,1)};g.getHotlistId_asLegacyNumberOrString=function(){return zl(this,1)};g.setHotlistId=function(a){return Fm(this,1,a)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Lk(this,2,a)};g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Lk(this,3,a)};g.getArchived=function(){return kl(this,4)};
g.setArchived=function(a){return Xm(this,4,a)};g.getDefaultOrderBy=function(){return Oh(this,5)};g.setDefaultOrderBy=function(a){return Lk(this,5,a)};g.getDisplayPreferences=function(){return X(this,Fn,6)};g.setDisplayPreferences=function(a){return W(this,Fn,6,a)};g.getCreatedTime=function(){return X(this,bl,7)};g.setCreatedTime=function(a){return W(this,bl,7,a)};g.getModifiedTime=function(){return X(this,bl,8)};g.setModifiedTime=function(a){return W(this,bl,8,a)};
g.getOwnersList=function(){return Wk(this,Kk,9,Fk())};g.setOwnersList=function(a){return sn(this,9,a)};g.getEtag=function(){return sq(this,10)};g.setEtag=function(a){Im(this,10,a)};var Hn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hn,V);g=Hn.prototype;g.getSavedSearchId=function(){return Dl(this,1)};g.getSavedSearchId_asLegacyNumberOrString=function(){return zl(this,1)};g.setSavedSearchId=function(a){return Fm(this,1,a)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Lk(this,2,a)};g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Lk(this,3,a)};g.getQuery=function(){return Oh(this,4)};
g.setQuery=function(a){return Lk(this,4,a)};g.clearQuery=function(){tq(this,4)};g.getDefaultOrderBy=function(){return Oh(this,5)};g.setDefaultOrderBy=function(a){return Lk(this,5,a)};g.getDisplayPreferences=function(){return X(this,Fn,6)};g.setDisplayPreferences=function(a){return W(this,Fn,6,a)};g.getOwnersList=function(){return Wk(this,Kk,7,Fk())};g.setOwnersList=function(a){return sn(this,7,a)};var Jn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jn,V);g=Jn.prototype;g.getHotlistId=function(){return Dl(this,1)};g.getHotlistId_asLegacyNumberOrString=function(){return zl(this,1)};g.setHotlistId=function(a){return Fm(this,1,a)};g.getHotlist=function(){return X(this,En,2)};g.setHotlist=function(a){return W(this,En,2,a)};g.hasHotlist=function(){return nk(this,En,2)};var Ln=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ln,V);g=Ln.prototype;g.getSavedSearchId=function(){return Dl(this,1)};g.getSavedSearchId_asLegacyNumberOrString=function(){return zl(this,1)};g.setSavedSearchId=function(a){return Fm(this,1,a)};g.getSavedSearch=function(){return X(this,Hn,2)};g.setSavedSearch=function(a){return W(this,Hn,2,a)};g.hasSavedSearch=function(){return nk(this,Hn,2)};var Mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mn,V);Mn.prototype.getBookmarkGroupId_asLegacyNumberOrString=function(){return zl(this,1)};Mn.prototype.setBookmarkGroupId=function(a){return Fm(this,1,a)};Mn.prototype.getBookmarkGroup=function(){return X(this,Nn,2)};Mn.prototype.setBookmarkGroup=function(a){return W(this,Nn,2,a)};var Kn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kn,V);g=Kn.prototype;
g.getHotlist=function(){return Qm(this,Jn,1,In)};g.setHotlist=function(a){return Vm(this,1,In,a)};g.hasHotlist=function(){return an(this,Jn,1,In)};g.getSavedSearch=function(){return Qm(this,Ln,2,In)};g.setSavedSearch=function(a){return Vm(this,2,In,a)};g.hasSavedSearch=function(){return an(this,Ln,2,In)};g.getBookmarkGroup=function(){return Qm(this,Mn,3,In)};g.setBookmarkGroup=function(a){return Vm(this,3,In,a)};var Nn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};
Y(Nn,V);g=Nn.prototype;g.getBookmarkGroupId_asLegacyNumberOrString=function(){return zl(this,1)};g.setBookmarkGroupId=function(a){return Fm(this,1,a)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Lk(this,2,a)};g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Lk(this,3,a)};g.getArchived=function(){return kl(this,4)};g.setArchived=function(a){return Xm(this,4,a)};g.addItems=function(a,b){return Eu(this,5,Kn,a,b)};
g.setItems=function(a){Bu(this,5,Kn,a)};g.removeItems=function(a){return Fu(this,5,Kn,a)};g.getOwnersList=function(){return Wk(this,Kk,6,Fk())};g.setOwnersList=function(a){return sn(this,6,a)};var In=[1,2,3];var QC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QC.messageId)};Y(QC,V);QC.prototype.getIt=function(){return X(this,Nn,10)};QC.prototype.setIt=function(a){return W(this,Nn,10,a)};QC.messageId="b.BookmarkGroup";var Dnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Dnc.messageId)};Y(Dnc,V);Dnc.messageId="b.BookmarkGroupListResponse";var RC=function(){this.executor=n(zC)};RC.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:QC}).then(PBa)};RC.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:Dnc}).then(QBa)};RC.prototype.create=function(a){a=(new QC).setIt((new Nn).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:QC}).then(PBa)};
RC.prototype.update=function(a){var b=(new QC).setIt(LBa(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:QC}).then(PBa)};RC.\u0275fac=function(a){return new (a||RC)};RC.\u0275prov=Sc({token:RC,factory:RC.\u0275fac,providedIn:"root"});var SC=function(){GC.call(this,{freshUntil:3E5});this.bookmarkGroupApi=n(RC);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Y(SC,GC);SC.prototype.fetchOne=function(a){var b=this;return Oe(function(){return b.bookmarkGroupApi.get(a)})};SC.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)}))};SC.\u0275fac=function(a){return new (a||SC)};SC.\u0275prov=Sc({token:SC,factory:SC.\u0275fac,providedIn:"root"});var Enc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Enc.messageId)};Y(Enc,V);g=Enc.prototype;g.getAuthor=function(){return Oh(this,1)};g.setAuthor=function(a){Rl(this,1,a)};g.hasAuthor=function(){return ml(this,1)};g.getDescription=function(){return Oh(this,2)};g.setDescription=function(a){return Rl(this,2,a)};g.hasDescription=function(){return ml(this,2)};g.getPending=function(){return kl(this,3)};g.getTimestamp=function(){return Dl(this,4)};
g.getTimestamp_asLegacyNumberOrString=function(){return zl(this,4)};g.setTimestamp=function(a){return Hl(this,4,a)};g.hasTimestamp=function(){return yl(this,4)};Enc.messageId="b.ChangelistDetailsResponse";var TC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TC,V);TC.prototype.getIssueIdsList_asLegacyNumberOrString=function(){return s9b(this,1)};TC.prototype.getIssueIdsList_asString=function(){return El(this,1)};TC.prototype.setIssueIdsList=function(a){return Mc(this,1,a,Wb)};TC.prototype.setIssueIds=function(a){Pc(this,1,Wb,void 0,a,bc,1)};var Fnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Fnc.messageId)};Y(Fnc,V);g=Fnc.prototype;g.getQuery=function(){return X(this,TC,1)};g.setQuery=function(a){return W(this,TC,1,a)};g.clearQuery=function(){tq(this,1)};g.hasQuery=function(){return nk(this,TC,1)};g.getNextPageToken=function(){return Oh(this,2)};Fnc.messageId="b.ListChangelistsRequest";var SBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SBa,V);g=SBa.prototype;g.getAuthor=function(){return Oh(this,1)};g.setAuthor=function(a){Rl(this,1,a)};g.hasAuthor=function(){return ml(this,1)};g.getChangelistNumber=function(){return Ik(this,2)};g.getPending=function(){return kl(this,3)};g.getTimestamp=function(){return X(this,bl,4)};g.setTimestamp=function(a){return W(this,bl,4,a)};g.hasTimestamp=function(){return nk(this,bl,4)};
g.getIssueIdsList_asLegacyNumberOrString=function(){return s9b(this,5)};g.getIssueIdsList_asString=function(){return El(this,5)};g.setIssueIdsList=function(a){return Mc(this,5,a,Wb)};g.setIssueIds=function(a){Pc(this,5,Wb,void 0,a,bc,1)};var Gnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Gnc.messageId)};Y(Gnc,V);Gnc.prototype.getNextPageToken=function(){return Oh(this,2)};Gnc.messageId="b.ListChangelistsResponse";var Hnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Hnc.messageId)};Y(Hnc,V);Hnc.messageId="b.PendingChangelistsResponse";var UC=function(){this.executor=n(yC)};UC.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:Hnc}).pipe(y(RBa))};UC.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:Enc}).pipe(y(VBa))};
var Inc=function(a,b){var c=new Fnc,d=c.setQuery;b=(new TC).setIssueIdsList(b);b=Sl(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:Gnc}).pipe(y(UBa))};UC.\u0275fac=function(a){return new (a||UC)};UC.\u0275prov=Sc({token:UC,factory:UC.\u0275fac,providedIn:"root"});var VC=function(){this.changelistResources=n(UC)};VC.prototype.getPendingChangelistsForIssue=function(a){return Ge(this.changelistResources.getPendingChangelistsForIssue(a))};
VC.prototype.getChangelistDetails=function(a){return Ge(this.changelistResources.getChangelistDetails(a))};VC.\u0275fac=function(a){return new (a||VC)};VC.\u0275prov=Sc({token:VC,factory:VC.\u0275fac,providedIn:"root"});var WC=function(){FC.call(this);this.api=n(UC);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Y(WC,FC);WC.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?Ce({results:[]}):Inc(this.api,a).pipe(y(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Ic");};WC.\u0275fac=function(a){return new (a||WC)};WC.\u0275prov=Sc({token:WC,factory:WC.\u0275fac,providedIn:"root"});var XC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,XC.messageId)};Y(XC,V);XC.prototype.getIt=function(){return X(this,Dm,2)};XC.prototype.setIt=function(a){return W(this,Dm,2,a)};XC.messageId="b.AccessLimit";var YC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,YC.messageId)};Y(YC,V);YC.prototype.getIt=function(){return X(this,Imc,13)};YC.prototype.setIt=function(a){return W(this,Imc,13,a)};YC.messageId="b.AccessPolicy";var Qn=function(a){return"issues/"+a};var Jnc={ISSUE_ID:"issueId",ATTACHMENT_ID:"attachmentId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId",TRIAGE_ID:"triageId",SETTINGS_TAB:"settingsTab"},Fq={home:{routeDeclarationPath:"home",makeHref:function(){return"/home"}},viewDashboard:{routeDeclarationPath:"dashboard/:groupId",makeHref:function(a){return"/dashboard/"+a}},triageSettings:{routeDeclarationPath:"triage",makeHref:function(){return"/triage"}},viewTriageDashboard:{routeDeclarationPath:"teams/:teamId/triage/:triageId/dashboard",
makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/dashboard"}},viewIssueThemes:{routeDeclarationPath:"teams/:teamId/triage/:triageId/issue-themes",makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/issue-themes"}},viewTriage:{routeDeclarationPath:"teams/:teamId/triage/:triageId/:phase/:subphase",makeHref:function(a,b,c,d){return"/teams/"+a+"/triage/"+b+"/"+(c===void 0?"new":c)+"/"+(d===void 0?"all":d)}},createSlo:{routeDeclarationPath:"slos/new",makeHref:function(){return"/slos/new"}},
viewSlo:{routeDeclarationPath:"slos/:sloId",makeHref:function(a){return"/slos/"+a}},editSlo:{routeDeclarationPath:"slos/:sloId/edit",makeHref:function(a){return"/slos/"+a+"/edit"}},listSlos:{routeDeclarationPath:"slos",makeHref:function(){return"/slos"}},listHotlists:{routeDeclarationPath:"hotlists",makeHref:function(){return"/hotlists"}},createHotlist:{routeDeclarationPath:"hotlists/new",makeHref:function(){return"/hotlists/new"}},viewHotlist:{routeDeclarationPath:"hotlists/:hotlistId",makeHref:function(a){return"/hotlists/"+
a}},editHotlist:{routeDeclarationPath:"hotlists/:hotlistId/edit",makeHref:function(a){return"/hotlists/"+a+"/edit"}},viewIssue:{routeDeclarationPath:"issues/:issueId",makeHref:function(a){return"/issues/"+a}},listIssues:{routeDeclarationPath:"issues",makeHref:function(a){return a==null?"/issues":"/issues?"+bCa(a)}},listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+
bCa(a)}},createIssueChromeWizard:{routeDeclarationPath:"issues/wizard",makeHref:function(){return"/issues/wizard"}},issueDependencies:{makeHref:function(a){return"/issues/"+a+"/dependencies"}},createComponent:{routeDeclarationPath:"components/new",makeHref:function(a){return a==null?"/components/new":"/components/new?"+bCa({parentId:a})}},editComponent:{routeDeclarationPath:"components/:componentId/edit",makeHref:function(a){return"/components/"+a+"/edit"}},editComponentAccess:{routeDeclarationPath:"components/:componentId/edit#access",
makeHref:function(a){return"/components/"+a+"/edit#access"}},editComponentFields:{routeDeclarationPath:"components/:componentId/edit#customFields",makeHref:function(a){return"/components/"+a+"/edit#customFields"}},editComponentTemplates:{routeDeclarationPath:"components/:componentId/edit#templates",makeHref:function(a){return"/components/"+a+"/edit#templates"}},listComponentsGlobal:{routeDeclarationPath:"components/all",makeHref:function(){return"/components/all"}},listComponents:{routeDeclarationPath:"components",
makeHref:function(){return"/components"}},editTeam:{routeDeclarationPath:"teams/:teamId/edit",makeHref:function(a,b){return"/teams/"+a+"/edit#"+b}},createBookmarkGroup:{routeDeclarationPath:"bookmark-groups/new",makeHref:function(){return"/bookmark-groups/new"}},viewBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId",makeHref:function(a){return"/bookmark-groups/"+a}},editBookmarkGroup:{routeDeclarationPath:"bookmark-groups/:groupId/edit",makeHref:function(a){return"/bookmark-groups/"+a+
"/edit"}},viewSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId",makeHref:function(a){return"/savedsearches/"+a}},editSavedSearch:{routeDeclarationPath:"savedsearches/:savedSearchId/edit",makeHref:function(a){return"/savedsearches/"+a+"/edit"}},settings:{routeDeclarationPath:"settings",makeHref:function(){return"/settings"}},settingsTab:{routeDeclarationPath:"settings/:settingsTab?",makeHref:function(a){return"/settings/"+a}},viewAttachment:{routeDeclarationPath:"viewattachment/:issueId/:attachmentId",
makeHref:function(a,b,c){return"/viewattachment/"+a+"/"+b+"?"+bCa({mimeType:c})}}};var Knc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Knc.messageId)};Y(Knc,V);Knc.messageId="b.CheckPermissionResponse";var ZC=function(){this.executor=n(yC)};g=ZC.prototype;g.get=function(a,b){a=Cn(Rn(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:YC}).pipe(y(YBa))};
g.update=function(a,b,c){a=Cn(Rn(a,b));var d;b=new YC;var e=b.setIt;c=Object.assign({},c,{implicitAccess:(d=c.implicitAccess)!=null?d:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null});var f,h,k,q,u,A;d=new Imc;var G=((f=c.admins)!=null?f:[]).map(Bm);f=sn(d,2,G).setAppendersList(((h=c.appenders)!=null?h:[]).map(Bm));h=((k=c.editors)!=null?k:[]).map(Bm);k=sn(f,4,h).setReadersList(((q=c.readers)!=null?q:[]).map(Bm));q=((u=c.restrictedReaders)!=null?u:[]).map(Bm);
u=sn(k,11,q);q=((A=c.restrictedPlusReaders)!=null?A:[]).map(Bm);A=sn(u,12,q);if(c.implicitAccess){u=A.setImplicitAccess;a:switch(c.implicitAccess){case "IMPLICIT_ACCESS_UNSPECIFIED":c=0;break a;case "ALLOW":c=1;break a;case "DENY":c=2;break a;default:throw Error("hc");}u.call(A,c)}b=e.call(b,A);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:YC}).pipe(y(YBa))};
g.checkPermission=function(a,b,c,d){a=Cn(a.join(","));b=Cn(b);c=Cn(Rn(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:Knc}).pipe(y(XBa))};g.setAccessLimit=function(a,b,c){a=Cn(Rn(a,b));c=(new XC).setIt(aza(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:XC}).pipe(y(WBa))};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(y(function(b){return b.implicitAccess==="ALLOW"}))};
ZC.\u0275fac=function(a){return new (a||ZC)};ZC.\u0275prov=Sc({token:ZC,factory:ZC.\u0275fac,providedIn:"root"});var $C=function(){this.observableApi=n(ZC)};g=$C.prototype;g.get=function(a,b){return Ge(this.observableApi.get(a,b))};g.update=function(a,b,c){return Ge(this.observableApi.update(a,b,c))};g.checkPermission=function(a,b,c,d){return Ge(this.observableApi.checkPermission(a,b,c,d))};g.setAccessLimit=function(a,b,c){return Ge(this.observableApi.setAccessLimit(a,b,c))};
g.checkComponentImplicitAccessEnabled=function(a){return Ge(this.observableApi.checkComponentImplicitAccessEnabled(a))};$C.\u0275fac=function(a){return new (a||$C)};$C.\u0275prov=Sc({token:$C,factory:$C.\u0275fac,providedIn:"root"});var aD=function(){GC.call(this);this.accessPolicyApi=n(ZC);this.recordType="componentAccessPolicy";this.isEqual=Pj;this.idForRecord=function(a){return a.id}};Y(aD,GC);aD.prototype.fetchOne=function(a){return this.accessPolicyApi.get("COMPONENT",a).pipe(y(function(b){return Object.assign({},{id:a},b)}),Pf(function(){return Ce(void 0)}))};aD.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("COMPONENT",b,a).pipe(y(function(c){return Object.assign({},{id:b},c)}))};
aD.\u0275fac=function(a){return new (a||aD)};aD.\u0275prov=Sc({token:aD,factory:aD.\u0275fac,providedIn:"root"});var bD=function(){};bD.prototype.adapt=function(a){var b,c=new Lnc(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};bD.\u0275fac=function(a){return new (a||bD)};bD.\u0275prov=Sc({token:bD,factory:bD.\u0275fac,providedIn:"root"});
var Lnc=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new bg;this.inputs$=this.inputSubject.pipe(Eja(this.inputSubject.pipe(Of(this.bufferTimeMs,qp))));this.removeDuplicates=y(function(f){return[].concat(p(new Set(f)))});this.limitInputSize=y(function(f){for(var h=l(f.slice(e.maxBatchSize)),k=h.next();!k.done;k=h.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=oe(Le(function(f){try{return e.batchCall(f).pipe(Uf(),
y(function(h){return{inputs:f,batchResponse:h,error:void 0}}),Pf(function(h){return Ce({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return Ce({inputs:f,batchResponse:void 0,error:h})}}),Zja());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
Lnc.prototype.get=function(a){var b=this;return new pe(function(c){c=b.batchResults$.pipe(Ve(function(d){return d.inputs.has(a)}),Uf(),y(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw d.error;})).subscribe(c);b.inputSubject.next(a);return c})};var Wn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wn,V);Wn.prototype.setFieldId=function(a){return W(this,Mm,1,a)};var Vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vn,V);g=Vn.prototype;g.getInherit=function(){return kl(this,1)};g.setInherit=function(a){return Xm(this,1,a)};g.getId=function(){return Dl(this,2)};g.getId_asLegacyNumberOrString=function(){return zl(this,2)};g.getId_asString=function(){return Gl(this,2)};g.setId=function(a){return Fm(this,2,a)};var Tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tn,V);g=Tn.prototype;g.getInherit=function(){return kl(this,1)};g.setInherit=function(a){return Xm(this,1,a)};g.getId=function(){return Dl(this,2)};g.getId_asLegacyNumberOrString=function(){return zl(this,2)};g.getId_asString=function(){return Gl(this,2)};g.setId=function(a){return Fm(this,2,a)};g.getSourceTeamId=function(){return Dl(this,4)};g.getSourceTeamId_asLegacyNumberOrString=function(){return zl(this,4)};
g.setSourceTeamId=function(a){return Fm(this,4,a)};g.getComment=function(){return Oh(this,3)};g.setComment=function(a){return Lk(this,3,a)};var Sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sn,V);g=Sn.prototype;g.getVersion=function(){return Ik(this,1)};g.setVersion=function(a){return $k(this,1,a)};g.getSlo=function(){return X(this,Tn,2)};g.setSlo=function(a){return W(this,Tn,2,a)};g.hasSlo=function(){return nk(this,Tn,2)};g.getEscalationOwner=function(){return X(this,Kk,6)};g.setEscalationOwner=function(a){W(this,Kk,6,a)};g.getInheritEscalationOwner=function(){return kl(this,8)};
g.setInheritEscalationOwner=function(a){Xm(this,8,a)};var Un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Un,V);Un.prototype.getUser=function(){return X(this,Kk,1)};Un.prototype.setUser=function(a){return W(this,Kk,1,a)};Un.prototype.hasUser=function(){return nk(this,Kk,1)};var cD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cD,V);g=cD.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return zl(this,1)};g.getId_asString=function(){return Gl(this,1)};g.setId=function(a){return Fm(this,1,a)};g.getPathIdsList_asLegacyNumberOrString=function(){return Uk(this,2,Fk())};g.getPathIdsList_asString=function(){return El(this,2)};g.setPathIdsList=function(a){return jp(this,2,a)};
g.getName=function(){return Oh(this,3)};g.setName=function(a){return Lk(this,3,a)};g.getPathNamesList=function(a){return Ek(this,4,Fk(a))};g.setPathNamesList=function(a){return Mk(this,4,a)};g.getMembersList=function(){return Wk(this,Un,6,Fk())};g.setMembersList=function(a){return sn(this,6,a)};g.getDescription=function(){return Oh(this,8)};g.setDescription=function(a){return Lk(this,8,a)};g.getDeleted=function(){return kl(this,9)};var kCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kCa,V);g=kCa.prototype;g.getTeamId_asLegacyNumberOrString=function(){return zl(this,1)};g.getTeamId_asString=function(){return Gl(this,1)};g.setTeamId=function(a){return Fm(this,1,a)};g.getScore=function(){return Pm(this,2)};g.setScore=function(a){return on(this,2,a)};var Xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xn,V);Xn.prototype.getComponentPathNames=function(a){return Ku(this,2,a)};var $n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($n,V);g=$n.prototype;g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};g.setComponentId=function(a){return Fm(this,2,a)};g.getName=function(){return Oh(this,4)};g.setName=function(a){return Lk(this,4,a)};g.getDescription=function(){return Oh(this,5)};
g.setDescription=function(a){return Lk(this,5,a)};g.getIsArchived=function(){return kl(this,8)};g.setIsArchived=function(a){return Xm(this,8,a)};g.getAccessLimit=function(){return X(this,Dm,9)};g.setAccessLimit=function(a){return W(this,Dm,9,a)};g.setCommentEditState=function(a){return Nk(this,10,a)};g.getSlo=function(){return X(this,jn,13)};g.setSlo=function(a){return W(this,jn,13,a)};g.hasSlo=function(){return nk(this,jn,13)};g.getTeam=function(){return X(this,Vn,16)};
g.setTeam=function(a){W(this,Vn,16,a)};g.hasTeam=function(){return nk(this,Vn,16)};g.getEffortSpec=function(){return X(this,Ym,18)};g.getTeamSuggestionsList=function(){return Wk(this,kCa,19,Fk())};g.setTeamSuggestionsList=function(a){sn(this,19,a)};g.getTrackerId_asLegacyNumberOrString=function(){return zl(this,20)};g.getTrackerId_asString=function(){return Gl(this,20)};g.setTrackerId=function(a){Fm(this,20,a)};var ACa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ACa,V);g=ACa.prototype;g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};g.setComponentId=function(a){return Fm(this,2,a)};g.getTemplateId_asLegacyNumberOrString=function(){return zl(this,3)};g.setTemplateId=function(a){return Fm(this,3,a)};g.getName=function(){return Oh(this,4)};
g.setName=function(a){return Lk(this,4,a)};g.getDescription=function(){return Oh(this,5)};g.setDescription=function(a){return Lk(this,5,a)};g.getIssueState=function(){return X(this,xn,6)};g.setIssueState=function(a){return W(this,xn,6,a)};g.getComment=function(){return Oh(this,7)};g.setComment=function(a){return Lk(this,7,a)};g.getFormattingMode=function(){return pl(this,8)};g.setFormattingMode=function(a){return Nk(this,8,a)};var dD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dD,V);dD.prototype.getComponentId=function(){return Dl(this,2)};dD.prototype.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};dD.prototype.getComponentId_asString=function(){return Gl(this,2)};dD.prototype.setComponentId=function(a){return Fm(this,2,a)};var ao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ao.messageId)};Y(ao,V);ao.prototype.getIt=function(){return X(this,$n,28)};ao.prototype.setIt=function(a){return W(this,$n,28,a)};ao.messageId="b.Component";var eD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,eD.messageId)};Y(eD,V);eD.prototype.getIt=function(){return X(this,dD,1)};eD.prototype.setIt=function(a){return W(this,dD,1,a)};eD.messageId="b.ListPopularRoutingComponentsRequest";var bo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bo,V);bo.prototype.getIt=function(){return X(this,ACa,7)};bo.prototype.setIt=function(a){return W(this,ACa,7,a)};var Mnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Mnc.messageId)};Y(Mnc,V);Mnc.messageId="b.UpdateComponentSloRequest";var Nnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Nnc.messageId)};Y(Nnc,V);Nnc.messageId="b.UpdateComponentTeamRequest";var Onc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Onc.messageId)};Y(Onc,V);Onc.prototype.setComponent=function(a){return W(this,ao,1,a)};Onc.messageId="b.CreateComponentResponse";var Pnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Pnc.messageId)};Y(Pnc,V);Pnc.prototype.setComponent=function(a,b){return Bu(this,1,ao,a,b)};Pnc.messageId="b.ListComponentsResponse";var Qnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qnc,V);Qnc.prototype.getComponentsList=function(){return Wk(this,$n,1,Fk())};var fD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fD.messageId)};Y(fD,V);fD.prototype.getIt=function(){return X(this,Qnc,1)};fD.prototype.setIt=function(a){return W(this,Qnc,1,a)};fD.messageId="b.ListPopularRoutingComponentsResponse";var FCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FCa,V);FCa.prototype.getComponentPath=function(){return Oh(this,1)};var Rnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Rnc.messageId)};Y(Rnc,V);Rnc.messageId="b.SubcomponentsResponse";var gD=function(){this.executor=n(yC);this.activeSession=n(Es)};g=gD.prototype;g.get=function(a){return this.query({id:[a]}).pipe(y(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:String(a)};if(b===void 0?0:b)a.includearchived=!0;return this.query(a)};g.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:Rnc}).pipe(y(GCa))};
g.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new eD).setIt((new dD).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:fD}).pipe(y(DCa))};g.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:ao}).pipe(y(Zn))};
g.query=function(a){var b={};a.id&&(b.id=a.id.map(String));a.parentId&&(b.parentId=String(a.parentId));a.query&&(b.query=a.query);a.includearchived&&(b.includearchived="true");var c;(a=(c=this.activeSession.getTracker())==null?void 0:c.trackerId)&&(b.currentTrackerId=a);return this.executor.get({url:"action/components",options:{params:b},responseConstructor:Pnc}).pipe(y(CCa))};
g.create=function(a){a=vCa(a);return this.executor.post({url:"action/components",body:a,responseConstructor:Onc}).pipe(y(function(b){return Zn(X(b,ao,1))}))};
g.update=function(a){var b=a.componentId,c=new ao,d=c.setIt,e=(new $n).setComponentId(a.componentId);e=Fm(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,h=new Xn;f.componentPathId&&jp(h,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);Mk(h,2,k)}f.allCustomField&&(f=f.allCustomField.map(Jza),sn(h,5,f));W(e,Xn,7,h)}a.accessLimit&&e.setAccessLimit(aza(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);Fm(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(hAa(a.slo));Fm(e,14,a.bugscopeSloId);a.retentionSettings&&(h=pza(a.retentionSettings),W(e,Gm,15,h));a.fieldOrdering&&Nk(e,17,Okc[a.fieldOrdering]);a.effortSpec&&(h=Rza(a.effortSpec),W(e,Ym,18,h));a.team&&e.setTeam(iCa(a.team));var q;e.setTeamSuggestionsList(((q=a.teamSuggestions)!=null?q:[]).map(lCa));a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&Nk(e,21,oCa(a.spamProtection));
a=d.call(c,e);return this.executor.post({url:"action/components/"+b,body:a,responseConstructor:ao}).pipe(y(Zn))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:ao}).pipe(y(Zn))};g.updateSlo=function(a,b){var c=new Mnc;b=hAa(b);c=W(c,jn,2,b);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:ao}).pipe(y(Zn))};
g.updateTeam=function(a,b){var c=new Nnc;b=iCa(Object.assign({},b));c=W(c,Vn,2,b);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:ao}).pipe(y(Zn))};gD.\u0275fac=function(a){return new (a||gD)};gD.\u0275prov=Sc({token:gD,factory:gD.\u0275fac,providedIn:"root"});var hD=function(){this.observableApi=n(gD)};g=hD.prototype;g.get=function(a){return Ge(this.observableApi.get(a))};
g.getChildren=function(a,b){return Ge(this.observableApi.getChildren(a,b===void 0?!1:b))};g.getDescendants=function(a){return Ge(this.observableApi.getDescendants(a))};g.getPopularRoutingTargets=function(a){return Ge(this.observableApi.getPopularRoutingTargets(a))};g.fetchComponent=function(a){return Ge(this.observableApi.fetchComponent(a))};g.query=function(a){return Ge(this.observableApi.query(a))};g.create=function(a){return Ge(this.observableApi.create(a))};g.update=function(a){return Ge(this.observableApi.update(a))};
g.move=function(a,b){return Ge(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return Ge(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return Ge(this.observableApi.updateTeam(a,b))};hD.\u0275fac=function(a){return new (a||hD)};hD.\u0275prov=Sc({token:hD,factory:hD.\u0275fac,providedIn:"root"});var jD=function(){GC.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=n(iD);this.recordType="component";this.idForRecord=function(a){return String(a.componentId)}};Y(jD,GC);jD.prototype.fetchOne=function(a){return a==="0"?Ce(void 0):this.batchedComponentApi.get(a).pipe(Pf(function(){return Ce(void 0)}))};jD.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};
jD.\u0275fac=function(a){return new (a||jD)};jD.\u0275prov=Sc({token:jD,factory:jD.\u0275fac,providedIn:"root"});var iD=function(){var a=this;this.observableComponentApi=n(gD);this.batchApiAdapter=n(bD);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
iD.prototype.call=function(a){return a.size===1?this.observableComponentApi.fetchComponent([].concat(p(a))[0]).pipe(y(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(p(a))}).pipe(y(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};iD.prototype.splitBatch=function(a,b){return b.get(Number(a))};iD.\u0275fac=function(a){return new (a||iD)};iD.\u0275prov=Sc({token:iD,factory:iD.\u0275fac,providedIn:"root"});var Snc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Snc.messageId)};Y(Snc,V);Snc.messageId="b.ListTemplatesResponse";var kD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kD.messageId)};Y(kD,V);kD.messageId="b.TemplateResponse";var lD=function(){this.executor=n(yC)};g=lD.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:kD}).pipe(y(HCa))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Snc}).pipe(y(ICa))};g.create=function(a,b){b=BCa(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:kD,body:b}).pipe(y(HCa))};
g.update=function(a,b,c){c=BCa(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:kD,body:c}).pipe(y(HCa))};g.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};lD.\u0275fac=function(a){return new (a||lD)};lD.\u0275prov=Sc({token:lD,factory:lD.\u0275fac,providedIn:"root"});var mD=function(){this.observableApi=n(lD)};g=mD.prototype;g.get=function(a,b){return Ge(this.observableApi.get(a,b))};
g.query=function(a){return Ge(this.observableApi.query(a))};g.create=function(a,b){return Ge(this.observableApi.create(a,b))};g.update=function(a,b,c){return Ge(this.observableApi.update(a,b,c))};g.delete=function(a,b){return Ge(this.observableApi.delete(a,b))};mD.\u0275fac=function(a){return new (a||mD)};mD.\u0275prov=Sc({token:mD,factory:mD.\u0275fac,providedIn:"root"});var nD=function(){this.bookmarkGroupModified=new bg;this.commentSubmitted=new bg;this.commentRendered=new bg;this.componentModified=new bg;this.contactChipsRevertChanges=new bg;this.customFieldsModified=new bg;this.dashboardPanels={moveDown:new bg,moveUp:new bg,moveToTop:new bg,moveToBottom:new bg,remove:new bg};this.favoritesModified=new bg;this.hotlistCreated=new bg;this.onClickAppMenuIcon=new bg;this.openEditField=new bg;this.sidebarWidthChanged=new bg;this.hotlistChanged=new bg;this.savedSearchModified=
new bg;this.sidebarUpdated=new bg;this.topBarEvents={browseComponents:new bg,manageHotlists:new bg,manageSlos:new bg,setDensity:new bg,openSettings:new bg};this.templateModified=new bg;this.issueViewed=new bg;this.issueEdited=new bg;this.focusCommentBox=new bg;this.scrollToCommentBox=new bg;this.recaptchaSubmitted=new bg;this.missionControlTaskCount=new tj(void 0);this.openHelpMeFixSidebar=new bg;this.closeHelpMeFixSidebar=new bg;this.didShowIssueHovercard=new bg};
nD.\u0275fac=function(a){return new (a||nD)};nD.\u0275prov=Sc({token:nD,factory:nD.\u0275fac,providedIn:"root"});var oD=function(){GC.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=n(mD);this.appEvents=n(nD);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(Ve(Tk),y(function(c){return c.templates}),y(function(c){var d;return(d=c.find(function(e){return e.default}))!=null?d:c[0]}))};this.appEvents.templateModified.pipe(Ve(function(b){return!!b&&b!=="0"})).subscribe(function(b){a.poke(b)})};
Y(oD,GC);oD.prototype.fetchOne=function(a){var b=this;return Oe(function(){return b.templatesApi.query(Number(a)).then(function(c){return{componentId:a,templates:c}})})};oD.\u0275fac=function(a){return new (a||oD)};oD.\u0275prov=Sc({token:oD,factory:oD.\u0275fac,providedIn:"root"});var Tnc=function(a,b){this.childIterator_=a[ya.Symbol.iterator]();this.mapFn_=b};Tnc.prototype[Symbol.iterator]=function(){return this};Tnc.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};var Unc=function(a,b){return new Tnc(a,b)};var pD=function(){};pD.prototype.next=function(){return Vnc};var Vnc={done:!0,value:void 0};pD.prototype.__iterator__=function(){return this};var Wnc=function(a){if(a instanceof qD||a instanceof rD||a instanceof sD)return a;if(typeof a.next=="function")return new qD(function(){return a});if(typeof a[Symbol.iterator]=="function")return new qD(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new qD(function(){return a.__iterator__()});throw Error("Lc");},qD=function(a){this.func_=a};qD.prototype.__iterator__=function(){return new rD(this.func_())};qD.prototype[Symbol.iterator]=function(){return new sD(this.func_())};
qD.prototype.toEs6=function(){return new sD(this.func_())};var rD=function(a){this.iter_=a};Y(rD,pD);rD.prototype.next=function(){return this.iter_.next()};rD.prototype[Symbol.iterator]=function(){return new sD(this.iter_)};rD.prototype.toEs6=function(){return new sD(this.iter_)};var sD=function(a){qD.call(this,function(){return a});this.iter_=a};Y(sD,qD);sD.prototype.next=function(){return this.iter_.next()};var tD=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("pb");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=tD.prototype;g.getCount=function(){return this.size};g.getValues=function(){Xnc(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){Xnc(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return uD(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(uD(this.map_,c)&&this.map_[c]==a)return!0}return!1};g.equals=function(a){if(this===a)return!0;if(this.size!=a.getCount())return!1;var b=Ync;Xnc(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Ync=function(a,b){return a===b};tD.prototype.isEmpty=function(){return this.size==0};
tD.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};tD.prototype.remove=function(a){return this.delete(a)};tD.prototype.delete=function(a){return uD(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&Xnc(this),!0):!1};
var Xnc=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];uD(a.map_,d)&&(a.keys_[c++]=d);b++}a.keys_.length=c}if(a.size!=a.keys_.length){b={};for(d=c=0;c<a.keys_.length;){var e=a.keys_[c];uD(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};g=tD.prototype;g.get=function(a,b){return uD(this.map_,a)?this.map_[a]:b};g.set=function(a,b){uD(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};
g.addAll=function(a){if(a instanceof tD)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};g.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new tD(this)};g.keys=function(){return Wnc(this.__iterator__(!0)).toEs6()};g.values=function(){return Wnc(this.__iterator__(!1)).toEs6()};g.entries=function(){var a=this;return Unc(this.keys(),function(b){return[b,a.get(b)]})};
g.__iterator__=function(a){Xnc(this);var b=0,c=this.version_,d=this,e=new pD;e.next=function(){if(c!=d.version_)throw Error("Mc");if(b>=d.keys_.length)return Vnc;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var uD=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var vD=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new tD;this.head_=new Znc("");this.head_.next=this.head_.prev=this.head_},aoc=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),$nc(a,b));return b};vD.prototype.get=function(a,b){return(a=aoc(this,a))?a.value:b};var boc=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=vD.prototype;g.set=function(a,b){var c=aoc(this,a);c?c.value=b:(c=new Znc(a,b),this.map_.set(a,c),$nc(this,c))};g.peek=function(){return this.head_.next.value};
g.shift=function(){return coc(this,this.head_.next)};g.pop=function(){return coc(this,this.head_.prev)};g.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};g.removeNode=function(a){a.remove();this.map_.remove(a.key)};g.getCount=function(){return this.map_.getCount()};g.isEmpty=function(){return this.map_.isEmpty()};g.getKeys=function(){return this.map(function(a,b){return b})};g.getValues=function(){return this.map(function(a){return a})};
g.contains=function(a){return this.some(function(b){return b==a})};g.containsKey=function(a){return this.map_.containsKey(a)};g.clear=function(){doc(this,0)};g.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};g.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};g.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
g.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var $nc=function(a,b){a.cache_?(b.next=a.head_.next,b.prev=a.head_,a.head_.next=b,b.next.prev=b):(b.prev=a.head_.prev,b.next=a.head_,a.head_.prev=b,b.prev.next=b);a.maxCount_!=null&&doc(a,a.maxCount_)},doc=function(a,b){for(;a.getCount()>b;){var c=a.cache_?a.head_.prev:a.head_.next;a.removeNode(c);a.evictionCallback_&&a.evictionCallback_(c.key,c.value)}},coc=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},Znc=function(a,b){this.key=a;this.value=b};
Znc.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var wD=function(){this.caches=new Map};wD.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Nc`"+a);b=new eoc(b==null?void 0:b.capacity);this.caches.set(a,b);return b};wD.prototype.get=function(a){return this.caches.get(a)};wD.\u0275fac=function(a){return new (a||wD)};wD.\u0275prov=Sc({token:wD,factory:wD.\u0275fac,providedIn:"root"});var eoc=function(a){this.lruCache=new vD(a,!0)};eoc.prototype.get=function(a){return this.lruCache.get(a)};
eoc.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};eoc.prototype.remove=function(a){this.lruCache.remove(a)};eoc.prototype.removeAll=function(){this.lruCache.clear()};var co=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,co.messageId)};Y(co,V);co.prototype.getIt=function(){return X(this,En,18)};co.prototype.setIt=function(a){return W(this,En,18,a)};co.messageId="b.Hotlist";var foc=RegExp("action/issues/([0-9]+)/"),goc=new yd("ETAG_URL_TRANSFORMERS"),hoc=["POST","PUT","DELETE"],yD=function(){this.etagStore=n(xD)};yD.prototype.intercept=function(a,b){if(hoc.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}foc.exec(a.url);return ioc(this,a,b)};var ioc=function(a,b,c){return c.handle(b).pipe(hg(function(d){d instanceof jA&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
yD.\u0275fac=function(a){return new (a||yD)};yD.\u0275prov=Sc({token:yD,factory:yD.\u0275fac,providedIn:"root"});var xD=function(){this.transformers=n(goc,{optional:!0});this.etagStore={}};xD.prototype.setEtag=function(a,b){b!=null&&(a=joc(this,a.url),this.etagStore[a]=b)};xD.prototype.getEtag=function(a){a=joc(this,a.url);return this.etagStore[a]};var joc=function(a,b){var c;a=l((c=a.transformers)!=null?c:[]);for(c=a.next();!c.done;c=a.next())if(c=c.value,(c=c(b))&&c!==b)return c;return b};
xD.\u0275fac=function(a){return new (a||xD)};xD.\u0275prov=Sc({token:xD,factory:xD.\u0275fac,providedIn:"root"});var koc={provide:Hic,useClass:yD,multi:!0};var Gn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gn,V);g=Gn.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getPosition=function(){return Ik(this,2)};g.setPosition=function(a){return $k(this,2,a)};g.getIssue=function(){return X(this,vo,3)};g.setIssue=function(a){return W(this,vo,3,a)};var loc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(loc,V);g=loc.prototype;g.getHotlistId=function(){return Dl(this,1)};g.getHotlistId_asLegacyNumberOrString=function(){return zl(this,1)};g.setHotlistId=function(a){return Fm(this,1,a)};g.setOrderBy=function(a){return Lk(this,2,a)};g.setPageSize=function(a){return $k(this,3,a)};g.setPageToken=function(a){return Lk(this,4,a)};g.getFilter=function(){return Oh(this,5)};g.setFilter=function(a){return Lk(this,5,a)};
g.setView=function(a){return Nk(this,6,a)};g.setIssueDescriptionView=function(a){return Nk(this,7,a)};g.getQuery=function(){return Oh(this,8)};g.setQuery=function(a){return Lk(this,8,a)};g.clearQuery=function(){tq(this,8)};var moc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(moc,V);g=moc.prototype;g.getHotlistId=function(){return Dl(this,1)};g.getHotlistId_asLegacyNumberOrString=function(){return zl(this,1)};g.setHotlistId=function(a){return Fm(this,1,a)};g.getIssueId=function(){return Dl(this,2)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,2)};g.getIssueId_asString=function(){return Gl(this,2)};g.setIssueId=function(a){return Fm(this,2,a)};var zD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zD.messageId)};Y(zD,V);zD.prototype.getIt=function(){return X(this,loc,1)};zD.prototype.setIt=function(a){return W(this,loc,1,a)};zD.messageId="b.ListHotlistEntriesRequest";var AD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(AD,V);AD.prototype.getNextPageToken=function(){return Oh(this,2)};AD.prototype.getTotalSize=function(){return Ik(this,3)};AD.prototype.getTotalSizeAccurate=function(){return kl(this,4)};AD.prototype.getMaySkipResults=function(){return kl(this,5)};var BD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,BD.messageId)};Y(BD,V);BD.prototype.getIt=function(){return X(this,AD,1)};BD.prototype.setIt=function(a){return W(this,AD,1,a)};BD.messageId="b.ListHotlistEntriesResponse";var CD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,CD.messageId)};Y(CD,V);CD.prototype.addHotlists=function(a){Eu(this,1,co,a)};CD.prototype.removeHotlists=function(a){return Fu(this,1,co,a)};CD.messageId="b.ListHotlistsResponse";var ED=function(){this.hotlistApi=n(DD);var a=n(wD);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};g=ED.prototype;g.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};g.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};g.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};g.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
g.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};g.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};g.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};ED.\u0275fac=function(a){return new (a||ED)};ED.\u0275prov=Sc({token:ED,factory:ED.\u0275fac,providedIn:"root"});var FD=function(){this.executor=n(yC);this.etagStore=n(xD);this.bufferTimeMs=50};
FD.prototype.call=function(a){a=Array.from(a).map(String);return a.length===0?Ce(new Map):a.length===1?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:co}).pipe(y(eo),y(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:CD,options:{params:{id:a}}}).pipe(y(function(b){var c=new Map;b=l(Wk(b,co,1,Fk()).map(eo));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),d);return c}))};
FD.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=joc(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};FD.\u0275fac=function(a){return new (a||FD)};FD.\u0275prov=Sc({token:FD,factory:FD.\u0275fac,providedIn:"root"});var GD=function(){this.executor=n(yC);this.batchApiConfig=n(FD);this.batchApiAdapter=n(bD);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};g=GD.prototype;
g.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(fg(function(c){return c?Ce(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:co}).pipe(y(eo))}))};g.bulkLoad=function(a){var b=this;return a.length===0?Ce([]):Pe(a.map(function(c){return b.adaptedGet(String(c))})).pipe(y(function(c){return c.filter(Tk)}))};
g.repositionHotlistIssue=function(a,b,c){var d=(new moc).setHotlistId(Number(a)).setIssueId(b);b=(new Gn).setIssueId(Number(b)).setPosition(c);d=W(d,Gn,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};g.createHotlist=function(a,b){a=(new En).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new co).setIt(a),responseConstructor:co}).pipe(y(eo))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:CD,options:{params:{q:a}}}).pipe(y(function(b){var c;return((c=Wk(b,co,1,Fk()))!=null?c:[]).map(eo)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:JCa(b),responseConstructor:co}).pipe(y(eo))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:JCa(b),options:{headers:c},responseConstructor:co}).pipe(y(eo))};
g.getPagedHotlistContent=function(a,b,c,d,e){var f={};e&&(f.trackerIds=e);d=d.map(function(h){return{field:{type:h.fieldId.type,customFieldId:h.fieldId.customFieldId,customFieldName:h.fieldId.customFieldName},direction:h.direction}});b=(new loc).setHotlistId(a).setOrderBy(BBa(d)).setPageSize(c).setPageToken("start_index:"+c*(b-1));return this.executor.post({url:"action/hotlists/"+a+"/entries",options:{params:Object.assign({},f)},body:(new zD).setIt(b),responseConstructor:BD}).pipe(y(function(h){return GBa(h.getIt())}))};
GD.\u0275fac=function(a){return new (a||GD)};GD.\u0275prov=Sc({token:GD,factory:GD.\u0275fac,providedIn:"root"});var DD=function(){this.observableApi=n(GD)};g=DD.prototype;g.get=function(a){return Ge(this.observableApi.get(a))};g.bulkLoad=function(a){return Ge(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return Ge(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return Ge(this.observableApi.createHotlist(a,b))};g.queryHotlists=function(a){return Ge(this.observableApi.queryHotlists(a))};
g.archiveHotlist=function(a,b){return Ge(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return Ge(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d,e){return Ge(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};DD.\u0275fac=function(a){return new (a||DD)};DD.\u0275prov=Sc({token:DD,factory:DD.\u0275fac,providedIn:"root"});var KCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KCa,V);KCa.prototype.getIt=function(){return X(this,Kn,6)};KCa.prototype.setIt=function(a){return W(this,Kn,6,a)};var noc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,noc.messageId)};Y(noc,V);noc.messageId="b.Favorite";var ooc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ooc.messageId)};Y(ooc,V);ooc.prototype.getComponentsList=function(){return Wk(this,ao,1,Fk())};ooc.messageId="b.UserRecentComponentResponse";var HD=function(){this.executor=n(yC)};g=HD.prototype;g.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:QC}).pipe(y(function(a){return OBa(a.getIt())}))};g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:ooc}).pipe(y(wCa))};g.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:noc}).pipe(y(LCa))};
g.addUserBookmark=function(a){a=(new KCa).setIt(NBa(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:noc}).pipe(y(LCa))};g.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:NBa(a),responseConstructor:null})};
var poc=function(a,b,c){var d={};d.id=String(b);c.voted!==null&&(d.vote=String(!!c.voted));c.starred!==null&&(d.star=String(!!c.starred));c.notificationSubscription!==null&&(d.subscription=c.notificationSubscription);return a.executor.post({url:"action/current_user/issue_data",body:null,options:{params:d},responseConstructor:null})};HD.\u0275fac=function(a){return new (a||HD)};HD.\u0275prov=Sc({token:HD,factory:HD.\u0275fac,providedIn:"root"});var ID=function(){this.observableApi=n(HD)};g=ID.prototype;
g.getUserBookmarks=function(){return Ge(this.observableApi.getUserBookmarks())};g.getRecentComponents=function(){return Ge(this.observableApi.getRecentComponents())};g.getUserBookmark=function(a,b){return Ge(this.observableApi.getUserBookmark(a,b))};g.addUserBookmark=function(a){return Ge(this.observableApi.addUserBookmark(a))};g.removeUserBookmark=function(a){return Ge(this.observableApi.removeUserBookmark(a))};ID.\u0275fac=function(a){return new (a||ID)};
ID.\u0275prov=Sc({token:ID,factory:ID.\u0275fac,providedIn:"root"});var JD=function(){GC.call(this,{freshUntil:3E5});this.observableHotlistResources=n(GD);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Y(JD,GC);JD.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(Pf(function(b){return b.status===403?Ce(void 0):De(function(){return b})}))};JD.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(y(function(b){return(b!=null?b:[]).filter(Tk)}))};
JD.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};JD.\u0275fac=function(a){return new (a||JD)};JD.\u0275prov=Sc({token:JD,factory:JD.\u0275fac,providedIn:"root"});var fo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fo,V);fo.prototype.getIt=function(){return X(this,Hn,12)};fo.prototype.setIt=function(a){return W(this,Hn,12,a)};var qoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,qoc.messageId)};Y(qoc,V);qoc.prototype.setSearch=function(a,b){Bu(this,1,fo,a,b)};qoc.messageId="b.BatchGetSearchesResponse";var KD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,KD.messageId)};Y(KD,V);KD.prototype.getSearch=function(){return X(this,fo,1)};KD.prototype.setSearch=function(a){W(this,fo,1,a)};KD.messageId="b.SearchResponse";var LD=function(){this.jspbExecutor=n(yC)};g=LD.prototype;g.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:KD}).pipe(y(NCa))};g.batchGet=function(a){if(a.length>500)throw Error("Oc");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:qoc}).pipe(y(OCa))};
g.create=function(a,b){a=(new fo).setIt((new Hn).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:KD}).pipe(y(NCa))};g.update=function(a,b){b=(new fo).setIt(IBa(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:KD}).pipe(y(NCa))};g.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};LD.\u0275fac=function(a){return new (a||LD)};
LD.\u0275prov=Sc({token:LD,factory:LD.\u0275fac,providedIn:"root"});var MD=function(){this.observableResources=n(LD)};g=MD.prototype;g.get=function(a){return Ge(this.observableResources.get(a))};g.batchGet=function(a){return Ge(this.observableResources.batchGet(a))};g.create=function(a,b){return Ge(this.observableResources.create(a,b))};g.update=function(a,b){return Ge(this.observableResources.update(a,b))};g.delete=function(a){return Ge(this.observableResources.delete(a))};
MD.\u0275fac=function(a){return new (a||MD)};MD.\u0275prov=Sc({token:MD,factory:MD.\u0275fac,providedIn:"root"});var ND=function(){GC.call(this);this.savedSearchApi=n(LD);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Y(ND,GC);ND.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};ND.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};ND.\u0275fac=function(a){return new (a||ND)};ND.\u0275prov=Sc({token:ND,factory:ND.\u0275fac,providedIn:"root"});var OD=function(){GC.call(this,{freshUntil:3E5});var a=this;this.userApi=n(HD);this.hotlistApi=n(GD);this.bookmarkGroupApi=n(RC);this.appEvents=n(nD);this.hotlistFridge=n(JD);this.savedSearchFridge=n(ND);this.bookmarkGroupFridge=n(SC);this.activeSession=n(Es);this.recordType="user-bookmark";this.isEqual=Pj;this.idForRecord=function(b){return b.id};this.pokeAll=function(){a.poke("current-user-bookmark-id",void 0)};Ue(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified,
this.appEvents.savedSearchModified,this.appEvents.favoritesModified).subscribe(function(){a.poke("current-user-bookmark-id")})};Y(OD,GC);var roc=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):Ce([])},soc=function(a){var b=a.activeSession.getUserEmail();return b?Oe(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):Ce([])};
OD.prototype.fetchOne=function(){var a=this;return Pe([this.userApi.getUserBookmarks(),roc(this),soc(this)]).pipe(hg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;c=l(c);for(var e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);c=l(b.bookmarkGroups);for(e=c.next();!e.done;e=c.next())a.bookmarkGroupFridge.announce(e.value);d=l(d);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);d=l(b.hotlists);for(c=d.next();!c.done;c=d.next())a.hotlistFridge.announce(c.value);
b=l(b.savedSearches);for(d=b.next();!d.done;d=b.next())a.savedSearchFridge.announce(d.value)}),y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=VCa([].concat(p(b.hotlists),p(d)),[].concat(p(b.bookmarkGroups),p(c)),b.savedSearches);return WCa(d,b)}))};
var toc=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(Ve(Tk))},PD=function(a){return toc(a).pipe(y(function(b){var c,d=(c=b==null?void 0:b.hotlists)!=null?c:[],e;b=(e=b==null?void 0:b.bookmarkGroups.flatMap(function(f){return f.sublinks}).filter(Tk).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(p(b),p(d))}),y(function(b){return ik(b,function(c){return c.id})}),y(function(b){return TCa(b)}),y(function(b){return b.map(function(c){return c.id})}),
fg(function(b){return a.hotlistFridge.watchSet(b)}))},uoc=function(a){return toc(a).pipe(y(function(b){var c;return(c=b==null?void 0:b.savedSearches.map(function(d){return Qk(d.id)}))!=null?c:[]}),y(function(b){return b.filter(Tk)}),fg(function(b){return a.savedSearchFridge.watchSet(b)}))};OD.\u0275fac=function(a){return new (a||OD)};OD.\u0275prov=Sc({token:OD,factory:OD.\u0275fac,providedIn:"root"});
var TCa=gl(function(a){return a.name},il,"ASCENDING"),SCa=gl(function(a){return a.name},il,"ASCENDING"),UCa=gl(function(a){return a.name},il,"ASCENDING");var YCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(YCa,V);YCa.prototype.getIt=function(){return X(this,Wm,14)};YCa.prototype.setIt=function(a){return W(this,Wm,14,a)};var uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uo,V);uo.prototype.getIt=function(){return X(this,Um,13)};uo.prototype.setIt=function(a){return W(this,Um,13,a)};var QD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QD.messageId)};Y(QD,V);QD.prototype.getIt=function(){return X(this,Wm,2)};QD.prototype.setIt=function(a){return W(this,Wm,2,a)};QD.messageId="b.CustomFieldResponse";var voc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(voc,V);g=voc.prototype;g.getCustomFieldsList=function(){return Wk(this,Wm,1,Fk())};g.setCustomFieldsList=function(a){return sn(this,1,a)};g.addCustomFields=function(a){Eu(this,1,Wm,a)};g.getNextPageToken=function(){return Oh(this,2)};g.getTotalSize=function(){return Ik(this,3)};var RD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RD.messageId)};Y(RD,V);RD.prototype.getIt=function(){return X(this,voc,4)};RD.prototype.setIt=function(a){return W(this,voc,4,a)};RD.messageId="b.ListCustomFieldsResponse";var SD=function(){this.executor=n(yC)};g=SD.prototype;g.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:QD}).pipe(y(XCa))};g.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:QD}).pipe(y(XCa))};g.create=function(a,b){b=ZCa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:QD}).pipe(y(XCa))};
g.update=function(a,b,c){b=Number(b);c=ZCa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:QD}).pipe(y(XCa))};g.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};
g.query=function(a){return this.executor.get({url:"action/custom_fields",options:{params:{query:a.query,trackerIds:a.trackerIds,pageSize:a.pageSize||0,pageToken:a.pageToken||""}},responseConstructor:RD}).pipe(y($Ca))};SD.\u0275fac=function(a){return new (a||SD)};SD.\u0275prov=Sc({token:SD,factory:SD.\u0275fac,providedIn:"root"});var TD=function(){this.observableApi=n(SD)};g=TD.prototype;g.get=function(a){return Ge(this.observableApi.get(a))};g.getResource=function(a){return Ge(this.observableApi.getResource(a))};
g.create=function(a,b){return Ge(this.observableApi.create(a,b))};g.update=function(a,b,c){return Ge(this.observableApi.update(a,b,c))};g.delete=function(a,b){return Ge(this.observableApi.delete(a,b))};g.query=function(a){return Ge(this.observableApi.query(a))};TD.\u0275fac=function(a){return new (a||TD)};TD.\u0275prov=Sc({token:TD,factory:TD.\u0275fac,providedIn:"root"});var UD=function(){GC.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=n(SD);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Y(UD,GC);UD.prototype.fetchOne=function(a){return this.api.getResource(a).pipe(Pf(function(b){console.error("error fetching custom field "+a,b);return Ce(void 0)}))};UD.\u0275fac=function(a){return new (a||UD)};UD.\u0275prov=Sc({token:UD,factory:UD.\u0275fac,providedIn:"root"});var VD=function(){GC.call(this);this.api=n(MC);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=Pj};Y(VD,GC);VD.prototype.fetchOne=function(a){return ync(this.api,a)};VD.\u0275fac=function(a){return new (a||VD)};VD.\u0275prov=Sc({token:VD,factory:VD.\u0275fac,providedIn:"root"});var go=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(go,V);var ho=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ho.messageId)};Y(ho,V);g=ho.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return zl(this,1)};g.getId_asString=function(){return Gl(this,1)};g.setId=function(a){return Hl(this,1,a)};g.setTriage=function(a){return W(this,go,2,a)};ho.messageId="b.IssueExperiments";var sDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sDa,V);g=sDa.prototype;g.getPhasesList=function(){return Hc(this,1,Qb,Fk())};g.setPhasesList=function(a){return ip(this,1,a)};g.getSubphasesList=function(){return Hc(this,2,Qb,Fk())};g.setSubphasesList=function(a){return ip(this,2,a)};g.getValue=function(){return X(this,Um,3)};g.setValue=function(a){return W(this,Um,3,a)};g.hasValue=function(){return nk(this,Um,3)};var ko=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ko,V);ko.prototype.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,1)};ko.prototype.getCustomFieldId_asString=function(){return Gl(this,1)};ko.prototype.setCustomFieldId=function(a){return Hl(this,1,a)};ko.prototype.hasCustomFieldId=function(){return yl(this,1)};var mDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mDa,V);g=mDa.prototype;g.getHotlistIdsList_asLegacyNumberOrString=function(a){return Uk(this,1,Fk(a))};g.getHotlistIdsList_asString=function(){return El(this,1)};g.setHotlistIdsList=function(a){return jp(this,1,a)};g.addHotlistIds=function(a,b){return Pc(this,1,Wb,a,b,ac)};g.addAllHotlistIds=function(a){Nu(this,1,a)};g.removeHotlistIds=function(a){return y9b(this,1,a)};
g.getOperation=function(){return pl(this,2)};g.setOperation=function(a){return Sl(this,2,a)};g.getPhasesList=function(){return Hc(this,3,Qb,Fk())};g.setPhasesList=function(a){return ip(this,3,a)};g.getSubphasesList=function(){return Hc(this,4,Qb,Fk())};g.setSubphasesList=function(a){return ip(this,4,a)};var gDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gDa,V);var jDa=[1,2];var jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jo,V);g=jo.prototype;g.getScope=function(){return Oh(this,1)};g.setScope=function(a){return Rl(this,1,a)};g.setConfig=function(a){Bu(this,3,gDa,a)};g.getId=function(){return Dl(this,4)};g.getId_asLegacyNumberOrString=function(){return zl(this,4)};g.getId_asString=function(){return Gl(this,4)};g.setId=function(a){return Hl(this,4,a)};g.getDisplayName=function(){return Oh(this,5)};
g.setDisplayName=function(a){return Rl(this,5,a)};g.getDisplayColumns=function(){return X(this,Wl,6)};g.setDisplayColumns=function(a){W(this,Wl,6,a)};var WD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,WD.messageId)};Y(WD,V);g=WD.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return zl(this,1)};g.getId_asString=function(){return Gl(this,1)};g.setId=function(a){return Hl(this,1,a)};g.setTriage=function(a){return Bu(this,2,jo,a)};WD.messageId="b.TeamExperiments";var PEa=new Set([].concat(p(Object.values({ACCESS_LIMIT:"access_limit",ASSIGNEE:"assignee",BLOCKED_BY_ISSUE_IDS:"blocked_by_issue_ids",BLOCKING_ISSUE_IDS:"blocking_issue_ids",CANONICAL_ISSUE_ID:"canonical_issue_id",CCS:"ccs",COLLABORATORS:"collaborators",CHILD_ISSUE_IDS:"child_issue_ids",CODE_CHANGES:"code_changes",GERRIT_CHANGES:"gerrit_changes",COMPONENT_ID:"component_id",CUSTOM_FIELDS:"custom_fields",DELETION_REASON:"deletion_reason",DUPLICATE_ISSUE_IDS:"duplicate_issue_ids",EFFORT:"effort",ENTITY_STATUS:"entity_status",
FOUND_IN_VERSIONS:"found_in_versions",HOTLIST_IDS:"hotlist_ids",IN_PROD:"in_prod",IS_ARCHIVED:"is_archived",IS_DELETED:"is_deleted",PARENT_ISSUE_IDS:"parent_issue_ids",STAFFING:"staffing",STAFFING_PLANNED_ALLOCATIONS:"staffing.planned_allocations",POSTMORTEMS:"postmortems",PRIORITY:"priority",RETENTION:"retention",REPORTER:"reporter",SEVERITY:"severity",SLO_SNOOZE_UNTIL:"slo_snooze_until",SLO_END_TIME:"slo_end_time",SLO_SNOOZE_TYPE:"slo_snooze_type",STATUS:"status",TARGETED_TO_VERSIONS:"targeted_to_versions",
TITLE:"title",TYPE:"type",VERIFIER:"verifier",VERIFIED_IN_VERSIONS:"verified_in_versions"}))));var zDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zDa,V);g=zDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getAddMask=function(){return X(this,oo,2)};g.setAddMask=function(a){return W(this,oo,2,a)};g.getAdd=function(){return X(this,xn,3)};g.setAdd=function(a){return W(this,xn,3,a)};
g.getRemoveMask=function(){return X(this,oo,4)};g.setRemoveMask=function(a){return W(this,oo,4,a)};g.getRemove=function(){return X(this,xn,5)};g.setRemove=function(a){return W(this,xn,5,a)};g.getIssueComment=function(){return X(this,qo,6)};g.setIssueComment=function(a){W(this,qo,6,a)};g.hasIssueComment=function(){return nk(this,qo,6)};g.setSignificanceOverride=function(a){return Nk(this,7,a)};var Co=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Co,V);Co.prototype.getQuery=function(){return Oh(this,1)};Co.prototype.setQuery=function(a){return Lk(this,1,a)};Co.prototype.clearQuery=function(){tq(this,1)};var XD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(XD,V);XD.prototype.getIssueId=function(){return Dl(this,1)};XD.prototype.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};XD.prototype.getIssueId_asString=function(){return Gl(this,1)};XD.prototype.setIssueId=function(a){return Fm(this,1,a)};var IDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(IDa,V);g=IDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};
g.setComponentId=function(a){return Fm(this,2,a)};var oEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oEa,V);oEa.prototype.getRelation=function(){return pl(this,1)};oEa.prototype.setRelation=function(a){return Nk(this,1,a)};var nEa=function(a,b){return Xm(a,2,b)};var woc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(woc,V);g=woc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getReason=function(){return pl(this,2)};g.setReason=function(a){return Nk(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var dEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dEa,V);g=dEa.prototype;g.getQuery=function(){return Oh(this,1)};g.setQuery=function(a){return Lk(this,1,a)};g.clearQuery=function(){tq(this,1)};g.setOrderBy=function(a){return Lk(this,2,a)};g.setPageSize=function(a){return $k(this,3,a)};g.setPageToken=function(a){return Lk(this,4,a)};g.setView=function(a){return Nk(this,5,a)};g.setIssueDescriptionView=function(a){return Nk(this,6,a)};var FDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FDa,V);g=FDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getComponentId=function(){return Dl(this,2)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getComponentId_asString=function(){return Gl(this,2)};
g.setComponentId=function(a){return Fm(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var to=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(to,V);to.prototype.getIssueId=function(){return Dl(this,1)};to.prototype.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};to.prototype.getIssueId_asString=function(){return Gl(this,1)};to.prototype.setIssueId=function(a){return Fm(this,1,a)};var xoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xoc,V);g=xoc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setSignificanceOverride=function(a){return Nk(this,2,a)};var WDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WDa,V);g=WDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getRetention=function(){return pl(this,2)};g.setRetention=function(a){return Nk(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var YD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,YD.messageId)};Y(YD,V);YD.prototype.getIt=function(){return X(this,woc,3)};YD.prototype.setIt=function(a){return W(this,woc,3,a)};YD.messageId="b.DeleteIssueRequest";var jEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jEa,V);var LDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LDa,V);g=LDa.prototype;g.getFieldName=function(){return Oh(this,1)};g.setFieldName=function(a){Rl(this,1,a)};g.getValue=function(){return Oh(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};g.getCustomFieldValue=function(){return X(this,uo,5)};g.setCustomFieldValue=function(a){return W(this,uo,5,a)};g.clearCustomFieldValue=function(){return tq(this,5)};var ro=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ro.messageId)};Y(ro,V);ro.prototype.getIt=function(){return X(this,BDa,5)};ro.prototype.setIt=function(a){return W(this,BDa,5,a)};ro.messageId="b.GetRetainedAccessPrincipalsRequest";var zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zo.messageId)};Y(zo,V);zo.prototype.getIt=function(){return X(this,Gn,4)};zo.prototype.setIt=function(a){return W(this,Gn,4,a)};zo.messageId="b.HotlistIssue";var Fo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fo,V);Fo.prototype.getIt=function(){return X(this,vo,23)};Fo.prototype.setIt=function(a){return W(this,vo,23,a)};var ZDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZDa,V);ZDa.prototype.getIt=function(){return X(this,$Da,6)};ZDa.prototype.setIt=function(a){return W(this,$Da,6,a)};var ODa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ODa,V);ODa.prototype.getIt=function(){return X(this,zDa,7)};ODa.prototype.setIt=function(a){return W(this,zDa,7,a)};var Ao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ao,V);Ao.prototype.setTrackerIdsList=function(a){return Mc(this,6,a,Wb)};Ao.prototype.getIt=function(){return X(this,dEa,7)};Ao.prototype.setIt=function(a){return W(this,dEa,7,a)};var gEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gEa,V);var fEa=function(a,b){return W(a,Ao,1,b)},iEa=function(a,b){sn(a,3,b)},lEa=function(a,b){W(a,ho,4,b)},mEa=function(a,b){W(a,oEa,5,b)};var HDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HDa,V);HDa.prototype.getIt=function(){return X(this,IDa,4)};HDa.prototype.setIt=function(a){return W(this,IDa,4,a)};var Bo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Bo.messageId)};Y(Bo,V);Bo.prototype.getIt=function(){return X(this,Co,4)};Bo.prototype.setIt=function(a){return W(this,Co,4,a)};Bo.messageId="b.ListRecentEventsForIssuesRequest";var ZD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ZD.messageId)};Y(ZD,V);ZD.prototype.getIt=function(){return X(this,XD,3)};ZD.prototype.setIt=function(a){return W(this,XD,3,a)};ZD.messageId="b.MarkAsVulnerabilityRequest";var EDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(EDa,V);EDa.prototype.getIt=function(){return X(this,FDa,4)};EDa.prototype.setIt=function(a){return W(this,FDa,4,a)};var $D=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,$D.messageId)};Y($D,V);$D.prototype.getIt=function(){return X(this,un,9)};$D.prototype.setIt=function(a){return W(this,un,9,a)};$D.messageId="b.StatusUpdate";var so=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,so.messageId)};Y(so,V);so.prototype.getIt=function(){return X(this,to,3)};so.prototype.setIt=function(a){return W(this,to,3,a)};so.messageId="b.UnCcUserActionRequest";var aE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,aE.messageId)};Y(aE,V);aE.prototype.getIt=function(){return X(this,xoc,2)};aE.prototype.setIt=function(a){return W(this,xoc,2,a)};aE.messageId="b.UndeleteIssueRequest";var bE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bE.messageId)};Y(bE,V);bE.prototype.getIt=function(){return X(this,Jmc,5)};bE.prototype.setIt=function(a){return W(this,Jmc,5,a)};bE.messageId="b.UpdateIssueAccessLimitRequest";var QDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QDa,V);QDa.prototype.setSignificanceOverride=function(a){return Sl(this,4,a)};var XDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(XDa,V);XDa.prototype.getIt=function(){return X(this,WDa,5)};XDa.prototype.setIt=function(a){return W(this,WDa,5,a)};var Eo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Eo,V);Eo.prototype.getIssueIdsList_asLegacyNumberOrString=function(){return s9b(this,2)};Eo.prototype.getIssueIdsList_asString=function(){return El(this,2)};Eo.prototype.setIssueIdsList=function(a){return Mc(this,2,a,Wb)};Eo.prototype.setIssueIds=function(a){Pc(this,2,Wb,void 0,a,bc,1)};var yoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yoc,V);yoc.prototype.setSignificanceOverride=function(a){return Rl(this,3,a)};var zoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zoc,V);g=zoc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getSummaryType=function(){return pl(this,2)};g.setSummaryType=function(a){return Nk(this,2,a)};g.getModelVersion=function(){return Ik(this,3)};
g.setModelVersion=function(a){return $k(this,3,a)};g.getIssueVersion=function(){return Ik(this,7)};g.setIssueVersion=function(a){return $k(this,7,a)};g.setFeedbackType=function(a){return Nk(this,5,a)};var TEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TEa,V);var REa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(REa,V);var Aoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Aoc,V);Aoc.prototype.getField=function(){return Oh(this,1)};Aoc.prototype.clearField=function(){return tq(this,1)};var QEa=[3,4];var cE=function(a){this.patternParts_=[];this.dateTimeSymbols_=Jv;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},Boc=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],Coc=function(a){return a.getHours?a.getHours():0};
cE.prototype.applyPattern_=function(a){for(Doc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<Boc.length;++c){var d=a.match(Boc[c]);if(d){var e=d[0];a=a.substring(e.length);c==0&&(e=="''"?e="'":(e=e.substring(1,d[1]=="'"?e.length-1:e.length),e=e.replace(/''/g,"'")));this.patternParts_.push({text:e,type:c});break}}if(b===a)throw Error("Sc`"+a);}};
cE.prototype.format=function(a,b){if(!a)throw Error("Tc");var c=b?(a.getTimezoneOffset()-qmc(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var h=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(Eoc(this,h,a,d,e,b)):c.push(h)}return c.join("")};
cE.prototype.applyStandardPattern_=function(a){if(a<4)var b=this.dateTimeSymbols_.DATEFORMATS[a];else if(a<8)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(a<12)b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]);else if(a===12)b=this.dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(a===13)b=this.dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,"");else{this.applyStandardPattern_(10);
return}this.applyPattern_(b)};
var dE=function(a,b){return WPa(b,a.dateTimeSymbols_)},Doc=!1,WPa=function(a,b){a=String(a);b=b||Jv;if(b.ZERODIGIT===void 0)return a;for(var c=[],d=0;d<a.length;d++){var e=a.charCodeAt(d);c.push(48<=e&&e<=57?String.fromCharCode(b.ZERODIGIT+e-48):a.charAt(d))}return c.join("")},Goc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return dE(a,Foc(c,b))},Foc=function(a,b){b==2&&(a%=100);a<0&&b++;return Kv(a,b)},eE=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("Uc");},Hoc=function(a,
b){eE(b);b=Coc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},Eoc=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,h>=4?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return Goc(a,h,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=xbc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),h==2&&(c%=100),dE(a,Foc(c,h));case "u":return Goc(a,h,d,!1);case "M":a:switch(c=
d.getMonth(),h){case 5:h=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:h=a.dateTimeSymbols_.MONTHS[c];break a;case 3:h=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:h=dE(a,Kv(c+1,h))}return h;case "k":return eE(e),c=Coc(e)||24,dE(a,Kv(c,h));case "S":return dE(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(h>3?Kv(0,h-3):""));case "E":return c=d.getDay(),h>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return Hoc(a,e);case "b":return Hoc(a,e);case "B":return Hoc(a,
e);case "h":return eE(e),c=Coc(e)%12||12,dE(a,Kv(c,h));case "K":return eE(e),c=Coc(e)%12,dE(a,Kv(c,h));case "H":return eE(e),c=Coc(e),dE(a,Kv(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:h=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:h=dE(a,Kv(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:h=
a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:h=dE(a,Kv(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),h<4?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return dE(a,Kv(d.getDate(),h));case "m":return eE(e),dE(a,Kv(e.getMinutes?e.getMinutes():0,h));case "s":return eE(e),dE(a,Kv(e.getSeconds(),h));case "v":return(f||Jk(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Jk(c.getTimezoneOffset()),
h<=2?a.timeZoneId_:pmc(a,c)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=e.getFullYear(),d=e.getMonth(),c=xbc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),dE(a,Kv(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
h));case "z":return a=f||Jk(c.getTimezoneOffset()),h<4?a.tzNames_[pmc(a,c)>0?2:0]:a.tzNames_[pmc(a,c)>0?3:1];case "Z":return d=f||Jk(c.getTimezoneOffset()),h<4?(h=-qmc(d,c),a=[h<0?"-":"+"],h=Math.abs(h),a.push(Kv(Math.floor(h/60)%100,2),Kv(h%60,2)),h=a.join("")):h=dE(a,omc(qmc(d,c))),h;default:return""}};var ZEa=new cE("M/d/yyyy");var tFa=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},uFa=function(a,b){a.updates.push(b);a.hasInitialUpdate=a.hasInitialUpdate||b.version===0;a.author=a.author||b.author;a.statusUpdate=b.statusUpdate||a.statusUpdate;var c;a.firstUpdateVersion=(c=a.firstUpdateVersion)!=null?c:b.version;b.comment&&(a.comment=b.comment,a.commentTimestamp=b.timestamp);return a},iFa=function(a,b){a.summary.push.apply(a.summary,p(b))},qFa=function(a){var b=Ioc(a,a.updates.flatMap(dFa)),c=Joc(a,b),
d=c.preDiffs,e=c.postDiffs;c=a.updates.flatMap(function(k){return k.attachments});var f;d={attachments:c,preDiffs:d,postDiffs:e,modifiedDate:lm(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:Ko(a.author),userPerformingActionUser:a.author,version:a.firstUpdateVersion,isMajorEvent:!!a.comment||!!c.length||a.hasInitialUpdate||b.some(function(k){return k.important}),statusUpdate:a.statusUpdate,taggedSummary:a.summary,issueId:a.updates[0].issueId,isCommentEvent:!!a.comment};
if(a.comment){d.commentContentVerdict=a.comment.commentContentVerdict;var h;d.commentDeletionStatus=(h=a.comment.entityStatus)==null?void 0:h.status;d.commentEtag=a.comment.etag;d.commentLastModifiedAtDate=a.comment.lastModified?Math.round(lm(al(el(a.comment.lastModified)))):void 0;d.commentNumber=a.comment.commentNumber;d.commentReactions=a.comment.commentReactions;d.commentRedacted=a.comment.redacted;d.commentRetention=a.comment.piiRetention;d.commentRetentionState=a.comment.piiRetentionState;d.commentVersion=
a.comment.version;d.formattedComment=a.comment.formattedComment;d.formattingMode=a.comment.formattingMode;d.lastCommentEditorUser=a.comment.lastEditorUser;d.unlinkifiedComment=a.comment.unlinkifiedComment}return d},Joc=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<lm(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=lm(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},Ioc=function(a,b){return a.hasInitialUpdate?b.filter(function(c){return c.name===
"isArchived"&&c.newValue==="false"||c.name==="inProd"&&c.newValue==="false"?!1:!0}):b};var nFa=gl(function(a){return a.modifiedDate},hl),sFa=gl(function(a){return a.version},hl);var Koc=Symbol("Vc"),Loc=Symbol("Wc"),Moc=Symbol("Xc"),fE=function(){};fE.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=gk(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[Moc]=!0;return}c.resolve(e);d[Moc]=!0},b);d[Koc]=b;d[Loc]=c.reject;d[Moc]=!1;return c.promise};fE.prototype.cancel=function(a){var b=a[Koc];if(b==null||a[Moc])return!1;clearTimeout(b);var c;(c=a[Loc])==null||c.call(a,Error("Yc"));return a[Moc]=!0};fE.\u0275fac=function(a){return new (a||fE)};
fE.\u0275prov=Sc({token:fE,factory:fE.\u0275fac,providedIn:"root"});var gE=function(){this.timeout=n(fE)};gE.prototype.adapt=function(a){return new Noc(this.timeout,a)};gE.\u0275fac=function(a){return new (a||gE)};gE.\u0275prov=Sc({token:gE,factory:gE.\u0275fac,providedIn:"root"});var Noc=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
Noc.prototype.get=function(a){var b=gk(),c=this.batchedInputs[this.batchedInputs.length-1],d=this.batchedDeferreds[this.batchedDeferreds.length-1];c.length<100?(c.push(a),d.push(b)):(this.batchedInputs.push([a]),this.batchedDeferreds.push([b]));this.isBatchScheduled||Ooc(this);return b.promise};
var Ooc=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:void 0},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.batchedDeferred.length;h++)e.batchedDeferred[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=l(e.batchedDeferred),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var No=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,No.messageId)};Y(No,V);No.prototype.getResource=function(){return Oh(this,1)};No.prototype.setResource=function(a){return Rl(this,1,a)};No.prototype.getRelation=function(){return pl(this,2)};No.prototype.setRelation=function(a){return Sl(this,2,a)};No.messageId="b.ResourceRelation";var Poc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Poc.messageId)};Y(Poc,V);Poc.messageId="b.UserAccessBatchResponse";var hE=function(){this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/slo|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$")};hE.prototype.validate=function(a){return this.resourceNamePattern.test(a)};hE.\u0275fac=function(a){return new (a||hE)};hE.\u0275prov=Sc({token:hE,factory:hE.\u0275fac,providedIn:"root"});
var jE=function(){var a=this;this.rawUserAccess=n(iE);this.resourceNameValidator=n(hE);this.bulkApiAdapter=n(gE);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return Qoc(a,b)})},Qoc=function(a,b){return Roc(a,b).then(function(c){return wFa(b,c)})},kE=function(a,b,c){return a.resourceNameValidator.validate(c)?Soc(a,b,c):Promise.reject(Error("Zc`"+c))},Toc=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([Soc(a,"admin",b),Soc(a,"writer",b),Soc(a,"appender",
b),Soc(a,"reader",b)]).then(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;return{admin:c,writer:e,appender:f,reader:d}}):Promise.reject(Error("Zc`"+b))},Roc=function(a,b){var c=[],d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return Ge(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:Poc}).pipe(y(vFa)))},
Soc=function(a,b,c){var d=b+"/"+c,e=a.accesses[d];if(e)return e;b=a.accessGetter.get({relation:b,resourceName:c}).then(function(f){return f==null?!1:f});a.accesses[d]=b;b.then(function(){delete a.accesses[d]});return b};jE.\u0275fac=function(a){return new (a||jE)};jE.\u0275prov=Sc({token:jE,factory:jE.\u0275fac,providedIn:"root"});var iE=function(){this.executor=n(yC)};iE.\u0275fac=function(a){return new (a||iE)};iE.\u0275prov=Sc({token:iE,factory:iE.\u0275fac,providedIn:"root"});var Uoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uoc,V);g=Uoc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getSummaryType=function(){return pl(this,2)};g.setSummaryType=function(a){return Nk(this,2,a)};var Voc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Voc,V);g=Voc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getSummaryType=function(){return pl(this,2)};g.setSummaryType=function(a){return Nk(this,2,a)};var Woc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Woc,V);Woc.prototype.setFeedback=function(a){return W(this,zoc,1,a)};var lE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lE,V);lE.prototype.setMaxResults=function(a){return $k(this,1,a)};lE.prototype.setView=function(a){return Nk(this,2,a)};lE.prototype.setIssueDescriptionView=function(a){return Nk(this,3,a)};var mE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mE,V);g=mE.prototype;g.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,1,Fk())};g.getIssueIdsList_asString=function(){return El(this,1)};g.setIssueIdsList=function(a){return jp(this,1,a)};g.setIssueIds=function(a){Pc(this,1,Wb,void 0,a,ac,1)};g.setView=function(a){return Nk(this,2,a)};g.setIssueDescriptionView=function(a){return Nk(this,3,a)};var Xoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xoc,V);g=Xoc.prototype;g.getComponentId=function(){return Dl(this,5)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,5)};g.getComponentId_asString=function(){return Gl(this,5)};g.setComponentId=function(a){return Fm(this,5,a)};g.getTitle=function(){return Oh(this,6)};g.setTitle=function(a){return Lk(this,6,a)};g.clearTitle=function(){return tq(this,6)};
g.getComment=function(){return Oh(this,7)};g.setComment=function(a){return Lk(this,7,a)};g.getAttachmentsList=function(){return Wk(this,Hm,8,Fk())};g.setAttachmentsList=function(a){return sn(this,8,a)};g.addAllAttachments=function(a){lo(this,8,Hm,a)};g.setSignificanceOverride=function(a){return Nk(this,2,a)};g.getTemplateId_asLegacyNumberOrString=function(){return zl(this,4)};g.setTemplateId=function(a){return Fm(this,4,a)};var Yoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yoc,V);g=Yoc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setView=function(a){return Nk(this,2,a)};g.setIssueDescriptionView=function(a){return Nk(this,3,a)};var Zoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zoc,V);g=Zoc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetIdsList=function(a){return jp(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var $oc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($oc,V);g=$oc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetIdsList=function(a){return jp(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var apc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(apc,V);g=apc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetId=function(a){return Fm(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var bpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bpc,V);g=bpc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetIdsList=function(a){return jp(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var cpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cpc,V);g=cpc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetIdsList=function(a){return jp(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var dpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dpc,V);g=dpc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setTargetId=function(a){return Fm(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};var nE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,nE.messageId)};Y(nE,V);nE.prototype.getIt=function(){return X(this,mE,3)};nE.prototype.setIt=function(a){return W(this,mE,3,a)};nE.messageId="b.BatchGetIssuesRequest";var epc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(epc,V);epc.prototype.getIssuesList=function(){return Wk(this,vo,1,Fk())};var oE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,oE.messageId)};Y(oE,V);oE.prototype.getIt=function(){return X(this,epc,2)};oE.prototype.setIt=function(a){return W(this,epc,2,a)};oE.messageId="b.BatchGetIssuesResponse";var xEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xEa,V);g=xEa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getIssueId_asString=function(){return sl(this,1)};g.setIssueId=function(a){return Vl(this,1,a)};g.getMessage=function(){return Oh(this,2)};g.setMessage=function(a){return Rl(this,2,a)};var fpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fpc.messageId)};Y(fpc,V);fpc.prototype.setErrors=function(a,b){Bu(this,2,xEa,a,b)};fpc.messageId="b.BulkEditResponse";var pE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pE.messageId)};Y(pE,V);pE.prototype.getIt=function(){return X(this,Uoc,1)};pE.prototype.setIt=function(a){return W(this,Uoc,1,a)};pE.messageId="b.GenerateIssueSummaryRequest";var qE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qE,V);g=qE.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getSummaryType=function(){return pl(this,2)};g.setSummaryType=function(a){return Nk(this,2,a)};g.getModelVersion=function(){return Ik(this,3)};
g.setModelVersion=function(a){return $k(this,3,a)};g.getIssueVersion=function(){return Ik(this,7)};g.setIssueVersion=function(a){return $k(this,7,a)};g.getVersion=function(){return Ik(this,4)};g.setVersion=function(a){return $k(this,4,a)};g.getSummary=function(){return Oh(this,5)};var rE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rE.messageId)};Y(rE,V);rE.prototype.getIt=function(){return X(this,qE,1)};rE.prototype.setIt=function(a){return W(this,qE,1,a)};rE.messageId="b.GenerateIssueSummaryResponse";var sE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,sE.messageId)};Y(sE,V);sE.prototype.getIt=function(){return X(this,qE,4)};sE.prototype.setIt=function(a){return W(this,qE,4,a)};sE.messageId="b.GetIssueSummaryResponse";var tE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tE,V);tE.prototype.getReadersList=function(){return Wk(this,zm,1,Fk())};tE.prototype.setReadersList=function(a){return sn(this,1,a)};tE.prototype.getAppendersList=function(){return Wk(this,zm,2,Fk())};tE.prototype.setAppendersList=function(a){return sn(this,2,a)};var uE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,uE.messageId)};Y(uE,V);uE.prototype.getIt=function(){return X(this,tE,4)};uE.prototype.setIt=function(a){return W(this,tE,4,a)};uE.messageId="b.GetRetainedAccessPrincipalsResponse";var vE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,vE.messageId)};Y(vE,V);vE.prototype.getIssueId=function(){return Dl(this,1)};vE.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};vE.prototype.getIssueId_asString=function(){return sl(this,1)};vE.prototype.setIssueId=function(a){return Vl(this,1,a)};vE.messageId="b.IssueCreateResponse";var Vo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Vo.messageId)};Y(Vo,V);Vo.prototype.getIssue=function(){return X(this,Fo,1)};Vo.prototype.setIssue=function(a){return W(this,Fo,1,a)};Vo.messageId="b.IssueFetchResponse";var gpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gpc,V);g=gpc.prototype;g.getIssuesList=function(){return Wk(this,vo,1,Fk())};g.getNextPageToken=function(){return Oh(this,2)};g.getTotalSize=function(){return Ik(this,3)};g.getTotalSizeAccurate=function(){return kl(this,4)};g.getMaySkipResults=function(){return kl(this,5)};var wE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wE.messageId)};Y(wE,V);wE.prototype.getIt=function(){return X(this,gpc,6)};wE.prototype.setIt=function(a){return W(this,gpc,6,a)};wE.messageId="b.IssueSearchResponse";var hpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hpc,V);g=hpc.prototype;g.getIssueId=function(){return Dl(this,10)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,10)};g.getIssueId_asString=function(){return Gl(this,10)};g.setIssueId=function(a){return Fm(this,10,a)};g.getAuthor=function(){return X(this,Kk,1)};g.setAuthor=function(a){W(this,Kk,1,a)};g.hasAuthor=function(){return nk(this,Kk,1)};g.getTimestamp=function(){return X(this,bl,2)};
g.setTimestamp=function(a){return W(this,bl,2,a)};g.hasTimestamp=function(){return nk(this,bl,2)};g.getIssueComment=function(){return X(this,qo,3)};g.setIssueComment=function(a){W(this,qo,3,a)};g.hasIssueComment=function(){return nk(this,qo,3)};g.getCommentNumber=function(){return Ik(this,4)};g.setCommentNumber=function(a){return $k(this,4,a)};g.getAttachmentsList=function(){return Wk(this,Hm,8,Fk())};g.setAttachmentsList=function(a){return sn(this,8,a)};
g.addAllAttachments=function(a){lo(this,8,Hm,a)};g.getStatusUpdate=function(){return X(this,un,9)};g.setStatusUpdate=function(a){W(this,un,9,a)};g.hasStatusUpdate=function(){return nk(this,un,9)};g.getFieldUpdatesList=function(){return Wk(this,Aoc,6,Fk())};g.getVersion=function(){return Ik(this,7)};g.setVersion=function(a){return $k(this,7,a)};var ipc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ipc.messageId)};Y(ipc,V);ipc.messageId="b.ListIssueEventsResponse";var xE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xE.messageId)};Y(xE,V);xE.prototype.getIt=function(){return X(this,lE,1)};xE.prototype.setIt=function(a){return W(this,lE,1,a)};xE.messageId="b.ListRecentIssuesRequest";var jpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jpc,V);jpc.prototype.getIssuesList=function(){return Wk(this,vo,1,Fk())};var yE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,yE.messageId)};Y(yE,V);yE.prototype.getIt=function(){return X(this,jpc,2)};yE.prototype.setIt=function(a){return W(this,jpc,2,a)};yE.messageId="b.ListRecentIssuesResponse";var UDa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UDa,V);g=UDa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getIssueId_asString=function(){return sl(this,1)};g.setIssueId=function(a){return Vl(this,1,a)};g.getStatus=function(){return pl(this,2)};g.setStatus=function(a){return Sl(this,2,a)};g.hasStatus=function(){return nl(this,2)};g.getTitle=function(){return Oh(this,3)};
g.setTitle=function(a){return Rl(this,3,a)};g.clearTitle=function(){return tq(this,3)};g.getVersion=function(){return Ik(this,4)};g.setVersion=function(a){return Pl(this,4,a)};g.getVersionOrUndefined=function(){return Lu(this,4)};g.getIsArchived=function(){return kl(this,5)};g.setIsArchived=function(a){return Ol(this,5,a)};var kpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kpc.messageId)};Y(kpc,V);kpc.messageId="b.RelatedIssuesResponse";var zE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zE.messageId)};Y(zE,V);zE.prototype.getIt=function(){return X(this,Woc,1)};zE.prototype.setIt=function(a){return W(this,Woc,1,a)};zE.messageId="b.SubmitIssueSummaryFeedbackRequest";var AE=function(){this.executor=n(yC);this.userAccess=n(jE);this.activeSession=n(Es)};g=AE.prototype;
g.createIssue=function(a){var b=this;return Oe(function(){return kE(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(fg(function(c){if(c){var d=bEa(a);var e={};a.recaptchaToken&&(e["G-Recaptcha-Response-Token"]=a.recaptchaToken);d=b.executor.post({url:"action/issues",body:d,options:{headers:e},responseConstructor:vE}).pipe(y(cEa))}else{c=(new Xoc).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=fn(a.snapshot.formattingMode);
c=Nk(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(vza))!=null?e:[]).setTemplateId(a.templateId);d={};a.recaptchaToken&&(d["G-Recaptcha-Response-Token"]=a.recaptchaToken);d=b.executor.post({url:"action/issues/template",body:c,options:{headers:d},responseConstructor:vE}).pipe(y(cEa))}return d}))};
g.createIssueWithWizard=function(a){var b=bEa(a),c={};a.recaptchaToken&&(c["G-Recaptcha-Response-Token"]=a.recaptchaToken);return this.executor.post({url:"action/issues/wizard",body:b,options:{headers:c},responseConstructor:vE}).pipe(y(cEa))};g.getIssueFull=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);return this.executor.get({url:"action/issues/"+a,options:{params:b},responseConstructor:Vo}).pipe(y(function(e){return Do(e)}))};
g.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new Yoc).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:Vo}).pipe(y(function(e){return Do(e)}))};
g.batchGetIssuesFull=function(a){a=(new nE).setIt((new mE).setIssueIdsList(a.map(Qk).filter(Tk)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:oE}).pipe(y(function(b){return b.getIt().getIssuesList().map(VAa)}))};g.batchGetIssues=function(a){a=(new nE).setIt((new mE).setIssueIdsList(a.map(Qk).filter(Tk)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:oE}).pipe(y(function(b){return b.getIt().getIssuesList().map(An)}))};
g.updateIssue=function(a,b){b=PDa(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};g.moveIssueExternal=function(a,b){b=JDa(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};g.moveIssue=function(a,b){b=GDa(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};
g.unCcUser=function(a){var b=DDa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};g.updateAccessLimit=function(a,b,c,d){var e=new bE,f=e.setIt,h=(new Jmc).setIssueId(a);b&&(b=Wya(b),h.setIssueAccessLimit(b));c&&h.setAddedCollaboratorsList(c.map(Ok));d&&h.setRemovedCollaboratorsList(d.map(Ok));c=f.call(e,h);return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:null})};
g.getRetainedAccessPrincipals=function(a,b,c,d){b=CDa(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:uE}).pipe(y(function(e){e=e.getIt();return{readers:e.getReadersList().map(ym),appenders:e.getAppendersList().map(ym),writers:Wk(e,zm,3,Fk()).map(ym)}}))};
g.markAsVulnerability=function(a,b){var c=(new XD).setIssueId(Number(a));b&&(b=b.map(Ok),sn(c,2,b));c=(new ZD).setIt(c);return this.executor.post({url:"action/issues/"+a+"/markAsVulnerability",body:c,responseConstructor:null})};
g.relateIssue=function(a,b){if(b.relation==="BLOCKING"&&b.actionType==="ADD")return this.addBlocking(a,b.targetIds);if(b.relation==="BLOCKING"&&b.actionType==="REMOVE")return this.removeBlocking(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="ADD")return this.addBlockedBy(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="REMOVE")return this.removeBlockedBy(a,b.targetIds);if(b.relation==="DUPLICATE"&&b.actionType==="ADD")return this.markAsDuplicate(a,b.targetIds[0]);if(b.relation===
"DUPLICATE"&&b.actionType==="REMOVE")return lpc(this,a);throw Error("$c");};g.addBlocking=function(a,b){b=(new $oc).setIssueId(Number(a)).setTargetIdsList(b.map(Qk).filter(Tk));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};g.removeBlocking=function(a,b){b=(new cpc).setIssueId(Number(a)).setTargetIdsList(b.map(Qk).filter(Tk));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};
g.addBlockedBy=function(a,b){b=(new Zoc).setIssueId(Number(a)).setTargetIdsList(b.map(Qk).filter(Tk));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};g.removeBlockedBy=function(a,b){b=(new bpc).setIssueId(Number(a)).setTargetIdsList(b.map(Qk).filter(Tk));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};
g.markAsDuplicate=function(a,b){b=(new apc).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};var lpc=function(a,b){var c=(new dpc).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:Vo}).pipe(y(function(d){return Do(d)}))};
AE.prototype.updateIssueHotlists=function(a,b){b=TDa(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};AE.prototype.updateIssueRetention=function(a,b){b=YDa(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:Vo}).pipe(y(function(c){return Do(c)}))};
AE.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=eEa(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:wE}).pipe(y(FEa))};var mpc=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=qEa(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:wE}).pipe(y(FEa))},npc=function(a,b){var c=new lE;b&&c.setMaxResults(b);b=(new xE).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:yE}).pipe(y(function(d){return d.getIt().getIssuesList().map(function(e){return An(e)})}))};
AE.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new yoc;var d=a.bulkEditOps.map(vEa);sn(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:fpc,options:{headers:c}}).pipe(y(yEa))};
AE.prototype.getRelatedIssues=function(a){var b={};a.q&&(b.q=a.q);a.s&&(b.s=a.s);a.count&&(b.count=String(a.count));a.p&&(b.p=String(a.p));a.trackerId&&(b.trackerId=a.trackerId);var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:kpc}).pipe(y(VDa))};
var ppc=function(a,b){var c,d;return a.executor.get({url:"action/issues/"+b+"/events",options:{params:{currentTrackerId:(d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId)!=null?d:""}},responseConstructor:ipc}).pipe(y(function(e){return opc(e,!1)}))},qpc=function(a,b){b=sEa(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:ipc}).pipe(y(function(c){return opc(c,!0)}))};
AE.prototype.getIssueSummary=function(a,b){b=(new Voc).setIssueId(Number(a)).setSummaryType(Ykc[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:sE}).pipe(y(function(c){return HEa(c.getIt())}))};AE.prototype.generateIssueSummary=function(a,b){b=(new Uoc).setIssueId(a).setSummaryType(Ykc[b]);b=(new pE).setIt(b);return this.executor.post({url:"action/issues/"+a+"/generateSummary",body:b,responseConstructor:rE}).pipe(y(function(c){return HEa(c.getIt())}))};
var opc=function(a,b){a=Wk(a,hpc,2,Fk()).map(OEa);return b?oFa(a):mFa(a)};AE.\u0275fac=function(a){return new (a||AE)};AE.\u0275prov=Sc({token:AE,factory:AE.\u0275fac,providedIn:"root"});var BE=function(){this.observableApi=n(AE)};g=BE.prototype;g.createIssue=function(a){return Ge(this.observableApi.createIssue(a))};g.createIssueWithWizard=function(a){return Ge(this.observableApi.createIssueWithWizard(a))};g.getIssueFull=function(a){return Ge(this.observableApi.getIssueFull(a))};g.getIssueBasic=function(a){return Ge(this.observableApi.getIssueBasic(a))};
g.batchGetIssuesFull=function(a){return Ge(this.observableApi.batchGetIssuesFull(a))};g.batchGetIssues=function(a){return Ge(this.observableApi.batchGetIssues(a))};g.updateIssue=function(a,b){return Ge(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return Ge(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return Ge(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return Ge(this.observableApi.unCcUser(a))};
g.updateAccessLimit=function(a,b,c,d){return Ge(this.observableApi.updateAccessLimit(a,b,c,d))};g.getRetainedAccessPrincipals=function(a,b,c,d){return Ge(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};g.markAsVulnerability=function(a,b){return Ge(this.observableApi.markAsVulnerability(a,b))};g.relateIssue=function(a,b){return Ge(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return Ge(this.observableApi.updateIssueHotlists(a,b))};
g.updateIssueRetention=function(a,b){return Ge(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=b===void 0?{}:b;return Ge(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a,b){return Ge(this.observableApi.issueBulkEdit(a,b))};g.getRelatedIssues=function(a){return Ge(this.observableApi.getRelatedIssues(a))};BE.\u0275fac=function(a){return new (a||BE)};BE.\u0275prov=Sc({token:BE,factory:BE.\u0275fac,providedIn:"root"});var CE=function(){GC.call(this);this.observableIssueResources=n(AE);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Y(CE,GC);CE.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:eya(a==null?void 0:a.events,b==null?void 0:b.events)};CE.prototype.copy=function(a){return a&&Qj(a)};CE.prototype.fetchOne=function(a){return ppc(this.observableIssueResources,a).pipe(y(function(b){return{id:a,events:b}}))};
CE.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};CE.\u0275fac=function(a){return new (a||CE)};CE.\u0275prov=Sc({token:CE,factory:CE.\u0275fac,providedIn:"root"});var rpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rpc,V);g=rpc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCommentNumbers=function(){return Ju(this,2)};g.setView=function(a){return Nk(this,3,a)};var DE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,DE.messageId)};Y(DE,V);DE.prototype.getIt=function(){return X(this,rpc,4)};DE.prototype.setIt=function(a){return W(this,rpc,4,a)};DE.messageId="b.BatchGetIssueCommentsRequest";var spc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(spc,V);spc.prototype.getIssueCommentsList=function(){return Wk(this,qo,1,Fk())};var EE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,EE.messageId)};Y(EE,V);EE.prototype.getIt=function(){return X(this,spc,2)};EE.prototype.setIt=function(a){return W(this,spc,2,a)};EE.messageId="b.BatchGetIssueCommentsResponse";var FE=function(){this.jspbExecutor=n(yC);this.activeSession=n(Es)};FE.prototype.batchGet=function(a,b){var c=new DE,d=c.setIt;a=(new rpc).setIssueId(Number(a));b=Mc(a,2,b,Rb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&Vl(c,3,d);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:EE,body:c}).pipe(y(zEa))};FE.\u0275fac=function(a){return new (a||FE)};FE.\u0275prov=Sc({token:FE,factory:FE.\u0275fac,providedIn:"root"});var GE=function(){GC.call(this);var a=this;this.issueCommentsBatchApi=n(FE);this.batchApiAdapter=n(bD);this.recordType="formattedCommentsForIssue";this.idForRecord=function(b){return b.id.issueId+"-"+b.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};Y(GE,GC);
GE.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return Je(a.map(function(d){return b.get(d)})).pipe(y(function(d){var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:c,commentId:(h=f.commentNumber)!=null?h:0};e.push({id:k,formattedComment:f})}return e}))};
GE.prototype.call=function(a){var b="",c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value.split("-"));d=e.next().value;e=e.next().value;b!==""&&b===d?c.push(Number(e)):b===""&&(b=d,c.push(Number(e)))}return this.issueCommentsBatchApi.batchGet(b,c).pipe(y(function(f){var h=b,k=new Map;f=l(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var u=void 0,A=Number(h)+"-"+((u=q.commentNumber)!=null?u:0);k.set(A,q)}return k}))};GE.prototype.splitBatch=function(a,b){return b.get(a)};
GE.\u0275fac=function(a){return new (a||GE)};GE.\u0275prov=Sc({token:GE,factory:GE.\u0275fac,providedIn:"root"});var HE=function(){GC.call(this);this.accessPolicyApi=n(ZC);this.recordType="hotlistAccessPolicy";this.isEqual=Pj;this.idForRecord=function(a){return a.id}};Y(HE,GC);HE.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(y(function(b){return Object.assign({},{id:a},b)}))};HE.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(y(function(c){return Object.assign({},{id:b},c)}))};HE.\u0275fac=function(a){return new (a||HE)};
HE.\u0275prov=Sc({token:HE,factory:HE.\u0275fac,providedIn:"root"});var GFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GFa,V);g=GFa.prototype;g.getContentCase=function(){return vm(this,xFa)};g.getName=function(){return Oh(this,1)};g.setName=function(a){return Lk(this,1,a)};g.getSource=function(){return Oh(this,2)};g.setSource=function(a){return Lk(this,2,a)};g.getResource=function(){return Oh(this,3)};g.setResource=function(a){return Lk(this,3,a)};g.getType=function(){return pl(this,4)};g.setType=function(a){return Nk(this,4,a)};
g.getScore=function(){return Pm(this,6)};g.setScore=function(a){return on(this,6,a)};g.getConfidence=function(){return pl(this,7)};var xFa=[9,10];var CFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CFa,V);CFa.prototype.getType=function(){return pl(this,2)};CFa.prototype.setType=function(a){return Nk(this,2,a)};var BFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BFa,V);BFa.prototype.getParent=function(){return Oh(this,1)};BFa.prototype.setParent=function(a){return Lk(this,1,a)};var tpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tpc,V);g=tpc.prototype;g.getResource=function(){return Oh(this,1)};g.setResource=function(a){return Lk(this,1,a)};g.getType=function(){return pl(this,2)};g.setType=function(a){return Nk(this,2,a)};g.setPageSize=function(a){return $k(this,4,a)};g.setPageToken=function(a){return Lk(this,5,a)};g.setView=function(a){return Nk(this,6,a)};var IE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,IE.messageId)};Y(IE,V);IE.prototype.getParent=function(){return Oh(this,1)};IE.prototype.setParent=function(a){return Lk(this,1,a)};IE.prototype.setRequestsList=function(a){return sn(this,2,a)};IE.prototype.addAndReturnRequests=function(){return Qc(this,2,BFa)};IE.messageId="b.BatchCreateUserEngagementsRequest";var JE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JE.messageId)};Y(JE,V);JE.prototype.getNextPageToken=function(){return Oh(this,2)};JE.prototype.getTotalSize=function(){return Dl(this,3)};JE.messageId="b.LookupRecommendationsResponse";var KE=function(){this.executor=n(yC)};KE.prototype.lookupRecommendations=function(a){var b=(new tpc).setResource(a.resource).setType(ulc[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(ylc[a.view]);a.minConfidence!==void 0&&Nk(b,3,Ekc[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:JE}).pipe(y(HFa))};
KE.prototype.createUserEngagements=function(a){a=(new IE).setRequestsList(a.map(FFa));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};KE.\u0275fac=function(a){return new (a||KE)};KE.\u0275prov=Sc({token:KE,factory:KE.\u0275fac,providedIn:"root"});var LE=function(){this.observableApi=n(KE)};LE.prototype.lookupRecommendations=function(a){return Ge(this.observableApi.lookupRecommendations(a))};LE.prototype.createUserEngagements=function(a){return Ge(this.observableApi.createUserEngagements(a))};
LE.\u0275fac=function(a){return new (a||LE)};LE.\u0275prov=Sc({token:LE,factory:LE.\u0275fac,providedIn:"root"});var ME=function(){GC.call(this);this.api=n(KE);this.activeSession=n(Es);this.recordType="HotlistRecommendation";this.isEqual=Pj;this.idForRecord=function(a){return a.issueId}};Y(ME,GC);ME.prototype.fetchOne=function(a){return this.activeSession.isExternalSession()?Ce(void 0):this.api.lookupRecommendations({resource:"issues/"+a,type:"HOTLIST",minConfidence:"MEDIUM",view:"FULL",pageSize:10}).pipe(y(function(b){return{issueId:a,recommendations:b.recommendations}}),Pf(function(){return Ce(void 0)}))};
ME.\u0275fac=function(a){return new (a||ME)};ME.\u0275prov=Sc({token:ME,factory:ME.\u0275fac,providedIn:"root"});var NE=function(){GC.call(this);this.activeSession=n(Es);this.recommendationsService=n(KE);this.recordType="issueDedupeRecommendation";this.idForRecord=function(a){return a.issueId};this.isEqual=Pj};Y(NE,GC);
NE.prototype.fetchOne=function(a){return this.activeSession.isExternalSession()?Ce(void 0):this.recommendationsService.lookupRecommendations({minConfidence:"HIGH",pageSize:5,resource:"issues/"+a,type:"ISSUE_DEDUPLICATION",view:"FULL"}).pipe(y(function(b){return{issueId:a,recommendations:b.recommendations}}),Pf(function(){return Ce(void 0)}))};NE.prototype.copy=function(a){return a&&Qj(a)};NE.\u0275fac=function(a){return new (a||NE)};NE.\u0275prov=Sc({token:NE,factory:NE.\u0275fac,providedIn:"root"});var OE=function(){GC.call(this);this.api=n(MC);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Pj};Y(OE,GC);OE.prototype.fetchOne=function(a){return znc(this.api,a).pipe(y(function(b){return{issueId:a,enrichments:b}}))};OE.\u0275fac=function(a){return new (a||OE)};OE.\u0275prov=Sc({token:OE,factory:OE.\u0275fac,providedIn:"root"});var PE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PE,V);PE.prototype.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,1,Fk())};PE.prototype.getIssueIdsList_asString=function(){return El(this,1)};PE.prototype.setIssueIdsList=function(a){return jp(this,1,a)};PE.prototype.setIssueIds=function(a){Pc(this,1,Wb,void 0,a,ac,1)};var QE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QE,V);QE.prototype.getIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,1,Fk())};QE.prototype.getIssueIdsList_asString=function(){return El(this,1)};QE.prototype.setIssueIdsList=function(a){return jp(this,1,a)};QE.prototype.setIssueIds=function(a){Pc(this,1,Wb,void 0,a,ac,1)};var upc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(upc,V);upc.prototype.setExperiments=function(a){return Bu(this,1,ho,a)};var RE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RE.messageId)};Y(RE,V);RE.prototype.getIt=function(){return X(this,upc,1)};RE.prototype.setIt=function(a){return W(this,upc,1,a)};RE.messageId="b.BatchGetIssueExperimentsResponse";var vpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vpc,V);g=vpc.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getType=function(){return pl(this,2)};g.setType=function(a){return Nk(this,2,a)};g.getPriority=function(){return pl(this,3)};
g.setPriority=function(a){return Nk(this,3,a)};g.getSeverity=function(){return pl(this,4)};g.setSeverity=function(a){return Nk(this,4,a)};g.getStatus=function(){return pl(this,5)};g.setStatus=function(a){return Nk(this,5,a)};g.getReporter=function(){return X(this,Kk,6)};g.setReporter=function(a){W(this,Kk,6,a)};g.getAssignee=function(){return X(this,Kk,7)};g.setAssignee=function(a){return W(this,Kk,7,a)};g.clearAssignee=function(){return tq(this,7)};g.getVerifier=function(){return X(this,Kk,8)};
g.setVerifier=function(a){W(this,Kk,8,a)};g.clearVerifier=function(){return tq(this,8)};g.getCcsList=function(){return Wk(this,Kk,9,Fk())};g.setCcsList=function(a){sn(this,9,a)};g.addAllCcs=function(a){lo(this,9,Kk,a)};g.setCcs=function(a,b){return Bu(this,9,Kk,a,b)};g.getCollaboratorsList=function(){return Wk(this,Kk,23,Fk())};g.setCollaboratorsList=function(a){sn(this,23,a)};g.addAllCollaborators=function(a){lo(this,23,Kk,a)};g.setCollaborators=function(a,b){return Bu(this,23,Kk,a,b)};
g.getStaffing=function(){return X(this,rn,27)};g.setStaffing=function(a){W(this,rn,27,a)};g.getHotlistIdsList_asLegacyNumberOrString=function(a){return Uk(this,10,Fk(a))};g.getHotlistIdsList_asString=function(){return El(this,10)};g.setHotlistIdsList=function(a){return jp(this,10,a)};g.addHotlistIds=function(a,b){return Pc(this,10,Wb,a,b,ac)};g.addAllHotlistIds=function(a){Nu(this,10,a)};g.removeHotlistIds=function(a){return y9b(this,10,a)};
g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,11,Fk())};g.setBlockedByIssueIdsList=function(a){jp(this,11,a)};g.addAllBlockedByIssueIds=function(a){Nu(this,11,a)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,12,Fk())};g.setBlockingIssueIdsList=function(a){jp(this,12,a)};g.addAllBlockingIssueIds=function(a){Nu(this,12,a)};g.getCanonicalIssueId_asLegacyNumberOrString=function(){return zl(this,13)};
g.setCanonicalIssueId=function(a){Fm(this,13,a)};g.getDuplicateIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,14,Fk())};g.setDuplicateIssueIdsList=function(a){jp(this,14,a)};g.getInProd=function(){return kl(this,15)};g.setInProd=function(a){Xm(this,15,a)};g.getSloSnoozeUntil=function(){return X(this,bl,16)};g.setSloSnoozeUntil=function(a){W(this,bl,16,a)};g.getSloEndTime=function(){return X(this,bl,25)};g.setSloEndTime=function(a){W(this,bl,25,a)};
g.hasSloEndTime=function(){return nk(this,bl,25)};g.getRetention=function(){return pl(this,17)};g.setRetention=function(a){return Nk(this,17,a)};g.getEntityStatus=function(){return X(this,Jm,18)};g.setEntityStatus=function(a){return W(this,Jm,18,a)};g.getIsArchived=function(){return kl(this,19)};g.setIsArchived=function(a){return Xm(this,19,a)};g.getEffort=function(){return X(this,yn,24)};g.setEffort=function(a){W(this,yn,24,a)};g.hasEffort=function(){return nk(this,yn,24)};
g.getAccessLimit=function(){return X(this,Cm,26)};g.setAccessLimit=function(a){return W(this,Cm,26,a)};var wpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wpc,V);g=wpc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getIssueState=function(){return X(this,vpc,2)};g.setIssueState=function(a){return W(this,vpc,2,a)};g.getVersion=function(){return Ik(this,3)};
g.setVersion=function(a){return $k(this,3,a)};g.getEtag=function(){return sq(this,16)};g.setEtag=function(a){Im(this,16,a)};g.getCreatedTime=function(){return X(this,bl,4)};g.setCreatedTime=function(a){return W(this,bl,4,a)};g.getModifiedTime=function(){return X(this,bl,5)};g.setModifiedTime=function(a){return W(this,bl,5,a)};g.getMajorModifiedTime=function(){return X(this,bl,14)};g.setMajorModifiedTime=function(a){return W(this,bl,14,a)};g.getResolvedTime=function(){return X(this,bl,6)};
g.setResolvedTime=function(a){return W(this,bl,6,a)};g.getVerifiedTime=function(){return X(this,bl,7)};g.setVerifiedTime=function(a){return W(this,bl,7,a)};g.getSloId=function(){return Dl(this,9)};g.getSloId_asLegacyNumberOrString=function(){return zl(this,9)};g.setSloId=function(a){return Fm(this,9,a)};g.getSloStatus=function(){return X(this,wo,10)};g.setSloStatus=function(a){W(this,wo,10,a)};g.hasSloStatus=function(){return nk(this,wo,10)};
g.getTeamId_asLegacyNumberOrString=function(){return zl(this,13)};g.getTeamId_asString=function(){return Gl(this,13)};g.setTeamId=function(a){return Fm(this,13,a)};g.getRetentionState=function(){return X(this,xo,11)};g.setRetentionState=function(a){W(this,xo,11,a)};g.getAccessLimit=function(){return X(this,Dm,12)};g.setAccessLimit=function(a){return W(this,Dm,12,a)};g.getParentIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,17,Fk())};
g.setParentIssueIdsList=function(a){return jp(this,17,a)};g.getAncestorsMap=function(){return Lc(this,19,yo,mc)};g.getChildIssueCount=function(){return Ik(this,20)};g.setChildIssueCount=function(a){return $k(this,20,a)};g.getDescendantIssueCount=function(){return Ik(this,21)};g.setDescendantIssueCount=function(a){return $k(this,21,a)};g.getOpenDescendantIssueCount=function(){return Ik(this,22)};g.setOpenDescendantIssueCount=function(a){return $k(this,22,a)};
g.getIsArchived=function(){return kl(this,18)};g.setIsArchived=function(a){return Xm(this,18,a)};var SE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,SE.messageId)};Y(SE,V);SE.prototype.getIt=function(){return X(this,wpc,14)};SE.prototype.setIt=function(a){return W(this,wpc,14,a)};SE.messageId="b.IssueMetadata";var xpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xpc,V);xpc.prototype.getIt=function(){return X(this,QE,4)};xpc.prototype.setIt=function(a){return W(this,QE,4,a)};var ypc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ypc,V);var TE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,TE.messageId)};Y(TE,V);TE.prototype.getIt=function(){return X(this,ypc,2)};TE.prototype.setIt=function(a){return W(this,ypc,2,a)};TE.messageId="b.UpdateIssueReadTimestampResponse";var UE=function(){this.executor=n(zC)};UE.prototype.delete=function(a,b){b=(new YD).setIt((new woc).setIssueId(Number(a)).setReason(elc[kza(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};UE.prototype.undelete=function(a){var b=(new aE).setIt((new xoc).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
UE.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:SE}).then(BEa)};UE.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new xpc,e=d.setIt;a=(new QE).setIssueIdsList(a.map(Number));b=Xm(a,2,b);c=Nk(b,3,wlc[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:TE}).then(AEa)};
var zpc=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:ho}).then(cDa).then(function(c){return Object.assign({},c,{id:b})})},Apc=function(a,b){var c=(new PE).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:RE}).then(function(d){d=d.getIt();return Wk(d,ho,1,Fk()).map(cDa)}).then(function(d){var e=fk(d,function(f){return f.id});return b.map(function(f){var h;return(h=e.get(f))!=null?
h:Oo(f)})})},Bpc=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:fDa(b),responseConstructor:ho}).then(cDa)};UE.\u0275fac=function(a){return new (a||UE)};UE.\u0275prov=Sc({token:UE,factory:UE.\u0275fac,providedIn:"root"});var WE=function(){GC.call(this,{freshUntil:6E4});this.activeSession=n(Es);this.batchApiAdapter=n(bD);this.batchApiConfig=n(VE);this.issueService=n(UE);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Pj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=Yr(this.activeSession,"enableIssueExperimentalFields")&&this.activeSession.isInternalSession()};Y(WE,GC);
WE.prototype.fetchOne=function(a){var b=this;return this.isEnabled?Oe(function(){return b.batchAdaptedGet(a)}).pipe(Pf(function(){return Ce(void 0)})):Ce(void 0)};WE.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};WE.prototype.copy=function(a){return a&&Qj(a)};
var XE=function(a,b,c){var d,e,f,h;return w(function(k){if(k.nextAddress==1){if(!a.isEnabled)return k.return(Oo(b));a.manualUpdate(b,function(q){c(q!=null?q:Oo(b))});return x(k,Ge(a.batchAdaptedGet(b)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=a.copy(d))!=null?e:Oo(b),c(f),x(k,Bpc(a.issueService,f),3);h=k.yieldResult;a.announce(h);return k.return(h)})};WE.\u0275fac=function(a){return new (a||WE)};WE.\u0275prov=Sc({token:WE,factory:WE.\u0275fac,providedIn:"root"});
var VE=function(){this.issueService=n(UE);this.maxBatchSize=100;this.bufferTimeMs=0};VE.prototype.call=function(a){var b=this;return Oe(function(){return Apc(b.issueService,[].concat(p(a)))}).pipe(y(function(c){return fk(c,function(d){return d.id})}))};VE.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:Oo(a)};VE.\u0275fac=function(a){return new (a||VE)};VE.\u0275prov=Sc({token:VE,factory:VE.\u0275fac,providedIn:"root"});var YE=function(){this.refreshRequest=new bg};YE.prototype.getObservable=function(){return this.refreshRequest};var Cpc=function(a,b){return a.getObservable().pipe(eg(void 0)).pipe(fg(function(){return b}))};YE.\u0275fac=function(a){return new (a||YE)};YE.\u0275prov=Sc({token:YE,factory:YE.\u0275fac,providedIn:"root"});var $E=function(){GC.call(this);var a=this;this.batchApiAdapter=n(bD);this.refreshMonitor=n(YE);this.issueBatchConfig=n(ZE);this.issueApi=n(AE);this.issueExperimentalFieldsFridge=n(WE);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=Pj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y($E,GC);g=$E.prototype;g.fetchOne=function(a){return this.batchAdaptedGet(a)};
g.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};
g.fetchAll=function(a){var b=a.custom;var c=a.filter;var d=a.pageSize;a={s:a.sort,count:d};if(b==="viewed")return npc(this.issueApi,d).pipe(y(function(e){return{results:e}}),Pf(function(e){Mj("issueFullFridge -> listRecentIssues() API error",e);return Ce({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=l(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=Oo("0"),d.triage.phase=c,mpc(this.issueApi,b,a,{queryType:"QUERY_TRIAGE_PHASE",experimentalFields:d,concatenator:{relation:"AND"}}).pipe(y(function(e){return{results:e.issues,
totalSize:e.numTotalResults}}));if(c)return this.issueApi.listIssues(c,a).pipe(y(function(e){return{results:e.issues,totalSize:e.numTotalResults}}));throw Error("ad");};g.copy=function(a){return a&&Qj(a)};g.watch=function(a,b){return Je([GC.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return IFa([c],[d])[0]}))};
g.watchSet=function(a,b){return Je([GC.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return IFa(c,d)}))};g.watchMany=function(a,b){var c=this;return GC.prototype.watchMany.call(this,a,b).pipe(fg(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(y(function(e){return IFa(d.results,e)}),y(function(e){return Object.assign({},d,{results:e})}))}))};
g.peek=function(a){var b=GC.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return IFa([b],[a])[0]};g.poke=function(a,b){var c=this,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return d=l,x(u,Promise.all([GC.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(u.yieldResult);f=e.next().value;h=e.next().value;k=f;q=h;return u.return(IFa([k],[q])[0])})};$E.\u0275fac=function(a){return new (a||$E)};
$E.\u0275prov=Sc({token:$E,factory:$E.\u0275fac,providedIn:"root"});var ZE=function(){this.issueApi=n(AE);this.maxBatchSize=100;this.bufferTimeMs=0};ZE.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(p(a))[0];return this.issueApi.getIssueBasic(c).pipe(y(function(d){return new Map([[c,d]])}))}return Oe(function(){return b.issueApi.batchGetIssues([].concat(p(a)))}).pipe(y(function(d){return fk(d,function(e){return e.issueId})}))};ZE.prototype.split=function(a,b){return b.get(a)};
ZE.\u0275fac=function(a){return new (a||ZE)};ZE.\u0275prov=Sc({token:ZE,factory:ZE.\u0275fac,providedIn:"root"});var JFa=window,aGa=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},Dpc=function(a){if(KFa())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var cGa=tk("debug-logging")(),UFa=window,Epc,$Fa=!1;var dGa=amc("last-visit"),eGa=amc("last-visit-count"),gGa=bmc("last-visit"),fGa=bmc("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var Fpc=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("bd`"+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&c!=="moz-extension"&&
c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("cd`"+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};var Hpc=function(a,b,c){var d=String(ya.location.href);return d&&a&&b?[b,Gpc(Fpc(d),a,c||null)].join(" "):null},Gpc=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],Va(d,function(k){e.push(k)}),Ipc(e.join(" "));var f=[],h=[];Va(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];Va(d,function(k){e.push(k)});a=Ipc(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")},Ipc=function(a){var b=
iGa();b.update(a);return b.digestString().toLowerCase()};var Jpc=function(){this.document_=document||{cookie:""}};g=Jpc.prototype;g.isEnabled=function(){if(!ya.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("dd`"+a);if(/[;\r\n]/.test(b))throw Error("ed`"+b);k===void 0&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.document_.cookie=a+"="+b+c+h+k+d+(e!=null?";samesite="+e:"")};
g.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Fa(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};g.getKeys=function(){return Kpc(this).keys};g.getValues=function(){return Kpc(this).values};g.isEmpty=function(){return!this.document_.cookie};
g.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};g.containsKey=function(a){return this.get(a)!==void 0};g.containsValue=function(a){for(var b=Kpc(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=Kpc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
var Kpc=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Fa(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};var Lpc=function(a,b,c,d){(a=ya[a])||typeof document==="undefined"||(a=(new Jpc).get(b));return a?Hpc(a,c,d):null},$Ja=function(a){var b=Fpc(String(ya.location.href)),c=[],d;(d=ya.__SAPISID||ya.__APISID||ya.__3PSAPISID||ya.__1PSAPISID||ya.__OVERRIDE_SID)?d=!0:(typeof document!=="undefined"&&(d=new Jpc,d=d.get("SAPISID")||d.get("APISID")||d.get("__Secure-3PAPISID")||d.get("__Secure-1PAPISID")),d=!!d);d&&(d=(b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==
0||b.indexOf("moz-extension:")==0)?ya.__SAPISID:ya.__APISID,d||typeof document==="undefined"||(d=new Jpc,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?Hpc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=Lpc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=Lpc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var Mpc=function(){},Npc=function(a){var b,c,d,e;return w(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),x(f,d.write((new TextEncoder).encode(a)),2);case 2:return x(f,d.close(),3);case 3:return e=Uint8Array,x(f,c,4);case 4:return f.return(new e(f.yieldResult))}})};Mpc.prototype.isSupported=function(a){return a<1024?!1:typeof CompressionStream!=="undefined"};var aF=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};aF.prototype.disposed_=!1;aF.prototype.isDisposed=function(){return this.disposed_};aF.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};aF.prototype[Symbol.dispose]=function(){this.dispose()};var Fr=function(a,b){b=yu(To,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};aF.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Opc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Opc,V);var bF=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};bF.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};bF.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
bF.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};bF.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Ppc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ppc,V);var Qpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qpc,V);var Rpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rpc,V);Rpc.prototype.getTransmissionType=function(){return pl(this,1)};Rpc.prototype.setTransmissionType=function(a){return Sl(this,1,a)};var mGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mGa,V);mGa.prototype.getVersion=function(){return Oh(this,2)};mGa.prototype.setVersion=function(a){return Rl(this,2,a)};mGa.prototype.getVersionOrUndefined=function(){return fr(this,2)};var cF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cF,V);var nGa=function(a,b){sn(a,1,b)};cF.prototype.setPlatform=function(a){Rl(this,3,a)};cF.prototype.setModel=function(a){return Rl(this,6,a)};var dF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dF,V);dF.prototype.getLocale=function(){return Oh(this,5)};dF.prototype.setLocale=function(a){return Rl(this,5,a)};dF.prototype.setBuildLabel=function(a){Rl(this,7,a)};var kGa=["platform","platformVersion","architecture","model","uaFullVersion"],oGa=new cF,lGa=null;var eF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eF,V);eF.prototype.getMutableJsClientInfo=function(){return Du(this,dF,11)};var Spc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Spc,V);g=Spc.prototype;g.getKey=function(){return Oh(this,1)};g.getValue=function(){return Oh(this,2)};g.getValue_legacyNullable=function(){return am(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};var fF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,4)};Y(fF,V);var gF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,36)};Y(gF,V);g=gF.prototype;g.getTag=function(){return Oh(this,2)};g.getComponentId=function(){return Oh(this,26)};g.setComponentId=function(a){return Rl(this,26,a)};g.hasComponentId=function(){return ml(this,26)};g.addValue=function(){return Eu(this,3,Spc)};g.setValue=function(a,b){return Bu(this,3,Spc,a,b)};var Tpc=function(a,b){return Rl(a,8,b)};gF.prototype.getExperimentIds=function(){return X(this,Opc,16)};
gF.prototype.setExperimentIds=function(a){W(this,Opc,16,a)};gF.prototype.clearExperimentIds=function(){return tq(this,16)};var Upc=function(a,b){Rl(a,24,b)};gF.prototype.getComplianceData=function(){return X(this,fF,33)};gF.prototype.setComplianceData=function(a){W(this,fF,33,a)};var Vpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,19)};Y(Vpc,V);g=Vpc.prototype;g.getClientInfo=function(){return X(this,eF,1)};g.getMutableClientInfo=function(){return Du(this,eF,1)};g.setClientInfo=function(a){W(this,eF,1,a)};g.getLogSource=function(){return pl(this,2,-1)};g.setLogSource=function(a){return Sl(this,2,a)};g.getComplianceData=function(){return X(this,fF,18)};g.setComplianceData=function(a){W(this,fF,18,a)};var Wpc=function(a,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Vpc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new eF)};g=Wpc.prototype;g.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
g.setClientInfo=function(a){this.logRequest.setClientInfo(a);pl(a,1)||Sl(a,1,1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),X(a,cF,9)||W(a,cF,9,this.uach))};g.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};g.setTransmissionType=function(a){this.transmissionType=a;return this};g.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var Xpc=function(a){var b=b===void 0?kGa:b;var c=a.isServiceWorkerScope?void 0:Az();c?pGa(c,b).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();W(d,cF,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};Wpc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=X(a,dF,11);b||(b=new dF,W(a,dF,11,b));return b};Wpc.prototype.getComplianceData=function(a){var b=new Ppc;a=Pl(b,13,a);b=new Qpc;a=W(b,Ppc,2,a);b=new fF;a=W(b,Qpc,1,a);return Sl(a,2,9)};
Wpc.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;c=c===void 0?0:c;d=d===void 0?null:d;e=e===void 0?0:e;f=f===void 0?0:f;if(nk(this.getMutableClientInfo(),dF,11)){var h=this.getMutableJsClientInfo();var k=(new Rpc).setTransmissionType(this.transmissionType);k=Ol(k,2,this.isFinal);c=Pl(k,3,c>0?c:void 0);c=Pl(c,4,e>0?e:void 0);c=Pl(c,5,f>0?f:void 0);c=Oda(c);W(h,Rpc,10,c)}h=this.logRequest.clone();c=Date.now().toString();h=Vl(h,4,c);a=sn(h,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));
b&&Hl(a,14,b);return a};var Ypc=function(){if(!ya.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};ya.addEventListener("test",c,b);ya.removeEventListener("test",c,b)}catch(d){}return a}();qGa.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};qGa.prototype.getValue=function(){return this.currValue_};var hF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hF,V);hF.prototype.getId=function(a){return Ku(this,1,a)};hF.prototype.setId=function(a){return Ou(this,1,a)};var Zpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,8)};Y(Zpc,V);Zpc.prototype.getExperiments=function(){return X(this,hF,2)};Zpc.prototype.setExperiments=function(a){return W(this,hF,2,a)};Zpc.prototype.hasExperiments=function(){return nk(this,hF,2)};var $pc=Rh(Zpc);var aqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(aqc,V);var bqc=new Bv(175237375,aqc);var iF=function(a){aF.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.useConsistentTimezoneOffset=this.clientSpecifiedFlushInterval=!1;this.compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=
this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=a.getAuthHeaderValue||function(){};this.logRequestBuilder=new Wpc(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.bufferSize=1E3;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=
!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Az()&&!!Az().navigator&&Az().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(cqc())).searchParams&&!!(new URL(cqc())).searchParams.set;var c=Sl(new eF,1,1);this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new qGa(1E4);a=dqc(this,a.backgroundJobDeferrer);this.flushTimer=new bF(this.flushBackoff.getValue(),
a);this.backupTimer=new bF(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){eqc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){eqc(b);var d;(d=b.metalogService)==null||d.flush()}))};Y(iF,aF);var dqc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
iF.prototype.disposeInternal=function(){eqc(this);this.flushTimer.stop();this.backupTimer.stop();aF.prototype.disposeInternal.call(this)};iF.prototype.setClearcutUrl=function(a){this.clearcutUrl=a};iF.prototype.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};iF.prototype.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=cqc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,Az().location.origin)).toString()}};
var kF=function(a,b){if(b instanceof gF)a.log(b);else try{var c=Tpc(new gF,b.serialize());a.log(c)}catch(d){jF(a,4,1)}};g=iF.prototype;g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId=a};g.setProductID=function(a){this.productID=a};g.setPageId=function(a){this.pageId=a};g.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new Opc);var b=this.experimentIds;a=[].concat(p(a));Mc(b,2,a,$da)};
g.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new Opc);var b=this.experimentIds;a=a.serialize();Rl(b,4,a)}else this.experimentIds&&tq(this.experimentIds,4)};g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};g.setCompressor=function(a){this.compressor=a};g.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};g.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;fqc(this,a)};g.getLogSource=function(){return this.logSource};
var fqc=function(a,b){a.flushBackoff=new qGa(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},jF=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
iF.prototype.log=function(a){jF(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=Hl(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(bc(rl(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";Vl(b,1,c)}yl(b,15)||Hl(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());jF(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,jF(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};iF.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
iF.prototype.flush=function(a,b){var c=this;if(this.pendingEvents.length===0)a&&a();else if(this.sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.setTransmissionType(3),gqc(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?this.logRequestBuilder.setTransmissionType(this.network.getTransmissionType()):this.logRequestBuilder.setTransmissionType(0));var e=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),h=this.getAuthHeaderValue();if(h&&this.lastFailedAuth===h)b&&b("stale-auth-token");else if(this.pendingEvents=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment)a&&a();else{d=f.serialize();var k;this.compressor&&this.compressor.isSupported(d.length)&&
(k=Npc(d));var q=this.createRequestParams(d,h),u=function(H){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(H){var N=null;try{var O=JSON.stringify(JSON.parse(H.replace(")]}'\n","")));N=$pc(O)}catch(U){}N&&(H=Number(Dl(N,1,zb("-1"))),H>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+H),N=z9b(N,bqc))&&(N=Ik(N,1,-1),N!==-1&&(c.clientSpecifiedFlushInterval||fqc(c,N)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},A=function(H,N){var O=Wk(f,gF,3,Fk());
var U=Number(Dl(f,14)),da=c.flushBackoff;da.currBaseValue_=Math.min(3E5,da.currBaseValue_*2);da.currValue_=Math.min(3E5,da.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*da.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());H===401&&h&&(c.lastFailedAuth=h);U&&(c.numLogsDroppedSinceLastFlush+=U);N===void 0&&(N=500<=H&&H<600||H===401||H===0);N&&(c.pendingEvents=O.concat(c.pendingEvents),c.maybeStartFlushTimer());jF(c,7,1);b&&b("net-send-failed",H);++c.numRetriesSinceLastSuccessfulFlush},
G=function(){c.network&&c.network.send(q,u,A)};k?k.then(function(H){jF(c,5,e);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=H;q.bodyType=2;G()},function(){jF(c,6,e);G()}):G()}}}};
iF.prototype.createRequestParams=function(a,b){b=b===void 0?this.getAuthHeaderValue():b;var c=c===void 0?this.withCredentials:c;var d={},e=new URL(this.getClearcutUrl());b&&(d.Authorization=b);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,e.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),e.searchParams.set("pageId",this.pageId));return{url:e.toString(),body:a,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:c,
timeoutMillis:this.timeoutMillis}};
var eqc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),gqc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),hqc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},gqc=function(a){iqc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=Az().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
hqc=function(a){iqc(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=c.serialize();for(var f=[],h=0,k=0;k<c.length;k++){var q=c.charCodeAt(k);q>255&&(f[h++]=q&255,q>>=8);f[h++]=q}c=P8b(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},iqc=function(a,b,c,d){if(a.pendingEvents.length!==0){var e=new URL(a.getClearcutUrl());e.searchParams.delete("format");var f=a.getAuthHeaderValue();f&&e.searchParams.set("auth",
f);e.searchParams.set("authuser",a.sessionIndex||"0");for(f=0;f<c&&a.pendingEvents.length;++f){var h=a.pendingEvents.slice(0,b),k=a.logRequestBuilder.build(h,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!d(e.toString(),k)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=
a.pendingEvents.slice(h.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},cqc=function(){return"https://play.google.com/log?format=json&hasfast=true"};iF.prototype.setBufferSize=function(a){this.bufferSize=a};var jqc=function(){this.abortSupported=typeof AbortController!=="undefined"};
jqc.prototype.send=function(a,b,c){var d=this,e,f,h,k,q,u,A,G,H,N;return w(function(O){switch(O.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,te(O,2,3),h=Object.assign({},{method:a.requestType,headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),x(O,fetch(a.url,h),5);case 5:k=O.yieldResult;if(k.status!==200){(q=c)==
null||q(k.status);O.jumpTo(3);break}if((u=b)==null){O.jumpTo(7);break}return x(O,k.text(),8);case 8:u(O.yieldResult);case 7:case 3:ue(O);clearTimeout(f);we(O,0);break;case 2:A=xe(O);switch((G=A)==null?void 0:G.name){case "AbortError":(H=c)==null||H(408);break;default:(N=c)==null||N(400)}O.jumpTo(3)}})};jqc.prototype.getTransmissionType=function(){return 4};var lF=function(a,b){aF.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.compressor=void 0;this.network=null;this.componentId="";this.clearcutClientInfo=this.opaqueExperimentIds=this.clearExperimentIds=this.productID=null;this.getRequestForFinalFlush=this.sendBeaconForFinalFlush=!1;this.flushIntervalMs=null;this.sendBeaconApiEnabled=!1;this.useConsistentTimezoneOffset=
void 0;this.pageId=null;this.bufferSize=void 0};Y(lF,aF);g=lF.prototype;g.setBuildLabel=function(a){this.buildLabel=a};g.setCompressor=function(a){this.compressor=a};g.setComponentId=function(a){this.componentId=a;return this};g.setProductID=function(a){this.productID=a};g.setClearExperimentIds=function(a){this.clearExperimentIds=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};var kqc=function(a,b){a.getAuthHeaderValue=b};g=lF.prototype;
g.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};g.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};g.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};g.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};g.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};g.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
g.setPageId=function(a){this.pageId=a};g.setBufferSize=function(a){this.bufferSize=a};
g.build=function(){this.network||(this.network=new jqc);var a=new iF({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:$Ja,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});Fr(this,a);this.clearcutClientInfo&&a.setClearcutClientInfo(this.clearcutClientInfo);
this.buildLabel&&a.setBuildLabel(this.buildLabel);this.compressor?a.setCompressor(this.compressor):this.compressor!==null&&a.setCompressor(new Mpc);this.componentId&&a.setComponentId(this.componentId);this.productID&&a.setProductID(this.productID);this.pageId&&a.setPageId(this.pageId);this.clearExperimentIds&&a.setClearExperimentIds(this.clearExperimentIds);this.opaqueExperimentIds&&a.setOpaqueExperimentIds(this.opaqueExperimentIds);this.sendBeaconForFinalFlush&&(a.useSendBeaconForFinalFlush=this.sendBeaconForFinalFlush&&
a.isSendBeaconSupported);this.getRequestForFinalFlush&&(a.useGetRequestForFinalFlush=this.getRequestForFinalFlush);this.flushIntervalMs&&a.setFlushIntervalMs(this.flushIntervalMs);this.sendBeaconApiEnabled&&(a.sendBeaconApiEnabled=a.isSendBeaconSupported);Xpc(a.logRequestBuilder);this.useConsistentTimezoneOffset&&a.setUseConsistentTimezoneOffset(!0);this.bufferSize&&a.setBufferSize(this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&
this.network.setTransportReferenceAndAttemptFlush(a);return a};var mF=function(){this.activeSession=n(Es);this.transport=(new lF(2523,this.activeSession.getSessionIdentifier())).build()};mF.\u0275fac=function(a){return new (a||mF)};mF.\u0275prov=Sc({token:mF,factory:mF.\u0275fac,providedIn:"root"});var lqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lqc,V);lqc.prototype.getValueCase=function(){return vm(this,mqc)};var mqc=[1,2,3];var nqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nqc,V);nqc.prototype.getValueCase=function(){return vm(this,oqc)};var oqc=[1,2,3];var pqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pqc,V);var qqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qqc,V);qqc.prototype.getFieldName=function(){return Ku(this,3)};qqc.prototype.setFieldName=function(a){Ou(this,3,a)};var rqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rqc,V);var nF=function(a,b,c,d,e,f,h){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;aF.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new lF(a,"0")).setComponentId(b),Fr(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&a.setBuildLabel(e),h&&(a.network=h),c=a.build());this.transport=c};Y(nF,aF);nF.prototype.getLogSource=function(){return this.logSource};nF.prototype.getComponentId=function(){return this.componentId};
nF.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new rqc,c=[],d=0;d<a.length;d++){var e=a[d],f=new qqc;f=Rl(f,1,e.metricName);var h=sqc(e);f=Mk(f,3,h);h=[];var k=[];for(var q=l(e.cellMap.keys()),u=q.next();!u.done;u=q.next())k.push(u.value.split(","));for(q=0;q<k.length;q++){u=k[q];var A=e.cellType;for(var G=e.getCells(u)||[],H=[],N=0;N<G.length;N++){var O=G[N],U=O&&O.cellValue;O=new nqc;switch(A){case 3:U=Number(U);Number.isFinite(U)&&Nm(O,1,oqc,Xb(U));break;case 2:Nm(O,2,oqc,Hb(Number(U)))}H.push(O)}A=
H;for(G=0;G<A.length;G++){H=A[G];N=new pqc;H=W(N,nqc,2,H);N=u;O=[];U=tqc(e);for(var da=0;da<U.length;da++){var ma=U[da],ra=N[da],Ga=new lqc;switch(ma){case 3:Am(Ga,1,mqc,String(ra));break;case 2:ma=Number(ra);Number.isFinite(ma)&&Nm(Ga,2,mqc,ma==null?ma:Rb(ma));break;case 1:Nm(Ga,3,mqc,Kb(ra==="true"))}O.push(Ga)}sn(H,1,O);h.push(H)}}sn(f,4,h);c.push(f);e.clear()}sn(b,1,c);kF(this.transport,b);this.transport.flush()}};var uqc=function(a){this.cellValue=a};var vqc=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},tqc=function(a){return a.fields.map(function(b){return b.fieldType})},sqc=function(a){return a.fields.map(function(b){return b.fieldName})};g=vqc.prototype;g.addCell=function(a){var b=ud.apply(1,arguments),c=this.getCells(b);c?c.push(new uqc(a)):this.setCell(a,b)};g.setCell=function(a){var b=this.getKey(ud.apply(1,arguments));this.cellMap.set(b,[new uqc(a)])};
g.getCells=function(){var a=this.getKey(ud.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};g.getCell=function(){var a=this.getCells(ud.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap.clear()};g.getKey=function(){var a=ud.apply(0,arguments);return a?a.join(","):"key"};var wqc=function(a,b){vqc.call(this,a,3,b)};Y(wqc,vqc);wqc.prototype.incrementCounter=function(){this.incrementCounterBy(1,ud.apply(0,arguments))};wqc.prototype.incrementCounterBy=function(a){var b=ud.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var xqc=function(a,b){vqc.call(this,a,2,b)};Y(xqc,vqc);xqc.prototype.record=function(a){this.addCell(a,ud.apply(1,arguments))};var oF=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};oF.prototype.stopPropagation=function(){this.propagationStopped_=!0};oF.prototype.preventDefault=function(){this.defaultPrevented=!0};var Mp=function(a,b){oF.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;a&&this.init(a,b)};zu(Mp,oF);
Mp.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=Np||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
Np||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=Us?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=
a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.event_=a;a.defaultPrevented&&Mp.superClass_.preventDefault.call(this)};Mp.prototype.stopPropagation=function(){Mp.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};Mp.prototype.preventDefault=function(){Mp.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var yqc="closure_listenable_"+(Math.random()*1E6|0),pF=function(a){return!(!a||!a[yqc])};var zqc=0;var Aqc=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++zqc;this.removed=this.callOnce=!1},Bqc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};Uo.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=Cqc(a,b,d,e);h>-1?(b=a[h],c||(b.callOnce=!1)):(b=new Aqc(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};Uo.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Cqc(e,b,c,d);return b>-1?(Bqc(e[b]),Xa(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var Dqc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=Za(a.listeners[c],b);d&&(Bqc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};Uo.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Bqc(d[e]);delete this.listeners[c];this.typeCount_--}return b};
Uo.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Cqc(a,b,c,d));return e>-1?a[e]:null};Uo.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Mqa(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var Cqc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};var Eqc="closure_lm_"+(Math.random()*1E6|0),Fqc={},Gqc=0,Ip=function(a,b,c,d,e){if(d&&d.once)return qF(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ip(a,b[f],c,d,e);return null}c=Hqc(c);return pF(a)?a.listen(b,c,cb(d)?!!d.capture:!!d,e):Iqc(a,b,c,!1,d,e)},Iqc=function(a,b,c,d,e,f){if(!b)throw Error("gd");var h=cb(e)?!!e.capture:!!e,k=Jqc(a);k||(a[Eqc]=k=new Uo(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=Kqc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Ypc||(e=h),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Lqc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("hd");Gqc++;return c},Kqc=function(){var a=Mqc,b=function(c){return a.call(b.src,b.listener,c)};return b},qF=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)qF(a,b[f],c,d,e);return null}c=Hqc(c);return pF(a)?a.listenOnce(b,c,cb(d)?!!d.capture:!!d,e):Iqc(a,b,c,!0,d,e)},rF=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)rF(a,b[f],c,d,e);else d=cb(d)?!!d.capture:!!d,c=Hqc(c),pF(a)?a.unlisten(b,c,d,e):a&&(a=Jqc(a))&&(b=a.getListener(b,c,d,e))&&sF(b)},sF=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(pF(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Lqc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Gqc--;(c=Jqc(b))?(Dqc(c,a),c.typeCount_==0&&(c.src=null,b[Eqc]=null)):Bqc(a);
return!0},Lqc=function(a){return a in Fqc?Fqc[a]:Fqc[a]="on"+a},Mqc=function(a,b){if(a.removed)a=!0;else{b=new Mp(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&sF(a);a=c.call(d,b)}return a},Jqc=function(a){a=a[Eqc];return a instanceof Uo?a:null},Nqc="__closure_events_fn_"+(Math.random()*1E9>>>0),Hqc=function(a){if(typeof a==="function")return a;a[Nqc]||(a[Nqc]=function(b){return a.handleEvent(b)});return a[Nqc]};Ufc(function(a){Mqc=a(Mqc)});var Hp=function(){aF.call(this);this.eventTargetListeners_=new Uo(this);this.actualEventTarget_=this;this.parentEventTarget_=null};zu(Hp,aF);Hp.prototype[yqc]=!0;g=Hp.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Ip(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){rF(this,a,b,c,d)};
g.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new oF(a,c);else if(a instanceof oF)a.target=a.target||c;else{var e=a;a=new oF(d,c);Vqa(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var h=a.currentTarget=b[f];e=h.fireListeners(d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=h.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=h.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)h=a.currentTarget=b[f],e=h.fireListeners(d,!1,a)&&e;return e};g.disposeInternal=function(){Hp.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};g.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};g.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
g.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};g.unlistenByKey=function(a){return Dqc(this.eventTargetListeners_,a)};g.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
g.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=h.call(k,c)!==!1&&d}}return d&&!c.defaultPrevented};g.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
g.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var tF=function(a,b){Hp.call(this);this.interval_=a||1;this.timerObject_=b||ya;this.boundTick_=mt(this.tick_,this);this.last_=Date.now()};zu(tF,Hp);g=tF.prototype;g.enabled=!1;g.timer_=null;g.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
g.tick_=function(){if(this.enabled){var a=Date.now()-this.last_;a>0&&a<this.interval_*.8?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};g.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){tF.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Yq=function(a,b,c){if(typeof a==="function")c&&(a=mt(a,c));else if(a&&typeof a.handleEvent=="function")a=mt(a.handleEvent,a);else throw Error("id");return Number(b)>2147483647?-1:ya.setTimeout(a,b||0)},Zq=function(a){ya.clearTimeout(a)},Oqc=function(a,b){var c=null;return(new Kz(function(d,e){c=Yq(function(){d(b)},a);c==-1&&e(Error("jd"))})).thenCatch(function(d){Zq(c);throw d;})};var Pqc=function(a){aF.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new tF(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);Fr(this,this.flushTimer)};Y(Pqc,aF);var Qqc=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};g=Pqc.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(p(a)).filter(function(b){return b.cellMap.size});a.length&&this.streamzLogger.flush(a,!1);Rqc(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=ud.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new wqc(a,b))};g.addNewEventMetric=function(a){var b=ud.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new xqc(a,b))};
g.getMetric=function(a){return this.disabledMetrics.has(a)?void 0:this.metricMap.get(a)};g.incrementCounter=function(a){this.incrementCounterBy(a,1,ud.apply(1,arguments))};g.incrementCounterBy=function(a,b){var c=ud.apply(2,arguments),d=this.getMetric(a);d&&d instanceof wqc&&(d.incrementCounterBy(b,c),Qqc(this))};g.record=function(a,b){var c=ud.apply(2,arguments),d=this.getMetric(a);d&&d instanceof xqc&&(d.record(b,c),Qqc(this))};g.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var Rqc=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var uF=function(){var a=new lF(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new nF(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new Pqc(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};uF.\u0275fac=function(a){return new (a||uF)};uF.\u0275prov=Sc({token:uF,factory:uF.\u0275fac,providedIn:"root"});var Sqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sqc,V);var Tqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tqc,V);var Uqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uqc,V);g=Uqc.prototype;g.setUserAction=function(a){return Sl(this,1,a)};g.getIssueId=function(){return Dl(this,3)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,3)};g.getIssueId_asString=function(){return Gl(this,3)};g.setIssueId=function(a){return Hl(this,3,a)};var Vqc=tk("debug-logging")(),vF=function(){this.activeSession=n(Es);this.streamz=n(uF);this.clearcutTransport=n(mF);this.pageLoadTime=new qfc(this.streamz.service);this.userLatency=new sfc(this.streamz.service);this.userActionCounter=new rfc(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
vF.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);Vqc&&console.log("Clearcut stub",{action:b,duration:a})};var wF=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);Vqc&&console.log("Clearcut stub",{action:c,duration:b})},Wqc=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);Vqc&&console.log("Clearcut stub",{action:b})};vF.\u0275fac=function(a){return new (a||vF)};
vF.\u0275prov=Sc({token:vF,factory:vF.\u0275fac,providedIn:"root"});var Xqc=vk("journey-log"),Yqc=eva("journey-log"),Zqc=[{matcher:RegExp("ssue__edit"),outputEvent:"edit"},{matcher:RegExp("ssue__addComment"),outputEvent:"comment"},{matcher:RegExp("ssue__light-ixn"),outputEvent:"ixn"},{matcher:RegExp("ssue__copyIssueId"),outputEvent:"ixn"},{matcher:RegExp("global-search__.*__.*text"),outputEvent:"ilp-search"},{matcher:RegExp("global-search__.*__filters"),outputEvent:"ilp-filter"}],xF={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},yF=function(){this.clearcut=n(vF)},$qc=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=Yqc())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));Xqc(e);if(xF.successEvents.includes(b)){b=e;c=xF.abortEvents;d=xF.successEvents;e=xF.startEvents;for(var f=xF.successMarker,h,k=b.length-1;k>=0;k--){var q=l(b[k]),u=q.next().value;q=q.next().value;if(c.includes(u))break;if(f===u)break;if(d.includes(u)){if(h&&A)break;var A=q}else A&&e.includes(u)&&
(h=q)}A=h&&A?[h,A]:void 0;A&&(A=l(A),h=A.next().value,A=A.next().value-h,wF(a.clearcut,A,rGa("journey","global-search-text")),Po("journey","global-search-text","duration",A),$qc(a,xF.successMarker))}};yF.\u0275fac=function(a){return new (a||yF)};yF.\u0275prov=Sc({token:yF,factory:yF.\u0275fac,providedIn:"root"});var zF=function(){var a=this;this.clearcut=n(vF);this.onMeasurement=function(b){b.getEntries().forEach(a.sendToClearcut)};this.sendToClearcut=function(b){var c=b.name;c&&c.startsWith("GTM-")||(b=Math.round(b.duration),c!=null&&(isNaN(b)||a.clearcut.timePageLoad&&a.clearcut.timePageLoad(b,c)))}},arc=function(a){KFa()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new JFa.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
zF.\u0275fac=function(a){return new (a||zF)};zF.\u0275prov=Sc({token:zF,factory:zF.\u0275fac,providedIn:"root"});var brc=[Dj,Fj,Ej],BF=function(){Z.call(this);var a=this;this.router=n(DA);this.routeChangeStart=new bg;this.routeChangeSuccess=new bg;this.locationChangeStart=new bg;this.locationChangeSuccess=new bg;this.routeUpdate=new bg;this.viewContentLoaded=new bg;this.navigationEnd$=this.router.events.pipe(Ve(Ij));this.navigationOver$=this.router.events.pipe(Ve(function(c){return brc.some(function(d){return c instanceof d})}));AF(this,psa).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=AF(this,lhc);Ue(this.navigationOver$.pipe(Tf(ev)),this.routeChangeStart.pipe(Tf(b))).pipe(fg(ne),Ve(function(c){return c.snapshot.routeConfig.isRootRoute}),y(function(c){return{params:Object.assign({},c.snapshot.queryParams,c.snapshot.params)}}),gg(this.destroyed$)).subscribe(function(c){a.routeChangeSuccess.next(c)});AF(this,Jj).pipe(y(function(c){return c.url}),Xf()).subscribe(function(){a.locationChangeStart.next()});AF(this,Dj).pipe(y(function(c){return c.url}),
Xf()).subscribe(function(){a.locationChangeSuccess.next()});b=n(sj).queryParams.pipe(ig(AF(this,dhc)));Ue(this.routeChangeStart.pipe(Tf(ev)),this.navigationOver$.pipe(Tf(b))).pipe(fg(ne),gg(this.destroyed$)).subscribe(function(c){c=l(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});AF(this,Dj).subscribe(function(){a.viewContentLoaded.next()})};Y(BF,Z);BF.\u0275dir=Z.\u0275dir;
var AF=function(a,b){return a.router.events.pipe(Ve(function(c){return c instanceof b}),y(function(c){return c}),gg(a.destroyed$))};BF.\u0275fac=function(a){return new (a||BF)};BF.\u0275prov=Sc({token:BF,factory:BF.\u0275fac,providedIn:"root"});var crc=tk("onedev-darkmode"),drc=tk("hasClickedCommentSortBtn"),CF=function(){var a=n(BF),b=n(Es),c=n(sj);Z.call(this);var d=this;this.journeyTracker=n(yF);this.preapply=function(){return function(A){return function(G,H){d.trackEvent("editIssue",A,G,H)}}};hGa();Ro("dimension13",b.getUserTypeLabel());var e=b.getUserPreferences();Ro("dimension7",crc()?"dark":"default");var f;Ro("dimension3",(f=e.themePreferences)==null?void 0:f.density);Ro("dimension6",Yr(b,"readUnreadOptOut"));Ro("dimension9",drc());
f=e.showFullHistory?"fh":"comments";var h;if((h=e.commentFilterPreferences)==null?0:h.commentFilter){var k;f=(k=e.commentFilterPreferences)==null?void 0:k.commentFilter}Qo("dimension2",f);Qo("dimension5",e.showRecentEventsFirst?"newestFirst":"oldestFirst");var q,u;e=((u=(q=e.missionControlPreferences)==null?void 0:q.workAreaUrls)!=null?u:[]).length;Qo("dimension12",e>0);Ro("dimension16",Yr(b,"enableMissionControlInExternalEnvironments"));this.subscriptions.add(a.viewContentLoaded.pipe(eg(void 0)).subscribe(function(){var A=
tta(c.snapshot);bGa("page_location",A);XFa("page_view",{page_path:A})}))};Y(CF,Z);CF.\u0275dir=Z.\u0275dir;CF.prototype.trackEvent=function(a,b,c,d){Po(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=rGa(a,b,c);b=l(Zqc);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){$qc(d,e);break}}};
var erc=function(a,b,c){XFa("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},frc=function(a,b){a.trackEvent("editIssue","updateStatus",b)};CF.\u0275fac=function(a){return new (a||CF)};CF.\u0275prov=Sc({token:CF,factory:CF.\u0275fac,providedIn:"root"});var tGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tGa,V);var grc=!1;var EF=function(){GC.call(this);var a=this;this.batchApiAdapter=n(bD);this.issueApi=n(AE);this.userResources=n(HD);this.refreshMonitor=n(YE);this.issueService=n(UE);this.activeSession=n(Es);this.hotlistFridge=n(JD);this.analytics=n(CF);this.issueExperimentalFieldsFridge=n(WE);this.issueFullBatchConfig=n(DF);this.issueFridge=n($E);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=Pj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(grc)var b=void 0;else grc=!0,b=vGa();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(EF,GC);g=EF.prototype;g.announce=function(a,b){GC.prototype.announce.call(this,wGa(a));this.issueFridge.announce(Fya(a),b)};
g.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.batchAdaptedGet(a).pipe(hg(function(c){b.issueFridge.clearIsGetting(a);b.issueFridge.announce(Fya(c))}),y(function(c){return wGa(c)}),Pf(function(c){b.issueFridge.clearIsGetting(a);return De(function(){return c})}))};g.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c).pipe(Pf(function(){return Ce(void 0)}))})).pipe(y(function(c){return c.filter(Tk)}))};
g.watch=function(a,b){return Je([GC.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return Gya(d,c)}))};g.watchSet=function(a){return Je([GC.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=fk(c,function(e){return e.issueId});return b.map(function(e){return Gya(d.get(e.issueId),e)})}),y(function(b){return b.filter(Tk)}))};
g.peek=function(a){var b=GC.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return Gya(a,b)};g.poke=function(a,b){var c=this;return w(function(d){return d.nextAddress==1?x(d,Promise.all([GC.prototype.poke.call(c,a,b),c.issueFridge.poke(a,b)]),2):d.return(c.peek(a))})};g.manualUpdate=function(a,b){if(a=(a=this.peek(a))&&Qj(a))b(a),this.announce(a)};g.copy=function(a){return a&&Qj(a)};
var hrc=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};xC(a.activeSession)&&(d.voted=c);return poc(a.userResources,b,d).pipe(hg(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,xC(a.activeSession)&&(e.userData.voted=c))})}))},irc=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return poc(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(hg(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};EF.prototype.setNotificationSubscription=function(a,b){var c=this,d;return w(function(e){if(e.nextAddress==1)return c.analytics.trackEvent("issue","light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},x(e,Ge(poc(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});ze(e)})};
var jrc=function(a,b,c){a.analytics.trackEvent("issue","edit","title");var d={issueId:b,actions:[{fieldName:"title",value:c}]};a.manualUpdate(b,function(e){e.snapshot[0].title=c});return a.issueApi.updateIssue(b,d).pipe(hg(function(e){e&&a.announce(e)}))};EF.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
EF.prototype.updateHotlists=function(a,b,c){var d=this,e,f,h,k,q,u;return w(function(A){if(A.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=l([].concat(p(b),p(c)));for(h=f.next();!h.done;h=f.next())k=h.value,d.hotlistFridge.setIsSaving(k);te(A,2);return x(A,Ge(d.issueApi.updateIssueHotlists(a,e)).finally(function(){for(var G=l([].concat(p(b),p(c))),H=G.next();!H.done;H=G.next())d.hotlistFridge.clearIsSaving(H.value)}),
4)}if(A.nextAddress!=2)return(q=A.yieldResult)&&d.announce(q),A.return(q);u=xe(A);d.poke(a);throw u;})};var krc=function(a,b,c){return FF(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&frc(a.analytics,"DUPLICATE");return a.poke(b)})};g=EF.prototype;g.removeDuplicate=function(a,b){var c=this;return FF(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};g.addBlocking=function(a,b){return FF(this,"ADD","BLOCKING",a,b)};
g.removeBlocking=function(a,b){return FF(this,"REMOVE","BLOCKING",a,b)};g.addBlockedBy=function(a,b){return FF(this,"ADD","BLOCKED_BY",a,b)};g.removeBlockedBy=function(a,b){return FF(this,"REMOVE","BLOCKED_BY",a,b)};
var FF=function(a,b,c,d,e){if(e.length===0||d==null)return Promise.resolve(void 0);a.analytics.trackEvent("issue","edit","relation",Number(c));b={relation:c,issueId:d,targetIds:e,actionType:b};lrc(a,b);var f=[d].concat(p(e));e=l(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return Ge(a.issueApi.relateIssue(d,b)).then(function(h){h&&a.announce(h)}).catch(function(h){a.poke(d);throw h;}).finally(function(){for(var h=l(f),k=h.next();!k.done;k=h.next())a.clearIsSaving(k.value)})},GF=function(a,
b,c){c=c===void 0?{}:c;var d=c.markRead===void 0?!0:c.markRead;var e=c.eagerUpdate===void 0?!0:c.eagerUpdate;var f=c.userActivityType===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c.userActivityType;var h,k,q,u;return w(function(A){if(A.nextAddress==1)return a.activeSession.isAnonymous()?A.return():x(A,a.issueService.markRead(b,d,f),2);h=A.yieldResult;if(e)for(k=l(b),q=k.next();!q.done;q=k.next())u=q.value,a.manualUpdate(String(u),function(G){G.userData&&(G.userData.lastViewedTimeMicros=h.readTimestamp)});
return A.return(h.readTimestamp?Math.round(h.readTimestamp/1E3):void 0)})},lrc=function(a,b){a.manualUpdate(b.issueId,function(c){switch(b.relation){case "BLOCKED_BY":if(b.actionType==="ADD"){var d;c.snapshot[0].blockedByIssueId=[].concat(p((d=c.snapshot[0].blockedByIssueId)!=null?d:[]),p(b.targetIds.map(String)))}else if(b.actionType==="REMOVE"){var e,f;c.snapshot[0].blockedByIssueId=(f=(e=c.snapshot[0].blockedByIssueId)==null?void 0:e.filter(function(h){return!b.targetIds.includes(String(h))}))!=
null?f:[]}}})};EF.\u0275fac=function(a){return new (a||EF)};EF.\u0275prov=Sc({token:EF,factory:EF.\u0275fac,providedIn:"root"});var DF=function(){this.issueApi=n(AE);this.maxBatchSize=100;this.bufferTimeMs=0};DF.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(p(a))[0];return this.issueApi.getIssueFull(c).pipe(y(function(d){return new Map([[c,d]])}))}return Oe(function(){return b.issueApi.batchGetIssuesFull([].concat(p(a)))}).pipe(y(function(d){return fk(d,function(e){return e.issueId})}))};
DF.prototype.split=function(a,b){return b.get(a)};DF.\u0275fac=function(a){return new (a||DF)};DF.\u0275prov=Sc({token:DF,factory:DF.\u0275fac,providedIn:"root"});var mrc=function(a){var b=Error.call(this,a);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.data={message:a};Object.setPrototypeOf(this,this.constructor.prototype)};Y(mrc,Error);var Yo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yo,V);var nrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nrc,V);g=nrc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setRelationshipType=function(a){return Nk(this,2,a)};g.getIssueRelationship=function(){return X(this,Yo,3)};g.setIssueRelationship=function(a){return W(this,Yo,3,a)};
g.setSignificanceOverride=function(a){return Nk(this,4,a)};var orc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(orc,V);g=orc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setRelationshipType=function(a){return Nk(this,2,a)};g.setRequestsList=function(a){return sn(this,3,a)};g.addAndReturnRequests=function(){return Qc(this,3,nrc)};
g.setSignificanceOverride=function(a){return Nk(this,4,a)};var prc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(prc,V);g=prc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.setRelationshipType=function(a){return Nk(this,2,a)};g.setSignificanceOverride=function(a){return Nk(this,4,a)};var qrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qrc,V);g=qrc.prototype;g.setRelationshipType=function(a){return Nk(this,1,a)};g.getSourceIssueIdsList_asLegacyNumberOrString=function(){return Uk(this,2,Fk())};g.setSourceIssueIdsList=function(a){return jp(this,2,a)};g.getQuery=function(){return Oh(this,3)};g.setQuery=function(a){return Lk(this,3,a)};g.clearQuery=function(){tq(this,3)};var HF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HF,V);var rrc=function(a,b){return jp(a,1,b)};HF.prototype.setRelationshipType=function(a){return Nk(this,2,a)};var src=function(a,b){return $k(a,3,b)},trc=function(a,b){return $k(a,4,b)};HF.prototype.getQuery=function(){return Oh(this,5)};HF.prototype.setQuery=function(a){return Lk(this,5,a)};HF.prototype.clearQuery=function(){tq(this,5)};var IF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,IF.messageId)};Y(IF,V);IF.prototype.getIt=function(){return X(this,orc,5)};IF.prototype.setIt=function(a){return W(this,orc,5,a)};IF.messageId="b.BatchCreateIssueRelationshipsRequest";var urc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,urc.messageId)};Y(urc,V);urc.prototype.getIssueRelationshipsList=function(){return Wk(this,Yo,1,Fk())};urc.messageId="b.BatchCreateIssueRelationshipsResponse";var JF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JF.messageId)};Y(JF,V);JF.prototype.getIt=function(){return X(this,prc,5)};JF.prototype.setIt=function(a){return W(this,prc,5,a)};JF.messageId="b.BatchDeleteIssueRelationshipsRequest";var KF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,KF.messageId)};Y(KF,V);KF.prototype.getIt=function(){return X(this,qrc,4)};KF.prototype.setIt=function(a){return W(this,qrc,4,a)};KF.messageId="b.BatchGetIssueRelationshipsRequest";var vrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vrc,V);vrc.prototype.getIssueRelationshipsList=function(){return Wk(this,Yo,1,Fk())};vrc.prototype.getTotalSize=function(){return Ik(this,2)};var wrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wrc.messageId)};Y(wrc,V);wrc.messageId="b.BatchGetIssueRelationshipsResponse";var LF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,LF.messageId)};Y(LF,V);LF.prototype.getIssueRelationship=function(){return X(this,Yo,1)};LF.prototype.setIssueRelationship=function(a){return W(this,Yo,1,a)};LF.messageId="b.CreateIssueRelationshipResponse";var MF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,MF.messageId)};Y(MF,V);MF.prototype.getIt=function(){return X(this,HF,6)};MF.prototype.setIt=function(a){return W(this,HF,6,a)};MF.messageId="b.GetIssueDescendantsRequest";var xrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xrc.messageId)};Y(xrc,V);xrc.messageId="b.GetIssueDescendantsResponse";var yrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,yrc.messageId)};Y(yrc,V);yrc.prototype.getIssueRelationshipsList=function(){return Wk(this,Yo,1,Fk())};yrc.messageId="b.ListIssueRelationshipsResponse";var NF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,NF.messageId)};Y(NF,V);NF.prototype.getIssueRelationship=function(){return X(this,Yo,1)};NF.prototype.setIssueRelationship=function(a){return W(this,Yo,1,a)};NF.messageId="b.UpdateIssueRelationshipResponse";var OF=function(){this.executor=n(yC)};g=OF.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+sB[b],responseConstructor:yrc}).pipe(y(function(c){return c.getIssueRelationshipsList().map(zGa)}))};g.create=function(a,b,c){b=sB[b];c=yGa(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:LF}).pipe(y(function(d){return zGa(d.getIssueRelationship())}))};
g.update=function(a,b,c){b=sB[b];var d=yGa(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:NF}).pipe(y(function(e){return zGa(e.getIssueRelationship())}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+sB[b],responseConstructor:null})};
g.batchGet=function(a,b){b=sB[b];a=(new KF).setIt((new qrc).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:wrc}).pipe(y(function(c){return Wk(c,vrc,1,Fk()).map(AGa)}))};
var zrc=function(a,b,c){var d=sB.CHILD;c=c.map(function(e){e=yGa(e);return(new nrc).setIssueRelationship(e)});b=(new IF).setIt((new orc).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:urc}).pipe(y(function(e){return e.getIssueRelationshipsList().map(zGa)}))},Arc=function(a,b,c){var d=sB.CHILD,e=new JF,f=e.setIt;b=(new prc).setIssueId(b).setRelationshipType(d);
c=jp(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
OF.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=sB[c];b=(new MF).setIt(trc(src(rrc(new HF,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:xrc}).pipe(y(function(f){var h=new Map;f=l(Lc(f,1,vrc,mc).entries());for(var k=f.next();!k.done;k=f.next()){var q=l(k.value);k=q.next().value;q=q.next().value;h.set(String(k),
AGa(q))}return h}))};OF.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};OF.\u0275fac=function(a){return new (a||OF)};OF.\u0275prov=Sc({token:OF,factory:OF.\u0275fac,providedIn:"root"});var PF={},Brc=(PF.BUG="BUG",PF.FEATURE_REQUEST="FEATURE_REQUEST",PF.CUSTOMER_ISSUE="CUSTOMER_ISSUE",PF.INTERNAL_CLEANUP="INTERNAL_CLEANUP",PF.PROCESS="PROCESS",PF.VULNERABILITY="VULNERABILITY",PF.PRIVACY_ISSUE="PRIVACY_ISSUE",PF.EPIC="STORY",PF.STORY="TASK",PF.TASK="TASK",PF.PROJECT="TASK",PF.FEATURE="TASK",PF.MILESTONE="TASK",PF.PROGRAM="PROJECT",PF);var QF=function(){FC.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=n(OF);this.issueFullFridge=n(EF);this.refreshMonitor=n(YE);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=Pj;this.activeMoveOperation$=new tj(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=Jua(function(b,c){return Crc(a,b,c)});this.assignParentToOneIssue=function(b,c){return Crc(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=Iua(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=Jua(function(b){var c,d,e,f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na,Qa,gb,va,Ja,La,Lb,Eb;return w(function(jc){switch(jc.nextAddress){case 1:d=GGa(b);if(d.length===0)return jc.return();e=d.map(function(nc){return nc.issues.map(function(Jc){return Jc.parentId})}).flat();f=d.map(function(nc){return nc.newParentId});h=jk([].concat(p(e),p(f)));k=l(h);for(q=k.next();!q.done;q=k.next())u=q.value,
a.setIsSaving(u);te(jc,2);A=l(d);G=A.next();case 4:if(G.done){uu(jc,3);break}H=G.value;N=l(H.newRelations);O=N.next();U={};case 7:if(O.done){G=A.next();jc.jumpTo(4);break}U.newRelation=O.value;da=H.issues.find(function(nc){return function(Jc){return Jc.issueId===nc.newRelation.targetIssueId}}(U)).parentId;return H.newParentId===da?x(jc,Ge(a.issueRelationshipService.update(H.newParentId,"CHILD",{afterIssueId:U.newRelation.afterIssueId,targetIssueId:U.newRelation.targetIssueId})),8):x(jc,Ge(a.issueRelationshipService.create(H.newParentId,
"CHILD",{afterIssueId:U.newRelation.afterIssueId,targetIssueId:U.newRelation.targetIssueId})).catch(function(nc){var Jc,ec;if(!(nc==null?0:(Jc=nc.error)==null?0:(ec=Jc.details)==null?0:ec.includes("ALREADY_EXISTS")))throw nc;}),12);case 12:return x(jc,Ge(a.issueRelationshipService.delete(da,"CHILD",U.newRelation.targetIssueId)),8);case 8:U={newRelation:void 0};O=N.next();jc.jumpTo(7);break;case 2:c=ma=xe(jc);case 3:ra=a.activeMoveOperation$.value;Ga=l(b.map(function(nc){return nc.eventTimestamps}).flat());
for(Na=Ga.next();!Na.done;Na=Ga.next())Qa=Na.value,ra.delete(Qa);a.activeMoveOperation$.next(ra);gb=l(h);for(va=gb.next();!va.done;va=gb.next())Ja=va.value,a.clearIsSaving(Ja);Promise.all(h.map(function(nc){return a.poke(nc)}));La=l(d);for(Lb=La.next();!Lb.done;Lb=La.next())Eb=Lb.value,c&&Eb.done.reject(c),Eb.done.resolve();ze(jc)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(QF,FC);
QF.prototype.fetchOne=function(a){var b=this;return Drc(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(y(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),Pf(function(c){return Wo(c)&&c.status===403?Ce(void 0):De(function(){return c})}))})};
QF.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(p((c=a.ids)!=null?c:[]));return d.length===0?Ce({results:[]}):Drc(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(y(BGa),y(function(e){return{results:e}}))});default:Gb(a.type)}};QF.prototype.copy=function(a){return a&&Qj(a)};
var Drc=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(Ve(function(d){return d.size===0}),fg(function(){return b()}),fg(function(d){return a.activeMoveOperation$.value.size===0?Ce(d):c()}),Uf())};return c()},Erc=function(a,b){return a.watch(b).pipe(fg(function(c){return c&&c.totalChildCount===c.relatedChildren.length?Ce(c):a.watch(b,{trustMemory:!1})}))},Frc=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},Grc=function(a,b,c){return inc(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
QF.prototype.unlinkFromParent=function(a,b,c){c=c===void 0?!1:c;var d=this,e;return w(function(f){switch(f.nextAddress){case 1:d.issueFullFridge.manualUpdate(b,function(h){--h.childIssueCount});d.issueFullFridge.manualUpdate(a,function(h){h.parentIssueIds=h.parentIssueIds.filter(function(k){return k!==b})});d.manualUpdate(b,function(h){var k=h.relatedChildren;h.relatedChildren=FGa(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();te(f,2);return x(f,Ge(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:uu(f,0);break;case 2:return e=xe(f),x(f,Promise.all([d.poke(b),d.issueFullFridge.poke(b),d.issueFullFridge.poke(a)]),5);case 5:throw e;}})};
var Crc=function(a,b,c){var d,e,f,h,k,q,u,A,G;return w(function(H){switch(H.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return H.return({added:d,notAdded:e});h=Hrc(a,b);k=c.map(function(N,O){var U=N.afterIssueId==="-1"?h:N.afterIssueId;return{targetIssueId:N.issueId,afterIssueId:O?c[O-1].issueId:U}});Irc(a,b,k);q=l(k);u=q.next();case 2:if(u.done){H.jumpTo(4);break}A=u.value;te(H,5);return x(H,Ge(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:A.targetIssueId,afterIssueId:A.afterIssueId})),
7);case 7:d.push(A.targetIssueId);uu(H,3);break;case 5:G=xe(H);if(!Wo(G))throw G;f.push(G);e.push(A.targetIssueId);case 3:u=q.next();H.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),H.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},Irc=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=EGa(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});a.issueFullFridge.manualUpdate(b,
function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},Jrc=function(a,b,c){var d,e,f,h,k,q,u,A,G,H,N,O;return w(function(U){if(U.nextAddress==1)return d=[],e=[],f=[],c.length===0?U.return({added:d,notAdded:e}):x(U,Promise.allSettled(c.map(function(da){return Ge(a.issueRelationshipService.create(da,"CHILD",{targetIssueId:b,afterIssueId:Hrc(a,da)}))})),2);h=U.yieldResult;k=l(h.entries());for(q=k.next();!q.done;q=k.next())u=q.value,A=l(u),G=A.next().value,H=A.next().value,N=G,O=H,O.status==="fulfilled"&&
d.push(c[N]),O.status==="rejected"&&(e.push(c[N]),f.push(O.reason));Promise.all(c.map(function(da){return a.poke(da)}));return U.return({added:d,notAdded:e,errors:f})})},Krc=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=l(c),h=f.next(),k={};!h.done;k={issue$jscomp$76:void 0},h=f.next())k.issue$jscomp$76=h.value,a.manualUpdate(k.issue$jscomp$76.parentId,function(ma){return function(ra){ra.relatedChildren=FGa(ra.relatedChildren,
ma.issue$jscomp$76.issueId);--ra.totalChildCount}}(k));var q=void 0,u;if((u=b.position)==null?0:u.issueId){var A;if(((A=b.position)==null?void 0:A.position)==="after")q=b.position.issueId;else{var G;if(((G=b.position)==null?void 0:G.position)==="before"){var H,N;f=(N=(H=a.memory.getData(d))==null?void 0:H.relatedChildren)!=null?N:[];H=l(f.entries());for(N=H.next();!N.done;N=H.next())if(h=l(N.value),N=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=void 0;q=(b=f[N-1])==null?
void 0:b.targetIssueId;break}}}}var O=c.map(function(ma,ra){return{targetIssueId:ma.issueId,afterIssueId:ra?c[ra-1].issueId:q}});jnc(a,d)!==void 0?a.manualUpdate(d,function(ma){ma.relatedChildren=EGa(ma.relatedChildren,O);ma.totalChildCount+=O.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:EGa([],O),totalChildCount:O.length});b=new Hua;var U,da;a.moveChildrenInAPI({newParentId:d,newRelations:O,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:(da=(U=a.memory.getData(d))==
null?void 0:U.relatedChildren)!=null?da:[],done:b});return b.promise},Hrc=function(a,b){var c;a=(c=a.memory.getData(b))==null?void 0:c.relatedChildren;var d;return a==null?void 0:(d=a[(a==null?NaN:a.length)-1])==null?void 0:d.targetIssueId};QF.\u0275fac=function(a){return new (a||QF)};QF.\u0275prov=Sc({token:QF,factory:QF.\u0275fac,providedIn:"root"});var Lrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lrc,V);var RF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(RF,V);RF.prototype.getTrackerId_asLegacyNumberOrString=function(){return zl(this,2)};RF.prototype.getTrackerId_asString=function(){return Gl(this,2)};RF.prototype.setTrackerId=function(a){Hl(this,2,a)};RF.prototype.setFilterSignalsList=function(a){return ip(this,3,a)};var $o=new Set("READY_TO_SUBMIT NEEDS_ATTENTION THREAD_MENTIONS_ME CHANGELIST_MANUAL_SIGNAL CHANGELIST_SNOOZE_EXPIRED TAGGED_IN_COMMENT REQUIRES_APPROVAL DRIVE_MANUAL_SIGNAL DRIVE_SNOOZE_EXPIRED GERRIT_CHANGE_NEEDS_ATTENTION GERRIT_CHANGE_READY_TO_SUBMIT GERRIT_MANUAL_SIGNAL GERRIT_SNOOZE_EXPIRED DUE_SOON DUE_DATE_EXPIRED GOOGLE_TASKS_MANUAL_SIGNAL GOOGLE_TASKS_SNOOZE_EXPIRED ISSUE_SIGNAL_UNSPECIFIED NEAR_SLO COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT IRM_MANUAL_SIGNAL IRM_SNOOZE_EXPIRED IRM_SEND_POSTMORTEM_FOR_REVIEW IRM_REVIEW_POSTMORTEM".split(" "));var FHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FHa,V);g=FHa.prototype;g.getWorkspaceId=function(){return Dl(this,2)};g.getWorkspaceId_asLegacyNumberOrString=function(){return zl(this,2)};g.getWorkspaceId_asString=function(){return Gl(this,2)};g.getType=function(){return pl(this,3)};g.setType=function(a){return Nk(this,3,a)};g.getName=function(){return Oh(this,4)};g.setName=function(a){return Lk(this,4,a)};g.getHotlistId=function(){return Dl(this,7)};
g.getHotlistId_asLegacyNumberOrString=function(){return zl(this,7)};g.setHotlistId=function(a){return Fm(this,7,a)};g.getStatus=function(){return pl(this,8)};g.setStatus=function(a){return Nk(this,8,a)};g.getTagsList=function(a){return Hc(this,9,Qb,Fk(a))};g.getTags=function(a){return v9b(this,9,a)};g.setVelocity=function(a){return on(this,11,a)};g.getStartTime=function(){return X(this,bl,12)};g.setStartTime=function(a){W(this,bl,12,a)};g.getEndTime=function(){return X(this,bl,13)};
g.setEndTime=function(a){W(this,bl,13,a)};g.getEtag=function(){return Oh(this,18)};g.setEtag=function(a){Lk(this,18,a)};var SF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SF,V);SF.prototype.getContexts=function(a){return v9b(this,1,a)};var Mrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mrc,V);var Nrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nrc,V);var Orc=function(a){var b=new Nrc;return sn(b,1,a)};var TF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TF,V);TF.prototype.getTitle=function(){return Oh(this,2)};TF.prototype.setTitle=function(a){return Lk(this,2,a)};TF.prototype.clearTitle=function(){return tq(this,2)};var Prc=function(a,b){return Lk(a,3,b)},Qrc=function(a,b){return Fm(a,4,b)},Rrc=function(a,b){return Lk(a,5,b)};TF.prototype.getClientId=function(){return Ik(this,6)};TF.prototype.setClientId=function(a){return $k(this,6,a)};
TF.prototype.getWorkspaceId=function(){return Oh(this,7)};var Src=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Src.messageId)};Y(Src,V);Src.prototype.setTaskIdsList=function(a){return Mk(this,1,a)};Src.messageId="mc.BatchUpdateTasksDismissStateRequest";var Trc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Trc.messageId)};Y(Trc,V);Trc.prototype.setTaskIdsList=function(a){return Mk(this,1,a)};Trc.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var UF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,UF.messageId)};Y(UF,V);UF.prototype.setTaskIdsList=function(a){return Mk(this,1,a)};UF.prototype.setTaskStatus=function(a){return Nk(this,2,a)};UF.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var Urc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Urc,V);Urc.prototype.setFilterSignalsList=function(a){return ip(this,1,a)};var Vrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vrc,V);Vrc.prototype.setFilterSignalsList=function(a){return ip(this,1,a)};var Wrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wrc,V);Wrc.prototype.setFilterSignalsList=function(a){return ip(this,1,a)};var Xrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xrc,V);Xrc.prototype.getCommentId=function(){return Oh(this,2)};Xrc.prototype.setCommentId=function(a){return Lk(this,2,a)};var Yrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yrc,V);Yrc.prototype.setTaskResourceTypesList=function(a){return ip(this,1,a)};Yrc.prototype.setMaxTaskAgeDays=function(a){return $k(this,2,a)};Yrc.prototype.setIssueFilters=function(a){return W(this,RF,3,a)};var Zrc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zrc,V);Zrc.prototype.setFilterSignalsList=function(a){return ip(this,1,a)};var $rc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($rc,V);$rc.prototype.setFilterSignalsList=function(a){return ip(this,1,a)};var asc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(asc,V);asc.prototype.setTaskResourceTypesList=function(a){return ip(this,1,a)};asc.prototype.setMaxTaskAgeDays=function(a){return $k(this,2,a)};asc.prototype.setIssueFilters=function(a){return W(this,RF,4,a)};var bsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bsc,V);g=bsc.prototype;g.getId=function(){return Oh(this,1)};g.setId=function(a){return Lk(this,1,a)};g.getTitle=function(){return Oh(this,2)};g.setTitle=function(a){return Lk(this,2,a)};g.clearTitle=function(){return tq(this,2)};var csc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(csc,V);var VF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,VF.messageId)};Y(VF,V);VF.prototype.getResponse=function(){return X(this,csc,1)};VF.prototype.getReadonlyResponse=function(){return nr(this,csc,1)};VF.prototype.getMutableResponse=function(){return Du(this,csc,1)};VF.prototype.setResponse=function(a){return W(this,csc,1,a)};VF.messageId="b.GetGoogleTasksTaskListsResponse";var WF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WF,V);WF.prototype.getCommentId=function(){return Oh(this,1)};WF.prototype.setCommentId=function(a){return Lk(this,1,a)};WF.prototype.getContent=function(){return Oh(this,3)};WF.prototype.setContent=function(a){return Lk(this,3,a)};var XF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,XF.messageId)};Y(XF,V);XF.prototype.getResponse=function(){return X(this,WF,1)};XF.prototype.getReadonlyResponse=function(){return nr(this,WF,1)};XF.prototype.getMutableResponse=function(){return Du(this,WF,1)};XF.prototype.setResponse=function(a){return W(this,WF,1,a)};XF.messageId="b.LatestDriveMentionResponse";var YF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(YF,V);YF.prototype.getCreatedTimestamp=function(){return Dl(this,1)};YF.prototype.setOwnedByMe=function(a){return Xm(this,3,a)};YF.prototype.getMimeType=function(){return Oh(this,15)};YF.prototype.setMimeType=function(a){Lk(this,15,a)};var dsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dsc,V);g=dsc.prototype;g.setResourceId=function(a){Lk(this,17,a)};g.getTitle=function(){return Oh(this,2)};g.setTitle=function(a){return Lk(this,2,a)};g.clearTitle=function(){return tq(this,2)};g.getLastModifiedTimestamp=function(){return Dl(this,3)};g.getIconName=function(){return Oh(this,10)};g.getExternalLink=function(){return Oh(this,16)};g.getIsDeleted=function(){return kl(this,19)};
g.setIsDeleted=function(a){Xm(this,19,a)};g.getDriveResource=function(){return Qm(this,YF,5,esc)};g.hasDriveResource=function(){return an(this,YF,5,esc)};var esc=[5,6,7,8,9,18,22,23,24];var ZF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZF,V);ZF.prototype.getName=function(){return Oh(this,1)};ZF.prototype.setName=function(a){return Lk(this,1,a)};ZF.prototype.getContent=function(){return Oh(this,2)};ZF.prototype.setContent=function(a){return Lk(this,2,a)};var fsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fsc,V);g=fsc.prototype;g.getTaskId=function(){return Oh(this,1)};g.setTaskStatus=function(a){return Nk(this,3,a)};g.getResource=function(){return X(this,dsc,6)};g.setResource=function(a){return W(this,dsc,6,a)};g.getNote=function(){return X(this,ZF,22)};g.getCreatedTimestamp=function(){return Dl(this,7)};var $F=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($F,V);$F.prototype.getTask=function(){return X(this,fsc,1)};$F.prototype.hasTask=function(){return nk(this,fsc,1)};var aG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,aG.messageId)};Y(aG,V);aG.prototype.getResponse=function(){return X(this,$F,1)};aG.prototype.getReadonlyResponse=function(){return nr(this,$F,1)};aG.prototype.getMutableResponse=function(){return Du(this,$F,1)};aG.prototype.setResponse=function(a){return W(this,$F,1,a)};aG.messageId="b.TasksCreateGoogleTasksResponse";var gsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gsc,V);var ZGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZGa,V);g=ZGa.prototype;g.getPriority=function(){return pl(this,1)};g.setPriority=function(a){return Nk(this,1,a)};g.getAccessLevel=function(){return pl(this,2)};g.setAccessLevel=function(a){return Nk(this,2,a)};g.getHotlistIdsList_asLegacyNumberOrString=function(a){return Uk(this,3,Fk(a))};g.getHotlistIdsList_asString=function(){return El(this,3)};g.setHotlistIdsList=function(a){return jp(this,3,a)};
g.addHotlistIds=function(a,b){return Pc(this,3,Wb,a,b,ac)};g.addAllHotlistIds=function(a){Nu(this,3,a)};g.removeHotlistIds=function(a){return y9b(this,3,a)};var WGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WGa,V);WGa.prototype.getCategory=function(){return pl(this,1)};WGa.prototype.setCategory=function(a){return Nk(this,1,a)};var TGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TGa,V);g=TGa.prototype;g.getTaskId=function(){return Oh(this,1)};g.getTitle=function(){return Oh(this,3)};g.setTitle=function(a){return Lk(this,3,a)};g.clearTitle=function(){return tq(this,3)};g.getCreatedTimestamp=function(){return X(this,bl,4)};g.getLastModifiedTimestamp=function(){return X(this,bl,5)};g.getExternalLink=function(){return Oh(this,6)};g.getDriveResource=function(){return Qm(this,gsc,8,$Ga)};
g.hasDriveResource=function(){return an(this,gsc,8,$Ga)};var $Ga=[8,9,10,11,12,16,17];var hsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hsc,V);var isc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,isc.messageId)};Y(isc,V);isc.prototype.getResponsesList=function(){return Wk(this,hsc,1,Fk())};isc.messageId="b.TasksMyTasksResponse";var jsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jsc,V);jsc.prototype.getCommentNumber=function(){return Ju(this,1)};jsc.prototype.setCommentNumber=function(a){return Pc(this,1,Rb,void 0,a,Sb,1)};var kHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kHa,V);var cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cp,V);cp.prototype.getDataCase=function(){return vm(this,lHa)};cp.prototype.getSignal=function(){return pl(this,1)};cp.prototype.setSignal=function(a){return Nk(this,1,a)};cp.prototype.getCommentNumbers=function(){return Qm(this,jsc,2,lHa)};var lHa=[2,3];var gHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gHa,V);gHa.prototype.getComeBackTimestamp=function(){return X(this,bl,1)};var iHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iHa,V);iHa.prototype.getComeBackTimestamp=function(){return X(this,bl,2)};var fHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fHa,V);fHa.prototype.hasFutureAvailability=function(){return an(this,iHa,1,hHa)};var hHa=[1,2];var bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bp,V);bp.prototype.getDataCase=function(){return vm(this,ksc)};bp.prototype.getSignal=function(){return pl(this,1)};bp.prototype.setSignal=function(a){return Nk(this,1,a)};var ksc=[2,3];var bHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bHa,V);g=bHa.prototype;g.getDataCase=function(){return vm(this,dHa)};g.getSignal=function(){return pl(this,1)};g.setSignal=function(a){return Nk(this,1,a)};g.getCommentId=function(){return xm(this,2,dHa)};g.setCommentId=function(a){return Am(this,2,dHa,a)};var dHa=[2];var mHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mHa,V);mHa.prototype.getSignal=function(){return pl(this,1)};mHa.prototype.setSignal=function(a){return Nk(this,1,a)};var oHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oHa,V);oHa.prototype.getSignal=function(){return pl(this,1)};oHa.prototype.setSignal=function(a){return Nk(this,1,a)};var pHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pHa,V);pHa.prototype.getSignal=function(){return pl(this,1)};pHa.prototype.setSignal=function(a){return Nk(this,1,a)};var RGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(RGa,V);g=RGa.prototype;g.getTimestamp=function(){return X(this,bl,1)};g.setTimestamp=function(a){return W(this,bl,1,a)};g.hasTimestamp=function(){return nk(this,bl,1)};g.getUrl=function(){return X(this,rz,2)};g.setUrl=function(a){return W(this,rz,2,a)};g.hasUrl=function(){return nk(this,rz,2)};var Zo=[3,4,5,6,7,9,10];var NGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NGa,V);NGa.prototype.getTask=function(){return X(this,TGa,1)};NGa.prototype.hasTask=function(){return nk(this,TGa,1)};var lsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lsc,V);var msc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,msc.messageId)};Y(msc,V);msc.prototype.getResponsesList=function(){return Wk(this,lsc,1,Fk())};msc.messageId="b.TasksNeedsAttentionResponse";var nsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nsc,V);var bG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bG,V);bG.prototype.getValue=function(){return Ik(this,1)};bG.prototype.setValue=function(a){return Pl(this,1,a)};bG.prototype.hasValue=function(){return ll(this,1)};var cG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cG,V);cG.prototype.getUrl=function(){return X(this,rz,2)};cG.prototype.setUrl=function(a){return W(this,rz,2,a)};cG.prototype.hasUrl=function(){return nk(this,rz,2)};var JGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JGa,V);g=JGa.prototype;g.getId=function(){return Oh(this,1)};g.setId=function(a){return Rl(this,1,a)};g.getTitle=function(){return Oh(this,2)};g.setTitle=function(a){return Rl(this,2,a)};g.clearTitle=function(){return tq(this,2)};g.getUrl=function(){return X(this,rz,3)};g.setUrl=function(a){return W(this,rz,3,a)};g.hasUrl=function(){return nk(this,rz,3)};g.getDescription=function(){return Oh(this,4)};
g.setDescription=function(a){return Rl(this,4,a)};g.hasDescription=function(){return ml(this,4)};g.getPriority=function(){return X(this,Lrc,5)};g.setPriority=function(a){return W(this,Lrc,5,a)};g.getScore=function(){return X(this,bG,6)};g.setScore=function(a){return W(this,bG,6,a)};g.getConfidence=function(){return X(this,nsc,10)};var osc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(osc,V);g=osc.prototype;g.getId=function(){return Oh(this,1)};g.setId=function(a){return Rl(this,1,a)};g.getTitle=function(){return Oh(this,2)};g.setTitle=function(a){return Rl(this,2,a)};g.clearTitle=function(){return tq(this,2)};g.getUrl=function(){return X(this,rz,3)};g.setUrl=function(a){return W(this,rz,3,a)};g.hasUrl=function(){return nk(this,rz,3)};g.getDescription=function(){return Oh(this,4)};
g.setDescription=function(a){return Rl(this,4,a)};g.hasDescription=function(){return ml(this,4)};g.getPriority=function(){return X(this,Lrc,5)};g.setPriority=function(a){return W(this,Lrc,5,a)};g.getScore=function(){return X(this,bG,6)};g.setScore=function(a){return W(this,bG,6,a)};var LGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LGa,V);g=LGa.prototype;g.getUri=function(){return X(this,tz,1)};g.setUri=function(a){return W(this,tz,1,a)};g.getUrl=function(){return X(this,rz,2)};g.setUrl=function(a){return W(this,rz,2,a)};g.hasUrl=function(){return nk(this,rz,2)};g.getLabel=function(){return Oh(this,3)};g.setLabel=function(a){return Rl(this,3,a)};g.hasLabel=function(){return ml(this,3)};var HGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HGa,V);g=HGa.prototype;g.getUri=function(){return X(this,tz,2)};g.setUri=function(a){return W(this,tz,2,a)};g.getObjective=function(){return X(this,osc,1)};g.setObjective=function(a){return W(this,osc,1,a)};g.getTeam=function(){return X(this,cG,3)};g.setTeam=function(a){W(this,cG,3,a)};g.hasTeam=function(){return nk(this,cG,3)};var psc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(psc,V);var dG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dG.messageId)};Y(dG,V);dG.prototype.getResponse=function(){return X(this,psc,1)};dG.prototype.getReadonlyResponse=function(){return nr(this,psc,1)};dG.prototype.getMutableResponse=function(){return Du(this,psc,1)};dG.prototype.setResponse=function(a){return W(this,psc,1,a)};dG.messageId="b.TeamObjectivesResponse";var KHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KHa,V);var IHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(IHa,V);IHa.prototype.getId=function(){return Oh(this,1)};IHa.prototype.setId=function(a){return Lk(this,1,a)};var EHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(EHa,V);var qsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qsc,V);qsc.prototype.getEmail=function(){return Oh(this,1)};qsc.prototype.setEmail=function(a){return Lk(this,1,a)};var fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fp,V);fp.prototype.getId=function(){return Oh(this,1)};fp.prototype.setId=function(a){return Lk(this,1,a)};fp.prototype.getVersion=function(){return Oh(this,2)};fp.prototype.setVersion=function(a){return Lk(this,2,a)};var dp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dp,V);g=dp.prototype;g.getWorkspaceId=function(){return Dl(this,1)};g.getWorkspaceId_asLegacyNumberOrString=function(){return zl(this,1)};g.getWorkspaceId_asString=function(){return Gl(this,1)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Lk(this,2,a)};g.getTimeZone=function(){return X(this,fp,8)};g.setTimeZone=function(a){return W(this,fp,8,a)};
g.hasTimeZone=function(){return nk(this,fp,8)};g.getMembersList=function(){return Wk(this,qsc,9,Fk())};g.setMembersList=function(a){return sn(this,9,a)};g.getUpdateTime=function(){return X(this,bl,12)};g.setUpdateTime=function(a){W(this,bl,12,a)};g.hasUpdateTime=function(){return nk(this,bl,12)};g.getBookmarkGroupId_asLegacyNumberOrString=function(){return zl(this,14)};g.setBookmarkGroupId=function(a){return Fm(this,14,a)};g.setTeamId=function(a){return Lk(this,20,a)};var rsc=Rh(dp);var ssc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ssc,V);var JHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JHa,V);g=JHa.prototype;g.getData=function(){return X(this,ssc,2)};g.setData=function(a){return W(this,ssc,2,a)};g.clearData=function(){return tq(this,2)};g.getFilter=function(){return X(this,SF,3)};g.setFilter=function(a){return W(this,SF,3,a)};var tsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tsc,V);var eG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,eG.messageId)};Y(eG,V);eG.prototype.getResponse=function(){return X(this,tsc,1)};eG.prototype.getReadonlyResponse=function(){return nr(this,tsc,1)};eG.prototype.getMutableResponse=function(){return Du(this,tsc,1)};eG.prototype.setResponse=function(a){return W(this,tsc,1,a)};eG.messageId="b.WorkItemsResponse";var usc=[1,2],fG=function(){this.executor=n(yC);this.activeSession=n(Es)},vsc=function(a,b,c){c=c===void 0?!0:c;b=(new Src).setTaskIdsList(b);c=Xm(b,2,c);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},wsc=function(a,b,c){c=c===void 0?!0:c;b=(new Trc).setTaskIdsList(b);c=Xm(b,2,c);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},xsc=function(a,b,c){b=(new UF).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=cl(c);W(d,bl,3,c)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},ysc=function(a,b,c,d,e){b=(new asc).setTaskResourceTypesList(b.map(qHa));c=Nk(b,3,rHa(d)).setMaxTaskAgeDays(c);d=new RF;var f;b=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;d.setTrackerId(b);c.setIssueFilters(d);if(Yr(a.activeSession,"enableSignalFiltering")){d.setFilterSignalsList(e.buganizerSignals.map(uHa));var h=(new Vrc).setFilterSignalsList(e.driveSignals.map(wHa));
b=(new Urc).setFilterSignalsList(e.changelistSignals.map(yHa));f=(new Wrc).setFilterSignalsList(e.gerritSignals.map(AHa));d=c.setIssueFilters(d);d=W(d,Vrc,5,h);d=W(d,Urc,6,b);W(d,Wrc,7,f);Yr(a.activeSession,"enableGoogleTasks")&&(f=(new Zrc).setFilterSignalsList(e.googleTasksSignals.map(BHa)),W(c,Zrc,8,f));Yr(a.activeSession,"enableIrmTasks")&&(e=(new $rc).setFilterSignalsList(e.irmSignals.map(CHa)),W(c,$rc,9,e))}return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:msc,body:c}).pipe(y(PGa))},
zsc=function(a,b,c,d){var e=new RF;d=Nk(e,1,sHa(d));var f;e=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;d.setTrackerId(e);b=(new Yrc).setTaskResourceTypesList(b.map(qHa)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:isc,body:b}).pipe(y(UGa))},Asc=function(a,b,c){var d=new Xrc;b=Lk(d,1,b).setCommentId(c);return a.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:XF,body:b}).pipe(y(DHa))},Bsc=function(a,
b){if(!b.length)return Ce([]);var c=new Mrc;b=Mk(c,1,b);c=new SF;c=ip(c,1,usc);b=W(b,SF,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:eG,body:b}).pipe(y(LHa))},Csc=function(a,b){if(!b.length)return Ce([]);b=b.map(function(c){return(new tz).setResourcePath(c)});b=Orc(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:dG}).pipe(y(MGa))};
fG.prototype.saveGTask=function(a){a=Qrc(Rrc(Prc((new TF).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:aG}).pipe(y(function(b){var c,d;b=(c=b.getResponse())==null?void 0:(d=c.getTask())==null?void 0:d.getTaskId();if(!b)throw Error("kd");return b}))};
var Dsc=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:VF}).pipe(y(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Wk(c,bsc,1,Fk()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};fG.\u0275fac=function(a){return new (a||fG)};fG.\u0275prov=Sc({token:fG,factory:fG.\u0275fac,providedIn:"root"});var Esc={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},gG=function(){FC.call(this);this.api=n(fG);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=Esc};Y(gG,FC);gG.prototype.fetchAll=function(a){return a.sources.length===0?Ce({results:[]}):zsc(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(y(function(b){b=b===void 0?[]:b;return{results:b}}))};gG.\u0275fac=function(a){return new (a||gG)};
gG.\u0275prov=Sc({token:gG,factory:gG.\u0275fac,providedIn:"root"});var E9a=["assigned-to-me","recent-stuff-i-follow"],Fsc=["BUGANIZER","CRITIQUE","DRIVE"],Gsc=["BUGANIZER"],Hsc=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],Isc={BUGANIZER:{displayName:"Buganizer",filterType:"BUGANIZER",tooltipText:"Buganizer issues of all types"},NON_WTDM:{displayName:"Bugs",filterType:"NON_WTDM",tooltipText:"Issue types including bug, feature request, customer issue, internal cleanup, process, vulnerability, and privacy issue"},WTDM:{displayName:"Work tracking",filterType:"WTDM",tooltipText:"Issue types including project, milestone, feature, epic, story, and task"},
CRITIQUE:{displayName:"Critique",filterType:"CRITIQUE",tooltipText:"CLs from Critique"},DRIVE:{displayName:"Drive",filterType:"DRIVE",tooltipText:"Drive files including Google Docs, Sheets, Slides"},ARIANE:{displayName:"Launch",filterType:"ARIANE",tooltipText:"Launches and related action items"},GERRIT:{displayName:"Gerrit",filterType:"GERRIT",tooltipText:"Gerrit changes"},GOOGLE_TASKS:{displayName:"Google Tasks",filterType:"GOOGLE_TASKS",tooltipText:"Google Tasks"},IRM:{displayName:"IRM",filterType:"IRM",
tooltipText:"Incidents managed through IRM"}},Jsc={buganizerSignals:"NEAR_SLO COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT".split(" "),driveSignals:["TAGGED_IN_COMMENT","REQUIRES_APPROVAL","DRIVE_MANUAL_SIGNAL","DRIVE_SNOOZE_EXPIRED"],changelistSignals:["THREAD_MENTIONS_ME","NEEDS_ATTENTION","READY_TO_SUBMIT","CHANGELIST_MANUAL_SIGNAL","CHANGELIST_SNOOZE_EXPIRED"],
gerritSignals:["GERRIT_CHANGE_NEEDS_ATTENTION","GERRIT_CHANGE_READY_TO_SUBMIT","GERRIT_MANUAL_SIGNAL","GERRIT_SNOOZE_EXPIRED"],googleTasksSignals:["DUE_SOON","DUE_DATE_EXPIRED","GOOGLE_TASKS_MANUAL_SIGNAL","GOOGLE_TASKS_SNOOZE_EXPIRED"],irmSignals:["IRM_SEND_POSTMORTEM_FOR_REVIEW","IRM_REVIEW_POSTMORTEM","IRM_MANUAL_SIGNAL","IRM_SNOOZE_EXPIRED"]},Ksc={buganizerSignals:"COMMENT_MENTIONS_ME MENTIONED_NEEDS_RESPONSE BLOCKERS_CLOSED NEWLY_BLOCKING NEEDS_REPORTER_INPUT REPLIED_TO_MENTION NEWLY_ASSIGNED_TO_ME ISSUE_MANUALLY_SIGNALED ISSUE_SNOOZE_EXPIRED CONFIGURABLE_ALERT".split(" "),
driveSignals:[],changelistSignals:[],gerritSignals:[],googleTasksSignals:[],irmSignals:[]},Lsc;Lsc={filter:"((assignee:me OR reporter:me OR modifier:me OR commenter:me OR collaborator:me) OR star:true) (parentid:any OR descendantcount>0) modified:90d",pageSize:250,sort:"modified_time:desc"};var Msc={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:Jsc},hG=function(){FC.call(this);this.api=n(fG);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=Msc};Y(hG,FC);hG.prototype.fetchAll=function(a){return a.sources.length===0?Ce({results:[]}):ysc(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(y(function(b){b=b===void 0?[]:b;return{results:b}}))};
hG.\u0275fac=function(a){return new (a||hG)};hG.\u0275prov=Sc({token:hG,factory:hG.\u0275fac,providedIn:"root"});var iG=function(){GC.call(this);this.userAccess=n(jE);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Y(iG,GC);iG.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(y(function(b){return l(b).next().value}))};iG.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return Oe(function(){return Toc(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};iG.\u0275fac=function(a){return new (a||iG)};
iG.\u0275prov=Sc({token:iG,factory:iG.\u0275fac,providedIn:"root"});var MHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MHa,V);var Nsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Nsc.messageId)};Y(Nsc,V);Nsc.messageId="b.PrincipalTypeInfoBatchResponse";var kG=function(){this.principalResources=n(jG);this.bulkApiAdapter=n(gE);this.principalTypeGetter=this.bulkApiAdapter.adapt(Osc(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(Osc(this,!0))},Osc=function(a,b){return function(c){return Psc(a.principalResources,c,b).then(function(d){return QHa(c,d)})}};kG.prototype.get=function(a){return lG(this,a,!1)};
var lG=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:RHa()})};kG.\u0275fac=function(a){return new (a||kG)};kG.\u0275prov=Sc({token:kG,factory:kG.\u0275fac,providedIn:"root"});
var jG=function(){this.executor=n(zC)},Psc=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=jk(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:Nsc}).then(PHa).then(function(e){for(var f={},h=l(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=void 0;f[k]=(q=e[k])!=null?q:RHa()}return f})};jG.\u0275fac=function(a){return new (a||jG)};jG.\u0275prov=Sc({token:jG,factory:jG.\u0275fac,providedIn:"root"});var mG=function(){GC.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=n(kG);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Y(mG,GC);mG.prototype.fetchOne=function(a){var b=this;return Oe(function(){return b.principalTypesApi.get(a)}).pipe(y(function(c){return Object.assign({},{email:a},c)}),Pf(function(){return Ce(void 0)}))};mG.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};
mG.\u0275fac=function(a){return new (a||mG)};mG.\u0275prov=Sc({token:mG,factory:mG.\u0275fac,providedIn:"root"});var nG=function(){GC.call(this);this.api=n(AE);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Y(nG,GC);nG.prototype.isEqual=function(a,b){return(a==null?void 0:a.id.query)!==(b==null?void 0:b.id.query)||(a==null?void 0:a.id.pageSize)!==(b==null?void 0:b.id.pageSize)?!1:eya(a==null?void 0:a.events,b==null?void 0:b.events)};
nG.prototype.fetchOne=function(a){var b=l(a.split("___")),c=b.next().value;b=b.next().value;Qk(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=Qk(b))!=null?d:50;return qpc(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(y(function(f){return{id:{query:c,pageSize:e},events:f}}))};nG.\u0275fac=function(a){return new (a||nG)};nG.\u0275prov=Sc({token:nG,factory:nG.\u0275fac,providedIn:"root"});var Qsc=["ASSIGNMENT","RESPONSE","CLOSURE"],Rsc=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),Ssc=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),NAb=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hp,V);g=hp.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return zl(this,1)};g.getId_asString=function(){return Gl(this,1)};g.setId=function(a){return Hl(this,1,a)};g.getFrequency=function(){return pl(this,3)};g.setFrequency=function(a){return Nk(this,3,a)};g.getOrdinal=function(){return Ik(this,4)};g.setOrdinal=function(a){return $k(this,4,a)};
g.getTimeZone=function(){return X(this,fp,5)};g.setTimeZone=function(a){return W(this,fp,5,a)};g.hasTimeZone=function(){return nk(this,fp,5)};g.getTimeOfDay=function(){return X(this,gp,6)};g.setTimeOfDay=function(a){return W(this,gp,6,a)};g.setDaysRemaining=function(a){return on(this,7,a)};var oG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oG,V);oG.prototype.getTeamId_asLegacyNumberOrString=function(){return zl(this,1)};oG.prototype.getTeamId_asString=function(){return Gl(this,1)};oG.prototype.setTeamId=function(a){return Fm(this,1,a)};oG.prototype.getEffectiveSloEditPolicy=function(){return pl(this,3)};var kp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kp.messageId)};Y(kp,V);kp.prototype.getIt=function(){return X(this,lp,10)};kp.prototype.setIt=function(a){return W(this,lp,10,a)};kp.messageId="b.SloState";var Tsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tsc,V);Tsc.prototype.getQuery=function(){return Oh(this,1)};Tsc.prototype.setQuery=function(a){return Lk(this,1,a)};Tsc.prototype.clearQuery=function(){tq(this,1)};var ZHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZHa,V);g=ZHa.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getEffectiveSloEditPolicy=function(){return pl(this,2)};var Usc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Usc.messageId)};Y(Usc,V);Usc.messageId="b.GetComponentSloEditPolicyResponse";var Vsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Vsc.messageId)};Y(Vsc,V);Vsc.prototype.getTeamSloEditPolicy=function(){return X(this,oG,1)};Vsc.messageId="b.GetTeamSloEditPolicyResponse";var Wsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wsc,V);var pG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pG.messageId)};Y(pG,V);pG.prototype.getIt=function(){return X(this,Wsc,1)};pG.prototype.setIt=function(a){return W(this,Wsc,1,a)};pG.messageId="b.ListSlosResponse";var Xsc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Xsc.messageId)};Y(Xsc,V);Xsc.prototype.getTeamSloEditPolicy=function(){return X(this,oG,1)};Xsc.messageId="b.UpdateTeamSloEditPolicyResponse";var qG=function(){this.activeSession=n(Es);this.executor=n(yC)};g=qG.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:kp}).pipe(y(cIa))};g.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};g.search=function(a){a=(new Tsc).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:pG}).pipe(y(function(b){b=b.getIt();b=Wk(b,lp,1,Fk());return(b!=null?b:[]).map(iAa)}))};
g.create=function(a){a=dIa(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:kp}).pipe(y(cIa))};g.update=function(a){var b=a.sloId;a=dIa(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:kp}).pipe(y(cIa))};qG.\u0275fac=function(a){return new (a||qG)};qG.\u0275prov=Sc({token:qG,factory:qG.\u0275fac,providedIn:"root"});
var rG=function(){this.observableSlosService=n(qG);var a=n(wD),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};g=rG.prototype;g.get=function(a){var b=this.slosCache.get(a);return b!==void 0?b:this.slosCache.put(String(a),Ge(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return Ge(this.observableSlosService.getOwnedSlos())};g.search=function(a){return Ge(this.observableSlosService.search(a))};g.create=function(a){return Ge(this.observableSlosService.create(a))};
g.update=function(a){return Ge(this.observableSlosService.update(a))};rG.\u0275fac=function(a){return new (a||rG)};rG.\u0275prov=Sc({token:rG,factory:rG.\u0275fac,providedIn:"root"});var sG=function(){GC.call(this);this.observableSlosService=n(qG);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Y(sG,GC);g=sG.prototype;g.fetchOne=function(a){return this.observableSlosService.get(a)};g.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};g.search=function(a){return this.observableSlosService.search(a)};g.create=function(a){return this.observableSlosService.create(a)};g.update=function(a){return this.observableSlosService.update(a)};
sG.\u0275fac=function(a){return new (a||sG)};sG.\u0275prov=Sc({token:sG,factory:sG.\u0275fac,providedIn:"root"});var Ysc=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new vD(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};Ysc.prototype.get=function(a){var b=this;return new pe(function(c){var d=b.lruCache.get(a);d||(d=Zsc(b,a));return d.obs$.subscribe(c)})};
var Zsc=function(a,b){var c=a.rawGet(b).pipe(cg({refCount:!0,bufferSize:1})),d=c.subscribe({error:function(){var e=a.lruCache.get(b);e&&(a.lruCache.remove(b),e.subscription.unsubscribe())}});c=new $sc(c,d);a.lruCache.set(b,c);return c},$sc=function(a,b){this.obs$=a;this.subscription=b};var tG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,tG.messageId)};Y(tG,V);tG.prototype.getIt=function(){return X(this,cD,14)};tG.prototype.setIt=function(a){return W(this,cD,14,a)};tG.messageId="b.TeamState";var atc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(atc,V);g=atc.prototype;g.getPathIdsList_asLegacyNumberOrString=function(){return s9b(this,1)};g.getPathIdsList_asString=function(){return El(this,1)};g.setPathIdsList=function(a){return Mc(this,1,a,Wb)};g.getPathNamesList=function(a){return Ek(this,2,Fk(a))};g.setPathNamesList=function(a){return Mk(this,2,a)};g.getId=function(){return Dl(this,3)};g.getId_asLegacyNumberOrString=function(){return Iu(this,3)};
g.getId_asString=function(){return sl(this,3)};g.setId=function(a){return Vl(this,3,a)};g.getName=function(){return Oh(this,4)};g.setName=function(a){return Rl(this,4,a)};g.hasName=function(){return ml(this,4)};g.getNameOrUndefined=function(){return fr(this,4)};g.getDescription=function(){return Oh(this,5)};g.setDescription=function(a){return Rl(this,5,a)};g.hasDescription=function(){return ml(this,5)};var btc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(btc,V);g=btc.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getId_asString=function(){return sl(this,1)};g.setId=function(a){return Vl(this,1,a)};g.getName=function(){return Oh(this,2)};g.setName=function(a){return Rl(this,2,a)};g.hasName=function(){return ml(this,2)};g.getNameOrUndefined=function(){return fr(this,2)};
g.getDescription=function(){return Oh(this,3)};g.setDescription=function(a){return Rl(this,3,a)};g.hasDescription=function(){return ml(this,3)};var ctc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ctc,V);ctc.prototype.setTeamIdsList=function(a){return jp(this,1,a)};ctc.prototype.setView=function(a){return Nk(this,2,a)};var dtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dtc.messageId)};Y(dtc,V);dtc.prototype.setTeamIdsList=function(a){return Mc(this,1,a,Wb)};dtc.messageId="b.BatchChildTeamsRequest";var etc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(etc,V);var ftc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ftc.messageId)};Y(ftc,V);ftc.messageId="b.BatchChildTeamsResponse";var gtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gtc,V);var uG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,uG.messageId)};Y(uG,V);uG.prototype.getIt=function(){return X(this,gtc,2)};uG.prototype.setIt=function(a){return W(this,gtc,2,a)};uG.messageId="b.BatchGetTeamsResponse";var vG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,vG.messageId)};Y(vG,V);vG.prototype.getTeamSuggestionsList=function(){return Wk(this,atc,1,Fk())};vG.prototype.setTeamSuggestionsList=function(a){sn(this,1,a)};vG.messageId="b.TeamSuggestionResult";var wG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wG.messageId)};Y(wG,V);wG.prototype.getIt=function(){return X(this,Tn,3)};wG.prototype.setIt=function(a){return W(this,Tn,3,a)};wG.messageId="b.UpdateTeamSloRequest";var yG=function(){var a=this;this.executor=n(yC);this.teamsBatchApiConfig=n(xG);this.batchApiAdapter=n(bD);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new Ysc(function(b){return a.batchAdaptedGet(b)},100)};yG.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:tG}).pipe(y(fIa))};yG.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var zG=function(a,b){return a.getTeam(b).pipe(y(function(c){return c!=null?c:hIa(b)}),Pf(function(){return Ce(hIa(b))}))},htc=function(a,b){b=b.filter(function(c){return c!=="0"}).map(function(c){return a.getTeam(c)});return Pe(b).pipe(y(function(c){var d=new Map;c=l(c);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&d.set(e.teamId,e);return d}))};
yG.prototype.getChildTeams=function(a){a=(new dtc).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:ftc}).pipe(y(function(b){b=[].concat(p(Lc(b,1,etc,oc).entries()));return new Map(b.map(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Wk(d,btc,1,Fk());return[c,d.map(eIa)]}))}))};
var AG=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:vG}).pipe(y(function(c){return c.getTeamSuggestionsList().map(gIa)}))},itc=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:WD}).pipe(y(iDa))},jtc=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(uDa);b=(new WD).setId(b.id);b=lo(b,2,jo,e);return c.call(a,{url:d,body:b,responseConstructor:WD}).pipe(y(iDa))},
ktc=function(a,b,c){return b==="0"?Ce(!1):a.memoizingTeamStateMap.get(b).pipe(y(function(d){return(d==null?void 0:d.members.find(function(e){return e&&Dk(e.user)===c}))!==void 0}))},ltc=function(a,b){b=(new ctc).setTeamIdsList([].concat(p(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:uG,body:b}).pipe(y(function(c){return Wk(c.getIt(),cD,1,Fk())}),y(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),(f=dna((e=X(d,Sn,7))==null?void 0:
Dl(e,3)))!=null?f:0]}))}))};
yG.prototype.updateTeam=function(a){var b=new tG,c=new cD,d,e,f=c.setId(Number(a.teamId)).setName(a.name).setDescription(a.description).setPathNamesList(a.pathNames).setPathIdsList((d=a.pathIds)==null?void 0:d.map(Qk).filter(Tk));d=Mk(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(gCa));Xm(d,9,a.deleted);e=new Sn;d=a.extra;e.setVersion(a.version).setSlo(hCa(a.slo)).setInheritEscalationOwner(d==null?void 0:d.inheritEscalationOwner);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(Ok(d.escalationOwner));
if(d==null?0:d.defaultEscalationOwner)d=Ok(d.defaultEscalationOwner),W(e,Kk,7,d);W(c,Sn,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:tG}).pipe(y(fIa))};yG.\u0275fac=function(a){return new (a||yG)};yG.\u0275prov=Sc({token:yG,factory:yG.\u0275fac,providedIn:"root"});var xG=function(){this.executor=n(yC)};
xG.prototype.call=function(a){a=(new ctc).setTeamIdsList([].concat(p(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:uG,body:a}).pipe(y(function(b){return Wk(b.getIt(),cD,1,Fk()).map(fCa)}),y(function(b){return fk(b,function(c){return c.teamId})}),Pf(function(){return Ce(new Map)}))};xG.prototype.split=function(a,b){return b.get(a)};xG.\u0275fac=function(a){return new (a||xG)};xG.\u0275prov=Sc({token:xG,factory:xG.\u0275fac,providedIn:"root"});var BG=function(){FC.call(this);this.teamsApi=n(yG);this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Y(BG,FC);BG.prototype.fetchAll=function(a){if(a.myTeams)return AG(this.teamsApi,"").pipe(y(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("qd");};BG.\u0275fac=function(a){return new (a||BG)};BG.\u0275prov=Sc({token:BG,factory:BG.\u0275fac,providedIn:"root"});var CG=function(){GC.call(this,{freshUntil:6E4});this.activeSession=n(Es);this.teamsApi=n(yG);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Pj};Y(CG,GC);CG.prototype.fetchOne=function(a){var b=this;return Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession()?Oe(function(){return itc(b.teamsApi,a).pipe(y(function(c){return c!=null?c:{id:a,triage:[{id:0}]}}),Pf(function(){return Ce(void 0)}))}):Ce(void 0)};
CG.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.watch(c)})).pipe(y(function(c){return c.filter(Tk)}))};CG.prototype.copy=function(a){return a&&Qj(a)};CG.\u0275fac=function(a){return new (a||CG)};CG.\u0275prov=Sc({token:CG,factory:CG.\u0275fac,providedIn:"root"});var DG=function(){GC.call(this);this.teamsApi=n(yG);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Y(DG,GC);DG.prototype.fetchOne=function(a){return a==="0"?Ce(void 0):this.teamsApi.getTeam(a).pipe(Pf(function(){return Ce(void 0)}))};DG.prototype.fetchSet=function(a){var b=this;return Je(a.map(function(c){return b.fetchOne(c)})).pipe(y(function(c){return c.filter(Tk)}))};DG.\u0275fac=function(a){return new (a||DG)};DG.\u0275prov=Sc({token:DG,factory:DG.\u0275fac,providedIn:"root"});var mtc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mtc,V);mtc.prototype.setTrackerIdsList=function(a){return jp(this,1,a)};var ntc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ntc,V);ntc.prototype.getTrackersList=function(){return Wk(this,kC,1,Fk())};var EG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,EG.messageId)};Y(EG,V);EG.prototype.getIt=function(){return X(this,ntc,9)};EG.prototype.setIt=function(a){return W(this,ntc,9,a)};EG.messageId="b.BatchGetTrackersResponse";var FG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FG,V);FG.prototype.getTrackersList=function(){return Wk(this,kC,1,Fk())};FG.prototype.getNextPageToken=function(){return Oh(this,2)};FG.prototype.getTotalSize=function(){return Ik(this,3)};var GG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,GG.messageId)};Y(GG,V);GG.prototype.getIt=function(){return X(this,FG,4)};GG.prototype.setIt=function(a){return W(this,FG,4,a)};GG.messageId="b.ListTrackersResponse";var HG=function(){this.jspbExecutor=n(yC)};HG.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:dm}).pipe(y(Jva))};HG.prototype.batchGet=function(a){a=(new mtc).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:EG,body:a}).pipe(y(Kva))};
HG.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:GG,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(y(Lva))};HG.\u0275fac=function(a){return new (a||HG)};HG.\u0275prov=Sc({token:HG,factory:HG.\u0275fac,providedIn:"root"});var IG=function(){GC.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=n(HG);this.activeSession=n(Es);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};otc(this)};Y(IG,GC);var otc=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};IG.prototype.fetchOne=function(a){return this.trackerApi.get(a)};IG.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
IG.prototype.fetchAll=function(a){var b,c;return this.trackerApi.query((b=a.filter)!=null?b:"",(c=a.pageSize)!=null?c:0,a.pageToken).pipe(y(function(d){var e;return{results:(e=d==null?void 0:d.trackers)!=null?e:[]}}))};IG.\u0275fac=function(a){return new (a||IG)};IG.\u0275prov=Sc({token:IG,factory:IG.\u0275fac,providedIn:"root"});var JG=function(){Z.apply(this,arguments);this.teamsService=n(yG);this.activeSession=n(Es);this.teamMembers=new Map;this.teamChildren=new Map};Y(JG,Z);JG.\u0275dir=Z.\u0275dir;
var rtc=function(a,b,c){return Yr(a.activeSession,"enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&Zj(c)?ptc(a,b).pipe(fg(function(d){return d.has(c)?Ce(!0):qtc(a,b).pipe(fg(function(e){return e.length===0?Ce(!1):Pe(e.map(function(f){return rtc(a,f,c)})).pipe(y(function(f){return f.some(Boolean)}))}))})):Ce(!1)},qtc=function(a,b){if(a.teamChildren.has(b))return a.teamChildren.get(b);var c=new ag(1);a.subscriptions.add(a.teamsService.getChildTeams([b]).pipe(y(function(d){var e,f;return(f=
(e=d.get(b))==null?void 0:e.map(function(h){return h.id}))!=null?f:[]})).subscribe(c));a.teamChildren.set(b,c);return c},ptc=function(a,b){if(a.teamMembers.has(b))return a.teamMembers.get(b);var c=new ag(1);a.subscriptions.add(a.teamsService.getTeam(b).pipe(y(function(d){var e;return(e=d==null?void 0:d.members)!=null?e:[]}),y(function(d){return d.map(function(e){return Dk(e==null?void 0:e.user)}).filter(Tk)}),y(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
JG.\u0275fac=function(){var a;return function(b){return(a||(a=fe(JG)))(b||JG)}}();JG.\u0275prov=Sc({token:JG,factory:JG.\u0275fac,providedIn:"root"});var KG=function(){this.issueFridge=n($E);this.issueExperimentalFieldsFridge=n(WE);this.activeSession=n(Es);this.teamMembershipService=n(JG)},wtc=function(a,b,c){var d,e,f,h,k,q;w(function(u){switch(u.nextAddress){case 1:return x(u,a.issueFridge.poke(b),2);case 2:d=u.yieldResult;if(!d)return u.return();te(u,3);e=c.some(function(A){return["comment","attachments"].includes(A.fieldName)});if(!e){u.jumpTo(5);break}return x(u,stc(a,d),5);case 5:if(Yr(a.activeSession,"enableTriageAutomationBe"))return u.return();
f=c.some(function(A){return A.fieldName==="assignee"});if(!f){u.jumpTo(7);break}return x(u,ttc(a,d),7);case 7:h=c.some(function(A){return A.fieldName==="status"});if(!h){u.jumpTo(9);break}return x(u,utc(a,d),9);case 9:k=c.some(function(A){return A.fieldName==="changelists"||A.fieldName==="gerritChanges"});if(!k){u.jumpTo(11);break}return x(u,vtc(a,d),11);case 11:uu(u,0);break;case 3:q=xe(u),console.error(q),ze(u)}})},stc=function(a,b){return w(function(c){return tm(b)!=="NEW"||um(b)!=="NEEDS_INFO"||
a.activeSession.getUserEmail()!==Dk(b.snapshot[0].reporterUser)?c.jumpTo(0):x(c,XE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})},ttc=function(a,b){var c,d;return w(function(e){switch(e.nextAddress){case 1:if(tm(b)!=="NEW"||!b.snapshot[0].assigneeUser||a.activeSession.getUserEmail()===Dk(b.snapshot[0].assigneeUser)||Dk(b.snapshot[0].assigneeUser)!==Dk(b.snapshot[0].reporterUser)){e.jumpTo(2);break}return x(e,XE(a.issueExperimentalFieldsFridge,
b.issueId,function(f){f.triage.subphase="NEEDS_INFO"}),2);case 2:if(tm(b)!=="NEW"||um(b)!=="PENDING_TRIAGE"||Dk(b.snapshot[0].assigneeUser)===Dk(b.snapshot[0].reporterUser)||a.activeSession.getUserEmail()===Dk(b.snapshot[0].assigneeUser)||(c=b.aggregatedData)==null||!c.teamId){e.jumpTo(4);break}return x(e,Ge(rtc(a.teamMembershipService,String(b.aggregatedData.teamId),a.activeSession.getUserEmail())),5);case 5:d=e.yieldResult;if(!d){e.jumpTo(4);break}return x(e,XE(a.issueExperimentalFieldsFridge,b.issueId,
function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),4);case 4:if(tm(b)!=="NEW"||a.activeSession.getUserEmail()!==Dk(b.snapshot[0].assigneeUser))e.jumpTo(0);else return x(e,XE(a.issueExperimentalFieldsFridge,b.issueId,function(f){f.triage.triagerEmail=a.activeSession.getUserEmail()}),0)}})},utc=function(a,b){return w(function(c){return c.nextAddress==1?b.snapshot[0].status!=="ACCEPTED"?c.jumpTo(2):x(c,XE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.phase=
"IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):b.snapshot[0].status!=="NOT_REPRODUCIBLE"&&b.snapshot[0].status!=="INTENDED_BEHAVIOR"&&b.snapshot[0].status!=="OBSOLETE"&&b.snapshot[0].status!=="INFEASIBLE"?c.jumpTo(0):x(c,XE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.phase="WONT_FIX";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})},vtc=function(a,b){return w(function(c){return tm(b)!=="NEW"&&tm(b)!=="CONFIRMED"?c.jumpTo(0):x(c,XE(a.issueExperimentalFieldsFridge,
b.issueId,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})};KG.\u0275fac=function(a){return new (a||KG)};KG.\u0275prov=Sc({token:KG,factory:KG.\u0275fac,providedIn:"root"});var LG=function(){Z.apply(this,arguments);var a=this;this.issueFridge=n($E);this.teamFridge=n(DG);this.recentIssues$=Oe(function(){return a.issueFridge.watchMany({filter:"modified:60d (modifier:me | assignee:me)",pageSize:500})});this.recentTeamIds$=this.recentIssues$.pipe(y(function(b){return b.results}),y(function(b){return b.map(function(c){var d;return(d=c.aggregatedData)==null?void 0:d.teamId}).filter(Tk).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(y(function(b){return Sua(b,
function(c){return c})}),y(function(b){return b.filter(function(c){return c.length>=2})}),y(function(b){return b.sort(function(c,d){return d.length-c.length})}),y(function(b){return b.map(function(c){return c[0]})}));this.mostActiveTeams$=this.mostActiveTeamIds$.pipe(fg(function(b){return a.teamFridge.watchSet(b).pipe(y(function(c){var d=fk(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),cg({refCount:!0,bufferSize:1}))};Y(LG,Z);LG.\u0275dir=Z.\u0275dir;
LG.\u0275fac=function(){var a;return function(b){return(a||(a=fe(LG)))(b||LG)}}();LG.\u0275prov=Sc({token:LG,factory:LG.\u0275fac,providedIn:"root"});var MG=function(){this.executor=n(yC)},xtc=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:rk,body:Qwa(b)}).pipe(y(function(c){return mwa(c)}))};MG.\u0275fac=function(a){return new (a||MG)};MG.\u0275prov=Sc({token:MG,factory:MG.\u0275fac,providedIn:"root"});var OG=function(){var a=this;this.userPreferencesManagerBase=n(NG);this.activeSession=n(Es);this.destroyed$=new ag(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(y(Qj));this.textDisplayPreferences$=this.preferences$.pipe(y(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=mp(this.textDisplayPreferences$.pipe(gg(this.destroyed$)),{});this.commentFormattingPreferences$=this.preferences$.pipe(y(function(b){return b.commentFormattingPreferences||
{}}));this.commentFormattingPreferencesSubject$=mp(this.commentFormattingPreferences$.pipe(gg(this.destroyed$)),{});this.isCfpCommentCreateOverrideSet$=this.commentFormattingPreferences$.pipe(y(function(b){return b.commentCreateOverride==="LITERAL_FORMATTING_MODE"}),Xf());this.cfpLastPublishCommentFormattingMode$=this.commentFormattingPreferences$.pipe(y(function(b){return b.lastPublishMode}),Xf());this.cfpLastPublishFormattingMode$=this.cfpLastPublishCommentFormattingMode$.pipe(y(Xk));this.lastPublishOrUpdatedFormattingModeSubject$=
mp(this.cfpLastPublishFormattingMode$.pipe(gg(this.destroyed$)),"PLAIN");this.currentCommentFormattingMode$=Je([this.isCfpCommentCreateOverrideSet$,this.lastPublishOrUpdatedFormattingModeSubject$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.currentCommentFormattingModeSubject$=mp(this.currentCommentFormattingMode$.pipe(gg(this.destroyed$)),"UNSPECIFIED_FORMATTING_MODE");this.lastPublishMode$=this.textDisplayPreferences$.pipe(y(function(b){return b.lastPublishMode}),
Xf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(y(Xk));this.themePreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.themePreferences)!=null?c:Qj(tC.themePreferences)}),pp());this.listViewPreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.listViewPreferences)!=null?c:Qj(tC.listViewPreferences)}),pp());this.layoutPreferences$=this.preferences$.pipe(y(function(b){return a.getLayoutPreferences(b)}),pp());this.dateTimePreferences$=this.preferences$.pipe(y(function(b){var c;
return(c=b.dateTimePreferences)!=null?c:Qj(tC.dateTimePreferences)}),pp());this.homepagePreferences$=this.preferences$.pipe(y(function(b){return a.getHomepagePreferences(b)}),pp());this.keyboardPrefs$=this.preferences$.pipe(y(function(b){var c;return(c=b.keyboardPreferences)!=null?c:Qj(tC.keyboardPreferences)}),pp());this.displayColumnsPreferences$=this.preferences$.pipe(y(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),pp());this.sortColumnsPreferences$=this.preferences$.pipe(y(function(b){var c,
d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),pp());this.bugScreensaverPreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.bugScreensaverPreferences)!=null?c:Qj(tC.bugScreensaverPreferences)}),pp());this.bugScreensaverSubject$=mp(this.bugScreensaverPreferences$.pipe(gg(this.destroyed$)),tC.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.g3nPreferences)!=null?c:Qj(tC.g3nPreferences)}),pp());mp(this.g3nPreferences$.pipe(gg(this.destroyed$)),
tC.g3nPreferences);this.teamWarningPreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:Qj(tC.teamWarningPreferences)}),pp());this.teamWarningPreferencesSubject$=mp(this.teamWarningPreferences$.pipe(gg(this.destroyed$)),tC.teamWarningPreferences);this.commentFilterPreferences$=this.preferences$.pipe(y(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:Qj(tC.commentFilterPreferences)}),pp());mp(this.commentFilterPreferences$.pipe(gg(this.destroyed$)),
tC.commentFilterPreferences);this.codeFont$=this.preferences$.pipe(y(function(b){return!!b.useCodefont}),Xf());this.autoCcOnComment$=this.preferences$.pipe(y(function(b){var c;return(c=b.autoCcOnComment)!=null?c:!1}),Xf());this.showFullHistory$=this.preferences$.pipe(y(function(b){return!!b.showFullHistory}),Xf());this.resultsPerPage$=this.preferences$.pipe(y(function(b){var c;return(c=b.resultsPerPage)!=null?c:tC.resultsPerPage}),Xf());this.showRecentEventsFirst$=this.preferences$.pipe(y(function(b){return!!b.showRecentEventsFirst}),
Xf());this.showInlineImages$=this.preferences$.pipe(y(function(b){var c;return(c=b.showInlineImages)!=null?c:tC.showInlineImages}),Xf())};OG.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};OG.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var ytc=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(y(a.getLayoutPreferences))},ztc=function(a,b){if(b!=="LITERAL"){var c=Object.assign({},a.preferencesSubject$.value.textDisplayPreferences||{},{lastPublishMode:Nva(b)});b=Object.assign({},a.preferencesSubject$.value.commentFormattingPreferences||{},{lastPublishMode:Nva(b)});return a.save({textDisplayPreferences:c,commentFormattingPreferences:b})}return Ce({textDisplayPreferences:a.textDisplayPreferencesSubject$.value,
commentFormattingPreferences:a.commentFormattingPreferencesSubject$.value})},Atc=function(a,b){return a.save({homepagePreferences:b}).pipe(y(a.getHomepagePreferences))};OG.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:Qj(tC.dateTimePreferences)};var Btc=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},Ctc=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
OG.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(y(function(b){var c;return(c=b.resultsPerPage)!=null?c:tC.resultsPerPage}))};var Dtc=function(a,b){return a.save({displayColumns:{column:b}}).pipe(y(function(c){var d,e;return(e=(d=c.displayColumns)==null?void 0:d.column)!=null?e:[]}))};OG.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(y(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}))};
var Etc=function(a,b){return a.save({teamWarningPreferences:b}).pipe(y(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:Qj(tC.teamWarningPreferences)}))};OG.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:Qj(tC.layoutPreferences)};OG.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:Qj(tC.homepagePreferences)};var PG=function(a){return Qj(a.preferencesSubject$.getValue())};
OG.\u0275fac=function(a){return new (a||OG)};OG.\u0275prov=Sc({token:OG,factory:OG.\u0275fac,providedIn:"root"});var NG=function(){this.activeSession=n(Es);this.userPreferencesResources=n(MG);this.preferences$=new tj(Qj(tC));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),Ftc(a));this.preferences$.next(a)};
NG.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?Ce(Gtc(this,a)):xtc(this.userPreferencesResources,a).pipe(y(function(){return Gtc(b,a)}))};
var Gtc=function(a,b){var c=Qj(a.preferences$.value);c=Object.assign({},c,b);Ftc(c);a.preferences$.next(c);return c},Ftc=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=tC.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=tC.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=tC.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=tC.notificationPreferences.collaboratorPriority)};NG.\u0275fac=function(a){return new (a||NG)};NG.\u0275prov=Sc({token:NG,factory:NG.\u0275fac,providedIn:"root"});var QG=function(){var a=this;this.teamFridge=n(DG);this.userPrefsManager=n(OG);this.teamUserActivity=n(LG);this.activeSession=n(Es);this.enableTeamScope=Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.destroyed$=new ag(1);this.scopePrefs$=this.userPrefsManager.preferences$.pipe(y(function(b){var c;return(c=b==null?void 0:b.scopePreferences)!=null?c:{starredTeams:[],starredTriageViews:[]}}));this.starredTeamIds$=mp(this.scopePrefs$.pipe(y(function(b){return b.starredTeams}),
gg(this.destroyed$)),[]);this.starredTeamIds$.pipe(y(function(b){return b.map(function(c){var d=a.teamFridge.watch(c);return{teamId:c,name$:d.pipe(y(function(e){return(e==null?void 0:e.name)||c})),team$:d}})}));this.starredTriageViews$=this.scopePrefs$.pipe(y(function(b){return b.starredTriageViews}));this.starredTriageViewTriages$=mp(this.starredTriageViews$.pipe(y(function(b){return b.map(function(c){return c})}),gg(this.destroyed$)),[]);Htc(this)},Htc=function(a){var b,c,d,e;w(function(f){switch(f.nextAddress){case 1:return a.enableTeamScope?
x(f,Ge(a.scopePrefs$),2):f.return();case 2:b=f.yieldResult;if(b.lastAutomaticStarsUpdate)return f.return();if(!b.starredTeams.length){f.jumpTo(3);break}return x(f,a.save({lastAutomaticStarsUpdate:Tva()}),4);case 4:return f.return();case 3:return x(f,Ge(a.teamUserActivity.mostActiveTeams$),5);case 5:return c=f.yieldResult,d=c.slice(0,3).map(function(h){return h.teamId}),e=d.map(function(h){return{teamId:h,triageId:"0"}}),x(f,a.save({lastAutomaticStarsUpdate:Tva(),starredTeams:d,starredTriageViews:e}),
0)}})};QG.prototype.save=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(b.scopePrefs$),2);c=d.yieldResult;return x(d,Ge(b.userPrefsManager.save({scopePreferences:Object.assign({},c,a)})),0)})};QG.prototype.toggle=function(a){return this.starredTeamIds.includes(a)?this.save({starredTeams:this.starredTeamIds.filter(function(b){return b!==a})}):this.save({starredTeams:[].concat(p(this.starredTeamIds),[a])})};
QG.prototype.reset=function(){var a=this;return w(function(b){return x(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};var Itc=function(a,b,c){if(a.starredTriageViews.some(function(e){return e.triageId===b&&e.teamId===c})){var d=[].concat(p(a.starredTriageViews)).filter(function(e){return e.triageId!==b||e.teamId!==c});return a.save({starredTriageViews:d})}return a.save({starredTriageViews:[].concat(p(a.starredTriageViews),[{teamId:c,triageId:b}])})};
ea.Object.defineProperties(QG.prototype,{starredTeamIds:{configurable:!0,enumerable:!0,get:function(){return this.starredTeamIds$.value}},starredTriageViews:{configurable:!0,enumerable:!0,get:function(){return this.starredTriageViewTriages$.value}}});QG.\u0275fac=function(a){return new (a||QG)};QG.\u0275prov=Sc({token:QG,factory:QG.\u0275fac,providedIn:"root"});var Jtc={CHANGE_COMPONENT:"CHANGE_COMPONENT",SET_WONT_FIX:"SET_WONT_FIX",MARK_AS_DUPLICATE:"MARK_AS_DUPLICATE",SET_CONFIRMED:"SET_CONFIRMED",SET_FIXED:"SET_FIXED",SET_IN_PROGRESS:"SET_IN_PROGRESS",SET_NEEDS_INFO:"SET_NEEDS_INFO",SET_NEW:"SET_NEW",SET_PENDING_OWNER:"SET_PENDING_OWNER",SET_EXPECTED:"SET_EXPECTED",SET_PLANNED:"SET_PLANNED",SET_COMMITTED:"SET_COMMITTED"},Ktc={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},Ltc={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},Mtc={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},Ntc={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},Otc={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Ptc={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},Qtc={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Rtc={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},Stc={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},Ttc={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},Utc={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},Vtc=new Map([["NEW",[Utc,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var RG={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var Xtc=function(a,b,c,d,e,f){var h=this;this.teamId=a;this.triageId=b;this.teamFridge=c;this.issueFullFridge=d;this.issueFridge=e;this.teamExperimentalFieldsFridge=f;this.isLoading$=new tj(!1);this.setLoading=function(){h.isLoading$.next(!0)};this.setNotLoading=function(){h.isLoading$.next(!1)};this.team$=Oe(function(){return Ce(h.teamId)}).pipe(hg(this.setLoading),fg(function(k){return h.teamFridge.watch(k)}),hg(this.setNotLoading),cg({refCount:!0,bufferSize:1}));this.teamName$=this.team$.pipe(y(function(k){return(k==
null?void 0:k.name)||h.teamId}));this.teamExperiments$=Oe(function(){return Ce(h.teamId)}).pipe(hg(this.setLoading),fg(function(k){return h.teamExperimentalFieldsFridge.watch(k)}),hg(this.setNotLoading),cg({refCount:!0,bufferSize:1}));this.triageScope$=this.teamExperiments$.pipe(y(function(k){var q,u;return(k==null?void 0:(q=k.triage.find(function(A){return A.id===Number(h.triageId)}))==null?void 0:(u=q.scope)==null?void 0:u.trim())||"teamid:"+h.teamId+"+"}),cg({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(y(function(k){return k==null?void 0:k.triage.find(function(q){return""+q.id===h.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(y(function(k){var q;return(q=k==null?void 0:k.config)!=null?q:[]}));this.byPhase=new Map(Qlc.map(function(k){return[k,Wtc(h,k)]}));this.allIssues$=Je([].concat(p(this.byPhase.values())).map(function(k){return k.issues$})).pipe(y(function(k){return k.flat()}),y(function(k){return ik(k,function(q){return q.issueId})}),
cg({refCount:!0,bufferSize:1}));this.triageName$=Je([this.teamName$,this.teamExperiments$]).pipe(y(function(k){var q=l(k);k=q.next().value;q=q.next().value;q=q==null?void 0:q.triage.find(function(u){return u.id===Number(h.triageId)});return rp(k,q)}))};Xtc.prototype.phase=function(a){return this.byPhase.get(a)};
var Wtc=function(a,b){var c=a.triageScope$.pipe(y(function(q){q=tp(q,"modified:365d");q=tp(q,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":q=tp(q,"status:open")}return[q,b].join("____b-internal____")}),Xf()),d=c.pipe(y(mIa),hg(a.setLoading),fg(function(q){return a.issueFridge.watchMany(q)}),hg(a.setNotLoading),cg({refCount:!0,bufferSize:1})),e=d.pipe(y(function(q){return q.results}),y(function(q){return q.map(function(u){return u.issueId})}),Xf(Pj)).pipe(fg(function(q){return q.length?
Je(q.map(function(u){return a.issueFridge.watch(u)})):Ce([])}));d=d.pipe(y(function(q){var u;return(u=q.totalSize)!=null?u:0}));e=e.pipe(y(function(q){return nIa(q,b)}),cg({refCount:!0,bufferSize:1}));var f=e.pipe(y(function(q){return Vua(q).length})),h=Je([e,f,smc]).pipe(y(function(q){var u=l(q);q=u.next().value;u=u.next().value;return Uya(q,Ekb.get(b)).length+u}),y(function(q){return q===0?"":q>=250?"250+":""+q}));d=Je([d,f]).pipe(y(function(q){var u=l(q);q=u.next().value;u=u.next().value;return q+
u}));var k;return{phase:b,displayName:(k=qr.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:h,totalCount$:d}};
Xtc.prototype.reload=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return a.setLoading(),x(c,Promise.all(jk([].concat(p(a.byPhase.values())).map(function(d){return op(d.query$)})).map(function(d){return inc(a.issueFridge,mIa(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,x(c,Promise.all(jk(b.flatMap(function(d){return d.results}).map(function(d){return d.issueId})).map(function(d){return a.issueFullFridge.poke(d)})),3);a.setNotLoading();ze(c)})};
var Ytc=function(a,b,c){return a.triageFieldConfigs$.pipe(y(function(d){d=d||[];var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="CUSTOM_FIELD"){f=f.customFieldConfig;var h=f.defaultValues.find(function(k){var q;if(b&&((q=k.phases)==null||!q.includes(b)))return!1;var u;return!c||(u=k.subphases)!=null&&u.includes(c)?!0:!1});h&&e.push({customFieldId:f.customFieldId,defaultValues:[h]})}return e}))},Ztc=function(a,b,c){return a.triageFieldConfigs$.pipe(y(function(d){var e=[];
d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="HOTLIST"){f=f.hotlistConfig;var h=void 0;if(!b||(h=f.phases)!=null&&h.includes(b))h=void 0,(!c||(h=f.subphases)!=null&&h.includes(c))&&e.push(f)}return e}))},SG=function(){this.teamFridge=n(DG);this.issueFullFridge=n(EF);this.issueFridge=n($E);this.teamExperimentalFieldsFridge=n(CG);this.cache=new Map};SG.prototype.get=function(a,b){var c=a+":"+b,d;this.cache.set(c,(d=this.cache.get(c))!=null?d:this.create(a,b));return this.cache.get(c)};
SG.prototype.create=function(a,b){return new Xtc(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};SG.\u0275fac=function(a){return new (a||SG)};SG.\u0275prov=Sc({token:SG,factory:SG.\u0275fac,providedIn:"root"});var TG=function(){this.triageDataFactory=n(SG);this.isSidebarOpen$=new tj(!1);this.internalCurrentIssueIds$=new tj([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(Xf(Pj));this.currentIssueId$=this.currentIssueIds$.pipe(y(function(a){return a[0]}),Xf());this.internalSelectedIssueIds$=new tj([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(Xf(Pj));this.mode=0};TG.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};TG.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
TG.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};TG.prototype.setMode=function(a){this.mode=a};TG.\u0275fac=function(a){return new (a||TG)};TG.\u0275prov=Sc({token:TG,factory:TG.\u0275fac,providedIn:"root"});var $tc={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var auc=new yd("GMAT_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var UG=function(){n(auc).disableGmatStyle||n(XA).appendGmatPanelClass("gmat-mdc-menu")};UG.\u0275fac=function(a){return new (a||UG)};UG.\u0275dir=Kf({type:UG,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],standalone:!1,features:[hh([XA,{provide:vx,useExisting:XA}])]});var buc=new yd("MAT_MENU_PANEL");var cuc=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],VG=function(){this._elementRef=n(ff);this._document=n(Ei);this._focusMonitor=n(gw);this._parentMenu=n(buc,{optional:!0});this._changeDetectorRef=n(qv);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new bg;this._focused=new bg;this._triggersSubmenu=this._highlighted=!1;n(kw).load(Gx);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};g=VG.prototype;
g.focus=function(a,b){this._focusMonitor&&a?hw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};g.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};g.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._elementRef.nativeElement};g._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};g._handleMouseEnter=function(){this._hovered.next(this)};g.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return((d=a.textContent)==null?void 0:d.trim())||""};
g._setHighlighted=function(a){this._highlighted=a;this._changeDetectorRef.markForCheck()};g._setTriggersSubmenu=function(a){this._triggersSubmenu=a;this._changeDetectorRef.markForCheck()};g._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};VG.\u0275fac=function(a){return new (a||VG)};
VG.\u0275cmp=B({type:VG,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&1&&M("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(ng("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),wg("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh]},exportAs:["matMenuItem"],attrs:["mat-menu-item",""],ngContentSelectors:["mat-icon, [matMenuItemIcon]","*"],decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(Ng(cuc),Og(0),I(1,
"span",0),Og(2,1),J(),K(3,"div",1),E(4,oIa,2,0,":svg:svg",2));a&2&&(z(3),D("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),z(),F(b._triggersSubmenu?4:-1))},dependencies:[Jx],encapsulation:2,changeDetection:0});var duc=new yd("MatMenuContent"),WG=function(){this._template=n(Tg);this._appRef=n(vh);this._injector=n(Ze);this._viewContainerRef=n(Ug);this._document=n(Ei);this._changeDetectorRef=n(qv);this._attached=new bg};
WG.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new px(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new rx(this._document.createElement("div"),this._appRef,this._injector));var b=this._template.elementRef.nativeElement;b.parentNode.insertBefore(this._outlet.outletElement,b);this._changeDetectorRef.markForCheck();this._portal.attach(this._outlet,a);this._attached.next()};
WG.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};WG.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};WG.\u0275fac=function(a){return new (a||WG)};WG.\u0275dir=Kf({type:WG,selectors:[["ng-template","matMenuContent",""]],features:[hh([{provide:duc,useExisting:WG}])]});var euc=new yd("mat-menu-default-options",{providedIn:"root",factory:qIa}),XG=function(){this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._injector=n(Ze);this._animationsDisabled=Hi();this._directDescendantItems=new Vg;this._classList={};this._panelAnimationState="void";this._animationDone=new bg;this._isAnimating=!1;this.close=this.closed=new hv;this.panelId=n(Gw).getId("mat-menu-panel-");var a=n(euc);this.overlayPanelClass=a.overlayPanelClass||"";this._xPosition=a.xPosition;this._yPosition=
a.yPosition;this.backdropClass=a.backdropClass;this.overlapTrigger=a.overlapTrigger;this.hasBackdrop=a.hasBackdrop};g=XG.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=Lw(scc(Iw(new Ow(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(eg(this._directDescendantItems),fg(function(b){return Ue.apply(null,p(b.map(function(c){return c._focused})))})).subscribe(function(b){return Mw(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=a._keyManager,d;
a._panelAnimationState==="enter"&&((d=c.activeItem)==null?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._directDescendantItems.destroy();this.closed.complete();var b;(b=this._firstItemFocusRef)==null||b.destroy();clearTimeout(this._exitFallbackTimeout)};
g._hovered=function(){return this._directDescendantItems.changes.pipe(eg(this._directDescendantItems),fg(function(a){return Ue.apply(null,p(a.map(function(b){return b._hovered})))}))};g.addItem=function(){};g.removeItem=function(){};
g._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:ri(a)||(a.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:b!==38&&b!==40||vcc(c,"keyboard"),c.onKeydown(a)}};
var fuc=function(a,b){b=b===void 0?"program":b;var c;(c=a._firstItemFocusRef)==null||c.destroy();a._firstItemFocusRef=$e(function(){var d=a._resolvePanel();if(!d||!d.contains(document.activeElement)){var e=a._keyManager;vcc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};g=XG.prototype;
g.setPositionClasses=function(a,b){a=a===void 0?this.xPosition:a;b=b===void 0?this.yPosition:b;var c={};this._classList=Object.assign({},this._classList,(c["mat-menu-before"]=a==="before",c["mat-menu-after"]=a==="after",c["mat-menu-above"]=b==="above",c["mat-menu-below"]=b==="below",c));this._changeDetectorRef.markForCheck()};
g._onAnimationDone=function(a){var b=a==="_mat-menu-exit";if(b||a==="_mat-menu-enter")b&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(b?"void":"enter"),this._isAnimating=!1};g._onAnimationStart=function(a){if(a==="_mat-menu-enter"||a==="_mat-menu-exit")this._isAnimating=!0};
g._setIsOpen=function(a){var b=this;this._panelAnimationState=a?"enter":"void";if(a){if(this._keyManager.activeItemIndex===0){var c=this._resolvePanel();c&&(c.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(function(){return b._onAnimationDone("_mat-menu-exit")},200));this._animationsDisabled&&setTimeout(function(){b._onAnimationDone(a?"_mat-menu-enter":"_mat-menu-exit")});this._changeDetectorRef.markForCheck()};
g._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(eg(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));Zg(a._directDescendantItems)})};g._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
ea.Object.defineProperties(XG.prototype,{xPosition:{configurable:!0,enumerable:!0,get:function(){return this._xPosition},set:function(a){this._xPosition=a;this.setPositionClasses()}},yPosition:{configurable:!0,enumerable:!0,get:function(){return this._yPosition},set:function(a){this._yPosition=a;this.setPositionClasses()}},panelClass:{configurable:!0,enumerable:!0,set:function(a){var b=this._previousPanelClass,c=Object.assign({},this._classList);b&&b.length&&b.split(" ").forEach(function(d){c[d]=
!1});(this._previousPanelClass=a)&&a.length&&(a.split(" ").forEach(function(d){c[d]=!0}),this._elementRef.nativeElement.className="");this._classList=c}},classList:{configurable:!0,enumerable:!0,get:function(){return this.panelClass},set:function(a){this.panelClass=a}}});XG.\u0275fac=function(a){return new (a||XG)};
XG.\u0275cmp=B({type:XG,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(Xg(c,duc,5),Xg(c,VG,5),Xg(c,VG,4));if(a&2){var d;$g(d=ah())&&(b.lazyContent=d.first);$g(d=ah())&&(b._allItems=d);$g(d=ah())&&(b.items=d)}},viewQuery:function(a,b){a&1&&Wg(Tg,5);if(a&2){var c;$g(c=ah())&&(b.templateRef=c.first)}},hostVars:3,hostBindings:function(a){a&2&&ng("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],
ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Dh],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:Dh(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[hh([{provide:buc,useExisting:XG}])],ngContentSelectors:["*"],decls:1,vars:0,consts:[["tabindex",
"-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(a){a&1&&(Ng(),C(0,pIa,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,changeDetection:0});var guc=new yd("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition()}}}),huc={provide:guc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},iuc={passive:!0},juc=new WeakMap,YG=function(){var a=this;this._overlay=n(vx);this._element=n(ff);this._viewContainerRef=n(Ug);this._menuItemInstance=n(VG,{optional:!0,self:!0});this._dir=n(Qw,{optional:!0});this._focusMonitor=n(gw);this._ngZone=
n(ph);this._scrollStrategy=n(guc);this._changeDetectorRef=n(qv);this._animationsDisabled=Hi();this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._hoverSubscription=this._closingActionsSubscription=ke.EMPTY;this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new hv;this.onMenuClose=this.menuClosed=new hv;var b=n(buc,{optional:!0}),c=n(jv);this._parentMaterialMenu=b instanceof XG?b:void 0;this._cleanupTouchstart=si(c,this._element.nativeElement,"touchstart",
function(d){qoa(d)||(a._openedBy="touch")},iuc)};YG.prototype.ngAfterContentInit=function(){this._handleHover()};YG.prototype.ngOnDestroy=function(){this.menu&&this._ownsMenu(this.menu)&&juc.delete(this.menu);this._cleanupTouchstart();var a;(a=this._pendingRemoval)==null||a.unsubscribe();this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe();this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)};
var ZG=function(a){return!!(a._menuItemInstance&&a._parentMaterialMenu&&a.menu)};g=YG.prototype;
g.openMenu=function(){var a=this,b=this.menu;if(!this._menuOpen&&b){var c;(c=this._pendingRemoval)==null||c.unsubscribe();c=juc.get(b);juc.set(b,this);c&&c!==this&&c.closeMenu();c=this._createOverlay(b);var d=c.getConfig(),e=d.positionStrategy;this._setPosition(b,e);d.hasBackdrop=b.hasBackdrop==null?!ZG(this):b.hasBackdrop;if(!c.hasAttached()){c.attach(this._getPortal(b));var f;(f=b.lazyContent)==null||f.attach(this.menuData)}this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return a.closeMenu()});
b.parentMenu=ZG(this)?this._parentMaterialMenu:void 0;b.direction=this.dir;fuc(b,this._openedBy||"program");this._setIsMenuOpen(!0);b instanceof XG&&(b._setIsOpen(!0),b._directDescendantItems.changes.pipe(gg(b.close)).subscribe(function(){Occ(Scc(e,!1));Scc(e,!0)}))}};g.closeMenu=function(){var a;(a=this.menu)==null||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?hw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};
g.updatePosition=function(){var a;(a=this._overlayRef)==null||a.updatePosition()};
g._destroyMenu=function(a){var b=this._overlayRef,c=this._menu;if(b&&this.menuOpen){this._closingActionsSubscription.unsubscribe();var d;(d=this._pendingRemoval)==null||d.unsubscribe();if(c instanceof XG&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(Uf()).subscribe(function(){b.detach();var f;(f=c.lazyContent)==null||f.detach()}),c._setIsOpen(!1);else{b.detach();var e;c==null||(e=c.lazyContent)==null||e.detach()}c&&this._ownsMenu(c)&&juc.delete(c);!this.restoreFocus||a!=="keydown"&&
this._openedBy&&ZG(this)||this.focus(this._openedBy);this._openedBy=void 0;this._setIsMenuOpen(!1)}};g._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),ZG(this)&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};
g._createOverlay=function(a){var b=this;if(!this._overlayRef){var c=this._getOverlayConfig(a);this._subscribeToPositions(a,c.positionStrategy);this._overlayRef=this._overlay.create(c);this._overlayRef.keydownEvents().subscribe(function(d){b.menu instanceof XG&&b.menu._handleKeydown(d)})}return this._overlayRef};
g._getOverlayConfig=function(a){return new ex({positionStrategy:Tcc(Qcc(Scc(mx(this._overlay.position(),this._element))),".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:a.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:a.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})};
g._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){c._ngZone.run(function(){a.setPositionClasses(d.connectionPair.overlayX==="start"?"after":"before",d.connectionPair.overlayY==="top"?"below":"above")})})};
g._setPosition=function(a,b){var c=l(a.xPosition==="before"?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=l(a.yPosition==="above"?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=l([f,e]),k=h.next().value;h=h.next().value;var q=l([d,c]),u=q.next().value;q=q.next().value;var A=0;ZG(this)?(q=d=a.xPosition==="before"?"start":"end",c=u=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=(a=this._parentMaterialMenu.items.first)?
a._getHostElement().offsetTop:0),A=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",h=e==="top"?"bottom":"top");hx(b,[{originX:d,originY:k,overlayX:u,overlayY:f,offsetY:A},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:A},{originX:d,originY:h,overlayX:u,overlayY:e,offsetY:-A},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-A}])};
g._menuClosingActions=function(){var a=this,b=this._overlayRef.backdropClick(),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:Ce(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ve(function(f){return a._menuOpen&&f!==a._menuItemInstance})):Ce();return Ue(b,d,e,c)};g._handleMousedown=function(a){poa(a)||(this._openedBy=a.button===0?"mouse":void 0,ZG(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";ZG(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};g._handleClick=function(a){ZG(this)?(a.stopPropagation(),this.openMenu()):this._menuOpen?this.closeMenu():this.openMenu()};
g._handleHover=function(){var a=this;ZG(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(function(b){b!==a._menuItemInstance||b.disabled||(a._openedBy="mouse",a.openMenu())}))};g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new px(a.templateRef,this._viewContainerRef));return this._portal};g._ownsMenu=function(a){return juc.get(a)===this};
ea.Object.defineProperties(YG.prototype,{_deprecatedMatMenuTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.menu},set:function(a){this.menu=a}},menu:{configurable:!0,enumerable:!0,get:function(){return this._menu},set:function(a){var b=this;if(a!==this._menu){this._menu=a;this._menuCloseSubscription.unsubscribe();a&&(this._menuCloseSubscription=a.close.subscribe(function(d){b._destroyMenu(d);d!=="click"&&d!=="tab"||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(d)}));
var c;(c=this._menuItemInstance)==null||c._setTriggersSubmenu(ZG(this))}}},menuOpen:{configurable:!0,enumerable:!0,get:function(){return this._menuOpen}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}}});YG.\u0275fac=function(a){return new (a||YG)};
YG.\u0275dir=Kf({type:YG,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(a,b){a&1&&M("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&ng("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen)("aria-controls",b.menuOpen?b.menu==null?null:b.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,
"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]});var sIa=function(a,b){return b.key},$G=function(){this.phase=void 0;this.actions=[Stc,Ltc,Ntc,Ttc,Rtc];this.onSelect=new LA},uIa=function(a){var b=P();return b.phase==="NEW"&&a===Stc?[Ktc]:b.phase==="CONFIRMED"&&a===Ltc?[Mtc]:b.phase==="IN_PROGRESS"&&a===Ntc?[Otc,Ptc,Qtc]:[]};$G.\u0275fac=function(a){return new (a||$G)};
$G.\u0275cmp=B({type:$G,selectors:[["triage-action-selector"]],inputs:{phase:"phase"},outputs:{onSelect:"onSelect"},standalone:!1,decls:6,vars:1,consts:[["phaseSelector","matMenu"],["type","button","mat-button","",1,"gmat-button",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",1,"subAction"],["type","button","mat-menu-item","",1,"subAction",3,"click"]],template:function(a,b){a&1&&(I(0,"button",1),Q(1,"Change triage phase"),J(),I(2,"mat-menu",
null,0),Dg(4,vIa,4,3,null,null,sIa),J());a&2&&(a=L(3),D("matMenuTriggerFor",a),z(4),Eg(b.actions))},dependencies:[PA,Tx,UG,XG,VG,YG],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var kuc=["button"],aH=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new LA};aH.prototype.onClick=function(a){this.onAction.emit(a)};aH.prototype.focus=function(){this.nativeButton.focus()};aH.\u0275fac=function(a){return new (a||aH)};
aH.\u0275cmp=B({type:aH,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&Wg(kuc,5);if(a&2){var c;$g(c=ah())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:1,consts:[["buttonContent",""],["button",""],["type","button","mat-stroked-button","",3,"color","disabled","ngClass","matTooltip"],["type",
"button","mat-button","",3,"color","disabled","ngClass","matTooltip"],["type","button","mat-flat-button","",3,"color","disabled","ngClass","matTooltip"],["type","button","mat-icon-button","",3,"color","disabled","ngClass","matTooltip"],["type","button","mat-stroked-button","",3,"click","color","disabled","ngClass","matTooltip"],[4,"ngTemplateOutlet"],["type","button","mat-button","",3,"click","color","disabled","ngClass","matTooltip"],["type","button","mat-flat-button","",3,"click","color","disabled",
"ngClass","matTooltip"],["type","button","mat-icon-button","",3,"click","color","disabled","ngClass","matTooltip"]],template:function(a,b){a&1&&(Ng(),C(0,wIa,1,0,"ng-template",null,0,nh),E(2,yIa,3,7,"button",2)(3,AIa,3,7,"button",3)(4,CIa,3,7,"button",4)(5,EIa,3,7,"button",5)(6,GIa,3,7,"button",2));if(a&2){var c;z(2);F((c=b.format)==="hairline"?2:c==="flat"?3:c==="fill"?4:c==="icon"?5:6)}},dependencies:[PA,Tx,Ux,YA,cB,Mv,Pv],encapsulation:2,changeDetection:0});var bH=function(){};bH.\u0275fac=function(a){return new (a||bH)};bH.\u0275mod=Jf({type:bH});bH.\u0275inj=Tc({imports:[$B,cC,ZB]});var luc=new yd("GMAT_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var cH=function(a){this.options=a};cH.\u0275fac=function(a){return new (a||cH)(zf(luc))};cH.\u0275dir=Kf({type:cH,selectors:[["mat-slide-toggle"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-slide-toggle",!b.options.disableGmatStyle)},standalone:!1});var muc=new yd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var nuc=["switch"],ouc=function(a,b){this.source=a;this.checked=b},dH=function(){this._elementRef=n(ff);this._focusMonitor=n(gw);this._changeDetectorRef=n(qv);this.defaults=n(muc);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=Hi();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new hv;this.toggleChange=new hv;n(kw).load(Gx);
var a=n(new Vu("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=n(Gw).getId("mat-mdc-slide-toggle-");var c;this.hideIcon=(c=b.hideIcon)!=null?c:!1;var d;this.disabledInteractive=(d=b.disabledInteractive)!=null?d:!1;this._labelId=this._uniqueId+"-label"};g=dH.prototype;g._createChangeEvent=function(a){return new ouc(this,a)};g.focus=function(){this._switchElement.nativeElement.focus()};
g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b==="keyboard"||b==="program"?(a._focused=!0,a._changeDetectorRef.markForCheck()):b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};g.ngOnChanges=function(a){a.required&&this._validatorOnChange()};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.writeValue=function(a){this.checked=!!a};
g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};g.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};g._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
g._handleClick=function(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ouc(this,this.checked))))};g._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
ea.Object.defineProperties(dH.prototype,{buttonId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-button"}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=a;this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});dH.\u0275fac=function(a){return new (a||dH)};
dH.\u0275cmp=B({type:dH,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&Wg(nuc,5);if(a&2){var c;$g(c=ah())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Ig("id",b.id),ng("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:""),wg("mat-mdc-slide-toggle-focused",b._focused)("mat-mdc-slide-toggle-checked",b.checked)("_mat-animation-noopable",b._noopAnimations))},inputs:{name:"name",
id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Dh],color:"color",disabled:[2,"disabled","disabled",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:Eh(a)}],checked:[2,"checked","checked",Dh],hideIcon:[2,"hideIcon","hideIcon",Dh],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",Dh]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[hh([{provide:iy,useExisting:ld(function(){return dH}),multi:!0},{provide:jy,useExisting:dH,multi:!0}]),Uu],ngContentSelectors:["*"],decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,
"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],
["d","M20 13H4v-2h16v2z"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",1)(1,"button",2,0);M("click",function(){t(c);return v(b._handleClick())});K(3,"span",3);I(4,"span",4)(5,"span",5)(6,"span",6);K(7,"span",7);J();I(8,"span",8);K(9,"span",9);J();E(10,HIa,5,0,"span",10);J()()();I(11,"label",11);M("click",function(d){t(c);return v(d.stopPropagation())});Og(12);J()()}a&2&&(a=L(2),D("labelPosition",b.labelPosition),z(),wg("mdc-switch--selected",b.checked)("mdc-switch--unselected",!b.checked)("mdc-switch--checked",
b.checked)("mdc-switch--disabled",b.disabled)("mat-mdc-slide-toggle-disabled-interactive",b.disabledInteractive),D("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex)("disabled",b.disabled&&!b.disabledInteractive),ng("id",b.buttonId)("name",b.name)("aria-label",b.ariaLabel)("aria-labelledby",b._getAriaLabelledBy())("aria-describedby",b.ariaDescribedby)("aria-required",b.required||null)("aria-checked",b.checked)("aria-disabled",b.disabled&&b.disabledInteractive?"true":null),z(8),D("matRippleTrigger",
a)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0),z(),F(b.hideIcon?-1:10),z(),D("for",b.buttonId),ng("id",b._labelId))},dependencies:[Jx,Hx],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}\n'],
encapsulation:2,changeDetection:0});var eH=function(){};eH.\u0275fac=function(a){return new (a||eH)};eH.\u0275mod=Jf({type:eH});eH.\u0275inj=Tc({imports:[dH,zx,zx]});var fH=function(){};fH.\u0275fac=function(a){return new (a||fH)};fH.\u0275mod=Jf({type:fH});fH.\u0275inj=Tc({providers:[{provide:muc,useValue:{color:"primary"}}],imports:[eH]});var puc=0,gH=function(){this.id="b-slide-toggle-"+ ++puc;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new LA};gH.\u0275fac=function(a){return new (a||gH)};
gH.\u0275cmp=B({type:gH,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:[0,"aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},standalone:!1,decls:2,vars:7,consts:[[3,"change","id","disabled","checked","aria-label","matTooltip","labelPosition"]],template:function(a,b){a&1&&(I(0,"mat-slide-toggle",0),M("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
Q(1),J());if(a&2){var c;D("id",b.id)("disabled",b.disabled)("checked",b.model)("aria-label",b.ariaLabel||b.label)("matTooltip",(c=b.tooltip)!=null?c:"")("labelPosition",b.label?b.labelPosition:"after");z();ch(b.label)}},dependencies:[cH,dH,YA,cB],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var hH=function(){};hH.\u0275fac=function(a){return new (a||hH)};hH.\u0275mod=Jf({type:hH});hH.\u0275inj=Tc({imports:[fH,cC]});/*

 Copyright 2016 Craig Campbell

 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.

 Mousetrap is a simple keyboard shortcut library for Javascript with
 no external dependencies

 @version 1.6.0
 @url craig.is/killing/mice
*/
(function(a,b,c){function d(O,U,da){O.addEventListener?O.addEventListener(U,da,!1):O.attachEvent("on"+U,da)}function e(O){if("keypress"==O.type){var U=String.fromCharCode(O.which);O.shiftKey||(U=U.toLowerCase());return U}return u[O.which]?u[O.which]:A[O.which]?A[O.which]:String.fromCharCode(O.which).toLowerCase()}function f(O){return"shift"==O||"ctrl"==O||"alt"==O||"meta"==O}function h(O,U){var da,ma=[];"+"===O?O=["+"]:(O=O.replace(/\+{2}/g,"+plus"),O=O.split("+"));for(da=0;da<O.length;++da){var ra=
O[da];H[ra]&&(ra=H[ra]);U&&"keypress"!=U&&G[ra]&&(ra=G[ra],ma.push("shift"));f(ra)&&ma.push(ra)}O=ra;da=U;if(!da){if(!N){N={};for(var Ga in u)95<Ga&&112>Ga||u.hasOwnProperty(Ga)&&(N[u[Ga]]=Ga)}da=N[O]?"keydown":"keypress"}"keypress"==da&&ma.length&&(da="keydown");return{key:ra,modifiers:ma,action:da}}function k(O,U){return null===O||O===b?!1:O===U?!0:k(O.parentNode,U)}function q(O){function U(Eb){Eb=Eb||{};var jc=!1,nc;for(nc in gb)Eb[nc]?jc=!0:gb[nc]=0;jc||(Lb=!1)}function da(Eb,jc,nc,Jc,ec,ye){var yb,
Pb,Ya=[],dc=nc.type;if(!Qa._callbacks[Eb])return[];"keyup"==dc&&f(Eb)&&(jc=[Eb]);for(yb=0;yb<Qa._callbacks[Eb].length;++yb)if(Pb=Qa._callbacks[Eb][yb],(Jc||!Pb.seq||gb[Pb.seq]==Pb.level)&&dc==Pb.action){var uc;(uc="keypress"==dc&&!nc.metaKey&&!nc.ctrlKey)||(uc=Pb.modifiers,uc=jc.sort().join(",")===uc.sort().join(","));uc&&(uc=Jc&&Pb.seq==Jc&&Pb.level==ye,(!Jc&&Pb.combo==ec||uc)&&Qa._callbacks[Eb].splice(yb,1),Ya.push(Pb))}return Ya}function ma(Eb,jc,nc,Jc){Qa.stopCallback(jc,jc.target||jc.srcElement,
nc,Jc)||!1!==Eb(jc,nc)||(jc.preventDefault?jc.preventDefault():jc.returnValue=!1,jc.stopPropagation?jc.stopPropagation():jc.cancelBubble=!0)}function ra(Eb){"number"!==typeof Eb.which&&(Eb.which=Eb.keyCode);var jc=e(Eb);if(jc)if("keyup"==Eb.type&&Ja===jc)Ja=!1;else{var nc=Qa,Jc=nc.handleKey,ec=[];Eb.shiftKey&&ec.push("shift");Eb.altKey&&ec.push("alt");Eb.ctrlKey&&ec.push("ctrl");Eb.metaKey&&ec.push("meta");Jc.call(nc,jc,ec,Eb)}}function Ga(Eb,jc,nc,Jc){function ec(Ya){return function(){Lb=Ya;++gb[Eb];
clearTimeout(va);va=setTimeout(U,1E3)}}function ye(Ya){ma(nc,Ya,Eb);"keyup"!==Jc&&(Ja=e(Ya));setTimeout(U,10)}for(var yb=gb[Eb]=0;yb<jc.length;++yb){var Pb=yb+1===jc.length?ye:ec(Jc||h(jc[yb+1]).action);Na(jc[yb],Pb,Jc,Eb,yb)}}function Na(Eb,jc,nc,Jc,ec){Qa._directMap[Eb+":"+nc]=jc;Eb=Eb.replace(/\s+/g," ");var ye=Eb.split(" ");1<ye.length?Ga(Eb,ye,jc,nc):(nc=h(Eb,nc),Qa._callbacks[nc.key]=Qa._callbacks[nc.key]||[],da(nc.key,nc.modifiers,{type:nc.action},Jc,Eb,ec),Qa._callbacks[nc.key][Jc?"unshift":
"push"]({callback:jc,modifiers:nc.modifiers,action:nc.action,seq:Jc,level:ec,combo:Eb}))}var Qa=this;O=O||b;if(!(Qa instanceof q))return new q(O);Qa.target=O;Qa._callbacks={};Qa._directMap={};var gb={},va,Ja=!1,La=!1,Lb=!1;Qa._handleKey=function(Eb,jc,nc){var Jc=da(Eb,jc,nc),ec;jc={};var ye=0,yb=!1;for(ec=0;ec<Jc.length;++ec)Jc[ec].seq&&(ye=Math.max(ye,Jc[ec].level));for(ec=0;ec<Jc.length;++ec)Jc[ec].seq?Jc[ec].level==ye&&(yb=!0,jc[Jc[ec].seq]=1,ma(Jc[ec].callback,nc,Jc[ec].combo,Jc[ec].seq)):yb||
ma(Jc[ec].callback,nc,Jc[ec].combo);Jc="keypress"==nc.type&&La;nc.type!=Lb||f(Eb)||Jc||U(jc);La=yb&&"keydown"==nc.type};Qa._bindMultiple=function(Eb,jc,nc){for(var Jc=0;Jc<Eb.length;++Jc)Na(Eb[Jc],jc,nc)};d(O,"keypress",ra);d(O,"keydown",ra);d(O,"keyup",ra)}if(a){var u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},
A={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},G={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},H={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},N;for(c=1;20>c;++c)u[111+c]="f"+c;for(c=0;9>=c;++c)u[c+96]=c;q.prototype.bind=
function(O,U,da){O=O instanceof Array?O:[O];this._bindMultiple.call(this,O,U,da);return this};q.prototype.unbind=function(O,U){return this.bind.call(this,O,function(){},U)};q.prototype.trigger=function(O,U){if(this._directMap[O+":"+U])this._directMap[O+":"+U]({},O);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(O,U){return-1<(" "+U.className+" ").indexOf(" mousetrap ")||k(U,this.target)?!1:"INPUT"==U.tagName||"SELECT"==
U.tagName||"TEXTAREA"==U.tagName||U.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(O){for(var U in O)O.hasOwnProperty(U)&&(u[U]=O[U]);N=null};q.init=function(){var O=q(b),U;for(U in O)"_"!==U.charAt(0)&&(q[U]=function(da){return function(){return O[da].apply(O,arguments)}}(U))};q.init();a.Mousetrap=q;"undefined"!==typeof module&&module.exports&&(module.exports=q);"function"===typeof define&&define.amd&&define(function(){return q})}})("undefined"!==
typeof window?window:null,"undefined"!==typeof window?document:null);var up=function(a,b){this.char=a;this.modifiers=b};/*

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var quc=function(a,b,c,d,e,f){this.combo=a;this.callback=b;this.allowIn=c;this.description=d;this.action=e;this.persistent=f;this.combo=Array.isArray(a)?a:[a];this.allowIn=c||[];this.description=d||""};
ea.Object.defineProperties(quc.prototype,{formatted:{configurable:!0,enumerable:!0,get:function(){if(!this._formatted){for(var a=this.combo[0].split(/[\s]/),b=0;b<a.length;b++){for(var c=b,d={command:"\u2318",shift:"\u21e7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193","return":"\u23ce",backspace:"\u232b"},e=a[b].split("+"),f=0;f<e.length;f++)e[f]==="mod"&&(window.navigator&&window.navigator.platform.indexOf("Mac")>=0?e[f]="command":e[f]="ctrl"),e[f]=d[e[f]]||e[f];a[c]=e.join(" + ")}this._formatted=
a}return this._formatted}}});var ruc=new yd("HotkeyOptions");var iH=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new bg;this.preventIn=["INPUT","SELECT","TEXTAREA"];Mousetrap.prototype.stopCallback=function(b,c){return(" "+c.className+" ").indexOf(" mousetrap ")>-1?!1:c.contentEditable&&c.contentEditable==="true"};this.mousetrap=new Mousetrap;this.options.disableCheatSheet||this.add(new quc(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new quc("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=iH.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=l(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var u=h.target,A=u.nodeName.toUpperCase();(" "+u.className+" ").indexOf(" mousetrap ")>-1?q=!0:c.preventIn.indexOf(A)>-1&&a.allowIn.map(function(G){return G.toUpperCase()}).indexOf(A)===-1&&(q=!1)}if(q)return a.callback.apply(c,[h,k])},b);return a};
g.remove=function(a){var b=[];if(!a){a=l(this.hotkeys);for(var c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}if(Array.isArray(a)){a=l(a);for(c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}b=this.hotkeys.indexOf(a);return b>-1?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
g.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(this.hotkeys[b].combo.indexOf(a)>-1)return this.hotkeys[b];return null};g.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
g.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return b>-1?(this.add(a),this.pausedHotkeys.splice(b,1)):null};g.reset=function(){this.mousetrap.reset()};iH.\u0275fac=function(a){return new (a||iH)(nd(ruc))};iH.\u0275prov=Sc({token:iH,factory:iH.\u0275fac});var jH=function(){};jH.\u0275fac=function(a){return new (a||jH)};jH.\u0275mod=Jf({type:jH});jH.\u0275inj=Tc({imports:[Yv]});var suc;var tuc="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),kH=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},lH=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?(suc||(c={},suc=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort=
"none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=suc,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},uuc=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},mH=function(a,b){var c="";b&&(c=b.id);lH(a,"activedescendant",c)},vuc=function(a,b){lH(a,"label",b)};var nH=function(){var a=n(BF),b=n(OG);Z.call(this);var c=this;this.rawHotkeysService=n(iH);this.ngZone=n(ph);this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;b.keyboardPrefs$.pipe(gg(this.destroyed$)).subscribe(function(d){d&&(c.enabled=!!d.enableAllHotkeys)});a.routeChangeStart.pipe(gg(this.destroyed$)).subscribe(function(){c.unpause()});this.rawHotkeysService.mousetrap.stopCallback=function(d,e){if(!c.enabled||c.paused)e=!0;else if((" "+e.className+" ").includes(" mousetrap ")||e.classList.contains("has-hotkey"))e=
!1;else{if(d=e.getAttribute)d=e.getAttribute("role")||null,d=Wa(tuc,d)>=0;e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||wuc(e)?!0:!1}return e};this.destroyed$.subscribe(function(){xuc(c)})};Y(nH,Z);nH.\u0275dir=Z.\u0275dir;nH.prototype.isEnabled=function(){return this.enabled};nH.prototype.isPaused=function(){return this.paused};
var oH=function(a,b){var c=b.title;var d=b.hotkeys;var e;b=(e=a.hotkeyGroups.get(c))!=null?e:[];a.hotkeyGroups.set(c,[].concat(p(b),p(d)));yuc(a);return function(){var f=new Set(d.map(function(q){return q.onPress})),h,k=((h=a.hotkeyGroups.get(c))!=null?h:[]).filter(function(q){return!f.has(q.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);yuc(a)}},xuc=function(a){var b=[].concat(p(a.rawHotkeysService.hotkeys));b=l(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},yuc=function(a){xuc(a);for(var b=l(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=zuc(a,c.value);c=l(c);for(var d=c.next(),e={};!d.done;e={binding$jscomp$8:void 0},d=c.next())e.binding$jscomp$8=d.value,d=new quc(MIa(e.binding$jscomp$8.key),function(f){return function(h){a.ngZone.run(function(){f.binding$jscomp$8.command()});h.stopPropagation();return!1}}(e),e.binding$jscomp$8.allowIn),a.rawHotkeysService.add(d)}},wuc=function(a){return[].concat(p(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return b.style.position===
"static"}).some(function(b){return b.contains(a)})},zuc=function(a,b){var c=[];b=l(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:void 0},d=b.next()){e.hotkeySpec=d.value;d=l(e.hotkeySpec.keys.entries());for(var f=d.next(),h={};!f.done;h={index$jscomp$4832:void 0},f=d.next()){var k=l(f.value);f=k.next().value;k=k.next().value;h.index$jscomp$4832=f;c.push(new Auc(k,function(q,u){return function(){a.ngZone.run(function(){q.hotkeySpec.onPress(u.index$jscomp$4832)})}}(e,h),e.hotkeySpec.allowIn))}}Oba(c,
function(q,u){return q.strokeLength>u.strokeLength?-1:q.strokeLength<u.strokeLength?1:0});return c};nH.prototype.pause=function(){this.paused=!0};nH.prototype.unpause=function(){this.paused=!1};var Buc=function(a){return[].concat(p(a.hotkeyGroups.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:ik(c,NIa)}})};nH.\u0275fac=function(a){return new (a||nH)};nH.\u0275prov=Sc({token:nH,factory:nH.\u0275fac,providedIn:"root"});
var Auc=function(a,b,c){c=c===void 0?[]:c;this.key=a;this.command=b;this.allowIn=c;a instanceof Array&&(this.strokeLength=a.length);this.strokeLength=1};var pH=function(){Z.apply(this,arguments);this.hotkeys=n(nH);this.tooltip=n(cB,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new LA};Y(pH,Z);pH.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip&&this.hotkeyEnabled&&this.hotkey){var b;a=(b=this.hotkey.displayAs)!=null?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};
pH.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(oH(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};pH.\u0275fac=function(){var a;return function(b){return(a||(a=fe(pH)))(b||pH)}}();
pH.\u0275dir=Kf({type:pH,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},standalone:!1,features:[kg,Uu]});var Cuc={category:"Edit Issue Page",keys:[vp("r")],displayAs:"Shift+r",description:"Refresh"},Duc={category:"Issue List",keys:["u",vp("r")],displayAs:"u / Shift+r",description:"Refresh search results"},xp={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[vp("a")],displayAs:"Shift+a",description:"Assign issue to the default assignee for this component"},CHANGE_ASSIGNEE:{category:"Edit Issue Page",keys:["a"],displayAs:"a",description:"Change assignee"},CHANGE_ISSUE_PRIORITY_TO_P0:{category:"Issue Priority Picker",
keys:["0"],displayAs:"p - 0",description:"Mark issue as priority P0"},CHANGE_ISSUE_PRIORITY_TO_P1:{category:"Issue Priority Picker",keys:["1"],displayAs:"p - 1",description:"Mark issue as priority P1"},CHANGE_ISSUE_PRIORITY_TO_P2:{category:"Issue Priority Picker",keys:["2"],displayAs:"p - 2",description:"Mark issue as priority P2"},CHANGE_ISSUE_PRIORITY_TO_P3:{category:"Issue Priority Picker",keys:["3"],displayAs:"p - 3",description:"Mark issue as priority P3"},CHANGE_ISSUE_PRIORITY_TO_P4:{category:"Issue Priority Picker",
keys:["4"],displayAs:"p - 4",description:"Mark issue as priority P4"},CHANGE_ISSUE_STATUS_TO_ACCEPTED:{category:"Issue Status Picker",keys:["p"],displayAs:"t - p",description:'Change issue status to "In progress (Accepted)"'},CHANGE_ISSUE_STATUS_TO_ASSIGNED:{category:"Issue Status Picker",keys:["a"],displayAs:"t - a",description:'Change issue status to "Assigned"'},CHANGE_ISSUE_STATUS_TO_DUPLICATE:{category:"Issue Status Picker",keys:["d"],displayAs:"t - d",description:'Change issue status to "Duplicate"'},
CHANGE_ISSUE_STATUS_TO_FIXED:{category:"Issue Status Picker",keys:["f"],displayAs:"t - f",description:'Change issue status "Fixed"'},CHANGE_ISSUE_STATUS_TO_INFEASIBLE:{category:"Issue Status Picker",keys:["i"],displayAs:"t - i",description:'Change issue status to "Won\'t fix (Infeasible)"'},CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR:{category:"Issue Status Picker",keys:["w"],displayAs:"t - w",description:'Change issue status to "Won\'t fix (Intended behavior)"'},CHANGE_ISSUE_STATUS_TO_NEW:{category:"Issue Status Picker",
keys:["n"],displayAs:"t - n",description:'Change issue status to "New"'},CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE:{category:"Issue Status Picker",keys:["r"],displayAs:"t - r",description:'Change issue status to "Won\'t fix (Not reproducible)"'},CHANGE_ISSUE_STATUS_TO_OBSOLETE:{category:"Issue Status Picker",keys:["o"],displayAs:"t - o",description:'Change issue status to "Won\'t fix (Obsolete)"'},CHANGE_ISSUE_STATUS_TO_VERIFIED:{category:"Issue Status Picker",keys:["v"],displayAs:"t - v",description:'Change issue status to "Fixed (Verified)"'},
COPY_ISSUE_EMAIL_ADDRESS:{category:"Issue Id Picker",keys:["e"],displayAs:"i - e",description:"Copy issue email address",allowIn:["input"]},COPY_ISSUE_ID:{category:"Issue Id Picker",keys:["d"],displayAs:"i - d",description:"Copy issue ID",allowIn:["input"]},COPY_ISSUE_SHORTLINK:{category:"Issue Id Picker",keys:["l"],displayAs:"i - l",description:"Copy issue shortlink",allowIn:["input"]},COPY_ISSUE_TITLE:{category:"Issue Id Picker",keys:["t"],displayAs:"i - t",description:"Copy issue url and title",
allowIn:["input"]},COPY_ISSUE_TODO:{category:"Issue Id Picker",keys:["o"],displayAs:"i - o",description:"Copy issue TODO comment",allowIn:["input"]},COPY_ISSUE_URL:{category:"Issue Id Picker",keys:["u"],displayAs:"i - u",description:"Copy issue url",allowIn:["input"]},FOCUS_COMMENT_BOX:{category:"Edit Issue Page",keys:["r"],displayAs:"r",description:"Focus the comment box"},GO_TO_NEXT_ISSUE:{category:"Edit Issue Page",keys:["j"],displayAs:"j",description:"Move to the next issue"},GO_TO_PREVIOUS_ISSUE:{category:"Edit Issue Page",
keys:["k"],displayAs:"k",description:"Move to the previous issue"},GO_UP_TO_LIST:{category:"Edit Issue Page",keys:["u"],displayAs:"u",description:"Up to issue list"},HIGHLIGHT_ISSUE_ID:{category:"Edit Issue Page",keys:["i","l"],displayAs:"i, l",description:"Highlight issue ID"},OPEN_HOTLIST_PICKER:{category:"Edit Issue Page",keys:["h"],displayAs:"h",description:"Edit hotlists"},OPEN_ISSUE_ACCESS_LIMITS_DIALOG:{category:"Edit Issue Page",keys:["m"],displayAs:"m",description:"Manage issue access limits"},
OPEN_ISSUE_PRIORITY_MENU:{category:"Edit Issue Page",keys:["p"],displayAs:"p <n>",description:"Mark issue as priority [0-4]"},OPEN_ISSUE_STATUS_MENU:{category:"Edit Issue Page",keys:["t"],displayAs:"t",description:"Opens the menu to change the issue status"},REFRESH_ISSUE:Cuc,REFRESH_ISSUE_LIST:Duc,TOGGLE_LEFT_SIDEBAR:{category:"General",keys:["<"],displayAs:"<",description:"Toggle left sidebar"},TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},
TOGGLE_RIGHT_SIDEBAR:{category:"General",keys:[">"],displayAs:">",description:"Toggle right sidebar"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};var qH=function(){};qH.\u0275fac=function(a){return new (a||qH)};qH.\u0275mod=Jf({type:qH});qH.\u0275inj=Tc({});var rH=function(){Z.call(this);this.templateRef=n(Tg);this.viewContainer=n(Ug);this.cdr=n(qv);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Y(rH,Z);rH.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
ea.Object.defineProperties(rH.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(gg(this.destroyed$)).subscribe(function(){b.isViewInitialized&&(b.viewContainer.clear(),b.viewContainer.createEmbeddedView(b.templateRef),b.cdr.detectChanges())})}}});rH.\u0275fac=function(a){return new (a||rH)};rH.\u0275dir=Kf({type:rH,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},standalone:!1,features:[kg]});var Euc=function(){};var zp=function(){this.Serializable$values={}},yp=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},sH=function(a,b){return a.Serializable$values[b]!=null};var Fuc=function(a){if(a.getCount&&typeof a.getCount=="function")a=a.getCount();else if(bb(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},tH=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(bb(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Nqa(a)},Guc=
function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(bb(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}b=[];c=0;for(var d in a)b[c++]=d;return b}}},Huc=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(bb(a)||typeof a==="string")Array.prototype.forEach.call(a,
b,c);else for(var d=Guc(a),e=tH(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},Iuc=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(bb(a)||typeof a==="string")return Array.prototype.every.call(a,b,c);for(var d=Guc(a),e=tH(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var Juc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Kuc=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}},Luc=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+
1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]},Muc=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Muc(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+encodeURIComponent(String(b))))},Nuc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Muc(a[b],a[b+1],c);return c.join("&")},Ouc=function(a){var b=[],c;for(c in a)Muc(c,a[c],b);return b.join("&")},SUa=function(a,b){var c=arguments.length==2?Nuc(arguments[1],0):Nuc(arguments,
1);return Luc(a,c)},UUa=function(a,b){b=Ouc(b);return Luc(a,b)},Puc=function(a,b,c){c=c!=null?"="+encodeURIComponent(String(c)):"";return Luc(a,b+c)},Quc=/#|$/,Ndb=function(a,b){var c=a.search(Quc);a:{var d=0;for(var e=b.length;(d=a.indexOf(b,d))>=0&&d<c;){var f=a.charCodeAt(d-1);if(f==38||f==63)if(f=a.charCodeAt(d+e),!f||f==61||f==38||f==35)break a;d+=e+1}d=-1}if(d<0)return null;e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))};var Qp=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Qp?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,uH(this,a.scheme_),this.setUserInfo(a.getUserInfo()),vH(this,a.getDomain()),this.setPort(a.getPort()),this.setPath(a.getPath()),Ruc(this,a.queryData_.clone()),Suc(this,a.fragment_)):a&&(c=String(a).match(Juc))?(this.ignoreCase_=!!b,uH(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),vH(this,c[3]||"",!0),
this.setPort(c[4]),this.setPath(c[5]||"",!0),Ruc(this,c[6]||"",!0),Suc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new wH(null,this.ignoreCase_))};
Qp.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(Tuc(b,Uuc,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.getUserInfo())&&a.push(Tuc(b,Uuc,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.getPort(),c!=null&&a.push(":",String(c));if(c=this.getPath())this.domain_&&c.charAt(0)!="/"&&a.push("/"),a.push(Tuc(c,c.charAt(0)=="/"?Vuc:Wuc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",Tuc(c,
Xuc));return a.join("")};
Qp.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?uH(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?vH(b,a.getDomain()):c=a.hasPort();var d=a.getPath();if(c)b.setPort(a.getPort());else if(c=a.hasPath()){if(d.charAt(0)!="/")if(this.domain_&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(Da(e,"./")||Da(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=
[],h=0;h<e.length;){var k=e[h++];k=="."?d&&h==e.length&&f.push(""):k==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?Ruc(b,a.queryData_.clone()):c=!!a.fragment_;c&&Suc(b,a.fragment_);return b};Qp.prototype.clone=function(){return new Qp(this)};var uH=function(a,b,c){a.scheme_=c?xH(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Qp.prototype.getUserInfo=function(){return this.userInfo_};
Qp.prototype.setUserInfo=function(a,b){this.userInfo_=b?xH(a):a;return this};Qp.prototype.hasUserInfo=function(){return!!this.userInfo_};Qp.prototype.getDomain=function(){return this.domain_};var vH=function(a,b,c){a.domain_=c?xH(b,!0):b;return a};g=Qp.prototype;g.getPort=function(){return this.port_};g.setPort=function(a){if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("vd`"+a);this.port_=a}else this.port_=null;return this};g.hasPort=function(){return this.port_!=null};g.getPath=function(){return this.path_};
g.setPath=function(a,b){this.path_=b?xH(a,!0):a;return this};g.hasPath=function(){return!!this.path_};g.hasQuery=function(){return this.queryData_.toString()!==""};var Ruc=function(a,b,c){b instanceof wH?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=Tuc(b,Yuc)),a.queryData_=new wH(b,a.ignoreCase_));return a};Qp.prototype.setQuery=function(a){return Ruc(this,a)};Qp.prototype.getQuery=function(){return this.queryData_.toString()};
var Jr=function(a,b,c){a.queryData_.set(b,c);return a},Ir=function(a,b){return a.queryData_.get(b)},Suc=function(a,b,c){a.fragment_=c?xH(b):b;return a},Zuc=function(a){Jr(a,"zx",Pdb());return a};Qp.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Qp.prototype.isReadOnly=function(){return!1};Qp.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var Hr=function(a,b){return a instanceof Qp?a.clone():new Qp(a,b)},$uc=function(a,b,c,d,e){var f=new Qp(null);a&&uH(f,a);b&&f.setUserInfo(b);c&&vH(f,c);d&&f.setPort(d);e&&f.setPath(e);return f},xH=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Tuc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,avc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},avc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
Uuc=/[#\/\?@]/g,Wuc=/[#\?:]/g,Vuc=/[#\?]/g,Yuc=/[#\?@]/g,Xuc=/#/g,wH=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},yH=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Kuc(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=wH.prototype;g.getCount=function(){yH(this);return this.count_};
g.add=function(a,b){yH(this);this.encodedQuery_=null;a=zH(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};g.remove=function(a){yH(this);a=zH(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};g.isEmpty=function(){yH(this);return this.count_==0};g.containsKey=function(a){yH(this);a=zH(this,a);return this.keyMap_.has(a)};
g.containsValue=function(a){var b=this.getValues();return Wa(b,a)>=0};g.forEach=function(a,b){yH(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){yH(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.getValues=function(a){yH(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(zH(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};g.set=function(a,b){yH(this);this.encodedQuery_=null;a=zH(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};g.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
g.setValues=function(a,b){this.remove(a);b.length>0&&(this.encodedQuery_=null,this.keyMap_.set(zH(this,a),ab(b)),this.count_+=b.length)};g.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.getValues(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}}return this.encodedQuery_=a.join("&")};
g.clone=function(){var a=new wH;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var zH=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};wH.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(yH(this),this.encodedQuery_=null,this.keyMap_.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.ignoreCase_=a};
wH.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Huc(arguments[b],function(c,d){this.add(d,c)},this)};var bvc=function(a){var b="";Si(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},cvc=function(a,b,c){if(Ui(c))return a;c=bvc(c);if(typeof a==="string")return Puc(a,encodeURIComponent(String(b)),c);Jr(a,b,c);return a};var dvc=function(){};var evc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Y(evc,dvc);
var fvc=function(a,b,c){var d=QIa(a.hookFactory,b);return d==null?c:Te.pipe(hg({complete:function(){d.onBeforeSend()}}),Hja(c.pipe(hg(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},gvc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof zp?VIa(b.body,SIa,TIa,UIa):b.body;return fvc(a,b,e.call(d,{path:b.path,httpMethod:b.httpMethod,methodId:b.methodId,body:f,queryParams:b.queryParams,streamingType:b.streamingType&&b.streamingType},c))};var hvc=function(){};hvc.prototype.send=function(a,b){cJa(a);return this.makeRequest(a).pipe(y(function(c){return b?ZIa(b,c):c}))};var ivc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=a.dayOfWeek==null?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=a.periodStartMinutes==null?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=a.periodEndMinutes==null?null:a.periodEndMinutes};Y(ivc,zp);ivc.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
ea.Object.defineProperties(ivc.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return sH(this,"dayOfWeek")?yp(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return sH(this,"periodEndMinutes")?yp(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return sH(this,"periodStartMinutes")?yp(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var jvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userIds=a.userIds==null?null:a.userIds;this.Serializable$values.debugOptions=a.debugOptions==null?null:a.debugOptions};Y(jvc,zp);jvc.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:AH},keys:["debugOptions","userIds"],objects:{debugOptions:kvc}}};
ea.Object.defineProperties(jvc.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return sH(this,"debugOptions")?yp(this,"debugOptions"):this.debugOptions=new kvc},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return sH(this,"userIds")?yp(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var lvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Y(lvc,zp);lvc.prototype.getPartialClassMetadata=function(){return{arrays:{results:mvc},keys:["results"]}};
ea.Object.defineProperties(lvc.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return yp(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return sH(this,"results")?yp(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var nvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(nvc,zp);
nvc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
ea.Object.defineProperties(nvc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"committedUntil")?yp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return sH(this,"eventSummary")?yp(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextAvailable")?yp(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"occupiedUntil")?yp(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var ovc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location;this.Serializable$values.geoCoordinates=a.geoCoordinates==null?null:a.geoCoordinates;this.Serializable$values.label=a.label==null?null:a.label};Y(ovc,zp);ovc.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:pvc}}};
ea.Object.defineProperties(ovc.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return sH(this,"geoCoordinates")?yp(this,"geoCoordinates"):this.geoCoordinates=new pvc},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return sH(this,"label")?yp(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return sH(this,"location")?yp(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var qvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(qvc,zp);qvc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
ea.Object.defineProperties(qvc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"committedUntil")?yp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextAvailable")?yp(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"occupiedUntil")?yp(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var rvc=function(){this.Serializable$values={}};Y(rvc,zp);rvc.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var svc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=a.inMeetingsUntil==null?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(svc,zp);
svc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
ea.Object.defineProperties(svc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"committedUntil")?yp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return sH(this,"eventSummary")?yp(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"inMeetingsUntil")?yp(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextAvailable")?yp(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"occupiedUntil")?yp(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var tvc=function(){this.Serializable$values={}};Y(tvc,zp);
tvc.prototype.getPartialClassMetadata=function(){return{keys:[]}};var pvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.latitude=a.latitude==null?null:a.latitude;this.Serializable$values.longitude=a.longitude==null?null:a.longitude};Y(pvc,zp);pvc.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
ea.Object.defineProperties(pvc.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return sH(this,"latitude")?yp(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return sH(this,"longitude")?yp(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var uvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Y(uvc,zp);uvc.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};ea.Object.defineProperties(uvc.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return sH(this,"timeZone")?yp(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var vvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=a.experimentalBuildingId==null?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=a.experimentalDeskId==null?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=a.experimentalFloorId==null?null:a.experimentalFloorId;this.Serializable$values.label=a.label==null?null:a.label};Y(vvc,zp);
vvc.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
ea.Object.defineProperties(vvc.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return sH(this,"experimentalBuildingId")?yp(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return sH(this,"experimentalDeskId")?yp(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return sH(this,"experimentalFloorId")?yp(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return sH(this,"label")?yp(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var wvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime;this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(wvc,zp);wvc.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
ea.Object.defineProperties(wvc.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"comeBackTime")?yp(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return sH(this,"committedUntil")?yp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return sH(this,"eventSummary")?yp(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var xvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Y(xvc,zp);xvc.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
ea.Object.defineProperties(xvc.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"comeBackTime")?yp(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var yvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.code=a.code==null?null:a.code;this.Serializable$values.message=a.message==null?null:a.message;this.Serializable$values.details=a.details==null?null:a.details};Y(yvc,zp);
yvc.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
ea.Object.defineProperties(yvc.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return sH(this,"code")?yp(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return sH(this,"details")?yp(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return sH(this,"message")?yp(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var BH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.startTime=a.startTime==null?null:a.startTime;this.Serializable$values.endTime=a.endTime==null?null:a.endTime};Y(BH,zp);BH.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
ea.Object.defineProperties(BH.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"endTime")?yp(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"startTime")?yp(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var zvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=a.overrideCurrentTime==null?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=a.computationDuration==null?null:a.computationDuration};Y(zvc,zp);zvc.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
ea.Object.defineProperties(zvc.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return sH(this,"computationDuration")?yp(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"overrideCurrentTime")?yp(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var Avc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.nextCommitmentTime=a.nextCommitmentTime==null?null:a.nextCommitmentTime;this.Serializable$values.nextCommitmentStatus=a.nextCommitmentStatus==null?null:a.nextCommitmentStatus};Y(Avc,zp);Avc.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:CH}}};
ea.Object.defineProperties(Avc.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextCommitmentStatus")?yp(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new CH},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextCommitmentTime")?yp(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var Bvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Y(Bvc,zp);Bvc.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:BH}}};ea.Object.defineProperties(Bvc.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return sH(this,"timeRange")?yp(this,"timeRange"):this.timeRange=new BH},set:function(a){this.Serializable$values.timeRange=a}}});
var Cvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=a.availabilities==null?null:a.availabilities;this.Serializable$values.workingHours=a.workingHours==null?null:a.workingHours;this.Serializable$values.nextPollTime=a.nextPollTime==null?null:a.nextPollTime};Y(Cvc,zp);Cvc.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:Dvc},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:Evc}}};
ea.Object.defineProperties(Cvc.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return sH(this,"availabilities")?yp(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"nextPollTime")?yp(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return sH(this,"workingHours")?
yp(this,"workingHours"):this.workingHours=new Evc},set:function(a){this.Serializable$values.workingHours=a}}});var kvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=a.forceEnableUserStatusCache==null?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=a.timeSettings==null?null:a.timeSettings};Y(kvc,zp);kvc.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:zvc}}};
ea.Object.defineProperties(kvc.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return sH(this,"forceEnableUserStatusCache")?yp(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return sH(this,"timeSettings")?yp(this,"timeSettings"):this.timeSettings=new zvc},set:function(a){this.Serializable$values.timeSettings=a}}});
var mvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userId=a.userId==null?null:a.userId;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.userAvailabilities=a.userAvailabilities==null?null:a.userAvailabilities};Y(mvc,zp);mvc.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:yvc,userAvailabilities:Cvc,userId:AH}}};
ea.Object.defineProperties(mvc.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return yp(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return sH(this,"status")?yp(this,"status"):this.status=new yvc},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return yp(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return sH(this,"userAvailabilities")?
yp(this,"userAvailabilities"):this.userAvailabilities=new Cvc},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return yp(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return sH(this,"userId")?yp(this,"userId"):this.userId=new AH},set:function(a){this.Serializable$values.userId=a}}});
var Dvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.contexts=a.contexts==null?null:a.contexts};Y(Dvc,zp);Dvc.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:Fvc,status:CH,timeRange:BH}}};
ea.Object.defineProperties(Dvc.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return yp(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return sH(this,"contexts")?yp(this,"contexts"):this.contexts=new Fvc},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return yp(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return sH(this,"status")?yp(this,"status"):
this.status=new CH},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return sH(this,"timeRange")?yp(this,"timeRange"):this.timeRange=new BH},set:function(a){this.Serializable$values.timeRange=a}}});
var Fvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=a.workingElsewhere==null?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=a.upcomingOoo==null?null:a.upcomingOoo;this.Serializable$values.localTime=a.localTime==null?null:a.localTime;this.Serializable$values.upcomingCommitmentContext=a.upcomingCommitmentContext==null?null:a.upcomingCommitmentContext};Y(Fvc,zp);
Fvc.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:uvc,upcomingCommitmentContext:Avc,upcomingOoo:Bvc,workingElsewhere:Gvc}}};
ea.Object.defineProperties(Fvc.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return yp(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"localTime")?yp(this,"localTime"):this.localTime=new uvc},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return sH(this,"upcomingCommitmentContext")?yp(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new Avc},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return sH(this,"upcomingOoo")?yp(this,"upcomingOoo"):this.upcomingOoo=new Bvc},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return sH(this,"workingElsewhere")?yp(this,"workingElsewhere"):this.workingElsewhere=new Gvc},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var AH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=a.obfuscatedGaiaId==null?null:a.obfuscatedGaiaId;this.Serializable$values.email=a.email==null?null:a.email};Y(AH,zp);AH.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
ea.Object.defineProperties(AH.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return sH(this,"email")?yp(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return sH(this,"obfuscatedGaiaId")?yp(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var Hvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=a.homeLocation==null?null:a.homeLocation;this.Serializable$values.customLocation=a.customLocation==null?null:a.customLocation;this.Serializable$values.officeLocation=a.officeLocation==null?null:a.officeLocation};Y(Hvc,zp);Hvc.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:ovc,homeLocation:rvc,officeLocation:vvc}}};
ea.Object.defineProperties(Hvc.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return sH(this,"customLocation")?yp(this,"customLocation"):this.customLocation=new ovc},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return sH(this,"homeLocation")?yp(this,"homeLocation"):this.homeLocation=new rvc},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return sH(this,
"officeLocation")?yp(this,"officeLocation"):this.officeLocation=new vvc},set:function(a){this.Serializable$values.officeLocation=a}}});
var CH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.inactive=a.inactive==null?null:a.inactive;this.Serializable$values.doNotDisturb=a.doNotDisturb==null?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=a.outsideWorkingHours==null?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=a.outOfOffice==null?null:a.outOfOffice;this.Serializable$values.inMeeting=a.inMeeting==null?null:a.inMeeting;this.Serializable$values.calendarBusy=a.calendarBusy==
null?null:a.calendarBusy};Y(CH,zp);CH.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:nvc,doNotDisturb:qvc,inMeeting:svc,inactive:tvc,outOfOffice:wvc,outsideWorkingHours:xvc}}};
ea.Object.defineProperties(CH.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return sH(this,"calendarBusy")?yp(this,"calendarBusy"):this.calendarBusy=new nvc},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return sH(this,"doNotDisturb")?yp(this,"doNotDisturb"):this.doNotDisturb=new qvc},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return sH(this,
"inMeeting")?yp(this,"inMeeting"):this.inMeeting=new svc},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return sH(this,"inactive")?yp(this,"inactive"):this.inactive=new tvc},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return yp(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return sH(this,"outOfOffice")?yp(this,"outOfOffice"):
this.outOfOffice=new wvc},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return sH(this,"outsideWorkingHours")?yp(this,"outsideWorkingHours"):this.outsideWorkingHours=new xvc},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var Gvc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Y(Gvc,zp);
Gvc.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:Hvc}}};ea.Object.defineProperties(Gvc.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return sH(this,"location")?yp(this,"location"):this.location=new Hvc},set:function(a){this.Serializable$values.location=a}}});var Evc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Y(Evc,zp);
Evc.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:ivc},keys:["availableTime"]}};ea.Object.defineProperties(Evc.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return sH(this,"availableTime")?yp(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var Ivc=new yd("API_VERSION"),Jvc=new yd("REQUEST_SERVICE for waldo_service_api"),DH=function(){};DH.\u0275fac=function(a){return new (a||DH)};
DH.\u0275mod=Jf({type:DH});DH.\u0275inj=Tc({});var Kvc={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",callback:"callback",fields:"fields",key:"key",oauth_token:"oauth_token",prettyPrint:"prettyPrint",quotaUser:"quotaUser",uploadType:"uploadType",upload_protocol:"upload_protocol"},EH=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new evc(b,c)};EH.\u0275fac=function(a){return new (a||EH)(nd(Ivc,8),nd(Jvc),nd(Euc,8))};EH.\u0275prov=Sc({token:EH,factory:EH.\u0275fac});
var Lvc=function(){};Lvc.\u0275fac=function(a){return new (a||Lvc)};Lvc.\u0275prov=Sc({token:Lvc,factory:function(a){return EH.\u0275fac(a)},providedIn:DH});var FH=function(a){var b=this;this.apiStub=a;this.result=new bg;this.destroyed=new ag(1);this.trigger=new bg;this.batchedTrigger=this.trigger.pipe(Eja(this.trigger.pipe(Of(200))));this.responseHandler=function(c){if(c.hasResults){c=l(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){var f=e.status.outOfOffice;if(f.comeBackTime){var h=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===h.getFullYear()&&k.getMonth()===h.getMonth()&&k.getDate()===h.getDate()?"at "+f.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(f.getFullYear()!==(new Date).getFullYear()?f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));f=" - back "+f}else f="";f="Out of Office"+f}else f="";b.result.next({emailAddress:d,
availability:f,timezone:e.hasContexts&&e.contexts.hasLocalTime?e.contexts.localTime.timeZone:""})}else b.result.next({emailAddress:d,availability:"",timezone:""})}}};this.batchedTrigger.pipe(gg(this.destroyed)).subscribe(function(c){c=[].concat(p(new Set(c)));Mvc(b,c.slice(0,100));c=l(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},Mvc=function(a,b){var c,d;w(function(e){for(var f=new jvc,h=[],k=l(b),q=k.next();!q.done;q=k.next()){q=q.value;var u=new AH;u.email=q;h.push(u)}f.userIds=
h;c=f;f=a.apiStub;var A=A===void 0?{}:A;var G=G===void 0?{}:G;d=gvc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:dJa(A,Kvc,G),responseCtor:lvc});d.pipe(gg(a.destroyed)).subscribe(a.responseHandler);ze(e)})},Nvc=function(a,b){if(!b)return Ce({emailAddress:b,availability:"",timezone:""});a.trigger.next(b);return a.result.pipe(Ve(function(c){return c.emailAddress===
b}))},Ovc=function(a,b){return Nvc(a,b).pipe(y(function(c){return c.availability}))};FH.prototype.ngOnDestroy=function(){this.destroyed.next()};FH.\u0275fac=function(a){return new (a||FH)(nd(Lvc))};FH.\u0275prov=Sc({token:FH,factory:FH.\u0275fac});var GH=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new ag(1);this.availability=this.userSubject.pipe(fg(function(c){return Ovc(b.waldoAvailabilityService,c)}))};GH.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};GH.\u0275fac=function(a){return new (a||GH)(zf(FH))};
GH.\u0275cmp=B({type:GH,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[Uu],decls:2,vars:3,consts:[["class","chip__container",4,"ngIf"],[1,"chip__container"],["preserveAspectRatio","xMidYMid meet","width","100%","height","100%","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","viewBox","0 0 24 24","aria-hidden","true",1,"chip__icon"],["d","M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11z"],
["aria-hidden","true",1,"chip__text"]],template:function(a,b){a&1&&(C(0,eJa,6,3,"div",0),S(1,"async"));a&2&&D("ngIf",T(1,1,b.availability))},dependencies:[Ov,Qv],styles:["[_nghost-%COMP%]{display:inline-block;height:18px;vertical-align:middle}[_nghost-%COMP%]:empty{display:none}[coinonly][_nghost-%COMP%]   .chip__container[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__container[_ngcontent-%COMP%]{background:#f1f3f4;padding:0 1px}[coinonly][_nghost-%COMP%]   .chip__icon[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__icon[_ngcontent-%COMP%]{fill:#5f6368}[coinonly][_nghost-%COMP%]   .chip__text[_ngcontent-%COMP%], [collapsed][_nghost-%COMP%]:not(:hover)   .chip__text[_ngcontent-%COMP%]{display:none}.chip__container[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:#fef7e0;border:1px solid transparent;border-radius:20px;-moz-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:18px;padding:0 6px;white-space:nowrap;width:100%}.chip__icon[_ngcontent-%COMP%]{fill:#b06000;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:14px;width:14px}.chip__text[_ngcontent-%COMP%]{color:#202124;font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:12px;letter-spacing:.025em;line-height:16px;margin:0 0 0 6px;overflow:hidden;text-overflow:ellipsis}"],
changeDetection:0});var HH=function(){this.refreshMonitor=n(YE);this.user="";this.coinonly=null};HH.\u0275fac=function(a){return new (a||HH)};HH.\u0275cmp=B({type:HH,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},standalone:!1,decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&C(0,fJa,1,2,"ng-template",0);a&2&&D("refreshable",b.refreshMonitor.getObservable())},dependencies:[GH,rH],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var IH=function(){this.segments=[];this.clickMain=new LA;this.clickSegment=new LA};IH.prototype.ngOnInit=function(){};ea.Object.defineProperties(IH.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});IH.\u0275fac=function(a){return new (a||IH)};
IH.\u0275cmp=B({type:IH,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},standalone:!1,decls:5,vars:6,consts:[["createMenu","matMenu"],[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],["type","button","mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],
["mat-menu-item","",3,"href"],["mat-menu-item","",3,"click","href"]],template:function(a,b){a&1&&(I(0,"span",1)(1,"a",2),M("click",function(){return b.clickMain.emit(b.label)}),K(2,"mat-icon",3),Q(3),J(),E(4,hJa,6,1),J());a&2&&(z(),wg("square-right",b.showMoreButton),ng("href",b.href||void 0,uf),z(),D("svgIcon",b.icon),z(),R(" ",b.label," "),z(),F(b.showMoreButton?4:-1))},dependencies:[aB,PA,Tx,UG,XG,VG,YG],styles:["a.gmat-mdc-button.mat-mdc-button[_ngcontent-%COMP%]:not([disabled]){vertical-align:middle;color:#202124;color:var(--text-default);font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500}.shrink-wrap[_ngcontent-%COMP%]{display:inline-block;border-radius:24px;white-space:nowrap;-webkit-transition:box-shadow .2s ease-in-out;transition:box-shadow .2s ease-in-out;background-color:#fff;background-color:var(--fab-button-bg);box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.shrink-wrap[_ngcontent-%COMP%]:hover{box-shadow:0 1px 3px 0 rgba(0,0,0,.3),0 4px 8px 3px rgba(0,0,0,.15)}.mat-mdc-button[_ngcontent-%COMP%]{border-radius:24px}.mat-mdc-button[_ngcontent-%COMP%]   mat-icon.icon-xl[_ngcontent-%COMP%]{--mat-text-button-icon-spacing:4px;height:36px;width:36px}.main[_ngcontent-%COMP%]{padding-left:10px;padding-right:24px}.main.square-right[_ngcontent-%COMP%]{padding-right:8px}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{--mat-text-button-state-layer-color:var(--base-fg)}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]:focus, .gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]:hover{color:#202124;color:var(--text-default);--mdc-text-button-hover-label-text-color:var(--text-default);--mdc-text-button-focus-label-text-color:var(--text-default)}.gmat-mdc-button.mat-mdc-button.more[_ngcontent-%COMP%]{padding-right:10px;padding-left:4px;min-width:0;color:#80868b;color:var(--gfx-muted)}.gmat-mdc-button.mat-mdc-button.more[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:24px;height:24px;width:24px;--mat-text-button-icon-spacing:0px}.more[_ngcontent-%COMP%]{-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out;border-left:1px solid transparent}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#dadce0;border-left-color:var(--divider)}\n/*# sourceMappingURL=fab_segmented.css.map */"]});var Pvc=function(a,b){return b.value},JH=function(){this.choices=[];this.value="";this.valueChange=new LA};JH.prototype.onClickButton=function(a){this.value=a;this.valueChange.next(a)};JH.\u0275fac=function(a){return new (a||JH)};
JH.\u0275cmp=B({type:JH,selectors:[["button-toggle"]],inputs:{choices:"choices",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:2,vars:0,consts:[["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"disableRipple","matTooltip"],["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"click","disableRipple","matTooltip"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){a&1&&Dg(0,jJa,3,5,"button",0,Pvc);a&2&&Eg(b.choices)},dependencies:[aB,
PA,Tx,YA,cB],styles:["[_nghost-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;border-radius:4px;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}button[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{margin-top:-6px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{min-width:24px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[aria-checked=true][_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{border-radius:0;padding:0 8px;box-shadow:1px 0 0 0 #dadce0;box-shadow:1px 0 0 0 var(--divider)}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px;padding-left:12px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px;padding-right:12px}.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]:last-of-type, .gmat-mdc-button.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[aria-checked=true][_ngcontent-%COMP%]{box-shadow:none}\n/*# sourceMappingURL=button_toggle.css.map */"]});var KH=function(){};KH.\u0275fac=function(a){return new (a||KH)};KH.\u0275mod=Jf({type:KH});KH.\u0275inj=Tc({providers:[huc],imports:[Mx,zx,yx,bx,zx]});var LH=function(){};LH.\u0275fac=function(a){return new (a||LH)};LH.\u0275mod=Jf({type:LH});LH.\u0275inj=Tc({imports:[KH]});var Qvc=[IH,JH],MH=function(){};MH.\u0275fac=function(a){return new (a||MH)};MH.\u0275mod=Jf({type:MH});MH.\u0275inj=Tc({imports:[ZB,$B,LH,cC]});var NH=function(){};NH.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};NH.\u0275fac=function(a){return new (a||NH)};
NH.\u0275cmp=B({type:NH,selectors:[["empty-toolbar"]],standalone:!1,decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["type","button","mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(I(0,"section",0)(1,"button",1),M("click",function(){return b.onPressBack()}),K(2,"mat-icon",2),J()())},dependencies:[aB,PA,Ux,YA,cB],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var OH=function(){};OH.\u0275fac=function(a){return new (a||OH)};OH.\u0275cmp=B({type:OH,selectors:[["b-glue"]],standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(Ng(),I(0,"span",0),Og(1),J())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var PH=function(){var a=this;this.cdr=n(NA,{self:!0});this.events=n(nD);this.ngZone=n(ph);this.HOTKEYS=xp;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new LA;this.widthAtDragStart=this.width;this.startDragging=function(b){a.dragStart=b;a.widthAtDragStart=a.width};this.minSnapWidth=185;this.onMousemove=function(b){a.isDragging&&(a.setWidth(a.widthAtDragStart+(b.pageX-(a.dragStart||0))*(a.isLTR?1:-1)),a.cdr.detectChanges())};this.onMouseup=function(){a.dragStart=
void 0;a.cdr.detectChanges()};this.broadcastWidthChange=bgc(function(b){a.widthChanged.emit(b);a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=bgc(function(){Po("sidebar","resizeKeyboard")},2E3)};PH.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
PH.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var Rvc=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};PH.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
PH.prototype.setWidth=function(a){var b=this.minSnapWidth,c=this.maxWidth;a=a<90?8:a<b?b:Math.min(a,c===void 0?700:c);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a);this.cdr.detectChanges()};
ea.Object.defineProperties(PH.prototype,{minWidth:{configurable:!0,enumerable:!0,get:function(){return this.minSnapWidth},set:function(a){a=Number(a);Number.isNaN(a)?this.minSnapWidth=185:this.minSnapWidth=a}},size:{configurable:!0,enumerable:!0,get:function(){return this.width},set:function(a){var b=Number(a);a==="open"?b=this.lastOpenPosition:Number.isNaN(b)&&(b=220);this.setWidth(b)}},isLTR:{configurable:!0,enumerable:!0,get:function(){return this.direction==="ltr"}},isClosed:{configurable:!0,
enumerable:!0,get:function(){return this.width<this.minSnapWidth}},isDragging:{configurable:!0,enumerable:!0,get:function(){return this.dragStart!=null}}});PH.\u0275fac=function(a){return new (a||PH)};
PH.\u0275cmp=B({type:PH,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},standalone:!1,features:[hh([NA])],ngContentSelectors:["*"],decls:4,vars:12,consts:[["cdkScrollable","",1,"inner",3,"ngClass"],[1,"content"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",
3,"onHotkey","mousedown","keyup.arrowleft","keyup.arrowright","keyup.space","keyup.enter","dblclick","hotkey"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"div",1),Og(2),J(),I(3,"div",2),M("onHotkey",function(){return b.toggle()})("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",function(){return Rvc(b,-10)})("keyup.arrowright",function(){return Rvc(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),
J()());a&2&&(vg("width",b.width+"px"),wg("isDragging",b.isDragging)("isClosed",b.isClosed),D("ngClass",b.direction),z(),vg("width",b.lastOpenPosition+"px"),z(2),D("hotkey",b.direction==="rtl"?b.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:b.HOTKEYS.TOGGLE_LEFT_SIDEBAR),ng("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"))},dependencies:[Mv,pH,Yw],styles:['[_nghost-%COMP%]{position:relative}.inner[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;transition:width .2s cubic-bezier(0.165, 0.84, 0.44, 1);display:flex;flex-direction:column}.inner.ltr[_ngcontent-%COMP%]{border-right:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.rtl[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.isDragging[_ngcontent-%COMP%]{transition:none}.content[_ngcontent-%COMP%]{position:relative;flex:1;opacity:1;transition:opacity .1s ease-in-out;transition-delay:.1s}.isClosed[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:none;opacity:0;transition-delay:0s}.isDragging[_ngcontent-%COMP%]{user-select:none}.resizeHandle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize}.ltr[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{right:0}.rtl[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{left:0}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isClosed[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});var Svc=new yd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),Tvc=new yd("isScrolledOnScreen",{factory:function(){return{fully:kJa,partially:lJa}}}),QH=function(){this.intersectionObserverBuilder=n(Svc);this.isScrolledOnScreen=n(Tvc)};QH.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?mJa(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):nJa(a,this.isScrolledOnScreen,b)};
var Uvc=function(a,b){var c={durationOnScreenMs:3E3},d=c===void 0?{}:c;c=d.emitOnPartial===void 0?!1:d.emitOnPartial;var e=d.durationOnScreenMs===void 0?0:d.durationOnScreenMs;d={cumulativeTime:0,wasPreviouslyOnScreen:!1,lastTimestamp:Date.now()};return a.getObservable(b,c).pipe(Yja(function(f,h){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:h,lastTimestamp:Date.now()}},d),fg(function(f){if(e===0&&f.wasPreviouslyOnScreen)return Ce(void 0);
var h=e-f.cumulativeTime;return h<0?Ce(void 0):f.wasPreviouslyOnScreen?Ce(void 0).pipe(Wf(h)):ev}),y(function(){}),Uf())};QH.\u0275fac=function(a){return new (a||QH)};QH.\u0275prov=Sc({token:QH,factory:QH.\u0275fac,providedIn:"root"});var RH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RH.messageId)};Y(RH,V);RH.prototype.getUrl=function(){return Oh(this,1)};RH.prototype.setUrl=function(a){return Rl(this,1,a)};RH.prototype.hasUrl=function(){return ml(this,1)};RH.messageId="b.ImageRedirectRequest";var SH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,SH.messageId)};Y(SH,V);SH.prototype.getUrl=function(){return Oh(this,1)};SH.prototype.setUrl=function(a){return Rl(this,1,a)};SH.prototype.hasUrl=function(){return ml(this,1)};SH.messageId="b.ImageRedirectResponse";var TH=function(){this.executor=n(yC)},Vvc=function(a,b){var c=new RH;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:SH}).pipe(y(function(d){return d.getUrl()}))};TH.\u0275fac=function(a){return new (a||TH)};TH.\u0275prov=Sc({token:TH,factory:TH.\u0275fac,providedIn:"root"});var oJa=RegExp("^https?:\\/\\/((?:screenshot.googleplex.com|screenshot.corp.google.com|3p-screenshot.corp.google.com|screen.corp.google.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),rJa=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)");var zJa={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"};var UH=function(){var a=this;this.imageRedirector=n(TH);this.src$=new tj("");this.showImage$=new tj(!1);this.error$=new tj(!1);this.srcTruncated$=this.src$.pipe(y(function(b){var c=b;c=c===void 0?"":c;var d=d===void 0?48:d;b=[].concat(p(c));if(b.length<=d)d=c;else{var e=Math.floor(d/2);c=b.slice(0,e-1).join("");d=b.slice(-(e-(d%2!==0?1:2))).join("");String.prototype.trimEnd!=null&&String.prototype.trimStart!=null&&(c=c.trimEnd(),d=d.trimStart());d=c+"..."+d}return d}));this.srcRedirected$=Je([this.src$,
this.showImage$]).pipe(Ve(function(b){b=l(b);b.next();return b.next().value}),fg(function(b){var c=l(b).next().value;return(b=tJa(c,!0))?Ce(b):Vvc(a.imageRedirector,c).pipe(Pf(function(){a.error$.next(!0);return c}))}))};UH.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
ea.Object.defineProperties(UH.prototype,{showByDefault:{configurable:!0,enumerable:!0,set:function(a){this.showImage$.next(a)}},src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a);this.error$.next(!1)},get:function(){return this.src$.value}}});UH.\u0275fac=function(a){return new (a||UH)};
UH.\u0275cmp=B({type:UH,selectors:[["b-secure-image-widget"]],inputs:{showByDefault:"showByDefault",src:"src",alt:"alt"},standalone:!1,decls:3,vars:3,consts:[["svgIcon","broken-image",1,"icon-l",3,"matTooltip"],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title"],["tabindex","0",1,"normal-link",3,"click","keydown.enter","href","title"],["svgIcon","image",1,"icon-s"]],template:function(a,b){a&1&&(E(0,FJa,3,3),S(1,"async"),Ag(2,GJa,2,4,"mat-icon",0));a&2&&F(T(1,1,b.error$)===!1?0:2)},dependencies:[aB,
YA,cB,OH,Qv],styles:["a[_ngcontent-%COMP%]{word-break:break-all;margin:0 2px}a[_ngcontent-%COMP%]:hover{text-decoration:underline}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;line-height:18px;margin-top:-3px;margin-right:1px}img[_ngcontent-%COMP%]{max-width:100%}/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});var VH=function(){};VH.prototype.onClick=function(a,b){Wvc(b)&&a.preventDefault()};var Wvc=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};VH.\u0275fac=function(a){return new (a||VH)};VH.\u0275dir=Kf({type:VH,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClick(c,c.target)})},standalone:!1});var Xvc={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},WH=function(){var a=this;this.activeSession=n(Es);this.userPreferencesManager=n(OG);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=Xvc;this.src$=new tj("");this.isMarkdownImage$=new tj(!1);this.displayMode$=Je([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?
!d&&c?"COLLAPSE":d?"SHOW":"HIDE":"HIDE"}),eg("HIDE"))};ea.Object.defineProperties(WH.prototype,{src:{configurable:!0,enumerable:!0,set:function(a){this.src$.next(a)},get:function(){return this.src$.value}},isMarkdownImage:{configurable:!0,enumerable:!0,set:function(a){this.isMarkdownImage$.next(a)},get:function(){return this.isMarkdownImage$.value}}});WH.\u0275fac=function(a){return new (a||WH)};
WH.\u0275cmp=B({type:WH,selectors:[["b-snipit-image"]],inputs:{src:"src",isMarkdownImage:"isMarkdownImage",alt:"alt"},standalone:!1,decls:2,vars:3,consts:[[3,"src","alt","showByDefault"],["target","_blank",3,"href","rel"],[1,"thumbnail",3,"src","alt","showByDefault"]],template:function(a,b){a&1&&(E(0,JJa,3,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.src$))?0:-1,c)}},dependencies:[UH,Qv],styles:["[_nghost-%COMP%]   b-secure-image-widget.thumbnail[_ngcontent-%COMP%]{display:inline-block;margin-top:8px;margin-bottom:8px;max-width:70%}[_nghost-%COMP%]     b-secure-image-widget.thumbnail img{border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;min-width:18px;min-height:18px;max-width:100%;max-height:350px}/*# sourceMappingURL=snipit_image.css.map */"],
changeDetection:0});p(Qvc);var XH=function(){};XH.\u0275fac=function(a){return new (a||XH)};XH.\u0275mod=Jf({type:XH});XH.\u0275inj=Tc({imports:[ZB,qH,$B,cC,bx,MH]});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var YH=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
YH.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof YH&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||(a=new Yvc(this),Zvc(this),ZH(this,!1,a))}};YH.prototype.continue_=function(a,b){this.blocked_=!1;ZH(this,a,b)};
var ZH=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;$vc(a)},Zvc=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new awc(a);a.silentlyCanceled_=!1}};YH.prototype.callback=function(a){Zvc(this);ZH(this,!0,a)};YH.prototype.addCallback=function(a,b){return bwc(this,a,null,b)};YH.prototype.finally=function(a){var b=this;return new Promise(function(c,d){bwc(b,function(e){a();c(e)},function(e){a();d(e)})})};
var bwc=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=Fz(b):(b=Fz(b),c=Fz(c)));a.sequence_.push([b,c,d]);e&&$vc(a);return a};YH.prototype.then=function(a,b,c){var d,e,f=new Kz(function(h,k){e=h;d=k});bwc(this,e,function(h){h instanceof Yvc?f.cancel():d(h);return cwc},this);return f.then(a,b,c)};YH.prototype.$goog_Thenable=!0;YH.prototype.isError=function(a){return a instanceof Error};
var dwc=function(a){return m8b(a.sequence_,function(b){return typeof b[1]==="function"})},cwc={},$vc=function(a){if(a.unhandledErrorId_&&a.fired_&&dwc(a)){var b=a.unhandledErrorId_,c=ewc[b];c&&(ya.clearTimeout(c.id_),delete ewc[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],h=e[1];e=e[2];if(f=a.hadError_?h:f)try{var k=f.call(e||a.defaultScope_,b);k===cwc&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(egc(b)||typeof ya.Promise==="function"&&b instanceof ya.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,dwc(a)||(c=!0)}}a.result_=b;d&&(k=mt(a.continue_,a,!0),d=mt(a.continue_,a,!1),b instanceof YH?(bwc(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new fwc(b),ewc[b.id_]=b,a.unhandledErrorId_=b.id_)},awc=function(){wa.call(this)};zu(awc,wa);awc.prototype.message="Deferred has already fired";awc.prototype.name="AlreadyCalledError";
var Yvc=function(){wa.call(this)};zu(Yvc,wa);Yvc.prototype.message="Deferred was canceled";Yvc.prototype.name="CanceledError";var fwc=function(a){this.id_=ya.setTimeout(mt(this.throwError,this),0);this.error_=a};fwc.prototype.throwError=function(){delete ewc[this.id_];throw this.error_;};var ewc={};var OJa=function(a,b){var c=b||{};b=c.document||document;var d=Vh(a).toString(),e=(new vz(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new YH(gwc,f),k=null,q=c.timeout!=null?c.timeout:5E3;q>0&&(k=window.setTimeout(function(){hwc(e,!0);var u=new iwc(1,"Timeout reached for loading script "+d);Zvc(h);ZH(h,!1,u)},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(hwc(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=
function(){hwc(e,!0,k);var u=new iwc(0,"Error while loading script "+d);Zvc(h);ZH(h,!1,u)};f=c.attributes||{};Vqa(f,{type:"text/javascript",charset:"UTF-8"});Cfc(e,f);gi(e,a);jwc(b).appendChild(e);return h},jwc=function(a){var b=xz("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},gwc=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&hwc(a,!0,this.timeout_)}},hwc=function(a,b,c){c!=null&&ya.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=
function(){};b&&window.setTimeout(function(){Cz(a)},0)},iwc=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);wa.call(this,c);this.code=a};zu(iwc,wa);var KJa=null,QJa=new WeakMap;var $H=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;var e=this;this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c;this.gapiAuthParams=d;this.gapi=Oe(function(){return MJa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return SJa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Y($H,hvc);
$H.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(Le(function(c){var d=Ce(void 0);b.gapiAuthParams.minAuthTokenTimeRemaining!==void 0&&(d=se(RJa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(Le(function(){b.setGapiConfig(c);return b.parseResponse(c.client.request({path:b.gapiUrl+a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers}))}))}))};
$H.prototype.parseResponse=function(a){return new pe(function(b){a.then(function(c){c.result===!1&&c.body!=null?b.next({data:c.body}):b.next(c.result);b.complete()},function(c){b.error(c.result)})})};$H.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&PJa(a,b,this.gapiConfigUpdates[b])};var kwc=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;$H.call(this,a,c,d,e);this.waldoApiKey=b};Y(kwc,$H);kwc.prototype.makeRequest=function(a){var b=$H.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var lwc=function(a){this.proxiedService=a};Y(lwc,hvc);lwc.prototype.makeRequest=function(a){var b=this;return Oe(function(){return b.proxiedService.makeRequest(a)})};var mwc=new yd("environment"),nwc={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},aI=function(){};aI.\u0275fac=function(a){return new (a||aI)};aI.\u0275mod=Jf({type:aI});aI.\u0275inj=Tc({imports:[Yv,DH]});var bI=function(){};bI.\u0275fac=function(a){return new (a||bI)};bI.\u0275mod=Jf({type:bI});bI.\u0275inj=Tc({imports:[aI,ZB,XH]});var owc=function(a){this.allowExecution=a;this.queue=[]};owc.prototype.addTask=function(a){this.queue.push(a);pwc(this)};var pwc=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=l(a.queue),c=b.next().value;a.queue=yBa(b);c();pwc(a)}else setTimeout(function(){pwc(a)},0)};var cI=function(){var a=this;this.location=n(dw);this.platformLocation=n(Zv);this.activatedRoute=n(sj);this.router=n(DA);this.scheduler=new owc(function(){return!a.router.navigationTransitions.currentNavigation})};cI.prototype.hash=function(a,b){typeof a!=="undefined"&&qwc(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var qwc=function(a,b,c){b=b===void 0?"":b;c=c===void 0?!1:c;a.addTask(function(){a.router.navigate([],{fragment:b,replaceUrl:c})})};
cI.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var rwc=function(a,b){a.path(b,!0)};g=cI.prototype;g.getPath=function(){var a=l(this.location.path().split("?")).next().value;return l(a.split("#")).next().value};g.setPath=function(a,b){var c=this;a=a===void 0?"":a;b=b===void 0?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};
g.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};g.getSearch=function(){return TJa(this.activatedRoute.snapshot.queryParamMap)};g.setSearch=function(a,b,c){var d=this;c=c===void 0?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};g.replaceUrl=function(a){return this.setUrl(a,!0)};
g.setUrl=function(a,b){var c=this;b=b===void 0?!1:b;return new Promise(function(d,e){c.addTask(function(){Nr(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};g.getUrl=function(){return this.location.path(!0)};g.addTask=function(a){this.scheduler.addTask(a)};cI.\u0275fac=function(a){return new (a||cI)};cI.\u0275prov=Sc({token:cI,factory:cI.\u0275fac,providedIn:"root"});var dI=function(){this.activeSession=n(Es);this.createIframe=agc(function(){var a=document.createElement("iframe");a.id="first_party_auth_helper";a.setAttribute("aria-hidden","true");a.setAttribute("style","width:1px;height:1px;position:absolute;top:-100px;display:none;");document.body.appendChild(a);return a})},swc=function(a){var b,c;w(function(d){if(d.nextAddress==1){if(a.activeSession.isAnonymous()||!a.activeSession.getPassiveLoginIframeUrl())return d.return();te(d,2);b=a.createIframe();return x(d,
new Promise(function(e,f){var h=function(){try{var q,u,A;if((q=b.contentWindow)==null?0:(u=q.location)==null?0:(A=u.href)==null?0:A.includes("/action/yes"))b.removeEventListener("load",h),clearTimeout(k),e()}catch(G){}},k=setTimeout(function(){b.removeEventListener("load",h);f(Error("yd"))},5E3);b.addEventListener("load",h);pna(b,a.activeSession.getPassiveLoginIframeUrl())}),4)}if(d.nextAddress!=2)return uu(d,0);c=xe(d);console.log("first party auth passive login "+c);ze(d)})};
dI.\u0275fac=function(a){return new (a||dI)};dI.\u0275prov=Sc({token:dI,factory:dI.\u0275fac,providedIn:"root"});var eI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eI,V);eI.prototype.getSocialApplication=function(){return pl(this,3)};eI.prototype.getSocialApplicationOrUndefined=function(){return du(this,3)};eI.prototype.getAffinityType=function(){return Oh(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};eI.prototype.setAffinityType=function(a){return Rl(this,12,a)};var fI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fI,V);fI.prototype.getExperimentIdsList=function(a){return Hc(this,4,Sb,Fk(a))};fI.prototype.setExperimentIdsList=function(a){return Mc(this,4,a,Rb)};fI.prototype.getExperimentIds=function(){return Ju(this,4)};fI.prototype.setExperimentIds=function(a){Pc(this,4,Rb,void 0,a,Sb,1)};var twc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(twc,V);g=twc.prototype;g.getClientInfo=function(){return X(this,eI,1)};g.getMutableClientInfo=function(){return Du(this,eI,1)};g.setClientInfo=function(a){W(this,eI,1,a)};g.getExperiments=function(){return X(this,fI,2)};g.setExperiments=function(a){return W(this,fI,2,a)};g.hasExperiments=function(){return nk(this,fI,2)};var uwc=bna(twc);var vwc;var wwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wwc,V);g=wwc.prototype;g.getDelegatorId=function(){return Oh(this,2)};g.getEnvType=function(){return pl(this,5)};g.getEnvType_legacyNullable=function(){return Vt(this,5)};g.setEnvType=function(a){Sl(this,5,a)};g.getCacheSize=function(){return Ik(this,7)};g.setCacheSize=function(a){Pl(this,7,a)};g.hasCacheSize=function(){return ll(this,7)};var XJa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,VJa=/([#].*?&|[#])authuser=([^&#]*)\b/,WJa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var gI=function(){this.config_=pc(vwc||(vwc=uwc('[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"BUGANIZER","BUGANIZER",null,null,null,null,true,true],[]]')));this.userInfo_=new wwc;this.onAuthError_=this.gapiClientThenable_=null};gI.prototype.getClientInfo=function(){return this.config_.getClientInfo()};gI.prototype.getExperiments=function(){return this.config_.getExperiments()};gI.prototype.getUserInfo=function(){return this.userInfo_};
var xwc=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=cKa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_};gI.prototype.getAuthErrorHandler=function(){return this.onAuthError_};gI.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};var ywc=function(){};var zwc=[];zwc.push=function(){throw Error("Ad");};var hI={cancel:function(){},isPending:function(){return!1}};var Awc=function(a){this.response_=a||function(){};this.timer_=Yq(this.onTimer_,0,this);this.addressBookId_=""};g=Awc.prototype;g.setResponse=function(a){this.response_=a};g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){Zq(this.timer_);this.timer_=null};g.isPending=function(){return!!this.timer_};g.onTimer_=function(){this.timer_=null;this.response_()};g.setQuery=function(a){this.query_=a};g.getQuery=function(){return this.query_};var Bwc=new Map([["personal",2],["domain",4],["pcab",3]]);var Dp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dp,V);g=Dp.prototype;g.getEventType=function(){return pl(this,1)};g.setEventType=function(a){return Sl(this,1,a)};g.getApiType=function(){return pl(this,2)};g.setApiType=function(a){return Sl(this,2,a)};g.getCacheStatus=function(){return pl(this,3)};g.setCacheStatus=function(a){return Sl(this,3,a)};g.getAddressBook=function(){return pl(this,4)};g.setAddressBook=function(a){return Sl(this,4,a)};
g.getRpcType=function(){return pl(this,5)};g.setRpcType=function(a){return Sl(this,5,a)};g.getLookupType=function(){return pl(this,6)};g.setLookupType=function(a){return Sl(this,6,a)};g.getToken=function(){return Oh(this,7)};g.setToken=function(a){return Rl(this,7,a)};var iI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iI,V);g=iI.prototype;g.setDevice=function(a){return Sl(this,1,a)};g.getApplication=function(){return pl(this,2)};g.setApplication=function(a){return Sl(this,2,a)};g.getApplicationOrUndefined=function(){return du(this,2)};g.setPlatform=function(a){Sl(this,3,a)};var jI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jI,V);g=jI.prototype;g.setEventSource=function(a){Sl(this,2,a)};g.getEventSourceOrUndefined=function(){return du(this,2)};g.setEventSourceId=function(a){Pl(this,15,a)};g.getEventSourceIdOrUndefined=function(){return Lu(this,15)};g.getSocialClient=function(){return X(this,iI,3)};g.setSocialClient=function(a){return W(this,iI,3,a)};g.setVersionName=function(a){return Rl(this,5,a)};
g.getBaselineCl=function(){return cc(rl(this,7))};g.setBaselineCl=function(a){return Hl(this,7,a)};g.hasBaselineCl=function(){return yl(this,7)};g.getBaselineClOrUndefined=function(){return Mu(this,7)};g.setClientAgent=function(a){return Sl(this,9,a)};g.getClientAgentOrUndefined=function(){return du(this,9)};g.getPeoplekitEntryPoint=function(){return Vt(this,11)};g.setPeoplekitEntryPoint=function(a){return Sl(this,11,a)};g.getPeoplekitEntryPointOrUndefined=function(){return du(this,11)};
g.setEnvironment=function(a){return Sl(this,13,a)};g.getEnvironmentOrUndefined=function(){return du(this,13)};g.setSharekitEntryPoint=function(a){Sl(this,14,a)};g.getSharekitEntryPointOrUndefined=function(){return du(this,14)};var Cwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cwc,V);g=Cwc.prototype;g.getApiType=function(){return pl(this,1)};g.setApiType=function(a){return Sl(this,1,a)};g.getItemCount=function(){return Ik(this,2)};g.setItemCount=function(a){return Pl(this,2,a)};g.hasItemCount=function(){return ll(this,2)};var Dwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dwc,V);g=Dwc.prototype;g.getApiType=function(){return pl(this,1)};g.setApiType=function(a){return Sl(this,1,a)};g.getItemCount=function(){return Ik(this,2)};g.setItemCount=function(a){return Pl(this,2,a)};g.hasItemCount=function(){return ll(this,2)};g.getStatus=function(){return pl(this,4,2)};g.setStatus=function(a){return Sl(this,4,a)};g.hasStatus=function(){return nl(this,4)};
g.setTotalUsec=function(a){return Hl(this,5,a)};g.setBlockedUsec=function(a){return Hl(this,6,a)};g.setNetworkUsec=function(a){Hl(this,7,a)};g.getCacheStatus=function(){return pl(this,8)};g.setCacheStatus=function(a){return Sl(this,8,a)};g.getAddressBook=function(){return pl(this,9)};g.setAddressBook=function(a){return Sl(this,9,a)};var kI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kI,V);kI.prototype.getStatus=function(){return pl(this,1,2)};kI.prototype.setStatus=function(a){return Sl(this,1,a)};kI.prototype.hasStatus=function(){return nl(this,1)};kI.prototype.setTotalUsec=function(a){return Hl(this,2,a)};var lI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lI,V);lI.prototype.getRpcType=function(){return pl(this,1)};lI.prototype.setRpcType=function(a){return Sl(this,1,a)};lI.prototype.getLookupType=function(){return pl(this,2)};lI.prototype.setLookupType=function(a){return Sl(this,2,a)};var Ewc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ewc,V);g=Ewc.prototype;g.getRpcType=function(){return pl(this,1)};g.setRpcType=function(a){return Sl(this,1,a)};g.getLookupType=function(){return pl(this,2)};g.setLookupType=function(a){return Sl(this,2,a)};g.getStatus=function(){return pl(this,3,2)};g.setStatus=function(a){return Sl(this,3,a)};g.hasStatus=function(){return nl(this,3)};g.setTotalUsec=function(a){return Hl(this,4,a)};
g.setBlockedUsec=function(a){return Hl(this,5,a)};g.setNetworkUsec=function(a){Hl(this,6,a)};var mI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mI,V);g=mI.prototype;g.getEnvType=function(){return pl(this,1)};g.getEnvType_legacyNullable=function(){return Vt(this,1)};g.setEnvType=function(a){Sl(this,1,a)};g.getCacheSize=function(){return Ik(this,2)};g.setCacheSize=function(a){Pl(this,2,a)};g.hasCacheSize=function(){return ll(this,2)};var nI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nI,V);g=nI.prototype;g.getClientInterface=function(){return X(this,jI,1)};g.setClientInterface=function(a){return W(this,jI,1,a)};g.getSource=function(){return pl(this,2)};g.setSource=function(a){return Sl(this,2,a)};g.hasSource=function(){return nl(this,2)};g.getSourceOrUndefined=function(){return du(this,2)};g.getEventType=function(){return pl(this,3)};g.getEventType_legacyNullable=function(){return Vt(this,3)};
g.setEventType=function(a){return Sl(this,3,a)};g.setRpcRequest=function(a){return Vm(this,5,Fwc,a)};g.setRpcResponse=function(a){return Vm(this,6,Fwc,a)};g.setApiCall=function(a){return Vm(this,7,Fwc,a)};g.setApiResult=function(a){return Vm(this,8,Fwc,a)};g.getUserInfo=function(){return X(this,mI,9)};g.setUserInfo=function(a){return W(this,mI,9,a)};g.hasUserInfo=function(){return nk(this,mI,9)};var Fwc=[4,5,6,7,8];var Gwc=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]),Hwc=new Map([[0,0],[1,11],[2,1],[3,3],[4,10],[5,8],[6,7],[7,2],[16,2],[8,6],[9,7],[10,11],[11,9],[12,5],[13,9],[14,4],[15,6]]),Iwc=new Map([[0,0],[11,1],[1,2],[3,3],[10,4],[8,5],[2,16],[6,8],[7,9],[5,12],[9,13],[4,14]]),Jwc=function(a){return Hwc.has(a)?Hwc.get(a):1},Kwc=function(a){return Iwc.has(a)?Iwc.get(a):2};var Lwc=function(a){this.request_=a;this.errorCode_=0},Mwc=function(a,b){b=new Lwc(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=Lwc.prototype;g.hasChanges=function(){return this.mutateResponse_&&this.mutateResponse_.getOperation()?this.mutateResponse_.getOperation().hasChanges():!1};g.getError=function(){return this.errorCode_};g.getErrorCode=function(){return this.errorCode_};g.getQuery=function(){return this.request_.getQuery()};g.getConfiguration=function(){return this.queryResponse_.getConfiguration()};
g.getUserData=function(){return this.queryResponse_?this.queryResponse_.getUserData():null};var oI=function(a){this.map_=new tD;this.size=0;a&&this.addAll(a)},Nwc=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+db(a):b.charAt(0)+a};g=oI.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(Nwc(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=tH(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};g.removeAll=function(a){a=tH(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};
g.delete=function(a){a=this.map_.remove(Nwc(a));this.setSizeInternal_(this.map_.size);return a};g.remove=function(a){return this.delete(a)};g.clear=function(){this.map_.clear();this.setSizeInternal_(0)};g.isEmpty=function(){return this.map_.size===0};g.has=function(a){return this.map_.containsKey(Nwc(a))};g.contains=function(a){return this.map_.containsKey(Nwc(a))};g.intersection=function(a){var b=new oI;a=tH(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};
g.getValues=function(){return this.map_.getValues()};g.values=function(){return this.map_.values()};g.clone=function(){return new oI(this)};g.equals=function(a){return this.getCount()==Fuc(a)&&Owc(this,a)};
var Owc=function(a,b){var c=Fuc(b);if(a.getCount()>c)return!1;!(b instanceof oI)&&c>5&&(b=new oI(b));return Iuc(a,function(d){var e=b;if(e.contains&&typeof e.contains=="function")d=e.contains(d);else if(e.containsValue&&typeof e.containsValue=="function")d=e.containsValue(d);else if(bb(e)||typeof e==="string")d=Wa(e,d)>=0;else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};oI.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};oI.prototype[Symbol.iterator]=function(){return this.values()};
oI.prototype.setSizeInternal_=function(a){this.size=a};var pI=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new oI(c);this.extraFields_=[]};pI.prototype.toString=function(){var a=this.name_?"g"+this.name_:this.fields_.join(",");this.name_&&this.extraFields_.length&&(a+=","+this.extraFields_.join(","));return a};var Pwc=function(a){a.fieldSet_||(a.fieldSet_=new oI(a.fields_));return a.fieldSet_};
pI.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new oI);if(this.doesntContain_.has(a))return!1;var b=Pwc(this),c=Pwc(a);if(Iuc(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var Qwc=new pI(["6","12"],"1"),Rwc=new pI("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[Qwc]);new pI("6 12 16 17 18 1a".split(" "),"3",[Qwc]);
new pI("2 4 2a 5 6 9 b 1c d e f 11 12 29 13 14 15 1d 22 16 17 19 28 1e 1b".split(" "),"2",[Qwc,Rwc]);new pI([]);var Swc=function(a){try{return ya.JSON.parse(a)}catch(b){}a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Bd`"+a);},Twc=function(){this.replacer_=void 0};
Twc.prototype.serialize=function(a){var b=[];Uwc(this,a,b);return b.join("")};
var Uwc=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],Uwc(a,a.replacer_?a.replacer_.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],typeof e!="function"&&(c.push(f),Vwc(d,c),c.push(":"),Uwc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Vwc(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Cd`"+typeof b);}}},Wwc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Xwc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Vwc=function(a,b){b.push('"',a.replace(Xwc,
function(c){var d=Wwc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Wwc[c]=d);return d}),'"')};var Ywc={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};var Zwc=function(a,b,c){aF.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};Y(Zwc,aF);g=Zwc.prototype;g.getGroup=function(){return this.group};g.setGroup=function(a){this.group=a};g.isSuccess=function(){return this.getState().isSuccess()};g.setSuccess=function(a){this.getState().setSuccess(a)};g.getMaxNumRetries=function(){this.getState().getMaxNumRetries()};g.setMaxNumRetries=function(a){this.getState().setMaxNumRetries(a)};g.reset=function(){this.getState().reset()};
g.getNumTriesLeft=function(){return this.getState().getNumTriesLeft()};g.setRunState=function(a){this.getState().setRunState(a)};g.setRunTime=function(a){this.getState().setRunTime(a)};g.setRunTimerId=function(a){this.getState().setRunTimerId(a)};g.incNumSuccesses=function(){this.getState().incNumSuccesses()};g.incNumFailures=function(){this.getState().incNumFailures()};g.incNumExecutions=function(){this.getState().incNumExecutions()};g.decNumTriesLeft=function(){this.getState().decNumTriesLeft()};
g.isPending=function(){return this.getState().isPending()};g.cancel=function(){this.scheduler.cancel(this.getState())};g.getState=function(){return this.scheduler.getState(this.group)};g.run=function(){this.incNumExecutions();this.runFunction_(this)};g.isDone=function(a){return this.scheduler.isDone(this,a)};var $wc=function(a){aF.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};Y($wc,aF);g=$wc.prototype;g.reset=function(){this.numTriesLeft=this.maxNumRetries_;this.success=!1;this.runState=1;this.runTimerId=this.runTime=-1};g.isSuccess=function(){return this.success};g.setSuccess=function(a){this.success=a};g.getMaxNumRetries=function(){return this.maxNumRetries_};g.setRunState=function(a){this.runState=a};g.setRunTime=function(a){this.runTime=a};
g.setRunTimerId=function(a){this.runTimerId=a};g.setMaxNumRetries=function(a){this.maxNumRetries_=a};g.getNumTriesLeft=function(){return this.numTriesLeft};g.decNumTriesLeft=function(){--this.numTriesLeft};g.incNumSuccesses=function(){};g.incNumFailures=function(){};g.incNumExecutions=function(){};g.isPending=function(){return!(this.runState==4||this.runState==5)};g.disposeInternal=function(){aF.prototype.disposeInternal.call(this);this.scheduler=null};var axc=function(){aF.call(this);this.states={};this.currentGroup=1};Y(axc,aF);axc.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new $wc(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();bxc(a,b,e);break;case 6:bxc(a,b,e);break;case 4:d&&(f.reset(),bxc(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),bxc(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var bxc=function(a,b,c){b==0?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(Yq(a.run,b,a)))};g=axc.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){aF.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);To(b)}this.states={}};g.cancel=function(a){a.runState==2&&Zq(a.runTimerId)};
g.isDone=function(a,b){b?a.incNumSuccesses():a.incNumFailures();a.setSuccess(b);a.decNumTriesLeft();if(!b&&a.getNumTriesLeft()>0)return a.setRunState(6),this.schedule(a,Math.max(100,Math.round(Math.random()*45E3))),!1;a.setRunState(b?4:5);return!0};var cxc={SOMETHING_CHANGED:"a",ERROR:"b"},dxc=function(a,b){oF.call(this,a&&a[0].getError()?"b":"a");this.responses_=a;this.source_=b||"d"};Y(dxc,oF);dxc.prototype.getChanges=function(){if(!this.changes_){if(!this.responses_)return null;var a=[];Va(this.responses_,function(b){b=b.getOperation().getChanges();a&&b?a=a.concat(b):a=null});this.changes_=a}return this.changes_};dxc.prototype.getSource=function(){return this.source_};var qI=function(a){this.serviceId_=a};qI.prototype.toString=function(){return this.serviceId_};var exc={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var hxc=function(a){a=fxc(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,h=0,k=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};f>=12;f-=12,h+=12)b+=gxc(a,h),c+=gxc(a,h+4),d+=gxc(a,h+8),k();d+=e;switch(f){case 11:d+=a[h+10]<<24;case 10:d+=a[h+9]<<16;case 9:d+=a[h+8]<<8;case 8:c+=a[h+7]<<24;case 7:c+=a[h+6]<<16;case 6:c+=a[h+5]<<8;case 5:c+=a[h+4];
case 4:b+=a[h+3]<<24;case 3:b+=a[h+2]<<16;case 2:b+=a[h+1]<<8;case 1:b+=a[h]}k();return exc.toString(d)},ixc=function(a){return a},fxc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},gxc=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};new qI("z72MOc");new qI("IW8Usd");new qI("jbDgG");new qI("hdXIif");new qI("DFElXb");new qI("ZtVrH");new qI("rJmJrc");new qI("fJuxOc");new qI("JccZRe");new qI("vk3Wc");new qI("IykvEf");new qI("NGntwf");new qI("FENZqe");new qI("ofuapc");new qI("BWETze");new qI("ZmXAm");new qI("n73qwf");new qI("gSshPb");new qI("zZa4xc");new qI("WwG67d");new qI("pVbxBc");new qI("yu4DA");new qI("Bgf0ib");new qI("MpJwZc");new qI("UUJqVe");new qI("ABma3e");new qI("GHAeAc");new qI("Wt6vjf");new qI("AzG0ke");new qI("WSziFf");new qI("byfTOb");new qI("d0RAGb");new qI("TuDsZ");new qI("o1bZcd");new qI("b8xKu");new qI("LEikZe");new qI("lsjVmc");new qI("klpyYe");new qI("OPbIxb");new qI("pg9hFd");new qI("IaqD3e");new qI("Xpw1of");new qI("v5BQle");new qI("tdUkaf");new qI("UBSgGf");new qI("amY3Td");new qI("tLnxq");var jxc=function(){aF.call(this);this.eventTarget_=new Hp;this.updateCacheEventTarget_=new Hp;this.mutationIdMap_=new vD};Y(jxc,aF);jxc.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};jxc.prototype.getEventTarget=function(){return this.eventTarget_};
jxc.prototype.disposeInternal=function(){aF.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};var Is=function(a){aF.call(this);this.handler_=a;this.keys_={}};zu(Is,aF);var kxc=[];Is.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(kxc[0]=b.toString()),b=kxc);for(var e=0;e<b.length;e++){var f=Ip(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};Is.prototype.listenOnce=function(a,b,c,d){return lxc(this,a,b,c,d)};
var lxc=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)lxc(a,b,c[h],d,e,f);else{b=qF(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
Is.prototype.unlisten=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else c=c||this.handleEvent,d=cb(d)?!!d.capture:!!d,e=e||this.handler_||this,c=Hqc(c),d=!!d,b=pF(a)?a.getListener(b,c,d,e):a?(a=Jqc(a))?a.getListener(b,c,d,e):null:null,b&&(sF(b),delete this.keys_[b.key]);return this};Is.prototype.removeAll=function(){Si(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&sF(a)},this);this.keys_={}};
Is.prototype.disposeInternal=function(){Is.superClass_.disposeInternal.call(this);this.removeAll()};Is.prototype.handleEvent=function(){throw Error("Ed");};var hu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hu,V);var gu=function(a,b){return Rl(a,1,b)};g=hu.prototype;g.getLogSource=function(){return pl(this,2,-1)};g.setLogSource=function(a){return Sl(this,2,a)};g.getApplication=function(){return pl(this,3)};g.setApplication=function(a){return Sl(this,3,a)};g.getApplicationOrUndefined=function(){return du(this,3)};g.getVersion=function(){return Oh(this,4)};g.setVersion=function(a){return Rl(this,4,a)};
g.getVersionOrUndefined=function(){return fr(this,4)};g.getBaselineCl=function(){return Ik(this,5)};g.setBaselineCl=function(a){return Pl(this,5,a)};g.hasBaselineCl=function(){return ll(this,5)};g.getBaselineClOrUndefined=function(){return Lu(this,5)};g.getEnableClearcut=function(){return kl(this,6)};g.setEnableClearcut=function(a){return Ol(this,6,a)};var F6b=function(a,b){return Mc(a,7,b,Rb)};g=hu.prototype;g.setClientAgent=function(a){return Sl(this,8,a)};
g.getClientAgentOrUndefined=function(){return du(this,8)};g.setEventSource=function(a){Sl(this,9,a)};g.getEventSourceOrUndefined=function(){return du(this,9)};g.setEventSourceId=function(a){Pl(this,14,a)};g.getEventSourceIdOrUndefined=function(){return Lu(this,14)};g.getClearcutUrl=function(){return Oh(this,10)};g.setClearcutUrl=function(a){Rl(this,10,a)};g.setEnvironment=function(a){return Sl(this,11,a)};g.getEnvironmentOrUndefined=function(){return du(this,11)};
g.getPeoplekitEntryPoint=function(){return pl(this,12)};g.setPeoplekitEntryPoint=function(a){return Sl(this,12,a)};g.getPeoplekitEntryPointOrUndefined=function(){return du(this,12)};g.setSharekitEntryPoint=function(a){Sl(this,13,a)};g.getSharekitEntryPointOrUndefined=function(){return du(this,13)};var mxc,nxc=(mxc=window)==null?void 0:mxc.performance,oxc,pxc=nxc==null?void 0:(oxc=nxc.timing)==null?void 0:oxc.navigationStart,qxc=pxc&&nxc?function(){var a;return pxc+((a=nxc==null?void 0:nxc.now())!=null?a:0)}:function(){return Date.now()};var rxc=function(a){this.start_=a;this.end_=NaN};rxc.prototype.duration=function(){return this.end_-this.start_};rxc.prototype.stop=function(a){this.end_=a;return this.duration()};var rI=function(a){var b=b===void 0?qxc:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};rI.prototype.source=function(){return this.source_};var sxc=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
rI.prototype.duration=function(a){a=sxc(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var sI=function(a,b){return gKa(a.duration(b===void 0?"":b))};rI.prototype.toString=function(a,b){b=b===void 0?1:b;return this.duration(a===void 0?"":a).toFixed(b)};rI.prototype.start=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=sxc(this,a);this.durations_.set(a,new rxc(b));return this};
rI.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=sxc(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};rI.prototype.clear=function(){this.durations_.clear();return this};var txc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(txc,V);var y6b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(y6b,V);g=y6b.prototype;g.getQueryId=function(){return cc(rl(this,1))};g.setQueryId=function(a){return Hl(this,1,a)};g.setSelectionId=function(a){return Hl(this,2,a)};g.getInstanceId=function(){return am(this,4)};g.setInstanceId=function(a){return Rl(this,4,a)};g.clearInstanceId=function(){tq(this,4)};g.hasInstanceId=function(){return ml(this,4)};g.getInstanceIdOrUndefined=function(){return fr(this,4)};
g.getAffinityVersion=function(){return Hu(this,5)};g.setAffinityVersion=function(a){Pl(this,5,a)};g.getAffinityVersionOrUndefined=function(){return Lu(this,5)};var uxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uxc,V);g=uxc.prototype;g.getQueryLength=function(){return Hu(this,1)};g.setQueryLength=function(a){return Pl(this,1,a)};g.hasQueryLength=function(){return ll(this,1)};g.getQuery=function(){return am(this,2)};g.setQuery=function(a){return Rl(this,2,a)};g.clearQuery=function(){tq(this,2)};g.hasQuery=function(){return ml(this,2)};var vxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vxc,V);vxc.prototype.setLatencyUsec=function(a){Pl(this,1,a)};var tI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tI,V);g=tI.prototype;g.getColumn=function(){return Hu(this,2)};g.setColumn=function(a){return Pl(this,2,a)};g.getType=function(){return Vt(this,3)};g.setType=function(a){return Sl(this,3,a)};g.hasType=function(){return nl(this,3)};var uI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uI,V);uI.prototype.getExistingSelectionsCount=function(){return Hu(this,1)};uI.prototype.setExistingSelectionsCount=function(a){Pl(this,1,a)};uI.prototype.getPosition=function(){return X(this,tI,2)};uI.prototype.setPosition=function(a){return W(this,tI,2,a)};var vI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vI,V);g=vI.prototype;g.getType=function(){return Vt(this,5)};g.setType=function(a){return Sl(this,5,a)};g.hasType=function(){return nl(this,5)};g.getEmail=function(){return am(this,1)};g.getEmail_legacyNullable=function(){return am(this,1)};g.setEmail=function(a){return Rl(this,1,a)};g.hasEmail=function(){return ml(this,1)};g.getPhone=function(){return am(this,2)};
g.getPhone_legacyNullable=function(){return am(this,2)};g.setPhone=function(a){return Rl(this,2,a)};g.hasPhone=function(){return ml(this,2)};g.getObfuscatedGaiaId=function(){return am(this,3)};g.getObfuscatedGaiaId_legacyNullable=function(){return am(this,3)};g.setObfuscatedGaiaId=function(a){return Rl(this,3,a)};g.getContactId=function(){return cc(rl(this,4))};g.setContactId=function(a){return Hl(this,4,a)};g.getGroupId=function(){return am(this,6)};g.setGroupId=function(a){Rl(this,6,a)};
g.hasGroupId=function(){return ml(this,6)};var wI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wI,V);wI.prototype.getName=function(){return am(this,1)};wI.prototype.setName=function(a){return Rl(this,1,a)};wI.prototype.hasName=function(){return ml(this,1)};wI.prototype.getNameOrUndefined=function(){return fr(this,1)};var xI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xI,V);g=xI.prototype;g.getPosition=function(){return X(this,tI,1)};g.setPosition=function(a){return W(this,tI,1,a)};g.getProvenance=function(){return v9b(this,3)};g.setProvenance=function(a){return Pc(this,3,Ob,void 0,a,Qb,1)};g.getIsBoosted=function(){return Nt(this,6)};g.setIsBoosted=function(a){Ol(this,6,a)};g.getIsPlaceholder=function(){return Nt(this,7)};g.setIsPlaceholder=function(a){Ol(this,7,a)};
g.getIsSelf=function(){return Nt(this,11)};g.getQueryId=function(){return cc(rl(this,15))};g.setQueryId=function(a){return Hl(this,15,a)};g.setSelectionId=function(a){return Hl(this,16,a)};var wxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wxc,V);g=wxc.prototype;g.getLoggingId=function(){return am(this,1)};g.setLoggingId=function(a){Rl(this,1,a)};g.getMetadata=function(){return X(this,xI,3)};g.getMutableMetadata=function(){return Du(this,xI,3)};g.setMetadata=function(a){W(this,xI,3,a)};var yI=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yI,V);yI.prototype.getAffinityVersion=function(){return Hu(this,2)};yI.prototype.setAffinityVersion=function(a){Pl(this,2,a)};yI.prototype.getAffinityVersionOrUndefined=function(){return Lu(this,2)};var xxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xxc,V);g=xxc.prototype;g.getEventType=function(){return Vt(this,1)};g.getEventType_legacyNullable=function(){return Vt(this,1)};g.setEventType=function(a){return Sl(this,1,a)};g.getMetadata=function(){return X(this,yI,4)};g.getMutableMetadata=function(){return Du(this,yI,4)};g.setMetadata=function(a){W(this,yI,4,a)};g.getClientInterface=function(){return X(this,jI,5)};
g.setClientInterface=function(a){return W(this,jI,5,a)};var yxc=new Map([[1,4],[2,2],[3,1],[4,7]]),zxc=function(a,b){b=b===void 0?0:b;this.clientConfig_=a;this.transportType_=b;switch(b){case 1:b="ppl.store.peopleapi";var c=kl(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=kl(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=yxc.get(a.getUserInfo().getEnvType_legacyNullable())||0;b=gu(new hu,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplicationOrUndefined()).setEnvironment(d).setVersion("1013").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c);
a=a.getExperiments().getExperimentIdsList();a=Pc(b,7,Rb,a,void 0,Sb,void 0,!0);this.logContext_=Pc(a,7,Rb,20090307,void 0,Sb)};g=zxc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=Axc(this);switch(b.getEventType()){case 2:case 3:return(new nI).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new lI).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new nI).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new Cwc).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=Axc(this);switch(d.getEventType()){case 1:d=(new nI).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new kI).setStatus(c);if(c==0||c==4)c=e.setTotalUsec(sI(b,"total")),b=sI(b,"blocked"),b=Hl(c,3,b),Sl(b,5,a);return Vm(d,4,Fwc,e);case 2:case 3:return a=(new nI).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new Ewc).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
c!=0&&c!=4||d.setTotalUsec(sI(b,"total")).setBlockedUsec(sI(b,"blocked")).setNetworkUsec(sI(b,"network")),e.call(a,d);case 4:case 5:a=(new nI).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new Dwc;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);c!==0&&c!==4||f.setTotalUsec(sI(b,"total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};
var Axc=function(a){a=a.clientConfig_.getUserInfo();var b=new mI;var c=!!a.getDelegatorId();b=Ol(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(pl(a,6)||0);return b};var At=function(a,b){this.name_=b||"";this.address=a||""},Bxc=/"/g,Cxc=/\\"/g,Dxc=/\\/g,Exc=/\\\\/g,Fxc=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),Gxc=new RegExp("["+Nqa({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");At.prototype.getName=function(){return this.name_};At.prototype.getAddress=function(){return this.address};At.prototype.setName=function(a){this.name_=a};At.prototype.toString=function(){return Hxc(this,'()<>@:\\".[],;')};
var Hxc=function(a,b){var c=a.getName();c=c.replace(Bxc,"");a:{for(var d=c,e=0;e<b.length;e++)if(Da(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(Dxc,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};At.prototype.isValid=function(){return Fxc.test(this.address)};
var ut=function(a){var b=Ixc;a=a.replace(Gxc,"");for(var c="",d="",e=0;e<a.length;){var f=a;var h=e,k=f.charAt(h),q='"<(['.indexOf(k);if(q==-1||Jxc(f,h))f=k;else{q='">)]'.charAt(q);for(var u=f.indexOf(q,h+1);u>=0&&Jxc(f,u);)u=f.indexOf(q,u+1);f=u>=0?f.substring(h,u+1):k}f.charAt(0)=="<"&&f.indexOf(">")!=-1?(d=f.indexOf(">"),d=f.substring(1,d)):d==""&&(c+=f);e+=f.length}d==""&&c.indexOf("@")!=-1&&(d=c,c="");c=pbc(c);c=qbc(c,"'");c=qbc(c,'"');c=c.replace(Cxc,'"');c=c.replace(Exc,"\\");d=pbc(d);return new b(d,
c)},Jxc=function(a,b){if(a.charAt(b)!='"')return!1;var c=0;for(--b;b>=0&&a.charAt(b)=="\\";b--)c++;return c%2!=0};var Ixc=function(a,b){At.call(this,a,b)};zu(Ixc,At);var Kxc=RegExp("^((?!\\s)[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~\u0080-\uffffFF-])+@((?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]+[\\.\\uFF0E\\u3002\\uFF61])+(?!\\s)[a-zA-Z0-9\u0080-\u3001\u3003-\uff0d\uff0f-\uff60\uff62-\uffffFF-]{2,63}$");Ixc.prototype.isValid=function(){return Lxc(this.address)};var Lxc=function(a){return a==null?!1:Kxc.test(a)};Ixc.prototype.toString=function(){return Hxc(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var Mxc=/[^a-z0-9]+/ig,Nxc=[9,11,10,12,13,14,19],Oxc=[9,19,11],Pxc=[1,6],Qxc=[2,7],Rxc=[3,8],Sxc=[1,2,6,7,8,9,11,10,12,13,14,18,19],X6b=[3,4,5,17,20],Jt=function(a,b,c){this.type_=a;this.normalizedValue_=Ep(b);this.originalValue_=Ep(c===void 0?b:c)};Jt.prototype.getType=function(){return this.type_};Jt.prototype.getValue=function(){return this.normalizedValue_};Jt.prototype.getOriginalValue=function(){return this.originalValue_};
var Ft=function(a){return Nxc.includes(a.getType())},Txc=function(a){return Oxc.includes(a.getType())},V6b=function(a,b){switch(a){case 1:return Ht(b);case 6:return new Jt(6,Ep(b).toLowerCase(),b);case 2:return T4b(b);case 7:return V4b(b);case 3:return Y4b(b);case 8:return new Jt(8,Ep(b).toLowerCase(),b);case 5:return new Jt(5,Ep(b).toLowerCase(),b);case 4:return Z4b(b);case 9:return Uxc(b);case 12:return new Jt(12,Ep(b),b);case 13:return new Jt(13,Ep(b),b);case 14:return new Jt(14,Ep(b),b);case 10:return new Jt(10,
Ep(b),b);case 11:return new Jt(11,Ep(b),b);case 18:return W6b(b);case 19:return new Jt(19,Ep(b),b);case 20:return new Jt(20,Ep(b),b);case 17:return Vxc;default:return new Jt(0,b)}},Ht=function(a){return new Jt(1,Ep(a).toLowerCase(),a)},T4b=function(a){var b=Ep(a).toLowerCase().replace(Mxc,"");return new Jt(2,b,a)},Y4b=function(a){var b=Ep(a).toLowerCase();return b==="me"?Vxc:new Jt(3,b,a)},Z4b=function(a){return new Jt(4,Ep(a).toLowerCase(),a)},V4b=function(a){var b=Ep(a).toLowerCase().replace(Mxc,
"");return new Jt(7,b,a)},Uxc=function(a){return new Jt(9,Ep(a).toLowerCase(),a)},W6b=function(a){return new Jt(18,Ep(a),a)},zt=function(a){var b=a.indexOf(":");return V6b(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};Jt.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};Jt.prototype.serialize=function(){return this.type_+":"+this.originalValue_};Jt.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};
var Wxc=function(a){switch(a.getType()){case 1:case 6:return Lxc(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(Mxc,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!Ep(a.originalValue_);default:return!0}},Lt=V6b(0,""),Vxc=new Jt(17,"me");var Xxc=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var Yxc=function(a){this.profileId_=a};Yxc.prototype.getProfileId=function(){return this.profileId_};var Zxc=Object.freeze({preferOauth:!1}),zI=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:Zxc});var $xc=function(){return Ia&&Ka?!Ka.mobile&&(Ma("iPad")||Ma("Android")||Ma("Silk")):Ma("iPad")||Ma("Android")&&!Ma("Mobile")||Ma("Silk")};var B3b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B3b,V);var A3b=function(a,b){return Mc(a,3,b,Rb)};var iKa=new WeakMap,hKa=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};var ayc=Fp(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new lF(a,b);f&&(a.destinationUrl=f);d&&kqc(a,function(){return aKa().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=A3b(new B3b,c),a.setClearExperimentIds(c);return a.build()});var byc=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=Aba()||Ma("iPod")?4:Ma("iPad")?5:zba()?$xc()?3:2:(Ia&&Ka?Ka.mobile:!$xc()&&(Ma("iPod")||Ma("iPhone")||Ma("Android")||Ma("IEMobile")))||$xc()?0:1},cyc=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=YJa();var h=Hc(b,7,Sb,Fk(Gk));c=ayc(c,f,h,(e=(d=zI.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Ik(b,15),b.getClearcutUrl())}return new byc(c,a)},dyc=function(a){var b=
a.logContextFactory_.getLogContext(),c=new iI;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);a=new jI;a.setSocialClient(c);a.setVersionName(b.getVersionOrUndefined());a.setClientAgent(b.getClientAgentOrUndefined());a.setEventSource(b.getEventSourceOrUndefined());a.setEventSourceId(b.getEventSourceIdOrUndefined());a.setEnvironment(b.getEnvironmentOrUndefined());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPointOrUndefined());a.setSharekitEntryPoint(b.getSharekitEntryPointOrUndefined());
b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),isFinite(b)&&a.setBaselineCl(b));return a},eyc=function(a,b){var c=new gF;Tpc(c,b.serialize());a.clearcut_&&kF(a.clearcut_,c)};var fyc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};fyc.prototype.logError=function(a){var b=dyc(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&eyc(this.clearcut_,a)};var gyc=new Map([[200,0],[400,3],[401,16],[403,7],[404,5],[409,10],[416,11],[429,8],[499,1],[-1,1],[504,4],[501,12],[503,14]]);var hyc=function(){this.logContext_=gu(new hu,"ppl.store")};g=hyc.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){return null};g.createStatusMetric=function(){return null};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};var iyc=function(a){this.clearcut_=a},lt=function(a){a=new fyc(cyc(a),a);return new iyc(a)};g=iyc.prototype;g.start=function(a,b){a.start(b);return this};g.stop=function(a,b){a.stop(b);return this};
g.count=function(a,b){var c=this.clearcut_;b=b===void 0?1:b;var d=dyc(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&eyc(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=dyc(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&eyc(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=dyc(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&eyc(b.clearcut_,a);return this};g.error=function(a){this.clearcut_.logError(a);return this};
g.logError=function(){};g.logInfo=function(){return this};var AI=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new axc;this.eventHandler_=new Is(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new jxc;(a=b)||(a=lt(new hyc));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};zu(AI,aF);g=AI.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,Nqa(cxc),mt(this.forwardEvent_,this))};g.forwardEvent_=function(a){this.contactNotificationService_.dispatchEvent(a)};g.getEventTarget=function(){return this.contactNotificationService_.getEventTarget()};g.invalidate=function(){this.contactNotificationService_.dispatchEvent(new dxc(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new Dp).setEventType(4).setApiType(2),e=new rI(d);this.metrics.count(e);this.metrics.start(e,"total");return jyc(this,a,function(f){return f.loadContactRows},function(f,h,k,q,u){kyc(function(A,G,H,N){var O=G===hI||G instanceof Awc?2:1;e.source().setCacheStatus(O);e.source().setAddressBook(H?Bwc.get(H)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,Kwc(u||0));b&&b(A,G,H,N,u)},f,h,k,q)})};
var jyc=function(a,b,c,d){var e=new lyc(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];b.delayMillis>0||b.maxTries>1?f=myc(a,h,c(h),b,d):f=c(h).call(h,b,d);f&&e.add(f)}else for(var k=0;k<a.addressBooks.length;k++)h=a.addressBooks[k],b.delayMillis>0||b.maxTries>1?f=myc(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
AI.prototype.execute=function(a){var b=this,c=(new Dp).setEventType(4).setApiType(1),d=new rI(c);this.metrics.count(d);this.metrics.start(d,"total");nyc(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?Kwc(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?Bwc.get(e)||1:1:0);b.metrics.stop(d,"total");b.metrics.status(d,f)});return this.cache_&&(c=a.executeFromCache(this.cache_,function(e){return oyc(b,e,d)}))?
c:oyc(this,a,d)};
var nyc=function(a,b){Va(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&nyc(a,b)},oyc=function(a,b,c){if(b.isMutate()){var d=b.getOperation();d&&(d=d.getMutationId())&&a.contactNotificationService_.mutationIdMap_.set(d,Date.now())}if(d=b.getAddressBookId())if(d=a.addressBookMap_[d])return d.execute(b);c=new lyc(void 0,a.metrics,c);c.setQuery(b);for(var e=0;e<a.addressBooks.length;e++)d=a.addressBooks[e],d.execute&&c.add(d.execute(b));return c},myc=function(a,
b,c,d,e){var f=a.scheduler_;b=mt(a.runScheduledQuery_,a,b,c,d,e);f=new Zwc(f,b,d.name);a.scheduler_.schedule(f,d.delayMillis,d.maxTries,d.force);return new pyc(f)};AI.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,u){e.isDone(!u)&&d&&d(f,h,k,q,u)})};
var kyc=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),qyc(b)),a(b||[],c,d,e))},qyc=function(a){if(a.length>0)for(var b=a[0].getPriority(),c=1;c<a.length;c++){var d=a[c],e=d.getPriority();e<b&&(d.flags|=1,b=e)}};
AI.prototype.disposeInternal=function(){AI.superClass_.disposeInternal.call(this);To(this.scheduler_);this.scheduler_=null;Va(this.ownedAddressBooks_,To);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;To(this.eventHandler_);this.eventHandler_=null;Va(this.queryFilters_,function(a){a!=this.contactNotificationService_&&To(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(To(this.contactNotificationService_),this.contactNotificationService_=null)};
var ryc=function(a){var b=new zxc(a,0);gu(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(kl(a.getExperiments(),3,!0));return lt(b)},lyc=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=lyc.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.add=function(a){this.requests_.push(a)};g.isEmpty=function(){return this.requests_.length==0};
g.cancel=function(){this.isPending()&&this.metrics_&&this.state_&&this.metrics_.status(this.state_,1);for(var a=0;a<this.requests_.length;a++)this.requests_[a].cancel()};g.isPending=function(){for(var a=0;a<this.requests_.length;a++)if(this.requests_[a].isPending())return!0;return!1};g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};var pyc=function(a){this.op=a;this.request=null};pyc.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
pyc.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};zu(jKa,ywc);g=jKa.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};var syc=function(a,b){AI.call(this,a,b)};Y(syc,AI);syc.prototype.addAddressBook=function(a,b){this.addressBooks.length==1&&(this.combiner_=new tyc(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));AI.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};syc.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):AI.prototype.loadContactRows.call(this,a,b)};
var tyc=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};tyc.prototype.addAddressBook=function(a){this.addrBooks_.push(new uyc(this,this.addrBooks_.length,a))};tyc.prototype.loadContactRows=function(a,b){a=new vyc(a,this.metrics_,b);wyc(this,a);return a};
var wyc=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),e==0&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],u=c.maxMatches,A=f.length;if(A==0)f=q.length>u?q.slice(0,u):q;else for(var G=0;G<q.length;G++){var H=null,N;for(N=0;N<A&&!(H=xyc(f[N],q[G]));N++);if(H)H===q[G]&&(f[N]=H);else if(f.length==
A?f=f.concat(q[G]):f.push(q[G]),f.length==u)break}h>0&&f.length>h&&(f[h].flags|=1)}e?(qyc(f),c=f):c=null;c&&b.handler&&a.addrBooks_[0]&&a.addrBooks_[0].madeCallback_&&b.handler(c,b,null,b.query);a.rowSets_=null},xyc=function(a,b){if(a.specialRowHandler||b.specialRowHandler)return null;if(a.text==b.text)return a;if(a.getEmail()==b.getEmail()&&a.getType()==b.getType()){if(!b.getName())return a;if(!a.getName())return b}return null},yyc=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:wyc(a,b,c,d)};
tyc.prototype.handleSpecialRow=function(){};var uyc=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
uyc.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,u){b.matchListener_(a,d,f,u)});a.addRequest(this.id_,e);this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&this.lastAsyncLatency_>300&&(c=[zyc(this)])}c&&yyc(this.combiner_,a,this.id_,c)};
var zyc=function(a){var b=a.addrBook_.title_;return new jKa(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
uyc.prototype.matchListener_=function(a,b,c,d){d=d===void 0?0:d;this.madeCallback_=!0;this.isSynchronous_||(this.lastAsyncLatency_=Date.now()-b);a.query.filter&&c&&(c=a.query.filter(c,a.query.token));b=this.id_;var e=this.addrBook_.getId();a.storedResults_[b]=c;a.storedErrorCodes_[b]=d;a.addressBooksToReport_[b]=e;yyc(this.combiner_,a,this.id_,c)};uyc.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var vyc=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new rI((new Dp).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(u,A){var G=d.activeRequests_[A];G=G===hI||G instanceof Awc?2:1;e.source().setCacheStatus(G);e.source().setAddressBook(u?Bwc.get(u)||1:1);b.stop(e,"total");b.status(e,Kwc(d.storedErrorCodes_[A]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};vyc.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};vyc.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};vyc.prototype.addRequest=function(a,b){this.activeRequests_[a]=b};var kKa={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var BI=function(a,b,c,d,e,f){Hp.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||Ayc;this.cache_=new vD(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};zu(BI,Hp);BI.prototype.disposeInternal=function(){BI.superClass_.disposeInternal.call(this);this.cache_=null};BI.prototype.clear=function(){this.cache_.clear()};
var Ayc=function(a){var b=ak(Gp(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=Gp(String(c[1])).match(d)!=null)||(d=c[0],d=c[2].match(new RegExp("^"+b,"i"))!=null&&String(d)!="cl");return d}},Byc=function(a,b){var c="^"+a.token.toLowerCase();b&&(a.includeContacts||(c="nc"+c),a.includeGroups||(c="ng"+c),a.includePhoneContacts||(c="np"+c),a.isContactAutoComplete||(c="na"+c));a.includeProfileAddresses&&(c="pa"+c);return c},Cyc=function(a,b,c){a.cache_.set(Byc(b,a.cacheByType_),c);
if(a.cacheSize_&&(b=a.cache_.getCount(),b>a.cacheSize_)){c=Date.now()-a.cacheMinExpiryAge_;do{if(a.cache_.head_.prev.value.created>=c)break;a.cache_.pop()}while(--b>a.cacheSize_)}},Dyc=function(a,b,c){c=c?a.cache_.get(b):boc(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},Eyc=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=Dyc(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},Fyc=function(a,b){if(b.isContactAutoComplete)return null;var c=Byc(b,a.cacheByType_),
d=Eyc(a,c,b.token);return d?d:a.cacheByType_&&c.lastIndexOf("^",0)!=0?(c=Byc(b,!1),Eyc(a,c,b.token)):null};BI.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};BI.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:boc(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var Gyc=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};Gyc.prototype.getMatches=function(a){a&&this.count++;return this.matches_};Gyc.prototype.isComplete=function(a){return!this.partialResult_||a>=0&&a<=this.matches_.length};zu(Jp,Hp);g=Jp.prototype;g.configure=function(a,b){this.title_=b;this.initialized_||(this.initialized_=!0)};g.getId=function(){return this.id_};
g.loadContactRows=function(a,b){if(this.initialized_){var c=this.cache_;if(Ca(a.token)&&!c.allowEmptyQueries_)var d=zwc;else{d=a.maxMatches;var e=Dyc(c,Byc(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=Fyc(c,a))&&d.getMatches().length==0?(Cyc(c,a,new Gyc(a.token,zwc)),d=zwc):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=k8b(d,c.rowMatchingFunction_(a),c),Cyc(c,a,new Gyc(a.token,d))):d=null}d&&a.maxMatches>=0&&d.length>a.maxMatches&&(d=d.slice(0,a.maxMatches));
return(c=d)?(b&&b(c,hI,this.getId(),a),hI):this.transport_.loadContactRows(a,this.getId(),mt(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(zwc,hI,this.getId(),a,4);return hI};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||Cyc(this.cache_,e,new Gyc(e.token,b,e.maxMatches!=-1&&b.length>=e.maxMatches));a&&(b&&e.maxMatches>=0&&b.length>e.maxMatches&&(b=b.slice(0,e.maxMatches)),a(b,c,d,e,f))};g.onContactsChange_=function(){this.cache_.clear()};g.getAuthToken=function(){return this.transport_.getAuthToken()};
g.disposeInternal=function(){Jp.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;Hyc(this.transport_,this.id_);this.transport_=null};var Jyc=function(a,b,c){BI.call(this,100,18E5,432E5,!0,0,c||Iyc);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};Y(Jyc,BI);var Iyc=function(a){return function(b){var c=b.getType(),d;if(d=Kyc(a,c)){d=new RegExp("(^|\\W+)"+ak(Gp(a.token)),"i");var e=Gp(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+ak(Gp(d)),"i")).test(b):!1)&&c!="cl")}return d}},Kyc=function(a,b){switch(b){case "ct":return a.includeContacts;case "cl":case "li":return a.includeGroups;case "pt":return a.includePhoneContacts}return!1};var Myc=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new Jyc(!0,!1,Lyc);Jp.call(this,a,b,"domain")};zu(Myc,Jp);Myc.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=Wi(a),a.includeGroups=!1);return Myc.superClass_.loadContactRows.call(this,a,b)};
var Lyc=function(a){for(var b=pbc(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=ak(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(Kyc(a,k.getType())){for(var q=0;q<c.length;q++)if(!k.getName().match(c[q])&&!k.getEmail().match(d[q]))return!1;return!0}return!1}};Myc.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};var Nyc=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},Pyc=function(a){if(!a)return Oyc;var b=mKa(Cp("metadata.identityInfo.sourceIds",a)),c=Cp("metadata.contactId",a);c&&c[0]?b.CONTACT=c[0]:b.CONTACT&&(c=parseInt(b.CONTACT,16),isFinite(c)&&(b.CONTACT=String(c)));return new Nyc(a.personId||"",b)},Oyc=new Nyc("",{});var Qyc=function(a,b){this.isLocal_=a;this.edgeIndex_=b};Qyc.prototype.toString=function(){return""};var CI=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};CI.prototype.toString=function(){return""};var Syc=function(a){return Ryc(a).some(function(b){return!b.isLocal_})};CI.prototype.getSource=function(a){return Ryc(this)[a]};CI.prototype.hasSource=function(){return void 0<Ryc(this).length};var Ryc=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};CI.prototype.getCause=function(a){return Tyc(this)[a]};
var Tyc=function(a){return a.edgeCollection_?Uyc(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};CI.prototype.getContainerType=function(){return this.metadata_.containerType};var Vyc=new CI({},null);var Wyc=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=Wyc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CI(this.email_.metadata,this.edgeCollection_):Vyc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.email_};g.getValue=function(){return this.email_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.email_.metadata;return!(!a||!a.primary)};g.getDisplayName=function(){return""};var Xyc=new Wyc({},null);var Yyc=function(a,b){this.emails_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new Wyc(c.value,b))};g=Yyc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||Xyc};g.getFieldLength=function(){return this.emails_.length};var Zyc=new Yyc([],null);var $yc=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=$yc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new CI(this.name_.metadata,this.edgeCollection_));return this.metadata_};g.hasMetaData=function(){return!!this.getMetaData()};g.getValue=function(){return this.name_.displayName||this.name_.formattedName||this.name_.formattedValue||this.name_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getFamilyName=function(){return this.name_.familyName||""};g.hasFamilyName=function(){return!!this.getFamilyName()};g.getGivenName=function(){return this.name_.givenName||""};g.hasGivenName=function(){return!!this.getGivenName()};var azc=new $yc({},null);var bzc=function(a){this.field_=a};g=bzc.prototype;g.toString=function(){return""};g.getField=function(){return this.field_};g.getMetaData=function(){return this.field_.getMetaData()};g.hasMetaData=function(){return this.field_.hasMetaData()};g.getValue=function(){return this.field_.getValue()};g.hasValue=function(){return this.field_.hasValue()};g.getFamilyName=function(){return this.field_.getFamilyName()};g.hasFamilyName=function(){return this.field_.hasFamilyName()};g.getGivenName=function(){return this.field_.getGivenName()};
g.hasGivenName=function(){return this.field_.hasGivenName()};var czc=new bzc(azc);var dzc=["CONTACT","PROFILE","DOMAIN_PROFILE"],ezc=function(a,b){this.names_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new $yc(c.value,b))};g=ezc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||azc};g.getFieldLength=function(){return this.names_.length};var fzc=new ezc([],null);var gzc=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=gzc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CI(this.phone_.metadata,this.edgeCollection_):Vyc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.phone_};g.getValue=function(){return this.phone_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.phone_.metadata;return!(!a||!a.primary)};var hzc=new gzc({},null);var izc=function(a,b){this.phones_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new gzc(c.value,b))};g=izc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||hzc};g.getFieldLength=function(){return this.phones_.length};var jzc=new izc([],null);var kzc=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=kzc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new CI(this.photo_.metadata,this.edgeCollection_):Vyc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.photo_};g.getUrl=function(){return this.photo_.url||""};g.hasUrl=function(){return!!this.getUrl()};var lzc=new kzc({},null);var mzc=function(a,b){this.photos_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new kzc(c,b))};g=mzc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||lzc};g.getFieldLength=function(){return this.photos_.length};var nzc=new mzc([],null);var DI=function(a,b,c,d,e){this.person_=a;this.googleGroup_=b;this.contactLabel_=c;this.edgeCollection_=d;this.email_=this.name_=this.nameRepeated_=this.text_=null;this.emailIndex_=e===void 0?0:e;this.photo_=this.phone_=null};
DI.prototype.toString=function(){if(this.text_==null){if(this.contactLabel_){var a=this.contactLabel_.extendedData&&this.contactLabel_.extendedData.contactPreferences?this.contactLabel_.extendedData.contactPreferences.length:0;a=a==1?"(1 contact)":"("+a+" contacts)";a=this.getName().getValue()+" "+a}else a=this.person_||this.googleGroup_?nKa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};DI.prototype.hasName=function(){return!!this.getName()};
DI.prototype.getName=function(){if(!this.name_){a:{var a=sKa(this);if(a.names_.length){for(var b=l(dzc),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new bzc(e);break a}}a=new bzc(a.names_[0])}else a=czc}this.name_=a}return this.name_};
var sKa=function(a){if(!a.nameRepeated_){var b;a.person_?b=a.person_.name:a.googleGroup_?b=a.googleGroup_.names:a.contactLabel_&&(b=[a.contactLabel_.name]);a.nameRepeated_=b?new ezc(b,a.edgeCollection_):fzc}return a.nameRepeated_};g=DI.prototype;g.hasEmail=function(){return!!this.getEmail().getField(0).getValue()};
g.getEmail=function(){if(!this.email_){var a=null;this.person_?a=this.person_.email:this.googleGroup_?a=this.googleGroup_.emails:this.contactLabel_&&(a=[{value:oKa(this.contactLabel_)}]);this.email_=a?new Yyc(a,this.edgeCollection_):Zyc}return this.email_};g.hasPhone=function(){return!!this.getPhone().getField(0).getValue()};g.getPhone=function(){if(!this.phone_){var a;this.person_?a=this.person_.phone:this.googleGroup_&&(a=this.googleGroup_.phones);this.phone_=a?new izc(a,this.edgeCollection_):jzc}return this.phone_};
g.hasPhoto=function(){return!!this.getPhoto().getField(0).getUrl()};g.getPhoto=function(){if(!this.photo_){var a;this.person_&&(a=this.person_.photo);this.photo_=a?new mzc(a,this.edgeCollection_):nzc}return this.photo_};g.getAddress=function(){return null};g.getStatus=function(){return null};g.hasStatus=function(){return!!this.getStatus()};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};g.getDisplayName=function(){return null};g.getRelation=function(){return null};
g.getProfileType=function(){return null};var nKa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},ozc=new DI(null,null,null,null);var pzc=function(){this.keyToIndex_=new Map},qzc=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return d!=null})};pzc.prototype.get=function(a,b){b==="DOMAIN_PROFILE"&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(a+"="+b):null};pzc.prototype.set=function(a,b,c){b==="DOMAIN_PROFILE"&&(b="PROFILE");this.keyToIndex_.set(a+"="+b,c)};pzc.prototype.contains=function(a,b){b==="DOMAIN_PROFILE"&&(b="PROFILE");return this.keyToIndex_.has(a+"="+b)};var qKa=function(a){this.evergreenProfile_=a?new DI(a,null,null,null):ozc};qKa.prototype.toString=function(){return""};var rzc=new qKa(null);var szc=new Qyc(!0,null),EI=function(a){this.edgeIndexResolver_=new pzc;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=rKa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};EI.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||rzc};EI.prototype.getContainerId=function(){return this.encodedContainerIds_[void 0]||""};
var Uyc=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return c!=null}):[]};EI.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};EI.prototype.getSources=function(a,b){if(!a||!b)return[];if(b==="CONTACT")return[szc];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,qzc(this.edgeIndexResolver_,a,[b]).map(function(d){return new Qyc(!1,d)}));return this.sourcesCache_.get(c)};var tzc=new EI(null);var uzc=function(a,b,c){a=a===void 0?null:a;b=b===void 0?0:b;c=c===void 0?!1:c;this.person_=a&&a.person||null;this.googleGroup_=a&&a.googleGroup||null;this.contactLabel_=a&&a.contactGroup||null;this.edgeCollection_=new EI(this.person_);this.emailIndex_=b;this.profile_=new DI(this.person_,this.googleGroup_,this.contactLabel_,this.edgeCollection_,this.emailIndex_);this.photoUrl_=this.phone_=this.name_=this.allIds_=null;this.text=c?this.getName()||"":this.profile_.toString()};Y(uzc,ywc);g=uzc.prototype;
g.toString=function(){return this.getType()==="cl"?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=Pyc(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=mKa(a.sourceIds);a=new Nyc(a.personId||"",b)}else a=Oyc;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Cp("id.id",a)||"",a=new Nyc("",b)):a=Oyc:a=Oyc;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){this.name_===null&&(this.name_=tKa(this.profile_,function(a){return!!a&&!Syc(a)}),this.name_===null&&(this.name_=vzc(this,tKa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};g.getType=function(){var a=this.profile_;return a.contactLabel_?"cl":a.googleGroup_?"li":!a.hasEmail()&&a.hasPhone()?"pt":"ct"};g.getPriority=function(){return 0};
g.getPhotoUrl=function(){this.photoUrl_===null&&(this.photoUrl_=uKa(this.profile_,function(a){return!!a&&!Syc(a)}),this.photoUrl_===null&&(this.photoUrl_=vzc(this,uKa)));return this.photoUrl_};g.getEncryptionSupport=function(){var a=1,b=wzc(this);if(b){(b=b.extendedData)&&b.smtpServerSupportsTls&&(a=2);b=0;var c=wzc(this);if(c&&(c=c.certificate)){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=Cp("status.statusCode",d.value),d===1){b=1;break}else d&&(b=d)}b===1&&(a=a===2?3:4)}return a};
g.getLoggingId=function(){return this.getAllIds_().loggingId};
var wzc=function(a){var b=Cp("email",a.person_)||Cp("emails",a.googleGroup_);return b?b[a.emailIndex_]||null:null},vzc=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<Tyc(c).length;d++){var e=c.getCause(d);e=a.edgeCollection_.get(e).evergreenProfile_;e=b(e);if(e!==null)return e}for(d=0;d<Ryc(c).length;d++)if(e=c.getSource(d),e.edgeIndex_!==null&&(e=a.edgeCollection_.get(e.edgeIndex_||0).evergreenProfile_,e=b(e),e!==null))return e;return""},xzc=function(a,
b,c){c=c===void 0?!1:c;if(b===void 0?0:b)return a.map(function(q){return new uzc(q,void 0,!0)});b=new Set;var d=[];a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=Cp("person.email",e)||Cp("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Cp("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new uzc(e,h))}else d.push(new uzc(e))}return d};var yzc=function(a,b,c,d,e,f,h,k,q,u,A,G,H,N,O,U){O=O===void 0?new fI:O;U=U===void 0?!1:U;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=u?u:function(){};this.autocompletePageSize=A;this.rankedTargetsPageSize=G;this.peopleContainerMask=H.split(/[\s,]+/).filter(function(da){return!!da});this.peopleFieldMask=N;this.experiments=O;this.includeOnlyNames=
U};yzc.prototype.setTimeout=function(a){var b=this.timeoutMs;a>0&&(this.timeoutMs=a);return b};var zzc=function(a,b){b=Error.call(this,b===void 0?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(zzc,Error);var FI=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new rI(b);this.handler_=c;this.promise_=this.query_=null;this.state_=0;this.addressBookId_="";this.metrics_.start(this.metric_,"total");this.metrics_.start(this.metric_,"blocked")};g=FI.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.isPending=function(){return this.state_==1};g.getQuery=function(){return this.query_};
g.setQuery=function(a){this.query_=a};g.cancel=function(){switch(this.state_){case 1:this.promise_.cancel();break;case 0:this.state_=2,this.promise_=jgc(new Lz),Azc(this,null,11)}};
g.send=function(a){var b=this;if(this.state_!==0)return this.promise_;this.metrics_.count(this.metric_);this.metrics_.stop(this.metric_,"blocked");this.metrics_.start(this.metric_,"network");this.state_=1;var c=this.buildRequest();if(c&&c.path){var d=this.config.gapiApiKey||"";d&&!ZJa()&&(c.params=c.params||{},c.params.key=d);c.headers=aKa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=ugc(mgc([a,Oqc(this.timeoutMs_,"TIMEOUT")]),
function(){b.state_=2;b.metrics_.stop(b.metric_,"network")}).then(function(e){return b.onResponse_(e)},function(e){return b.onError_(e)})};g.onResponse_=function(a){if(a==="TIMEOUT")this.onError_(a);else{var b=a&&a.result;if(!b||"error"in b)this.onError_(a);else{try{var c=this.processResponse(b)}catch(d){this.onError_(d);return}try{Azc(this,c,0)}finally{this.metrics_.stop(this.metric_,"total"),this.metrics_.status(this.metric_,0)}}}};
g.onError_=function(a){var b=!1,c=2,d=1;try{if(a==="TIMEOUT")c=4,d=10;else if(a instanceof Lz)c=1,d=11;else if(a instanceof zzc)c=a.code,d=Jwc(c);else if(a&&typeof a==="object"){var e=Cp("result.error.code",a)||a.status,f=e;f=Number(f);c=Gwc.has(f)?Gwc.get(f):f>=200&&f<300?0:f>=400&&f<500?9:f>=500&&f<600?13:2;d=Jwc(c);b=e==401||e==403;c===2&&this.metrics_.logError("Bad status code (HTTP="+e+")",a)}else c=2,d=1}finally{this.metrics_.status(this.metric_,c),Azc(this,null,d,b)}};
var Azc=function(a,b,c,d){if(d===void 0?0:d)try{a.onAuthError_()}catch(e){throw a.metrics_.logError("AuthError handler: "+e,e),e;}try{a.handler_(b||[],c)}catch(e){throw a.metrics_.logError("Client handler: "+e,e),e;}};var Bzc=function(a,b,c){var d=(new Dp).setEventType(2).setRpcType(1).setToken(b);FI.call(this,a,d,c);this.clientId_=a.clientId;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.token_=b;this.pageSize_=a.autocompletePageSize};Y(Bzc,FI);
Bzc.prototype.buildRequest=function(){var a={query:this.token_,client:this.clientId_,"clientVersion.clientAgent":"CONTACT_STORE","clientVersion.clientType":this.clientName_,"clientVersion.clientVersion":this.clientVersion_,pageSize:this.pageSize_};this.delegatorId_&&(a["authDelegationContext.delegationType"]="GMAIL",a["authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/autocomplete",params:a}};
Bzc.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new zzc(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new zzc(8,"RequestThrottled");if(b.containsPartialResults)throw new zzc(8,"ContainsPartialResults");}return xzc(a.results||[],this.config.includeOnlyNames)};var Czc=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new DI(this.person_,null,null,this.edgeCollection_):ozc};g=Czc.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=Pyc(this.person_));return this.allIds_};g.getId=function(){return this.getAllIds_().contactId||this.getAllIds_().profileId||this.getAllIds_().syntheticId};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};
g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var Dzc=new Czc(null,tzc);var Ezc=function(a){a=a===void 0?null:a;this.edgeCollection_=new EI(a);this.contact_=a?new Czc(a,this.edgeCollection_):Dzc};g=Ezc.prototype;g.toString=function(){return""};g.getId=function(){return this.contact_.getId()};g.getAttribute=function(a){return this.contact_.getAttribute(a)};g.hasAttribute=function(a){return this.contact_.hasAttribute(a)};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};g.getDeleted=function(){return this.contact_.getDeleted()};var Fzc=function(a,b,c){FI.call(this,a,(new Dp).setEventType(2).setRpcType(3).setLookupType(4),c);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.personIds_=b.filter(function(d){return!!d});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};Y(Fzc,FI);
Fzc.prototype.buildRequest=function(){if(!this.personIds_.length)return{};var a={personId:this.personIds_,context:{clientVersion:{clientAgent:"CONTACT_STORE",clientType:this.clientName_,clientVersion:this.clientVersion_}},mergedPersonSourceOptions:{includedProfileStates:"CORE_ID",personModelParams:{personModel:"CONTACT_CENTRIC"}},requestMask:{imageUrlType:"FIFE_URL",includeContainer:this.peopleContainerMask_,includeField:this.peopleFieldMask_}};this.delegatorId_&&(a.context.authDelegationContext=
{delegationType:"GMAIL",obfuscatedOwnerId:this.delegatorId_});return{method:"POST",path:"v2/people:batchGet",body:a}};Fzc.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return b.status=="SUCCESS"}).map(function(b){return new Ezc(b.person)})};var GI=function(a,b,c,d){FI.call(this,a,fKa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=Gzc(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};Y(GI,FI);
GI.prototype.buildRequest=function(){if(!this.knownIds_.length||!this.lookupType_)return{};var a={"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,id:this.knownIds_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC","profileLookupOptions.emailLookupOption":"INCLUDE_EMAIL_LOOKUP_KEY","requestMask.includeContainer":this.peopleContainerMask_,
"requestMask.includeField":this.peopleFieldMask_,"requestMask.imageUrlType":"FIFE_URL",type:this.lookupType_};this.delegatorId_&&(a["context.authDelegationContext.delegationType"]="GMAIL",a["context.authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/lookup",params:a}};
GI.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=l(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new Ezc(f))});return d};var Gzc=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};var Hzc=function(a,b){FI.call(this,a,(new Dp).setEventType(2).setRpcType(9),b);this.affinityType_=a.affinityType;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.pageSize_=a.rankedTargetsPageSize;this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask;this.peopleExtensionNames_=[];kl(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};Y(Hzc,FI);
Hzc.prototype.buildRequest=function(){var a={"affinity.type":this.affinityType_,"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,"pagingOptions.pageSize":this.pageSize_,"requestMask.includeContainer":this.peopleContainerMask_,"requestMask.includeField":this.peopleFieldMask_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC"};
this.peopleExtensionNames_.length&&(a["extensionSet.extensionNames"]=this.peopleExtensionNames_);return{method:"GET",path:"v2/people/rankedTargets",params:a}};Hzc.prototype.processResponse=function(a){return xzc(a.rankedTarget||[],this.config.includeOnlyNames,!0)};g=vKa.prototype;g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};g.getError=function(){return this.error_};g.setError=function(a){this.error_=a};g.getConfiguration=function(){return this.config_};g.setConfiguration=function(a){this.config_=a};g.getUserData=function(){return this.userData_};g.setUserData=function(a){this.userData_=a};var Izc=new Map([[1,4],[2,2],[3,1],[4,7]]),HI=function(a,b){aF.call(this);var c=this;this.config_=a;this.queuedRequests_=new Map;this.gapiClient_=null;this.gapiFailed_=!1;this.metrics_=a.metrics;this.gapiMetric_=new rI((new Dp).setEventType(1));this.metrics_.start(this.gapiMetric_,"total");this.metrics_.start(this.gapiMetric_,"blocked");b.then(function(d){c.metrics_.stop(c.gapiMetric_,"blocked");d?Jzc(c,d):Kzc(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);Kzc(c,5)})};
Y(HI,aF);var Jzc=function(a,b){b&&b.request?(eKa(),a.metrics_.stop(a.gapiMetric_,"total"),a.metrics_.status(a.gapiMetric_,0),a.gapiClient_=b,a.queuedRequests_.forEach(function(c,d){return c.forEach(function(e){return Lzc(a,d,e)})})):Kzc(a,9)};HI.prototype.disposeInternal=function(){for(var a=l(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())Hyc(this,b.value)};
var Kzc=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},Hyc=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(Mzc(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},Nzc=function(a,b,c){a.gapiFailed_?c.cancel():(lKa(a,b).push(c),Lzc(a,b,c))},Lzc=function(a,b,c){a.gapiClient_&&ugc(c.send(a.gapiClient_),function(){var d=b;d=d||"";if(a.queuedRequests_.has(d)){d=a.queuedRequests_.get(d);var e=d.indexOf(c);e>=0&&d.splice(e,1)}})},lKa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},Mzc=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};HI.prototype.getAuthToken=function(){return""};HI.prototype.loadContactRows=function(a,b,c){var d=a&&a.token||"",e=function(h,k){return c(h,f,b,a,k)},f=d?new Bzc(this.config_,d,e):new Hzc(this.config_,e);Nzc(this,b,f);return f};
HI.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new rI((new Dp).setEventType(2).setRpcType(4)),12),Ozc(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(A,G){if(G)a.setResponse(Mwc(G,h));else{A=a.setResponse;G=new vKa(b);var H=new Lwc(h);H.queryResponse_=G;H.errorCode_=G.getError();A.call(a,H)}},e=this.config_.setTimeout(Pzc(a));try{var f=b.emailAddresses||[];if(f.length)var h=new GI(this.config_,1,f,d);else{var k=b.contactIds||[];
if(k.length)h=new GI(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new Fzc(this.config_,q,d);else{var u=b.syntheticIds||[];if(u.length)h=new GI(this.config_,5,u,d);else return this.metrics_.status(new rI((new Dp).setEventType(2)),12),Ozc(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);Nzc(this,c,h);return h};var Ozc=function(a){var b=new Awc(function(){return a.setResponse(Mwc(5,b))});b.setQuery(a);return b};var Qzc=function(a,b,c,d){Jp.call(this,a,b,c,d)};Y(Qzc,Jp);Qzc.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(mt(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};Qzc.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new dxc([b.mutateResponse_],"c"),this.dispatchEvent(a)}};var Rzc=function(a,b,c){b=b||new Jyc(!0,!0);Jp.call(this,a,b,"personal",c)};Y(Rzc,Qzc);Rzc.prototype.configure=function(a,b){Qzc.prototype.configure.call(this,a,b)};var Szc=function(){throw Error("Fd");};var Tzc={},Uzc={},Vzc={},Wzc={},Xzc={},II=function(){throw Error("Hd");};II.prototype.contentDir=null;II.prototype.getContent=function(){return this.content};II.prototype.toString=function(){return this.content};II.prototype.toSafeHtml=function(){if(this.contentKind!==Tzc)throw Error("Id");return ci(this.toString())};var Yzc=function(){II.call(this)};zu(Yzc,II);Yzc.prototype.contentKind=Tzc;var Zzc=function(){II.call(this)};zu(Zzc,II);Zzc.prototype.contentKind=Uzc;Zzc.prototype.contentDir=1;var $zc=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},vt=function(a){return JI(a,Tzc)?a:a instanceof bi?Zs(ei(a).toString()):Zs(String(String(a)).replace(aAc,bAc),$zc(a))},Zs=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));d!==void 0&&(c.contentDir=d);return c}}(Yzc),cAc=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(Zzc),
KI=function(a){return a instanceof II?!!a.getContent():!!a},LI=function(a){return JI(a,Tzc)?a:Zs(dAc(a,eAc),$zc(a))},fAc=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),dAc=function(a,b){if(!b)return yKa(String(a),function(){return""}).replace(gAc,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=yKa(a,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",u="";if(f.charAt(1)!=="/"){q="<";for(var A;A=
hAc.exec(f);)if(A[1]&&A[1].toLowerCase()==="dir"){if(f=A[2]){if(f.charAt(0)==="'"||f.charAt(0)==='"')f=f.substr(1,f.length-2);f=f.toLowerCase();if(f==="ltr"||f==="rtl"||f==="auto")u=' dir="'+f+'"'}break}hAc.lastIndex=0}c[k]=q+h+">";d[k]=u;return"["+k+"]"}return""});a=String(a).replace(iAc,bAc);var e=jAc(c);a=a.replace(/\[(\d+)\]/g,function(f,h){return d[h]&&c[h]?c[h].substr(0,c[h].length-1)+d[h]+">":c[h]});return a+e},wKa=RegExp.prototype.hasOwnProperty("sticky"),xKa=new RegExp((wKa?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",
wKa?"gy":"g"),kAc=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},jAc=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];e.charAt(1)=="/"?(e=b.lastIndexOf(e),e<0?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):e=="<li>"&&b.lastIndexOf("</ol>")<0&&b.lastIndexOf("</ul>")<0?a[c]="":fAc.test(e)||b.push("</"+e.substring(1))}return b.reverse().join("")},$s=function(a){return JI(a,
Tzc)?String(dAc(a.getContent())).replace(iAc,bAc):String(a).replace(aAc,bAc)},lAc=function(a){JI(a,Wzc)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},wt=function(a){JI(a,Uzc)||JI(a,Vzc)?a=MI(a):Xh(a)?a=MI(Yh(a)):a instanceof Th?a=MI(Vh(a).toString()):(a=String(a),a=mAc.test(a)?a.replace(nAc,oAc):"about:invalid#zSoyz");return a},qAc=function(a){JI(a,Uzc)||JI(a,Vzc)?a=MI(a):Xh(a)?a=MI(Yh(a)):a instanceof Th?a=MI(Vh(a).toString()):(a=String(a),a=pAc.test(a)?a.replace(nAc,oAc):"about:invalid#zSoyz");
return a},NI=function(a){return JI(a,Xzc)?kAc(a.getContent(),!1):a==null?"":kAc(String(a),!0)},JI=function(a,b){return a!=null&&a.contentKind===b},rAc={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\v":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},bAc=function(a){return rAc[a]},sAc={"\x00":"%00","\u0001":"%01","\u0002":"%02",
"\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B",
"}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},oAc=function(a){return sAc[a]},
aAc=/[\x00\x22\x26\x27\x3c\x3e]/g,iAc=/[\x00\x22\x27\x3c\x3e]/g,nAc=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,mAc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,pAc=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,tAc=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,
MI=function(a){return String(a).replace(nAc,oAc)},uAc=function(a){a=String(a);return tAc.test(a)?a:"zSoyz"},gAc=/</g,eAc={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},hAc=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var zKa={};var OI=function(a,b,c){Hp.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Ip(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};zu(OI,Hp);g=OI.prototype;g.maxMatches_=10;g.getMatcher=function(){return this.matcher_};g.setMatcher=function(a){this.matcher_=a};g.getToken=function(){return this.token_};
g.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case "hilite":this.hiliteId(a.row);break;case "select":var c=!1;if(typeof a.row==="number"){a=a.row;var d=this.rows_[vAc(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":wAc(this);break;case "dismiss":xAc(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,mt(this.matchListener_,this)),wAc(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var yAc=function(a){for(var b=a.firstRowId_+a.rows_.length-1,c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>=a.firstRowId_&&c<b)c++;else if(c==-1)c=a.firstRowId_;else break;if(a.hiliteId(c))break}};
OI.prototype.hiliteId=function(a){var b=vAc(this,a),c=this.rows_[b];return c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c)?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),b!=-1)};
OI.prototype.selectHilited=function(){var a=vAc(this,this.hiliteId_);if(a!=-1){var b=this.rows_[a],c=this.selectionHandler_;if(c.activeElement_){var d=b.toString();if(c.multi_){var e=zAc(c,c.getValue(),c.getCursorPosition()),f=AAc(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);e==0||Ca(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;d.value=f.join("");for(var h=0,k=0;k<=e;k++)h+=f[k].length;d.focus();
c.setCursorPosition(h)}}else c.setValue(d);c.rowJustSelected_=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};OI.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};
var xAc=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(mt(a.dismiss,a),100))};OI.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var wAc=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(mt(a.immediatelyCancelDelayedDismiss_,a),10)};
OI.prototype.disposeInternal=function(){OI.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};OI.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
OI.prototype.renderRows=function(a,b){var c=Ib(b)=="object"&&b;b=(c?c.getPreserveHilited():b)?vAc(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[db(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&c.getAutoHilite()!==void 0&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||b>=0)&&d.length!=
0&&this.token_&&(b>=0?this.hiliteId(this.firstRowId_+b):yAc(this));this.dispatchEvent("suggestionsupdate")};var vAc=function(a,b){b-=a.firstRowId_;return b<0||b>=a.rows_.length?-1:b};OI.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};OI.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){Vi(this.inputToAnchorMap_,db(c))},this)};OI.prototype.update=function(a){this.selectionHandler_.update(a)};var DAc=function(a,b,c,d,e,f){if(Us&&e)return BAc(a);if(e&&!d)return!1;if(!Op){typeof b==="number"&&(b=CAc(b));var h=b==17||b==18||Us&&b==91;if((!c||Us)&&h||Us&&b==16&&(d||f))return!1}if(Np&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}switch(a){case 13:return Op?f||e?!1:!(c&&d):!0;case 27:return!Np&&!Op}return Op&&(d||e||f)?!1:BAc(a)},BAc=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||Np&&a==0)return!0;
switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return Op;default:return!1}},CAc=function(a){if(Op)a=EAc(a);else if(Us&&Np)switch(a){case 93:a=91}return a},EAc=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};zu(DKa,Mp);var FAc=function(a,b){Hp.call(this);a&&this.attach(a,b)};zu(FAc,Hp);g=FAc.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var GAc={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},HAc={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},IAc=Us&&Op;g=FAc.prototype;
g.handleKeyDown_=function(a){Np&&(this.lastKey_==17&&!a.ctrlKey||this.lastKey_==18&&!a.altKey||Us&&this.lastKey_==91&&!a.metaKey)&&this.resetState();this.lastKey_==-1&&(a.ctrlKey&&a.keyCode!=17?this.lastKey_=17:a.altKey&&a.keyCode!=18?this.lastKey_=18:a.metaKey&&a.keyCode!=91&&(this.lastKey_=91));DAc(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=CAc(a.keyCode),IAc&&(this.altKey_=a.altKey)):this.handleEvent(a)};g.resetState=function(){this.keyCode_=this.lastKey_=-1};
g.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
g.handleEvent=function(a){var b=a.event_,c=b.altKey;if(Np&&a.type=="keypress"){var d=this.keyCode_;var e=b.charCode>=0&&b.charCode<63232&&BAc(d)?b.charCode:0}else a.type=="keypress"?(IAc&&(c=this.altKey_),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d=b.keyCode||this.keyCode_,e=b.charCode||0),Us&&e==63&&d==224&&(d=191);var f=d=CAc(d);d?d>=63232&&d in GAc?f=GAc[d]:d==25&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in
HAc&&(f=HAc[b.keyIdentifier]);if(!Op||a.type!="keypress"||DAc(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new DKa(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};g.getElement=function(){return this.element_};
g.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=Ip(this.element_,"keypress",this,b);this.keyDownKey_=Ip(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Ip(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(sF(this.keyPressKey_),sF(this.keyDownKey_),sF(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){FAc.superClass_.disposeInternal.call(this);this.detach()};var PI=function(a,b,c,d){aF.call(this);d=d||150;this.multi_=c!=null?c:!0;this.separators_=a||",;";this.defaultSeparator_=this.separators_.charAt(0);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$");this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=d>0?new tF(d):null;this.eh_=new Is(this);this.activateHandler_=new Is(this);this.keyHandler_=new FAc;this.lastKeyCode_=-1};
zu(PI,aF);g=PI.prototype;g.activeElement_=null;g.lastValue_="";g.waitingForIme_=!1;g.rowJustSelected_=!1;g.getValue=function(){return this.activeElement_.value};g.setValue=function(a){this.activeElement_.value=a};g.getCursorPosition=function(){return CKa(this.activeElement_,!0)[0]};g.setCursorPosition=function(a){var b=this.activeElement_;BKa(b)&&(b.selectionStart=a);b=this.activeElement_;BKa(b)&&(b.selectionEnd=a)};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];Dz(c)&&(kH(c,"combobox"),lH(c,"autocomplete","list"));this.eh_.listen(c,"focus",this.handleFocus);this.eh_.listen(c,"blur",this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(c,"keydown",this.onKeyDownOnInactiveElement_),Dz(c))){var d=wz(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&JAc(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];Dz(c)&&(c.removeAttribute("role"),c.removeAttribute("aria-autocomplete"));c==this.activeElement_&&this.handleBlur();this.eh_.unlisten(c,"focus",this.handleFocus);this.eh_.unlisten(c,"blur",this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(c,"keydown",this.onKeyDownOnInactiveElement_)}};
g.disposeInternal=function(){PI.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();To(this.timer_)};
var KAc=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){yAc(a.ac_);b.preventDefault();return}if(!a.multi_){a.update(!0);b.preventDefault();return}break;case 38:if(a.ac_.isOpen()){a:{a=a.ac_;for(var c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>a.firstRowId_)c--;else break;if(a.hiliteId(c))break a}}b.preventDefault();return}break;case 9:if(!a.ac_.isOpen()||b.shiftKey)a.ac_.dismiss();else if(a.update(),a.ac_.selectHilited()&&a.preventDefaultOnTab_){b.preventDefault();return}break;case 13:if(a.ac_.isOpen()){if(a.update(),
a.ac_.selectHilited()){b.preventDefault();b.stopPropagation();return}}else a.ac_.dismiss();break;case 27:if(a.ac_.isOpen()){a.ac_.dismiss();b.preventDefault();b.stopPropagation();return}break;case 229:if(!a.waitingForIme_){a.waitingForIme_||(a.eh_.listen(a.activeElement_,"keyup",a.onKeyUp_),a.eh_.listen(a.activeElement_,"keypress",a.onKeyPress_),a.waitingForIme_=!0);return}}(c=a.multi_&&b.charCode&&a.separators_.indexOf(String.fromCharCode(b.charCode))!=-1)&&a.update();c&&a.ac_.selectHilited()&&b.preventDefault()};
PI.prototype.handleKeyUp=function(){return!1};PI.prototype.handleFocus=function(a){JAc(this,a.target||null)};var JAc=function(a,b){a.activateHandler_.removeAll();a.ac_&&wAc(a.ac_);b!=a.activeElement_&&(a.activeElement_=b,a.timer_&&(a.timer_.start(),a.eh_.listen(a.timer_,"tick",a.onTick_)),a.lastValue_=a.getValue(),a.keyHandler_.attach(a.activeElement_),a.eh_.listen(a.keyHandler_,"key",a.onKey_),a.eh_.listen(a.activeElement_,"mousedown",a.onMouseDown_))};g=PI.prototype;
g.handleBlur=function(){this.activeElement_&&(this.eh_.unlisten(this.keyHandler_,"key",this.onKey_),this.keyHandler_.detach(),this.eh_.unlisten(this.activeElement_,"keyup",this.handleKeyUp),this.eh_.unlisten(this.activeElement_,"mousedown",this.onMouseDown_),this.waitingForIme_&&LAc(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&xAc(this.ac_))};g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};
g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&KAc(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&this.lastKeyCode_!=229&&LAc(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey)&&LAc(this)};g.onMouseDown_=function(){};var LAc=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};
PI.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=AAc(this,b)[zAc(this,b,a)];a=this.trimmer_?String(a).replace(this.trimmer_,""):a;this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()))}this.lastValue_=this.getValue()}this.rowJustSelected_=!1};
var zAc=function(a,b,c){a=AAc(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;e<a.length&&d<=c;e++)d+=a[e].length,b=e;return b},AAc=function(a,b){if(!a.multi_)return[b];b=String(b).split("");for(var c=[],d=[],e=!1,f=0;f<b.length;f++)a.literals_&&a.literals_.indexOf(b[f])!=-1?(e||(c.push(d.join("")),d.length=0),d.push(b[f]),e=!e):e||a.separators_.indexOf(b[f])==-1?d.push(b[f]):(d.push(b[f]),c.push(d.join("")),d.length=0);c.push(d.join(""));return c};var MAc=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},NAc=function(a){return a.classList?a.classList:MAc(a).match(/\S+/g)||[]},OAc=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},PAc=function(a,b){a.classList?b=a.classList.contains(b):(a=NAc(a),b=Wa(a,b)>=0);return b},QAc=function(a,b){if(a.classList)a.classList.add(b);else if(!PAc(a,b)){var c=MAc(a);OAc(a,c+(c.length>0?" "+b:b))}},QI=function(a,
b){if(a.classList)Array.prototype.forEach.call(b,function(e){QAc(a,e)});else{var c={};Array.prototype.forEach.call(NAc(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;OAc(a,b)}},RAc=function(a,b){a.classList?a.classList.remove(b):PAc(a,b)&&OAc(a,Array.prototype.filter.call(NAc(a),function(c){return c!=b}).join(" "))},SAc=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){RAc(a,c)}):OAc(a,Array.prototype.filter.call(NAc(a),
function(c){return!(Wa(b,c)>=0)}).join(" "))};g=Pp.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new Pp(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Pp?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.expand=function(a,b,c,d){cb(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.translate=function(a,b){a instanceof Ls?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var RI=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};RI.prototype.clone=function(){return new RI(this.left,this.top,this.width,this.height)};var k0b=function(a){return new RI(a.left,a.top,a.right-a.left,a.bottom-a.top)};
RI.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};var TAc=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new RI(c,e,d-c,a-e)}return null};
g=RI.prototype;g.contains=function(a){return a instanceof Ls?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};g.getSize=function(){return new uz(this.width,this.height)};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.translate=function(a,b){a instanceof Ls?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};g.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var m4b={},SI=function(a,b){var c=wz(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Gr=function(a,b){return SI(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Ns=function(a,b,c){if(b instanceof Ls){var d=b.x;b=b.y}else d=b,b=c;a.style.left=TI(d,!1);a.style.top=TI(b,!1)},UAc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},J1b=function(a){var b=
wz(a),c=Gr(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=Gr(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null},j0b=function(a){for(var b=new Pp(0,Infinity,Infinity,0),c=Kp(a),d=c.document_.body,e=c.document_.documentElement,f=Dfc(c.document_);a=J1b(a);)if((!Np||a.clientHeight!=0||
a!=d)&&a!=d&&a!=e&&Gr(a,"overflow")!="visible"){var h=UI(a),k=new Ls(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null},
K1b=function(a,b){b=b||Dfc(document);var c=b||Dfc(document);var d=UI(a),e=UI(c),f=SI(c,"borderLeftWidth");var h=SI(c,"borderRightWidth");var k=SI(c,"borderTopWidth"),q=SI(c,"borderBottomWidth");h=new Pp(parseFloat(k),parseFloat(h),parseFloat(q),parseFloat(f));c==Dfc(document)?(f=d.x-c.scrollLeft,d=d.y-c.scrollTop):(f=d.x-e.x-h.left,d=d.y-e.y-h.top);a=VAc(a);e=c.clientHeight-a.height;h=c.scrollLeft;k=c.scrollTop;h+=Math.min(f,Math.max(f-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-e,0));c=
new Ls(h,k);b.scrollLeft=c.x;b.scrollTop=c.y},UI=function(a){var b=wz(a),c=new Ls(0,0);if(a==(b?wz(b):document).documentElement)return c;a=UAc(a);b=Efc(Kp(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},l0b=function(a,b,c){if(b.document_!=c.document_){b=b.document_.body;c=c.getWindow();var d=new Ls(0,0),e=Az(wz(b));if(o8b(e,"parent")){var f=b;do{if(e==c)var h=UI(f);else h=UAc(f),h=new Ls(h.left,h.top);d.x+=h.x;d.y+=h.y}while(e&&e!=c&&e!=e.parent&&(f=e.frameElement)&&(e=e.parent))}b=n0b(d,UI(b));
a.left+=b.x;a.top+=b.y}},WAc=function(a,b,c){if(b instanceof uz)c=b.height,b=b.width;else if(c==void 0)throw Error("Ld");a.style.width=TI(b,!0);a.style.height=TI(c,!0)},TI=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},Ms=function(a){var b=VAc;if(Gr(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},VAc=function(a){var b=
a.offsetWidth,c=a.offsetHeight,d=Np&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=UAc(a),new uz(a.right-a.left,a.bottom-a.top)):new uz(b,c)},i0b=function(a){var b=UI(a);a=Ms(a);return new RI(b.x,b.y,a.width,a.height)},XAc=function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")},Lr=function(a,b){a.style.display=b?"":"none"},Ct=function(a){return"rtl"==Gr(a,"direction")},YAc=Op?"MozUserSelect":
Np||q8b?"WebkitUserSelect":null,ZAc=function(a){var b=a.getElementsByTagName("*");if(YAc&&(a.style&&(a.style[YAc]="none"),b))for(var c=0;a=b[c];c++)a.style&&(a.style[YAc]="none")},r0b=function(a,b){a=a.style;Op?a.MozBoxSizing="border-box":Np?a.WebkitBoxSizing="border-box":a.boxSizing="border-box";a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"},$Ac=function(a){var b=SI(a,"marginLeft"),c=SI(a,"marginRight"),d=SI(a,"marginTop");a=SI(a,"marginBottom");return new Pp(parseFloat(d),
parseFloat(c),parseFloat(a),parseFloat(b))};var aBc=function(){if(s8b){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Ha()))?a[1]:"0"}return Us?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(Ha()))?a[0].replace(/_/g,"."):"10"):u8b?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Ha()))?a[1]:""):v8b||w8b||x8b?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Ha()))?a[1].replace(/_/g,"."):""):""}();var VI=function(a){return(a=a.exec(Ha()))?a[1]:""},bBc=function(){if(F8b)return VI(/Firefox\/([0-9.]+)/);if(ct||q8b||p8b)return E8b;if(J8b){if(Ta()||Bba()){var a=VI(/CriOS\/([0-9.]+)/);if(a)return a}return VI(/Chrome\/([0-9.]+)/)}if(K8b&&!Ta())return VI(/Version\/([0-9.]+)/);if(G8b||H8b){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ha()))return a[1]+"."+a[2]}else if(I8b)return(a=VI(/Android\s+([0-9.]+)/))?a:VI(/Version\/([0-9.]+)/);return""}();var h0b=function(a){if(a=a.offsetParent){var b=a.tagName=="HTML"||a.tagName=="BODY";if(!b||Gr(a,"position")!="static"){var c=UI(a);if(!b){b=Ct(a);var d;if(d=b){d=K8b&&rba(bBc,10)>=0;var e;if(e=y8b)e=rba(aBc,10)>=0;var f=J8b&&rba(bBc,85)>=0;d=Op||d||e||f}b=d?-a.scrollLeft:b&&Gr(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=n0b(c,new Ls(b,a.scrollTop))}}}return c||new Ls},o0b=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var h=0;if(d||c!=0)c&4?a.x-=b.width+(d?d.right:
0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;c=b;d=0;(f&65)==65&&(h.x<e.left||h.x>=e.right)&&(f&=-2);(f&132)==132&&(h.y<e.top||h.y>=e.bottom)&&(f&=-5);h.x<e.left&&f&1&&(h.x=e.left,d|=1);if(f&16){var k=h.x;h.x<e.left&&(h.x=e.left,d|=4);h.x+c.width>e.right&&(c.width=Math.min(e.right-h.x,k+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}h.x+c.width>e.right&&f&1&&(h.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(h.x<e.left?16:0)|(h.x+c.width>
e.right?32:0));h.y<e.top&&f&4&&(h.y=e.top,d|=2);f&32&&(k=h.y,h.y<e.top&&(h.y=e.top,d|=8),h.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-h.y,k+c.height-e.top),c.height=Math.max(c.height,0),d|=8));h.y+c.height>e.bottom&&f&4&&(h.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(h.y<e.top?64:0)|(h.y+c.height>e.bottom?128:0));e=d}else e=256;h=e}e=new RI(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;e.height=b.height;return{rect:e,status:h}},m0b=function(a,b){return(b&8&&Ct(a)?b^4:b)&-9};var Vs=function(){};Vs.instance_=void 0;Vs.getInstance=function(){return Vs.instance_?Vs.instance_:Vs.instance_=new Vs};Vs.prototype.nextId_=0;Vs.prototype.idPrefix_="";Vs.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Hs=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var WI=function(a,b,c,d){Hp.call(this);this.parent_=a||document.body;this.dom_=Kp(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=d!=null?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};zu(WI,Hp);g=WI.prototype;g.getElement=function(){return this.element_};
g.getAnchorElement=function(){return this.anchorElement_};g.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Date.now();this.target_=c;this.rowDivs_=[];cBc(this)};g.dismiss=function(){this.visible_&&(this.visible_=!1,dBc(this,!1),Lr(this.element_,!1))};g.show=function(){this.visible_||(this.visible_=!0,dBc(this,!0),Lr(this.element_,!0))};
var dBc=function(a,b){a.target_&&(lH(a.target_,"haspopup",b),lH(a.element_,"expanded",b),lH(a.target_,"expanded",b),b?lH(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),mH(a.target_,null)))};WI.prototype.isVisible=function(){return this.visible_};
var eBc=function(a,b){var c=b>=0&&b<a.rows_.length?a.rows_[b]:void 0,d=b>=0&&b<a.rowDivs_.length?a.rowDivs_[b]:void 0;a.dispatchEvent({type:"rowhilite",rowNode:d,row:c?c.data:null})&&(a.hilitedRow_>=0&&SAc(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(QI(d,["ac-active","active"]),a.target_&&mH(a.target_,d),K1b(d,a.element_)))};WI.prototype.hiliteId=function(a){if(a==-1)eBc(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){eBc(this,b);break}};
var fBc=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;QI(b,Fa(a.className).split(" "));kH(b,"listbox");b.id=Hs(Vs.getInstance());a.dom_.appendChild(a.parent_,b);Ip(b,"click",a.handleClick_,!1,a);Ip(b,"mousedown",a.handleMouseDown_,!1,a);Ip(b,"mouseover",a.handleMouseOver_,!1,a)}},cBc=function(a){fBc(a);a.widthProvider_&&(a.element_.style.minWidth=a.widthProvider_.clientWidth-0+"px");a.maxWidthProvider_&&(a.element_.style.maxWidth=a.maxWidthProvider_.clientWidth-
0+"px");a.rowDivs_.length=0;a.dom_.removeChildren(a.element_);a.customRenderer_&&a.customRenderer_.render?a.customRenderer_.render(a,a.element_,a.rows_,a.token_):a.rows_.forEach(function(b){var c=this.token_,d=this.dom_.createDom("DIV",{className:"ac-row",id:Hs(Vs.getInstance())});kH(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):Ez(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,gBc(this,d,c));QAc(d,
"ac-row");this.rowDivs_.push(d);b=d;this.dom_.appendChild(this.element_,b)},a);a.rows_.length==0?a.dismiss():(a.show(),a.reposition(),ZAc(a.element_))};
WI.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_;var b=this.rightAlign_?5:1;var c=this.element_,d=b^1,e=h0b(c),f=i0b(a),h=j0b(a);h&&f.intersection(k0b(h));l0b(f,Kp(a),Kp(c));a=m0b(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Ls(b,f.top+(a&1?f.height:0));a=n0b(a,e);if(f=j0b(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=m0b(c,d);d=Ms(c);b=d.clone();e=o0b(e,b,a,null,f,65);e.status&496||(f=e.rect,Ns(c,new Ls(f.left,
f.top)),b=e.rect.getSize(),q0b(d,b)||r0b(c,b))}};WI.prototype.getTarget=function(){return this.target_||null};WI.prototype.disposeInternal=function(){this.element_&&(rF(this.element_,"click",this.handleClick_,!1,this),rF(this.element_,"mousedown",this.handleMouseDown_,!1,this),rF(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);To(this.animation_);this.parent_=null;WI.superClass_.disposeInternal.call(this)};
var gBc=function(a,b,c){if(a.highlightAllTokens_||!a.wasHighlightedAtLeastOnce_)if(b.nodeType==3){var d=null;Array.isArray(c)&&c.length>1&&!a.highlightAllTokens_&&(d=c.slice(1));c=hBc(a,c);if(c.length!=0){var e=b.nodeValue,f=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=f.exec(e),q=0;k;)q++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,f.lastIndex)),h=f.lastIndex,k=f.exec(e);c.push(e.substring(h));if(c.length>1){d=a.highlightAllTokens_?q:1;for(e=0;e<d;e++)f=2*e,b.nodeValue=c[f],h=
a.dom_.createElement("B"),h.className=a.highlightedClassName,a.dom_.appendChild(h,a.dom_.createTextNode(c[f+1])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.dom_.createTextNode(""),h.nextSibling),b=h.nextSibling;b.nodeValue=c.slice(d*2).join("");a.wasHighlightedAtLeastOnce_=!0}else d&&gBc(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,gBc(a,b,c),b=d},hBc=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Ca(Vr(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(ak).join("|"):(c=pbc(b),c=ak(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=b.length>0?ak(b[0]):"":/^\W/.test(b)||(c=ak(b));return c},iBc=function(a,b){for(;b&&b!=a.element_&&!PAc(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};WI.prototype.handleClick_=function(a){var b=iBc(this,a.target);b>=0&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};WI.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
WI.prototype.handleMouseOver_=function(a){a=iBc(this,a.target);a>=0&&!(Date.now()-this.startRenderingRows_<300)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};var XI=function(a,b,c,d,e,f,h,k,q,u){f=f||new PI(",;",'"');h=new WI(h||null,q||this,u);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;OI.call(this,this,h,f);this.inputHandler_=this.selectionHandler_;this.inputHandler_.ac_=this;this.contactStore_=a;this.addressBookId_=c;this.filter_=d||null;this.maxMatches_=e||15;this.ownsContactStore_=!!k};zu(XI,OI);
var kBc=function(a,b,c,d,e,f,h){b=new XI(null,b,void 0,f,c,d,e,void 0,void 0,h);Hr(a);mt(jBc,null,b,!0);throw Error("Gd");},lBc=function(a,b,c,d,e,f,h){b=new XI(null,b,void 0,f,c,d,e,void 0,void 0,h);c=jBc;e=a.getClientInfo();d=(f=kl(e,10)||kl(a.getExperiments(),5,!0))?new syc(void 0,ryc(a)):new AI(void 0,ryc(a));h=lt(new zxc(a,1));var k=a.getUserInfo().getEnvType()||1;var q=Izc.get(k)||4;q=bKa("people-pa",q===void 0?0:q);k=k===4?Oh(a.getClientInfo(),2)||"":Oh(a.getClientInfo(),1)||"";var u=Oh(a.getClientInfo(),
4),A=Oh(a.getClientInfo(),5),G=Oh(a.getClientInfo(),6)||"",H=a.getClientInfo().getAffinityType()||"",N=am(a.getUserInfo(),2),O=a.getAuthErrorHandler(),U=Ik(a.getClientInfo(),8,3E4),da=kl(a.getClientInfo(),17);h=new yzc(h,q,k,u,A,G,H,N,U,O,Ik(a.getClientInfo(),13,15),Ik(a.getClientInfo(),14,500),Oh(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),Oh(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),a.getExperiments(),
da);a=new HI(h,xwc(a));h=new Rzc(a);h.configure(null,"Personal Contacts");d.addAddressBook(h,!0);f&&(a=new Myc(a,null,!!kl(e,11)),a.configure(null,"Domain Contacts"),d.addAddressBook(a,!0));c(b,!0,d);return b},jBc=function(a,b,c){b&&c.loadContactRows(Ywc,function(){});mBc(a,c)};XI.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&To(this.contactStore_);XI.superClass_.disposeInternal.call(this)};
var mBc=function(a,b){a.contactStore_=b;a.ownsContactStore_=!0;a.savedQuery_&&a.savedHandler_&&(a.currentRequest_=a.contactStore_.loadContactRows(a.savedQuery_,a.savedHandler_),a.savedQuery_=null,a.savedHandler_=null)};g=XI.prototype;g.savedQuery_=null;g.savedHandler_=null;g.inputHandler_=null;g.includeGroups_=!0;g.isRowDisabled=function(a){return!!a.rowDisabled};
g.requestMatchingRows=function(a,b,c){a={token:a,maxMatches:b,includeContacts:!0,includeGroups:this.includeGroups_,matchType:1,matchFieldList:Qwc,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=mt(this.handleAutoCompleteContacts_,this,c);if(a.token&&a.token!="")this.contactStore_?(this.currentRequest_&&(this.currentRequest_.cancel(),this.currentRequest_=null),this.currentRequest_=this.contactStore_.loadContactRows(a,
c)):(this.savedQuery_=a,this.savedHandler_=c);else{b=new Awc;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.setResponse(yu(c,d,b,null,a))}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){XI.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){XI.superClass_.dismiss.call(this)};
g.renderRow=function(a,b,c){b=b={displayName:a.data.text,newSection:!!(a.data.flags&1)};a=b.displayName;b=b.newSection;(a=Zs('<div class="'+$s("goog-contacts-ui-autocomplete-name-nochat")+(KI(b)?" "+$s("goog-contacts-ui-autocomplete-new-section"):"")+'">'+vt(a)+"</div>"))&&a.renderElement&&c?a.renderElement(c):(a=AKa(a),c.innerHTML=ei(a))};g.selectHilited=function(){var a=vAc(this,this.hiliteId_);return a!=-1&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):XI.superClass_.selectHilited.call(this)};
g.fireSelectionEvent=function(a){this.dispatchEvent(new nBc(a))};var nBc=function(a){oF.call(this,"g");this.row=a};zu(nBc,oF);S7b("createAutoComplete",function(a,b,c,d,e,f,h,k,q,u){d&&(b=b+d+"/");b=Szc(Hr(b));f&&b.loadContactRows(Ywc,function(){});c=new XI(b,c,void 0,q,e,k,u,!0);c.attachInputs(Afc(document,a));return c});var YI=function(){this.eventHandler_=new Is(this);YI.prototype.addInput=YI.prototype.addInput;YI.prototype.removeInput=YI.prototype.removeInput;YI.prototype.setTarget=YI.prototype.setTarget},oBc=function(a,b){var c=new YI;c.create(a,b);return c};g=YI.prototype;
g.create=function(a,b){a=Afc(document,a);this.acWidget_=b.contactStoreConfig?lBc(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):kBc(b.serverBase,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign);"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var c=b.onComplete;typeof c==="function"&&this.eventHandler_.listen(this.acWidget_,"update",function(d){d.row&&c.call(ya,
d.target.getTarget())});this.addInput(a)};g.dispose=function(){jGa(this.acWidget_,this.eventHandler_)};g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};
g.acWidget_=null;ya._EmailAc_create=oBc;var pBc=function(a,b){return new Rp("/",a,void 0,void 0,void 0,void 0,b)};Rp.prototype.setLocale=function(){};var qBc=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};qBc.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
Rp.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Nd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)rBc(this,this.acWrappers_[b]);this.focusedElement_&&(a=db(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(var c in this.acWrappers_)for(a=[].concat(p(this.acWrappers_[c].pendingInputs.values())),b=1;b<a.length;b++)rF(a[b],"focus",this.onTargetFocus_,!1,this)};
var rBc=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=mt(a.onCompleteCallback_,a);c.ua=a.useApiary_;c.acd=a.apiaryClientDeferred_;c.onAuthError=a.onAuthError_;c.tg=a.testGaia_;c.contactStoreConfig=a.contactStoreConfig_;for(var d in a.commonAcParams_)c[d]=a.commonAcParams_[d];a=[].concat(p(b.pendingInputs.values()));b.emailac=oBc(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=Rp.prototype;
g.attachAutocomplete=function(a,b,c){a=Afc(document,a);var d=b||{};b=db(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new qBc(d),this.acWrappers_[c]=e);d=e;c=a;d.emailac?d.emailac.addInput(c):d.pendingInputs.add(c);this.inputToAcWrapper_[b]=e;e.emailac||(this.emailAcInitialized_?rBc(this,e):Ip(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[db(a)];b&&b(a)};g.detachAutocomplete=function(a){a=Afc(document,a);rF(a,"focus",this.onTargetFocus_,!1,this);var b=db(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};S7b("goog.NewContactTools",Rp);
S7b("goog.NewContactTools.create",pBc);Rp.prototype.setLocale=Rp.prototype.setLocale;Rp.prototype.attachAutocompleteTo=Rp.prototype.attachAutocompleteTo;Rp.prototype.initAutocomplete=Rp.prototype.initAutocomplete;Rp.prototype.attachAutocomplete=Rp.prototype.attachAutocomplete;Rp.prototype.detachAutocomplete=Rp.prototype.detachAutocomplete;GKa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(a!="")for(var f=new RegExp("(^|\\W+)"+ak(a),"i"),h=0;h<d.length&&e.length<b;h++){var k=d[h];String(k).match(f)&&e.push(k)}e.length==0&&(e=sBc(a,b,d));c(a,e)};
var JKa=function(a,b,c){return sBc(b,c,a.rows_)},sBc=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(k.indexOf(h)!=-1)q=parseInt((k.indexOf(h)/4).toString(),10);else for(var u=h.split(""),A=-1,G=10,H=void 0,N=0;H=u[N];N++)H=k.indexOf(H),H>A?(A=H-A-1,A>G-5&&(A=G-5),q+=A,A=H):(q+=G,G+=5);q<h.length*6&&d.push({str:f,score:q,index:e})}d.sort(function(O,U){var da=O.score-U.score;return da!=0?da:O.index-U.index});a=[];for(c=0;c<b&&c<d.length;c++)a.push(d[c].str);
return a};var $I=function(){var a=this;this.activeSession=n(Es);this.firstPartyAuthHelper=n(dI);this.acReadyDeferred=gk();this.contactTools=null;this.subscription=new ke;var b=n(cI),c=n(ZI);window.gapi&&UJa().then(function(d){d.config.update("googleapis.config/auth/useFirstPartyAuth",!0);d.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var e=a.activeSession.getEnvironmentType()==="QA";e&&d.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");var f=
"0",h=/\/u\/(\d+)\//.exec(b.platformLocation.href);h&&(f=h[1]);d.config.update("googleapis.config/sessionIndex",f);a.acReadyDeferred.resolve(void 0);a.contactTools=c.create(e,function(){swc(a.firstPartyAuthHelper)});a.contactTools.initAutocomplete()})};$I.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
$I.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return KKa(h,k,c)},f=new ke;this.acReadyDeferred.promise.then(function(){d.contactTools&&(d.contactTools.attachAutocomplete(a,{ac2:!0,groups:!0,extendedInterface:!1,filter:e,cacheBusting:[c]},b),f.add(function(){var h;(h=d.contactTools)==null||h.detachAutocomplete(a)}))});return f};$I.\u0275fac=function(a){return new (a||$I)};$I.\u0275prov=Sc({token:$I,factory:$I.\u0275fac,providedIn:"root"});var ZI=function(){};
ZI.prototype.create=function(a,b){var c=new gI,d=c.getUserInfo();Sl(d,6,a?5:1);a=c.getExperiments();a=Ol(a,5,!0);a=Ol(a,1,!0);a=Ol(a,3,!0);Ol(a,2,!0);c.setAuthErrorHandler(b);return pBc("xapi",c)};ZI.\u0275fac=function(a){return new (a||ZI)};ZI.\u0275prov=Sc({token:ZI,factory:ZI.\u0275fac,providedIn:"root"});var NKa=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var aJ=function(){};aJ.prototype.transform=function(a){return $p(a)};aJ.\u0275fac=function(a){return new (a||aJ)};aJ.\u0275pipe=Lf({name:"appendDomain",type:aJ,pure:!0,standalone:!1});var bJ=function(){Z.apply(this,arguments);this.element=n(ff);this.focusContacts=n($I);this.activeSession=n(Es);this.autocompleteActive=new LA;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};Y(bJ,Z);
bJ.prototype.ngOnInit=function(){var a=this;this.$element.setAttribute("autocomplete","off");this.$element.setAttribute("spellcheck","off");this.$element.setAttribute("aria-autocomplete","list");this.$element.setAttribute("role","combobox");this.$element.setAttribute("name","ac-workaround-"+Pdb());if(!this.activeSession.isAnonymous()){if(this.fieldType==="SINGLE")var b=function(){a.$element.value=MKa(OKa(a.$element.value));a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));
a.$element.dispatchEvent(new Event("input"))};else if(this.fieldType==="MULTI")b=function(){a.$element.value=PKa(a.$element.value);a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));a.$element.dispatchEvent(new Event("input"))};else throw Error("Rd`"+this.fieldType);var c=this.additionalContactsCallback();c=tBc(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var uBc=function(a){Se(150).pipe(gg(a.destroyed$)).subscribe(function(){var b=document.querySelector(".ac-renderer"),c;b=!!b&&((c=window.getComputedStyle(b))==null?void 0:c.display)!=="none";a.autocompleteActive.emit(b)})},tBc=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})};bJ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(bJ)))(b||bJ)}}();
bJ.\u0275dir=Kf({type:bJ,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&M("keydown",function(){return uBc(b)},hf)("mousedown",function(){return uBc(b)})},inputs:{fieldType:[0,"bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},standalone:!1,features:[kg]});var cJ=function(){};cJ.\u0275fac=function(a){return new (a||cJ)};cJ.\u0275mod=Jf({type:cJ});cJ.\u0275inj=Tc({imports:[ZB]});var QKa;var dJ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new hv;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};dJ.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};dJ.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
dJ.prototype.getRoot=function(){var a;return(a=RKa(this.elementRef.nativeElement))!=null?a:document};dJ.\u0275fac=function(a){return new (a||dJ)(zf(ff))};dJ.\u0275dir=Kf({type:dJ,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var eJ=function(){};eJ.\u0275fac=function(a){return new (a||eJ)};eJ.\u0275mod=Jf({type:eJ});eJ.\u0275inj=Tc({});var vBc=Symbol("Sd"),wBc=Symbol("Td"),fJ=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new hv;this[vBc]=new ag(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new tj(!1);this.closeHovercard$=new bg};fJ.prototype.ngOnInit=function(){};var xBc=function(a){var b=a[wBc];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[vBc].pipe(Wf(0))):Ce(void 0)};fJ.\u0275fac=function(a){return new (a||fJ)(zf(Ug))};
fJ.\u0275cmp=B({type:fJ,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&Wg(Tg,7);if(a&2){var c;$g(c=ah())&&(b.templateRef=c.first)}},inputs:{className:"className"},outputs:{onHide:"onHide"},exportAs:["onedevHovercard"],standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,consts:[["cdkTrapFocus","",3,"clickOutside","mouseenter","mouseleave","cdkTrapFocusAutoCapture"]],template:function(a){a&1&&(Ng(),C(0,SKa,2,3,"ng-template"))},dependencies:[qw,dJ],styles:[".onedev-hovercard{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15);border-radius:4px;overflow:hidden}"],
encapsulation:2});var gJ=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[wBc]=this};gJ.\u0275fac=function(a){return new (a||gJ)(zf(Tg),zf(Ug),zf(qv),zf(fJ))};gJ.\u0275dir=Kf({type:gJ,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var hJ=function(a){this.hovercard=a;this.destroyed$=new ag(1)};hJ.prototype.ngOnDestroy=function(){this.destroyed$.next()};hJ.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(gg(this.destroyed$)).subscribe(this.hovercard[vBc])};
hJ.\u0275fac=function(a){return new (a||hJ)(zf(fJ))};hJ.\u0275dir=Kf({type:hJ,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var yBc={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},zBc={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},ABc={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},BBc=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},yBc,ABc,{originX:"end",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:10,offsetY:10},{originX:"end",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:10,
offsetY:-10}];var iJ=function(){this.showDelay=600;this.hideDelay=400;this.position=BBc;this.triggerKey=[]},jJ=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new iJ;this.active=!1;this.hovercardShown$=new ag(1);this.hide$=new bg;this.hovercard$=new tj(null);this.isHovered$=new tj(!1);this.isKeyboardActivated$=new tj(!1);this.destroyed$=new ag(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(CBc(c),e.stopPropagation(),e.preventDefault())};DBc(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(gg(this.destroyed$)).subscribe()},DBc=function(a){EBc(a).pipe(gg(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};jJ.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(fg(function(b){return(b==null?void 0:b.closeHovercard$)||ev}),gg(this.destroyed$)).subscribe(function(){CBc(a)})};jJ.prototype.dispose=function(){FBc(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
jJ.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};jJ.prototype.toggle=function(a){this.isHovered$.next(a)};var CBc=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
jJ.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,xBc(this.hovercard$.getValue()).pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};jJ.prototype.hide=function(){FBc(this);this.hide$.next()};
var FBc=function(a){if(a.overlayRef&&a.overlayRef.hasAttached()){document.removeEventListener("keydown",a.onDocumentKeyDown);var b;(b=a.hovercard$.getValue())!=null&&b.onHide.emit();a.overlayRef.detach()}};jJ.prototype.getPositionStrategy=function(){return hx(ix(jx(mx(this.overlay.position(),this.origin)),8),this.config.position)};
var EBc=function(a){return Je([GBc(a).pipe(eg(!1)),a.isKeyboardActivated$]).pipe(dg(1),y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}),fg(function(b){var c;return((c=a.waitFor$)==null?void 0:c.pipe(Tf(b)))||Ce(b)}))},GBc=function(a){return a.hovercard$.pipe(fg(function(b){return Je([a.isHovered$,(b==null?void 0:b.isOnHover$)||Ce(!1)]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),Jja(function(c){return c?Se(a.config.showDelay):Se(a.config.hideDelay)}),
gg(a.destroyed$))}))};var HBc=new yd("PRODUCTION_ALLOWLIST",{factory:function(){return"l2YMRd lfR6bb iQyyte LhFyIb aVezrf i1iYkd dVgi5c kMzkoe pglXEd AbcbBc Yc0Dnb cvLsDf UAiaPe NdZs2d elAd5d q7HsZb kbrYBc qX517e KmD3Se w0tcsb qrMtRe".split(" ")}}),IBc=new yd("STREAMZ_PRODUCT_IDENTIFIER"),JBc=new yd("STREAMZ_ALLOWLIST_IDENTIFIER"),KBc=new yd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return n(ph).runOutsideAngular(function(){var a=new nF(1503);a=new Pqc(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),kJ=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new tfc(this.streamzService);new ufc(this.streamzService);new vfc(this.streamzService);new wfc(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(ixc);this.allowlistIdentifier=hxc(e!=null?e:this.productIdentifier)},MBc=function(a,b,c){a.zone.runOutsideAngular(function(){LBc(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},LBc=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};kJ.\u0275fac=function(a){return new (a||kJ)(nd(KBc),nd(ph),nd(HBc),nd(IBc,8),nd(JBc,8))};kJ.\u0275prov=Sc({token:kJ,factory:kJ.\u0275fac,providedIn:"root"});var NBc=new yd("onedevHovercardLoggingOn"),lJ=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new iJ;this.onHovercardShown=new hv;this.destroyed$=new ag(1);this.triggerControl=new jJ(a,b);this.triggerControl.hovercardShown$.pipe(ig(d||Ce(!1)),gg(this.destroyed$)).subscribe(function(h){h=l(h);h.next();h=h.next().value;f.onHovercardShown.emit();h&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(kJ)),MBc(f.clientStreamzService,"hovercardShown",!0))})};
g=lJ.prototype;g.ngOnChanges=function(a){if(a.hovercard){var b;a=(b=a.hovercard)==null?void 0:b.currentValue;this.triggerControl.hovercard$.next(a);if(a){b=this.triggerControl;var c=this.viewContainerRef;b.config=this.config;b.overlayRef=b.overlay.create({positionStrategy:b.getPositionStrategy(),scrollStrategy:b.overlay.scrollStrategies.reposition()});b.templatePortal=new px(a.templateRef,c);b.hovercard$.next(a)}}};g.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
g.isExpanded=function(){return this.triggerControl.isExpanded()};g.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};g.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};ea.Object.defineProperties(lJ.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
lJ.\u0275fac=function(a){return new (a||lJ)(zf(vx),zf(ff),zf(Ug),zf(NBc,8),zf(Ze))};
lJ.\u0275dir=Kf({type:lJ,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&M("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("keydown.alt.arrowRight",function(c){var d=b.triggerControl;c.stopPropagation();c.preventDefault();d.isKeyboardActivated$.next(!0)})("keydown",function(c){return b.onKeyDown(c)});a&2&&ng("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:[0,"onedevHovercardTrigger",
"hovercard"],enabled:[0,"onedevHovercardActive","enabled"],config:[0,"onedevHovercardConfig","config"]},outputs:{onHovercardShown:"onedevHovercardShown"},exportAs:["onedevHovercardTrigger"],standalone:!1,features:[Uu]});var OBc=function(a){return["chip","gmat-caption",a]},mJ=function(){this.variant="grey";this.isTall=!1};mJ.\u0275fac=function(a){return new (a||mJ)};
mJ.\u0275cmp=B({type:mJ,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},standalone:!1,ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"div",1),Og(2),J()());a&2&&D("ngClass",jh(1,OBc,b.variant))},dependencies:[Mv],styles:["[_nghost-%COMP%]{--chip-grey-bg:var(--grey-100,#f1f3f4);--chip-blue-bg:var(--blue-50,#e8f0fe);--chip-red-bg:var(--red-50,#fce8e6);--chip-yellow-bg:var(--yellow-50,#fef7e0);--chip-green-bg:var(--green-50,#e6f4ea);--chip-orange-bg:var(--orange-50,#feefe3);--chip-pink-bg:var(--pink-50,#fde7f3);--chip-purple-bg:var(--purple-50,#f3e8fd);--chip-cyan-bg:var(--cyan-50,#e4f7fb);--chip-grey-icon:var(--grey-700,#5f6368);--chip-blue-icon:var(--blue-700,#1967d2);--chip-red-icon:var(--red-700,#c5221f);--chip-yellow-icon:#9b5400;--chip-green-icon:var(--green-800,#137333);--chip-orange-icon:#9b5400;--chip-pink-icon:var(--pink-800,#b80672);--chip-purple-icon:var(--purple-700,#8430ce);--chip-cyan-icon:var(--cyan-900,#007b83);--chip-text:var(--text-default,#202124)}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{border-radius:12px;height:24px;font-weight:500}.tall[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{height:16px;margin-right:4px}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-grey-bg:#505357;--chip-blue-bg:#314972;--chip-red-bg:#6c322f;--chip-yellow-bg:#725d1e;--chip-green-bg:#2c553a;--chip-orange-bg:#714625;--chip-pink-bg:#702f55;--chip-purple-bg:#523272;--chip-cyan-bg:#275e6b;--chip-grey-icon:var(--grey-200,#e8eaed);--chip-blue-icon:var(--blue-200,#aecbfa);--chip-red-icon:var(--red-200,#f6aea9);--chip-yellow-icon:var(--yellow-200,#fde293);--chip-green-icon:var(--green-200,#a8dab5);--chip-orange-icon:var(--orange-200,#fdc69c);--chip-pink-icon:var(--pink-200,#fba9d6);--chip-purple-icon:var(--purple-200,#d7aefb);--chip-cyan-icon:var(--cyan-200,#a1e4f2);--chip-text:var(--white,#fff)}.chip[_ngcontent-%COMP%]{background-color:var(--chip-grey-bg);border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px}.chip[_ngcontent-%COMP%]   .centering[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;line-height:12px;margin-bottom:4px;margin-top:4px}.chip.yellow[_ngcontent-%COMP%]{background-color:var(--chip-yellow-bg)}.chip.green[_ngcontent-%COMP%]{background-color:var(--chip-green-bg)}.chip.blue[_ngcontent-%COMP%]{background-color:var(--chip-blue-bg)}.chip.orange[_ngcontent-%COMP%]{background-color:var(--chip-orange-bg)}.chip.pink[_ngcontent-%COMP%]{background-color:var(--chip-pink-bg)}.chip.cyan[_ngcontent-%COMP%]{background-color:var(--chip-cyan-bg)}.chip.red[_ngcontent-%COMP%]{background-color:var(--chip-red-bg)}.chip.purple[_ngcontent-%COMP%]{background-color:var(--chip-purple-bg)}.chip.none[_ngcontent-%COMP%]{background-color:transparent;color:inherit}"],
changeDetection:0});var PBc=function(a){this.chip=a};PBc.\u0275fac=function(a){return new (a||PBc)(zf(mJ))};PBc.\u0275dir=Kf({type:PBc,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&vg("color","var(--chip-"+b.chip.variant+"-icon")("font-size",b.chip.isTall?"16px":"12px")("height",b.chip.isTall?"16px":"12px")("margin","0 4px 0 0")("width",b.chip.isTall?"16px":"12px")},standalone:!1});var nJ=function(){};nJ.\u0275fac=function(a){return new (a||nJ)};nJ.\u0275mod=Jf({type:nJ});nJ.\u0275inj=Tc({imports:[Yv]});var QBc=function(){};QBc.\u0275fac=function(a){return new (a||QBc)};QBc.\u0275cmp=B({type:QBc,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&ng("aria-hidden",!0)},standalone:!1,attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&Q(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var oJ=function(){};oJ.\u0275fac=function(a){return new (a||oJ)};oJ.\u0275mod=Jf({type:oJ});oJ.\u0275inj=Tc({});var RBc=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],SBc=function(a){return{"with-avatar":a}},pJ=function(){};pJ.prototype.ngOnInit=function(){};pJ.\u0275fac=function(a){return new (a||pJ)};
pJ.\u0275cmp=B({type:pJ,selectors:[["onedev-person-hovercard-body"]],inputs:{person:"person",outOfOfficeDescription:"outOfOfficeDescription"},ngContentSelectors:["[onedev-additional-content]","onedev-hovercard-action"],decls:14,vars:10,consts:[["role","dialog","aria-label","Person hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"contact-info",3,"ngClass"],["aria-hidden","true","class","avatar",3,"src","alt",4,"ngIf"],[1,"name","gmat-headline-4"],["class","email gmat-body-3",
4,"ngIf"],["class","chips gmat-caption",4,"ngIf"],[1,"content","gmat-body-3"],[4,"ngIf"],["aria-hidden","true",1,"avatar",3,"src","alt"],[1,"email","gmat-body-3"],[1,"chips","gmat-caption"],["variant","yellow"],["onedevChipIcon","","svgIcon","event_busy_24px"],["svgIcon","work_outline_24px"],[1,"detail"],[1,"dot-separated-list"],["onedevDot","",4,"ngIf"],["onedevDot",""],["svgIcon","location_pin_24px"],["svgIcon","link_24px"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(a,
b){a&1&&(Ng(RBc),I(0,"div",0)(1,"div",1)(2,"div",2),C(3,TKa,1,2,"img",3),I(4,"div",4),Q(5),J(),C(6,UKa,2,1,"div",5),J(),C(7,VKa,4,1,"div",6),I(8,"div",7),C(9,ZKa,7,3,"ng-container",8)(10,$Ka,4,1,"ng-container",8)(11,aLa,19,4,"ng-container",8),Og(12),J()(),Og(13,1),J());a&2&&(z(2),D("ngClass",jh(8,SBc,b.person.imageUrl)),z(),D("ngIf",b.person.imageUrl),z(2),ch(b.person.name||b.person.email),z(),D("ngIf",b.person.name),z(),D("ngIf",b.outOfOfficeDescription),z(2),D("ngIf",b.person.title||b.person.department),
z(),D("ngIf",b.person.location),z(),D("ngIf",b.person.ldap))},dependencies:[nJ,mJ,PBc,Yv,Mv,Ov,oJ,QBc,YB,aB],styles:[".onedev-hovercard-content{--onedev-card-background:var(--surface-default,#fff);--onedev-card-title-text:var(--text-default,#202124);--onedev-card-icon:var(--icon,#5f6368);--onedev-card-secondary-text:var(--text-secondary,#5f6368);--onedev-card-link-color:var(--primary-default,#1a73e8)}.onedev-hovercard-content{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content .onedev-hovercard-body{padding:20px}.onedev-hovercard-content .onedev-hovercard-body a{color:var(--onedev-card-link-color)}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar{display:grid;grid-template-columns:48px auto;-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}.onedev-hovercard-content .onedev-hovercard-body .contact-info.with-avatar .avatar{grid-row:1/span 2}.onedev-hovercard-content .onedev-hovercard-body .contact-info .name{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content .onedev-hovercard-body .contact-info .email{grid-row:2;grid-column:2}.onedev-hovercard-content .onedev-hovercard-body .title{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content .onedev-hovercard-body .chips{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body mat-icon{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content .onedev-hovercard-body .content{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content .onedev-hovercard-body .content .detail{margin-top:2px}.onedev-hovercard-content .onedev-hovercard-body .content:empty{margin-top:0}.onedev-hovercard-content .onedev-hovercard-body .subcontent:not(:last-child){margin-bottom:8px}.onedev-hovercard-content .onedev-hovercard-body .label{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content .onedev-hovercard-body .dot-separated-list li{display:inline}.onedev-hovercard-content .avatar{border-radius:50%;object-fit:cover;height:48px;width:48px}"],
encapsulation:2,changeDetection:0});var TBc=new yd("API_VERSION"),UBc=new yd("REQUEST_SERVICE for people-pa_api_client"),VBc={$Xgafv:"$.xgafv",abuseCheckParamsRfaChecks:"abuseCheckParams.rfaChecks",access_token:"access_token",affinityType:"affinityType",alt:"alt",authDelegationContextContactsEncryptedOwnerId:"authDelegationContext.contacts.encryptedOwnerId",authDelegationContextDelegationType:"authDelegationContext.delegationType",authDelegationContextGriffinObfuscatedOwnerId:"authDelegationContext.griffin.obfuscatedOwnerId",authDelegationContextMadisonMadisonGaiaId:"authDelegationContext.madison.madisonGaiaId",
authDelegationContextMadisonObfuscatedMadisonId:"authDelegationContext.madison.obfuscatedMadisonId",authDelegationContextObfuscatedOwnerId:"authDelegationContext.obfuscatedOwnerId",authDelegationContextUnicornObfuscatedOwnerId:"authDelegationContext.unicorn.obfuscatedOwnerId",backgroundPhotoContactId:"backgroundPhotoContactId",backgroundPhotoProfileId:"backgroundPhotoProfileId",blockDirection:"blockDirection",callback:"callback",canonicalPhone:"canonicalPhone",client:"client",clientId:"client.id",
clientVersionClientAgent:"clientVersion.clientAgent",clientVersionClientType:"clientVersion.clientType",clientVersionClientVersion:"clientVersion.clientVersion",clientVersionGmsCoreContextAppManagementContext:"clientVersion.gmsCoreContext.appManagementContext",clientVersionGmsCoreContextIsFirstParty:"clientVersion.gmsCoreContext.isFirstParty",clientVersionGmsCoreContextPackageName:"clientVersion.gmsCoreContext.packageName",clientVersionGmsCoreContextPackageSignature:"clientVersion.gmsCoreContext.packageSignature",
consentOptionsStrategy:"consentOptions.strategy",consistencyOptionsConsistentReadOverrideType:"consistencyOptions.consistentReadOverrideType",consistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"consistencyOptions.directoryConsistencyOptions.directoryVersionToken",consistencyOptionsLevel:"consistencyOptions.level",consistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",consistencyOptionsLevelOptionsExactTimestamp:"consistencyOptions.levelOptions.exactTimestamp",
consistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contactId:"contactId",contactListType:"contactListType",contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",contextAuthDelegationContextContactsEncryptedOwnerId:"context.authDelegationContext.contacts.encryptedOwnerId",
contextAuthDelegationContextDelegationType:"context.authDelegationContext.delegationType",contextAuthDelegationContextGriffinObfuscatedOwnerId:"context.authDelegationContext.griffin.obfuscatedOwnerId",contextAuthDelegationContextMadisonMadisonGaiaId:"context.authDelegationContext.madison.madisonGaiaId",contextAuthDelegationContextMadisonObfuscatedMadisonId:"context.authDelegationContext.madison.obfuscatedMadisonId",contextAuthDelegationContextObfuscatedOwnerId:"context.authDelegationContext.obfuscatedOwnerId",
contextAuthDelegationContextUnicornObfuscatedOwnerId:"context.authDelegationContext.unicorn.obfuscatedOwnerId",contextClientType:"context.clientType",contextClientVersionClientAgent:"context.clientVersion.clientAgent",contextClientVersionClientType:"context.clientVersion.clientType",contextClientVersionClientVersion:"context.clientVersion.clientVersion",contextClientVersionGmsCoreContextAppManagementContext:"context.clientVersion.gmsCoreContext.appManagementContext",contextClientVersionGmsCoreContextIsFirstParty:"context.clientVersion.gmsCoreContext.isFirstParty",
contextClientVersionGmsCoreContextPackageName:"context.clientVersion.gmsCoreContext.packageName",contextClientVersionGmsCoreContextPackageSignature:"context.clientVersion.gmsCoreContext.packageSignature",contextConsistencyContextBase64EncodedZookie:"context.consistencyContext.base64EncodedZookie",contextConsistencyContextDirectoryVersionToken:"context.consistencyContext.directoryVersionToken",contextConsistencyContextFbsRequireAllImportantWritesUpToTime:"context.consistencyContext.fbsRequireAllImportantWritesUpToTime",
contextConsistencyContextFbsVersionInfo:"context.consistencyContext.fbsVersionInfo",contextConsistencyOptionsConsistentReadOverrideType:"context.consistencyOptions.consistentReadOverrideType",contextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"context.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",contextConsistencyOptionsLevel:"context.consistencyOptions.level",contextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",
contextConsistencyOptionsLevelOptionsExactTimestamp:"context.consistencyOptions.levelOptions.exactTimestamp",contextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",contextMigrationOptionsUseClusterBased:"context.migrationOptions.useClusterBased",contextMigrationOptionsUseLegacyRequestMaskBehavior:"context.migrationOptions.useLegacyRequestMaskBehavior",contextMigrationOptionsUseNewRequestMaskBehavior:"context.migrationOptions.useNewRequestMaskBehavior",
contextRequestGroupLoggingId:"context.requestGroupLoggingId",contextRightOfPublicityContext:"context.rightOfPublicityContext",coreIdParamsCheckIdentityAcl:"coreIdParams.checkIdentityAcl",coreIdParamsEnablePrivateAccountEmails:"coreIdParams.enablePrivateAccountEmails",coreIdParamsEnablePrivateNames:"coreIdParams.enablePrivateNames",coreIdParamsEnforceEdsConditionEnforceEdsType:"coreIdParams.enforceEdsCondition.enforceEdsType",coreIdParamsIdentityAclOptionsContextConfigName:"coreIdParams.identityAclOptions.context.configName",
coreIdParamsIdentityAclOptionsContextObjectId:"coreIdParams.identityAclOptions.context.objectId",coreIdParamsIdentityAclOptionsContextObjectPart:"coreIdParams.identityAclOptions.context.objectPart",coreIdParamsIdentityAclOptionsContextZookie:"coreIdParams.identityAclOptions.context.zookie",coreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"coreIdParams.identityAclOptions.groupServiceContext.groupName",coreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",
coreIdParamsIdentityAclOptionsGroupServiceContextZookie:"coreIdParams.identityAclOptions.groupServiceContext.zookie",coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsProfileAccessTokensInteractionTokens:"coreIdParams.profileAccessTokens.interactionTokens",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",
coreNameCoreProfileFirstName:"coreName.coreProfileFirstName",coreNameCoreProfileLastName:"coreName.coreProfileLastName",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsCorpHeaderPreference:"dataFormats.profilePhotoOptions.corpHeaderPreference",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",dataJoinParamsPhoneStalenessSpec:"dataJoinParams.phoneStalenessSpec",
dataJoinParamsProfileJoinType:"dataJoinParams.profileJoinType",dedupeOption:"dedupeOption",delayFullSync:"delayFullSync",delegatedGroupIdDelegatedGroupId:"delegatedGroupId.delegatedGroupId",deleteContacts:"deleteContacts",deleteTrashedContacts:"deleteTrashedContacts",deletionContextMutationContextAndroidDeviceInfoId:"deletionContext.mutationContext.androidDeviceInfo.id",deletionContextMutationContextHostAppInfoHostAppName:"deletionContext.mutationContext.hostAppInfo.hostAppName",deletionContextMutationContextSource:"deletionContext.mutationContext.source",
deletionContextMutationContextThirdPartyInfoClientName:"deletionContext.mutationContext.thirdPartyInfo.clientName",deletionContextMutationContextThirdPartyInfoProjectNumber:"deletionContext.mutationContext.thirdPartyInfo.projectNumber",deletionContextMutationContextTimestamp:"deletionContext.mutationContext.timestamp",deviceId:"deviceId",deviceIdentifierClientInstanceId:"deviceIdentifier.clientInstanceId",deviceIdentityDeviceId:"deviceIdentity.deviceId",dryRunOptionsDryRunMode:"dryRunOptions.dryRunMode",
extensionSetExtendedRequestDataPeopleBackendExtensionApplication:"extensionSet.extendedRequestData.peopleBackendExtension.application",extensionSetExtensionNames:"extensionSet.extensionNames",fieldFilterField:"fieldFilter.field",fieldMask:"fieldMask",fieldValueFilterAdminAssistants:"fieldValueFilter.adminAssistants",fieldValueFilterDottedLineManagers:"fieldValueFilter.dottedLineManagers",fieldValueFilterExecAssistants:"fieldValueFilter.execAssistants",fieldValueFilterIndirectManagers:"fieldValueFilter.indirectManagers",
fieldValueFilterIndirectManagersWithMaxNumHops:"fieldValueFilter.indirectManagersWithMaxNumHops",fieldValueFilterManagers:"fieldValueFilter.managers",fieldValueFilterProfileExternalIdCustomTag:"fieldValueFilter.profileExternalId.customTag",fieldValueFilterProfileExternalIdStandardTag:"fieldValueFilter.profileExternalId.standardTag",fieldValueFilterProfileExternalIdValue:"fieldValueFilter.profileExternalId.value",fields:"fields",getPeopleRequestAbuseCheckParamsRfaChecks:"getPeopleRequest.abuseCheckParams.rfaChecks",
getPeopleRequestContextAllowedRequesterState:"getPeopleRequest.context.allowedRequesterState",getPeopleRequestContextAuthDelegationContextContactsEncryptedOwnerId:"getPeopleRequest.context.authDelegationContext.contacts.encryptedOwnerId",getPeopleRequestContextAuthDelegationContextDelegationType:"getPeopleRequest.context.authDelegationContext.delegationType",getPeopleRequestContextAuthDelegationContextGriffinObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.griffin.obfuscatedOwnerId",
getPeopleRequestContextAuthDelegationContextMadisonMadisonGaiaId:"getPeopleRequest.context.authDelegationContext.madison.madisonGaiaId",getPeopleRequestContextAuthDelegationContextMadisonObfuscatedMadisonId:"getPeopleRequest.context.authDelegationContext.madison.obfuscatedMadisonId",getPeopleRequestContextAuthDelegationContextObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.obfuscatedOwnerId",getPeopleRequestContextAuthDelegationContextUnicornObfuscatedOwnerId:"getPeopleRequest.context.authDelegationContext.unicorn.obfuscatedOwnerId",
getPeopleRequestContextClientType:"getPeopleRequest.context.clientType",getPeopleRequestContextClientVersionClientAgent:"getPeopleRequest.context.clientVersion.clientAgent",getPeopleRequestContextClientVersionClientType:"getPeopleRequest.context.clientVersion.clientType",getPeopleRequestContextClientVersionClientVersion:"getPeopleRequest.context.clientVersion.clientVersion",getPeopleRequestContextClientVersionGmsCoreContextAppManagementContext:"getPeopleRequest.context.clientVersion.gmsCoreContext.appManagementContext",
getPeopleRequestContextClientVersionGmsCoreContextIsFirstParty:"getPeopleRequest.context.clientVersion.gmsCoreContext.isFirstParty",getPeopleRequestContextClientVersionGmsCoreContextPackageName:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageName",getPeopleRequestContextClientVersionGmsCoreContextPackageSignature:"getPeopleRequest.context.clientVersion.gmsCoreContext.packageSignature",getPeopleRequestContextConsistencyContextDirectoryVersionToken:"getPeopleRequest.context.consistencyContext.directoryVersionToken",
getPeopleRequestContextConsistencyOptionsConsistentReadOverrideType:"getPeopleRequest.context.consistencyOptions.consistentReadOverrideType",getPeopleRequestContextConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"getPeopleRequest.context.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",getPeopleRequestContextConsistencyOptionsLevel:"getPeopleRequest.context.consistencyOptions.level",getPeopleRequestContextConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"getPeopleRequest.context.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",
getPeopleRequestContextConsistencyOptionsLevelOptionsExactTimestamp:"getPeopleRequest.context.consistencyOptions.levelOptions.exactTimestamp",getPeopleRequestContextConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"getPeopleRequest.context.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",getPeopleRequestContextMigrationOptionsUseClusterBased:"getPeopleRequest.context.migrationOptions.useClusterBased",getPeopleRequestContextMigrationOptionsUseLegacyRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useLegacyRequestMaskBehavior",
getPeopleRequestContextMigrationOptionsUseNewRequestMaskBehavior:"getPeopleRequest.context.migrationOptions.useNewRequestMaskBehavior",getPeopleRequestContextRequestGroupLoggingId:"getPeopleRequest.context.requestGroupLoggingId",getPeopleRequestContextRightOfPublicityContext:"getPeopleRequest.context.rightOfPublicityContext",getPeopleRequestCoreIdParamsCheckIdentityAcl:"getPeopleRequest.coreIdParams.checkIdentityAcl",getPeopleRequestCoreIdParamsEnablePrivateAccountEmails:"getPeopleRequest.coreIdParams.enablePrivateAccountEmails",
getPeopleRequestCoreIdParamsEnablePrivateNames:"getPeopleRequest.coreIdParams.enablePrivateNames",getPeopleRequestCoreIdParamsEnforceEdsConditionEnforceEdsType:"getPeopleRequest.coreIdParams.enforceEdsCondition.enforceEdsType",getPeopleRequestCoreIdParamsIdentityAclOptionsContextConfigName:"getPeopleRequest.coreIdParams.identityAclOptions.context.configName",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectId:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectId",getPeopleRequestCoreIdParamsIdentityAclOptionsContextObjectPart:"getPeopleRequest.coreIdParams.identityAclOptions.context.objectPart",
getPeopleRequestCoreIdParamsIdentityAclOptionsContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.context.zookie",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextGroupName:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.groupName",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextOwnerGaiaId:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.ownerGaiaId",getPeopleRequestCoreIdParamsIdentityAclOptionsGroupServiceContextZookie:"getPeopleRequest.coreIdParams.identityAclOptions.groupServiceContext.zookie",
getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",getPeopleRequestCoreIdParamsProfileAccessTokensInteractionTokens:"getPeopleRequest.coreIdParams.profileAccessTokens.interactionTokens",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",
getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",getPeopleRequestDataFormatsProfilePhotoOptionsCorpHeaderPreference:"getPeopleRequest.dataFormats.profilePhotoOptions.corpHeaderPreference",getPeopleRequestDataFormatsProfilePhotoOptionsPrivateUrlFormat:"getPeopleRequest.dataFormats.profilePhotoOptions.privateUrlFormat",getPeopleRequestDedupeOption:"getPeopleRequest.dedupeOption",getPeopleRequestExtensionSetExtendedRequestDataPeopleBackendExtensionApplication:"getPeopleRequest.extensionSet.extendedRequestData.peopleBackendExtension.application",
getPeopleRequestExtensionSetExtensionNames:"getPeopleRequest.extensionSet.extensionNames",getPeopleRequestIncludeFieldAcl:"getPeopleRequest.includeFieldAcl",getPeopleRequestIncludedProfileStates:"getPeopleRequest.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsCertificateParamsRequestCertificates:"getPeopleRequest.mergedPersonSourceOptions.certificateParams.requestCertificates",getPeopleRequestMergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",
getPeopleRequestMergedPersonSourceOptionsDataJoinParamsProfileJoinType:"getPeopleRequest.mergedPersonSourceOptions.dataJoinParams.profileJoinType",getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",getPeopleRequestMergedPersonSourceOptionsDeviceContactFilterFilterType:"getPeopleRequest.mergedPersonSourceOptions.deviceContactFilter.filterType",getPeopleRequestMergedPersonSourceOptionsIncludeAccountLocale:"getPeopleRequest.mergedPersonSourceOptions.includeAccountLocale",
getPeopleRequestMergedPersonSourceOptionsIncludeAffinity:"getPeopleRequest.mergedPersonSourceOptions.includeAffinity",getPeopleRequestMergedPersonSourceOptionsIncludedContactDeletionStates:"getPeopleRequest.mergedPersonSourceOptions.includedContactDeletionStates",getPeopleRequestMergedPersonSourceOptionsIncludedProfileStates:"getPeopleRequest.mergedPersonSourceOptions.includedProfileStates",getPeopleRequestMergedPersonSourceOptionsPersonModelParamsPersonModel:"getPeopleRequest.mergedPersonSourceOptions.personModelParams.personModel",
getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPhotoTypes",getPeopleRequestMergedPersonSourceOptionsPlaceParamsRequestPlaces:"getPeopleRequest.mergedPersonSourceOptions.placeParams.requestPlaces",getPeopleRequestMergedPersonSourceOptionsReplaceIantWithGiant:"getPeopleRequest.mergedPersonSourceOptions.replaceIantWithGiant",getPeopleRequestPersonId:"getPeopleRequest.personId",getPeopleRequestRequestConfigContextConfigKey:"getPeopleRequest.requestConfigContext.configKey",
getPeopleRequestRequestConfigContextVersion:"getPeopleRequest.requestConfigContext.version",getPeopleRequestRequestMaskCustomRequestMask:"getPeopleRequest.requestMask.customRequestMask",getPeopleRequestRequestMaskImageUrlType:"getPeopleRequest.requestMask.imageUrlType",getPeopleRequestRequestMaskIncludeContainer:"getPeopleRequest.requestMask.includeContainer",getPeopleRequestRequestMaskIncludeField:"getPeopleRequest.requestMask.includeField",getPeopleRequestRequestMaskIncludePeopleInCommon:"getPeopleRequest.requestMask.includePeopleInCommon",
getPeopleRequestRequestMaskPersonAttribute:"getPeopleRequest.requestMask.personAttribute",getPeopleRequestRequestMaskPhotoOptionsPrivateUrlFormat:"getPeopleRequest.requestMask.photoOptions.privateUrlFormat",getPeopleRequestRequestMaskProductContactGroup:"getPeopleRequest.requestMask.productContactGroup",graphRestricts:"graphRestricts",groupExtensionSetExtensionNames:"groupExtensionSet.extensionNames",groupId:"groupId",id:"id",includeAllAvailableSources:"includeAllAvailableSources",includeAllReachablePeople:"includeAllReachablePeople",
includeBlocks:"includeBlocks",includeContent:"includeContent",includeFieldAcl:"includeFieldAcl",includeLinkedPeople:"includeLinkedPeople",includeOthers:"includeOthers",includedProfileStates:"includedProfileStates",invalidatePriorTokens:"invalidatePriorTokens",key:"key",listFilterParamsContainer:"listFilterParams.container",listFilterParamsExcludeUnreachablePeople:"listFilterParams.excludeUnreachablePeople",matchType:"matchType",maxContacts:"maxContacts",mergedPersonSourceOptionsCertificateParamsRequestCertificates:"mergedPersonSourceOptions.certificateParams.requestCertificates",
mergedPersonSourceOptionsDataJoinParamsPhoneStalenessSpec:"mergedPersonSourceOptions.dataJoinParams.phoneStalenessSpec",mergedPersonSourceOptionsDataJoinParamsProfileJoinType:"mergedPersonSourceOptions.dataJoinParams.profileJoinType",mergedPersonSourceOptionsDeviceContactFilterDeviceIdentifierClientInstanceId:"mergedPersonSourceOptions.deviceContactFilter.deviceIdentifier.clientInstanceId",mergedPersonSourceOptionsDeviceContactFilterFilterType:"mergedPersonSourceOptions.deviceContactFilter.filterType",
mergedPersonSourceOptionsIncludeAccountLocale:"mergedPersonSourceOptions.includeAccountLocale",mergedPersonSourceOptionsIncludeAffinity:"mergedPersonSourceOptions.includeAffinity",mergedPersonSourceOptionsIncludedContactDeletionStates:"mergedPersonSourceOptions.includedContactDeletionStates",mergedPersonSourceOptionsIncludedProfileStates:"mergedPersonSourceOptions.includedProfileStates",mergedPersonSourceOptionsPersonModelParamsPersonModel:"mergedPersonSourceOptions.personModelParams.personModel",
mergedPersonSourceOptionsPlaceParamsRequestPhotoTypes:"mergedPersonSourceOptions.placeParams.requestPhotoTypes",mergedPersonSourceOptionsPlaceParamsRequestPlaces:"mergedPersonSourceOptions.placeParams.requestPlaces",mergedPersonSourceOptionsReplaceIantWithGiant:"mergedPersonSourceOptions.replaceIantWithGiant",oauth_token:"oauth_token",objectTypesRestricts:"objectTypesRestricts",options:"options",orderBy:"orderBy",pageSize:"pageSize",pageToken:"pageToken",pagingOptionsPageSize:"pagingOptions.pageSize",
pagingOptionsPageToken:"pagingOptions.pageToken",peopleType:"peopleType",personAttribute:"personAttribute",personExpansion:"personExpansion",personId:"personId",phoneBasedAclParamsReaderPhone:"phoneBasedAclParams.readerPhone",phoneLookupQuotaOptionsQuotaBypassTokenOptions:"phoneLookupQuotaOptions.quotaBypassTokenOptions",phoneLookupQuotaOptionsQuotaBypassTokens:"phoneLookupQuotaOptions.quotaBypassTokens",phoneLookupQuotaOptionsQuotaLimitBehavior:"phoneLookupQuotaOptions.quotaLimitBehavior",phones:"phones",
photoOptionsMaxHeight:"photoOptions.maxHeight",photoOptionsMaxWidth:"photoOptions.maxWidth",placeParamsRequestPlaces:"placeParams.requestPlaces",postPhotoMutateReadOption:"postPhotoMutateReadOption",prefixQuery:"prefixQuery",prettyPrint:"prettyPrint",profileId:"profileId",profileLookupOptionsEmailLookupOption:"profileLookupOptions.emailLookupOption",profileLookupOptionsExcludeGaiaAccountTypes:"profileLookupOptions.excludeGaiaAccountTypes",profileLookupOptionsUseTrustedClientPhoneLookupQuota:"profileLookupOptions.useTrustedClientPhoneLookupQuota",
query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskImageUrlType:"requestMask.imageUrlType",requestMaskIncludeContainer:"requestMask.includeContainer",requestMaskIncludeField:"requestMask.includeField",requestMaskIncludePeopleInCommon:"requestMask.includePeopleInCommon",
requestMaskPersonAttribute:"requestMask.personAttribute",requestMaskPhotoOptionsPrivateUrlFormat:"requestMask.photoOptions.privateUrlFormat",requestMaskProductContactGroup:"requestMask.productContactGroup",requestOptionsProfilePhotoOptionsCorpHeaderPreference:"requestOptions.profilePhotoOptions.corpHeaderPreference",requestOptionsProfilePhotoOptionsPrivateUrlFormat:"requestOptions.profilePhotoOptions.privateUrlFormat",requestOptionsRequireConsistency:"requestOptions.requireConsistency",requestOptionsTreatRestrictsAsFilter:"requestOptions.treatRestrictsAsFilter",
requireCompleteResults:"requireCompleteResults",returnedFieldAcl:"returnedFieldAcl",searchSettingsMinTotalItemsAccuracy:"searchSettings.minTotalItemsAccuracy",searchSettingsNumToScore:"searchSettings.numToScore",searchSettingsScoringType:"searchSettings.scoringType",skipPostMutateGet:"skipPostMutateGet",sortOptionsSortField:"sortOptions.sortField",sortOptionsSortOrder:"sortOptions.sortOrder",source:"source",sources:"sources",squery:"squery",stFieldSpecExpressionsExpressionNames:"stFieldSpecExpressions.expressionNames",
stFieldSpecExpressionsExpressions:"stFieldSpecExpressions.expressions",startIndex:"startIndex",stquery:"stquery",syncParametersFullSyncOption:"syncParameters.fullSyncOption",syncParametersSyncToken:"syncParameters.syncToken",syncToken:"syncToken",type:"type",uploadType:"uploadType",upload_protocol:"upload_protocol",useBytes:"useBytes"},qJ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new evc(b,c)};
qJ.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return gvc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:dJa(a,VBc,b)})};qJ.\u0275fac=function(a){return new (a||qJ)(nd(TBc,8),nd(UBc),nd(Euc,8))};qJ.\u0275prov=Sc({token:qJ,factory:qJ.\u0275fac,providedIn:"root"});var WBc=function(){};WBc.\u0275fac=function(a){return new (a||WBc)};
WBc.\u0275prov=Sc({token:WBc,factory:function(a){return qJ.\u0275fac(a)},providedIn:"root"});var rJ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new evc(b,c)};rJ.\u0275fac=function(a){return new (a||rJ)(nd(TBc,8),nd(UBc),nd(Euc,8))};rJ.\u0275prov=Sc({token:rJ,factory:rJ.\u0275fac,providedIn:"root"});var XBc=function(){};XBc.\u0275fac=function(a){return new (a||XBc)};XBc.\u0275prov=Sc({token:XBc,factory:function(a){return rJ.\u0275fac(a)},providedIn:"root"});var bLa=/.*@google.com/,YBc=new yd("onedevPeopleServiceConfig"),ZBc={},sJ=function(){},aCc=function(a,b){return $Bc(a,[b]).pipe(y(function(c){return c[0]}))};sJ.\u0275fac=function(a){return new (a||sJ)};sJ.\u0275prov=Sc({token:sJ,factory:sJ.\u0275fac});
var tJ=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new bg;this.config=ZBc;c&&c.pipe(hg(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),gg(this.destroy$)).subscribe({next:function(e){d.config=e}})};Y(tJ,sJ);
var $Bc=function(a,b){return a.lookupApiClient.list({id:b,type:"EMAIL",matchType:"EXACT",requestMaskIncludeField:"person.email,person.name,person.photo,person.organization",requestMaskIncludeContainer:["PROFILE","DOMAIN_PROFILE","GOOGLE_GROUP"],sources:["PROFILE_SOURCE"],access_token:a.config.accessToken}).pipe(y(function(c){return fLa(b,c)}))};tJ.prototype.ngOnDestroy=function(){this.destroy$.next()};tJ.\u0275fac=function(a){return new (a||tJ)(nd(WBc),nd(XBc),nd(YBc,8))};
tJ.\u0275prov=Sc({token:tJ,factory:tJ.\u0275fac});var uJ=function(){};uJ.\u0275fac=function(a){return new (a||uJ)};uJ.\u0275mod=Jf({type:uJ});uJ.\u0275inj=Tc({providers:[tJ,{provide:sJ,useExisting:tJ}]});var bCc=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,y,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/",
"i"),cCc=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,dCc=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,eCc=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,fCc=function(a){return bCc.test(a)||cCc.test(a)||dCc.test(a)||eCc.test(a)};var gCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gCc,V);g=gCc.prototype;g.getSize=function(){return Hu(this,1)};g.setSize=function(a){return Pl(this,1,a)};g.getWidth=function(){return Hu(this,12)};g.setWidth=function(a){return Pl(this,12,a)};g.getHeight=function(){return Hu(this,13)};g.setHeight=function(a){return Pl(this,13,a)};g.setStretch=function(a){return Ol(this,33,a)};g.setCrop=function(a){return Ol(this,2,a)};
g.setCircleCrop=function(a){return Ol(this,51,a)};g.setImageCrop=function(a){return Ol(this,32,a)};g.setSmartCrop=function(a){return Ol(this,19,a)};g.setSmartCropNoClip=function(a){return Ol(this,52,a)};g.setSmartCropUseFace=function(a){return Ol(this,67,a)};g.setDetectFaces=function(a){Ol(this,80,a)};g.setCenterCrop=function(a){return Ol(this,20,a)};g.setPad=function(a){return Ol(this,60,a)};g.setDownload=function(a){Ol(this,3,a)};g.setHtml=function(a){Ol(this,4,a)};
g.setObjectId=function(a){x9b(this,7,a)};g.setLooseFaceCrop=function(a){return Ol(this,65,a)};g.setFaceCropVersion=function(a){Pl(this,94,a)};g.setFrameId=function(a){x9b(this,29,a)};g.setTileX=function(a){Pl(this,9,a)};g.setTileY=function(a){Pl(this,10,a)};g.setTileZoom=function(a){Pl(this,11,a)};g.setTileGeneration=function(a){Ol(this,14,a)};g.setForceTileGeneration=function(a){Ol(this,34,a)};g.setTilePyramidAsProto=function(a){Ol(this,72,a)};g.setExpirationTime=function(a){Pl(this,15,a)};
g.setExpirationTimeInMinutes=function(a){Pl(this,107,a)};g.setImageFilter=function(a){return Rl(this,16,a)};g.setKillAnimation=function(a){return Ol(this,17,a)};g.setUnfiltered=function(a){Ol(this,18,a)};g.setUnfilteredWithTransforms=function(a){Ol(this,45,a)};g.setIncludeMetadata=function(a){Ol(this,22,a)};g.setIncludePublicMetadata=function(a){Ol(this,54,a)};g.setStripGoogleData=function(a){Ol(this,82,a)};g.setPreserveGoogleData=function(a){Ol(this,83,a)};
g.setStripMetadata=function(a){Ol(this,93,a)};g.setStripGeoinfo=function(a){Ol(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return Ol(this,21,a)};g.setBypassTakedown=function(a){Ol(this,23,a)};g.getToken=function(){return am(this,24)};g.setToken=function(a){return Rl(this,24,a)};g.setVersionedToken=function(a){Rl(this,36,a)};g.setSkipRefererCheck=function(a){Ol(this,6,a)};g.setRotate=function(a){return Pl(this,26,a)};g.setHorizontalFlip=function(a){Ol(this,30,a)};
g.setVerticalFlip=function(a){Ol(this,31,a)};g.getOverlay=function(){return Nt(this,27)};g.setOverlay=function(a){return Ol(this,27,a)};g.setQueryString=function(a){Rl(this,28,a)};g.setRequestJpeg=function(a){return Ol(this,57,a)};g.setRequestPng=function(a){return Ol(this,58,a)};g.setRequestGif=function(a){Ol(this,59,a)};g.setRequestAvif=function(a){Ol(this,103,a)};g.setRequestWebp=function(a){return Ol(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){Ol(this,41,a)};
g.setRequestAnimatedWebp=function(a){Ol(this,64,a)};g.setNoWebp=function(a){Ol(this,48,a)};g.setRequestH264=function(a){return Ol(this,49,a)};g.setLossy=function(a){Ol(this,97,a)};g.setNoOverlay=function(a){return Ol(this,37,a)};g.setBorderSize=function(a){Pl(this,38,a)};g.setBorderRadius=function(a){Pl(this,86,a)};g.setBorderColor=function(a){Pl(this,39,a)};g.getBackgroundColor=function(){return Hu(this,87)};g.setBackgroundColor=function(a){Pl(this,87,a)};g.setPadColor=function(a){Pl(this,88,a)};
g.setSubstitutionColor=function(a){Pl(this,89,a)};g.setNoSilhouette=function(a){Ol(this,40,a)};g.setFocusBlur=function(a){Pl(this,42,a)};g.setFocalPlane=function(a){Pl(this,43,a)};g.setQualityLevel=function(a){return Pl(this,44,a)};g.setQualityBucket=function(a){return Pl(this,62,a)};g.setNoUpscale=function(a){Ol(this,46,a)};g.setPreserveAspectRatio=function(a){Ol(this,61,a)};g.setForceTransformation=function(a){Ol(this,50,a)};g.setNoDefaultImage=function(a){Ol(this,53,a)};
g.setNoCorrectExifOrientation=function(a){Ol(this,55,a)};g.setSelectFrameNumber=function(a){Pl(this,56,a)};g.setVideoFormat=function(a){Pl(this,63,a)};g.setVideoMultiFormat=function(a){Rl(this,81,a)};g.setVideoManifest=function(a){Ol(this,98,a)};g.setDownloadVideo=function(a){Ol(this,90,a)};g.setVideoBegin=function(a){Hl(this,68,a)};g.setVideoLength=function(a){Hl(this,69,a)};g.setMatchVersion=function(a){Ol(this,66,a)};g.setImageDigest=function(a){Ol(this,70,a)};
g.setInternalClient=function(a){Pl(this,71,a)};g.setMonogram=function(a){Ol(this,73,a)};g.setForceMonogram=function(a){return Ol(this,84,a)};g.setMonogramDogfood=function(a){Ol(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){Ol(this,96,a)};g.setAutoloop=function(a){Ol(this,74,a)};g.getImageVersion=function(){return cc(rl(this,75))};g.setImageVersion=function(a){Hl(this,75,a)};g.setPitchDegrees=function(a){tq(this,76,Hb(a))};g.setYawDegrees=function(a){tq(this,77,Hb(a))};
g.setRollDegrees=function(a){tq(this,78,Hb(a))};g.setFovDegrees=function(a){tq(this,79,Hb(a))};g.setBadge=function(a){Pl(this,85,a)};g.setColorProfile=function(a){Pl(this,92,a)};g.setToneMap=function(a){Ol(this,113,a)};g.setNoToneMap=function(a){Ol(this,114,a)};g.setDeepCrop=function(a){Rl(this,99,a)};g.setRequestVideoFast=function(a){Ol(this,100,a)};g.setVideoFormatFilters=function(a){Rl(this,102,a)};g.setDummyCacheKeyModifier=function(a){Ol(this,104,a)};g.setGainMap=function(a){Ol(this,105,a)};
g.setNoGainMap=function(a){Ol(this,106,a)};g.setForceCookieRedirect=function(a){Ol(this,108,a)};g.setStoryboardLevel=function(a){Pl(this,109,a)};g.setStoryboardMosaic=function(a){Pl(this,110,a)};g.setPregenTimestamps=function(a){Rl(this,111,a)};g.setClientExperimentLabel=function(a){Rl(this,112,a)};var vJ=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};vJ.prototype.set=function(a,b){hCc(this,a,b,!1)};vJ.prototype.setValue=function(a){this.value_=a};vJ.prototype.add=function(a,b){hCc(this,a,b,!0)};var hCc=function(a,b,c,d){for(var e=0;e<b.length;e++){var f=b.charAt(e);a.childNodes_[f]||(a.childNodes_[f]=new vJ);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("Ud`"+b);a.value_=c};
vJ.prototype.setAll=function(a){var b=Guc(a);a=tH(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};var iCc=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};vJ.prototype.get=function(a){return(a=iCc(this,a))?a.value_:void 0};vJ.prototype.getValues=function(){var a=[];jCc(this,a);return a};var jCc=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)jCc(a.childNodes_[c],b)};
vJ.prototype.getKeys=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var e=a.charAt(d);if(!c.childNodes_[e])return[];c=c.childNodes_[e]}kCc(c,a,b)}else kCc(this,"",b);return b};var kCc=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)kCc(a.childNodes_[d],b+d,c)};g=vJ.prototype;g.containsKey=function(a){return this.get(a)!==void 0};
g.containsValue=function(a){if(this.value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};g.clear=function(){this.childNodes_={};this.value_=void 0};g.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("Vd`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};
g.clone=function(){return new vJ(this)};g.getCount=function(){return Fuc(this.getValues())};g.isEmpty=function(){return this.value_===void 0&&Ui(this.childNodes_)};var nCc=function(){if(!lCc){var a=lCc=new vJ,b;for(b in mCc)a.add(b,mCc[b])}},lCc,wJ=function(a,b){this.types=a;this.setters=b},mCc={a:new wJ([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new wJ([3],[function(a,b){a.setAutoloop(b)}]),b:new wJ([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new wJ([0],[function(a,b){a.setBadge(b)}]),bc:new wJ([0],[function(a,b){a.setBackgroundColor(b)}]),br:new wJ([0],[function(a,
b){a.setBorderRadius(b)}]),c:new wJ([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new wJ([3],[function(a,b){a.setCircleCrop(b)}]),ci:new wJ([3],[function(a,b){a.setImageCrop(b)}]),ckm:new wJ([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new wJ([0],[function(a,b){a.setColorProfile(b)}]),cr:new wJ([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new wJ([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new wJ([3],[function(a,b){a.setDownload(b)}]),dc:new wJ([5],
[function(a,b){a.setDeepCrop(b)}]),df:new wJ([3],[function(a,b){a.setDetectFaces(b)}]),dv:new wJ([3],[function(a,b){a.setDownloadVideo(b)}]),e:new wJ([0],[function(a,b){a.setExpirationTime(b)}]),em:new wJ([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new wJ([4],[function(a,b){a.setImageFilter(b)}]),fg:new wJ([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new wJ([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new wJ([3],[function(a,b){a.setForceMonogram(b)}]),fo:new wJ([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new wJ([3],[function(a,b){a.setForceTransformation(b)}]),fv:new wJ([3],[function(a,b){a.setVerticalFlip(b)}]),g:new wJ([3],[function(a,b){a.setTileGeneration(b)}]),gce:new wJ([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new wJ([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new wJ([3],[function(a,b){a.setGainMap(b)}]),h:new wJ([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new wJ([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new wJ([0],
[function(a,b){a.setInternalClient(b)}]),id:new wJ([3],[function(a,b){a.setImageDigest(b)}]),il:new wJ([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new wJ([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new wJ([0],[function(a,b){a.setImageVersion(b)}]),j:new wJ([1],[function(a,b){a.setFrameId(b)}]),k:new wJ([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new wJ([0],[function(a,b){a.setQualityLevel(b)}]),lf:new wJ([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new wJ([3],[function(a,b){a.setLossy(b)}]),m:new wJ([0],[function(a,b){a.setVideoFormat(b)}]),md:new wJ([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new wJ([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new wJ([3],[function(a,b){a.setMonogram(b)}]),mv:new wJ([3],[function(a,b){a.setMatchVersion(b)}]),n:new wJ([3],[function(a,b){a.setCenterCrop(b)}]),nc:new wJ([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new wJ([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new wJ([3],[function(a,
b){a.setStripGeoinfo(b)}]),ngm:new wJ([3],[function(a,b){a.setNoGainMap(b)}]),no:new wJ([3],[function(a,b){a.setNoOverlay(b)}]),ns:new wJ([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new wJ([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new wJ([3],[function(a,b){a.setNoToneMap(b)}]),nu:new wJ([3],[function(a,b){a.setNoUpscale(b)}]),nw:new wJ([3],[function(a,b){a.setNoWebp(b)}]),o:new wJ([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new wJ([3,0],[function(a,b){a.setSmartCrop(b)},
function(a,b){a.setFocalPlane(b)}]),pa:new wJ([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new wJ([0],[function(a,b){a.setPadColor(b)}]),pd:new wJ([3],[function(a,b){a.setPad(b)}]),pf:new wJ([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new wJ([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new wJ([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new wJ([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new wJ([4],[function(a,b){a.setPregenTimestamps(b)}]),q:new wJ([4],[function(a,b){a.setQueryString(b)}]),
r:new wJ([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new wJ([3],[function(a,b){a.setRequestAvif(b)}]),rf:new wJ([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new wJ([3],[function(a,b){a.setRequestGif(b)}]),rh:new wJ([3],[function(a,b){a.setRequestH264(b)}]),rj:new wJ([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new wJ([2],[function(a,b){a.setRollDegrees(b)}]),rp:new wJ([3],[function(a,b){a.setRequestPng(b)}]),rw:new wJ([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new wJ([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new wJ([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new wJ([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new wJ([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new wJ([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new wJ([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new wJ([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new wJ([3],[function(a,b){a.setStripMetadata(b)}]),t:new wJ([4],
[function(a,b){a.setToken(b)}]),tm:new wJ([3],[function(a,b){a.setToneMap(b)}]),u:new wJ([3],[function(a,b){a.setUnfiltered(b)}]),ut:new wJ([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new wJ([0],[function(a,b){a.setQualityBucket(b)}]),vb:new wJ([0],[function(a,b){a.setVideoBegin(b)}]),vf:new wJ([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new wJ([0],[function(a,b){a.setVideoLength(b)}]),vm:new wJ([3],[function(a,b){a.setVideoManifest(b)}]),w:new wJ([0],[function(a,b){a.setWidth(b)}]),
x:new wJ([0],[function(a,b){a.setTileX(b)}]),y:new wJ([0],[function(a,b){a.setTileY(b)}]),ya:new wJ([2],[function(a,b){a.setYawDegrees(b)}]),z:new wJ([0],[function(a,b){a.setTileZoom(b)}])};
nCc.prototype.parse=function(a){var b=new gCc,c=new gCc;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(f.length==0)d=!1;else{var h=f,k=!1;var q=h;var u=h.charAt(0);u!=u.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var A=lCc;for(u=1;u<=q.length;++u){var G=A,H=q.substring(0,u);if(H.length==0?G.isEmpty():!iCc(G,H))break}q=u==1?null:(q=A.get(q.substring(0,u-1)))?{option:h.substring(0,u-1),value:h.substring(u-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];u=!1;for(A=0;A<q.attributes.types.length;A++){G=q.attributes.types[A];var N=q.value;H=e;if(q.signed&&G==1)for(var O=N.length;O<12&&H<a.length-1;)N+="-"+a[H+1],O=N.length,++H;else if(G==2)for(;H<a.length-1&&a[H+1].match(/^[\d\.]/);)N+="-"+a[H+1],++H;O=q.attributes.setters[A];N=oCc(this,G)(q.option,N,b,c,O);if(N===null){u=!0;e=H;break}else h.push(G),k.push(N)}if(!u)for(q=0;q<k.length;q++)A=h[q],N=k[q],pCc(this,A)(f,N);d=d&&u}else d=!1}}a=d}return new qCc(b,c,a)};
var rCc=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};g=nCc.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=Vj(b);if(isNaN(b))return 1;rCc(a,b,c,d,e,Number);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=kn(b);if(isNaN(b))return 1;rCc(a,b,c,d,e,Number);return null};g.logFloatParseError_=function(){};
g.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;rCc(a,!0,c,d,e,Boolean);return null};g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;rCc(a,b,c,d,e,function(f){return f?"1":""});return null};g.logStringParseError_=function(){};g.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;rCc(a,b,c,d,e,function(f){return f?1:0});return null};
var oCc=function(a,b){switch(b){case 0:return mt(a.parseAndSetIntOption_,a);case 2:return mt(a.parseAndSetFloatOption_,a);case 3:return mt(a.parseAndSetBoolOption_,a);case 4:return mt(a.parseAndSetStringOption_,a);case 1:return mt(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},pCc=function(a,b){switch(b){case 0:return mt(a.logIntParseError_,a);case 2:return mt(a.logFloatParseError_,a);case 3:return mt(a.logBoolParseError_,a);case 4:case 1:return mt(a.logStringParseError_,a);default:return function(){}}},
qCc=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};qCc.prototype.isValid=function(){return this.valid_};g=gLa.prototype;g.buffer_="";g.set=function(a){this.buffer_=""+a};g.append=function(a,b,c){this.buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};g.clear=function(){this.buffer_=""};g.toString=function(){return this.buffer_};var hLa=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;sCc(this,a)};hLa.prototype.getParsedOptions=function(){return this.parsedOptions_};var tCc=function(a){a.parser_==null&&(a.parser_=new nCc);return a.parser_},sCc=function(a,b){a.parsedOptions_=b?typeof b==="string"?tCc(a).parse(b):b:tCc(a).parse("")},xJ=function(a,b){return a==b?!1:!0};g=hLa.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,21),Nt(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,56),Hu(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,74),Nt(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,23),kl(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,38),Hu(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,85),Hu(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,86),Hu(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,2),kl(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,39),Hu(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,51),Nt(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,32),Nt(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,104),Nt(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,92),Hu(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,108),Nt(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,94),Hu(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,3),kl(b.signatureFlagProto_,3))&&c.setDownload(a)};g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,99),am(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,80),Nt(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,90),Nt(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,15),Hu(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
g.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,107),Hu(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,16),am(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,34),kl(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,30),Nt(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,84),Nt(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Cu(c,79),Cu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,50),Nt(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,31),Nt(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,14),kl(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
g.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,112),am(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,83),Nt(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,105),Nt(b.signatureFlagProto_,105))&&c.setGainMap(a)};
g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,4),kl(b.signatureFlagProto_,4))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,22),Nt(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,71),Hu(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,70),Nt(b.signatureFlagProto_,70))&&c.setImageDigest(a)};g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,96),Nt(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,54),Nt(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Gu(c,75),Gu(b.signatureFlagProto_,75))&&c.setImageVersion(a)};g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,gc(rl(c,29)),gc(rl(b.signatureFlagProto_,29)))&&c.setFrameId(a)};
g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,17),Nt(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,42),Hu(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,44),Hu(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,65),Nt(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,97),Nt(b.signatureFlagProto_,97))&&c.setLossy(a)};g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,63),Hu(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,91),Nt(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,81),am(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,73),Nt(b.signatureFlagProto_,73))&&c.setMonogram(a)};
g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,66),Nt(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,20),kl(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,55),Nt(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};
g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,53),Nt(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,95),Nt(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};g.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,106),Nt(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,37),kl(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,40),Nt(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,36),am(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};
g.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,114),Nt(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,46),Nt(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,48),kl(b.signatureFlagProto_,48))&&c.setNoWebp(a)};
g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,gc(rl(c,7)),gc(rl(b.signatureFlagProto_,7)))&&c.setObjectId(a)};g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,19),kl(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};
g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,43),Hu(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,61),Nt(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,88),Hu(b.signatureFlagProto_,88))&&c.setPadColor(a)};
g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,60),Nt(b.signatureFlagProto_,60))&&c.setPad(a);return this};g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,67),kl(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,72),kl(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};
g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Cu(c,76),Cu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,52),kl(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};g.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,111),am(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};
g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,28),am(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,6),kl(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,26),Hu(b.signatureFlagProto_,26))&&c.setRotate(a);return this};
g.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,103),kl(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,100),Nt(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,59),Nt(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,49),kl(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,57),Nt(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Cu(c,78),Cu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,58),Nt(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,35),kl(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,64),kl(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};
g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,kl(c,41),kl(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,33),Nt(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,110),Hu(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,89),Hu(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,82),Nt(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};
g.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,109),Hu(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,93),Nt(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};
g.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,113),Nt(b.signatureFlagProto_,113))&&c.setToneMap(a)};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,18),Nt(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,45),Nt(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,62),Hu(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Gu(c,68),Gu(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,am(c,102),am(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};
g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Gu(c,69),Gu(b.signatureFlagProto_,69))&&c.setVideoLength(a)};g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Nt(c,98),Nt(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};
g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,9),Hu(b.signatureFlagProto_,9))&&c.setTileX(a)};g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,10),Hu(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Cu(c,77),Cu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;xJ(a,Hu(c,11),Hu(b.signatureFlagProto_,11))&&c.setTileZoom(a)};
g.setOptions=function(a){sCc(this,a);return this};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;yJ(this,"s",b.getSize(),a.getSize());yJ(this,"w",b.getWidth(),a.getWidth());zJ(this,"c",kl(b,2),kl(a,2));zJ(this,"d",kl(b,3),kl(a,3));yJ(this,"h",b.getHeight(),a.getHeight());zJ(this,"s",Nt(b,33),Nt(a,33));zJ(this,"h",kl(b,4),kl(a,4));zJ(this,"p",kl(b,19),kl(a,19));zJ(this,"pp",kl(b,52),kl(a,52));zJ(this,"pf",kl(b,67),kl(a,67));zJ(this,"n",kl(b,20),kl(a,20));yJ(this,"r",Hu(b,26),Hu(a,26));
zJ(this,"r",kl(b,6),kl(a,6));zJ(this,"o",b.getOverlay(),a.getOverlay());var c=gc(rl(b,7));AJ(this,"o",c,gc(rl(a,7)));c=gc(rl(b,29));AJ(this,"j",c,gc(rl(a,29)));yJ(this,"x",Hu(b,9),Hu(a,9));yJ(this,"y",Hu(b,10),Hu(a,10));yJ(this,"z",Hu(b,11),Hu(a,11));zJ(this,"g",kl(b,14),kl(a,14));yJ(this,"e",Hu(b,15),Hu(a,15));AJ(this,"f",am(b,16),am(a,16));zJ(this,"k",Nt(b,17),Nt(a,17));zJ(this,"u",Nt(b,18),!0);zJ(this,"ut",Nt(b,45),!0);zJ(this,"i",Nt(b,22),!0);zJ(this,"a",Nt(b,21),Nt(a,21));zJ(this,"b",kl(b,23),
kl(a,23));yJ(this,"b",Hu(b,38),Hu(a,38));yJ(this,"c",Hu(b,39),Hu(a,39),16,8);AJ(this,"q",am(b,28),am(a,28));zJ(this,"fh",Nt(b,30),Nt(a,30));zJ(this,"fv",Nt(b,31),Nt(a,31));zJ(this,"fg",kl(b,34),kl(a,34));zJ(this,"ci",Nt(b,32),Nt(a,32));AJ(this,"t",b.getToken(),a.getToken());AJ(this,"nt0",am(b,36),am(a,36));zJ(this,"rw",kl(b,35),kl(a,35));zJ(this,"rwu",kl(b,41),kl(a,41));zJ(this,"rwa",kl(b,64),kl(a,64));zJ(this,"nw",kl(b,48),kl(a,48));zJ(this,"rh",kl(b,49),kl(a,49));zJ(this,"no",kl(b,37),kl(a,37));
zJ(this,"ns",Nt(b,40),Nt(a,40));yJ(this,"k",Hu(b,42),Hu(a,42));yJ(this,"p",Hu(b,43),Hu(a,43));yJ(this,"l",Hu(b,44),Hu(a,44));yJ(this,"v",Hu(b,62),Hu(a,62));zJ(this,"nu",Nt(b,46),Nt(a,46));zJ(this,"ft",Nt(b,50),Nt(a,50));zJ(this,"cc",Nt(b,51),Nt(a,51));zJ(this,"nd",Nt(b,53),Nt(a,53));zJ(this,"ip",Nt(b,54),Nt(a,54));zJ(this,"nc",Nt(b,55),Nt(a,55));yJ(this,"a",Hu(b,56),Hu(a,56));zJ(this,"rj",Nt(b,57),Nt(a,57));zJ(this,"rp",Nt(b,58),Nt(a,58));zJ(this,"rg",Nt(b,59),Nt(a,59));zJ(this,"pd",Nt(b,60),Nt(a,
60));zJ(this,"pa",Nt(b,61),Nt(a,61));yJ(this,"m",Hu(b,63),Hu(a,63));yJ(this,"vb",Gu(b,68),Gu(a,68));yJ(this,"vl",Gu(b,69),Gu(a,69));zJ(this,"lf",Nt(b,65),Nt(a,65));zJ(this,"mv",Nt(b,66),Nt(a,66));zJ(this,"id",Nt(b,70),Nt(a,70));yJ(this,"ic",Hu(b,71),!0);zJ(this,"pg",kl(b,72),kl(a,72));zJ(this,"mo",Nt(b,73),Nt(a,73));zJ(this,"al",Nt(b,74),Nt(a,74));yJ(this,"iv",Gu(b,75),Gu(a,75));yJ(this,"pi",Cu(b,76),Cu(a,76));yJ(this,"ya",Cu(b,77),Cu(a,77));yJ(this,"ro",Cu(b,78),Cu(a,78));yJ(this,"fo",Cu(b,79),Cu(a,
79));zJ(this,"df",Nt(b,80),Nt(a,80));AJ(this,"mm",am(b,81),am(a,81));zJ(this,"sg",Nt(b,82),Nt(a,82));zJ(this,"gd",Nt(b,83),Nt(a,83));zJ(this,"fm",Nt(b,84),Nt(a,84));yJ(this,"ba",Hu(b,85),Hu(a,85));yJ(this,"br",Hu(b,86),Hu(a,86));yJ(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);yJ(this,"pc",Hu(b,88),Hu(a,88),16,8);yJ(this,"sc",Hu(b,89),Hu(a,89),16,8);zJ(this,"dv",Nt(b,90),Nt(a,90));zJ(this,"md",Nt(b,91),Nt(a,91));yJ(this,"cp",Hu(b,92),Hu(a,92));zJ(this,"sm",Nt(b,93),Nt(a,93));yJ(this,
"cv",Hu(b,94),Hu(a,94));zJ(this,"ng",Nt(b,95),Nt(a,95));zJ(this,"il",Nt(b,96),Nt(a,96));zJ(this,"lo",Nt(b,97),Nt(a,97));zJ(this,"vm",Nt(b,98),Nt(a,98));AJ(this,"dc",am(b,99),am(a,99));zJ(this,"rf",Nt(b,100),Nt(a,100));AJ(this,"vf",am(b,102),am(a,102));zJ(this,"ra",kl(b,103),kl(a,103));zJ(this,"ckm",Nt(b,104),Nt(a,104));zJ(this,"gm",Nt(b,105),Nt(a,105));zJ(this,"ngm",Nt(b,106),Nt(a,106));yJ(this,"em",Hu(b,107),Hu(a,107));zJ(this,"cr",Nt(b,108),Nt(a,108));yJ(this,"sl",Hu(b,109),Hu(a,109));yJ(this,"sb",
Hu(b,110),Hu(a,110));AJ(this,"pt",am(b,111),am(a,111));AJ(this,"gce",am(b,112),am(a,112));zJ(this,"tm",Nt(b,113),Nt(a,113));zJ(this,"ntm",Nt(b,114),Nt(a,114));return this.components_.join("-")};
var yJ=function(a,b,c,d,e,f){if(c!=null){var h=e==void 0||e!=10&&e!=16?10:e;c=c.toString(h);e=new gLa;e.append(h==16?"0x":"");h=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":rbc("0",f));h.call(e,f);e.append(c);uCc(a,b,e.toString(),!!d)}},zJ=function(a,b,c,d){c&&uCc(a,b,"",!!d)},AJ=function(a,b,c,d){c&&uCc(a,b,c,!!d)},uCc=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};zu(aq,hLa);g=aq.prototype;g.setCrop=function(a){a&&BJ(this);return aq.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return aq.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&BJ(this);return aq.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return aq.superClass_.setQualityLevel.call(this,a)};g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return aq.superClass_.setImageFilter.call(this,a)};
g.setImageCrop=function(a){a&&BJ(this);return aq.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&BJ(this);return aq.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){cb(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.setWidth(),this.setHeight());return aq.superClass_.setSize.call(this,a)};g.setSmartCrop=function(a){a&&BJ(this);return aq.superClass_.setSmartCrop.call(this,a)};
g.setSmartCropNoClip=function(a){a&&BJ(this);return aq.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&BJ(this);return aq.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&BJ(this);return aq.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&BJ(this);return aq.superClass_.setPad.call(this,a)};g.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return aq.superClass_.setWidth.call(this,a)};
var BJ=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};aq.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Nt(a,18)||Nt(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),BJ(this)));return aq.superClass_.build.call(this)};var vCc=/^[^\/]*\/\//,CJ=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(vCc))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=Hr(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},wCc=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},DJ=function(a){if(a.components_==void 0){var b=a.uri_.getPath().substring(1);
a.pathPrefix_=null;if(a.isFreeformUrl_){a.components_=[];if((b.match(/=/g)||[]).length>1)return a.valid_=!1,a.components_;var c=b.indexOf("=");c!=-1?(a.components_.push(b.substr(0,c)),a.components_.push(b.substr(c+1))):a.components_.push(b);return a.components_}a.components_=b.split("/");b=a.components_.length;b>2&&a.components_[0]=="u"&&(wCc(a,a.components_[0]+"/"+a.components_[1]),a.components_.shift(),a.components_.shift(),b-=2);if(b==0||b==4||b>7)return a.valid_=!1,a.components_;if(b==2)wCc(a,
a.components_[0]);else if(a.components_[0]=="image")wCc(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(wCc(a,a.components_[1]),a.components_.shift(),--b);--b;c=a.components_[b];var d=c.indexOf("=");d!=-1&&(a.components_[b]=c.substr(0,d),a.components_.push(c.substr(d+1)))}}return a.components_};CJ.prototype.isValid=function(){DJ(this);return this.valid_};var xCc=function(a){DJ(a);return a.obfuscated_},yCc=function(a){DJ(a);return a.isFreeformUrl_};
CJ.prototype.getDomain=function(){var a=this.uri_.getPort();return this.uri_.getDomain()+(a?":"+a:"")};CJ.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var EJ=function(a){DJ(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};CJ.prototype.hasOptions=function(){switch(DJ(this).length){case 7:return!0;case 6:return EJ(this)==null;case 5:return!1;case 3:return!0;case 2:return EJ(this)==null;case 1:return!1;default:return!1}};
var FJ=function(a,b){if(yCc(a))a:{switch(b){case 7:b=0;break;case 4:if(!a.hasOptions()){a=null;break a}b=1;break;default:a=null;break a}a=DJ(a)[b]}else if(xCc(a))a:{var c=EJ(a)!=null?1:0;switch(b){case 6:b=c;break;case 4:if(!a.hasOptions()){a=null;break a}b=1+c;break;default:a=null;break a}a=DJ(a)[b]}else a:{c=EJ(a)!=null?1:0;switch(b){case 0:b=c;break;case 1:b=1+c;break;case 2:b=2+c;break;case 3:b=3+c;break;case 4:if(!a.hasOptions()){a=null;break a}b=4+c;break;case 5:b=a.hasOptions()?1:0;b=4+c+b;
break;default:a=null;break a}a=DJ(a)[b]}return a};g=CJ.prototype;g.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=FJ(this,0));return this.obfuscatedGaiaId_};g.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=FJ(this,1));return this.photoId_};g.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=FJ(this,2));return this.imageVersion_};g.getOptions=function(){this.options_==void 0&&(this.options_=FJ(this,4));return this.options_};
g.getFilename=function(){this.filename_==void 0&&(this.filename_=FJ(this,5));return this.filename_};var kLa=function(){};kLa.prototype.parse=function(a,b){return new iLa(a,b===void 0?!1:b)};var iLa=function(a,b){CJ.call(this,a,b===void 0?!1:b)};Y(iLa,CJ);iLa.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new nCc).parse(a)}return this.parsedOptions_};zu(bq,aq);var jLa;bq.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
bq.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=bq.superClass_.build.call(this),b=[];EJ(this.parsedImageUrl_)!=null&&b.push(EJ(this.parsedImageUrl_));var c=yCc(this.parsedImageUrl_);if(xCc(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=FJ(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=FJ(e,7));d.call(b,
e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),b.push(this.parsedImageUrl_.getPhotoId()),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=FJ(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=Hr(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));
return a};var zCc=/\/\/lh[3-6]\./,ACc=function(a,b,c,d){if(!a||!fCc(String(a)))return String(a||"");a=String(a);d===void 0&&(d=1);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(zCc,"//lh3.");return(new bq(a)).setSize(d?c:void 0).setWidth(d?void 0:b).setHeight(d?void 0:c).setCrop(!1).setKillAnimation(!1).setEsPortraitApprovedOnly(!1).setSmartCrop(!0).setCenterCrop().setOverlay(!1).setNoOverlay(!1).setRequestWebp().setQualityBucket().setImageFilter().setLooseFaceCrop().setForceMonogram().setRequestPng().setRequestJpeg().setRequestH264().setPad().build()};var BCc=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],GJ=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new ag(1);this.person$=this.providedEmail$.pipe(fg(function(d){return aCc(c.peopleService,d)}),y(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;if(fCc(h)){var k=new bq(h);k.setSize(48).setCrop(!0);h=k.build()||h}}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),cg(1));this.outOfOfficeDescription$=
new ag;this.init=new ag(1);this.destroyed$=new ag(1)};GJ.prototype.ngOnInit=function(){var a=this;this.person$.pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&CCc(this)};var CCc=function(a){a.waldoService&&a.person$.pipe(fg(function(b){return b?Ovc(a.waldoService,b.email):Ce("")}),gg(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
ea.Object.defineProperties(GJ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});GJ.\u0275fac=function(a){return new (a||GJ)(zf(sJ),zf(FH,8))};
GJ.\u0275cmp=B({type:GJ,selectors:[["onedev-person-hovercard"]],inputs:{email:"email",enableWaldo:"enableWaldo"},outputs:{init:"init"},ngContentSelectors:["onedev-hovercard-action","[onedev-additional-content]"],decls:2,vars:3,consts:[[3,"person","outOfOfficeDescription",4,"ngIf"],[3,"person","outOfOfficeDescription"]],template:function(a,b){a&1&&(Ng(BCc),C(0,lLa,4,4,"onedev-person-hovercard-body",0),S(1,"async"));a&2&&D("ngIf",T(1,1,b.person$))},dependencies:[Yv,Ov,Qv,uJ,pJ,aI],encapsulation:2,changeDetection:0});var DCc=[[["onedev-hovercard-action"],["",8,"actions"]]],HJ=function(){};HJ.prototype.ngOnInit=function(){};HJ.\u0275fac=function(a){return new (a||HJ)};
HJ.\u0275cmp=B({type:HJ,selectors:[["b-person-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[["cardBody",""],[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"]],template:function(a){a&1&&(Ng(DCc),C(0,mLa,3,3,"onedev-person-hovercard",1))},dependencies:[GJ,gJ,hJ],styles:["onedev-hovercard-action[_ngcontent-%COMP%]   .label-enabled[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}onedev-hovercard-action[_ngcontent-%COMP%]   .label-disabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.2)}[_nghost-%COMP%]     .onedev-hovercard-content .onedev-hovercard-body a:focus{outline-width:1px}"],
changeDetection:0});var IJ=function(){this.isNonObfuscatedEmail=Zj};IJ.\u0275fac=function(a){return new (a||IJ)};
IJ.\u0275cmp=B({type:IJ,selectors:[["b-person-hovercard"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(Ng(),E(0,oLa,5,4)(1,qLa,1,1,"ng-container"),C(2,rLa,1,0,"ng-template",null,0,nh));a&2&&F(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[Pv,fJ,lJ,HJ],
encapsulation:2,changeDetection:0});var ECc=function(){};var kq=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._originalOnDoneFns=[];this._originalOnStartFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(a===void 0?0:a)+(b===void 0?0:b)};g=kq.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};g.hasStarted=function(){return this._started};g.init=function(){};g.play=function(){this.hasStarted()||(this._onStart(),FCc(this));this._started=!0};var FCc=function(a){queueMicrotask(function(){return a._onFinish()})};g=kq.prototype;g._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};g.pause=function(){};g.restart=function(){};
g.finish=function(){this._onFinish()};g.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
g.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};g.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var GLa=function(a){var b=this;this._onDoneFns=[];this._onStartFns=[];this._destroyed=this._started=this._finished=!1;this._onDestroyFns=[];this.parentPlayer=null;this.totalTime=0;this.players=a;var c=0,d=0,e=0,f=this.players.length;f==0?queueMicrotask(function(){return b._onFinish()}):this.players.forEach(function(h){h.onDone(function(){++c==f&&b._onFinish()});h.onDestroy(function(){++d==f&&b._onDestroy()});h.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(h,
k){return Math.max(h,k.totalTime)},0)};g=GLa.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this.players.forEach(function(a){return a.init()})};g.onStart=function(a){this._onStartFns.push(a)};g._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};g.pause=function(){this.players.forEach(function(a){return a.pause()})};g.restart=function(){this.players.forEach(function(a){return a.restart()})};g.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};g.destroy=function(){this._onDestroy()};
g._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};g.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
g.getPosition=function(){var a=this.players.reduce(function(b,c){return b===null||c.totalTime>b.totalTime?c:b},null);return a!=null?a.getPosition():0};g.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};g.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var BLa=RegExp("{{\\s*(.+?)\\s*}}","g"),DLa=/-+([a-z0-9])/g;var GCc=new Set("width height minWidth minHeight maxWidth maxHeight left top bottom right fontSize outlineWidth outlineOffset paddingTop paddingLeft paddingBottom paddingRight marginTop marginLeft marginBottom marginRight borderRadius borderWidth borderTopWidth borderLeftWidth borderRightWidth borderBottomWidth textIndent perspective".split(" ")),HCc=function(){};Y(HCc,ECc);
var HLa=function(a,b,c){var d="",e=b.toString().trim();GCc.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Wc(3005,!1)));return e+d};var NLa=typeof document==="undefined"?null:document.documentElement;var ICc=function(){};var TLa=new Set(["true","1"]),ULa=new Set(["false","0"]);var VLa=RegExp("s*:selfs*,?","g"),JCc=function(a){this._driver=a};g=JCc.prototype;g.build=function(a,b){b=new KCc(b);this._resetContextStyleTimingState(b);return jq(this,yLa(a),b)};g._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
g.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],h=[];a.name.charAt(0)=="@"&&b.errors.push(new Wc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(u){k.name=u;f.push(c.visitState(k,b))});k.name=q}else k.type==1?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new Wc(3007,!1))});return{type:7,name:a.name,states:f,transitions:h,queryCount:d,
depCount:e,options:null}};g.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(h){h instanceof Map&&h.forEach(function(k){zLa(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&b.errors.push(sLa([].concat(p(e.values()))))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
g.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=jq(this,yLa(a.animation),b);return{type:1,matchers:SLa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:nq(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return jq(c,d,b)}),options:nq(a.options)}};
g.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(h){b.currentTime=d;h=jq(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:nq(a.options)}};
g.visitAnimate=function(a,b){var c=YLa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:dq({});if(d.type==5)a=this.visitKeyframes(d,b);else{d=a.styles;a=!1;d||(a=!0,d={},c.easing&&(d.easing=c.easing),d=dq(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};g.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
g._makeStyleAst=function(a,b){for(var c=[],d=l(Array.isArray(a.styles)?a.styles:[a.styles]),e=d.next();!e.done;e=d.next())e=e.value,typeof e==="string"?e==="*"?c.push(e):b.errors.push(new Wc(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,h=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(h=k.get("easing"),k.delete("easing")),!f)){k=l(k.values());for(var q=k.next();!q.done;q=k.next())if(q.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&e>0&&(e-=c.duration+c.delay);a.styles.forEach(function(f){typeof f!=="string"&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),u=q.get(k),A=!0;u&&(e!=d&&e>=u.startTime&&d<=u.endTime&&(b.errors.push(new Wc(3010,!1)),A=!1),e=u.startTime);A&&q.set(k,{startTime:e,endTime:d});b.options&&ALa(h,b.options,b.errors)})})};
g.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new Wc(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,u=a.steps.map(function(U){U=c._makeStyleAst(U,b);var da=U.offset!=null?U.offset:XLa(U.styles),ma=0;da!=null&&(e++,ma=U.offset=da);k=k||ma<0||ma>1;h=h||ma<q;q=ma;f.push(ma);return U});k&&b.errors.push(new Wc(3012,!1));h&&b.errors.push(new Wc(3200,!1));a=a.steps.length;var A=0;e>0&&e<a?b.errors.push(new Wc(3202,!1)):e==0&&(A=1/(a-
1));var G=a-1,H=b.currentTime,N=b.currentAnimateTimings,O=N.duration;u.forEach(function(U,da){da=A>0?da==G?1:A*da:f[da];var ma=da*O;b.currentTime=H+N.delay+ma;N.duration=ma;c._validateStyleAst(U,b);U.offset=da;d.styles.push(U)});return d};g.visitReference=function(a,b){return{type:8,animation:jq(this,yLa(a.animation),b),options:nq(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:nq(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:nq(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=l(WLa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;mq(b.collectedStyles,b.currentQuerySelector,new Map);var h=jq(this,yLa(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:h,originalSelector:a.selector,options:nq(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Wc(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:vLa(a.timings,b.errors,!0);return{type:12,animation:jq(this,yLa(a.animation),b),timings:c,options:null}};var KCc=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=this.currentTransition=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};var JJ=function(){this._map=new Map};JJ.prototype.get=function(a){return this._map.get(a)||[]};JJ.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,p(b))};JJ.prototype.has=function(a){return this._map.has(a)};JJ.prototype.clear=function(){this._map.clear()};var LCc=RegExp(":enter","g"),MCc=RegExp(":leave","g"),$La=function(){};g=$La.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,u){u=u===void 0?[]:u;q=q||new JJ;a=new NCc(a,b,q,d,e,u,[]);a.options=k;d=k.delay?gq(k.delay):0;a.currentTimeline.delayNextStep(d);OCc(a.currentTimeline,[f],null,a.errors,k);jq(this,c,a);c=a.timelines.filter(function(G){return G.containsAnimation()});if(c.length&&h.size){for(f=c.length-1;f>=0;f--)if(e=c[f],e.element===b){var A=e;break}A&&A._currentEmptyStepKeyframe===A._currentKeyframe&&OCc(A,[h],null,a.errors,k)}return c.length?c.map(function(G){return G.buildKeyframes()}):
[ZLa(b,[],[],[],0,d,"",!1)]};g.visitTrigger=function(){};g.visitState=function(){};g.visitTransition=function(){};g.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=KJ(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&LJ(b,c)}b.previousNode=a};
g.visitAnimateRef=function(a,b){var c=KJ(b,a.options);LJ(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);LJ(b,c.currentTimeline.currentTime);b.previousNode=a};g._applyAnimationRefDelays=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(e=d)==null?void 0:e.delay;if(f){var h=e=void 0;d=typeof f==="number"?f:gq(CLa(f,(h=(e=d)==null?void 0:e.params)!=null?h:{},b.errors));c.delayNextStep(d)}}};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=c.duration!=null?gq(c.duration):null,f=c.delay!=null?gq(c.delay):null;e!==0&&a.forEach(function(h){var k={duration:e!=null?e:h.duration,delay:b.currentTimeline.currentTime+(f!=null?f:0)+h.delay,easing:""};h=new PCc(b._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,k,h.stretchStartingKeyframe);b.timelines.push(h);d=Math.max(d,k.duration+k.delay)});return d};
g.visitReference=function(a,b){QCc(b,a.options,!0);jq(this,a.animation,b);b.previousNode=a};g.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=KJ(b,f),LJ(e),f.delay!=null&&(e.previousNode.type==6&&(RCc(e.currentTimeline),e.previousNode=SCc),e.delayNextStep(gq(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return jq(c,h,e)}),MJ(e.currentTimeline),e.subContextCount>d&&LJ(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?gq(a.options.delay):0;a.steps.forEach(function(h){var k=KJ(b,a.options);f&&k.delayNextStep(f);jq(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return TCc(b.currentTimeline,h)});LJ(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?CLa(a,b.params,b.errors):a,vLa(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
g.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(UCc(b.currentTimeline,b.currentTimeline.duration+c.delay),RCc(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(UCc(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),MJ(d));b.currentAnimateTimings=null;b.previousNode=a};
g.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&c._currentKeyframe.size>0&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=l(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else OCc(c,a.styles,d,b.errors,b.options);b.previousNode=
a};g.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=KJ(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){UCc(f,(h.offset||0)*e);OCc(f,h.styles,h.easing,b.errors,b.options);MJ(f)});TCc(b.currentTimeline,f);LJ(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?gq(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&(RCc(b.currentTimeline),b.previousNode=SCc);var h=d;d=VCc(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,u){b.currentQueryIndex=u;u=KJ(b,a.options,q);f&&u.delayNextStep(f);q===b.element&&(k=u.currentTimeline);jq(c,a.animation,u);MJ(u.currentTimeline);
h=Math.max(h,u.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;LJ(b,h);k&&(TCc(b.currentTimeline,k),RCc(b.currentTimeline));b.previousNode=a};
g.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),h=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(e.duration<0?"reverse":e.easing){case "reverse":f=h-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;jq(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var SCc={},NCc=function(a,b,c,d,e,f,h,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=h;this.currentAnimateTimings=this.parentContext=null;this.previousNode=SCc;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new NJ(this._driver,b,0);h.push(this.currentTimeline)},QCc=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
gq(b.duration));b.delay!=null&&(d.delay=gq(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(h){c&&f.hasOwnProperty(h)||(f[h]=CLa(e[h],f,a.errors))})}}};NCc.prototype._copyOptions=function(){var a={};if(this.options){var b=this.options.params;if(b){var c=a.params={};Object.keys(b).forEach(function(d){c[d]=b[d]})}}return a};
var KJ=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new NCc(a._driver,c,a.subInstructions,a._enterClassName,a._leaveClassName,a.errors,a.timelines,a.currentTimeline.fork(c,0));c.previousNode=a.previousNode;c.currentAnimateTimings=a.currentAnimateTimings;c.options=a._copyOptions();QCc(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},LJ=function(a,b){a.previousNode=SCc;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};NCc.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var VCc=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);b.length>0&&(b=b.replace(LCc,"."+a._enterClassName),b=b.replace(MCc,"."+a._leaveClassName),a=a._driver.query(a.element,b,c!=1),c!==0&&(a=c<0?a.slice(a.length+c,a.length):a.slice(0,c)),h.push.apply(h,p(a)));e||h.length!=0||f.push(new Wc(3014,!1));return h};
ea.Object.defineProperties(NCc.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var NJ=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;this.easing=null;this._previousKeyframe=new Map;this._currentKeyframe=new Map;this._keyframes=new Map;this._styleSummary=new Map;this._localTimelineStyles=new Map;this._pendingStyles=new Map;this._backFill=new Map;this._currentEmptyStepKeyframe=null;this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map);this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b);
this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles));this._loadKeyframe()};NJ.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};NJ.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(UCc(this,this.currentTime+a),b&&RCc(this)):this.startTime+=a};
NJ.prototype.fork=function(a,b){MJ(this);return new NJ(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};NJ.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe);this._currentKeyframe=this._keyframes.get(this.duration);this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))};var UCc=function(a,b){MJ(a);a.duration=b;a._loadKeyframe()};
NJ.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
var OCc=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=bMa(b,a._globalTimelineStyles);b=l(b);for(e=b.next();!e.done;e=b.next()){var f=l(e.value);e=f.next().value;f=f.next().value;f=CLa(f,c,d);a._pendingStyles.set(e,f);if(!a._localTimelineStyles.has(e)){var h=void 0;a._backFill.set(e,(h=a._globalTimelineStyles.get(e))!=null?h:"*")}a._updateStyle(e,f)}},MJ=function(a){a._pendingStyles.size!=0&&(a._pendingStyles.forEach(function(b,c){a._currentKeyframe.set(c,b)}),a._pendingStyles.clear(),
a._localTimelineStyles.forEach(function(b,c){a._currentKeyframe.has(c)||a._currentKeyframe.set(c,b)}))},RCc=function(a){for(var b=l(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},TCc=function(a,b){b._styleSummary.forEach(function(c,d){var e=a._styleSummary.get(d);(!e||c.time>e.time)&&a._updateStyle(d,c.value)})};
NJ.prototype.buildKeyframes=function(){var a=this;MJ(this);var b=new Set,c=new Set,d=this._keyframes.size===1&&this.duration===0,e=[];this._keyframes.forEach(function(u,A){u=new Map([].concat(p(a._backFill),p(u)));u.forEach(function(G,H){G==="!"?b.add(H):G==="*"&&c.add(H)});d||u.set("offset",A/a.duration);e.push(u)});var f=[].concat(p(b.values())),h=[].concat(p(c.values()));if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return ZLa(this.element,e,f,h,this.duration,this.startTime,
this.easing,!1)};ea.Object.defineProperties(NJ.prototype,{currentTime:{configurable:!0,enumerable:!0,get:function(){return this.startTime+this.duration}},properties:{configurable:!0,enumerable:!0,get:function(){var a=[],b;for(b in this._currentKeyframe)a.push(b);return a}}});var PCc=function(a,b,c,d,e,f,h){h=h===void 0?!1:h;NJ.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=h;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
Y(PCc,NJ);PCc.prototype.containsAnimation=function(){return this.keyframes.length>1};
PCc.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,h=new Map(a[0]);h.set("offset",0);b.push(h);h=new Map(a[0]);h.set("offset",Math.round(f*100)/100);b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=new Map(a[h]),q=k.get("offset");k.set("offset",Math.round((c+q*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return ZLa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var WCc={},fMa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};fMa.prototype.match=function(a,b,c,d){return dMa(this.ast.matchers,a,b,c,d)};fMa.prototype.buildStyles=function(a,b,c){var d=this._stateStyles.get("*");a!==void 0&&(d=this._stateStyles.get(a==null?void 0:a.toString())||d);return d?d.buildStyles(b,c):new Map};
fMa.prototype.build=function(a,b,c,d,e,f,h,k,q,u){var A=[],G=this.ast.options&&this.ast.options.params||WCc;h=this.buildStyles(c,h&&h.params||WCc,A);var H=k&&k.params||WCc;k=this.buildStyles(d,H,A);var N=new Set,O=new Map,U=new Map,da=d==="void",ma;G={params:eMa(H,G),delay:(ma=this.ast.options)==null?void 0:ma.delay};a=u?[]:aMa(a,b,this.ast.animation,e,f,h,k,G,q,A);var ra=0;a.forEach(function(Ga){ra=Math.max(Ga.duration+Ga.delay,ra)});if(A.length)return cMa(b,this._triggerName,c,d,da,h,k,[],[],O,
U,ra,A);a.forEach(function(Ga){var Na=Ga.element,Qa=mq(O,Na,new Set);Ga.preStyleProps.forEach(function(va){return Qa.add(va)});var gb=mq(U,Na,new Set);Ga.postStyleProps.forEach(function(va){return gb.add(va)});Na!==b&&N.add(Na)});return cMa(b,this._triggerName,c,d,da,h,k,a,[].concat(p(N.values())),O,U,ra)};var XCc=function(a,b){this.styles=a;this.defaultParams=b};
XCc.prototype.buildStyles=function(a,b){var c=new Map,d=eMa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,h){f&&(f=CLa(f,d,b));var k=xLa(h);f=HLa(k,f,b);c.set(h,f)})});return c};var YCc=function(a,b,c){var d=this;this.name=a;this.ast=b;this._normalizer=c;this.transitionFactories=[];this.states=new Map;b.states.forEach(function(e){d.states.set(e.name,new XCc(e.style,e.options&&e.options.params||{}))});hMa(this.states,"true","1");hMa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new fMa(a,e,d.states))});this.fallbackTransition=gMa(a,this.states)},ZCc=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var $Cc=new JJ,aDc=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=aDc.prototype;g.register=function(a,b){var c=[];b=(new JCc(this._driver)).build(b,c,[]);if(c.length)throw new Wc(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=ILa(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
g.create=function(a,b,c){var d=this;c=c===void 0?{}:c;var e=[],f=this._animations.get(a),h=new Map;f?(b=aMa(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,$Cc,e),b.forEach(function(k){var q=mq(h,k.element,new Map);k.postStyleProps.forEach(function(u){return q.set(u,null)})})):(e.push(new Wc(3300,!1)),b=[]);if(e.length)throw new Wc(3504,!1);h.forEach(function(k,q){k.forEach(function(u,A){k.set(A,ELa(q,A))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,new Map,q)});
e=lq(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};g.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);a>=0&&this.players.splice(a,1)};g._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new Wc(3301,!1);return a};g.listen=function(a,b,c,d){b=LLa(b,"","","");KLa(this._getPlayer(a),c,b,d);return function(){}};
g.command=function(a,b,c,d){if(c=="register")this.register(a,d[0]);else if(c=="create")this.create(a,b,d[0]||{});else switch(b=this._getPlayer(a),c){case "play":b.play();break;case "pause":b.pause();break;case "reset":b.reset();break;case "restart":b.restart();break;case "finish":b.finish();break;case "init":b.init();break;case "setPosition":b.setPosition(parseFloat(d[0]));break;case "destroy":this.destroy(a)}};var bDc=[],cDc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kMa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dDc=function(a,b){this.namespaceId=b===void 0?"":b;var c=(b=a&&a.hasOwnProperty("value"))?a.value:a;this.value=c!=null?c:null;b?(a=Object.assign({},a),this.options=(delete a.value,a)):this.options={};this.options.params||(this.options.params={})},eDc=function(a,b){var c=b.params;if(c){var d=a.options.params;
Object.keys(c).forEach(function(e){d[e]==null&&(d[e]=c[e])})}};ea.Object.defineProperties(dDc.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var fDc=new dDc("void"),OJ=function(a,b,c){this.id=a;this.hostElement=b;this._engine=c;this.players=[];this._triggers=new Map;this._queue=[];this._elementListeners=new Map;this._hostClassName="ng-tns-"+a;oq(b,this._hostClassName)};g=OJ.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Wc(3302,!1);if(c==null||c.length==0)throw new Wc(3303,!1);if(c!="start"&&c!="done")throw new Wc(3400,!1);var f=mq(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=mq(this._engine.statesByElement,a,new Map);k.has(b)||(oq(a,"ng-trigger"),oq(a,"ng-trigger-"+b),k.set(b,fDc));return function(){gDc(e._engine,function(){var q=f.indexOf(h);q>=0&&f.splice(q,1);e._triggers.has(b)||k.delete(b)})}};
g.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};g._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Wc(3401,!1);return a};
g.trigger=function(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=this._getTrigger(b),h=new hDc(this.id,b,a),k=this._engine.statesByElement.get(a);k||(oq(a,"ng-trigger"),oq(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),u=new dDc(c,this.id);c&&c.hasOwnProperty("value")||!q||eDc(u,q.options);k.set(b,u);q||(q=fDc);if(u.value!=="void"&&q.value===u.value){if(!rMa(q.params,u.params)){d=[];var A=f.fallbackTransition.buildStyles(q.value,q.params,d),G=f.fallbackTransition.buildStyles(u.value,
u.params,d);d.length?this._engine.reportError(d):gDc(this._engine,function(){iq(a,A);hq(a,G)})}}else{c=mq(this._engine.playersByElement,a,[]);c.forEach(function(N){N.namespaceId==e.id&&N.triggerName==b&&N.queued&&N.destroy()});k=ZCc(f,q.value,u.value,a,u.params);var H=!1;if(!k){if(!d)return;k=f.fallbackTransition;H=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:u,player:h,isFallbackTransition:H});H||(oq(a,"ng-animate-queued"),h.onStart(function(){pq(a,
"ng-animate-queued")}));h.onDone(function(){var N=e.players.indexOf(h);N>=0&&e.players.splice(N,1);if(N=e._engine.playersByElement.get(a)){var O=N.indexOf(h);O>=0&&N.splice(O,1)}});this.players.push(h);c.push(h);return h}};g.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var iDc=function(a,b){a._engine.statesByElement.delete(b);a._elementListeners.delete(b);var c=a._engine.playersByElement.get(b);c&&(c.forEach(function(d){return d.destroy()}),a._engine.playersByElement.delete(b))};
OJ.prototype._signalRemovalForInnerTriggers=function(a,b){var c=this,d=this._engine.driver.query(a,".ng-trigger",!0);d.forEach(function(e){if(!e.__ng_removed){var f=jDc(c._engine,e);f.size?f.forEach(function(h){return kDc(h,e,b,!1,!0)}):iDc(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return iDc(c,e)})})};
var kDc=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,u){h.set(u,q.value);a._triggers.has(u)&&(q=a.trigger(b,u,"void",e))&&k.push(q)});if(k.length){lDc(a._engine,a.id,b,!0,c,h);if(d)lq(k).onDone(function(){return nMa(a._engine,b)});return!0}}return!1},mDc=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var h=a._triggers.get(f).fallbackTransition,
k=d.get(f)||fDc,q=new dDc("void"),u=new hDc(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:u,isFallbackTransition:!0})}})}};
OJ.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!kDc(this,a,b,!0)){var e=!1;if(d.totalAnimations){var f=d.players.length?d.playersByQueriedElement.get(a):[];if(f&&f.length)e=!0;else for(f=a;f=f.parentNode;)if(d.statesByElement.get(f)){e=!0;break}}mDc(this,a);e?lDc(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==cDc||(gDc(d,function(){return iDc(c,a)}),nDc(d,a),d._onRemovalComplete(a,b)))}};
OJ.prototype.insertNode=function(a){oq(a,this._hostClassName)};
var oDc=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,h=a._elementListeners.get(f);h&&h.forEach(function(k){if(k.name==d.triggerName){var q=LLa(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;KLa(d.player,k.phase,q,k.callback)}});e.markedForDestroy?gDc(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,h=e.transition.ast.depCount;return f==0||h==0?f-h:PLa(d.element,
e.element)?1:-1})};OJ.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var PJ=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
g=PJ.prototype;g._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};g._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(c.length-1>=0){for(var e=!1,f=this.driver.getParentElement(b);f;){var h=d.get(f);if(h){e=c.indexOf(h);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
g.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new OJ(a,b,this),this.bodyNode&&PLa(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};g.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
g.destroy=function(a,b){var c=this;a&&(gDc(this,function(){}),this.afterFlushAnimationsDone(function(){var d=c._fetchNamespace(a);c.namespacesByHostElement.delete(d.hostElement);var e=c._namespaceList.indexOf(d);e>=0&&c._namespaceList.splice(e,1);d.destroy(b);delete c._namespaceLookup[a]}))};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var jDc=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=l(b.values());for(var d=b.next();!d.done;d=b.next())d=d.value,d.namespaceId&&(d=a._fetchNamespace(d.namespaceId))&&c.add(d)}return c};PJ.prototype.trigger=function(a,b,c,d){return iMa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
PJ.prototype.insertNode=function(a,b,c,d){if(iMa(b)){var e=b.__ng_removed;e&&e.setForRemoval&&(e.setForRemoval=!1,e.setForMove=!0,e=this.collectedLeaveElements.indexOf(b),e>=0&&this.collectedLeaveElements.splice(e,1));a&&(a=this._fetchNamespace(a))&&a.insertNode(b,c);d&&this.collectedEnterElements.push(b)}};var pDc=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),oq(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),pq(b,"ng-animate-disabled"))};
PJ.prototype.removeNode=function(a,b,c){if(iMa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):lDc(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var lDc=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};PJ.prototype.listen=function(a,b,c,d,e){return iMa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
PJ.prototype._buildInstruction=function(a,b,c,d,e){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,c,d,a.fromState.options,a.toState.options,b,e)};
var nDc=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return qDc(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return rDc(a,d)}))},qDc=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},rDc=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},nMa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
cDc;if(c.namespaceId){nDc(a,b);var d=a._fetchNamespace(c.namespaceId);d&&iDc(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&pDc(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){pDc(a,f,!1)})};
PJ.prototype.flush=function(a){var b=this;a=a===void 0?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,h){return b._balanceNamespaceList(f,h)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)oq(this.collectedEnterElements[d],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){d=[];try{c=this._flushAnimations(d,
a)}finally{for(a=0;a<d.length;a++)d[a]()}}else for(a=0;a<this.collectedLeaveElements.length;a++)nMa(this,this.collectedLeaveElements[a]);this.totalQueuedPlayers=0;this.collectedEnterElements.length=0;this.collectedLeaveElements.length=0;this._flushFns.forEach(function(f){return f()});this._flushFns=[];if(this._whenQuietFns.length){var e=this._whenQuietFns;this._whenQuietFns=[];if(c.length)lq(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
PJ.prototype.reportError=function(){throw new Wc(3402,!1);};
PJ.prototype._flushAnimations=function(a,b){var c=this,d=new JJ,e=[],f=new Map,h=[],k=new Map,q=new Map,u=new Map,A=new Set;this.disabledNodes.forEach(function(Ya){A.add(Ya);Ya=c.driver.query(Ya,".ng-animate-queued",!0);for(var dc=0;dc<Ya.length;dc++)A.add(Ya[dc])});var G=this.bodyNode,H=Array.from(this.statesByElement.keys()),N=mMa(H,this.collectedEnterElements),O=new Map,U=0;N.forEach(function(Ya,dc){var uc="ng-enter"+U++;O.set(dc,uc);Ya.forEach(function(rd){return oq(rd,uc)})});for(var da=[],ma=
new Set,ra=new Set,Ga=0;Ga<this.collectedLeaveElements.length;Ga++){var Na=this.collectedLeaveElements[Ga],Qa=Na.__ng_removed;Qa&&Qa.setForRemoval&&(da.push(Na),ma.add(Na),Qa.hasAnimation?this.driver.query(Na,".ng-star-inserted",!0).forEach(function(Ya){return ma.add(Ya)}):ra.add(Na))}var gb=new Map,va=mMa(H,Array.from(ma));va.forEach(function(Ya,dc){var uc="ng-leave"+U++;gb.set(dc,uc);Ya.forEach(function(rd){return oq(rd,uc)})});a.push(function(){N.forEach(function(Ya,dc){var uc=O.get(dc);Ya.forEach(function(rd){return pq(rd,
uc)})});va.forEach(function(Ya,dc){var uc=gb.get(dc);Ya.forEach(function(rd){return pq(rd,uc)})});da.forEach(function(Ya){nMa(c,Ya)})});var Ja=[],La=[];for(a=this._namespaceList.length-1;a>=0;a--)oDc(this._namespaceList[a],b).forEach(function(Ya){var dc=Ya.player,uc=Ya.element;Ja.push(dc);if(c.collectedEnterElements.length){var rd=uc.__ng_removed;if(rd&&rd.setForMove){if(rd.previousTriggersValues&&rd.previousTriggersValues.has(Ya.triggerName)){rd=rd.previousTriggersValues.get(Ya.triggerName);var Jb=
c.statesByElement.get(Ya.element);if(Jb&&Jb.has(Ya.triggerName)){var Cc=Jb.get(Ya.triggerName);Cc.value=rd;Jb.set(Ya.triggerName,Cc)}}dc.destroy();return}}rd=!G||!PLa(G,uc);Jb=gb.get(uc);Cc=O.get(uc);var Gc=c._buildInstruction(Ya,d,Cc,Jb,rd);if(Gc.errors&&Gc.errors.length)La.push(Gc);else if(rd)dc.onStart(function(){return iq(uc,Gc.fromStyles)}),dc.onDestroy(function(){return hq(uc,Gc.toStyles)}),e.push(dc);else if(Ya.isFallbackTransition)dc.onStart(function(){return iq(uc,Gc.fromStyles)}),dc.onDestroy(function(){return hq(uc,
Gc.toStyles)}),e.push(dc);else{var Qd=[];Gc.timelines.forEach(function(Ed){Ed.stretchStartingKeyframe=!0;c.disabledNodes.has(Ed.element)||Qd.push(Ed)});Gc.timelines=Qd;d.append(uc,Gc.timelines);h.push({instruction:Gc,player:dc,element:uc});Gc.queriedElements.forEach(function(Ed){return mq(k,Ed,[]).push(dc)});Gc.preStyleProps.forEach(function(Ed,Vf){if(Ed.size){var Qh=q.get(Vf);Qh||q.set(Vf,Qh=new Set);Ed.forEach(function(yh,yq){return Qh.add(yq)})}});Gc.postStyleProps.forEach(function(Ed,Vf){var Qh=
u.get(Vf);Qh||u.set(Vf,Qh=new Set);Ed.forEach(function(yh,yq){return Qh.add(yq)})})}});if(La.length){var Lb=[];La.forEach(function(){Lb.push(new Wc(3505,!1))});Ja.forEach(function(Ya){return Ya.destroy()});this.reportError(Lb)}var Eb=new Map,jc=new Map;h.forEach(function(Ya){var dc=Ya.element;d.has(dc)&&(jc.set(dc,dc),c._beforeAnimationBuild(Ya.player.namespaceId,Ya.instruction,Eb))});e.forEach(function(Ya){var dc=Ya.element;c._getPreviousPlayers(dc,!1,Ya.namespaceId,Ya.triggerName,null).forEach(function(uc){mq(Eb,
dc,[]).push(uc);uc.destroy()})});var nc=da.filter(function(Ya){return sMa(Ya,q,u)}),Jc=new Map;lMa(Jc,ra,u).forEach(function(Ya){sMa(Ya,q,u)&&nc.push(Ya)});var ec=new Map;N.forEach(function(Ya){lMa(ec,new Set(Ya),q)});nc.forEach(function(Ya){var dc=Jc.get(Ya),uc=ec.get(Ya),rd,Jb;Jc.set(Ya,new Map([].concat(p((rd=dc==null?void 0:dc.entries())!=null?rd:[]),p((Jb=uc==null?void 0:uc.entries())!=null?Jb:[]))))});var ye=[],yb=[],Pb={};h.forEach(function(Ya){var dc=Ya.element,uc=Ya.player,rd=Ya.instruction;
if(d.has(dc))if(A.has(dc))uc.onDestroy(function(){return hq(dc,rd.toStyles)}),uc.disabled=!0,uc.totalTime=rd.totalTime,e.push(uc);else{var Jb=Pb;if(jc.size>1){Ya=dc;for(var Cc=[];Ya=Ya.parentNode;){var Gc=jc.get(Ya);if(Gc){Jb=Gc;break}Cc.push(Ya)}Cc.forEach(function(Qd){return jc.set(Qd,Jb)})}Ya=c._buildAnimation(uc.namespaceId,rd,Eb,f,ec,Jc);sDc(uc,Ya);Jb===Pb?ye.push(uc):((Ya=c.playersByElement.get(Jb))&&Ya.length&&(uc.parentPlayer=lq(Ya)),e.push(uc))}else iq(dc,rd.fromStyles),uc.onDestroy(function(){return hq(dc,
rd.toStyles)}),yb.push(uc),A.has(dc)&&e.push(uc)});yb.forEach(function(Ya){var dc=f.get(Ya.element);dc&&dc.length&&(dc=lq(dc),sDc(Ya,dc))});e.forEach(function(Ya){Ya.parentPlayer?tDc(Ya,Ya.parentPlayer):Ya.destroy()});for(b=0;b<da.length;b++)if(ra=da[b],a=ra.__ng_removed,pq(ra,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((H=k.get(ra))&&H.length&&a.push.apply(a,p(H)),H=this.driver.query(ra,".ng-animating",!0),Ga=0;Ga<H.length;Ga++)(Na=k.get(H[Ga]))&&Na.length&&a.push.apply(a,p(Na));a=a.filter(function(Ya){return!Ya.destroyed});
a.length?oMa(this,ra,a):nMa(this,ra)}da.length=0;ye.forEach(function(Ya){c.players.push(Ya);Ya.onDone(function(){Ya.destroy();var dc=c.players.indexOf(Ya);c.players.splice(dc,1)});Ya.play()});return ye};var gDc=function(a,b){a._flushFns.push(b)};g=PJ.prototype;g.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
g._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var h=!e||e=="void";a.forEach(function(k){k.queued||(h||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
g._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f=l(b.timelines),h=f.next(),k={};!h.done;k={players$jscomp$10:void 0},h=f.next()){h=h.value.element;var q=h!==e;k.players$jscomp$10=mq(c,h,[]);this._getPreviousPlayers(h,q,a,d,b.toState).forEach(function(u){return function(A){var G=A._player;G.beforeDestroy&&G.beforeDestroy();A.destroy();u.players$jscomp$10.push(A)}}(k))}iq(e,b.fromStyles)};
g._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,u=[],A=new Set,G=new Set,H=b.timelines.map(function(O){var U=O.element;A.add(U);var da=U.__ng_removed;if(da&&da.removedBeforeQueried)return new kq(O.duration,O.delay);da=U!==q;var ma=qMa((c.get(U)||bDc).map(function(Na){return Na._player})).filter(function(Na){return Na.element?Na.element===U:!1}),ra=e.get(U),Ga=f.get(U);ra=ILa(O.keyframes,ra,Ga);ma=h._buildPlayer(O,ra,ma);O.subTimeline&&d&&G.add(U);da&&(O=new hDc(a,k,
U),sDc(O,ma),u.push(O));return ma});u.forEach(function(O){mq(h.playersByQueriedElement,O.element,[]).push(O);O.onDone(function(){var U=h.playersByQueriedElement,da=O.element,ma=U.get(da);if(ma){if(ma.length){var ra=ma.indexOf(O);ma.splice(ra,1)}ma.length==0&&U.delete(da)}return ma})});A.forEach(function(O){return oq(O,"ng-animating")});var N=lq(H);N.onDestroy(function(){A.forEach(function(O){return pq(O,"ng-animating")});hq(q,b.toStyles)});G.forEach(function(O){mq(d,O,[]).push(N)});return N};
g._buildPlayer=function(a,b,c){return b.length>0?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new kq(a.duration,a.delay)};
var hDc=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new kq;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},sDc=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return KLa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
tDc=function(a,b){var c=a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};g=hDc.prototype;g._queueEvent=function(a,b){mq(this._queuedCallbacks,a,[]).push(b)};g.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};g.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
g.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};g.init=function(){this._player.init()};g.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};g.play=function(){!this.queued&&this._player.play()};g.pause=function(){!this.queued&&this._player.pause()};g.restart=function(){!this.queued&&this._player.restart()};g.finish=function(){this._player.finish()};g.destroy=function(){this.destroyed=!0;this._player.destroy()};
g.reset=function(){!this.queued&&this._player.reset()};g.setPosition=function(a){this.queued||this._player.setPosition(a)};g.getPosition=function(){return this.queued?0:this._player.getPosition()};g.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var QJ=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new PJ(a.body,b,c);this._timelineEngine=new aDc(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=QJ.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new JCc(this._driver)).build(e,c,[]);if(c.length)throw new Wc(3404,!1);c=new YCc(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};g.register=function(a,b){this._transitionEngine.register(a,b)};g.destroy=function(a,b){this._transitionEngine.destroy(a,b)};g.disableAnimations=function(a,b){pDc(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){c.charAt(0)=="@"?(c=l(MLa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};g.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=l(MLa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};g.flush=function(a){this._transitionEngine.flush(a===void 0?-1:a)};g.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};
ea.Object.defineProperties(QJ.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this._transitionEngine.players),p(this._timelineEngine.players))}}});var uMa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=uDc.get(a);d||uDc.set(a,d=new Map);this._initialStyles=d};uMa.prototype.start=function(){this._state<1&&(this._startStyles&&hq(this._element,this._startStyles,this._initialStyles),this._state=1)};uMa.prototype.finish=function(){this.start();this._state<2&&(hq(this._element,this._initialStyles),this._endStyles&&(hq(this._element,this._endStyles),this._endStyles=null),this._state=1)};
uMa.prototype.destroy=function(){this.finish();this._state<3&&(uDc.delete(this._element),this._startStyles&&(iq(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(iq(this._element,this._endStyles),this._endStyles=null),hq(this._element,this._initialStyles),this._state=3)};var uDc=new WeakMap;var vDc=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this._originalOnDoneFns=[];this._originalOnStartFns=[];this.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};g=vDc.prototype;
g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this._buildPlayer();this._preparePlayerBeforeStart()};
g._buildPlayer=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options);this._finalKeyframe=b.length?b[b.length-1]:new Map;var c=function(){return a._onFinish()};this.domPlayer.addEventListener("finish",c);this.onDestroy(function(){a.domPlayer.removeEventListener("finish",c)})}};g._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};
g._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};g._triggerWebAnimation=function(a,b,c){return a.animate(this._convertKeyframesToObject(b),c)};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.play=function(){this._buildPlayer();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start());this.domPlayer.play()};g.pause=function(){this.init();this.domPlayer.pause()};g.finish=function(){this.init();this._specialStyles&&this._specialStyles.finish();this._onFinish();this.domPlayer.finish()};
g.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()};g.restart=function(){this.reset();this.play()};g.hasStarted=function(){return this._started};
g.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.setPosition=function(a){this.domPlayer===void 0&&this.init();this.domPlayer.currentTime=a*this.time};g.getPosition=function(){var a;return+((a=this.domPlayer.currentTime)!=null?a:0)/this.time};
g.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){d!=="offset"&&b.set(d,a._finished?c:ELa(a.element,d))});this.currentSnapshot=b};g.triggerCallback=function(a){a=a==="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};ea.Object.defineProperties(vDc.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var wDc=function(){};wDc.prototype.getParentElement=function(a){return OLa(a)};wDc.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
wDc.prototype.animate=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h={duration:c,delay:d,fill:d==0?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(u){return u instanceof vDc});c!==0&&d!==0||e.forEach(function(u){u.currentSnapshot.forEach(function(A,G){return k.set(G,A)})});var q=wLa(b).map(function(u){return new Map(u)});q=FLa(a,q,k);b=vMa(a,q);return new vDc(a,q,h,b)};var xDc=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};g=xDc.prototype;g.destroyNode=function(a){var b,c;(c=(b=this.delegate).destroyNode)==null||c.call(b,a)};g.destroy=function(){var a=this;this.engine.destroy(this.namespaceId,this.delegate);this.engine.afterFlushAnimationsDone(function(){queueMicrotask(function(){a.delegate.destroy()})});var b;(b=this._onDestroy)==null||b.call(this)};g.createElement=function(a,b){return this.delegate.createElement(a,b)};
g.createComment=function(a){return this.delegate.createComment(a)};g.createText=function(a){return this.delegate.createText(a)};g.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};g.insertBefore=function(a,b,c,d){d=d===void 0?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};
g.removeChild=function(a,b){this.parentNode(b)&&this.engine._transitionEngine.removeNode(this.namespaceId,b,this.delegate)};g.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};g.parentNode=function(a){return this.delegate.parentNode(a)};g.nextSibling=function(a){return this.delegate.nextSibling(a)};g.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};g.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};
g.addClass=function(a,b){this.delegate.addClass(a,b)};g.removeClass=function(a,b){this.delegate.removeClass(a,b)};g.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};g.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};g.setProperty=function(a,b,c){b.charAt(0)=="@"&&b=="@.disabled"?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};g.setValue=function(a,b){this.delegate.setValue(a,b)};g.listen=function(a,b,c,d){return this.delegate.listen(a,b,c,d)};
g.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};ea.Object.defineProperties(xDc.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var yDc=function(a,b,c,d,e){xDc.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Y(yDc,xDc);
yDc.prototype.setProperty=function(a,b,c){b.charAt(0)=="@"?b.charAt(1)=="."&&b=="@.disabled"?this.disableAnimations(a,c===void 0?!0:!!c):this.engine.process(this.namespaceId,a,b.slice(1),c):this.delegate.setProperty(a,b,c)};
yDc.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=wMa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=l(xMa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){zDc(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var ADc=function(a,b,c){this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;b.onRemovalComplete=function(d,e){e==null||e.removeChild(null,d)}};
ADc.prototype.createRenderer=function(a,b){var c=this,d=this.delegate.createRenderer(a,b),e;if(!a||!(b==null?0:(e=b.data)==null?0:e.animation)){var f=this._rendererCache;b=f.get(d);b||(b=new xDc("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var h=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var q=function(u){Array.isArray(u)?u.forEach(q):c.engine.registerTrigger(h,k,a,u.name,u)};b.data.animation.forEach(q);return new yDc(this,k,d,this.engine)};
ADc.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};ADc.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var zDc=function(a,b,c,d){if(b>=0&&b<a._microtaskId)a._zone.run(function(){return c(d)});else{var e=a._animationCallbacksBuffer;e.length==0&&queueMicrotask(function(){a._zone.run(function(){e.forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;f(h)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
ADc.prototype.end=function(){var a=this;this._cdRecurDepth--;this._cdRecurDepth==0&&this._zone.runOutsideAngular(function(){a._scheduleCountTask();a.engine.flush(a._microtaskId)});this.delegate.end&&this.delegate.end()};var RJ=function(a,b,c){QJ.call(this,a,b,c)};Y(RJ,QJ);RJ.prototype.ngOnDestroy=function(){this.flush()};RJ.\u0275fac=function(a){return new (a||RJ)(nd(Ei),nd(ICc),nd(ECc))};RJ.\u0275prov=Sc({token:RJ,factory:RJ.\u0275fac});var BDc=[{provide:ECc,useFactory:function(){return new HCc}},{provide:QJ,useClass:RJ},{provide:Ff,useFactory:function(a,b,c){return new ADc(a,b,c)},deps:[cA,QJ,ph]}];p(BDc);var CDc=[{provide:ICc,useFactory:function(){return new wDc}},{provide:Gi,useFactory:function(){return"BrowserAnimations"}}].concat(p(BDc));var SJ=function(){};SJ.\u0275fac=function(a){return new (a||SJ)};SJ.\u0275mod=Jf({type:SJ});SJ.\u0275inj=Tc({providers:CDc,imports:[sA]});AMa(function(){});ui({passive:!0,capture:!0});ui({passive:!0,capture:!0});var DDc="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),EDc=yMa(AMa(zMa(function(a){this._elementRef=a}))),TJ=function(a,b,c){var d=EDc.call(this,a)||this;d._focusMonitor=b;d._animationMode=c;d.isRoundButton=d._hasHostAttributes("mat-fab","mat-mini-fab");d.isIconButton=d._hasHostAttributes("mat-icon-button");for(var e=l(DDc),f=e.next();!f.done;f=e.next())f=f.value,d._hasHostAttributes(f)&&d._getHostElement().classList.add(f);a.nativeElement.classList.add("mat-button-base");
d.isRoundButton&&(d.color="accent");return d};Y(TJ,EDc);g=TJ.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?hw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};g._getHostElement=function(){return this._elementRef.nativeElement};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};
g._hasHostAttributes=function(){var a=this;return ud.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};TJ.\u0275fac=function(a){return new (a||TJ)(zf(ff),zf(gw),zf(Gi,8))};
TJ.\u0275cmp=B({type:TJ,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(a,b){a&1&&Wg(Jx,5);if(a&2){var c;$g(c=ah())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(ng("disabled",b.disabled||null)("mat-id-collision",null),wg("_mat-animation-noopable",b._animationMode===
"NoopAnimations")("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],standalone:!1,features:[kg],attrs:["mat-button",""],ngContentSelectors:["*"],decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(a,b){a&1&&(Ng(),I(0,"span",0),Og(1),J(),K(2,"span",1)(3,"span",2));a&2&&(z(2),
wg("mat-button-ripple-round",b.isRoundButton||b.isIconButton),D("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[Jx],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}@media(forced-colors: active){.mat-button,.mat-flat-button,.mat-raised-button,.mat-icon-button,.mat-fab,.mat-mini-fab{outline:solid 1px}}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],
encapsulation:2,changeDetection:0});var UJ=function(){this.onAction=new hv;this.disabled=!1};UJ.prototype.handleClick=function(){this.onAction.emit()};UJ.\u0275fac=function(a){return new (a||UJ)};
UJ.\u0275cmp=B({type:UJ,selectors:[["onedev-hovercard-action"]],inputs:{disabled:"disabled"},outputs:{onAction:"onAction"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:1,consts:[["mat-button","","color","primary",1,"onedev-hovercard-action",3,"click","disabled"]],template:function(a,b){a&1&&(Ng(),I(0,"button",0),M("click",function(){return b.handleClick()}),Og(1),J());a&2&&D("disabled",b.disabled)},dependencies:[TJ],styles:[".onedev-hovercard-action[_ngcontent-%COMP%]{--onedev-card-action-background:var(--surface-default,#fff);--onedev-card-action-border:var(--hairline,#dadce0)}button.onedev-hovercard-action[_ngcontent-%COMP%]{background-color:var(--onedev-card-action-background);border-radius:0;border:none;border-top:1px solid var(--onedev-card-action-border);font-size:14px;height:40px;-webkit-box-pack:left;-webkit-justify-content:left;-moz-box-pack:left;-ms-flex-pack:left;justify-content:left;padding:0 20px;text-align:left;width:100%}"]});var VJ=function(){};VJ.\u0275fac=function(a){return new (a||VJ)};VJ.\u0275mod=Jf({type:VJ});VJ.\u0275inj=Tc({imports:[Mx,zx,zx]});var WJ=function(){};WJ.\u0275fac=function(a){return new (a||WJ)};WJ.\u0275mod=Jf({type:WJ});WJ.\u0275inj=Tc({imports:[Aw,eJ,Yv,VJ,yx]});var XJ=function(){};XJ.\u0275fac=function(a){return new (a||XJ)};XJ.\u0275mod=Jf({type:XJ});XJ.\u0275inj=Tc({imports:[ZB,GJ,WJ]});var FDc=["spanElement"],YJ=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};YJ.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};YJ.prototype.ngDoCheck=function(){this.spanElement&&!this.disabled&&this.spanElement.nativeElement.offsetWidth>this.maxWidth&&(this.displayString=this.displayString.substring(0,this.maxWidth/this.spanElement.nativeElement.offsetWidth*this.displayString.length-3)+"...")};
YJ.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};YJ.\u0275fac=function(a){return new (a||YJ)};
YJ.\u0275cmp=B({type:YJ,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&Wg(FDc,5);if(a&2){var c;$g(c=ah())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[["spanElement",""],[3,"matTooltip","innerHtml"]],template:function(a,b){a&1&&K(0,"span",1,0);a&2&&D("matTooltip",b.getTooltip())("innerHtml",b.displayString,tf)},dependencies:[YA,cB],encapsulation:2});var ZJ=function(){};ZJ.\u0275fac=function(a){return new (a||ZJ)};ZJ.\u0275mod=Jf({type:ZJ});ZJ.\u0275inj=Tc({imports:[ZB,cC]});var GDc=function(){this.issueId="";this.customFieldMap={};this.currentUserEmail="";this.user=this.originalIssue=null;this.componentId=0;this.type=null;this.status="NEW";this.severity=this.priority=null;this.title="";this.verifierUser=this.verifier=this.assigneeUser=this.assignee=this.reporterUser=this.reporter=null;this.cc=[];this.ccUsers=[];this.collaborators=[];this.collaboratorsUsers=[];this.hotlistId=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.postmortems=this.gerritChanges=
this.changelist=this.blockingIssueId=this.blockedByIssueId=this.duplicateOfIssueId=this.staffing=null;this.customField=[];this.duplicateIssueId=this.deletionReason=this.isDeleted=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeType=this.sloEndTime=this.sloStartTime=null};
GDc.prototype.setData=function(a){a=HDc(a);this.originalIssue=Qj(a);var b=Qj(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=Ak(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.cc=Ck(b.ccUsers)||[];this.ccUsers=b.ccUsers||[];this.collaborators=Ck(b.collaboratorsUsers)||[];this.collaboratorsUsers=b.collaboratorsUsers||[];this.staffing=b.staffing;this.changelist=b.changelist;this.gerritChanges=
b.gerritChanges;this.componentId=b.componentId||0;this.deletionReason=b.deletionReason;this.duplicateIssueId=b.duplicateIssueId;this.duplicateOfIssueId=b.duplicateOfIssueId;this.foundInVersion=b.foundInVersion;this.hotlistId=b.hotlistId;this.inProd=b.inProd;this.isArchived=b.isArchived;this.isDeleted=b.isDeleted;this.postmortems=b.postmortems;this.priority=b.priority;this.reporter=Ak(b.reporterUser);this.reporterUser=b.reporterUser;this.severity=b.severity;this.status=b.status||"NEW";this.targetedToVersion=
b.targetedToVersion;this.title=b.title;this.type=b.type;this.verifiedInVersion=b.verifiedInVersion;this.verifier=Ak(b.verifierUser);this.verifierUser=b.verifierUser;this.sloStartTime=b.sloStartTime;this.sloEndTime=b.sloEndTime;this.sloSnoozeType=b.sloSnoozeType;var c,d;this.effortEstimate=(d=(c=b.effort)==null?void 0:c.estimate)!=null?d:null;this.escalationOwner=a.escalationOwner;this.customField=[];b&&(this.customField=(b.customField||[]).filter(function(e){return e}).map(function(e){return new IDc(e)}));
c=l(a.customFields);a=c.next();for(d={};!a.done;d={fieldResource:void 0},a=c.next())d.fieldResource=a.value,a=d.fieldResource.allowedValue?d.fieldResource.allowedValue.map(function(e){return{value:e,displayText:e}}):null,(b=this.customField.find(function(e){return function(f){return f.customFieldId===e.fieldResource.customFieldId}}(d)))?(b.type=d.fieldResource.type,b.customFieldName=d.fieldResource.name,b.choices=a,this.customFieldMap[String(d.fieldResource.customFieldId)]=b):(b=new IDc({customFieldId:d.fieldResource.customFieldId}),
b.type=d.fieldResource.type,b.customFieldName=d.fieldResource.name,b.choices=a,this.customFieldMap[String(d.fieldResource.customFieldId)]=b)};
var HDc=function(a){a=Qj(a);var b=a.snapshot[0];b.status=b.status||"NEW";b.blockingIssueId=b.blockingIssueId||[];b.componentId=b.componentId||0;b.changelist=b.changelist||[];b.gerritChanges=b.gerritChanges||[];b.postmortems=b.postmortems||[];b.blockedByIssueId=b.blockedByIssueId||[];b.foundInVersion=b.foundInVersion||[];b.hotlistId=b.hotlistId||[];b.targetedToVersion=b.targetedToVersion||[];b.verifiedInVersion=b.verifiedInVersion||[];b.customField=b.customField||[];b.deletionReason=b.deletionReason||
null;b.duplicateOfIssueId=b.duplicateOfIssueId||null;b.isDeleted=b.isDeleted||!1;return a},MDc=function(a){for(var b=[],c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=JDc(a,d.customFieldId);if(!Pj(e?Io(e):null,Io(d))){if(e=Jo(d))d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=a.originalIssue.snapshot[0];$J(Ak(c.assigneeUser),a.assignee,"assignee",b);$J(c.componentId,a.componentId,"componentId",
b,!0);$J(c.deletionReason,a.deletionReason,"deletionReason",b);$J(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);$J(c.inProd,a.inProd,"inProd",b);$J(c.isArchived,a.isArchived,"isArchived",b);$J(c.isDeleted,a.isDeleted,"isDeleted",b);$J(c.priority,a.priority,"priority",b);$J(Ak(c.reporterUser),a.reporter,"reporter",b);$J(c.severity,a.severity,"severity",b);$J(c.status,a.status,"status",b);$J(c.title,a.title,"title",b);$J(c.type,a.type,"type",b);$J(Ak(c.verifierUser),a.verifier,"verifier",
b);var f,h,k,q;$J((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(q=(h=a.sloStartTime)==null?void 0:h.seconds)!=null?q:null,"sloStartTime",b);var u,A,G,H;$J((G=(u=c.sloEndTime)==null?void 0:u.seconds)!=null?G:null,(H=(A=a.sloEndTime)==null?void 0:A.seconds)!=null?H:null,"sloEndTime",b);$J(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var N,O;$J((O=(N=c.effort)==null?void 0:N.estimate)!=null?O:null,a.effortEstimate,"effortEstimate",b);aK(Ck(c.ccUsers),a.cc,"ccs",b);aK(Ck(c.collaboratorsUsers),
a.collaborators,"collaborators",b);KDc(c.staffing,a.staffing,b);aK(c.changelist,a.changelist,"changelists",b);LDc(c.gerritChanges,a.gerritChanges,b);aK(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);aK(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);aK(c.foundInVersion,a.foundInVersion,"foundInVersion",b);aK(c.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);aK(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);aK(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?
{issueId:a.issueId,actions:b}:null},$J=function(a,b,c,d,e){a!==b&&(a={fieldName:c,value:b!=null?String(b):void 0},e&&(a.ignoreOnIssueEditRequest=!0),d.push(a))},aK=function(a,b,c,d){var e=hua(b||[],new Set(a));a=hua(a||[],new Set(b));e.length&&d.push({fieldName:c,value:e.join(","),actionType:"ADD"});a.length&&d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})},LDc=function(a,b,c){var d=Cxa(b!=null?b:[],a!=null?a:[]);a=Cxa(a!=null?a:[],b!=null?b:[]).filter(function(e){return e.state!=="PENDING"});
d.length&&c.push({fieldName:"gerritChanges",gerritChangeValue:d,actionType:"ADD"});a.length&&c.push({fieldName:"gerritChanges",gerritChangeValue:a,actionType:"REMOVE"})},KDc=function(a,b,c){var d,e=BMa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,h=BMa((f=a==null?void 0:a.plannedAllocations)!=null?f:[]);a=[].concat(p(e.entries())).filter(function(k){var q=l(k);k=q.next().value;q=q.next().value;return!h.has(k)||!Pj(h.get(k),q)}).map(function(k){k=l(k);k.next();return k.next().value});b=a.map(function(k){if(k.user){var q,
u=(q=k.user.user)==null?void 0:q.emailAddress,A;k=(A=k.allocation)==null?void 0:A.involvement;return""+u+(k?" ("+Pxa[k]+")":"")}return k.placeholder?"Placeholder: "+k.placeholder.count+" "+k.placeholder.role:""}).join(", ");d=[].concat(p(h.entries())).filter(function(k){k=l(k).next().value;return!e.has(k)}).map(function(k){k=l(k);k.next();return k.next().value});f=d.map(function(k){if(k.user){var q;return(q=k.user.user)==null?void 0:q.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:
""}).join(", ");a.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:a},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d},actionType:"REMOVE",value:f})};g=GDc.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:Gb(c,"Unexpected custom field type: "+c)}}};
g.setCustomFieldValue=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b.textValue||"";break;case "DATE":this.customFieldMap[a].dateValue=b.dateValue||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b.enumValue||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b.numericValue;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue=b.repeatedTextValue;
break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=b.repeatedDateValue;break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue=b.repeatedEnumValue;break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue=b.repeatedNumericValue;break;default:Gb(c,"Unexpected custom field type: "+c)}}};g.setIsDeleted=function(a){this.isDeleted=a};g.setIsArchived=function(a){this.isArchived=a};g.setDeletionReason=function(a){this.deletionReason=a};
g.setReporter=function(a){this.reporter=a};g.setType=function(a){this.type=a};g.setPriority=function(a){this.priority=a};g.setSeverity=function(a){this.severity=a};g.setAssignee=function(a){this.assignee=a;a=om.get(this.status);!this.assignee&&this.originalIssue&&(a==null?void 0:a.assigneeRequirement)==="REQUIRED"?this.status="NEW":this.assignee&&this.status!=="FIXED"&&this.status!=="VERIFIED"&&(this.status="ASSIGNED")};
g.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalIssue&&Ak(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=om.get(this.status);(a==null?void 0:a.assigneeRequirement)==="FORBIDDEN"&&this.assigneeUser?this.assignee="":(a==null?void 0:a.assigneeRequirement)!=="REQUIRED"||this.assigneeUser||(this.assignee=this.currentUserEmail);this.status!=="VERIFIED"||this.verifier||(this.verifier=this.currentUserEmail)};g.setInProd=function(a){this.inProd=a};g.setCollaborators=function(a){this.collaborators=a};g.setStaffing=function(a){this.staffing=a};
g.setSloEndTime=function(a){this.sloEndTime=a};g.setSloSnoozeType=function(a){this.sloSnoozeType=a};g.setCodeChanges=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=im(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var JDc=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},V0a=function(a,b){var c=[];b!==void 0&&!b&&a.changelist&&c.push.apply(c,p(a.changelist));a.gerritChanges&&c.push.apply(c,p(a.gerritChanges.filter(function(d){return d.state==="MERGED"}).map(function(d){return yxa(d)})));return c},NDc=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return yxa(b)}):
[]},IDc=function(a){this.choices=this.customFieldName=this.type=null;this.customFieldId=a.customFieldId;this.displayValues=a.displayValues;this.textValue=a.textValue;this.dateValue=a.dateValue;this.enumValue=a.enumValue;this.numericValue=a.numericValue;this.repeatedTextValue=a.repeatedTextValue;this.repeatedDateValue=a.repeatedDateValue;this.repeatedEnumValue=a.repeatedEnumValue;this.repeatedNumericValue=a.repeatedNumericValue};
IDc.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var ODc=new Map([["assignee",function(a,b){a.assigneeUser=Hk(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Hk).filter(Tk)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Hk(b.reporter)}],["verifier",function(a,b){a.verifierUser=Hk(b.verifier)}],["componentId",function(a,b){a.componentId=b.componentId}],["deletionReason",function(a,b){a.deletionReason=b.deletionReason}],["duplicateOfIssueId",
function(a,b){a.duplicateOfIssueId=b.duplicateOfIssueId}],["inProd",function(a,b){a.inProd=b.inProd}],["isArchived",function(a,b){a.isArchived=b.isArchived}],["isDeleted",function(a,b){a.isDeleted=b.isDeleted}],["priority",function(a,b){a.priority=b.priority}],["severity",function(a,b){a.severity=b.severity}],["status",function(a,b){a.status=b.status}],["title",function(a,b){a.title=b.title}],["type",function(a,b){a.type=b.type}],["blockedByIssueId",function(a,b){a.blockedByIssueId=b.blockedByIssueId}],
["blockingIssueId",function(a,b){a.blockingIssueId=b.blockingIssueId}],["foundInVersion",function(a,b){a.foundInVersion=b.foundInVersion}],["targetedToVersion",function(a,b){a.targetedToVersion=b.targetedToVersion}],["verifiedInVersion",function(a,b){a.verifiedInVersion=b.verifiedInVersion}]]);var bK=new yd("MatSnackBarData"),PDc=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var QDc=function(){};QDc.\u0275fac=function(a){return new (a||QDc)};QDc.\u0275dir=Kf({type:QDc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var RDc=function(){};RDc.\u0275fac=function(a){return new (a||RDc)};RDc.\u0275dir=Kf({type:RDc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var SDc=function(){};SDc.\u0275fac=function(a){return new (a||SDc)};
SDc.\u0275dir=Kf({type:SDc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var cK=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new bg;this._afterOpened=new bg;this._onAction=new bg;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};g=cK.prototype;g.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
g.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterDismissed=function(){return this._afterDismissed};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};var dK=function(){this.snackBarRef=n(cK);this.data=n(bK)};dK.prototype.action=function(){this.snackBarRef.dismissWithAction()};ea.Object.defineProperties(dK.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});dK.\u0275fac=function(a){return new (a||dK)};
dK.\u0275cmp=B({type:dK,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0),Q(1),J(),E(2,CMa,3,1,"div",1));a&2&&(z(),R(" ",b.data.message,"\n"),z(),F(b.hasAction?2:-1))},dependencies:[Tx,QDc,RDc,SDc],styles:[".mat-mdc-simple-snack-bar{display:flex}\n"],encapsulation:2,changeDetection:0});var TDc=["label"],eK=function(){this._isDisposed=!1;var a=this;this._ngZone=n(ph);this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._platform=n(ew);this._animationsDisabled=Hi();this.snackBarConfig=n(PDc);this._document=n(Ei);this._trackedModals=new Set;this._renders=new bg;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new bg;this._onExit=new bg;this._onEnter=new bg;this._animationState="void";this._liveElementId=n(Gw).getId("mat-snack-bar-container-live-");var b=this.snackBarConfig;
this._live=b.politeness!=="assertive"||b.announcementMessage?b.politeness==="off"?"off":"polite":"assertive";this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));this._rendersRef=rha(function(){return a._renders.next()},{manualCleanup:!0})};Y(eK,qx);g=eK.prototype;g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};
g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};g.onAnimationEnd=function(a){var b=this;a==="_mat-snack-bar-exit"?this._completeExit():a==="_mat-snack-bar-enter"&&(clearTimeout(this._enterFallback),this._ngZone.run(function(){b._onEnter.next();b._onEnter.complete()}))};
g.enter=function(){var a=this;this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(Uf()).subscribe(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-enter")})})}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible");
a.onAnimationEnd("_mat-snack-bar-enter")},200)))};
g.exit=function(){var a=this;this._destroyed?Ce(void 0):this._ngZone.run(function(){a._animationState="hidden";a._changeDetectorRef.markForCheck();a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId);a._animationsDisabled?a._renders.pipe(Uf()).subscribe(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-exit")})})}):(clearTimeout(a._exitFallback),a._exitFallback=setTimeout(function(){return a.onAnimationEnd("_mat-snack-bar-exit")},
200))})};g.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit();this._renders.complete();this._rendersRef.destroy()};g._completeExit=function(){var a=this;clearTimeout(this._exitFallback);queueMicrotask(function(){a._onExit.next();a._onExit.complete()})};
g._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals();b=this._label.nativeElement;b.classList.toggle("mdc-snackbar__label",!b.querySelector(".mdc-snackbar__label"))};
g._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
g._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){if(!a._destroyed){var b=a._elementRef.nativeElement,c=b.querySelector("[aria-hidden]");b=b.querySelector("[aria-live]");if(c&&b){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&c.contains(document.activeElement)&&(d=document.activeElement);c.removeAttribute("aria-hidden");b.appendChild(c);var e;(e=d)==null||e.focus();
a._onAnnounce.next();a._onAnnounce.complete()}}},a._announceDelay)})};eK.\u0275fac=function(a){return new (a||eK)};
eK.\u0275cmp=B({type:eK,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(Wg(tx,7),Wg(TDc,7));if(a&2){var c;$g(c=ah())&&(b._portalOutlet=c.first);$g(c=ah())&&(b._label=c.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(a,b){a&1&&M("animationend",function(c){return b.onAnimationEnd(c.animationName)})("animationcancel",function(c){return b.onAnimationEnd(c.animationName)});a&2&&wg("mat-snack-bar-container-enter",b._animationState===
"visible")("mat-snack-bar-container-exit",b._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!b._animationsDisabled)},features:[kg],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(a,b){a&1&&(I(0,"div",1)(1,"div",2,0)(3,"div",3),C(4,DMa,0,0,"ng-template",4),J(),K(5,"div"),J()());a&2&&(z(5),ng("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[tx],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(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-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(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-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-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],
encapsulation:2});/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
 @type {{XSmall: string, Small: string, Medium: string, Large: string, XLarge: string, Handset: string, Tablet: string, Web: string, HandsetPortrait: string, TabletPortrait: string, WebPortrait: string, HandsetLandscape: string, TabletLandscape: string, WebLandscape: string}}
*/
var UDc=new yd("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new PDc}}),fK=function(){this._overlay=n(vx);this._live=n(zw);this._injector=n(Ze);this._breakpointObserver=n(tw);this._parentSnackBar=n(fK,{optional:!0,skipSelf:!0});this._defaultConfig=n(UDc);this._animationsDisabled=Hi();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=dK;this.snackBarContainerComponent=eK;this.handsetCssClass="mat-mdc-snack-bar-handset"};g=fK.prototype;
g.openFromComponent=function(a,b){return this._attach(a,b)};g.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
g._attachSnackBarContainer=function(a,b){var c=zh({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:PDc,useValue:b}]});a=a.attach(new ox(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new PDc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new cK(b,e);if(a instanceof Tg)f.instance=b.attachTemplatePortal(new px(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new ox(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(gg(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter()};
g._createOverlay=function(a){var b=new ex;b.direction=a.direction;var c=this._overlay.position().global(),d=a.direction==="rtl";d=a.horizontalPosition==="left"||a.horizontalPosition==="start"&&!d||a.horizontalPosition==="end"&&d;var e=!d&&a.horizontalPosition!=="center";d?c.left("0"):e?c.right("0"):kx(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return this._overlay.create(b)};
g._createInjector=function(a,b){return zh({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:cK,useValue:b},{provide:bK,useValue:a.data}]})};ea.Object.defineProperties(fK.prototype,{_openedSnackBarRef:{configurable:!0,enumerable:!0,get:function(){var a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}}});
fK.\u0275fac=function(a){return new (a||fK)};fK.\u0275prov=Sc({token:fK,factory:fK.\u0275fac,providedIn:"root"});var gK=function(){};gK.\u0275fac=function(a){return new (a||gK)};gK.\u0275mod=Jf({type:gK});gK.\u0275inj=Tc({providers:[fK],imports:[yx,ux,Vx,zx,dK,zx]});var hK=function(){this.snackBar=n(fK)};hK.prototype.open=function(a){var b=a.message;var c=a.dismissLabel;var d=a.actionLabel;var e=a.duration;a=a.snackbarType;c={dismissLabel:c,actionLabel:d,snackbarType:a};typeof b==="string"?c.message=b:c.htmlMessage=b;switch(a){case "ERROR":b="error";break;default:b=void 0}b={data:c,panelClass:b};e&&(b.duration=e);return this.snackBar.openFromComponent(VDc,b)};hK.\u0275fac=function(a){return new (a||hK)};hK.\u0275prov=Sc({token:hK,factory:hK.\u0275fac,providedIn:"root"});
var VDc=function(){this.data=n(bK);this.snackBarRef=n(cK)};VDc.\u0275fac=function(a){return new (a||VDc)};
VDc.\u0275cmp=B({type:VDc,selectors:[["ng-component"]],standalone:!1,decls:7,vars:3,consts:[[1,"snackbar-content"],[1,"message",3,"innerHtml"],[1,"message"],[1,"actions"],["type","button","mat-button",""],"type button mat-icon-button  aria-label Dismiss".split(" "),["type","button","mat-button","",3,"click"],["type","button","mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,EMa,1,1,"span",1)(2,FMa,2,1,"span",2),I(3,"div",3),E(4,
GMa,2,1,"button",4),E(5,HMa,2,1,"button",4)(6,IMa,2,0,"button",5),J()());a&2&&(z(),F(b.data.htmlMessage?1:2),z(3),F(b.data.actionLabel?4:-1),z(),F(b.data.dismissLabel?5:6))},dependencies:[aB,PA,Tx,Ux],styles:[".snackbar-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;word-break:break-word}button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button){height:24px;line-height:24px;padding:0 10px}.mat-mdc-icon-button[_ngcontent-%COMP%]{line-height:24px}.actions[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-left:5px;align-items:center}/*# sourceMappingURL=snackbar_content.css.map */"]});var iK=function(){this.snackbar=n(hK)};iK.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var Mq=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},WDc=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};iK.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};iK.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};iK.\u0275fac=function(a){return new (a||iK)};
iK.\u0275prov=Sc({token:iK,factory:iK.\u0275fac,providedIn:"root"});var jK=new yd("buganizerWindow",{factory:function(){return window}});var kK=function(){this.$window=n(jK)};kK.\u0275fac=function(a){return new (a||kK)};kK.\u0275prov=Sc({token:kK,factory:kK.\u0275fac,providedIn:"root"});var lK=function(){this.session=n(Es);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},Dq=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},XDc=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control#hotlists":a.baseDocumentationUrl+"/concepts/access-control#hotlists"};
lK.prototype.getIssueAccessLimit=function(){return this.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control.md?cl=head#issue_access_limits":this.baseDocumentationUrl+"/concepts/issues#issue_access_limits"};
var YDc=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":Dq(a)},TWa=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},ZDc=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},$Dc=function(a){if(a=ZDc(a))return a+"#recommended-access-settings"},aEc=function(a){if(a=ZDc(a))return a+"#fully-public-component"},bEc=function(a){return a.session.isExternalSession()?
a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam"},FHb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},zs=function(){return"http://go/buganizer-retention"};lK.prototype.getRestrictedAccessHelpLink=function(){return this.session.isExternalSession()?"https://developers.google.com/issue-tracker/concepts/restricted-content":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/restricted-access"};
var ZSb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};lK.prototype.getDisablingFieldsHelpLink=function(){return ZSb()+"#hiding-inherited-fields"};var cEc=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};lK.\u0275fac=function(a){return new (a||lK)};lK.\u0275prov=Sc({token:lK,factory:lK.\u0275fac,providedIn:"root"});var mK=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new bg;this._beforeClosed=new bg;this._state=0;this.disableClose=b.disableClose;this.id=a.id;a.addPanelClass("mat-mdc-dialog-panel");c._animationStateChanged.pipe(Ve(function(e){return e.state==="opened"}),Uf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(Ve(function(e){return e.state==="closed"}),Uf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);
d._finishDialogClose()});a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});Ue(this.backdropClick(),this.keydownEvents().pipe(Ve(function(e){return e.keyCode===27&&!d.disableClose&&!ri(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
mK.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(Ve(function(c){return c.state==="closing"}),Uf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();Kcc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};mK.prototype.afterOpened=function(){return this._afterOpened};var nK=function(a){return a._ref.closed};
g=mK.prototype;g.backdropClick=function(){return this._ref.backdropClick};g.keydownEvents=function(){return this._ref.keydownEvents};g.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):kx(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):Vcc(b);this._ref.updatePosition()};g.updateSize=function(a,b){this._ref.updateSize(a===void 0?"":a,b===void 0?"":b)};g.addPanelClass=function(a){this._ref.addPanelClass(a)};
g.removePanelClass=function(a){this._ref.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};var dEc=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.ariaModal=!1;this.autoFocus="first-tabbable";this.closeOnOverlayDetachments=this.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0;this.disableAnimations=!1};var oK=function(){this._isDisposed=!1;this._elementRef=n(ff);this._focusTrapFactory=n(pw);this._interactivityChecker=n(jw);this._ngZone=n(ph);this._overlayRef=n(fx);this._focusMonitor=n(gw);this._renderer=n(jv);this._platform=n(ew);this._document=n(Ei,{optional:!0});this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._changeDetectorRef=n(qv);this._injector=n(Ze);this._isDestroyed=!1;this._config=n(dEc,{optional:!0})||new dEc;
this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Y(oK,qx);g=oK.prototype;g._addAriaLabelledBy=function(a){this._ariaLabelledByQueue.push(a);this._changeDetectorRef.markForCheck()};g._removeAriaLabelledBy=function(a){a=this._ariaLabelledByQueue.indexOf(a);a>-1&&(this._ariaLabelledByQueue.splice(a,1),this._changeDetectorRef.markForCheck())};g._contentAttached=function(){this._initializeFocusTrap();this._handleBackdropClicks();this._captureInitialFocus()};
g._captureInitialFocus=function(){this._trapFocus()};g.ngOnDestroy=function(){this._isDestroyed=!0;this._restoreFocus()};g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};g._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
g._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._trapFocus=function(){var a=this;this._isDestroyed||$e(function(){var b=a._elementRef.nativeElement;switch(a._config.autoFocus){case !1:case "dialog":a._containsFocus()||b.focus();break;case !0:case "first-tabbable":var c;((c=a._focusTrap)==null?0:c.focusInitialElement())||a._focusDialogContainer();break;case "first-heading":a._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:a._focusByCssSelector(a._config.autoFocus)}},{injector:this._injector})};
g._restoreFocus=function(){var a=this._config.restoreFocus,b=null;typeof a==="string"?b=this._document.querySelector(a):typeof a==="boolean"?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&typeof b.focus==="function"){a=wi();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(hw(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
g._focusDialogContainer=function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=wi();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=wi()))};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};oK.\u0275fac=function(a){return new (a||oK)};
oK.\u0275cmp=B({type:oK,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&Wg(tx,7);if(a&2){var c;$g(c=ah())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&ng("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},features:[kg],
decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&C(0,JMa,0,0,"ng-template",0)},dependencies:[tx],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var eEc=new yd("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.block()}}}),fEc=new yd("DialogData"),gEc=new yd("DefaultDialogConfig");var hEc=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new bg;this.disableClose=b.disableClose;this.backdropClick=a.backdropClick();this.keydownEvents=a.keydownEvents();this.outsidePointerEvents=a.outsidePointerEvents();this.id=b.id;this.keydownEvents.subscribe(function(d){d.keyCode!==27||c.disableClose||ri(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})});this._detachSubscription=
a._detachments.subscribe(function(){b.closeOnOverlayDetachments!==!1&&c.close()})};g=hEc.prototype;g.close=function(a,b){if(this.containerInstance){var c=this.closed;this.containerInstance._closeInteractionType=(b==null?void 0:b.focusOrigin)||"program";this._detachSubscription.unsubscribe();this.overlayRef.dispose();c.next(a);c.complete();this.componentInstance=this.containerInstance=null}};g.updatePosition=function(){this.overlayRef.updatePosition()};
g.updateSize=function(a,b){this.overlayRef.updateSize({width:a===void 0?"":a,height:b===void 0?"":b})};g.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};g.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};var pK=function(){this._overlay=n(vx);this._injector=n(Ze);this._defaultOptions=n(gEc,{optional:!0});this._parentDialog=n(pK,{optional:!0,skipSelf:!0});this._overlayContainer=n(Ww);this._idGenerator=n(Gw);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new bg;this._afterOpenedAtThisLevel=new bg;this._ariaHiddenElements=new Map;this._scrollStrategy=n(eEc)};g=pK.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new dEc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new hEc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;this._attachDialogContent(a,e,d,b);this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology();this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);
return e};g.closeAll=function(){KMa(this.openDialogs,function(a){return a.close()})};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){var a=this;KMa(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});KMa(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new ex({positionStrategy:a.positionStrategy||Vcc(kx(this._overlay.position().global())),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation,disableAnimations:a.disableAnimations});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachContainer=function(a,b,c){var d,e=c.injector||((d=c.viewContainerRef)==null?void 0:d.injector);b=[{provide:dEc,useValue:c},{provide:hEc,useValue:b},{provide:fx,useValue:a}];c.container?typeof c.container==="function"?d=c.container:(d=c.container.type,b.push.apply(b,p(c.container.providers(c)))):d=oK;c=new ox(d,c.viewContainerRef,zh({parent:e||this._injector,providers:b}));return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){if(a instanceof Tg){var e=this._createInjector(d,b,c,void 0);b={$implicit:d.data,dialogRef:b};d.templateContext&&(b=Object.assign({},b,typeof d.templateContext==="function"?d.templateContext():d.templateContext));c.attachTemplatePortal(new px(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new ox(a,d.viewContainerRef,e)),b.componentRef=a,b.componentInstance=a.instance};
g._createInjector=function(a,b,c,d){var e,f=a.injector||((e=a.viewContainerRef)==null?void 0:e.injector);e=[{provide:fEc,useValue:a.data},{provide:hEc,useValue:b}];a.providers&&(typeof a.providers==="function"?e.push.apply(e,p(a.providers(b,a,c))):e.push.apply(e,p(a.providers)));!a.direction||f&&f.get(Qw,null,{optional:!0})||e.push({provide:Qw,useValue:{value:a.direction,change:Ce()}});return zh({parent:f||d,providers:e})};
g._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(){var a=zcc(this._overlayContainer);if(a.parentElement)for(var b=a.parentElement.children,c=b.length-1;c>-1;c--){var d=b[c];d===a||d.nodeName==="SCRIPT"||d.nodeName==="STYLE"||d.hasAttribute("aria-live")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
ea.Object.defineProperties(pK.prototype,{openDialogs:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},afterOpened:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}});pK.\u0275fac=function(a){return new (a||pK)};pK.\u0275prov=Sc({token:pK,factory:pK.\u0275fac,providedIn:"root"});var qK=function(){};qK.\u0275fac=function(a){return new (a||qK)};qK.\u0275mod=Jf({type:qK});qK.\u0275inj=Tc({providers:[pK],imports:[yx,ux,Aw,ux]});var iEc=function(){this.role="dialog";this.panelClass="";this.hasBackdrop=!0;this.backdropClass="";this.disableClose=!1;this.height=this.width="";this.ariaLabel=this.ariaLabelledBy=this.ariaDescribedBy=this.data=null;this.ariaModal=!1;this.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0};var rK=function(){oK.apply(this,arguments);var a=this;this._animationStateChanged=new hv;this._animationsEnabled=!Hi();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=MMa(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=MMa(this._config.exitAnimationDuration))!=null?c:75:0;this._animationTimer=null;this._finishDialogOpen=function(){a._clearAnimationClasses();
a._openAnimationDone(a._enterAnimationDuration)};this._finishDialogClose=function(){a._clearAnimationClasses();a._animationStateChanged.emit({state:"closed",totalTime:a._exitAnimationDuration})}};Y(rK,oK);g=rK.prototype;g._contentAttached=function(){oK.prototype._contentAttached.call(this);this._startOpenAnimation()};
g._startOpenAnimation=function(){var a=this;this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration});this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._enterAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--opening","mdc-dialog--open")}),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add("mdc-dialog--open"),
Promise.resolve().then(function(){return a._finishDialogOpen()}))};
g._startExitAnimation=function(){var a=this;this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration});this._hostElement.classList.remove("mdc-dialog--open");this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._exitAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--closing")}),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):
Promise.resolve().then(function(){return a._finishDialogClose()})};g._updateActionSectionCount=function(a){this._actionSectionCount+=a;this._changeDetectorRef.markForCheck()};g._clearAnimationClasses=function(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")};g._waitForAnimationToComplete=function(a,b){this._animationTimer!==null&&clearTimeout(this._animationTimer);this._animationTimer=setTimeout(b,a)};
g._requestAnimationFrame=function(a){this._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame==="function"?requestAnimationFrame(a):a()})};g._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};g._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};g.ngOnDestroy=function(){oK.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
g.attachComponentPortal=function(a){a=oK.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};rK.\u0275fac=function(){var a;return function(b){return(a||(a=fe(rK)))(b||rK)}}();
rK.\u0275cmp=B({type:rK,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Ig("id",b._config.id),ng("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledByQueue[0])("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null),wg("_mat-animation-noopable",!b._animationsEnabled)("mat-mdc-dialog-container-with-actions",
b._actionSectionCount>0))},features:[kg],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(a){a&1&&(I(0,"div",0)(1,"div",1),C(2,LMa,0,0,"ng-template",2),J()())},dependencies:[tx],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],
encapsulation:2});var sK=new yd("MatMdcDialogData"),jEc=new yd("mat-mdc-dialog-default-options"),kEc=new yd("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.block()}}}),tK=function(){this._overlay=n(vx);this._defaultOptions=n(jEc,{optional:!0});this._scrollStrategy=n(kEc);this._parentDialog=n(tK,{optional:!0,skipSelf:!0});this._idGenerator=n(Gw);this._dialog=n(pK);this._animationsDisabled=Hi();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new bg;this._afterOpenedAtThisLevel=new bg;this.dialogConfigClass=iEc;this._dialogRefConstructor=mK;this._dialogContainerType=rK;this._dialogDataToken=sK};g=tK.prototype;g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
g.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new iEc,b);b.id=b.id||this._idGenerator.getId("mat-mdc-dialog-");b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();var e,f;a=this._dialog.open(a,Object.assign({},b,{positionStrategy:Vcc(kx(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||((e=b.enterAnimationDuration)==null?void 0:e.toLocaleString())==="0"||((f=b.exitAnimationDuration)==
null?void 0:f.toString())==="0",container:{type:this._dialogContainerType,providers:function(){return[{provide:c.dialogConfigClass,useValue:b},{provide:dEc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(h,k,q){d=new c._dialogRefConstructor(h,b,q);var u;d.updatePosition((u=b)==null?void 0:u.position);return[{provide:c._dialogContainerType,useValue:q},{provide:c._dialogDataToken,useValue:k.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentRef=a.componentRef;
d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);nK(d).subscribe(function(){var h=c.openDialogs.indexOf(d);h>-1&&(c.openDialogs.splice(h,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};g.closeAll=function(){this._closeDialogs(this.openDialogs)};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
ea.Object.defineProperties(tK.prototype,{openDialogs:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},afterOpened:{configurable:!0,enumerable:!0,get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}});tK.\u0275fac=function(a){return new (a||tK)};tK.\u0275prov=Sc({token:tK,factory:tK.\u0275fac,providedIn:"root"});var uK=function(){this.dialogRef=n(mK,{optional:!0});this._elementRef=n(ff);this._dialog=n(tK);this.type="button"};uK.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=NMa(this._elementRef,this._dialog.openDialogs))};uK.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
uK.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};uK.\u0275fac=function(a){return new (a||uK)};
uK.\u0275dir=Kf({type:uK,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&M("click",function(c){return b._onButtonClick(c)});a&2&&ng("aria-label",b.ariaLabel||null)("type",b.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Uu]});
var vK=function(){this._dialogRef=n(mK,{optional:!0});this._elementRef=n(ff);this._dialog=n(tK)};vK.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=NMa(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};vK.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};vK.\u0275fac=function(a){return new (a||vK)};vK.\u0275dir=Kf({type:vK});
var wK=function(){vK.apply(this,arguments);this.id=n(Gw).getId("mat-mdc-dialog-title-")};Y(wK,vK);wK.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};wK.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};wK.\u0275fac=function(){var a;return function(b){return(a||(a=fe(wK)))(b||wK)}}();
wK.\u0275dir=Kf({type:wK,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Ig("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[kg]});var xK=function(){};xK.\u0275fac=function(a){return new (a||xK)};
xK.\u0275dir=Kf({type:xK,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[function(a){var b=function(c){var d=Array.isArray(a);c.hostDirectives===null?(c.resolveHostDirectives=oka,c.hostDirectives=d?a.map(qka):[a]):d?c.hostDirectives.unshift.apply(c.hostDirectives,p(a.map(qka))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([Yw])]});var yK=function(){vK.apply(this,arguments)};
Y(yK,vK);yK.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};yK.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};yK.\u0275fac=function(){var a;return function(b){return(a||(a=fe(yK)))(b||yK)}}();
yK.\u0275dir=Kf({type:yK,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(a,b){a&2&&wg("mat-mdc-dialog-actions-align-start",b.align==="start")("mat-mdc-dialog-actions-align-center",b.align==="center")("mat-mdc-dialog-actions-align-end",b.align==="end")},inputs:{align:"align"},features:[kg]});var zK=function(){};zK.\u0275fac=function(a){return new (a||zK)};zK.\u0275mod=Jf({type:zK});zK.\u0275inj=Tc({providers:[tK],imports:[qK,yx,ux,zx,zx]});var lEc=function(){this.dialogRef=n(mK);this.data=n(sK);this.confirmButtonTheme=this.data.isDestructive?"warn":"primary";var a;this.cancelButtonText=(a=this.data.cancelButtonText)!=null?a:"Cancel";var b;this.confirmButtonText=(b=this.data.confirmButtonText)!=null?b:"Confirm";var c;this.showCancelButton=(c=this.data.showCancelButton)!=null?c:!0};lEc.\u0275fac=function(a){return new (a||lEc)};
lEc.\u0275cmp=B({type:lEc,selectors:[["b-confirmation-dialog"]],standalone:!1,decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium",3,"click","color"],["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),K(2,"div",1),I(3,"div",2),E(4,OMa,2,1,"button",3),I(5,"button",4),M("click",
function(){return b.dialogRef.close(!0)}),Q(6),J()());a&2&&(z(),ch(b.data.title),z(),D("innerHTML",b.data.content,tf),z(2),F(b.showCancelButton?4:-1),z(),D("color",b.confirmButtonTheme),z(),R(" ",b.confirmButtonText," "))},dependencies:[PA,Tx,wK,yK,xK],encapsulation:2});var AK=function(){this.dialog=n(tK)},mEc=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
AK.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;nK(this.dialog.open(lEc,{data:{title:b,content:c,isDestructive:a.isDestructive,cancelButtonText:a.cancelButtonText,confirmButtonText:a.confirmButtonText,showCancelButton:a.showCancelButton},maxWidth:"500px"})).subscribe(function(f){f?d==null||d():e==null||e()})};AK.\u0275fac=function(a){return new (a||AK)};AK.\u0275prov=Sc({token:AK,factory:AK.\u0275fac,providedIn:"root"});var BK=function(){this.activeSession=n(Es);this.documentationLinks=n(lK);this.confirmationDialogService=n(AK)},oEc=function(a,b){return new Promise(function(c){nEc(a,b,function(){c(!0)},function(){c(!1)})})},nEc=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Oi("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Pi([Oi('A security "Vulnerability" is a weakness in software and hardware components that, when exploited, results in a negative impact to confidentiality, integrity, or availability. \n\nThis issue type is subject to stricter SLOs than other types. Please refer to the security guidelines for more information on on proper usage.\n\n',
{preserveNewlines:!0}),Qi("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if(b==="PRIVACY_ISSUE"){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var h={};f=Pi([Oi('The "Privacy Issue" type tracks situations in which Google systems risk falling out of alignment with internal privacy  standards and requirements, and is subject to stricter SLOs than other types. ',{preserveNewlines:!0}),Qi("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Oi(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),Qi("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Oi(". Incidents should be filed at ",{preserveNewlines:!0}),Qi("a",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),Oi(".\n\nDO NOT use this type unless you are on one of the following teams or have been specifically requested by one of these teams to file a Privacy Issue bug: Privacy Incident Management, Privacy Investigations, Privacy Remediation.",
{preserveNewlines:!0})])}a.confirmationDialogService.open({title:e,content:f,onConfirm:c!=null?c:function(){},onDismiss:d!=null?d:function(){}})}};BK.\u0275fac=function(a){return new (a||BK)};BK.\u0275prov=Sc({token:BK,factory:BK.\u0275fac,providedIn:"root"});var pEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pEc.messageId)};Y(pEc,V);pEc.messageId="b.TimeZoneDataList";var CK=function(){var a=this;this.executor=n(yC);this.activeSession=n(Es);this.cachedDisplayNames=void 0;this.memoizedTimezones=new Ysc(function(b){a:{var c=l(a.activeSession.session.preload.timezones);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b===d.timeZoneId_){c=d;break a}c=void 0}return c?Ce(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:bm}).pipe(y(Dva))},10)};CK.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var qEc=function(a){return a.cachedDisplayNames?Ce(Qj(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:pEc}).pipe(y(function(b){b=Wk(b,bm,1,Fk()).map(function(c){c=Dva(c);var d=omc(qmc(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};CK.\u0275fac=function(a){return new (a||CK)};CK.\u0275prov=Sc({token:CK,factory:CK.\u0275fac,providedIn:"root"});var DK=function(){this.butterBar=n(iK);this.activeSession=n(Es);this.$log=n(MA);this.timeout=n(fE)};
DK.prototype.errorHandler=function(a,b){var c=this;this.timeout.schedule(function(){var d=b.status===403?"Access denied for: "+c.activeSession.getUserEmail():b.status===429?"Request throttled for: "+c.activeSession.getUserEmail()+". Please wait a few seconds and try again.":Xo(b)?Xo(b):b.status===404?"Invalid ID.":b.status===401?"No authorization found. Please refresh the page.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";c.$log.error(d,b);c.butterBar.showWarning(d)})};
var EK=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},FK=function(a,b){if(Wo(b))a.errorHandler(null,b);else throw b;};DK.\u0275fac=function(a){return new (a||DK)};DK.\u0275prov=Sc({token:DK,factory:DK.\u0275fac,providedIn:"root"});var rEc=new Map([["BUG","Unintended behavior"],["FEATURE_REQUEST","Request for new functionality"],["CUSTOMER_ISSUE","Issue affecting a 3rd party"],["INTERNAL_CLEANUP","Maintenance work"],["PROCESS","Miscellaneous non-feature work"],["VULNERABILITY","A security concern"],["PRIVACY_ISSUE","A privacy concern"],["PROGRAM","A set of related large scale work efforts"],["PROJECT","Goal-driven effort"],["FEATURE","A collection of work"],["MILESTONE","An important achievement"],["EPIC","A large collection of work"],
["STORY","A small collection of work"],["TASK","A small unit of work"],["TYPE_UNSPECIFIED","Unspecified"]]),sEc=["P0","P1","P2","P3","P4"],tEc="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" "),uEc="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),vEc=["HIGH","MEDIUM","LOW","ZERO"],wEc=["SWE","SRE","PM","TPGM","UX"],xEc=["S0","S1","S2",
"S3","S4"],yEc=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),zEc=new Map([["TYPE_UNSPECIFIED","(Unspecified Issue Type)"],["BUG","Bug"],["FEATURE_REQUEST","Feature Request"],["CUSTOMER_ISSUE","Customer Issue"],["INTERNAL_CLEANUP","Internal Cleanup"],["PROCESS","Process"],["VULNERABILITY","Vulnerability"],["PRIVACY_ISSUE","Privacy Issue"],["PROGRAM","Program"],["PROJECT","Project"],["FEATURE","Feature"],["MILESTONE","Milestone"],
["EPIC","Epic"],["STORY","Story"],["TASK","Task"]]),AEc=new Set("PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),BEc=uEc.map(function(a){return{value:a,displayText:xk(a),altText:rEc.get(a)}}),GK=function(){this.priorities=sEc;this.severities=xEc;this.editIssueTypes=uEc;this.editIssueTypeChoices=BEc;this.issueTypesDisplayNames=zEc;this.issueTypesShortDescriptions=rEc;this.issuePrioritiesDisplayNames=yEc;this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",
id:"America/Los_Angeles"}]};GK.\u0275fac=function(a){return new (a||GK)};GK.\u0275prov=Sc({token:GK,factory:GK.\u0275fac,providedIn:"root"});var HK=function(){var a=n(OG),b=n(CK),c=n(GK);Z.call(this);var d=this;this.errorHandler=n(DK);this.cachedFormatters=new Map;this.userPrefs=tC.dateTimePreferences;this.formatPrefChange$=new bg;this.userTimeZone=null;this.timeZones={};Promise.all(c.supportedTimeZones.map(function(e){if(e.id==="")return Promise.resolve({name:"",timeZone:null});var f=b.get(e.id).pipe(gg(d.destroyed$));return Ge(f).then(function(h){return{name:e.name,timeZone:h}})})).then(function(e){e=l(e);for(var f=e.next();!f.done;f=
e.next())f=f.value,d.timeZones[f.name]=f.timeZone;a.preferences$.pipe(gg(d.destroyed$)).subscribe(function(h){h.dateTimePreferences&&(h=h.dateTimePreferences,d.userPrefs=h,d.userTimeZone=d.timeZones[h.timeZone],d.formatPrefChange$.next())})}).catch(function(e){d.errorHandler.errorHandler(null,e)})};Y(HK,Z);HK.\u0275dir=Z.\u0275dir;HK.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new cE(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var CEc=function(a,b){return a.formatPrefChange$.subscribe(b)};HK.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};HK.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};HK.\u0275fac=function(a){return new (a||HK)};HK.\u0275prov=Sc({token:HK,factory:HK.\u0275fac,providedIn:"root"});var IK=function(){this.dateFormatter=n(HK)};
IK.prototype.format=function(a){var b=this;if(a){if(a.textValue)return a.textValue;if(a.dateValue)return(a=a.dateValue)&&a.day&&a.month&&a.year?this.dateFormatter.formatUserCalendar(Ho(a)):"";if(a.enumValue)return a.enumValue;if(a.numericValue||a.numericValue===0)return String(a.numericValue);if(a.repeatedTextValue)return a.repeatedTextValue.values.join(", ");if(a.repeatedDateValue)return a.repeatedDateValue.values.map(function(c){return b.dateFormatter.formatUserCalendar(Ho(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};IK.\u0275fac=function(a){return new (a||IK)};IK.\u0275prov=Sc({token:IK,factory:IK.\u0275fac,providedIn:"root"});var JK=function(){this.customFieldFormatter=n(IK);this.hotlistFridge=n(JD);this.FIELD_TEXT_MAP={assignee:"Assignee",type:"Issue Type",componentId:"Component ID",duplicateOfIssueId:"Canonical Issue ID",inProd:"In Prod",priority:"Priority",severity:"Severity",status:"Status",title:"Title",verifier:"Verifier",effortEstimate:"Estimated Effort",sloStartTime:"SLO Start Time",sloEndTime:"SLO End Time",blockingIssueId:"Blocked Issues",ccs:"CCs",changelists:"Changelists",gerritChanges:"Gerrit changes",blockedByIssueId:"Blocking Issues",
foundInVersion:"Found In",hotlists:"Hotlists",targetedToVersion:"Targeted To",verifiedInVersion:"Verified In"};this.ENUM_FIELDS=["type","status"]},FEc=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=QMa(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=PMa(b.bulkEditOps));b=DEc(f).map(function(h){return EEc(a,h,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?e.length==1?b+" on 1 issue.":b+(" on "+e.length+" issues."):
b+"."},DEc=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.fieldName==="status"?c.push(d):b.push(d);return b.concat(c)},EEc=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=b.customFieldValue,e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):b.fieldName==="effortEstimate"&&d?e=d:e=a.FIELD_TEXT_MAP[b.fieldName]||
b.fieldName;b.fieldName==="hotlists"?f=b.value.split(",").map(function(h){var k,q;return(k=(q=a.hotlistFridge.peek(String(h)))==null?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?Yj(f.replace(/_/g," ").toLowerCase()):"");return b.actionType==="ADD"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):b.actionType==="REMOVE"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):b.actionType==="ADD"&&
b.fieldName==="parentId"?"Added child issue(s) to parent ["+f+"]":b.actionType==="REMOVE"&&b.fieldName==="parentId"?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||b.fieldName!=="status"?b.actionType||b.fieldName!=="comment"?b.actionType||b.fieldName!=="attachments"?b.actionType||b.fieldName!=="sloStartTime"?b.actionType||b.fieldName!=="sloEndTime"?b.actionType==="ADD"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(h){return h.changeNumber}).join(", "),'"'+f+'" added to '+e):
b.actionType==="REMOVE"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(h){return h.changeNumber}).join(", "),'"'+f+'" removed from '+e):b.actionType!=="ADD"||b.customFieldValue?b.actionType!=="REMOVE"||b.customFieldValue?b.fieldName==="isArchived"?b.value==="true"?"Archived successfully":"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO End Time Set":"SLO End Time Unset":b.value?"SLO Start Time Set":
"SLO Start Time Unset":"":"Comment added":'Status set to "'+om.get(b.value).displayValue+'"'};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275prov=Sc({token:JK,factory:JK.\u0275fac,providedIn:"root"});var SMa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SMa,V);SMa.prototype.getContentJudgement=function(){return X(this,uq,2)};SMa.prototype.setContentJudgement=function(a){return W(this,uq,2,a)};var KK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KK,V);KK.prototype.getIssueId=function(){return Dl(this,1)};KK.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};KK.prototype.getIssueId_asString=function(){return sl(this,1)};KK.prototype.setIssueId=function(a){return Vl(this,1,a)};var GEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GEc,V);g=GEc.prototype;g.getFilename=function(){return Oh(this,1)};g.setFilename=function(a){Rl(this,1,a)};g.getMimeType=function(){return Oh(this,2)};g.setMimeType=function(a){Rl(this,2,a)};g.getSize=function(){return Dl(this,5)};g.setSize=function(a){return Hl(this,5,a)};var LK=function(){this.activeSession=n(Es)},HEc=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},tr=function(a,b,c,d){c=c===void 0?a.activeSession.getTracker():c;d=d===void 0?!1:d;c?(d=d===void 0?!1:d,a=a.activeSession.isInternalSession()&&!d&&c.internalBaseUrl?c.internalBaseUrl+"/"+b:c.externalBaseUrl?c.externalBaseUrl+"/"+b:IEc(a,b,!0,c.trackerId,d)):a=IEc(a,b,!1,"",d);return a},IEc=function(a,b,c,d,e){c=c===void 0?!1:c;d=d===void 0?"":d;a=a.activeSession.getAppBaseUrl(e===
void 0?!1:e);return c?a+b+"?tracker="+d:a+b},rs=function(a,b){var c=a.activeSession.getTracker();if(!b||!c)return b;var d;a=(d=b.componentPathId)!=null?d:[];var e;d=(e=b.componentPathName)!=null?e:[];e=Number(c.componentId);e=a.includes(e)?a.indexOf(e):a.length;return{componentPathId:a.slice(e),componentPathName:d.slice(e),fieldConfigsMap:b.fieldConfigsMap}},JEc=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};LK.\u0275fac=function(a){return new (a||LK)};
LK.\u0275prov=Sc({token:LK,factory:LK.\u0275fac,providedIn:"root"});var MK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,MK.messageId)};Y(MK,V);MK.prototype.getIt=function(){return X(this,Hm,14)};MK.prototype.setIt=function(a){return W(this,Hm,14,a)};MK.messageId="b.Attachment";var NK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,NK.messageId)};Y(NK,V);NK.prototype.getAttachmentsList=function(){return Wk(this,MK,1,Fk())};NK.prototype.setAttachmentsList=function(a){return sn(this,1,a)};NK.prototype.addAllAttachments=function(a){lo(this,1,MK,a)};NK.messageId="b.CreateAttachmentsResponse";var OK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,OK.messageId)};Y(OK,V);OK.prototype.getErrorMessage=function(){return Oh(this,2)};OK.prototype.setErrorMessage=function(a){Rl(this,2,a)};OK.messageId="b.EncryptedMediaResponse";var PK=function(){this.executor=n(zC);this.httpClient=n(kA);this.activeSession=n(Es);this.trackerHelpers=n(LK)},KEc=function(a,b){var c=new GEc;c.setFilename(b.filename);c.setMimeType(b.mimeType);b.encryptedBlobId!=null&&Rl(c,3,b.encryptedBlobId);Rl(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:OK}).then(RMa)},MEc=function(a,b,c){var d=LEc(a)+("/download/attachment/"+b+"/"+c);return Oe(function(){return fetch(d,
{credentials:"include",mode:"no-cors"})}).pipe(fg(function(){return a.httpClient.get(d,{observe:"events",responseType:"arraybuffer",withCredentials:!0}).pipe(y(function(e){if(e instanceof jA&&e.body)return e.body}))}))},LEc=function(a){var b=/g-issues\.(.*)\.(.*)\/$/,c=/[^-]issues\.(.*)\.(.*)\/$/,d=tr(a.trackerHelpers,"");return b.test(d)?(a=b.exec(d),"https://usercontent.g-issues."+a[1]+"."+a[2]):c.test(d)?(a=c.exec(d),"https://usercontent.issues."+a[1]+"."+a[2]):a.activeSession.isInternalSession()?
fm(a.activeSession.session)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":"https://issuetracker.usercontent.google.com"};PK.\u0275fac=function(a){return new (a||PK)};PK.\u0275prov=Sc({token:PK,factory:PK.\u0275fac,providedIn:"root"});var QK=function(){this.executor=n(zC)};QK.prototype.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/attachments/"+b.attachmentId+"/delete",options:{headers:{"If-Match":b.etag},params:{reason:c}},responseConstructor:null})};QK.prototype.undelete=function(a,b){return this.executor.post({url:"action/issues/"+a+"/attachments/"+b.attachmentId+"/undelete",body:null,options:{headers:{"If-Match":b.etag}},responseConstructor:MK}).then(UMa)};
QK.\u0275fac=function(a){return new (a||QK)};QK.\u0275prov=Sc({token:QK,factory:QK.\u0275fac,providedIn:"root"});var NEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NEc,V);g=NEc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getComment=function(){return X(this,qo,2)};g.setComment=function(a){return W(this,qo,2,a)};g.setSignificanceOverride=function(a){return Nk(this,3,a)};
g.getContentJudgement=function(){return X(this,Em,4)};g.setContentJudgement=function(a){return W(this,Em,4,a)};var OEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(OEc,V);g=OEc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCommentNumber=function(){return Ik(this,2)};g.setCommentNumber=function(a){return $k(this,2,a)};var PEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PEc,V);g=PEc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCommentNumber=function(){return Ik(this,2)};g.setCommentNumber=function(a){return $k(this,2,a)};g.getComment=function(){return X(this,qo,3)};
g.setComment=function(a){return W(this,qo,3,a)};var QEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QEc,V);g=QEc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getCommentNumber=function(){return Ik(this,2)};g.setCommentNumber=function(a){return $k(this,2,a)};g.getRestrictedRetention=function(){return pl(this,3)};
g.setRestrictedRetention=function(a){return Nk(this,3,a)};var RK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RK.messageId)};Y(RK,V);RK.prototype.getIt=function(){return X(this,Uza,2)};RK.prototype.setIt=function(a){return W(this,Uza,2,a)};RK.messageId="b.CommentReaction";var REc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(REc,V);REc.prototype.getIt=function(){return X(this,NEc,5)};REc.prototype.setIt=function(a){return W(this,NEc,5,a)};var SK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,SK.messageId)};Y(SK,V);SK.prototype.getIt=function(){return X(this,qo,19)};SK.prototype.setIt=function(a){return W(this,qo,19,a)};SK.messageId="b.IssueComment";var SEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SEc,V);SEc.prototype.getIssueCommentsList=function(){return Wk(this,qo,1,Fk())};var TK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,TK.messageId)};Y(TK,V);TK.prototype.getIt=function(){return X(this,SEc,2)};TK.prototype.setIt=function(a){return W(this,SEc,2,a)};TK.messageId="b.ListIssueCommentHistoryResponse";var TEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TEc,V);TEc.prototype.getIt=function(){return X(this,PEc,5)};TEc.prototype.setIt=function(a){return W(this,PEc,5,a)};var UEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UEc,V);UEc.prototype.getIt=function(){return X(this,QEc,4)};UEc.prototype.setIt=function(a){return W(this,QEc,4,a)};var UK=function(){this.executor=n(yC)};g=UK.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(iBa(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:SK}).pipe(y(CEa))};
g.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new NEc).setIssueId(a).setComment((new qo).setComment(b).setFormattingMode(fn(c)));d&&b.setContentJudgement(hza(d));d=(new REc).setIt(b);return this.executor.post({url:"action/issues/"+a+"/comment",body:d,responseConstructor:null,options:{headers:f}})};
g.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new TEc).setIt((new PEc).setIssueId(a).setCommentNumber(b).setComment((new qo).setComment(c).setFormattingMode(fn(d))));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:b,options:{headers:f},responseConstructor:null})};g.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};
g.undelete=function(a,b,c){var d={};c!==void 0&&(d.comment_version=String(c));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:d},responseConstructor:SK}).pipe(y(CEa))};g.listHistory=function(a,b){var c=(new OEc).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:TK}).pipe(y(DEa))};
g.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new RK;var h=a.setIt,k=new Uza;d=(new gn).setType((f=dlc[d])!=null?f:0);f=Xm(d,1,e);f=Eu(k,2,gn,f);a=h.call(a,f);return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:a,responseConstructor:RK}).pipe(y(EEa))};
g.updateRetention=function(a,b,c){c=(new UEc).setIt((new QEc).setIssueId(a).setCommentNumber(b).setRestrictedRetention(rza(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:SK}).pipe(y(CEa))};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275prov=Sc({token:UK,factory:UK.\u0275fac,providedIn:"root"});var VK=function(){this.observableApi=n(UK)};g=VK.prototype;g.get=function(a,b,c){return Ge(this.observableApi.get(a,b,c))};
g.create=function(a,b,c,d,e){return Ge(this.observableApi.create(a,b,c,d,e))};g.update=function(a,b,c,d,e){return Ge(this.observableApi.update(a,b,c,d,e))};g.delete=function(a,b,c,d){return Ge(this.observableApi.delete(a,b,c,d))};g.undelete=function(a,b,c){return Ge(this.observableApi.undelete(a,b,c))};g.listHistory=function(a,b){return Ge(this.observableApi.listHistory(a,b))};g.updateCommentReaction=function(a){return Ge(this.observableApi.updateCommentReaction(a))};
g.updateRetention=function(a,b,c){return Ge(this.observableApi.updateRetention(a,b,c))};VK.\u0275fac=function(a){return new (a||VK)};VK.\u0275prov=Sc({token:VK,factory:VK.\u0275fac,providedIn:"root"});var WK=function(){this.dialogRef=n(mK);this.data=n(sK);this.documentationLinks=n(lK);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};WK.prototype.close=function(a){this.dialogRef.close(a)};WK.\u0275fac=function(a){return new (a||WK)};
WK.\u0275cmp=B({type:WK,selectors:[["confirm-no-access-dialog"]],standalone:!1,decls:19,vars:1,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["type","button","mat-button","","color","primary",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"h1",1),Q(2,"User may not have access"),J(),I(3,"section",2)(4,
"p"),Q(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),J(),I(6,"ul"),Dg(7,WMa,2,1,"li",null,Cg),J(),I(9,"section"),Q(10,"Continue anyway?"),J()(),I(11,"footer",3)(12,"div",4)(13,"a",5),Q(14,"Learn more"),J()(),I(15,"button",6),M("click",function(){return b.close(!0)}),Q(16,"Continue"),J(),I(17,"button",7),M("click",function(){return b.close(!1)}),Q(18,"Cancel"),J()()());a&2&&(z(7),Eg(b.userEmails),z(6),D("href",b.readMoreLink,uf))},dependencies:[PA,
Tx,wK,yK,xK],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var XK=function(){this.matDialogService=n(tK);this.analytics=n(CF);this.butterBar=n(iK);this.logger=n(MA);this.accessPolicy=n($C)},WEc=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var h,k,q;return w(function(u){switch(u.nextAddress){case 1:if(d.every(function(A){return A.length===0}))return u.return(!0);te(u,2);return x(u,VEc(a,c,d,e),4);case 4:h=u.yieldResult;if(h.length===0)return u.return(!0);a.analytics.trackEvent("addUserWithoutAccess","warn",
f);return x(u,a.confirm(h,e),5);case 5:k=u.yieldResult;if(!k)return Mq(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),u.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return u.return(!0);case 2:return q=xe(u),a.logger.error(q),u.return(!1)}})},VEc=function(a,b,c,d){var e;return w(function(f){if(f.nextAddress==1)return x(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(p(e.noAccessEmails||
[]),p(e.unknownEmails||[])))})};XK.prototype.confirm=function(a,b){var c=this,d,e,f;return w(function(h){if(h.nextAddress==1)return d={userEmails:a,relation:b},e=c.matDialogService.open(WK,{width:"400px",data:d}),x(h,Ge(nK(e)),2);f=h.yieldResult;return h.return(!!f)})};XK.\u0275fac=function(a){return new (a||XK)};XK.\u0275prov=Sc({token:XK,factory:XK.\u0275fac,providedIn:"root"});var XEc=new yd("GMAT_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var YK=function(){vx.apply(this,arguments);this.gmatPanelClasses=[]};Y(YK,vx);YK.prototype.appendGmatPanelClass=function(a){this.gmatPanelClasses.includes(a)||this.gmatPanelClasses.push(a)};YK.prototype.create=function(a){return vx.prototype.create.call(this,Object.assign({},a,{panelClass:(a==null?0:a.panelClass)?yi(a.panelClass).concat(this.gmatPanelClasses):this.gmatPanelClasses}))};YK.\u0275fac=function(){var a;return function(b){return(a||(a=fe(YK)))(b||YK)}}();YK.\u0275prov=Sc({token:YK,factory:YK.\u0275fac});var ZK=function(a,b,c,d,e,f,h,k){k.disableGmatStyle||a.appendGmatPanelClass("gmat-mdc-dialog");tK.call(this,a,b,c,d,e,f,h)};Y(ZK,tK);ZK.\u0275fac=function(a){return new (a||ZK)(nd(vx),nd(Ze),nd(dw,8),nd(jEc,8),nd(kEc),nd(tK,12),nd(Ww),nd(XEc))};ZK.\u0275prov=Sc({token:ZK,factory:ZK.\u0275fac,providedIn:"root"});var $K=function(){};$K.\u0275fac=function(a){return new (a||$K)};$K.\u0275mod=Jf({type:$K});$K.\u0275inj=Tc({providers:[{provide:tK,useClass:ZK},{provide:vx,useClass:YK}],imports:[zK]});var YEc=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};YEc.prototype.cancel=function(){this.state=4};var ZEc={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var ss=function(a,b){this.initialComment=a=a===void 0?"":a;this.fromTemplate=b===void 0?!1:b;this.uploads=[];this.formattingMode="PLAIN";this.value=a};ss.prototype.reset=function(){this.value="";$Ec(this)};var $Ec=function(a){for(var b=l(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},aFc=function(a){return a.fromTemplate&&a.initialComment===a.value};
ss.prototype.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(Qj(c.blobRef));return a};ss.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var bFc=function(a){return!a.isEmpty()&&!pIb(a)};ss.prototype.isEmpty=function(){return!this.value&&!cFc(this)};
var pIb=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},cFc=function(a){return a.uploads.some(function(b){return b.state===2})};var aL=function(){Z.apply(this,arguments);this.router=n(DA);this.activatedRoute=n(sj);this.params={};this.routeParams$=new tj({});this.issueId$=this.routeParams$.pipe(y(function(a){return a.issueId}),Xf());this.assignParams.bind(this)};Y(aL,Z);aL.\u0275dir=Z.\u0275dir;
var dFc=function(a){a.activatedRoute.queryParams.pipe(gg(a.destroyed$)).subscribe(function(b){a.assignParams(a.routeParams$.value,b)});a.router.events.pipe(Ve(function(b){return b instanceof psa}),y(function(b){return b}),gg(a.destroyed$)).subscribe(function(b){b=b.snapshot;var c=a.assignParams,d={},e=b;do d=Object.assign({},e.params,d),e=e.parent;while(e&&e!==e.root);c.call(a,d,b.queryParams)})},eFc=function(a,b){return a.routeParams$.pipe(y(function(c){return c[b]}))};
aL.prototype.assignParams=function(a,b){for(var c=l(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[XMa(d.value)];this.routeParams$.next(a);b=l(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=l(c.value),c=d.next().value,d=d.next().value,this.params[XMa(c)]=d;a=l(Object.entries(a));for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.params[XMa(b)]=c};aL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(aL)))(b||aL)}}();
aL.\u0275prov=Sc({token:aL,factory:aL.\u0275fac,providedIn:"root"});var bL=new yd("routeParams",{factory:function(){return n(aL).params}});var cL=function(){this.routeParams=n(bL);this.issueComments=n(VK);this.draftStore=n(kK);this.errorHandler=n(DK);this.activeSession=n(Es)};cL.prototype.get=function(a){var b=this;if(this.routeParams.comment)return Ce(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Vj(this.routeParams.template_comment)||1;return Oe(function(){return fFc(b,c,d,b.routeParams.do_attribution)})}return a?Ce(this.draftStore.$window.sessionStorage.getItem(rq(a))||""):Ce("")};
var fFc=function(a,b,c,d){var e,f,h,k,q,u,A;return w(function(G){if(G.nextAddress==1)return te(G,2),x(G,a.issueComments.get(b,c),4);if(G.nextAddress!=2)return e=G.yieldResult,f=e.unlinkifiedComment,h=e.formattedComment,k="",f?k=f:h&&(k=xxa(h)),q=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(u="> From issue "+b+" on "+q+":",G.return(u+"\n\n"+k)):G.return(k);A=xe(G);FK(a.errorHandler,A);return G.return("")})};cL.\u0275fac=function(a){return new (a||cL)};
cL.\u0275prov=Sc({token:cL,factory:cL.\u0275fac,providedIn:"root"});var gFc=function(a,b,c,d,e){var f=this;this.issueId=a;this.defaultCommentSource=b;this.issueFullFridge=c;this.activeSession=d;this.userPreferencesManager=e;this.comment=function(){return op(f.comment$)};this.judgementForNewContent=function(){return op(f.judgementForNewContent$)};this.issue$=this.issueFullFridge.watch(this.issueId);this.componentId$=this.issue$.pipe(y(function(k){return k==null?void 0:k.snapshot[0].componentId}),Xf());var h=Yr(this.activeSession,"enableLiteralModeRevisions");this.comment$=
this.defaultCommentSource.get(this.issueId).pipe(eg(""),Xf(),ig(this.userPreferencesManager.lastPublishModeProto$,this.userPreferencesManager.currentCommentFormattingMode$),y(function(k){var q=l(k);var u=q.next().value;k=q.next().value;q=q.next().value;u=new ss(u);u.formattingMode=h?q:k;return u}),cg({bufferSize:1,refCount:!0}));this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.componentJudgementForNewContent$=this.componentId$.pipe(y(function(k){if(k&&
f.createRestrictedResourcesComponentIds.includes(k))return{severity:"RESTRICTED",judgementReason:"None Specified"}}),cg({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new tj(void 0);this.judgementForNewContent$=Je([this.componentJudgementForNewContent$.pipe(eg(void 0)),this.userDefinedJudgementForNewContent$]).pipe(y(function(k){var q=l(k);k=q.next().value;q=q.next().value;return q!=null?q:k}),cg({bufferSize:1,refCount:!0}))};gFc.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var hFc=function(a){var b=a.comment(),c,d=((c=a.judgementForNewContent())==null?void 0:c.severity)==="NONE_DETECTED"?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=l(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,f.state===2&&f.blobRef&&(f=Qj({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},iFc=function(a){var b=
hFc(a),c=b.attachmentsWithJudgements;a={issueId:a.issueId,actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});c.length&&a.actions.push({fieldName:"attachments"});return a},dL=function(){this.defaultCommentSource=n(cL);this.issueFullFridge=n(EF);this.activeSession=n(Es);this.userPreferencesManager=n(OG)};dL.prototype.create=function(a){return new gFc(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
dL.\u0275fac=function(a){return new (a||dL)};dL.\u0275prov=Sc({token:dL,factory:dL.\u0275fac,providedIn:"root"});var eL=function(){};eL.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var fL=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},jFc=function(a){return fL(a.assignmentBounds)||fL(a.responseBounds)||fL(a.closureBounds)},kFc=function(a,b){switch(b){case "ASSIGNMENT":return fL(a.assignmentBounds);case "RESPONSE":return fL(a.responseBounds);case "CLOSURE":return fL(a.closureBounds);default:return jFc(a)}},lFc=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&YMa(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&YMa(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&YMa(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(ZMa),b[0]):c.length>0?(c.sort(ZMa),{sloBounds:c[0].sloBounds,sloMetric:""}):null};eL.\u0275fac=function(a){return new (a||eL)};eL.\u0275prov=Sc({token:eL,factory:eL.\u0275fac,providedIn:"root"});var mFc=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFullFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableNonWtdmFieldPerTypeVisibility=Yr(this.activeSession,"enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=this.issueFullFridge.watch(this.issueId);this.issueSnapshot$=this.issue$.pipe(y(function(h){return h==null?void 0:h.snapshot[0]}));
this.hasSloDefined$=this.issue$.pipe(y(function(h){var k;return h==null?void 0:(k=h.aggregatedData)==null?void 0:k.sloStatus}),y(function(h){return!!h&&jFc(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(y(function(h){return(h==null?void 0:h.type)!=null&&AEc.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(y(function(h){return!h&&!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=Je([this.hasSloDefined$,this.isWtdmType$]).pipe(y(function(h){var k=l(h);h=k.next().value;
k=k.next().value;return h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(y(function(h){return!h}));this.isChangelistPrimary$=Je([this.isWtdmType$,this.issueSnapshot$]).pipe(y(function(h){var k=l(h);h=k.next().value;k=k.next().value;return!h||(k==null?void 0:k.type)==="STORY"||(k==null?void 0:k.type)==="TASK"}));this.customFields$=this.issue$.pipe(y(function(h){var k;return(k=h==null?void 0:h.customFields)!=null?k:[]}));this.visibleFields$=this.issue$.pipe(y(function(h){var k;return(k=h==null?
void 0:h.visibleFields)!=null?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(y(function(h){return h.map(function(k){return k.customFieldId}).filter(Tk)}),y(function(h){return new Set(h)}),cg({refCount:!0,bufferSize:1}));this.visibleCustomFields$=Je([this.visibleFieldIds$,this.customFields$]).pipe(y(function(h){h=l(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),cg({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=Je([this.visibleFieldIds$,
this.customFields$]).pipe(y(function(h){h=l(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),cg({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=Je([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(y(function(h){var k=l(h);h=k.next().value;var q=k.next().value;var u=k.next().value;var A=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||
u?0:1)+(!f.showChangelists||A?0:2)+k.length}),cg({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(y(function(h){return h>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(y(function(h){return h===1?"Show 1 additional field":"Show "+h+" additional fields"}))},gL=function(){this.issueFullFridge=n(EF);this.constants=n(GK);this.activeSession=n(Es);this.sloStatusHelpersService=n(eL)};
gL.prototype.create=function(a){return new mFc(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};gL.\u0275fac=function(a){return new (a||gL)};gL.\u0275prov=Sc({token:gL,factory:gL.\u0275fac,providedIn:"root"});var hL=function(){Z.apply(this,arguments);this.analytics=n(CF);this.clearcut=n(vF);this.userActivity=n(OA);this.stopActivityTracking$=new bg;this.issueToTrackingState=new Map;this.getState=dk(this.issueToTrackingState,$Ma);this.trackFirstAction=this.analytics.preapply()("first-action");this.trackEdit=this.analytics.preapply()("edit");this.trackNavigation=this.analytics.preapply()("navigate");this.trackDestroy=this.analytics.preapply()("destroyed");this.onUserActiveStatusUpdate.bind(this)};Y(hL,Z);
hL.\u0275dir=Z.\u0275dir;var nFc=function(a,b){a.getState(b);a.userActivity.active$.pipe(Xf(),gg(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},Oq=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=a.getState(b),c=Date.now()-b.startTime,a.trackFirstAction("time-to-action",c),oFc(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
hL.prototype.onUserActiveStatusUpdate=function(a,b){var c=this.getState(a),d=Date.now()-c.sessionStartTime;if(b)c.sessionStartTime=Date.now();else if(!(d<1E3)){wF(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new Uqc).setIssueId(a).setUserAction(1);var f=new Tqc,h=new Sqc;e=x9b(h,1,e);d=x9b(e,2,d);d=W(f,Sqc,1,d);a=W(a,Tqc,2,d);kF(b.clearcutTransport.transport,a);c.sessionStartTime=Date.now()}};
var ws=function(a,b,c){a.getState(b).variations.add(c)},oFc=function(a,b,c,d){wF(a.clearcut,b,c);d=l(d);for(var e=d.next();!e.done;e=d.next())wF(a.clearcut,b,c+"-"+e.value)};hL.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};hL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(hL)))(b||hL)}}();hL.\u0275prov=Sc({token:hL,factory:hL.\u0275fac,providedIn:"root"});var iL=function(){var a=n(BF);Z.call(this);var b=this;this.paramsService=n(aL);this.issueFullFridge=n(EF);this.componentIdOverride$=new tj(null);this.hotlistIdOverride$=new tj(null);this.issueIdOverride$=new tj(null);this.routeIssueId$=this.paramsService.issueId$.pipe(y(bNa),cg({refCount:!0,bufferSize:1}));this.routeComponentId$=eFc(this.paramsService,"componentId").pipe(Xf());this.routeHotlistId$=eFc(this.paramsService,"hotlistId").pipe(Xf());this.issueId$=Je([this.issueIdOverride$,this.routeIssueId$]).pipe(y(function(c){var d=
l(c);c=d.next().value;d=d.next().value;return c||d}),y(bNa),Xf(),cg({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(fg(function(c){return c?b.issueFullFridge.watch(c):Ce(void 0)}),y(function(c){return c==null?void 0:c.snapshot[0].componentId}));this.componentId$=Je([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d}),y(aNa),Xf(),cg({refCount:!0,
bufferSize:1}));this.hotlistId$=Je([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),y(aNa),Xf(),cg({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){b.componentIdOverride$.next(null);b.hotlistIdOverride$.next(null);b.issueIdOverride$.next(null)}));this.subscriptions.add(this.componentId$.subscribe(function(c){Qo("dimension4",c)}))};Y(iL,Z);iL.\u0275dir=Z.\u0275dir;
iL.prototype.getComponentId=function(){return this.componentId$};iL.prototype.getIssueId=function(){return this.issueId$};iL.prototype.getHotlistId=function(){return this.hotlistId$};iL.\u0275fac=function(a){return new (a||iL)};iL.\u0275prov=Sc({token:iL,factory:iL.\u0275fac,providedIn:"root"});var jL=function(){var a=this;this.issueFullFridge=n(EF);this.teamFridge=n(DG);this.componentFridge=n(jD);this.eventsForIssue=n(CE);this.activatedRoute=n(sj);this.contextSensitiveRegistry=n(iL);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(y(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(y(UNa),cg({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(fg(function(b){return b?a.issueFullFridge.watch(b):Ce(void 0)}),cg({refCount:!0,bufferSize:1}));this.eventsJs$=
this.id$.pipe(fg(function(b){return a.eventsForIssue.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.starred$=this.issueJs$.pipe(y(hNa));this.lastViewedTimeMicros$=this.issueJs$.pipe(y(iNa));this.lastViewedTimeMicros$.pipe(y(function(b){return!b}));this.title$=this.issueJs$.pipe(y(jNa));this.issueJs$.pipe(y(BNa));this.accessLimitLevel$=this.issueJs$.pipe(y(rNa));this.voted$=this.issueJs$.pipe(y(CNa));this.status$=this.issueJs$.pipe(y(kNa));this.priority$=this.issueJs$.pipe(y(lNa));
this.assignee$=this.issueJs$.pipe(y(mNa));this.issueJs$.pipe(y(nNa));this.teamId$=this.issueJs$.pipe(y(oNa));this.team$=this.teamId$.pipe(fg(function(b){return a.teamFridge.watch(b)}),cg({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(y(qNa));this.collaboratorsUsers$=this.issueJs$.pipe(y(sNa));this.issueJs$.pipe(y(function(b){var c,d;return(d=(c=nm(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(y(tNa));this.issueJs$.pipe(y(uNa));this.issueJs$.pipe(y(vNa));
this.issueJs$.pipe(y(wNa));this.postmortems$=this.issueJs$.pipe(y(xNa));this.postmortems$.pipe(y(function(b){return b.length>0}));this.issueJs$.pipe(y(yNa));this.effort$=this.issueJs$.pipe(y(zNa));this.staffing$=this.issueJs$.pipe(y(ANa));this.isDeleted$=this.issueJs$.pipe(y(ENa));this.accessLevel$=this.issueJs$.pipe(y(GNa));this.modifiedTime$=this.issueJs$.pipe(y(HNa));this.issueJs$.pipe(y(JNa));this.retentionState$=this.issueJs$.pipe(y(MNa));this.canonicalIssueId$=this.issueJs$.pipe(y(KNa));this.canonicalIssue$=
this.canonicalIssueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.sloStatus$=this.issueJs$.pipe(y(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.sloStatus}));this.sloId$=this.issueJs$.pipe(y(NNa));this.createdTimeMicros$=this.issueJs$.pipe(y(ONa));this.componentId$=this.issueJs$.pipe(y(pNa));this.component$=this.componentId$.pipe(fg(function(b){return a.componentFridge.watch(b)}));this.teamSuggestions$=this.component$.pipe(y(function(b){var c;return(c=
b==null?void 0:b.teamSuggestions)!=null?c:[]}));this.effortSpec$=this.component$.pipe(y(PNa));this.isEffortEnabled$=this.component$.pipe(y(QNa));this.component$.pipe(y(RNa))};jL.\u0275fac=function(a){return new (a||jL)};jL.\u0275prov=Sc({token:jL,factory:jL.\u0275fac,providedIn:"root"});var SNa=RegExp("comment([0-9]+)"),TNa=RegExp("comment[0-9]+version([0-9]+)");var pFc={admin:!1,writer:!0,appender:!0,reader:!0},lL=function(){var a=this;this.issueDetailsBrain=n(jL);this.permissionsFridge=n(iG);this.activeSession=n(Es);this.accessPolicyApi=n($C);this.errorHandler=n(DK);this.userAccess=n(jE);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+ak(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(fg(function(c){return c?a.permissionsFridge.watch(Qn(c)):
Ce(void 0)}),y(function(c){return c!=null?c:pFc}),eg(pFc),cg({bufferSize:1,refCount:!0}));this.hasAclToView$=this.issuePermissions$.pipe(y(function(c){return!!c.reader}));this.hasAclToEdit$=this.issuePermissions$.pipe(y(function(c){return!!c.writer}));this.hasAclToEdit=function(){return!!op(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(y(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!op(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(y(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!op(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(eg([]),y(function(c){return c.some(function(d){return kL(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!op(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(eg([]),y(function(c){return c.some(function(d){return kL(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!op(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;Je([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c?d?"Un-CC yourself in order to change this setting.":"":"Edit issue permission is required to modify the CC list."}));this.isImplicitAccessEnabled$=this.issueDetailsBrain.componentId$.pipe(eg(void 0),Xf(),fg(function(c){return c?a.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(c)):Ce(!1)}),Pf(function(c){if(c.status===403)return Ce(!0);
a.errorHandler.errorHandler(null,c);return Ce(!1)}),cg({bufferSize:1,refCount:!0}));this.isImplicitAccessEnabled=function(){return!!op(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=Je([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(eg(void 0),Xf(),fg(function(c){return c?kE(a.userAccess,"admin","components/"+
c):Ce(!1)}),Pf(function(c){a.errorHandler.errorHandler(null,c);return Ce(!1)}),cg({bufferSize:1,refCount:!0}));this.accessLevel$=this.issueDetailsBrain.accessLevel$.pipe(eg(void 0));this.accessLevel=function(){return op(a.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(y(function(c){return!(!c||c==="INTERNAL")}));this.audience$=this.isWithinExternalComponent$.pipe(y(function(c){return c?"EXTERNAL":"INTERNAL"}));
this.audience=function(){return op(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return op(a.canChangeCommentRetention$)};var b=n(df);this.issuePermissions$.pipe(Gh(b)).subscribe();this.isImplicitAccessEnabled$.pipe(Gh(b)).subscribe();this.userIsComponentAdmin$.pipe(Gh(b)).subscribe()},kL=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0},qFc=function(a,b){return mm(b)&&b.commentDeletionStatus==="DELETED"?a.hasAclToAdmin()||
Ak(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},rFc=function(a,b){return mm(b)&&b.commentDeletionStatus==="ACTIVE"?Dk(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
lL.prototype.canEditComment$=function(a){var b=this;return Je([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c!==void 0&&c.commentEditState==="ENABLED"&&a.commentDeletionStatus!=="DELETED"&&a.commentDeletionStatus!=="PURGED"&&a.commentNumber?a.commentNumber===1?e:d&&Dk(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
lL.prototype.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?kL(this,b)?Ce(!0):this.hasAclToAdmin$:Ce(!1):Ce(!1)};lL.prototype.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?kL(this,b)?Ce(!0):this.hasAclToAdmin$:Ce(!1):Ce(!1)};lL.\u0275fac=function(a){return new (a||lL)};lL.\u0275prov=Sc({token:lL,factory:lL.\u0275fac,providedIn:"root"});var sFc={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},tFc={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},uFc={type:"START",displayText:"Start work",description:"Change issue status to '"+yk.get("ACCEPTED")+"'"},vFc={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+yk.get("FIXED")+"'"},wFc={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+yk.get("VERIFIED")+
"'"},xFc={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+yk.get("ASSIGNED")+"'"};var zFc=function(a,b,c,d){var e=this;this.issueId=a;this.activeSession=b;this.issueFullFridge=c;this.componentTemplatesFridge=d;this.defaultAssigneeQuickActionEnabled=this.activeSession.isInternalSession();this.issue$=this.issueFullFridge.watch(this.issueId).pipe(cg({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(y(function(f){return f==null?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(y(function(f){return(f==null?void 0:f.assigneeUser)&&Dk(f.assigneeUser)}),
y(Rk));this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(y(function(f){return f==null?void 0:f.componentId}),Xf(),fg(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):Ce(void 0)}),y(function(f){return f&&Dk(f.snapshot.assigneeUser)}),cg({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=Je([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(y(function(f){var h=l(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&
h&&f!==h?tFc:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(y(function(f){return f&&yFc(e,f)}))},AFc=function(a,b,c){var d;return w(function(e){if(e.nextAddress==1){switch(c.type){case "TAKE":b.status==="NEW"&&(b.status="ASSIGNED");b.assignee=a.activeSession.getUserEmail();break;case "DEFAULT_ASSIGNEE":return e.jumpTo(2);case "START":b.status="ACCEPTED";break;case "FIX":b.status="FIXED";break;case "VERIFY":b.status="VERIFIED";break;case "REOPEN":b.status=b.assignee?"ASSIGNED":"NEW";
break;default:Gb(c.type)}return e.jumpTo(0)}if(e.nextAddress!=4)return x(e,Ge(a.defaultAssigneeForComponent$),4);if(d=e.yieldResult)b.status==="NEW"&&(b.status="ASSIGNED"),b.assignee=d;return e.jumpTo(0)})},yFc=function(a,b){var c=a.activeSession.getUserEmail();a=Dk(b.assigneeUser)===c;c=Dk(b.verifierUser)===c;b=b.status;if(c&&b==="FIXED")return wFc;if(a)switch(b){case "ASSIGNED":return uFc;case "ACCEPTED":return vFc;default:return xFc}switch(b){case "NEW":return sFc;case "ASSIGNED":return sFc;case "ACCEPTED":return sFc;
default:return xFc}},mL=function(){this.activeSession=n(Es);this.issueFullFridge=n(EF);this.componentTemplatesFridge=n(oD)};mL.prototype.create=function(a){return new zFc(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275prov=Sc({token:mL,factory:mL.\u0275fac,providedIn:"root"});var BFc=new Map;var CFc={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},DFc=function(){this.fields=new uC};DFc.prototype.get=function(a){return this.fields.has(VNa(a))};
var Nq=function(a,b){a.fields.add(VNa(b))},nL=function(a,b){a.fields.delete(VNa(b))},EFc=function(a){var b=[],c=[],d=[];a=l(a.fields);for(var e=a.next();!e.done;e=a.next())if(e=e.value,typeof e==="string"&&e.startsWith("customField:"))b.push(e.split(":")[1]);else{var f=void 0,h=CFc,k=(f=BFc.get(h))!=null?f:new Set(Object.values(h));BFc.set(h,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var WNa={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var oL=function(){var a=this;this.activeSession=n(Es);this.butterBar=n(iK);this.issueInteractionsTracking=n(hL);this.issueApi=n(BE);this.componentFridge=n(jD);this.permissionsFridge=n(iG);this.eventsForIssueFridge=n(CE);this.statusMessages=n(JK);this.errorHandler=n(DK);this.confirmationDialogService=n(AK);this.principalTypes=n(kG);this.issuePermissionService=n(lL);this.accessPolicy=n($C);this.issueTypeDialog=n(BK);this.logger=n(MA);this.issueFullFridge=n(EF);this.confirmNoAccessService=n(XK);this.issueService=
n(UE);this.attachmentsMember=n(QK);this.userPreferencesManager=n(OG);this.issueComments=n(VK);this.draftStore=n(kK);this.attachmentApi=n(PK);this.issueFieldsFactory=n(gL);this.issueQuickActionsFactory=n(mL);this.issueCommentDraftFactory=n(dL);this.implicitTriageService=n(KG);this.analytics=n(CF);this.isSavingMap=new Map;this.savingState=dk(this.isSavingMap,function(){return new DFc});this.issueFieldsMap=new Map;this.issueFields=dk(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=dk(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=dk(this.editableIssueMap,function(b){return FFc(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=dk(this.subscriptions,function(){return new ke});this.issueCommentDraftMap=new Map;this.issueCommentDraft=dk(this.issueCommentDraftMap,function(b){var c=
a.issueCommentDraftFactory.create(b);a.getSubscription(b).add(c.judgementForNewContent$.subscribe());return c});this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};oL.prototype.clear=function(a){this.isSavingMap.delete(a);this.issueFieldsMap.delete(a);this.issueQuickActionsMap.delete(a);this.editableIssueMap.delete(a);this.issueCommentDraftMap.delete(a);this.getSubscription(a).unsubscribe()};
oL.prototype.updateComponent=function(a,b,c,d){var e=this,f,h,k,q,u,A;return w(function(G){if(G.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(h=GFc(e,f))&&h.actions&&h.actions.length?x(G,e.getRetentionState(a),2):G.return();k=G.yieldResult;HFc(e,h);q={issueId:a,componentId:b};u=Object.assign({},q,{setLimitViewTrusted:d});A=c?e.issueApi.moveIssueExternal(a,u):e.issueApi.moveIssue(a,q);return G.return(IFc(e,A,h,{originalRetentionState:k}))})};
var fub=function(a,b,c){var d,e;return w(function(f){if(!c)return a.butterBar.showWarning("Reporter can't be empty."),f.return();d=a.editableIssue(b);d.setReporter(c);return f.return((e=pL(a,d))!=null?e:Promise.resolve())})},JFc=function(a,b,c,d){var e,f,h,k,q,u;return w(function(A){switch(A.nextAddress){case 1:e=Wua(c);if(!e)return a.logger.warn("unknown issue type: "+c),A.return();f=a.editableIssue(b);if(e!=="VULNERABILITY"&&e!=="PRIVACY_ISSUE"){A.jumpTo(2);break}return x(A,oEc(a.issueTypeDialog,
e),3);case 3:if(h=A.yieldResult,!h)return A.return();case 2:if(!d||e!=="VULNERABILITY"){A.jumpTo(4);break}k=XNa(a.activeSession.getEnvironmentType(),d);if(k===void 0){A.jumpTo(4);break}te(A,6);return x(A,a.issueApi.markAsVulnerability(b,k),8);case 8:a.permissionsFridge.poke(Qn(b));a.issueFullFridge.poke(b);uu(A,7);break;case 6:q=xe(A),FK(a.errorHandler,q);case 7:return A.return(Promise.resolve());case 4:return f.setType(e),A.return((u=pL(a,f))!=null?u:Promise.resolve())}})},hub=function(a,b,c){var d,
e,f;return w(function(h){d=lk(c);if(!d)return a.logger.warn("unknown priority: "+c),h.return();e=a.editableIssue(b);e.setPriority(d);return h.return((f=pL(a,e))!=null?f:Promise.resolve())})},LFc=function(a,b,c){var d,e,f;return w(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=GFc(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!Ca(k.value||"")}))&&f.value?h.return(KFc(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})},MFc=function(a,b,c){var d,e;return w(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=pL(a,d))!=null?e:Promise.resolve())})},NFc=function(a,b,c){var d,e,f;return w(function(h){if(h.nextAddress==1){if(!c)return h.return();d=a.editableIssue(b);e=a.issueQuickActions(b);return x(h,AFc(e,d,c),2)}return h.return((f=pL(a,d))!=null?f:Promise.resolve())})},htb=function(a,b,c){var d,e;return w(function(f){d=a.editableIssue(b);
var h;d.effortEstimate=(h=c==null?void 0:c.estimate)!=null?h:null;return f.return((e=pL(a,d))!=null?e:Promise.resolve())})},Qtb=function(a,b,c){var d,e,f;return w(function(h){d=a.editableIssue(b);e=jua(c,!1);d.foundInVersion=e;return h.return((f=pL(a,d))!=null?f:Promise.resolve())})},Utb=function(a,b,c){var d,e,f;return w(function(h){d=a.editableIssue(b);e=jua(c,!1);d.verifiedInVersion=e;return h.return((f=pL(a,d))!=null?f:Promise.resolve())})},Stb=function(a,b,c){var d,e,f;return w(function(h){d=
a.editableIssue(b);e=jua(c,!1);d.targetedToVersion=e;return h.return((f=pL(a,d))!=null?f:Promise.resolve())})},Wtb=function(a,b,c){var d,e;return w(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=pL(a,d))!=null?e:Promise.resolve())})},Ktb=function(a,b,c){var d,e,f;return w(function(h){d=Xua(c);if(!d)return a.logger.warn("unknown severity: "+c),h.return();e=a.editableIssue(b);e.setSeverity(d);return h.return((f=pL(a,e))!=null?f:Promise.resolve())})};
oL.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return w(function(f){d=c.editableIssue(a);d.sloStartTime=b;return f.return((e=pL(c,d))!=null?e:Promise.resolve())})};oL.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return w(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return((e=pL(c,d))!=null?e:Promise.resolve())})};
var Ntb=function(a,b,c){var d,e,f;w(function(h){d=a.editableIssue(b);d.changelist=(e=c)!=null?e:[];return h.return((f=pL(a,d))!=null?f:Promise.resolve())})},Otb=function(a,b,c){var d,e,f;w(function(h){d=a.editableIssue(b);d.gerritChanges=(e=c)!=null?e:[];return h.return((f=pL(a,d))!=null?f:Promise.resolve())})};oL.prototype.updateCustomField=function(a,b,c){var d=this,e,f;return w(function(h){e=d.editableIssue(a);e.setCustomField(b,c);return h.return((f=pL(d,e))!=null?f:Promise.resolve())})};
var lub=function(a,b,c){var d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?x(k,OFc(a,b,"verifier",[c]),5):x(k,WEc(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setVerifier(c),k.return((h=pL(a,d))!=null?
h:Promise.resolve())}})},jub=function(a,b,c){var d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?x(k,OFc(a,b,"assignee",[c]),5):x(k,WEc(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),4);case 4:e=k.yieldResult;if(!e)return k.return();k.jumpTo(3);break;case 5:if(f=k.yieldResult,!f)return k.return();case 3:return d.setAssignee(c),k.return((h=
pL(a,d))!=null?h:Promise.resolve())}})},PFc=function(a,b,c){var d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return x(u,OFc(a,b,"CC",c),5);e=Rua(d.cc,c);f=e.added;return x(u,WEc(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:h=u.yieldResult;if(!h)return u.return();u.jumpTo(3);break;case 5:if(k=u.yieldResult,!k)return u.return();
case 3:return d.cc=c,u.return((q=pL(a,d))!=null?q:Promise.resolve())}})},QFc=function(a,b,c){var d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return x(u,OFc(a,b,"collaborators",c),5);e=Rua(d.collaborators,c);f=e.added;return x(u,WEc(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:h=u.yieldResult;if(!h)return u.return();
u.jumpTo(3);break;case 5:if(k=u.yieldResult,!k)return u.return();case 3:return d.setCollaborators(c),u.return((q=pL(a,d))!=null?q:Promise.resolve())}})},RFc=function(a,b,c){var d;return w(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(pL(a,d))})};oL.prototype.unarchive=function(a){var b=this,c,d;return w(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=pL(b,c))!=null?d:Promise.resolve())})};
oL.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return w(function(h){switch(h.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),Nq(e,"retention"),te(h,2,3),x(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return x(h,c.issueFullFridge.poke(a),6);case 6:Mq(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:ue(h);nL(e,"retention");we(h,0);break;case 2:f=xe(h),FK(c.errorHandler,f),h.jumpTo(3)}})};
var SFc=function(a,b){var c,d,e;return w(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=GFc(a,c);if(!d||!d.actions)return f.jumpTo(0);HFc(a,d);e=a.issueService.delete(b,"ABUSE");return x(f,IFc(a,e,d),0)})},TNb=function(a,b){var c,d,e;return w(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=GFc(a,c);if(!d||!d.actions)return f.jumpTo(0);HFc(a,d);e=a.issueService.undelete(b);return x(f,IFc(a,e,d),0)})};
oL.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),x(q,Ge(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=q.yieldResult;h=(f=e)==null?void 0:f.userData;if(h==null||d.get("subscribe"))return q.return();te(q,3,4);Nq(d,"subscribe");return x(q,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:ue(q);nL(d,"subscribe");we(q,0);break;case 3:k=xe(q),FK(c.errorHandler,k),q.jumpTo(4)}})};
var TFc=function(a,b,c){var d,e;w(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();te(f,2,3);Mq(a.butterBar,"Restoring attachment...");Nq(d,"undeleteAttachment");return x(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:Mq(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:ue(f);nL(d,"undeleteAttachment");we(f,0);break;case 2:e=xe(f),FK(a.errorHandler,e),f.jumpTo(3)}})},
UFc=function(a,b,c,d){var e,f;return w(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();te(h,2,3);Mq(a.butterBar,"Deleting attachment...");Nq(e,"deleteAttachment");return x(h,a.attachmentsMember.delete(b,c,d),5);case 5:Mq(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:ue(h);nL(e,"deleteAttachment");we(h,0);break;case 2:f=xe(h),FK(a.errorHandler,f),h.jumpTo(3)}})};
oL.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=hFc(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var h=iFc(d);HFc(this,h);return IFc(this,function(){return w(function(k){switch(k.nextAddress){case 1:return x(k,VFc(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}WFc(c,a);return x(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(rq(a));
case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var q=c.attachmentApi;var u=f.attachmentsWithJudgements,A=new KK;A.setIssueId(String(a));u!==void 0&&(u=u.map(TMa),sn(A,3,u));q=q.executor.post({url:"action/issues/"+a+"/attachments",body:A,responseConstructor:NK}).then(VMa);return x(k,q,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),h)};
var VFc=function(a,b){var c,d;return w(function(e){if(!PG(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();var f=c=a.editableIssue(b),h=[].concat(p(c.cc),[a.activeSession.getUserEmail()]);f.cc=h;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return x(e,a.issueApi.updateIssue(b,d),0)})},FFc=function(a,b){var c=a.issueFullFridge.watch(b).pipe(y(function(e){var f=
new GDc;e&&(e=XFc(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new tj(new GDc);a.getSubscription(b).add(c.subscribe(d));return d},pL=function(a,b){var c=b.issueId,d=GFc(a,b);if(!d)return null;for(var e=!1,f=[],h=[],k=c,q=l(d.actions),u=q.next();!u.done;u=q.next()){u=u.value;var A=u.value||"";if(u.actionType!=="REMOVE")switch(u.fieldName){case "ccs":f=A.split(",").filter(Boolean);break;case "verifier":case "assignee":case "collaborators":h=A.split(",").filter(Boolean);
break;case "duplicateOfIssueId":Ca(A)||(f=b.cc,k=String(A),e=!0)}}return KFc(a,c,{actionIssueId:k,implicitAppenders:f,implicitEditors:h,isDeduping:e,isRemovingSelfFromCc:d.actions.length===1&&d.actions[0].fieldName==="ccs"&&d.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===d.actions[0].value,requestData:d})},KFc=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var h=c.isDeduping;var k=c.isRemovingSelfFromCc;var q=c.requestData;var u,A,G,H,
N,O,U,da,ma,ra,Ga,Na,Qa,gb;return w(function(va){switch(va.nextAddress){case 1:return x(va,Promise.all([YFc(a,e,"appender",d),YFc(a,f,"writer",d)]),2);case 2:u=va.yieldResult;A=l(u);G=A.next().value;H=A.next().value;N=G;O=H;U=N.noAccessEmails||[];da=O.noAccessEmails||[];ma=[].concat(p(U),p(da));if(ma.length===0)return va.return(ZFc(a,q,h,k));te(va,3);return x(va,Promise.all(ma.map(function(Ja){return $Fc(a,Ja)})),5);case 5:return ra=va.yieldResult,Ga=Rya({userPrincipals:ra,newEditors:da,newImplicitUsers:ma,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Na=Ga.title,Qa=Ga.content,x(va,mEc(a.confirmationDialogService,{title:Na,content:Oi(Qa),confirmButtonText:"Allow"}),6);case 6:if(gb=va.yieldResult)return va.return(ZFc(a,q,h,k));a.permissionsFridge.poke(Qn(b));a.issueFullFridge.poke(b);uu(va,0);break;case 3:xe(va),a.butterBar.showWarning("Could not determine email type."),ze(va)}})},ZFc=function(a,b,c,d){HFc(a,b);var e=b.issueId;c?(c=a.editableIssue(String(e)),e=a.issueApi.relateIssue(e,
{issueId:e,targetIds:[c.duplicateOfIssueId],actionType:"ADD",relation:"DUPLICATE"})):e=d?a.issueApi.unCcUser(b.issueId):a.issueApi.updateIssue(e,b);return IFc(a,e,b)},YFc=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("Wd");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map($p),c,h,d):Promise.resolve(e)},XFc=function(a,b){var c=b.issueId,d=a.isSavingMap.get(c),
e;a=(e=a.editableIssueMap.get(c))==null?void 0:e.value;if(!a||!d)return b;b=Qj(b);e=Ua(b.snapshot);c=EFc(d);d=c.customFields;c=l(c.fields);for(var f=c.next();!f.done;f=c.next()){var h=void 0;(h=ODc.get(f.value))==null||h(e,a)}d=l(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$16:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$16=Vj(f),c=(e.customField||[]).find(function(k){return function(q){return q.customFieldId===k.customFieldId$jscomp$16}}(c)),f=a.customFieldMap[f],c&&f&&(c.textValue=
f.textValue,c.dateValue=f.dateValue,c.enumValue=f.enumValue,c.numericValue=f.numericValue);return b},GFc=function(a,b){var c=MDc(b);if(!c)return null;var d=a.isSavingMap.get(String(b.issueId));c.actions=c.actions.filter(function(e){return!(d==null?0:d.get(YNa(e)))});return c.actions.length?c:null},HFc=function(a,b){var c=String(b.issueId);Mq(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");Oq(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=l(b.actions);
for(c=b.next();!c.done;c=b.next())Nq(a,YNa(c.value))},IFc=function(a,b,c,d){var e,f;return w(function(h){switch(h.nextAddress){case 1:return te(h,2),x(h,b,4);case 4:return e=h.yieldResult,GF(a.issueFullFridge,[c.issueId],{eagerUpdate:!1,userActivityType:"EDIT"}).finally(function(){var k=String(c.issueId);a.issueFullFridge.poke(k);a.eventsForIssueFridge.poke(k)}),x(h,aGc(a,c,e,d),5);case 5:uu(h,0);break;case 2:f=xe(h),bGc(a,c,f),ze(h)}})},aGc=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,h,k,q;return w(function(u){f=a.savingState(String(b.issueId));h=l(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,nL(f,YNa(q));wtc(a.implicitTriageService,b.issueId,b.actions);return c?x(u,cGc(a,b,e),0):u.jumpTo(0)})},bGc=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=l(b.actions);for(var f=b.next();!f.done;f=b.next())nL(e,YNa(f.value));a.permissionsFridge.poke(Qn(d));a.issueFullFridge.poke(d);Wo(c)&&c.status===403&&Xo(c)?EK(a.errorHandler,Xo(c)):FK(a.errorHandler,c)},cGc=
function(a,b,c){var d,e,f,h,k,q,u,A,G,H,N;return w(function(O){switch(O.nextAddress){case 1:return x(O,a.getEffortSpec(String(b.issueId)),2);case 2:d=O.yieldResult;e=a.editableIssue(String(b.issueId));k=FEc(a.statusMessages,b,e.customFieldMap,(h=(f=d)==null?void 0:f.name)!=null?h:"");if(!c){O.jumpTo(3);break}return x(O,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=O.yieldResult;u=l(q);A=u.next().value;G=u.next().value;H=A;N=G;if(N!=="INDEFINITE"&&
c&&H){var U=c.retentionPeriod?Sxa(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var da=H.retentionPeriod?Sxa(Math.floor(H.retentionPeriod.seconds*1E3/864E5)):"indefinite";U=U===da?"":" Issue retention period changed from "+U+" to "+da+"."}else U="";k+=U;case 3:Mq(a.butterBar,k),ze(O)}})},OFc=function(a,b,c,d){return w(function(e){if(e.nextAddress==1){var f=a.editableIssue(b);var h=a.activeSession.getUserEmail();f=new Map([["CC",f.cc],["collaborators",f.collaborators],["assignee",f.assignee?
[f.assignee]:[]],["verifier",f.verifier?[f.verifier]:[]]]);(new Set([].concat(p(f.values())).flat())).has(h)?(f.set(c,d),h=!(new Set([].concat(p(f.values())).flat())).has(h)):h=!1;e=h?x(e,dGc(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},dGc=function(a,b,c,d){var e;return w(function(f){if(f.nextAddress==1)return x(f,YFc(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(mEc(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Oi("This issue is in a component with Expanded Access enabled, and you do not have access to view this issue by default. Removing yourself from "+d+" may also remove your ability to view the issue. Are you sure you would like to do this?")})):f.return(!0)})};oL.prototype.getRetentionState=function(a){return Ge(this.issueFullFridge.watch(a).pipe(y(MNa)))};oL.prototype.getRetention=function(a){return Ge(this.issueFullFridge.watch(a).pipe(y(JNa)))};
oL.prototype.getEffortSpec=function(a){var b=this;return Ge(this.issueFullFridge.watch(a).pipe(y(pNa),fg(function(c){return b.componentFridge.watch(c)}),y(PNa)))};var $Fc=function(a,b){return w(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(lG(a.principalTypes,b,!0))})};
oL.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=l(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};
var WFc=function(a,b){var c,d,e;w(function(f){if(f.nextAddress==1)return x(f,Ge(a.issueFullFridge.watch(b)),2);if(f.nextAddress!=3)return(c=f.yieldResult)?x(f,Ge(a.eventsForIssueFridge.watch(b)),3):f.return();d=f.yieldResult;if(!d)return f.return();e=a.getLabel(c,d);a.analytics.trackEvent("comment","create",e,Number(b));ze(f)})};
oL.prototype.getLabel=function(a,b){if(!b)return"global";var c,d,e=((c=a.snapshot[0].assigneeUser)==null?void 0:c.emailAddress)===((d=a.snapshot[0].reporterUser)==null?void 0:d.emailAddress);c=this.activeSession.getUserEmail();var f;a=c===((f=a.snapshot[0].assigneeUser)==null?void 0:f.emailAddress);var h,k;b=((h=eGc(this,b.events,c))==null?void 0:(k=h.userPerformingActionUser)==null?void 0:k.emailAddress)!==c;h=a&&b;return e&&h?"needs-reporter-input":h?"newly-assigned-to-me":"global"};
var eGc=function(a,b,c){return fGc(b,function(d){var e;if(((e=d.userPerformingActionUser)==null?void 0:e.emailAddress)!==c&&d.preDiffs.some(function(h){return h.name==="assignee"&&h.newValue===a.activeSession.getUserEmail()}))return!0;var f;return((f=d.userPerformingActionUser)==null?void 0:f.emailAddress)===c?!0:!1})},fGc=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};oL.\u0275fac=function(a){return new (a||oL)};oL.\u0275prov=Sc({token:oL,factory:oL.\u0275fac,providedIn:"root"});var qL=function(){Z.apply(this,arguments);this.issueDetailsBrain=n(jL);this.issuePermissionService=n(lL);this.editIssueService=n(oL);this.assigneeInProgress$=new ag(1);this.ccInProgress$=new ag(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(y(function(a){return aya(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(y(function(a){var b;return Bk((b=nm(a))==null?void 0:b.ccUsers)||[]}));this.assignee$=this.assigneeUpdate$.pipe(cg({refCount:!0,
bufferSize:1}));this.cc$=this.ccUpdate$.pipe(cg({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};Y(qL,Z);qL.\u0275dir=Z.\u0275dir;
var gGc=function(a,b){var c,d,e;return w(function(f){switch(f.nextAddress){case 1:return x(f,Ge(a.id$),2);case 2:c=f.yieldResult;if(!c)return f.return();a.assigneeInProgress$.next(!0);d=b.action==="remove_user"?"":b.email;te(f,3,4);return x(f,jub(a.editIssueService,c,d),6);case 6:return x(f,Ge(a.assigneeUpdate$.pipe(Ve(function(h){h=b.email===h;return b.action==="set_user"?h:!h}),We(6E4))),4);case 4:ue(f);a.assigneeInProgress$.next(!1);we(f,0);break;case 3:throw e=xe(f),e;}})},hGc=function(a,b){var c,
d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return x(k,Ge(a.id$),2);case 2:c=k.yieldResult;if(!c)return k.return();d=a.editIssueService.editableIssue(c);e=d.cc.includes(b.email);f=void 0;b.action!=="set_user"||e?b.action==="remove_user"&&e&&(f=PFc(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=PFc(a.editIssueService,c,[].concat(p(d.cc),[b.email]));if(!f)return k.return();te(k,3,4);a.ccInProgress$.next(!0);return x(k,f,6);case 6:return x(k,Ge(a.ccUpdate$.pipe(Ve(function(q){q=
q.includes(b.email);return b.action==="set_user"?q:!q}),We(6E4))),4);case 4:ue(k);a.ccInProgress$.next(!1);we(k,0);break;case 3:throw h=xe(k),h;}})};qL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(qL)))(b||qL)}}();qL.\u0275prov=Sc({token:qL,factory:qL.\u0275fac});var rL=function(){this.window=n(jK)};rL.prototype.openInNewTab=function(a){a=$h(a);fi(this.window,a,"_blank")};var Lq=function(a,b){b=$h(b);fi(a.window,b)},sL=function(a,b){a=a.window.location;b=ai(b);b!==void 0&&(a.href=b)};rL.\u0275fac=function(a){return new (a||rL)};rL.\u0275prov=Sc({token:rL,factory:rL.\u0275fac,providedIn:"root"});var tL=function(){Z.apply(this,arguments);this.domSafe=n(rL);this.cdr=n(NA,{self:!0});this.actionService=n(qL,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Y(tL,Z);tL.\u0275dir=Z.\u0275dir;
tL.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;(b=this.actionService)==null||b.assignee$.pipe(gg(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;(c=this.actionService)==null||c.cc$.pipe(gg(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var ZNa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Po("personCard","assigneeAction",b);gGc(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},$Na=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Po("personCard","ccAction",b);hGc(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};tL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(tL)))(b||tL)}}();
tL.\u0275cmp=B({type:tL,selectors:[["b-issue-person-card"]],inputs:{email:"email"},standalone:!1,features:[hh([NA]),kg],decls:6,vars:4,consts:[[3,"email"],[1,"actions"],[3,"click"],[3,"onAction","disabled"]],template:function(a,b){a&1&&(I(0,"b-person-card",0),E(1,aOa,9,8,"ng-container",1),S(2,"async"),I(3,"onedev-hovercard-action",2),M("click",function(c){Po("personCard","showAssignedIssuesAction");var d=Fq.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
sL(b.domSafe,d)}),I(4,"span"),Q(5,"Show assigned issues"),J()()());a&2&&(D("email",b.email),z(),F(b.actionService&&T(2,2,b.actionService.editAccess$)?1:-1))},dependencies:[UJ,HJ,Qv],encapsulation:2,changeDetection:0});var uL=function(){};uL.\u0275fac=function(a){return new (a||uL)};uL.\u0275mod=Jf({type:uL});uL.\u0275inj=Tc({imports:[ZB,WJ,XJ]});var vL=function(){};vL.prototype.transform=function(a){if(Zj(a))return a};vL.\u0275fac=function(a){return new (a||vL)};vL.\u0275pipe=Lf({name:"omitObfuscatedEmail",type:vL,pure:!0,standalone:!1});var iGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iGc,V);iGc.prototype.getDisplayName=function(){return Oh(this,1)};iGc.prototype.setDisplayName=function(a){return Rl(this,1,a)};iGc.prototype.getPhotoUrl=function(){return Oh(this,2)};var jGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,jGc.messageId)};Y(jGc,V);jGc.messageId="b.UserProfileBatchResponse";var xL=function(){var a=this;this.userProfilesBatchApiConfig=n(wL);this.batchApiAdapter=n(bD);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new Ysc(function(b){return a.batchAdaptedGet(b)},100)};xL.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};xL.\u0275fac=function(a){return new (a||xL)};xL.\u0275prov=Sc({token:xL,factory:xL.\u0275fac,providedIn:"root"});var wL=function(){this.executor=n(yC)};
wL.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(p(a)).join(",")}},responseConstructor:jGc}).pipe(Pf(function(){return Ce(new jGc)}))};wL.prototype.split=function(a,b){return(a=Lc(b,1,iGc,oc).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:Oh(a,3),displayName:a.getDisplayName()}:void 0};wL.\u0275fac=function(a){return new (a||wL)};wL.\u0275prov=Sc({token:wL,factory:wL.\u0275fac,providedIn:"root"});var oOa={"alertmanager-buganizer-handler@prod.google.com":"https://g3doc.corp.google.com/production/borg/alertmanager/g3doc/templates/AlertManager-darkred.png","android-ftslo-regression-actuator@prod.google.com":"https://g3doc.corp.google.com/company/teams/dx-velocity/images/atn_favicon.png","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","blunderbuss-prod@prod.google.com":"https://moma.corp.google.com/team_logos/f5955dadc5abc82300946ee12bf0b610",
"bugjuggler-beta@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler-beta@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","bugjuggler@prod.google.com":"https://g3doc.corp.google.com/productivity/bugjuggler/g3doc/logo.png?cl=head","dx-workflow-gitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg",
"koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head","mendel-toolbox@google.com":"https://g3doc.corp.google.com/experiments/mendel/g3doc/logo_mendel_bkg-green_32px.svg?cl=head","modem-explorer-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","modem-tools-bug-workbench@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","piper-bugupdater@google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg",
"piper-bugupdater@prod.google.com":"https://static.corp.google.com/devtools/codereview/new_logo_only.svg","pixel-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-alcedo-issue-sync-server@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-bug-traffic-control@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pixel-modem-tools-issue-classifier-be@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-ltp-be@prod.google.com":"https://static.corp.google.com/modem-tools/ltp/logo.svg","pmw-data-prod-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","prefilter-fetcher-jobs-dev@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pte-pqm-bugbot-dev-jobs@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head",
"pte-pqm-bugbot@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","spur-workflows@prod.google.com":"https://g3doc.corp.google.com/security/spur/g3doc/spur_logo.jpg?cl=head"},kGc={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher","boq-android-culprit-assistant@prod.google.com":"Android Culprit Assistant","bugcorder@prod.google.com":"Bug Agent Platform",
"dx-workflow-gitwatcher@prod.google.com":"GitWatcher","pixel-modem-tools-bug-traffic-control@prod.google.com":"Riemann Bug Traffic Control\ud83d\udea6"};var yL=function(){var a=this;this.session=n(Es);this.userProfiles=n(xL);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new ag(1);this.showEmail$=new tj(!1);this.isNonObfuscatedEmail=Zj;this.userProfile$=this.email$.pipe(fg(function(b){return a.userProfiles.get(b)})).pipe(eg(void 0));this.content$=Je([this.email$,this.userProfile$,this.showEmail$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d==null?void 0:
d.displayName;var e=kGc[b];e&&(d=e);return d?c?b+" ("+d+")":d:b}));this.vars$=Je([this.email$,this.content$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{email:b,content:c}}));this.enableWaldoAvailability=Yr(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};ea.Object.defineProperties(yL.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.email$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});
yL.\u0275fac=function(a){return new (a||yL)};
yL.\u0275cmp=B({type:yL,selectors:[["b-user-display-name"]],inputs:{availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled",email:"email",showEmail:"showEmail"},standalone:!1,decls:2,vars:3,consts:[["displayName",""],["card",""],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(E(0,hOa,4,1),S(1,"async"));if(a&2){var c;
F((c=T(1,1,b.vars$))?0:-1,c)}},dependencies:[Pv,HH,tL,fJ,lJ,Qv],encapsulation:2,changeDetection:0});var zL=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};zL.prototype.getDisplayString=function(){return Ak(this.model)};var lGc=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?xva(zva(b)):xva(b))&&!!a.getEmailAddress()};zL.prototype.getEmailAddress=function(){return Dk(this.model)||""};zL.\u0275fac=function(a){return new (a||zL)};
zL.\u0275cmp=B({type:zL,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},standalone:!1,decls:3,vars:2,consts:[[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(Fg(0),E(1,iOa,1,4,"b-user-display-name",0),E(2,jOa,2,1,"span"),Gg());a&2&&(z(),F(lGc(b)?1:-1),z(),F(lGc(b)?-1:2))},dependencies:[yL],styles:[".b-user-display-span[_ngcontent-%COMP%]{margin-right:2px;margin-top:-1px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem}"],
changeDetection:0});var AL=function(){var a=this;this.userProfiles=n(xL);this.activeSession=n(Es);this.teamMembershipService=n(JG);this.email$=new ag(1);this.isNonObfuscatedEmail=Zj;this.teamId$=new tj(void 0);this.userProfile$=this.email$.pipe(fg(function(b){return b?a.userProfiles.get(b).pipe(eg(void 0)):Ce(void 0)}));this.vars$=Je([this.email$,this.userProfile$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(!c)return{email:b,showImage:!1,src:void 0,srcset:void 0};var d=!c.photoUrl,e=d?void 0:
c.photoUrl,f;d?f=void 0:f=c.highResolutionPhotoUrl?c.highResolutionPhotoUrl+" 2x":c.photoUrl+" 1x";return{email:b,showImage:!d,src:e,srcset:f}}));this.isTeamMember$=Je([this.teamId$,this.email$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return rtc(a.teamMembershipService,b,c)}),eg(!1),Pf(function(){return Ce(!1)}))},sOa=function(a,b){return!b||a.activeSession.isExternalSession()?!1:oOa[b]!==void 0};
ea.Object.defineProperties(AL.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Zj(a)?this.email$.next(a):this.email$.next(void 0)}},teamId:{configurable:!0,enumerable:!0,set:function(a){this.teamId$.next(a!=null?a:void 0)}},tiny:{configurable:!0,enumerable:!0,get:function(){return this.size==="tiny"}},small:{configurable:!0,enumerable:!0,get:function(){return this.size==="small"}},medium:{configurable:!0,enumerable:!0,get:function(){return this.size==="medium"}},hasTeam:{configurable:!0,
enumerable:!0,get:function(){return!!this.teamId$.value}}});AL.\u0275fac=function(a){return new (a||AL)};
AL.\u0275cmp=B({type:AL,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&wg("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},standalone:!1,decls:2,vars:3,consts:[["imageDisplay",""],["card",""],["role","img","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["alt","",1,"user-avatar","material","robo-avatar",3,"src"],[1,"user-avatar","material",3,"team-member","anonymous"],
[1,"user-avatar","material"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(E(0,uOa,4,1),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.vars$))?0:-1,c)}},dependencies:[Pv,tL,fJ,lJ,Qv],styles:['.material.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:50%;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center;background-size:cover}img[_ngcontent-%COMP%]{border-radius:50%;vertical-align:middle}.material.user-avatar.robo-avatar[_ngcontent-%COMP%]{border-radius:0;object-fit:contain}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle;align-items:center}.tiny[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:12px;max-height:12px}.tiny[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:12px;height:12px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.tiny.hasTeam[_nghost-%COMP%]{text-align:center}.tiny.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:16px}.tiny.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.tiny.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}.small[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:18px;max-height:18px}.small[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:18px;height:18px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.small.hasTeam[_nghost-%COMP%]{text-align:center}.small.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:22px}.small.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.small.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}.medium[_nghost-%COMP%]   img[_ngcontent-%COMP%]{max-width:24px;max-height:24px}.medium[_nghost-%COMP%]   .user-avatar.anonymous[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:24px;height:24px;border:none;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.medium.hasTeam[_nghost-%COMP%]{text-align:center}.medium.hasTeam[_nghost-%COMP%]   span[_ngcontent-%COMP%]{width:28px}.medium.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]{border:2px solid var(--team-member-gfx);box-sizing:border-box;border-radius:50%;display:block}.medium.hasTeam[_nghost-%COMP%]   .team-member[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);box-sizing:border-box}'],
changeDetection:0});var BL=function(){this.session=n(Es);this.isNonObfuscatedEmail=Zj;this.getEmailDisplayString=COa;this.email="";this.withProfile=!0;this.enableWaldoAvailability=Yr(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};BL.\u0275fac=function(a){return new (a||BL)};
BL.\u0275cmp=B({type:BL,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile",ldapOnly:"ldapOnly"},standalone:!1,decls:7,vars:3,consts:[["emailDisplay",""],["card",""],[1,"bv2-email-with-profile-container"],[1,"bv2-email-with-profile-avatar",3,"email"],[1,"bv2-email-with-profile-waldo"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(I(0,"span",2),E(1,vOa,1,1,"b-user-image",3),E(2,xOa,5,3)(3,
zOa,1,1,"ng-container"),C(4,AOa,2,1,"ng-template",null,0,nh),E(6,BOa,2,1,"span",4),J());a&2&&(z(),F(b.withProfile?1:-1),z(),F(b.isNonObfuscatedEmail(b.email)?2:3),z(4),F(b.enableWaldoAvailability?6:-1))},dependencies:[Pv,HH,tL,fJ,lJ,AL],styles:["[_nghost-%COMP%]     span.bv2-email-with-profile-avatar, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:1.5em;margin-right:2px;margin-top:-1px;width:1.5em;vertical-align:middle}[_nghost-%COMP%]     span.bv2-email-with-profile-avatar img, [_nghost-%COMP%]     .bv2-email-with-profile-avatar .user-avatar img{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);height:1.5em;width:1.5em}"],
changeDetection:0});var mGc=function(a,b){return[a,b]},CL=function(){this.size=this.name=""};CL.prototype.ngOnInit=function(){};CL.\u0275fac=function(a){return new (a||CL)};
CL.\u0275cmp=B({type:CL,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},standalone:!1,decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&K(0,"mat-icon",0);a&2&&D("svgIcon",b.name)("ngClass",kh(2,mGc,b.name,b.size))},dependencies:[Mv,aB],styles:['[_nghost-%COMP%]{display:inline-block;line-height:0;vertical-align:middle}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]::before{background:none;border-radius:50%;bottom:-3px;box-sizing:border-box;content:"";display:block;left:-3px;opacity:0;position:absolute;right:-3px;top:-3px;z-index:-1}.hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:hover::before, .hoverable[_nghost-%COMP%] > .mat-icon[_ngcontent-%COMP%]:focus::before{background-color:#dadce0;background-color:var(--c300);opacity:1}[_nghost-%COMP%]   .mat-icon[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .small[_ngcontent-%COMP%]{--mdc-icon-button-icon-size:18px;height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});var DL=function(){Z.apply(this,arguments);var a=this;this.teamsService=n(yG);this.session=n(Es);this.principalTypesFridge=n(mG);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new ag(1);this.providedUser$=new ag(1);this.providedEmail$=new ag(1);this.isNonObfuscatedEmail=Zj;this.isGroup$=this.providedEmail$.pipe(fg(function(b){return a.principalTypesFridge.watch(b)}),Ve(Tk),y(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=this.providedTeamId$.pipe(fg(function(b){return zG(a.teamsService,
b)}));this.detailedUserType$=this.providedUser$.pipe(y(function(b){b=b?b&&b.getUserGaiaStatus?Ek(b,4,Fk(Gk)):b.aliases||[]:[];return b.includes("googlers_unrestricted")?"UNRESTRICTED_GOOGLER":b.includes("google_domain")?"TVC":b.includes("issue_creation_only_accounts")?"ISSUE_CREATION_ONLY":b.includes("external_partners")?"EXTERNAL":b.includes("public_non_google")?"PUBLIC":"NO_DETAILED_TYPE"}),eg("NO_DETAILED_TYPE"));this.isTeamMember$=Je([this.providedTeamId$,this.providedEmail$]).pipe(fg(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return ktc(a.teamsService,b,c)}),eg(!1),Pf(function(){return Ce(!1)}));this.teamUser$=this.fetchedTeam$.pipe(y(function(b){return"Member of "+b.name}));this.groupMembershipType$=Je([this.detailedUserType$,this.isTeamMember$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="PUBLIC"?"PUBLIC_USER":b==="EXTERNAL"?"PARTNER_USER":c?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableWaldoAvailability=Yr(this.session,"enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(y(function(b){return a.enableSmallChip?"user-chip-small":b&&b!=="INTERNAL_NON_TEAM_MEMBER"?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(y(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"team-member-chip";if(b==="PARTNER_USER")return"partner-chip";if(b==="PUBLIC_USER")return"public-chip"}else return"internal-non-team-member-chip";return""}));
this.shouldShowIcon$=this.groupMembershipType$.pipe(y(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(y(function(b){if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b==="INTERNAL_TEAM_MEMBER")return"people-outline";if(b==="PARTNER_USER")return"enterprise";if(b==="PUBLIC_USER")return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(ig(this.teamUser$),y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b===
"INTERNAL_TEAM_MEMBER")return c;if(b==="PARTNER_USER")return"Partner user";if(b==="PUBLIC_USER")return"Public user"}return""}))};Y(DL,Z);DL.\u0275dir=Z.\u0275dir;DL.prototype.ngOnInit=function(){};DL.prototype.ngOnChanges=function(a){a.teamId&&this.teamId&&this.providedTeamId$.next(this.teamId);a.user&&this.user&&this.providedUser$.next(this.user);a.email&&this.email&&this.providedEmail$.next(this.email)};DL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(DL)))(b||DL)}}();
DL.\u0275cmp=B({type:DL,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},standalone:!1,features:[kg,Uu],decls:10,vars:12,consts:[["emailDisplay",""],["card",""],[3,"ngClass"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"],["name","group_24px","size","small"],["size","tiny",3,"email"],["tabindex","0","role","button",1,"keep-focus-ring",
3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"user-chip-name"]],template:function(a,b){a&1&&(I(0,"span",2),S(1,"async"),I(2,"span",2),S(3,"async"),E(4,FOa,3,3),E(5,GOa,1,3,"b-user-display-name",3)(6,MOa,4,1),E(7,NOa,3,6,"mat-icon",4),S(8,"async"),J()(),E(9,OOa,1,1,"b-availability-chip",5));if(a&2){var c;D("ngClass",(c=T(1,6,b.userTypeClass$))!=null?c:"");z(2);var d;D("ngClass",(d=T(3,8,b.userChipType$))!=null?d:"");z(2);F(b.enableSmallChip?4:-1);z();F(b.enableSmallChip?6:5);z(2);
F(T(8,10,b.shouldShowIcon$)?7:-1);z(2);F(b.enableWaldoAvailability&&!b.enableSmallChip?9:-1)}},dependencies:[Mv,Pv,aB,HH,CL,YA,cB,tL,fJ,lJ,AL,yL,Qv],styles:[".user-chip-without-icon[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip-without-icon[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px}.user-chip-without-icon[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;display:flex;height:1.75em;line-height:1.75em;padding:0 8px}.user-chip[_ngcontent-%COMP%]{display:inline-block;height:1.75em;white-space:nowrap}.user-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:16px;margin-left:3%;padding:0 14px 0 0;position:relative;width:16px}.user-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:bold;height:20px;letter-spacing:.2px;line-height:20px;padding:0 0 0 8px}.team-member-chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--team-member-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.team-member-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1967d2;color:var(--team-member-gfx)}.partner-chip[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.partner-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.partner-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .partner-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--partner-text)}.public-chip[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);min-width:0;align-items:center;border-radius:24px;display:flex;height:1.75em;line-height:1.75em;padding:0 0px 0 0px}.public-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.public-chip[_ngcontent-%COMP%]   b-user-display-name[_ngcontent-%COMP%], .public-chip[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--public-text)}.user-chip-small[_ngcontent-%COMP%]{display:flex;height:1.25em;line-height:1.25em}.user-chip-small[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex-shrink:0;height:11px;padding:0 0 1px 2px;width:11px}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px;min-width:0}.user-chip-small[_ngcontent-%COMP%]   .internal-non-team-member-chip[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--user-bg-focus)}.user-chip-small[_ngcontent-%COMP%]   .team-member-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .partner-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-small[_ngcontent-%COMP%]   .public-chip[_ngcontent-%COMP%]{align-items:center;border-radius:24px;display:flex;height:1.25em;line-height:1.25em;padding:0 6px 0 1px}.user-chip-name[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:normal;height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;letter-spacing:.3px;line-height:16px;padding:0 0 0 2px}[_nghost-%COMP%]{min-width:0}[_nghost-%COMP%]     b-icon{width:12px}[_nghost-%COMP%]     b-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon mat-icon svg{width:12px;height:16px}"],
changeDetection:0});var EL=function(){};EL.\u0275fac=function(a){return new (a||EL)};EL.\u0275mod=Jf({type:EL});EL.\u0275inj=Tc({imports:[ZB]});var FL=function(){};FL.\u0275fac=function(a){return new (a||FL)};FL.\u0275mod=Jf({type:FL});FL.\u0275inj=Tc({imports:[ZB,bI,EL,cC,XJ,uL,WJ]});var nGc=function(a,b,c,d){ow.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new bg;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};nw(this)};Y(nGc,ow);var GL=function(){this.checker=n(jw);this.ngZone=n(ph);this.document=n(Ei)};GL.prototype.create=function(a){return new nGc(a,this.checker,this.ngZone,this.document)};GL.\u0275fac=function(a){return new (a||GL)};
GL.\u0275prov=Sc({token:GL,factory:GL.\u0275fac,providedIn:"root"});var HL=function(){this._inset=this._vertical=!1};ea.Object.defineProperties(HL.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=zi(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=zi(a)}}});HL.\u0275fac=function(a){return new (a||HL)};
HL.\u0275cmp=B({type:HL,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(ng("aria-orientation",b.vertical?"vertical":"horizontal"),wg("mat-divider-vertical",b.vertical)("mat-divider-horizontal",!b.vertical)("mat-divider-inset",b.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],
encapsulation:2,changeDetection:0});var oGc=["content"],IL=function(){Z.apply(this,arguments);this.focusEscapeNotifierFactory=n(GL);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new LA;this.dateTimeChange=new LA;this.cancelClicked=new LA;this.saveClicked=new LA;this.dateSelectionChange=new LA;this.focusEscaped=new LA;this.timeFormControl=new uy("",ky)};Y(IL,Z);IL.\u0275dir=Z.\u0275dir;
IL.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){UOa(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(gg(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(b===0){var c;(c=a.focusEscapeNotifier)==null||ecc(c)}else{var d;(d=a.focusEscapeNotifier)==null||mw(d)}else a.focusEscaped.emit(b)});TOa(this,this.dateTime)};
var SOa=function(a,b){a.date=b;a.dateTime=WEa(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};IL.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=WEa(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var UOa=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof bk?b:Txa(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
IL.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var TOa=function(a,b){var c=new cE("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};IL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(IL)))(b||IL)}}();
IL.\u0275cmp=B({type:IL,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(Wg(fy,7),Wg(oGc,7));if(a&2){var c;$g(c=ah())&&(b.calendar=c.first);$g(c=ah())&&(b.content=c.first)}},inputs:{required:"required",date:"date",dateTime:"dateTime",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel",includeTimePicker:"includeTimePicker",calendarButtonRow:"calendarButtonRow"},outputs:{dateChange:"dateChange",dateTimeChange:"dateTimeChange",
cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},standalone:!1,features:[kg],decls:15,vars:11,consts:[["content",""],[1,"b-optional-calendar-button-row"],[3,"selectedChange","selected","startAt"],["appearance","outline"],[1,"actions"],[1,"b-calendar-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click"],[4,"ngTemplateOutlet"],["type","time","matInput","",
"aria-label","Time Picker","required","",1,"time-input",3,"focus","formControl"],["type","button","mat-button","",1,"today"],["type","button","mat-button","",1,"none"],["type","button","mat-button","",1,"today",3,"click"],["type","button","mat-button","",1,"none",3,"click"]],template:function(a,b){if(a&1){var c=r();I(0,"div",null,0)(2,"div",1);E(3,QOa,1,1,"ng-container");J();I(4,"mat-calendar",2);S(5,"toDateTime");S(6,"toDateTime");M("selectedChange",function(d){t(c);return v(SOa(b,d))});J();E(7,
ROa,2,1,"mat-form-field",3);I(8,"div",4);E(9,XOa,4,2,"div",1);I(10,"div",5)(11,"button",6);M("click",function(){t(c);return v(b.cancelClicked.emit())});Q(12,"Cancel");J();I(13,"button",7);M("click",function(){t(c);b.saveChanges();return v(b.saveClicked.emit())});Q(14,"Save");J()()()()}a&2&&(wg("container",b.renderPanel),z(3),F(b.calendarButtonRow?3:-1),z(),D("selected",b.includeTimePicker?b.dateTime:T(5,7,b.date))("startAt",b.includeTimePicker?b.dateTime:T(6,9,b.date)),z(3),F(b.includeTimePicker?
7:-1),z(2),F(b.todayButtonEnabled||b.noneButtonEnabled?9:-1))},dependencies:function(){return[Pv,PA,Tx,fy,HL,Li,oy,Gy,Ay,Xy,ez,JL]},styles:[".b-optional-calendar-button-row[_ngcontent-%COMP%]{margin:0 1rem}.actions[_ngcontent-%COMP%]{text-align:end}.actions[_ngcontent-%COMP%]   div.b-optional-calendar-button-row[_ngcontent-%COMP%]{width:fit-content;margin:auto;align-content:center}.container[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;background-color:#fff;background-color:var(--surface-default)}mat-calendar[_ngcontent-%COMP%]{width:288px;height:342px}mat-form-field[_ngcontent-%COMP%]{--mat-form-field-container-height:20px;width:100px;margin:18px}.dark-mode   [_nghost-%COMP%]   input[type=time][_ngcontent-%COMP%]{color-scheme:dark}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{background-color:#fff;background-color:var(--surface-default)}/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var JL=function(){};JL.prototype.transform=function(a){var b;return(b=Txa(a))!=null?b:void 0};JL.\u0275fac=function(a){return new (a||JL)};JL.\u0275pipe=Lf({name:"toDateTime",type:JL,pure:!0,standalone:!1});var pGc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],KL=function(){Z.call(this);var a=this;this.overlay=n(vx);this.element=n(ff);this.hostEl=n(ff);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new LA;this.selectedDateTimeChange=
new LA;this.dateSelectionChange=new LA;this.includeTimePickerChange=new LA;this.onClose=new LA;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Y(KL,Z);g=KL.prototype;g.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};g.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};
g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(a){a=a===void 0?!1:a;if(this.opened){var b;(b=this.overlayRef)==null||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};g.onHostTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(mw(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
g.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(ecc(this.pickerContent.focusEscapeNotifier),a.preventDefault())};g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=this,b=new ox(IL),c;this.pickerContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues()})};g.getPositionStrategy=function(){return hx(ix(jx(mx(this.overlay.position(),this.element)),8),pGc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
g.connectValues=function(){var a=this;if(this.pickerContent&&this.overlayRef){var b=Ue(this.overlayRef._detachments,this.destroyed$);this.pickerContent.date=this.selected;this.pickerContent.dateTime=this.selectedDateTime;this.pickerContent.required=this.required;this.pickerContent.trapFocus=!this.focusTrapHost;(this.pickerContent.includeTimePicker=this.includeTimePicker)&&TOa(this.pickerContent,this.selectedDateTime);this.focusTrapHost&&this.pickerContent.focusEscaped.pipe(gg(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});
this.pickerContent.dateChange.pipe(gg(b)).subscribe(function(c){a.selectedChange.emit(c)});this.pickerContent.dateTimeChange.pipe(gg(b)).subscribe(function(c){a.selectedDateTimeChange.emit(c)});this.pickerContent.dateSelectionChange.pipe(gg(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});Ue(this.pickerContent.saveClicked,this.pickerContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(Ve(function(c){return c.code==="Escape"}))).pipe(gg(b)).subscribe(function(){a.close()})}};
KL.\u0275fac=function(a){return new (a||KL)};
KL.\u0275dir=Kf({type:KL,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClickHost(c)})("keydown.enter",function(c){return b.onHostEnter(c)})("keydown.tab",function(c){return b.onHostTab(c)})("keydown.shift.tab",function(c){return b.onHostShiftTab(c)});a&2&&ng("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:[0,"bDateTimePickerToggleFocusTrapHost",
"focusTrapHost"],required:[0,"bDateTimePickerToggleRequired","required"],selected:[0,"bDateTimePickerToggleSelected","selected"],selectedDateTime:[0,"bDateTimePickerToggleSelectedDateTime","selectedDateTime"],includeTimePicker:[0,"bDateTimePickerToggleIncludeTimePicker","includeTimePicker"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",selectedDateTimeChange:"bDateTimePickerToggleSelectedDateTimeChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",includeTimePickerChange:"bDateTimePickerToggleIncludeTimePickerChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],standalone:!1,features:[kg]});var qGc=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,rGc=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,sGc=function(a){this.patternParts_=[];this.dateTimeSymbols_=Jv;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
sGc.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(qGc.test(e))for(c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),this.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<a.length-1&&a.charAt(d+1)==" ";)d++;else if(b)e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!1:c+=e;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(e)>=0){c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),
c="");for(var f=a.charAt(d),h=d+1;h<a.length&&a.charAt(h)==f;)h++;f=h-d;f<=0?h=!1:(h="MydhHmsSDkK".indexOf(e),h=h>0||h==0&&f<3);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:h});d+=f-1}else e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!0:c+=e}c.length>0&&this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});a=!1;for(b=0;b<this.patternParts_.length;b++)this.patternParts_[b].numeric?!a&&b+1<this.patternParts_.length&&this.patternParts_[b+1].numeric&&(a=!0,this.patternParts_[b].abutStart=
!0):a=!1};sGc.prototype.applyStandardPattern_=function(a){a>11&&(a=10);if(a<4)var b=this.dateTimeSymbols_.DATEFORMATS[a];else a<8?b=this.dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]));this.applyPattern_(b)};
sGc.prototype.parse=function(a,b,c){var d=!1,e=!1;c&&(d=c.predictive||!1,e=c.validate||!1);if(d)for(c=0;c<this.patternParts_.length;c++){var f=this.patternParts_[c];if(f.count>0&&("abBhHkKm".indexOf(f.text.charAt(0))<0||f.count>2||f.abutStart))throw Error("Xd`"+f.text.charAt(0));}f=new tGc;c=[0];f.dayPeriodIndex=-1;for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(this.patternParts_[h].count==0){a:{var k=a;var q=c,u=this.patternParts_[h],A=d;if(u.text.match(qGc)!=null){if(u=q[0],
uGc(k,q),q[0]>u){k=!0;break a}}else{if(k.indexOf(u.text,q[0])==q[0]){q[0]+=u.text.length;k=!0;break a}if(A&&u.text.indexOf(k.substring(q[0]))==0){q[0]+=k.length-q[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;u=c;A=h;var G=u[0],H=0;for(k=A;k<this.patternParts_.length;k++){var N=this.patternParts_[k],O=N.count;if(O===0)break;if(k==A&&(O-=H,H++,O==0)){k=0;break a}var U=k>A&&N.numeric,da=u[0];if(!vGc(this,q,u,N,O,f,!1)||U&&u[0]-da<O)k=A-1,u[0]=G}k-=A}if(k<=0)return 0;
h+=k-1}else if(!vGc(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Yd");f.era!=void 0&&f.year!=void 0&&f.era==0&&f.year>0&&(f.year=-(f.year-1));f.year!=void 0&&b.setFullYear(f.year);d=b.getDate();b.setDate(1);f.month!=void 0&&b.setMonth(f.month);f.day!=void 0?b.setDate(f.day):(e=wbc(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));typeof b.setHours==="function"&&(f.hours==void 0&&(f.hours=b.getHours()),f.hours<12&&(f.ampm!=void 0&&f.ampm>0?f.hours+=12:f.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&f.hours>=6)&&(f.hours+=12)),b.setHours(f.hours));typeof b.setMinutes==="function"&&f.minutes!=void 0&&b.setMinutes(f.minutes);typeof b.setSeconds==="function"&&f.seconds!=void 0&&b.setSeconds(f.seconds);typeof b.setMilliseconds==="function"&&f.milliseconds!=void 0&&b.setMilliseconds(f.milliseconds);if(a&&(f.year&&f.year!=b.getFullYear()||f.month&&f.month!=
b.getMonth()||f.day&&f.day!=b.getDate()||f.hours&&f.hours>=24||f.minutes&&f.minutes>=60||f.seconds&&f.seconds>=60||f.milliseconds&&f.milliseconds>=1E3))b=!1;else{f.tzOffset!=void 0&&b.setTime(b.getTime()+(f.tzOffset-b.getTimezoneOffset())*60*1E3);f.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(f.dayOfWeek!=void 0)if(f.day==void 0)f=(7+f.dayOfWeek-b.getDay())%7,f>3&&(f-=7),a=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=
a&&b.setDate(b.getDate()+(f>0?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var vGc=function(a,b,c,d,e,f,h){uGc(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return LL(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return wGc(a,b,c,e,d,f);case "E":return LL(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){return f.dayOfWeek=k});case "B":case "b":return e=[],a=[[].concat(a.dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=LL(b,c,a,function(k){return f.dayPeriodIndex=
k},h),f.dayPeriodName=e[f.dayPeriodIndex],h?b:!0;case "a":return b=LL(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},h),h?b:!0;case "y":return xGc(a,b,c,d,e,f);case "Q":return LL(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return yGc(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return zGc(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=yGc(a,b,c,d,e,function(k){f.hours=d.text.charAt(0)==="h"&&k===12?0:k},h),h?b:
!0;case "m":return b=yGc(a,b,c,d,e,function(k){f.minutes=k},h),h?b:!0;case "s":return yGc(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return AGc(a,b,c,f);default:return!1}},xGc=function(a,b,c,d,e,f){var h=c[0];e=ML(a,b,c,e);e===null&&(e=ML(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-h==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),f.year=a):f.year=e;return!0},wGc=function(a,b,c,d,e,f){return e.numeric&&yGc(a,
b,c,e,d,function(h){f.month=h-1})?!0:LL(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},zGc=function(a,b,c,d,e){var f=c[0];a=ML(a,b,c,d);if(a===null)return!1;c=c[0]-f;e.milliseconds=c<3?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},AGc=function(a,b,c,d){b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);if(c[0]>=b.length)return d.tzOffset=0,!0;var e=c[0],f=ML(a,b,c,0,!0);if(f===null)return!1;
if(c[0]<b.length&&b.charAt(c[0])==":"){var h=f*60;c[0]++;f=ML(a,b,c,0);if(f===null)return!1;h+=f}else h=f,h=h<24&&c[0]-e<=3?h*60:h%100+h/100*60;d.tzOffset=-h;return!0},yGc=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=ML(a,b,c,e);if(a===null)return!1;if(h&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},LL=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,u=0,A=null,G=a.substring(f[0]).toLowerCase(),H=0;H<k.length;H++){var N=
k[H].toLowerCase();if(q&&N.indexOf(G)==0){u=G.length;A=H;break}k[H].length>u&&G.indexOf(N)==0&&(u=k[H].length,A=H)}A!==null&&(f[0]+=u);f=A;if(f!==null)return d(f),!0}return!1},uGc=function(a,b){(a=a.substring(b[0]).match(rGc))&&(b[0]+=a[0].length)},ML=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var h=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=h&&h<=9?String.fromCharCode(h+48):b.charAt(f))}b=d.join("")}else b=
b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},tGc=function(){};tGc.prototype.ambiguousYear=!1;var Odc=Array(31).fill(0).map(function(a,b){return""+(b+1)}),NL=function(){var a=Ax.apply(this,arguments)||this;a.locale=Jv;return a};Y(NL,Ax);NL.prototype.setLocale=function(){throw Error("Zd");};NL.prototype.getYear=function(a){return a.getYear()};NL.prototype.getMonth=function(a){return a.getMonth()};NL.prototype.getDate=function(a){return a.getDate()};var Ndc=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
NL.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};NL.prototype.clone=function(a){return a.clone()};var cy=function(a,b,c){return new bk(a,b,c)};NL.prototype.parse=function(a,b){if(a==="")return null;b=new sGc(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new bk(new Date(a));b.parse(a,c);return c};NL.prototype.format=function(a,b){if(!this.isValid(a))throw Error("$d");return(new cE(b)).format(a)};
var ay=function(a,b){a=a.clone();a.add(new Lv(b));return a},by=function(a,b){a=a.clone();a.add(new Lv(0,b));return a},Zx=function(a,b){a=a.clone();a.add(new Lv(0,0,b));return a},bdc=function(a){return a instanceof bk};g=NL.prototype;g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new bk(NaN)};g.sameDate=function(a,b){return a&&b?(new Uj(a)).equals(b):!1};g.getHours=function(a){return a.getHours()};g.getMinutes=function(a){return a.getMinutes()};g.getSeconds=function(a){return a.getSeconds()};
g.setTime=function(a,b,c,d){a=this.clone(a);a.setHours(b);a.setMinutes(c);a.setSeconds(d);a.setMilliseconds(0);return a};NL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(NL)))(b||NL)}}();NL.\u0275prov=Sc({token:NL,factory:NL.\u0275fac});var BGc={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",YEAR_MONTH_SHORT:"MM/y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d",MONTH_DAY_TIME_ZONE_SHORT:"MMM d, h:mm\u202fa zzzz"},OL=BGc;OL=BGc;var PL=Jv.DATEFORMATS[3];PL=PL.replace(/yyyy/,"yy").replace(/yy/,"yyyy");PL==="M/d/yyyy"&&(PL="MM/dd/yyyy");var CGc=Jv.TIMEFORMATS.at(-1),DGc={parse:{dateInput:PL,timeInput:CGc},display:{dateInput:PL,monthYearLabel:OL.YEAR_MONTH_ABBR,dateA11yLabel:OL.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:OL.YEAR_MONTH_FULL,timeInput:CGc,timeOptionLabel:CGc}};var QL=function(){};QL.\u0275fac=function(a){return new (a||QL)};QL.\u0275mod=Jf({type:QL});QL.\u0275inj=Tc({providers:[{provide:Ax,useClass:NL},{provide:Ex,useValue:DGc}]});var RL=function(){};RL.\u0275fac=function(a){return new (a||RL)};RL.\u0275mod=Jf({type:RL});RL.\u0275inj=Tc({imports:[zx,zx]});var UL=function(){};UL.\u0275fac=function(a){return new (a||UL)};UL.\u0275mod=Jf({type:UL});UL.\u0275inj=Tc({imports:[ZB,$B,jz,RL,Aw,Ly,My,Yy,fz,QL]});var EGc=["popupField"],FGc=["fieldContent"],GGc=["popupOverlay"],HGc=["overlayContent"],bPa=function(a){return{q:a}},lPa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},IGc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],VL=function(){Z.apply(this,arguments);this.cdr=n(NA,{self:!0});this.element=n(ff);this.overlay=n(vx);this.viewContainerRef=n(Ug);this.dateFormatter=n(HK);this.activeSession=n(Es);this.constants=n(GK);this.appEvents=n(nD);this.googDateValue=null;this.autocompleteActive=
!1;this.readonlyTooltip=this.displayValue=null;this.textBuffer="";this.enableTeamAnnotations=this.activeSession.isInternalSession();this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new LA;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};
Y(VL,Z);VL.\u0275dir=Z.\u0275dir;g=VL.prototype;g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=Yr(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,JGc(a),a.cdr.detectChanges())}));this.subscriptions.add(CEc(this.dateFormatter,function(){KGc(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){JGc(a)})};
g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&KGc(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return hx(ix(jx(mx(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),IGc)};
var JGc=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},MPa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();SPa(a);break;case 27:b.stopPropagation(),wq(a,b,!1,!0)}},KPa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),SPa(a);break;case 27:b.stopPropagation(),wq(a,b,!1,!0)}},iPa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();wq(a,
b,!0,!1);break;case 27:b.stopPropagation(),wq(a,b,!1,!0)}},wq=function(a,b,c,d){if((b==null?0:b.target)&&"nodeName"in b.target&&b.target.nodeName==="A"||a.type==="ENUM"&&a.choices.length===0)b==null||b.stopPropagation();else{if(!c||a.disabled||a.readonly){if(a.isActive=!1,JGc(a),d){var e;(e=a.popupField)==null||e.nativeElement.focus()}}else if(a.appEvents.openEditField.next(a),a.isActive=!0,a.textBuffer=a.value!=null?String(a.value):"",a.type=="DATE"&&(c=a.value,a.googDateValue=c?Ho(c):null),a.type===
"ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){LGc(a);var f=a.element.nativeElement;Qe(document,"click").pipe(Ve(function(h){return!f.contains(h.target)}),Uf(),gg(a.overlayRef._detachments),gg(a.destroyed$)).subscribe(function(){wq(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};VL.prototype.schedule=function(a){var b=Re.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};VL.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var KGc=function(a){var b=a.value;switch(a.type){case "ENUM":if(a.title==="Type"&&b&&AEc.has(b)){a.displayValue=xk(b);break}var c=a.choices.find(function(d){return d.value==b});c?(a.displayValue=c.displayText,a.readonlyTooltip=c.altText||""):(a.displayValue=null,a.readonlyTooltip=null);break;case "BOOL":a.displayValue=b?"Yes":"No";a.readonlyTooltip=null;break;case "DATE":b?a.displayValue=a.dateFormatter.formatUserCalendar(Ho(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};VL.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=UEa(a)),this.type==="NUMERIC"&&a===""&&(a=null),Pj(this.value,a)?this.type==="ENUM"&&wq(this,null,!1,!0):(wq(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var SPa=function(a){if(a.type===void 0)throw Error("ae");a.isUser&&(a.textBuffer=a.textBuffer.replace(/^[\s,]+|[\s,]+$/g,""));a.type==="NUMERIC"&&(a.textBuffer=a.textBuffer.trim());switch(a.type){case "TEXT":a.setFieldValue(a.textBuffer);break;case "NUMERIC":a.textBuffer=a.textBuffer.trim();a.textBuffer===""?a.setFieldValue(null):a.setFieldValue(Number(a.textBuffer));break;case "ENUM":case "BOOL":case "DATE":throw Error("be");default:Gb(a.type,"FieldType")}};
VL.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);wq(this,null,!1,!0)};var LGc=function(a){JGc(a);var b=a.overlayRef.attach(new px(a.popupOverlay,a.viewContainerRef)).rootNodes[0];a.schedule(function(){if(a.type==="TEXT"||a.type==="NUMERIC"){var c=b.querySelector("textarea, input");c&&(c.focus(),c.select())}else a.type==="DATE"&&(c=b.querySelector(".goog-date-picker"))&&c.focus()})};
VL.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};VL.prototype.getPriority=function(a){return typeof a==="string"?a.toLowerCase():""};VL.\u0275fac=function(){var a;return function(b){return(a||(a=fe(VL)))(b||VL)}}();
VL.\u0275cmp=B({type:VL,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(Wg(YG,5),Wg(EGc,5),Wg(FGc,5),Wg(GGc,5),Wg(HGc,5));if(a&2){var c;$g(c=ah())&&(b.enumMenuTrigger=c.first);$g(c=ah())&&(b.popupField=c.first);$g(c=ah())&&(b.fieldContent=c.first);$g(c=ah())&&(b.popupOverlay=c.first);$g(c=ah())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",user:"user",displayValueOverride:"displayValueOverride",isUser:"isUser",teamId:"teamId",
clearable:"clearable",choices:"choices",customFieldId:"customFieldId",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showHotkeyHint:"showHotkeyHint",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},standalone:!1,features:[hh([NA]),kg,Uu],decls:13,vars:5,consts:[["enumMenu","matMenu"],["renderFieldContent",""],["popupOverlay",""],["popupField","","tooltip","matTooltip"],["fieldContent",""],["overlayContent",""],[1,
"bv2-issue-metadata-field"],["role","button","tabindex","0",1,"keep-focus-ring",3,"class","bv2-disabled","bv2-readonly","matTooltip"],[3,"class","ngClass","matTooltip"],[1,"bv2-issue-metadata-footer"],[1,"keep-focus-ring"],["matMenuContent",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"click","keydown","keydown.escape","matTooltip"],[3,"class"],[1,"bv2-editable-value"],[1,"bv2-editable-value",3,"matMenuTriggerFor"],[1,"overflow-ellipsis"],[1,"bv2-editable-value",3,"menuClosed","matMenuTriggerFor"],
[4,"ngTemplateOutlet"],["routerLink","/issues",1,"subtle-link",3,"queryParams"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuClosed","matMenuTriggerFor"],[3,"ngClass","matTooltip"],[1,"keep-focus-ring",3,"modelChange","disabled","aria-label","model"],[3,"click"],[3,"user"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked",
"disabled"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","hotkey"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click","onHotkey","disabled","hotkey"],[1,"flex-kids-x","align-items-center","gap"],[1,"muted","plain-monospace","margin-left-auto"],[1,"bv2-editable-value",
3,"keydown","click"],[1,"issue-metadata-field-dropdown-icon"],[1,"issue-metadata-field-edit-icon"],[1,"flex-kids-x","flex-cross-axis-centered"],[3,"user","email","teamId","enableSmallChip"],[1,"bv2-editfield-avatar",3,"email"],[1,"bv2-metadata-field-value"],[3,"email"],[1,"bv2-metadata-field-value",3,"ngClass","maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",3,"class","maxWidth","modelValue","disabled"],[1,"chippy",3,"maxWidth","modelValue","disabled"],[1,"bv2-metadata-field-value",
3,"maxWidth","modelValue","disabled"],[1,"bv2-edit-button"],["svgIcon","arrow-dropdown"],["svgIcon","edit-outline"],["role","dialog"],[1,"bv2-text-field-edit"],[3,"dateSelectionChange","saveClicked","cancelClicked","required","date"],[1,"bv2-text-field-edit",3,"click"],[1,"bv2-text-edit-dialog-buttons"],["type","button","mat-flat-button","","color","primary",1,"medium","field-popup-button",3,"click","disabled","matTooltip"],["svgIcon","done"],["type","button","mat-stroked-button","","color","primary",
1,"medium","field-popup-button",3,"click","matTooltip"],["svgIcon","close"],["spellcheck","false",3,"ngModel"],["step","any","spellcheck","false",3,"ngModel"],["spellcheck","false",3,"ngModelChange","keydown","ngModel"],["step","any","spellcheck","false",3,"ngModelChange","keydown","ngModel"],["spellcheck","false",3,"ngModel","bContactAutocomplete"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete"],["spellcheck","false",3,"ngModelChange","keydown","autocompleteActive","ngModel",
"bContactAutocomplete"],["step","any","spellcheck","false",3,"ngModelChange","keydown","autocompleteActive","ngModel","bContactAutocomplete"]],template:function(a,b){a&1&&(I(0,"div")(1,"div",6),E(2,jPa,6,14,"div",7),E(3,mPa,3,13,"div",8),E(4,oPa,1,1),K(5,"div",9),J(),I(6,"mat-menu",10,0),C(8,sPa,3,1,"ng-template",11),J()(),C(9,GPa,6,6,"ng-template",null,1,nh)(11,UPa,6,4,"ng-template",null,2,nh));a&2&&(z(),wg("active",b.isActive&&!b.readonly&&!b.disabled),z(),F(b.type!=="BOOL"?2:-1),z(),F(b.type===
"BOOL"?3:-1),z(),F(b.isUser?4:-1))},dependencies:[HH,Mv,Pv,aB,FA,bJ,IL,Li,oy,vy,pH,PA,Tx,UG,XG,VG,WG,YG,YA,cB,gH,IJ,YJ,AL,DL,Rv],styles:[".bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-filled-button-icon-spacing:0px;--mat-filled-button-icon-offset:0px}.bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-outlined-button-icon-spacing:0px;--mat-outlined-button-icon-offset:0px}",
".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});var WL={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},XL=function(){};XL.\u0275fac=function(a){return new (a||XL)};XL.\u0275mod=Jf({type:XL});XL.\u0275inj=Tc({imports:[bI,bH,ZB,cJ,UL,Ly,qH,$B,LH,cC,hH,XJ,VB,ZJ,FL]});var MGc=function(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"},NGc=MGc;NGc=MGc;var OGc=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",f=e.indexOf(".");b=d.call(b,f===-1?0:e.length-f-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return c==1&&a.v==0?"one":"other"},PGc=OGc;PGc=OGc;var ZPa=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=QA;var b=Pjc;if(QGc!==a||RGc!==b)QGc=a,RGc=b,SGc=new RA(1);this.numberFormatter_=SGc},QGc=null,RGc=null,SGc=null,TGc=RegExp("'([{}#].*?)'","g"),UGc=RegExp("''","g");ZPa.prototype.format=function(a){return this.format_(a,!1)};
ZPa.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=VGc(this,this.pattern_);this.parsedPattern_=WGc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=ab(this.initialLiterals_);c=[];XGc(this,this.parsedPattern_,a,b,c);for(a=c.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));return a};
var XGc=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value;var k=a,q=e,u=c[h];u===void 0?q.push("Undefined parameter - "+h):(k.literals_.push(u),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;u=d;var A=e,G=h.argumentIndex;q[G]===void 0?A.push("Undefined parameter - "+G):(G=h[q[G]],G===void 0&&(G=h.other),XGc(k,G,q,u,A));break;case 0:h=b[f].value;YGc(a,h,c,PGc,d,e);break;case 1:h=b[f].value,YGc(a,h,c,
NGc,d,e)}},YGc=function(a,b,c,d,e,f){var h=b.argumentIndex,k=b.argumentOffset,q=+c[h];isNaN(q)?f.push("Undefined or invalid parameter - "+h):(k=q-k,h=b[c[h]],h===void 0&&(d=d(Math.abs(k)),h=b[d],h===void 0&&(h=b.other)),b=[],XGc(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},VGc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(UGc,function(){c.push("'");return d(c)});return b=b.replace(TGc,function(e,f){c.push(f);return d(c)})},
ZGc=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var h=f.index;f[0]=="}"?(c.pop(),c.length==0&&(f={type:1},f.value=a.substring(b,h),d.push(f),b=h+1)):(c.length==0&&(b=a.substring(b,h),b!=""&&d.push({type:0,value:b}),b=h+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},$Gc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,aHc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,bHc=/^\s*(\w+)\s*,\s*select\s*,/,WGc=function(a,b){var c=[];b=ZGc(b);for(var d=0;d<
b.length;d++){var e={};if(0==b[d].type)e.type=4,e.value=b[d].value;else if(1==b[d].type){var f=b[d].value;switch($Gc.test(f)?0:aHc.test(f)?1:bHc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=cHc(a,b[d].value);break;case 0:e.type=0;e.value=dHc(a,b[d].value);break;case 1:e.type=1;e.value=eHc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},cHc=function(a,b){var c="";b=b.replace(bHc,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=ZGc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h=void 0;1==b[e].type&&(h=WGc(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},dHc=function(a,b){var c="",d=0;b=b.replace($Gc,function(q,u,A){c=u;A&&(d=parseInt(A,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=ZGc(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k=void 0;1==b[f].type&&(k=WGc(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},eHc=function(a,b){var c="";b=b.replace(aHc,function(k,q){c=q;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=ZGc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var h=void 0;1==b[e].type&&(h=WGc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};ZPa.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var YL=function(){var a=this;this.userPreferencesManager=n(OG);this.timeZonesApi=n(CK);this.cachedFormatters=new vD(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(y(function(b){return b.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(y(function(b){return b.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(fg(function(b){return b.timeZone?a.timeZonesApi.get(b.timeZone):Ce(void 0)}))};
YL.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new cE(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};YL.prototype.formatUserCalendar=function(a){var b=this;return Je([this.userCalendarFormat$,this.userTimeZone$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
YL.prototype.formatUserTime=function(a){var b=this;return Je([this.userTimeFormat$,this.userTimeZone$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var fHc=function(a,b){return Je([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},gHc=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(y(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):Ce(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},R4a=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new Uj;c&&d.setTime(c);c=new Uj;c.setTime(a);if(c.getTime()<
d.getTime())return"Expired";a=(c.getFullYear()-d.getFullYear())*12+(c.getMonth()-d.getMonth());var e=c.getDate()-d.getDate();e<0&&(a--,d=d.clone(),d.add(new Lv("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new Lv(Math.floor(a/12),a%12,e);if(d.years>=1)return c=d.years>1?"s":"",d.months===0&&d.days===0?b?d.years+" year"+c:d.years+"Y":b?d.years+" year"+c+" +":d.years+"Y+";if(d.months>=1)return c=d.months>1?"s":"",d.days===0?b?d.months+" month"+c:d.months+"M":b?d.months+" month"+c+" +":d.months+
"M+";c=d.days>1?"s":"";return b?d.days+" day"+c:d.days+"D"};YL.\u0275fac=function(a){return new (a||YL)};YL.\u0275prov=Sc({token:YL,factory:YL.\u0275fac,providedIn:"root"});var $Pa=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],aQa={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var hHc=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],iHc=Symbol("ce"),jHc=Symbol("ce"),ZL=function(){var a=this;this.dateFormatter=n(YL);this.paddingLeftPx=5;this.timestampMs$=new ag(1);this.timestampIso$=this.timestampMs$.pipe(y(function(b){return b?(new Date(b)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(y(function(b){if(b!==void 0)return new Date(b)}));this[iHc]=this.timestampDate$.pipe(fg(function(b){if(b===void 0)return Ce("");var c=b.getTime()/
1E3;switch(a.mode){case "date":return a.dateFormatter.formatUserCalendar(b);case "time":return a.dateFormatter.formatUserTime(b);case "datetime":return fHc(a.dateFormatter,b);case "relativepast":return b=xq(c),Ce(b);case "relativepastshort":var d;return Ce((d=xq(c,!0))!=null?d:"");case "relativepasttiny":var e;return Ce((e=xq(c,!0,1))!=null?e:"");default:return Gb(a.mode)}}));this[jHc]=this.timestampDate$.pipe(fg(function(b){return b===void 0?Ce(""):Je(hHc.map(function(c){return gHc(a.dateFormatter,
b,c.id).pipe(y(function(d){return{formatted:d,tzName:c.name}}))})).pipe(kHc)}));this.vars$=Je([this[iHc],this[jHc]]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{formatted:b,title:c}}))};ZL.prototype.ngOnInit=function(){};
ea.Object.defineProperties(ZL.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;a=a!=null?typeof a==="number"?a:typeof a==="string"?Date.parse(a):a.seconds*1E3:void 0;a=a==null||isNaN(a)?void 0:a;c.call(b,a)}},date:{configurable:!0,enumerable:!0,set:function(a){a&&this.timestampMs$.next(a.valueOf())}}});ZL.\u0275fac=function(a){return new (a||ZL)};
ZL.\u0275cmp=B({type:ZL,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode",paddingLeftPx:"paddingLeftPx"},standalone:!1,decls:2,vars:3,consts:[[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(E(0,bQa,3,8,"time",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.vars$))?0:-1,c)}},dependencies:[Qv],encapsulation:2,changeDetection:0});
var kHc=oe(y(function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values()).map(function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var $L=function(){Z.apply(this,arguments);var a=this;this.changelistApi=n(UC);this.providedChangelistId$=new ag(1);this.changelist$=this.providedChangelistId$.pipe(fg(function(b){return a.changelistApi.getChangelistDetails(b)}),cg({refCount:!0,bufferSize:1}));this.init=new ag(1)};Y($L,Z);$L.\u0275dir=Z.\u0275dir;$L.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.init.next()})};$L.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};
$L.\u0275fac=function(){var a;return function(b){return(a||(a=fe($L)))(b||$L)}}();
$L.\u0275cmp=B({type:$L,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},standalone:!1,features:[kg,Uu],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"card"],[3,"href"],[1,"author"],[1,"description"],[3,"innerHTML"],[3,"email","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),E(2,fQa,16,5,"div",
2),S(3,"async"),J()());if(a&2){var c;z(2);F((c=T(3,1,b.changelist$))?2:-1,c)}},dependencies:[yL,ZL,Qv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.card[_ngcontent-%COMP%]{max-width:700px}.description[_ngcontent-%COMP%]{margin:12px 0 0;max-height:200px;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis}"]});var aM=function(){this.analytics=n(CF);this.config=Object.assign({},new iJ,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};aM.prototype.ngOnInit=function(){};aM.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};aM.\u0275fac=function(a){return new (a||aM)};
aM.\u0275cmp=B({type:aM,selectors:[["b-changelist-chip"]],inputs:{changelistId:"changelistId"},standalone:!1,decls:7,vars:5,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"bv2-metadata-link",3,"click","href","onedevHovercardTrigger","onedevHovercardConfig"],[1,"suffix"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){if(a&1){var c=r();I(0,"a",2);M("click",function(){t(c);return v(b.trackClick())});
Q(1);I(2,"span",3);Q(3,"CL");J()();I(4,"onedev-hovercard",null,0);C(6,gQa,2,2,"b-changelist-card",4);J()}a&2&&(a=L(5),D("href","http://critique.corp.google.com/"+b.changelistId,uf)("onedevHovercardTrigger",a)("onedevHovercardConfig",b.config),ng("aria-label","Changelist "+b.changelistId),z(),R(" ",b.changelistId," "))},dependencies:[fJ,gJ,lJ,hJ,$L],styles:["[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#185abc;color:var(--link-high-contrast);border-radius:12px;margin:1px 0;padding:0 8px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{color:#202124;color:var(--text);border-left:1px solid;border-left-color:#bdc1c6;border-left-color:var(--c400);padding-left:5px;margin-left:2px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:hover{background-color:#e8eaed;background-color:var(--c200);text-decoration:none}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link{background-color:#e8eaed;background-color:var(--c200);color:#1a73e8;color:var(--link)}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:active, .dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:hover{background-color:#dadce0;background-color:var(--c300)}\n/*# sourceMappingURL=changelist_chip.css.map */"]});var bM=function(){this.activeSession=n(Es);this.analytics=n(CF);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};bM.prototype.ngOnInit=function(){};bM.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=yxa(this.change,this.isInternal))};bM.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};bM.\u0275fac=function(a){return new (a||bM)};
bM.\u0275cmp=B({type:bM,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},standalone:!1,features:[Uu],decls:5,vars:8,consts:[["target","_blank",1,"bv2-metadata-link",3,"click","href"],[1,"suffix"]],template:function(a,b){a&1&&(I(0,"a",0),M("click",function(){return b.trackClick()}),Q(1),I(2,"span",1),Q(3),S(4,"titlecase"),J()());a&2&&(qg("aria-label","",b.change.host," ",b.change.changeNumber),D("href",b.gerritUrl,uf),z(),R(" ",b.change.changeNumber," "),z(2),ch(T(4,
6,b.change.host)))},dependencies:[Sv],styles:["[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#185abc;color:var(--link-high-contrast);border-radius:12px;margin:1px 0;padding:0 8px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]   .suffix[_ngcontent-%COMP%]{color:#202124;color:var(--text);border-left:1px solid;border-left-color:#bdc1c6;border-left-color:var(--c400);padding-left:5px;margin-left:2px}[_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   .bv2-metadata-link[_ngcontent-%COMP%]:hover{background-color:#e8eaed;background-color:var(--c200);text-decoration:none}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link{background-color:#e8eaed;background-color:var(--c200);color:#1a73e8;color:var(--link)}.dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:active, .dark-mode   [_nghost-%COMP%]     .bv2-metadata-link:hover{background-color:#dadce0;background-color:var(--c300)}\n/*# sourceMappingURL=gerrit_change_chip.css.map */"]});var cM=function(){this.activeSession=n(Es);this.gerritChange=this.changelist=void 0;this.enableGerritChanges=Yr(this.activeSession,"enableGerritChanges")};cM.prototype.ngOnInit=function(){};cM.prototype.ngOnChanges=function(a){a.codeChange&&((a=im(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=B({type:cM,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},standalone:!1,features:[Uu],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&E(0,hQa,1,1,"b-changelist-chip",0)(1,iQa,1,1,"b-gerrit-change-chip",1);a&2&&F(b.changelist?0:b.enableGerritChanges&&b.gerritChange?1:-1)},dependencies:[aM,bM],encapsulation:2});var dM=function(){};dM.\u0275fac=function(a){return new (a||dM)};dM.\u0275mod=Jf({type:dM});dM.\u0275inj=Tc({imports:[ZB]});var lHc=function(){this.id=0};lHc.\u0275fac=function(a){return new (a||lHc)};
lHc.\u0275cmp=B({type:lHc,selectors:[["changelist-link-plain"]],inputs:{id:"id"},standalone:!1,decls:5,vars:3,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"cl-link",3,"href","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){a&1&&(I(0,"a",2),Q(1),J(),I(2,"onedev-hovercard",null,0),C(4,jQa,2,2,"b-changelist-card",3),J());a&2&&(a=L(3),D("href","http://critique.corp.google.com/"+
b.id,uf)("onedevHovercardTrigger",a),z(),R(" cl/",b.id,"\n"))},dependencies:[fJ,gJ,lJ,hJ,$L],encapsulation:2});var eM=function(){};eM.\u0275fac=function(a){return new (a||eM)};eM.\u0275mod=Jf({type:eM});eM.\u0275inj=Tc({imports:[ZB,FL,WJ,dM]});var fM=function(){};fM.\u0275fac=function(a){return new (a||fM)};fM.\u0275mod=Jf({type:fM});fM.\u0275inj=Tc({imports:[ZB,WJ,eM]});var mHc=new yd("GMAT_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var gM=function(a){this.options=a};gM.\u0275fac=function(a){return new (a||gM)(zf(mHc))};gM.\u0275dir=Kf({type:gM,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-list",!b.options.disableGmatStyle)},standalone:!1});var nHc=new yd("ListOption");var hM=function(){this._elementRef=n(ff)};hM.\u0275fac=function(a){return new (a||hM)};hM.\u0275dir=Kf({type:hM,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var iM=function(){this._elementRef=n(ff)};iM.\u0275fac=function(a){return new (a||iM)};iM.\u0275dir=Kf({type:iM,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var oHc=function(){};
oHc.\u0275fac=function(a){return new (a||oHc)};oHc.\u0275dir=Kf({type:oHc,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var jM=function(){this._listOption=n(nHc,{optional:!0})};jM.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};jM.\u0275fac=function(a){return new (a||jM)};
jM.\u0275dir=Kf({type:jM,hostVars:4,hostBindings:function(a,b){a&2&&wg("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var kM=function(){jM.apply(this,arguments)};Y(kM,jM);kM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(kM)))(b||kM)}}();kM.\u0275dir=Kf({type:kM,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[kg]});var lM=function(){jM.apply(this,arguments)};Y(lM,jM);
lM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(lM)))(b||lM)}}();lM.\u0275dir=Kf({type:lM,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[kg]});var pHc=new yd("MAT_LIST_CONFIG");var mM=function(){this._isNonInteractive=!0;this._disabled=this._disableRipple=!1;this._defaultOptions=n(pHc,{optional:!0})};ea.Object.defineProperties(mM.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=zi(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=zi(a)}}});mM.\u0275fac=function(a){return new (a||mM)};
mM.\u0275dir=Kf({type:mM,hostVars:1,hostBindings:function(a,b){a&2&&ng("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var nM=function(){this._elementRef=n(ff);this._ngZone=n(ph);this._listBase=n(mM,{optional:!0});this._platform=n(ew);this._noopAnimations=Hi();this._explicitLines=null;this._disabled=this._disableRipple=!1;this._subscriptions=new ke;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;n(kw).load(Gx);this.rippleConfig=n(Ix,{optional:!0})||{};this._hostElement=this._elementRef.nativeElement;this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button";this._listBase&&!this._listBase._isNonInteractive&&
this._initInteractiveListItem();this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")};g=nM.prototype;g.ngAfterViewInit=function(){this._monitorProjectedLinesAndTitle();this._updateItemLines(!0)};g.ngOnDestroy=function(){this._subscriptions.unsubscribe();this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()};g._hasIconOrAvatar=function(){return!(!this._avatars.length&&!this._icons.length)};
g._initInteractiveListItem=function(){this._hostElement.classList.add("mat-mdc-list-item-interactive");this._rippleRenderer=new odc(this,this._ngZone,this._hostElement,this._platform,n(Ze));rdc(this._rippleRenderer,this._hostElement)};g._monitorProjectedLinesAndTitle=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._subscriptions.add(Ue(a._lines.changes,a._titles.changes).subscribe(function(){return a._updateItemLines(!1)}))})};
g._updateItemLines=function(a){if(this._lines&&this._titles&&this._unscopedContent){a&&this._checkDomForUnscopedTextContent();var b;a=(b=this._explicitLines)!=null?b:this._inferLinesFromContent();b=this._unscopedContent.nativeElement;this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2);this._hostElement.classList.toggle("mdc-list-item--with-three-lines",
a===3);this._hasUnscopedTextContent?(a=this._titles.length===0&&a===1,b.classList.toggle("mdc-list-item__primary-text",a),b.classList.toggle("mdc-list-item__secondary-text",!a)):(b.classList.remove("mdc-list-item__primary-text"),b.classList.remove("mdc-list-item__secondary-text"))}};g._inferLinesFromContent=function(){var a=this._titles.length+this._lines.length;this._hasUnscopedTextContent&&(a+=1);return a};
g._checkDomForUnscopedTextContent=function(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(function(a){return a.nodeType!==a.COMMENT_NODE}).some(function(a){return!(!a.textContent||!a.textContent.trim())})};
ea.Object.defineProperties(nM.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=Ci(a,null);this._updateItemLines(!1)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){var a;return this.disabled||this._disableRipple||this._noopAnimations||!((a=this._listBase)==null||!a.disableRipple)},set:function(a){this._disableRipple=zi(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){var a;return this._disabled||!((a=this._listBase)==null||!a.disabled)},
set:function(a){this._disabled=zi(a)}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});nM.\u0275fac=function(a){return new (a||nM)};
nM.\u0275dir=Kf({type:nM,contentQueries:function(a,b,c){a&1&&(Xg(c,kM,4),Xg(c,lM,4));if(a&2){var d;$g(d=ah())&&(b._avatars=d);$g(d=ah())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(ng("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),wg("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var qHc=["unscopedContent"],rHc=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],sHc=new yd("SelectionList"),oM=function(){nM.apply(this,arguments);this._selectionList=n(sHc);this._changeDetectorRef=n(qv);this.selectedChange=new hv;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Y(oM,nM);oM.\u0275dir=nM.\u0275dir;g=oM.prototype;
g.ngOnInit=function(){var a=this,b=this._selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetectorRef.markForCheck()});this._inputsInitialized=!0};g.ngOnDestroy=function(){var a=this;nM.prototype.ngOnDestroy.call(this);this.selected&&Promise.resolve().then(function(){a.selected=!1})};g.toggle=function(){this.selected=!this.selected};g.focus=function(){this._hostElement.focus()};
g.getLabel=function(){var a,b,c,d;return((d=((a=this._titles)==null?void 0:(b=a.get(0))==null?void 0:b._elementRef.nativeElement)||((c=this._unscopedContent)==null?void 0:c.nativeElement))==null?void 0:d.textContent)||""};g._hasCheckboxAt=function(a){return this._selectionList.multiple&&this._getTogglePosition()===a};g._hasRadioAt=function(a){return!this._selectionList.multiple&&this._getTogglePosition()===a&&!this._selectionList.hideSingleSelectionIndicator};
g._hasIconsOrAvatarsAt=function(a){return this._hasProjected("icons",a)||this._hasProjected("avatars",a)};g._hasProjected=function(a,b){return this._getTogglePosition()!==b&&(a==="avatars"?this._avatars.length!==0:this._icons.length!==0)};g._handleBlur=function(){this._selectionList._onTouched()};g._getTogglePosition=function(){return this.togglePosition||"after"};
g._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetectorRef.markForCheck();return!0};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};
g._toggleOnInteraction=function(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))};g._setTabindex=function(a){this._hostElement.setAttribute("tabindex",a+"")};
g._hasBothLeadingAndTrailing=function(){var a=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return(this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"))&&a};
ea.Object.defineProperties(oM.prototype,{checkboxPosition:{configurable:!0,enumerable:!0,get:function(){return this.togglePosition},set:function(a){this.togglePosition=a}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._selectionList.color},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this.selected&&a!==this.value&&this._inputsInitialized&&(this.selected=!1);this._value=a}},selected:{configurable:!0,
enumerable:!0,get:function(){return this._selectionList.selectedOptions.isSelected(this)},set:function(a){a=zi(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});oM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(oM)))(b||oM)}}();
oM.\u0275cmp=B({type:oM,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(Xg(c,iM,5),Xg(c,hM,5));if(a&2){var d;$g(d=ah())&&(b._lines=d);$g(d=ah())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&Wg(qHc,5);if(a&2){var c;$g(c=ah())&&(b._unscopedContent=c.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(a,b){a&1&&M("blur",function(){return b._handleBlur()})("click",function(){return b._toggleOnInteraction()});
a&2&&(ng("aria-selected",b.selected),wg("mdc-list-item--selected",b.selected&&!b._selectionList.multiple&&b._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",b._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",b._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",b._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",b._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",b._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",
b._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",b._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",b._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("mat-accent",b.color!=="primary"&&b.color!=="warn")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},
exportAs:["matListOption"],features:[hh([{provide:nM,useExisting:oM},{provide:nHc,useExisting:oM}]),kg],ngContentSelectors:["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"],decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",
3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],
[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(a,b){if(a&1){var c=r();Ng(rHc);C(0,kQa,1,0,"ng-template",null,0,nh)(2,lQa,6,4,"ng-template",null,1,nh)(4,mQa,5,4,"ng-template",null,2,nh);E(6,oQa,2,1,"span",4)(7,qQa,2,1,"span",5);E(8,sQa,1,1,null,6);I(9,"span",7);Og(10);Og(11,1);I(12,"span",8,3);M("cdkObserveContent",function(){t(c);return v(b._updateItemLines(!0))});Og(14,2);J()();E(15,uQa,2,1,"span",9)(16,wQa,2,1,"span",9);E(17,yQa,1,1,null,6);Og(18,3);K(19,"div",10)}a&
2&&(z(6),F(b._hasCheckboxAt("before")?6:b._hasRadioAt("before")?7:-1),z(2),F(b._hasIconsOrAvatarsAt("before")?8:-1),z(7),F(b._hasCheckboxAt("after")?15:b._hasRadioAt("after")?16:-1),z(2),F(b._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[Pv,xw],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item,[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:0;padding-right:0}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px;width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled{opacity:.5}}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px);top:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}@media(forced-colors: active){.mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}}\n'],
encapsulation:2,changeDetection:0});var tHc={provide:iy,useExisting:ld(function(){return pM}),multi:!0},uHc=function(a,b){this.source=a;this.options=b},pM=function(){mM.call(this);var a=this;this._element=n(ff);this._ngZone=n(ph);this._renderer=n(jv);this._initialized=!1;this._destroyed=new bg;this._onChange=function(){};this.selectionChange=new hv;this.color="accent";this.compareWith=function(d,e){return d===e};this._multiple=!0;var b,c;this._hideSingleSelectionIndicator=(c=(b=this._defaultOptions)==null?void 0:b.hideSingleSelectionIndicator)!=
null?c:!1;this.selectedOptions=new Zw(this._multiple);this._onTouched=function(){};this._changeDetectorRef=n(qv);this._selectionListDisabled=!1;this._handleFocusout=function(){setTimeout(function(){a._containsFocus()||a._resetActiveOption()})};this._handleFocusin=function(d){if(!a.disabled){var e=a._items.toArray().findIndex(function(f){return f._elementRef.nativeElement.contains(d.target)});e>-1?a._setActiveOption(e):a._resetActiveOption()}};this._isNonInteractive=!1};Y(pM,mM);pM.\u0275dir=mM.\u0275dir;
g=pM.prototype;g.ngAfterViewInit=function(){var a=this;this._initialized=!0;this._setupRovingTabindex();this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen(a._element.nativeElement,"focusin",a._handleFocusin),a._renderer.listen(a._element.nativeElement,"focusout",a._handleFocusout)]});this._value&&this._setOptionsFromValues(this._value);this._watchForSelectionChange()};
g.ngOnChanges=function(a){var b=a.disabled,c=a.disableRipple;a=a.hideSingleSelectionIndicator;(c&&!c.firstChange||b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();var b;(b=this._listenerCleanups)==null||b.forEach(function(c){return c()});this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};g.focus=function(a){this._element.nativeElement.focus(a)};g.selectAll=function(){this._setAllOptionsSelected(!0)};
g.deselectAll=function(){return this._setAllOptionsSelected(!1)};g._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};g._emitChangeEvent=function(a){this.selectionChange.emit(new uHc(this,a))};g.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this._markOptionsForCheck()};
g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g._watchForSelectionChange=function(){var a=this;this.selectedOptions.changed.pipe(gg(this._destroyed)).subscribe(function(b){for(var c=l(b.added),d=c.next();!d.done;d=c.next())d.value.selected=!0;b=l(b.removed);for(c=b.next();!c.done;c=b.next())c.value.selected=!1;a._containsFocus()||a._resetActiveOption()})};
g._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};g._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};g._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
g._setAllOptionsSelected=function(a,b){var c=[];this.options.forEach(function(d){b&&d.disabled||!d._setSelected(a)||c.push(d)});c.length&&this._reportValueChange();return c};
g._handleKeydown=function(a){var b=this._keyManager.activeItem;if(a.keyCode!==13&&a.keyCode!==32||this._keyManager.isTyping()||!b||b.disabled)if(a.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&ri(a,"ctrlKey","metaKey"))b=this.options.some(function(c){return!c.disabled&&!c.selected}),a.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(b,!0));else this._keyManager.onKeydown(a);else a.preventDefault(),b._toggleOnInteraction()};
g._setupRovingTabindex=function(){var a=this;this._keyManager=Iw(scc(Lw(new Ow(this._items)))).skipPredicate(function(){return a.disabled});this._resetActiveOption();this._keyManager.change.subscribe(function(b){return a._setActiveOption(b)});this._items.changes.pipe(gg(this._destroyed)).subscribe(function(){var b=a._keyManager.activeItem;b&&a._items.toArray().indexOf(b)!==-1||a._resetActiveOption()})};
g._setActiveOption=function(a){this._items.forEach(function(b,c){return b._setTabindex(c===a?0:-1)});Mw(this._keyManager,a)};g._resetActiveOption=function(){if(this.disabled)this._setActiveOption(-1);else{var a=this._items.find(function(b){return b.selected&&!b.disabled})||this._items.first;this._setActiveOption(a?this._items.toArray().indexOf(a):-1)}};g._containsFocus=function(){var a=wi();return a&&this._element.nativeElement.contains(a)};
ea.Object.defineProperties(pM.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=zi(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new Zw(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=zi(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled},
set:function(a){if(this._selectionListDisabled=zi(a)){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});pM.\u0275fac=function(a){return new (a||pM)};
pM.\u0275cmp=B({type:pM,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&Xg(c,oM,5);if(a&2){var d;$g(d=ah())&&(b._items=d)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b._handleKeydown(c)});a&2&&ng("aria-multiselectable",b.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",
disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[hh([tHc,{provide:mM,useExisting:pM},{provide:sHc,useExisting:pM}]),kg,Uu],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],
encapsulation:2,changeDetection:0});var qM=function(){Z.apply(this,arguments);var a=this;this.dialogRef=n(mK);this.data=n(sK);this.searchQuery$=new bg;this.hasPendingChanges=this.usePreviousSelectedValues=!1;this.originalSelectedValues=new Set(this.data.selectedValues);this.selectedValues=new Set(this.originalSelectedValues);this.previousSelectedValues=new Set(this.selectedValues);this.saveBtnLabel="Save";this.saveBtnTooltip="Save (Shift + Enter)";this.matchedValues$=this.searchQuery$.pipe(Sf(300),Xf(),y(function(b){if(b.trim()!==""){var c=
b.toLowerCase();return a.data.allowedValues.filter(function(d){return Da(d.toLowerCase(),c)})}return vHc(a)}))};Y(qM,Z);qM.\u0275dir=Z.\u0275dir;var vHc=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(p(a.originalSelectedValues),p(b))};
qM.prototype.changeSelection=function(a){var b=this;a=a.options;this.previousSelectedValues=new Set(this.selectedValues);a.forEach(function(d){d.selected?b.selectedValues.add(d.value):b.selectedValues.delete(d.value)});a=Oj(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=l(AQa(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var wHc=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
qM.prototype.closeDialog=function(){this.dialogRef.close()};qM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(qM)))(b||qM)}}();
qM.\u0275cmp=B({type:qM,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&M("keydown.meta.enter",function(){return wHc(b)})("keydown.shift.enter",function(){return wHc(b)})("keydown.control.enter",function(){return wHc(b)})},standalone:!1,features:[kg],decls:18,vars:10,consts:[["customRepeatedEnumSearchBox",""],["content",""],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search",1,"search-box",3,"click","input","placeholder"],["mat-dialog-content",
"",1,"search-results"],[3,"selectionChange","keydown.meta.enter","keydown.shift.enter","keydown.control.enter"],["checkboxPosition","before",3,"selected","value","height"],["type","button","mat-button","","mat-dialog-close","","tooltip","Close dialog","aria-label","Close dialog","role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["checkboxPosition","before",3,"selected","value"]],template:function(a,b){if(a&1){var c=
r();I(0,"header",2)(1,"h2");Q(2);J();I(3,"div",3);K(4,"mat-icon",4);I(5,"input",5,0);M("click",function(){t(c);var e=L(6);b.searchQuery$.next(e.value);return v()})("input",function(){t(c);var e=L(6);b.searchQuery$.next(e.value);return v()});J()()();I(7,"section",6,1)(9,"mat-selection-list",7);M("selectionChange",function(e){t(c);return v(b.changeSelection(e))})("keydown.meta.enter",function(){t(c);return v(b.usePreviousSelectedValues=!0)})("keydown.shift.enter",function(){t(c);return v(b.usePreviousSelectedValues=
!0)})("keydown.control.enter",function(){t(c);return v(b.usePreviousSelectedValues=!0)});Dg(10,zQa,2,5,"mat-list-option",8,Cg);S(12,"async");J()();I(13,"mat-dialog-actions")(14,"button",9);M("click",function(){t(c);return v(b.closeDialog())});Q(15," Cancel ");J();I(16,"button",10);M("click",function(){t(c);return v(wHc(b))});Q(17);J()()}if(a&2){z(2);R("Search for ",b.data.customFieldTitle);z(3);D("placeholder","Type to filter "+b.data.customFieldTitle+" values");ng("aria-label","Filter "+b.data.customFieldTitle+
" values");z(5);var d;Eg((d=T(12,8,b.matchedValues$))!=null?d:vHc(b));z(6);D("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);ng("aria-label",b.saveBtnTooltip);z();R(" ",b.saveBtnLabel," ")}},dependencies:[aB,PA,Tx,uK,wK,yK,xK,gM,pM,oM,YA,cB,Qv],styles:["[_nghost-%COMP%]     .mat-mdc-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-mdc-dialog-title{margin:0}[_nghost-%COMP%]     .mat-mdc-dialog-title::before{height:unset}[_nghost-%COMP%]     .mat-mdc-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .mat-mdc-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-mdc-list-item{font-size:.8125rem}[_nghost-%COMP%]     .mat-mdc-list-item .mat-mdc-list-item-unscoped-content{overflow-wrap:break-word;white-space:normal}"]});
var rM=function(){this.dialog=n(tK);this.dialogRef=null};rM.prototype.open=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1)return c={panelClass:"no-jitter",data:a,ariaLabel:"Custom repeated enum dialog"},b.dialogRef=b.dialog.open(qM,c),x(e,Ge(nK(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};rM.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};rM.\u0275fac=function(a){return new (a||rM)};
rM.\u0275prov=Sc({token:rM,factory:rM.\u0275fac,providedIn:"root"});var xHc=["unscopedContent"],yHc=["text"],zHc=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new yd("MatList");var sM=function(){mM.apply(this,arguments)};Y(sM,mM);sM.\u0275dir=mM.\u0275dir;sM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(sM)))(b||sM)}}();
sM.\u0275cmp=B({type:sM,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[hh([{provide:mM,useExisting:sM}]),kg],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],
encapsulation:2,changeDetection:0});var tM=function(){nM.apply(this,arguments);this._activated=!1};Y(tM,nM);tM.\u0275dir=nM.\u0275dir;tM.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};tM.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
ea.Object.defineProperties(tM.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=zi(a)}}});tM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(tM)))(b||tM)}}();
tM.\u0275cmp=B({type:tM,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,iM,5),Xg(c,hM,5),Xg(c,oHc,5));if(a&2){var d;$g(d=ah())&&(b._lines=d);$g(d=ah())&&(b._titles=d);$g(d=ah())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(Wg(xHc,5),Wg(yHc,5));if(a&2){var c;$g(c=ah())&&(b._unscopedContent=c.first);$g(c=ah())&&(b._itemText=c.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,b){a&
2&&(ng("aria-current",b._getAriaCurrent()),wg("mdc-list-item--activated",b.activated)("mdc-list-item--with-leading-avatar",b._avatars.length!==0)("mdc-list-item--with-leading-icon",b._icons.length!==0)("mdc-list-item--with-trailing-meta",b._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",b._hasBothLeadingAndTrailing())("_mat-animation-noopable",b._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[kg],ngContentSelectors:"[matListItemAvatar],[matListItemIcon] [matListItemTitle] [matListItemLine] * [matListItemMeta] mat-divider".split(" "),
decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(a,b){if(a&1){var c=r();Ng(zHc);Og(0);I(1,"span",1);Og(2,1);Og(3,2);I(4,"span",2,0);M("cdkObserveContent",function(){t(c);return v(b._updateItemLines(!0))});Og(6,3);J()();Og(7,4);Og(8,5);K(9,"div",3)}},dependencies:[xw],encapsulation:2,changeDetection:0});new yd("MatNavList");var uM=function(){};uM.\u0275fac=function(a){return new (a||uM)};uM.\u0275mod=Jf({type:uM});uM.\u0275inj=Tc({imports:[yw,zx,Mx,Nx,RL]});var vM=function(){};vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275mod=Jf({type:vM});vM.\u0275inj=Tc({imports:[uM]});var wM=function(){};wM.\u0275fac=function(a){return new (a||wM)};wM.\u0275mod=Jf({type:wM});wM.\u0275inj=Tc({imports:[ZB,Ly,$B,$K,vM,cC]});var AHc=new yd("GMAT_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var xM=function(){n(AHc).disableGmatStyle||n(XA).appendGmatPanelClass("gmat-mdc-autocomplete")};xM.\u0275fac=function(a){return new (a||xM)};xM.\u0275dir=Kf({type:xM,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1,features:[hh([XA,{provide:vx,useExisting:XA}])]});var BHc=new yd("GMAT_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var yM=function(a){this.options=a};yM.\u0275fac=function(a){return new (a||yM)(zf(BHc))};yM.\u0275dir=Kf({type:yM,selectors:[["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-checkbox",!b.options.disableGmatStyle)},standalone:!1});var CHc=["panel"],DHc=function(a,b){this.source=a;this.option=b},EHc=new yd("mat-autocomplete-default-options",{providedIn:"root",factory:CQa}),zM=function(){this._changeDetectorRef=n(qv);this._elementRef=n(ff);this._defaults=n(EHc);this._animationsDisabled=Hi();this._activeOptionChanges=ke.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=new hv;this.opened=new hv;this.closed=new hv;this.optionActivated=new hv;this.id=n(Gw).getId("mat-autocomplete-");n(ew);this.autoActiveFirstOption=
!!this._defaults.autoActiveFirstOption;this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption;this.requireSelection=!!this._defaults.requireSelection;var a;this._hideSingleSelectionIndicator=(a=this._defaults.hideSingleSelectionIndicator)!=null?a:!1};g=zM.prototype;g._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};g._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
g.ngAfterContentInit=function(){var a=this;this._keyManager=Iw(new Nw(this.options)).skipPredicate(this._skipPredicate);this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._activeOptionChanges.unsubscribe()};g._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};
g._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};g._setVisibility=function(){this.showPanel=!!this.options.length;this._changeDetectorRef.markForCheck()};g._emitSelectEvent=function(a){this.optionSelected.emit(new DHc(this,a))};g._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};g._skipPredicate=function(){return!1};
ea.Object.defineProperties(zM.prototype,{isOpen:{configurable:!0,enumerable:!0,get:function(){return this._isOpen&&this.showPanel}},classList:{configurable:!0,enumerable:!0,set:function(a){this._classList=a;this._elementRef.nativeElement.className=""}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncParentProperties()}}});zM.\u0275fac=function(a){return new (a||zM)};
zM.\u0275cmp=B({type:zM,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(Xg(c,Lx,5),Xg(c,edc,5));if(a&2){var d;$g(d=ah())&&(b.options=d);$g(d=ah())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(Wg(Tg,7),Wg(CHc,5));if(a&2){var c;$g(c=ah())&&(b.template=c.first);$g(c=ah())&&(b.panel=c.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,
"autoActiveFirstOption","autoActiveFirstOption",Dh],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Dh],requireSelection:[2,"requireSelection","requireSelection",Dh],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Dh],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Dh]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[hh([{provide:ddc,useExisting:zM}])],ngContentSelectors:["*"],decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(a){a&1&&(Ng(),C(0,BQa,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],
encapsulation:2,changeDetection:0});var FHc={provide:iy,useExisting:ld(function(){return AM}),multi:!0},GHc=new yd("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition()}}}),HHc={provide:GHc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},AM=function(){var a=this;this._environmentInjector=n(Ef);this._element=n(ff);this._overlay=n(vx);this._viewContainerRef=n(Ug);this._zone=n(ph);this._changeDetectorRef=
n(qv);this._dir=n(Qw,{optional:!0});this._formField=n(Hec,{optional:!0,host:!0});this._viewportRuler=n(ax);this._scrollStrategy=n(GHc);this._renderer=n(jv);this._animationsDisabled=Hi();this._defaults=n(EHc,{optional:!0});this._componentDestroyed=!1;this._initialized=new bg;this._manuallyFloatingLabel=!1;this._viewportSubscription=ke.EMPTY;this._breakpointObserver=n(tw);this._handsetLandscapeSubscription=ke.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new bg;this._windowBlurHandler=
function(){a._canOpenOnNextFocus=a.panelOpen||!a._hasFocus()};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._aboveClass="mat-mdc-autocomplete-panel-above";this._overlayAttached=!1;this.optionSelections=Oe(function(){var b=a.autocomplete?a.autocomplete.options:null;return b?b.changes.pipe(eg(b),fg(function(){return Ue.apply(null,p(b.map(function(c){return c.onSelectionChange})))})):a._initialized.pipe(fg(function(){return a.optionSelections}))});
this._handlePanelKeydown=function(b){if(b.keyCode===27&&!ri(b)||b.keyCode===38&&ri(b,"altKey")){if(a._pendingAutoselectedOption){var c;a._updateNativeInputValue((c=a._valueBeforeAutoSelection)!=null?c:"");a._pendingAutoselectedOption=null}a._closeKeyEventStream.next();a._resetActiveItem();b.stopPropagation();b.preventDefault()}};this._trackedModal=null};
AM.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};AM.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};
AM.prototype.ngOnDestroy=function(){var a;(a=this._cleanupWindowBlur)==null||a.call(this);this._handsetLandscapeSubscription.unsubscribe();this._viewportSubscription.unsubscribe();this._componentDestroyed=!0;this._destroyPanel();this._closeKeyEventStream.complete();this._clearFromModal()};
var Ikb=function(a){a._resetLabel();a._overlayAttached&&(a.panelOpen&&a._zone.run(function(){a.autocomplete.closed.emit()}),a.autocomplete._latestOpeningTrigger===a&&(a.autocomplete._isOpen=!1,a.autocomplete._latestOpeningTrigger=null),a._overlayAttached=!1,a._pendingAutoselectedOption=null,a._overlayRef&&a._overlayRef.hasAttached()&&(a._overlayRef.detach(),a._closingActionsSubscription.unsubscribe()),a._updatePanelState(),a._componentDestroyed||a._changeDetectorRef.detectChanges(),a._trackedModal&&
Di(a._trackedModal,"aria-owns",a.autocomplete.id))};g=AM.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return new pe(function(b){var c=function(e){var f=xi(e),h=a._formField?a._formField.getConnectedOverlayOrigin().nativeElement:null,k=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;!a._overlayAttached||f===a._element.nativeElement||a._hasFocus()||h&&h.contains(f)||k&&k.contains(f)||!a._overlayRef||a._overlayRef.overlayElement.contains(f)||b.next(e)},d=[a._renderer.listen("document","click",c),a._renderer.listen("document","auxclick",c),a._renderer.listen("document",
"touchend",c)];return function(){d.forEach(function(e){return e()})}})};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=ri(a);b!==27||c||a.preventDefault();this._valueOnLastKeydown=this._element.nativeElement.value;if(this.activeOption&&b===13&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=b===38||b===40;if(b===9||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown);
if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
g._handleInput=function(a){var b=a.target;a=b.value;b.type==="number"&&(a=a==""?null:parseFloat(a));if(this._previousValue!==a){this._previousValue=a;this._pendingAutoselectedOption=null;this.autocomplete&&this.autocomplete.requireSelection||this._onChange(a);if(!a)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){var c;if(b=(c=this.autocomplete.options)==null?void 0:c.find(function(e){return e.selected}))c=this._getDisplayValue(b.value),a!==c&&
b.deselect(!1)}if(this._canOpen()&&this._hasFocus()){var d;a=(d=this._valueOnLastKeydown)!=null?d:this._element.nativeElement.value;this._valueOnLastKeydown=null;this._openPanelInternal(a)}}};g._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};g._handleClick=function(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()};
g._hasFocus=function(){return wi()===this._element.nativeElement};g._floatLabel=function(a){this._formField&&this._formField.floatLabel==="auto"&&((a===void 0?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};g._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=new pe(function(d){$e(function(){d.next()},{injector:a._environmentInjector})}),c=this.autocomplete.options.changes.pipe(hg(function(){return Occ(a._positionStrategy)}),Wf(0));return Ue(b,c).pipe(fg(function(){return a._zone.run(function(){var d=a.panelOpen;a._resetActiveItem();a._updatePanelState();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();d!==a.panelOpen&&(a.panelOpen?a._emitOpened():a.autocomplete.closed.emit());
return a.panelClosingActions})}),Uf()).subscribe(function(d){return a._setValueAndClose(d)})};g._emitOpened=function(){this.autocomplete.opened.emit()};g._destroyPanel=function(){this._overlayRef&&(Ikb(this),this._overlayRef.dispose(),this._overlayRef=null)};g._getDisplayValue=function(a){var b=this.autocomplete;return b&&b.displayWith?b.displayWith(a):a};
g._assignOptionValue=function(a){var b=this._getDisplayValue(a);a==null&&this._clearPreviousSelectedOption(null,!1);this._updateNativeInputValue(b!=null?b:"")};g._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
g._setValueAndClose=function(a){var b=this.autocomplete;(a=a?a.source:this._pendingAutoselectedOption)?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),b._emitSelectEvent(a),this._element.nativeElement.focus()):b.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null));Ikb(this)};
g._clearPreviousSelectedOption=function(a,b){var c,d;(c=this.autocomplete)==null||(d=c.options)==null||d.forEach(function(e){e!==a&&e.selected&&e.deselect(b)})};g._openPanelInternal=function(a){a=a===void 0?this._element.nativeElement.value:a;this._attachOverlay(a);this._floatLabel();this._trackedModal&&Joa(this._trackedModal,"aria-owns",this.autocomplete.id)};
g._attachOverlay=function(a){var b=this,c=this._overlayRef;if(c)this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()});else{var d;this._portal=new px(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=this._overlay.create(this._getOverlayConfig());this._viewportSubscription=this._viewportRuler.change().subscribe(function(){b.panelOpen&&c&&c.updateSize({width:b._getPanelWidth()})});
this._handsetLandscapeSubscription=this._breakpointObserver.observe("(max-width: 959.98px) and (orientation: landscape)").subscribe(function(f){f.matches?ix(Qcc(jx(b._positionStrategy,!0),!0),8):ix(Qcc(jx(b._positionStrategy,!1),!1),0)})}c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=a,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());a=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0;this.autocomplete._latestOpeningTrigger=
this;var e;this.autocomplete._setColor((e=this._formField)==null?void 0:e.color);this._updatePanelState();this._applyModalPanelOwnership();this.panelOpen&&a!==this.panelOpen&&this._emitOpened()};
g._updatePanelState=function(){this.autocomplete._setVisibility();if(this.panelOpen){var a=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=a.keydownEvents().subscribe(this._handlePanelKeydown));this._outsideClickSubscription||(this._outsideClickSubscription=a.outsidePointerEvents().subscribe())}else{(a=this._keydownSubscription)==null||a.unsubscribe();var b;(b=this._outsideClickSubscription)==null||b.unsubscribe();this._keydownSubscription=this._outsideClickSubscription=null}};
g._getOverlayConfig=function(){var a,b,c,d;return new ex({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:(d=this._dir)!=null?d:void 0,hasBackdrop:(a=this._defaults)==null?void 0:a.hasBackdrop,backdropClass:(b=this._defaults)==null?void 0:b.backdropClass,panelClass:(c=this._defaults)==null?void 0:c.overlayPanelClass,disableAnimations:this._animationsDisabled})};
g._getOverlayPosition=function(){var a=Rcc(jx(mx(this._overlay.position(),this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
g._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"}];b=this.position==="above"?c:this.position==="below"?b:[].concat(p(b),p(c));hx(a,b)};
g._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element};g._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};g._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
g._resetActiveItem=function(){var a=this.autocomplete;if(a.autoActiveFirstOption){for(var b=-1,c=0;c<a.options.length;c++)if(!a.options.get(c).disabled){b=c;break}a._keyManager.setActiveItem(b)}else a._keyManager.setActiveItem(-1)};g._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this.autocompleteDisabled};
g._scrollToOption=function(a){var b=this.autocomplete,c=apa(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(bpa(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&Di(this._trackedModal,"aria-owns",b);Joa(a,"aria-owns",b);this._trackedModal=a}};g._clearFromModal=function(){this._trackedModal&&(Di(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
ea.Object.defineProperties(AM.prototype,{panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},panelClosingActions:{configurable:!0,enumerable:!0,get:function(){var a=this;return Ue(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ve(function(){return a._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(Ve(function(){return a._overlayAttached})):
Ce()).pipe(y(function(b){return b instanceof udc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});AM.\u0275fac=function(a){return new (a||AM)};
AM.\u0275dir=Kf({type:AM,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&M("focusin",function(){return b._handleFocus()})("blur",function(){return b._onTouched()})("input",function(c){return b._handleInput(c)})("keydown",function(c){return b._handleKeydown(c)})("click",function(){return b._handleClick()});a&2&&ng("autocomplete",b.autocompleteAttribute)("role",b.autocompleteDisabled?
null:"combobox")("aria-autocomplete",b.autocompleteDisabled?null:"list")("aria-activedescendant",b.panelOpen&&b.activeOption?b.activeOption.id:null)("aria-expanded",b.autocompleteDisabled?null:b.panelOpen.toString())("aria-controls",b.autocompleteDisabled||!b.panelOpen?null:b.autocomplete==null?null:b.autocomplete.id)("aria-haspopup",b.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo",
"connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Dh]},exportAs:["matAutocompleteTrigger"],features:[hh([FHc]),Uu]});var BM=function(){};BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275mod=Jf({type:BM});BM.\u0275inj=Tc({providers:[HHc],imports:[yx,Ox,zx,bx,Ox,zx]});var IHc=new yd("mat-checkbox-default-options",{providedIn:"root",factory:DQa});var JHc=["input"],KHc=["label"],LHc=function(){},MHc=DQa(),CM=function(){this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._ngZone=n(ph);this._animationsDisabled=Hi();this._options=n(IHc,{optional:!0});this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",
indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};this.ariaLabel="";this.ariaLabelledby=null;this.labelPosition="after";this.name=null;this.change=new hv;this.indeterminateChange=new hv;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._indeterminate=this._disabled=this._checked=!1;n(kw).load(Gx);var a=n(new Vu("tabindex"),{optional:!0});this._options=
this._options||MHc;this.color=this._options.color||MHc.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=n(Gw).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};g=CM.prototype;g.focus=function(){this._inputElement.nativeElement.focus()};g._createChangeEvent=function(a){var b=new LHc;b.source=this;b.checked=a;return b};
g._getAnimationTargetElement=function(){var a;return(a=this._inputElement)==null?void 0:a.nativeElement};g.ngOnChanges=function(a){a.required&&this._validatorChangeFn()};g.ngAfterViewInit=function(){this._syncIndeterminate(this._indeterminate)};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};
g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};g.registerOnValidatorChange=function(a){this._validatorChangeFn=a};
g._transitionCheckState=function(a){var b=this._currentCheckState,c=this._getAnimationTargetElement();if(b!==a&&c&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};g._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};g.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
g._handleInputClick=function(){var a=this,b,c=(b=this._options)==null?void 0:b.clickAction;if(!this.disabled&&c!=="noop")this.indeterminate&&c!=="check"&&Promise.resolve().then(function(){a._indeterminate=!1;a.indeterminateChange.emit(a._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent();else if(this.disabled&&this.disabledInteractive||!this.disabled&&c==="noop")this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=
this.indeterminate};g._onInteractionEvent=function(a){a.stopPropagation()};g._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
g._getAnimationClassForCheckStateTransition=function(a,b){if(this._animationsDisabled)return"";switch(a){case 0:if(b===1)return this._animationClasses.uncheckedToChecked;if(b==3)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return b===1?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return b===2?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;
case 3:return b===1?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""};g._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};g._onInputClick=function(){this._handleInputClick()};g._onTouchTargetClick=function(){this._handleInputClick();this.disabled||this._inputElement.nativeElement.focus()};g._preventBubblingFromLabel=function(a){a.target&&this._labelElement.nativeElement.contains(a.target)&&a.stopPropagation()};
ea.Object.defineProperties(CM.prototype,{inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}},indeterminate:{configurable:!0,
enumerable:!0,get:function(){return this._indeterminate},set:function(a){var b=a!=this._indeterminate;this._indeterminate=a;b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});CM.\u0275fac=function(a){return new (a||CM)};
CM.\u0275cmp=B({type:CM,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(Wg(JHc,5),Wg(KHc,5));if(a&2){var c;$g(c=ah())&&(b._inputElement=c.first);$g(c=ah())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Ig("id",b.id),ng("tabindex",null)("aria-label",null)("aria-labelledby",null),xg(b.color?"mat-"+b.color:"mat-accent"),wg("_mat-animation-noopable",b._animationsDisabled)("mdc-checkbox--disabled",b.disabled)("mat-mdc-checkbox-disabled",
b.disabled)("mat-mdc-checkbox-checked",b.checked)("mat-mdc-checkbox-disabled-interactive",b.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",Dh],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",Dh],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:Eh(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dh],checked:[2,"checked","checked",Dh],disabled:[2,"disabled","disabled",Dh],indeterminate:[2,"indeterminate","indeterminate",Dh]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[hh([{provide:iy,useExisting:ld(function(){return CM}),multi:!0},
{provide:jy,useExisting:CM,multi:!0}]),Uu],ngContentSelectors:["*"],decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",
"aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",3);M("click",function(d){t(c);return v(b._preventBubblingFromLabel(d))});I(1,"div",4,0)(3,"div",5);M("click",function(){t(c);
return v(b._onTouchTargetClick())});J();I(4,"input",6,1);M("blur",function(){t(c);return v(b._onBlur())})("click",function(){t(c);return v(b._onInputClick())})("change",function(d){t(c);return v(b._onInteractionEvent(d))});J();K(6,"div",7);I(7,"div",8);Vd();I(8,"svg",9);K(9,"path",10);J();Wd();K(10,"div",11);J();K(11,"div",12);J();I(12,"label",13,2);Og(14);J()()}a&2&&(a=L(2),D("labelPosition",b.labelPosition),z(4),wg("mdc-checkbox--selected",b.checked),D("checked",b.checked)("indeterminate",b.indeterminate)("disabled",
b.disabled&&!b.disabledInteractive)("id",b.inputId)("required",b.required)("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex),ng("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby)("aria-checked",b.indeterminate?"mixed":null)("aria-controls",b.ariaControls)("aria-disabled",b.disabled&&b.disabledInteractive?!0:null)("aria-expanded",b.ariaExpanded)("aria-owns",b.ariaOwns)("name",b.name)("value",b.value),z(7),D("matRippleTrigger",a)("matRippleDisabled",
b.disableRipple||b.disabled)("matRippleCentered",!0),z(),D("for",b.inputId))},dependencies:[Jx,Hx],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var DM=function(){var a=this;this.showPlaceholder=!1;this.customFieldTitle="";this.allowMultiSelect=!1;this.selectedValues=[];this.allowedValues=[];this.disabled=!1;this.onValueChange=new LA;this.onApplyChanges=new LA;this.onCancelChanges=new LA;this.searchQuery$=new bg;this.hasPendingChanges=!1;this.selectedValuesMap={};this.oldSelectedValuesMap={};this.suggestedValues$=this.searchQuery$.pipe(Sf(300),Xf(),y(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return Da(d.toLowerCase(),
c)})}))};g=DM.prototype;g.ngOnInit=function(){Rqa(this.selectedValuesMap);for(var a=l(this.allowedValues),b=a.next();!b.done;b=a.next())b=b.value,this.selectedValuesMap[b]=this.selectedValues.includes(b);this.oldSelectedValuesMap=Object.assign({},this.selectedValuesMap);this.hasPendingChanges=!1};g.ngAfterViewInit=function(){};g.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
g.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};g.search=function(a){this.searchQuery$.next(a)};g.handleSelectionChange=function(){this.hasPendingChanges=!Pj(this.oldSelectedValuesMap,this.selectedValuesMap)};g.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var HQa=function(a,b){a.allowMultiSelect?(b=Object.keys(Ti(a.selectedValuesMap,function(c){return c})),a.onApplyChanges.emit(b)):a.onValueChange.emit(b==null?void 0:b.option.value)};DM.prototype.cancel=function(){this.onCancelChanges.emit()};DM.\u0275fac=function(a){return new (a||DM)};
DM.\u0275cmp=B({type:DM,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&Wg(AM,7);if(a&2){var c;$g(c=ah())&&(b.autocompleteTrigger=c.first)}},inputs:{showPlaceholder:"showPlaceholder",customFieldTitle:"customFieldTitle",currentInputValue:"currentInputValue",allowMultiSelect:"allowMultiSelect",selectedValues:"selectedValues",allowedValues:"allowedValues",disabled:"disabled"},outputs:{onValueChange:"onValueChange",onApplyChanges:"onApplyChanges",onCancelChanges:"onCancelChanges"},
standalone:!1,decls:8,vars:9,consts:[["customRepeatedEnumPicker",""],["auto","matAutocomplete"],["id","custom-repeated-enum-picker","type","text","autocomplete","off","aria-label","Custom repeated enum field selection",3,"click","input","keydown.space","placeholder","ngModel","disabled","matAutocomplete"],[3,"optionSelected","hideSingleSelectionIndicator"],[1,"custom-repeated-enum-search-result",3,"value"],[1,"action-buttons"],[3,"checked"],[1,"custom-repeated-enum-suggestion"],[3,"click","change",
"checked"],["mat-flat-button","","type","submit",1,"small","action-button",3,"click","keydown.enter","disabled"],["svgIcon","done",1,"icon-s"],["mat-stroked-button","","type","button",1,"small","action-button",3,"click","keydown.esc"],["svgIcon","close",1,"icon-s"]],template:function(a,b){if(a&1){var c=r();I(0,"input",2,0);M("click",function(){t(c);var e=L(1);return v(b.search(e.value))})("input",function(){t(c);var e=L(1);return v(b.search(e.value))})("keydown.space",function(e){t(c);return v(b.onSpace(e))});
J();I(2,"mat-autocomplete",3,1);M("optionSelected",function(e){t(c);return v(HQa(b,e))});Dg(4,GQa,3,2,"mat-option",4,Cg);S(6,"async");J();E(7,IQa,5,5,"div",5)}if(a&2){a=L(3);D("placeholder",b.getPlaceholder())("ngModel",b.currentInputValue)("disabled",b.disabled)("matAutocomplete",a);ng("aria-disabled",b.disabled);z(2);D("hideSingleSelectionIndicator",!0);z(2);var d;Eg((d=T(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);z(3);F(b.allowMultiSelect?7:-1)}},dependencies:[aB,
xM,zM,Lx,AM,Li,oy,vy,PA,Tx,yM,CM,Qv],styles:[".custom-repeated-enum-search-result.mat-mdc-option[_ngcontent-%COMP%]{line-height:normal;min-height:32px;padding:0 8px}.custom-repeated-enum-search-result.mat-mdc-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.custom-repeated-enum-search-result[_ngcontent-%COMP%]   .mat-mdc-checkbox[_ngcontent-%COMP%]{overflow-wrap:anywhere}.custom-repeated-enum-search-result[_ngcontent-%COMP%]   .custom-repeated-enum-suggestion[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:normal}.action-buttons[_ngcontent-%COMP%]{display:inline-block;line-height:30px;padding-left:8px}.action-buttons[_ngcontent-%COMP%]   button.gmat-mdc-button.action-button[_ngcontent-%COMP%]{min-width:0;width:28px;padding:0 4px;margin-right:4px}@media(forced-colors: active){.action-buttons[_ngcontent-%COMP%]   button.gmat-mdc-button.action-button[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}}"],
changeDetection:0});var EM=function(){};EM.\u0275fac=function(a){return new (a||EM)};EM.\u0275mod=Jf({type:EM});EM.\u0275inj=Tc({imports:[BM]});var FM=function(){};FM.\u0275fac=function(a){return new (a||FM)};FM.\u0275mod=Jf({type:FM});FM.\u0275inj=Tc({imports:[CM,zx,zx]});var GM=function(){};GM.\u0275fac=function(a){return new (a||GM)};GM.\u0275mod=Jf({type:GM});GM.\u0275inj=Tc({providers:[{provide:IHc,useValue:{color:"primary"}}],imports:[FM]});var HM=function(){};HM.\u0275fac=function(a){return new (a||HM)};HM.\u0275mod=Jf({type:HM});HM.\u0275inj=Tc({imports:[ZB,EM,Ly,$B,GM]});var NHc=0,IM=function(){Z.call(this);var a=this;this.teamsService=n(yG);this.ROUTES=Fq;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new LA;this.linkBlurred=new LA;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new ag(1);this.teamLinkId="b-team-link-content-"+NHc;this.fetchedTeam$=this.providedTeamId$.pipe(Xf(),Ve(function(b){return b!=="0"}),fg(function(b){return zG(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(y(function(){return!0}),
eg(!1));this.fetchedTeam$.pipe(gg(this.destroyed$)).subscribe(function(b){a.teamName=b.name;a.teamDescription=b.description;a.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+b.teamId});NHc++};Y(IM,Z);IM.\u0275dir=Z.\u0275dir;IM.prototype.ngOnInit=function(){};IM.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};IM.prototype.trackClick=function(a){Po("teamCard","click",a,1)};
IM.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};IM.\u0275fac=function(a){return new (a||IM)};
IM.\u0275cmp=B({type:IM,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},standalone:!1,features:[kg,Uu],decls:21,vars:9,consts:[["role","dialog","aria-label","Team hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"flex-kids-x"],["alt","Team logo"],[1,"flex-kids-y","margin-s-left",
"margin-s-bottom"],[1,"type-m"],["svgIcon","supervisor_account_24px",1,"icon-xxs"],[1,"type-s","id-text"],[1,"card-description"],[1,"flex-kids-y","padded-s-top","hovercard-action-container"],["aria-label","View team settings",3,"click","routerLink"],["type","button","mat-button","",1,"primary","hovercard-action"],["target","_blank","aria-label","View team in Moma",3,"click","href"],["type","button","mat-button","",1,"gmat-button","primary","hovercard-action"],["svgIcon","pop-out",1,"icon-xxs"],["aria-label",
"View team association on component",3,"href"],["aria-label","View team association on component",3,"click","href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2),K(3,"img",3),I(4,"div",4)(5,"div",5),K(6,"mat-icon",6),Q(7),J(),I(8,"div",7),Q(9),J()()(),I(10,"p",8),Q(11),J(),I(12,"div",9)(13,"a",10),M("click",function(){return b.trackClick("viewTeamSettingsPage")}),I(14,"button",11),Q(15,"View team settings"),J()(),I(16,"a",12),M("click",function(){return b.trackClick("viewTeamInMoma")}),
I(17,"button",13),Q(18,"View team in Moma "),K(19,"mat-icon",14),J()(),E(20,JQa,3,1,"a",15),J()()());a&2&&(z(3),ng("src",b.teamLogoUrl,uf),z(4),R(" Team: ",b.teamName," "),z(2),R("Team ID: ",b.teamId),z(2),ch(b.teamDescription),z(2),Pg("routerLink","/teams/",b.teamId,"/edit"),z(3),Pg("href","https://moma.corp.google.com/team/",b.teamId,"",uf),z(4),F(b.componentId?20:-1))},dependencies:[aB,FA,PA,Tx],styles:[".card-description[_ngcontent-%COMP%]{line-height:1.3em;margin-bottom:.5em;margin-top:.25em;max-height:13em;overflow-x:hidden;overflow-y:scroll;text-overflow:ellipsis;white-space:pre-wrap;word-break:break-word}mat-icon[_ngcontent-%COMP%]{vertical-align:middle}img[_ngcontent-%COMP%]{flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.hovercard-action-container[_ngcontent-%COMP%]{align-items:flex-start}.hovercard-action-container[_ngcontent-%COMP%]   .hovercard-action[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});var JM=function(){};JM.\u0275fac=function(a){return new (a||JM)};JM.\u0275mod=Jf({type:JM});JM.\u0275inj=Tc({imports:[ZB,$B]});var OHc=0,KM=function(){Z.call(this);var a=this;this.teamsService=n(yG);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new ag(1);this.teamLinkId="b-team-link-content-"+OHc++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(Xf(),Ve(function(b){return b!=="0"}),fg(function(b){return zG(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(y(function(){return!0}),eg(!1));this.fetchedTeam$.pipe(gg(this.destroyed$)).subscribe(function(b){a.teamName=
b.name})};Y(KM,Z);KM.\u0275dir=Z.\u0275dir;KM.prototype.ngOnInit=function(){};KM.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};KM.prototype.trackClick=function(a){Po("teamCard","click",a,1)};KM.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};KM.\u0275fac=function(a){return new (a||KM)};
KM.\u0275cmp=B({type:KM,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},standalone:!1,features:[kg,Uu],decls:7,vars:5,consts:[["card","onedevHovercard"],[3,"componentId","teamId"],["target","_blank",1,"card-anchor","keep-focus-ring",3,"href","onedevHovercardTrigger"],[3,"onedevHovercardTrigger"],["target","_blank",1,"card-anchor","keep-focus-ring",3,"click",
"href","onedevHovercardTrigger"],["svgIcon","pop-out",1,"icon-xs"],[1,"animated-loading-bar"]],template:function(a,b){a&1&&(E(0,MQa,2,2),S(1,"async"),Ag(2,PQa,2,2),I(3,"onedev-hovercard",null,0),Fg(5),K(6,"b-team-card",1),Gg(),J());a&2&&(F(b.teamId!="0"&&T(1,3,b.isTeamFetched$)?0:2),z(6),D("componentId",b.componentId==null?null:b.componentId.toString())("teamId",b.teamId.toString()))},dependencies:[aB,fJ,lJ,IM,Qv],encapsulation:2});var LM=function(){};LM.\u0275fac=function(a){return new (a||LM)};LM.\u0275mod=Jf({type:LM});LM.\u0275inj=Tc({imports:[ZB,WJ,JM]});var PHc=0,MM=function(){this.elementRef=n(ff);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.counter=PHc++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};MM.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
ea.Object.defineProperties(MM.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titleWhenCollapsed=this.titleWhenExpanded=a},get:function(){return this.isExpanded?this.titleWhenExpanded:this.titleWhenCollapsed}},expandedState:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?"expanded":"collapsed"}}});MM.\u0275fac=function(a){return new (a||MM)};
MM.\u0275cmp=B({type:MM,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",title:"title"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:12,consts:[[1,"collapsible-panel"],["type","button","aria-label","collapsible panel",1,"title-bar","unstyled-button",3,"click","mouseup"],["size","small",1,"icon",3,"name"],[1,"title"],
[1,"horizontal-line"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"button",1),M("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),E(2,QQa,1,1,"b-icon",2),E(3,RQa,2,1,"span",3),E(4,SQa,2,0,"div",4),K(5,"mat-icon",5),J(),I(6,"div",6),Og(7),J()());a&2&&(z(),wg("compact",b.hasCompactTitleBar),ng("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",
b.id),z(),F(b.iconName?2:-1),z(),F(b.hasCompactTitleBar&&b.isExpanded?-1:3),z(),F(b.hasCompactTitleBar?4:-1),z(),D("@expandCollapseIcon",b.expandedState),z(),D("@expandCollapseContent",b.expandedState),ng("id",b.id)("aria-labelledby",b.headerId))},dependencies:[aB,CL],styles:['.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:row;padding:4px 4px 4px 7px;margin:6px 0px 6px 12px;width:calc(100% - 18px);border-radius:4px;transition:200ms background-color}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]:focus{background-color:#e8f0fe;background-color:var(--primary-c50)}.collapsible-panel[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:1}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);padding:0;margin:0;font-size:.75rem;letter-spacing:.025em;width:100%}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:0;margin-left:3px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{min-width:20px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .horizontal-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--text-disabled);flex-grow:1;height:.8vh;margin-left:8px;margin-right:10px}.collapsible-panel[_ngcontent-%COMP%]   .compact[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{margin-right:-3px}.collapsible-panel[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[tLa("expandCollapseContent",[eq("expanded",dq({height:"*",visibility:"visible"})),eq("collapsed",dq({height:"0",visibility:"hidden"})),fq("expanded <=> collapsed",[cq("200ms")])]),tLa("expandCollapseIcon",[eq("expanded",dq({transform:"rotate(-180deg)"})),eq("collapsed",dq({transform:"*"})),fq("expanded <=> collapsed",[cq("200ms")])])]}});var NM=function(){};NM.\u0275fac=function(a){return new (a||NM)};NM.\u0275mod=Jf({type:NM});NM.\u0275inj=Tc({imports:[ZB,EL]});var QHc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],RHc=function(){};RHc.\u0275fac=function(a){return new (a||RHc)};RHc.\u0275dir=Kf({type:RHc,selectors:[["xap-dialog-layout-subtitle"]]});var OM=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new ag;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
OM.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){SHc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});THc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};OM.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var SHc=function(a){if(!window.ResizeObserver)return Ce(UHc(a.el.nativeElement));var b;return Uga(function(c){b=new ResizeObserver(function(){c(UHc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(Xf(),gg(a.destroyed))},THc=function(a){return Qe(a.el.nativeElement,"scroll").pipe(TQa(),y(function(){return a.getScrollPosition(a.el.nativeElement)}),Xf(),gg(a.destroyed))},UHc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
OM.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};ea.Object.defineProperties(OM.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});OM.\u0275fac=function(a){return new (a||OM)(zf(ff),zf(qv),zf(ph))};
OM.\u0275dir=Kf({type:OM,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&wg("xap-dialog-layout-content-scrollable",b.scrollable)("xap-dialog-layout-bottom-scroll-stroke",b.scrollPosition!=="bottom")("xap-dialog-layout-top-scroll-stroke",b.scrollPosition!=="top")}});var PM=function(){};PM.\u0275fac=function(a){return new (a||PM)};
PM.\u0275cmp=B({type:PM,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&Xg(c,RHc,4);if(a&2){var d;$g(d=ah())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&wg("xap-dialog-layout-bordered-header",b.subtitle)},ngContentSelectors:["xap-dialog-layout-title","xap-dialog-layout-subtitle","xap-dialog-layout-content","xap-dialog-layout-actions"],decls:5,vars:0,consts:[[1,"xap-dialog-header-container"]],template:function(a){a&1&&(Ng(QHc),
I(0,"header",0),Og(1),Og(2,1),J(),Og(3,2),Og(4,3))},styles:[".xap-dialog-layout{display:block;padding:24px 24px 8px;overflow-x:hidden}xap-dialog-layout-title{display:block;padding:0;color:var(--xap-dialog-layout-title-text-color)}xap-dialog-layout-subtitle{display:block;padding:0 0 16px;color:var(--xap-dialog-layout-subtitle-text-color)}xap-dialog-layout-content{display:block;padding:0 0 16px;color:var(--xap-dialog-layout-content-text-color)}xap-dialog-layout-actions{color:var(--xap-dialog-layout-actions-text-color)}xap-dialog-layout-actions .mat-button-base,xap-dialog-layout-actions .mat-mdc-button-base{margin:8px 16px 0 -8px;padding:0 8px}"],
encapsulation:2});var QM=function(){};QM.\u0275fac=function(a){return new (a||QM)};QM.\u0275mod=Jf({type:QM});QM.\u0275inj=Tc({});var VHc=dq({opacity:0}),WHc=dq({opacity:1}),XHc=tLa("dialogContainer",[eq("void, hidden",VHc),eq("visible",WHc),fq("void => *, * => visible",cq("200ms cubic-bezier(0.0,0.0,0.2,1)",WHc)),fq("* => void, * => hidden",cq("200ms cubic-bezier(0.4,0.0,0.2,1)",VHc))]);var YHc=new yd("XAP_IDCO"),RM=function(){qx.apply(this,arguments);this.animationState="hidden";this.options=n(YHc);this.changeDetector=n(qv)};Y(RM,qx);RM.prototype.ngAfterViewInit=function(){};RM.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};RM.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};var ZHc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
RM.\u0275fac=function(){var a;return function(b){return(a||(a=fe(RM)))(b||RM)}}();
RM.\u0275cmp=B({type:RM,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&Wg(tx,7);if(a&2){var c;$g(c=ah())&&(b.portalOutlet=c.first)}},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(bla("@dialogContainer",b.animationState),ng("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex))},features:[kg],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&
1&&(I(0,"div"),C(1,UQa,1,0,"ng-template",0),J())},dependencies:[Aw,ux,tx],styles:[".xap-inline-dialog-container{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;overflow:auto}"],encapsulation:2,data:{animation:[XHc]},changeDetection:0});var $Hc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:8},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:8}],aIc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},SM=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=aIc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new hv;this.opened=new hv;this.closed=new hv;this.destroyed=new ag;this.openStatusChange=new tj(!1);this.openings=this.openStatusChange.pipe(Ve(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=n(ph);this.overlay=n(vx);this.elementRef=n(ff);this.viewContainerRef=n(Ug);this.document=n(Ei);this.focusTrapFactory=
n(Fw);this.ariaDescriber=n(Bw);this.injector=n(Ze);bIc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);cIc(this,this.elementRef.nativeElement)};SM.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||mcc(this.ariaDescriber,a,this.triggerDescription)};
SM.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var bIc=function(a,b){a.ngZone.runOutsideAngular(function(){Qe(b,"keydown").pipe(gg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();c.preventDefault();break;case 32:c.preventDefault()}});Qe(b,"keyup").pipe(gg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},cIc=function(a,b){a.ngZone.runOutsideAngular(function(){Qe(b,"focus").pipe(Ve(function(){return a.beforeOpened.observers.length>0}),gg(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
g=SM.prototype;
g.openDialog=function(){var a=this;if(!this.disabled){var b;if((b=this.overlayRef)==null||!b.hasAttached()){var c=this.portal;c!=null&&(this.stackManager&&(this.stackLocation=this.stackManager.register()),this.ngZone.run(function(){a.dialogContainerRef=dIc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);ZHc(a.dialogContainerRef.instance,!0);a.opened.observers.length&&setTimeout(function(){a.opened.emit()},
200)}))}}};g.closeDialog=function(){var a=this,b;(b=this.overlayRef)==null||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(ZHc(this.dialogContainerRef.instance,!1),setTimeout(function(){a.ngZone.run(function(){a.overlayRef&&a.overlayRef.detach();a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0);a.restoreFocus();a.dialogContainerRef&&(a.dialogContainerRef.destroy(),a.dialogContainerRef=void 0);a.closed.emit()})},200))};
g.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;if(this.forceTrapFocus||b&&b===c)this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),nw(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};g.focusInitialElement=function(){this.focusTrap&&fcc(this.focusTrap).then(function(){})};
g.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&typeof a.focus==="function"){var b,c=(b=this.dialogContainerRef)==null?void 0:b.location.nativeElement;(b=this.document.activeElement)&&c!=null&&c.contains(b)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};g.createPositionStrategy=function(a){var b,c;return hx(mx(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var eIc=function(a){var b=a.overlay.scrollStrategies;switch(a.scrollStrategy){case "noop":return b.noop();case "block":return b.block();case "reposition":return b.reposition();default:return b.close()}},dIc=function(a){var b=zh({parent:a.injector,providers:[{provide:YHc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new ox(RM,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig($Hc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&Lcc(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
ea.Object.defineProperties(SM.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof Tg?new px(a,this.viewContainerRef):new ox(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&this.closeDialog()},get:function(){return this.disabledInternal}},disableAutoFocus:{configurable:!0,enumerable:!0,set:function(a){this.disableAutoFocusInternal=zi(a)},get:function(){return this.disableAutoFocusInternal}},panelClass:{configurable:!0,
enumerable:!0,set:function(a){if(this.panelClassInternal!==a){if(this.panelClassInternal){var b;(b=this.overlayRef)==null||b.removePanelClass(this.panelClassInternal)}if(a){var c;(c=this.overlayRef)==null||c.addPanelClass(a)}this.panelClassInternal=a}}}});SM.\u0275fac=function(a){return new (a||SM)};
SM.\u0275dir=Kf({type:SM,hostVars:1,hostBindings:function(a,b){a&2&&ng("data-disabled",b.disabled)},inputs:{attachedTo:"attachedTo",dialogLabel:"dialogLabel",dialogTabIndex:"dialogTabIndex",overlaySize:"overlaySize",overlayPositions:"overlayPositions",overlayDimensions:"overlayDimensions",triggerDescription:"triggerDescription",disableAutoFocus:"disableAutoFocus",forceTrapFocus:"forceTrapFocus",panelClass:"panelClass",scrollStrategy:"scrollStrategy",stackManager:"stackManager"},outputs:{beforeOpened:"beforeOpened",
opened:"opened",closed:"closed"}});var TM=function(){SM.call(this);this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(TM,SM);g=TM.prototype;g.ngOnInit=function(){SM.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(gg(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(Ve(function(b){return b&&a.beforeOpened.observers.length>0}),eka(function(){return a.openStatusChange.pipe(Ve(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){Qe(a,"mouseenter").pipe(gg(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});Qe(a,"click").pipe(gg(b.destroyed)).subscribe(function(d){d.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;(c=b.overlayRef)==null||c.backdropClick().pipe(gg(b.destroyed)).subscribe(function(){b.closingDialog()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){Qe(a,"keyup").pipe(gg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:b.closingDialog();break;case 32:d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});Qe(a,"keydown").pipe(gg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 13:d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};
g.closingDialog=function(){this.openStatusChange.next(!1)};g.createOverlayConfig=function(a){return new ex(Object.assign({},this.overlayDimensions,{positionStrategy:SM.prototype.createPositionStrategy.call(this,a),scrollStrategy:eIc(this),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};TM.\u0275fac=function(a){return new (a||TM)};
TM.\u0275dir=Kf({type:TM,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:[0,"xapInlineDialogClick","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[kg]});var UM=function(){SM.call(this);this.hoverDelayMs=500;this.activity=new bg;this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(UM,SM);g=UM.prototype;g.ngOnInit=function(){SM.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Dja(function(){return b.activity.pipe(Sf(a))}));c.pipe(gg(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(Ve(function(d){return d&&b.beforeOpened.observers.length>0}),eka(function(){return c.pipe(Ve(function(d){return!d}))}),gg(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(Sf(this.hoverDelayMs),gg(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){Qe(a,"mouseenter").pipe(gg(b.destroyed)).subscribe(function(){b.openingDialog()});Qe(a,"click").pipe(gg(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});Qe(a,"mouseleave").pipe(gg(b.destroyed)).subscribe(function(){b.closingDialog()});Qe(a,"mousemove").pipe(gg(b.destroyed)).subscribe(function(){b.activity.next()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){Qe(a,"keydown").pipe(gg(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;((d=b.overlayRef)==null?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};
g.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};g.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};g.createOverlayConfig=function(a){return new ex(Object.assign({},this.overlayDimensions,{positionStrategy:SM.prototype.createPositionStrategy.call(this,a),scrollStrategy:eIc(this),panelClass:this.panelClassInternal}))};UM.\u0275fac=function(a){return new (a||UM)};
UM.\u0275dir=Kf({type:UM,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[kg]});var fIc=["*"],gIc=function(){return".xap-icon-trigger,.xap-text-trigger{pointer-events:auto}.xap-text-trigger{-webkit-text-decoration-line:underline;-moz-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:dashed;-moz-text-decoration-style:dashed;text-decoration-style:dashed;-webkit-text-decoration-color:var(--xap-color-outline,#80868b);-moz-text-decoration-color:var(--xap-color-outline,#80868b);text-decoration-color:var(--xap-color-outline,#80868b);text-underline-position:under;text-underline-offset:1px}"},
VM=function(){this.disabled=!1};VM.\u0275fac=function(a){return new (a||VM)};VM.\u0275cmp=B({type:VM,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:4,hostBindings:function(a,b){a&2&&(ng("tabindex",b.disabled?-1:0)("aria-disabled",b.disabled?!0:!1),wg("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:fIc,decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:[gIc()],encapsulation:2,changeDetection:0});
var WM=function(){this.disabled=!1};WM.\u0275fac=function(a){return new (a||WM)};WM.\u0275cmp=B({type:WM,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:fIc,decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:[gIc()],encapsulation:2,changeDetection:0});var XM=function(){};XM.\u0275fac=function(a){return new (a||XM)};XM.\u0275mod=Jf({type:XM});XM.\u0275inj=Tc({});var hIc=new yd("GMAT_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var YM=function(a){this.options=a};YM.\u0275fac=function(a){return new (a||YM)(zf(hIc))};YM.\u0275dir=Kf({type:YM,selectors:[["mat-form-field"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-form-field",!b.options.disableGmatStyle)},standalone:!1});var ZM=function(){};ZM.\u0275fac=function(a){return new (a||ZM)};ZM.\u0275mod=Jf({type:ZM});ZM.\u0275inj=Tc({imports:[Yy]});var iIc=new yd("GMAT_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var $M=function(a){this.options=a};$M.\u0275fac=function(a){return new (a||$M)(zf(iIc))};$M.\u0275dir=Kf({type:$M,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-input",!b.options.disableGmatStyle)},standalone:!1});var aN=function(){};aN.\u0275fac=function(a){return new (a||aN)};aN.\u0275mod=Jf({type:aN});aN.\u0275inj=Tc({imports:[fz,ZM]});var jIc=new yd("CDK_DRAG_CONFIG");var kIc={capture:!0},lIc={passive:!1,capture:!0},mIc=function(){};mIc.\u0275fac=function(a){return new (a||mIc)};mIc.\u0275cmp=B({type:mIc,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"],encapsulation:2,changeDetection:0});
var bN=function(){var a=this;this._ngZone=n(ph);this._document=n(Ei);this._styleLoader=n(kw);this._renderer=n(Ff).createRenderer(null,null);this._scroll=new bg;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=bh([]);this._draggingPredicate=function(b){return b.isDragging()};this._domNodesToDirectives=null;this.pointerMove=new bg;this.pointerUp=new bg;this._preventDefaultWhileDragging=function(b){a._activeDragInstances().length>0&&b.preventDefault()};this._persistentTouchmoveListener=
function(b){a._activeDragInstances().length>0&&(a._activeDragInstances().some(a._draggingPredicate)&&b.preventDefault(),a.pointerMove.next(b))}},nIc=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},oIc=function(a,b){a._dragInstances.add(b);a._dragInstances.size===1&&a._ngZone.runOutsideAngular(function(){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a);a._cleanupDocumentTouchmove=si(a._renderer,a._document,"touchmove",a._persistentTouchmoveListener,lIc)})},qIc=function(a,b){a._dragInstances.delete(b);
pIc(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
bN.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(mIc),this._activeDragInstances.update(function(f){return[].concat(p(f),[a])}),this._activeDragInstances().length===1)){b=b.type.startsWith("touch");var d=function(f){return c.pointerUp.next(f)},e=[["scroll",function(f){return c._scroll.next(f)},kIc],["selectstart",this._preventDefaultWhileDragging,lIc]];b?e.push(["touchend",d,kIc],["touchcancel",d,kIc]):e.push(["mouseup",d,
kIc]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},lIc]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var h=l(f);f=h.next().value;var k=h.next().value;h=h.next().value;return si(c._renderer,c._document,f,k,h)})})}};var pIc=function(a,b){a._activeDragInstances.update(function(c){var d=c.indexOf(b);return d>-1?(c.splice(d,1),[].concat(p(c))):c});a._activeDragInstances().length===0&&a._clearGlobalListeners()};
bN.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};bN.prototype.scrolled=function(a){var b=this,c=[this._scroll];a&&a!==this._document&&c.push(new pe(function(d){return b._ngZone.runOutsideAngular(function(){var e=si(b._renderer,a,"scroll",function(f){b._activeDragInstances().length&&d.next(f)},kIc);return function(){e()}})}));return Ue.apply(null,p(c))};
var rIc=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},sIc=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},tIc=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
bN.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return qIc(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};bN.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};bN.\u0275fac=function(a){return new (a||bN)};
bN.\u0275prov=Sc({token:bN,factory:bN.\u0275fac,providedIn:"root"});var uIc=new yd("CDK_DRAG_PARENT");var vIc=new yd("CdkDragHandle"),cN=function(){this.element=n(ff);this._parentDrag=n(uIc,{optional:!0,skipSelf:!0});this._dragDropRegistry=n(bN);this._stateChanges=new bg;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};cN.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=tIc(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
cN.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};ea.Object.defineProperties(cN.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});cN.\u0275fac=function(a){return new (a||cN)};
cN.\u0275dir=Kf({type:cN,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",Dh]},features:[hh([{provide:vIc,useExisting:cN}])]});var ZQa=0;var wIc=function(a){this._document=a;this.positions=new Map};wIc.prototype.clear=function(){this.positions.clear()};wIc.prototype.cache=function(a){var b=this;this.clear();this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()});a.forEach(function(c){b.positions.set(c,{scrollPosition:{top:c.scrollTop,left:c.scrollLeft},clientRect:$Qa(c)})})};
var xIc=function(a,b){var c=xi(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,h=b.left-d;a.positions.forEach(function(k,q){k.clientRect&&c!==q&&c.contains(q)&&bRa(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};wIc.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var yIc=new Set(["position"]),zIc=function(a,b,c,d,e,f,h,k,q,u){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=h;this._initialTransform=k;this._zIndex=q;this._renderer=u};g=zIc.prototype;g.attach=function(a){this._preview=this._createPreview();a.appendChild(this._preview);"showPopover"in this._preview&&this._preview.showPopover()};
g.destroy=function(){this._preview.remove();var a;(a=this._previewEmbeddedView)==null||a.destroy();this._preview=this._previewEmbeddedView=null};g.setTransform=function(a){this._preview.style.transform=a};g.getBoundingClientRect=function(){return this._preview.getBoundingClientRect()};g.addClass=function(a){this._preview.classList.add(a)};g.addEventListener=function(a,b){return this._renderer.listen(this._preview,a,b)};
g._createPreview=function(){var a=this._previewTemplate,b=this._previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._initialDomRect:null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=dRa(c,this._document);this._previewEmbeddedView=c;a.matchSize?jRa(e,d):e.style.transform=iRa(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=YQa(this._rootElement),jRa(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
eRa(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},yIc);zq(e,!1);e.classList.add("cdk-drag-preview");e.setAttribute("popover","manual");e.setAttribute("dir",this._direction);b&&(Array.isArray(b)?b.forEach(function(f){return e.classList.add(f)}):e.classList.add(b));return e};ea.Object.defineProperties(zIc.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var AIc={passive:!0},BIc={passive:!1},CIc={passive:!1,capture:!0},fRa=new Set(["position"]),FIc=function(a,b,c,d,e,f,h){var k=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._renderer=h;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=bh(!1);this._moveEvents=new bg;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=ke.EMPTY;this._boundaryElement=
null;this._nativeInteractionsEnabled=!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.dragStartDelay=0;this.scale=1;this._disabled=!1;this.beforeStarted=new bg;this.started=new bg;this.released=new bg;this.ended=new bg;this.entered=new bg;this.exited=new bg;this.dropped=new bg;this.moved=this._moveEvents;this._pointerDown=function(q){k.beforeStarted.next();if(k._handles.length){var u=k._getTargetHandle(q);!u||k._disabledHandles.has(u)||k.disabled||k._initializeDragSequence(u,
q)}else k.disabled||k._initializeDragSequence(k._rootElement,q)};this._pointerMove=function(q){var u=k._getPointerPositionOnPage(q);if(k._hasStartedDragging()){q.cancelable&&q.preventDefault();var A=k._getConstrainedPointerPosition(u);k._hasMoved=!0;k._lastKnownPointerPosition=u;k._updatePointerDirectionDelta(A);if(k._dropContainer)k._updateActiveDropContainer(A,u);else{u=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var G=k._activeTransform;G.x=A.x-u.x+k._passiveTransform.x;G.y=A.y-
u.y+k._passiveTransform.y;k._applyRootElementTransform(G.x,G.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:A,event:q,distance:k._getDragDistance(A),delta:k._pointerDirectionDelta})})}else Math.abs(u.x-k._pickupPositionOnPage.x)+Math.abs(u.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((u=Date.now()>=k._dragStartTime+k._getDragStartDelay(q),G=k._dropContainer,u)?G&&(G.isDragging()||G._activeSiblings.size>0)||(q.cancelable&&q.preventDefault(),
k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(q)})):k._endDragSequence(q))};this._pointerUp=function(q){k._endDragSequence(q)};this._nativeDragStart=function(q){if(k._handles.length){var u=k._getTargetHandle(q);!u||k._disabledHandles.has(u)||k.disabled||q.preventDefault()}else k.disabled||q.preventDefault()};DIc(EIc(this,a),b.parentDragRef||null);this._parentPositions=new wIc(c);oIc(f,this)};FIc.prototype.getPlaceholderElement=function(){return this._placeholder};
FIc.prototype.getRootElement=function(){return this._rootElement};
var GIc=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},HIc=function(a,b){a._handles=b.map(function(d){return Bi(d)});a._handles.forEach(function(d){return zq(d,a.disabled)});a._toggleNativeDragInteractions();var c=new Set;a._disabledHandles.forEach(function(d){a._handles.indexOf(d)>-1&&c.add(d)});a._disabledHandles=c},EIc=function(a,b){var c=Bi(b);c!==a._rootElement&&(a._removeRootElementListeners(),a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[si(a._renderer,
c,"mousedown",a._pointerDown,BIc),si(a._renderer,c,"touchstart",a._pointerDown,AIc),si(a._renderer,c,"dragstart",a._nativeDragStart,BIc)]}),a._initialTransform=void 0,a._rootElement=c);typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},IIc=function(a,b){a._boundaryElement=b?Bi(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},DIc=function(a,b){a._parentDragRef=b};g=FIc.prototype;
g.dispose=function(){this._removeRootElementListeners();if(this.isDragging()){var a;(a=this._rootElement)==null||a.remove()}var b;(b=this._anchor)==null||b.remove();this._destroyPreview();this._destroyPlaceholder();qIc(this._dragDropRegistry,this);this._removeListeners();this.beforeStarted.complete();this.started.complete();this.released.complete();this.ended.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this._moveEvents.complete();this._handles=[];this._disabledHandles.clear();
this._dropContainer=void 0;this._resizeSubscription.unsubscribe();this._parentPositions.clear();this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null};g.isDragging=function(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)};g.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};
g.withDirection=function(a){this._direction=a;return this};g._withDropContainer=function(a){this._dropContainer=a};g.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};g._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};
g._removeListeners=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe();var a;(a=this._cleanupShadowRootSelectStart)==null||a.call(this);this._cleanupShadowRootSelectStart=void 0};g._destroyPreview=function(){var a;(a=this._preview)==null||a.destroy();this._preview=null};
g._destroyPlaceholder=function(){var a;(a=this._placeholder)==null||a.remove();var b;(b=this._placeholderRef)==null||b.destroy();this._placeholder=this._placeholderRef=null};
g._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),pIc(this._dragDropRegistry,this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){b._cleanupDragArtifacts(a);b._cleanupCachedDimensions();
pIc(b._dragDropRegistry,b)});else{this._passiveTransform.x=this._activeTransform.x;var c=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y;this._ngZone.run(function(){b.ended.next({source:b,distance:b._getDragDistance(c),dropPoint:c,event:a})});this._cleanupCachedDimensions();pIc(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){var b=this;nRa(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var c=this._getShadowRoot(),d=this._dropContainer;c&&this._ngZone.runOutsideAngular(function(){b._cleanupShadowRootSelectStart=si(b._renderer,c,"selectstart",oRa,CIc)});if(d){var e=this._rootElement,f=e.parentNode,h=this._placeholder=this._createPlaceholderElement(),k=this._anchor=this._anchor||this._document.createComment("");f.insertBefore(k,e);this._initialTransform=e.style.transform||
"";this._preview=new zIc(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1E3,this._renderer);this._preview.attach(this._getPreviewInsertionPoint(f,c));gRa(e,!1);this._document.body.appendChild(f.replaceChild(h,e));this.started.next({source:this,event:a});d.start();this._initialContainer=d;this._initialIndex=d.getItemIndex(this)}else this.started.next({source:this,
event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(d?d._scrollableElements:[])};
g._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=nRa(b),f=!e&&b.button!==0,h=this._rootElement,k=xi(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?qoa(b):poa(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),
this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(u){return c._updateOnScroll(u)}),this._boundaryElement&&(this._boundaryRect=$Qa(this._boundaryElement)),this._pickupPositionInElement=
(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
g._cleanupDragArtifacts=function(a){var b=this;gRa(this._rootElement,!0);this._anchor.parentNode.replaceChild(this._rootElement,this._anchor);this._destroyPreview();this._destroyPlaceholder();this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0;this._ngZone.run(function(){var c=b._dropContainer,d=c.getItemIndex(b),e=b._getPointerPositionOnPage(a),f=b._getDragDistance(e),h=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,
currentIndex:d,previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:h,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,h,f,e,a);b._dropContainer=b._initialContainer})};
g._updateActiveDropContainer=function(a,b){var c=this;var d=a.x;var e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?
c._initialIndex:void 0);c.entered.next({item:c,container:f,currentIndex:f.getItemIndex(c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(d,e):this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
g._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=mRa(this._preview._preview);return c===0?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(k){if(!k||a._preview&&xi(k)===a._preview.element&&k.propertyName==="transform")h(),d(),clearTimeout(f)},f=setTimeout(e,
c*1.5),h=a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=dRa(this._placeholderRef,this._document)):a=YQa(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
g._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=nRa(c)?c.targetTouches[0]:c;var d=this._getViewportScrollPosition();return{x:b.left-a.left+(c.pageX-b.left-d.left),y:b.top-a.top+(c.pageY-b.top-d.top)}};
g._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=nRa(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
g._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this,this._initialDomRect,this._pickupPositionInElement):a;a=c.x;c=c.y;if(this.lockAxis==="x"||b==="x")c=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0);else if(this.lockAxis==="y"||b==="y")a=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0);if(this._boundaryRect){var d=
this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),h=d.top+e;e=d.bottom-(f.height-e);a=Math.max(d.left+b,Math.min(d.right-(f.width-b),a));c=Math.max(h,Math.min(e,c))}return{x:a,y:c}};
g._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
g._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,zq(this._rootElement,a))}};g._removeRootElementListeners=function(){var a;(a=this._rootElementCleanups)==null||a.forEach(function(b){return b()});this._rootElementCleanups=void 0};
g._applyRootElementTransform=function(a,b){var c=1/this.scale;a=iRa(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=hRa(a,this._initialTransform)};g._applyPreviewTransform=function(a,b){var c,d=((c=this._previewTemplate)==null?0:c.template)?void 0:this._initialTransform;this._preview.setTransform(hRa(iRa(a,b),d))};
g._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};g._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
g._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(b===0&&a===0||this.isDragging())&&this._boundaryElement){var c=this._rootElement.getBoundingClientRect(),d=this._boundaryElement.getBoundingClientRect();if(!(d.width===0&&d.height===0||c.width===0&&c.height===0)){var e=d.left-c.left,f=c.right-d.right,h=d.top-c.top,k=c.bottom-d.bottom;d.width>c.width?(e>0&&(b+=e),f>0&&(b-=f)):b=0;d.height>c.height?(h>0&&(a+=h),k>0&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return typeof b==="number"?b:nRa(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=xIc(this._parentPositions,a);b&&(a=xi(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&bRa(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
g._getViewportScrollPosition=function(){var a;return((a=this._parentPositions.positions.get(this._document))==null?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};g._getShadowRoot=function(){this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Aoa(this._rootElement));return this._cachedShadowRoot};
g._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return c==="parent"?a:c==="global"?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):Bi(c)};g._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect);return this._previewRect};
g._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};ea.Object.defineProperties(FIc.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){a!==this._disabled&&(this._disabled=a,this._toggleNativeDragInteractions(),this._handles.forEach(function(b){return zq(b,a)}))}}});var JIc=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};g=JIc.prototype;g.start=function(a){var b=this._element.childNodes;this._relatedNodes=[];for(var c=0;c<b.length;c++){var d=b[c];this._relatedNodes.push([d,d.nextSibling])}this.withItems(a)};
g.sort=function(a,b,c,d){var e=this._getItemIndexFromPointerPosition(a,b,c),f=this._previousSwap;if(e===-1||this._activeItems[e]===a)return null;var h=this._activeItems[e];if(f.drag===h&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),q=a.getPlaceholderElement();a=h.getRootElement();e>k?a.after(q):a.before(q);Aq(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=h;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};g.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;d===-1&&(d=this._getClosestItemIndexToPointer(a,b,c));b=this._activeItems[d];c=this._activeItems.indexOf(a);c>-1&&this._activeItems.splice(c,1);b&&!this._dragDropRegistry.isDragging(b)?(this._activeItems.splice(d,0,a),b.getRootElement().before(a.getPlaceholderElement())):(this._activeItems.push(a),this._element.appendChild(a.getPlaceholderElement()))};
g.withItems=function(a){this._activeItems=a.slice()};g.withSortPredicate=function(a){this._sortPredicate=a};g.reset=function(){for(var a=this._element,b=this._previousSwap,c=this._relatedNodes.length-1;c>-1;c--){var d=l(this._relatedNodes[c]),e=d.next().value;d=d.next().value;e.parentNode===a&&e.nextSibling!==d&&(d===null?a.appendChild(e):d.parentNode===a&&a.insertBefore(e,d))}this._relatedNodes=[];this._activeItems=[];b.drag=null;b.deltaX=b.deltaY=0;b.overlaps=!1};g.getActiveItemsSnapshot=function(){return this._activeItems};
g.getItemIndex=function(a){return this._activeItems.indexOf(a)};g.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};g.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
g._getItemIndexFromPointerPosition=function(a,b,c){var d=this._getRootNode().elementFromPoint(Math.floor(b),Math.floor(c));b=d?this._activeItems.findIndex(function(e){e=e.getRootElement();return d===e||e.contains(d)}):-1;return b!==-1&&this._sortPredicate(b,a)?b:-1};g._getRootNode=function(){this._rootNode||(this._rootNode=Aoa(this._element)||this._document);return this._rootNode};
g._getClosestItemIndexToPointer=function(a,b,c){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;for(var d=Infinity,e=-1,f=0;f<this._activeItems.length;f++){var h=this._activeItems[f];h!==a&&(h=h.getRootElement().getBoundingClientRect(),h=Math.hypot(b-h.x,c-h.y),h<d&&(d=h,e=f))}return e};var KIc=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};g=KIc.prototype;g.start=function(a){this.withItems(a)};
g.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(f===-1&&e.length>0)return null;var h=this.orientation==="horizontal",k=e.findIndex(function(O){return O.drag===a}),q=e[f],u=q.clientRect,A=k>f?1:-1,G=this._getItemOffsetPx(e[k].clientRect,u,A),H=this._getSiblingOffsetPx(k,e,A),N=e.slice();Aq(e,k,f);e.forEach(function(O,U){if(N[U]!==O){var da=O.drag===a;U=da?G:H;da=da?a.getPlaceholderElement():O.drag.getRootElement();O.offset+=U;var ma=Math.round(1/
O.drag.scale*O.offset);h?(da.style.transform=hRa("translate3d("+ma+"px, 0, 0)",O.initialTransform),bRa(O.clientRect,0,U)):(da.style.transform=hRa("translate3d(0, "+ma+"px, 0)",O.initialTransform),bRa(O.clientRect,U,0))}});this._previousSwap.overlaps=aRa(u,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y;return{previousIndex:k,currentIndex:f}};
g.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),h=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(d==null||d===-1||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);f>-1&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(h,b),e.splice(d,0,a)):(this._element.appendChild(h),e.push(a));h.style.transform="";this._cacheItemPositions()};
g.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};g.withSortPredicate=function(a){this._sortPredicate=a};
g.reset=function(){var a=this,b;(b=this._activeDraggables)==null||b.forEach(function(c){var d=c.getRootElement();if(d){var e,f=(e=a._itemPositions.find(function(h){return h.drag===c}))==null?void 0:e.initialTransform;d.style.transform=f||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};g.getActiveItemsSnapshot=function(){return this._activeDraggables};
g.getItemIndex=function(a){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(b){return b.drag===a})};g.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){bRa(d.clientRect,a,b)});this._itemPositions.forEach(function(d){d=d.drag;c._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};g.withElementContainer=function(a){this._element=a};
g._cacheItemPositions=function(){var a=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(function(b){var c=GIc(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:$Qa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};g._getItemOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=d?b.left-a.left:b.top-a.top;c===-1&&(e+=d?b.width-a.width:b.height-a.height);return e};
g._getSiblingOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=b[a].clientRect;a=b[a+c*-1];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=c===-1?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d=this.orientation==="horizontal";if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var u=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&u===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return h!==-1&&this._sortPredicate(h,a)?h:-1};var MIc=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.autoScrollDisabled=this.sortingDisabled=this.disabled=!1;this.autoScrollStep=2;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new bg;this.entered=new bg;this.exited=new bg;this.dropped=new bg;this.sorted=new bg;this.receivingStarted=new bg;this.receivingStopped=new bg;this._isDragging=!1;this._draggables=[];this._siblings=[];this._activeSiblings=
new Set;this._viewportScrollSubscription=ke.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new bg;this._cachedShadowRoot=null;this._scrollableElements=[];this._direction="ltr";this._startScrollInterval=function(){f._stopScrolling();Vga(0,p$b).pipe(gg(f._stopScrollTimers)).subscribe(function(){var h=f._scrollNode,k=f.autoScrollStep;f._verticalScrollDirection===1?h.scrollBy(0,-k):f._verticalScrollDirection===2&&h.scrollBy(0,k);f._horizontalScrollDirection===
1?h.scrollBy(-k,0):f._horizontalScrollDirection===2&&h.scrollBy(k,0)})};a=this.element=Bi(a);this._document=c;LIc(this,"vertical").withElementContainer(a);nIc(b,this);this._parentPositions=new wIc(c)};g=MIc.prototype;
g.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this.receivingStarted.complete();this.receivingStopped.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};g.isDragging=function(){return this._isDragging};
g.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};g.enter=function(a,b,c,d){this._draggingStarted();d==null&&this.sortingDisabled&&(d=this._draggables.indexOf(a));this._sortStrategy.enter(a,b,c,d);this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})};g.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
g.drop=function(a,b,c,d,e,f,h,k){k=k===void 0?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:h,event:k})};g.withItems=function(a){var b=this,c=this._draggables;this._draggables=a;a.forEach(function(d){return d._withDropContainer(b)});this.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return a.indexOf(d)===-1})?this._reset():this._sortStrategy.withItems(this._draggables))};
g.withDirection=function(a){this._direction=a;this._sortStrategy instanceof KIc&&(this._sortStrategy.direction=a);return this};g.connectedTo=function(a){this._siblings=a.slice();return this};
var LIc=function(a,b){if(b==="mixed")a._sortStrategy=new JIc(a._document,a._dragDropRegistry);else{var c=new KIc(a._dragDropRegistry);c.direction=a._direction;c.orientation=b;a._sortStrategy=c}a._sortStrategy.withElementContainer(a._container);a._sortStrategy.withSortPredicate(function(d,e){return a.sortPredicate(d,e,a)});return a},NIc=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(p(b)):b.slice()};g=MIc.prototype;
g.withElementContainer=function(a){if(a!==this._container){var b=this._scrollableElements.indexOf(this._container),c=this._scrollableElements.indexOf(a);b>-1&&this._scrollableElements.splice(b,1);c>-1&&this._scrollableElements.splice(c,1);this._sortStrategy&&this._sortStrategy.withElementContainer(a);this._cachedShadowRoot=null;this._scrollableElements.unshift(a);this._container=a}};g.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
g._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._domRect&&cRa(this._domRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,u){if(u!==c._document&&q.clientRect&&!k&&cRa(q.clientRect,a,b)){var A=q.clientRect;q=pRa(A,b);A=qRa(A,a);var G=0,H=0;if(q){var N=u.scrollTop;q===1?N>0&&(G=1):u.scrollHeight-N>u.clientHeight&&(G=2)}A&&(q=u.scrollLeft,c._direction==="rtl"?A===2?q<0&&(H=2):u.scrollWidth+q>u.clientWidth&&(H=1):A===1?q>0&&(H=1):u.scrollWidth-q>u.clientWidth&&(H=2));q=l([G,H]);
d=q.next().value;e=q.next().value;if(d||e)k=u}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=pRa(h,b);e=qRa(h,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};
g._stopScrolling=function(){this._stopScrollTimers.next()};g._draggingStarted=function(){var a=this._container.style;this.beforeStarted.next();this._isDragging=!0;this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"";a.scrollSnapType=a.msScrollSnapType="none";this._sortStrategy.start(this._draggables);this._cacheParentPositions();this._viewportScrollSubscription.unsubscribe();this._listenToScrollEvents()};
g._cacheParentPositions=function(){this._parentPositions.cache(this._scrollableElements);this._domRect=this._parentPositions.positions.get(this._container).clientRect};g._reset=function(){var a=this;this._isDragging=!1;var b=this._container.style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._siblings.forEach(function(c){return c._stopReceiving(a)});this._sortStrategy.reset();this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};
g._isOverContainer=function(a,b){return this._domRect!=null&&aRa(this._domRect,a,b)};g._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};g._canReceive=function(a,b,c){return this._domRect&&aRa(this._domRect,b,c)&&this.enterPredicate(a,this)?(a=this._getShadowRoot().elementFromPoint(b,c))?a===this._container||this._container.contains(a):!1:!1};
g._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||c._draggables.indexOf(e)>-1})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:a,receiver:this,items:b}))};g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=xIc(a._parentPositions,b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Aoa(this._container)||this._document);return this._cachedShadowRoot};
g._notifyReceivingSiblings=function(){var a=this,b=this._sortStrategy.getActiveItemsSnapshot().filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};var OIc={dragStartThreshold:5,pointerDirectionChangeThreshold:5},dN=function(){this._document=n(Ei);this._ngZone=n(ph);this._viewportRuler=n(ax);this._dragDropRegistry=n(bN);this._renderer=n(Ff).createRenderer(null,null)};dN.prototype.createDrag=function(a,b){b=b===void 0?OIc:b;return new FIc(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};dN.\u0275fac=function(a){return new (a||dN)};dN.\u0275prov=Sc({token:dN,factory:dN.\u0275fac,providedIn:"root"});var PIc=new yd("CdkDropList"),eN=function(){var a=this;this.element=n(ff);this.dropContainer=n(PIc,{optional:!0,skipSelf:!0});this._ngZone=n(ph);this._viewContainerRef=n(Ug);this._dir=n(Qw,{optional:!0});this._changeDetectorRef=n(qv);this._selfHandle=n(vIc,{optional:!0,self:!0});this._parentDrag=n(uIc,{optional:!0,skipSelf:!0});this._dragDropRegistry=n(bN);this._destroyed=new bg;this._handles=new tj([]);this.scale=1;this.started=new hv;this.released=new hv;this.ended=new hv;this.entered=new hv;this.exited=
new hv;this.dropped=new hv;this.moved=new pe(function(d){var e=a._dragRef.moved.pipe(y(function(f){return{source:a,pointerPosition:f.pointerPosition,event:f.event,delta:f.delta,distance:f.distance}})).subscribe(d);return function(){e.unsubscribe()}});this._injector=n(Ze);var b=this.dropContainer,c=n(jIc,{optional:!0});this._dragRef=n(dN).createDrag(this.element,{dragStartThreshold:c&&c.dragStartThreshold!=null?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&c.pointerDirectionChangeThreshold!=
null?c.pointerDirectionChangeThreshold:5,zIndex:c==null?void 0:c.zIndex});this._dragRef.data=this;rIc(this._dragDropRegistry,this.element.nativeElement,this);c&&this._assignDefaults(c);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this),b._dropListRef.beforeStarted.pipe(gg(this._destroyed)).subscribe(function(){a._dragRef.scale=a.scale}));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};g=eN.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};
g.getRootElement=function(){return this._dragRef.getRootElement()};g.reset=function(){this._dragRef.reset()};g.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};g.ngAfterViewInit=function(){var a=this;$e(function(){a._updateRootElement();a._setupHandlesListener();a._dragRef.scale=a.scale;a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)},{injector:this._injector})};
g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();this._dragRef.scale=this.scale;a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};
g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);sIc(this._dragDropRegistry,this.element.nativeElement);this._ngZone.runOutsideAngular(function(){a._handles.complete();a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};g._addHandle=function(a){var b=this._handles.getValue();b.push(a);this._handles.next(b)};g._removeHandle=function(a){var b=this._handles.getValue();a=b.indexOf(a);a>-1&&(b.splice(a,1),this._handles.next(b))};
g._setPreviewTemplate=function(a){this._previewTemplate=a};g._resetPreviewTemplate=function(a){a===this._previewTemplate&&(this._previewTemplate=null)};g._setPlaceholderTemplate=function(a){this._placeholderTemplate=a};g._resetPlaceholderTemplate=function(a){a===this._placeholderTemplate&&(this._placeholderTemplate=null)};
g._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=a.closest!==void 0?a.closest(this.rootElementSelector):(c=a.parentElement)==null?void 0:c.closest(this.rootElementSelector)}EIc(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):Bi(a):null};
g._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.scale=b.scale;
a.dragStartDelay=typeof d==="object"&&d?d:Ci(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=IIc(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(Uf()).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){var d=tIc(b._dragDropRegistry,c);if(d){a._parentDragRef=d._dragRef;
break}c=c.parentElement}})};
g._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,h=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=h==null?!1:h;this.dragStartDelay=c||0;b&&(this.lockAxis=b);d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
g._setupHandlesListener=function(){var a=this;this._handles.pipe(hg(function(b){b=b.map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);HIc(a._dragRef,b)}),fg(function(b){return Ue.apply(null,p(b.map(function(c){return c._stateChanges.pipe(eg(c))})))}),gg(this._destroyed)).subscribe(function(b){var c=a._dragRef,d=b.element.nativeElement;b.disabled?!c._disabledHandles.has(d)&&c._handles.indexOf(d)>-1&&(c._disabledHandles.add(d),zq(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),zq(d,c.disabled))})};ea.Object.defineProperties(eN.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this.dropContainer||!this.dropContainer.disabled)},set:function(a){this._disabled=a;this._dragRef.disabled=this._disabled}}});eN.\u0275fac=function(a){return new (a||eN)};
eN.\u0275dir=Kf({type:eN,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&wg("cdk-drag-disabled",b.disabled)("cdk-drag-dragging",b._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition",
"freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",Dh],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Eh]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[hh([{provide:uIc,
useExisting:eN}]),Uu]});var QIc=new yd("CdkDropListGroup");var fN=function(){var a=this;this.element=n(ff);this._changeDetectorRef=n(qv);this._scrollDispatcher=n(Xw);this._dir=n(Qw,{optional:!0});this._group=n(QIc,{optional:!0,skipSelf:!0});this._destroyed=new bg;this.connectedTo=[];this.id=n(Gw).getId("cdk-drop-list-");this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new hv;this.entered=new hv;this.exited=new hv;this.sorted=new hv;this._unsortedItems=new Set;var b=n(dN),c=n(jIc,{optional:!0});this._dropListRef=
new MIc(this.element,b._dragDropRegistry,b._document,b._ngZone,b._viewportRuler);this._dropListRef.data=this;c&&this._assignDefaults(c);this._dropListRef.enterPredicate=function(d,e){return a.enterPredicate(d.data,e.data)};this._dropListRef.sortPredicate=function(d,e,f){return a.sortPredicate(d,e.data,f.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);RIc.push(this);this._group&&this._group._items.add(this)};
fN.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};fN.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._syncItemsWithRef()};var SIc=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return GIc(b._dragRef).compareDocumentPosition(GIc(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=fN.prototype;
g.ngOnDestroy=function(){var a=RIc.indexOf(this);a>-1&&RIc.splice(a,1);this._group&&this._group._items.delete(this);this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
g._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(eg(this._dir.value),gg(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=yi(b.connectedTo).map(function(e){return typeof e==="string"?RIc.find(function(f){return f.id===e}):e});b._group&&b._group._items.forEach(function(e){c.indexOf(e)===-1&&c.push(e)});if(!b._scrollableParentsResolved){var d=Fcc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
NIc(b._dropListRef,d);b._scrollableParentsResolved=!0}b.elementContainerSelector&&a.withElementContainer(b.element.nativeElement.querySelector(b.elementContainerSelector));a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=b.sortingDisabled;a.autoScrollDisabled=b.autoScrollDisabled;a.autoScrollStep=Ci(b.autoScrollStep,2);LIc(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
g._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef();b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:b,item:c.item.data,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:b,item:c.item.data});b._changeDetectorRef.markForCheck()});a.sorted.subscribe(function(c){b.sorted.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,container:b,item:c.item.data})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,
currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,item:c.item.data,isPointerOverContainer:c.isPointerOverContainer,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});Ue(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=c==null?!1:c;this.sortingDisabled=d==null?!1:d;this.autoScrollDisabled=e==null?!1:e;this.orientation=a||"vertical";b&&(this.lockAxis=b)};g._syncItemsWithRef=function(){this._dropListRef.withItems(SIc(this).map(function(a){return a._dragRef}))};
ea.Object.defineProperties(fN.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=a}}});var RIc=[];fN.\u0275fac=function(a){return new (a||fN)};
fN.\u0275dir=Kf({type:fN,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(ng("id",b.id),wg("cdk-drop-list-disabled",b.disabled)("cdk-drop-list-dragging",b._dropListRef.isDragging())("cdk-drop-list-receiving",b._dropListRef._activeSiblings.size>0))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis",
"lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",Dh],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",Dh],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",Dh],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",
entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[hh([{provide:QIc,useValue:void 0},{provide:PIc,useExisting:fN}])]});new yd("CdkDragPlaceholder");new yd("CdkDragPreview");var gN=function(){};gN.\u0275fac=function(a){return new (a||gN)};gN.\u0275mod=Jf({type:gN});gN.\u0275inj=Tc({providers:[dN],imports:[bx]});var TIc=["addLink"],UIc=["showFewer"],VIc=["showMore"],WIc=["editButton"],XIc=["removeButton"],YIc=[[["",8,"title-action"]],[["",8,"value-action"]]],ZIc=function(a,b,c){return{"bv2-issue-metadata-list-field":a,"bv2-issue-metadata-field":b,"internal-only":c}},tRa=function(a,b){return{item:a,$index:b}},ORa=function(a){return{q:a}},$Ic=[Object.assign({},gSa("start","bottom"),hSa("start","top"),{offsetY:8}),Object.assign({},gSa("center","bottom"),hSa("center","top"),{offsetY:8}),Object.assign({},gSa("end",
"bottom"),hSa("end","top"),{offsetY:8}),Object.assign({},gSa("start","top"),hSa("start","bottom"),{offsetY:-8}),Object.assign({},gSa("end","top"),hSa("end","bottom"),{offsetY:-8})],hN=function(){Z.apply(this,arguments);var a=this;this.cdr=n(NA,{self:!0});this.dateFormatter=n(HK);this.analytics=n(CF);this.liveAnnouncer=n(zw);this.principalTypesFridge=n(mG);this.issuePermissionService=n(lL);this.activeSession=n(Es);this.customRepeatedEnumDialogService=n(rM);this.OVERLAY_POSITION_LIST=$Ic;this.defaultLineCount=
Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.providedValues$=new ag(1);this.showInternalOnlyFieldBadge=!1;this.userMap=new Map;this.enumChoices=null;this.sortedEnumChoices=[];this.enumPendingValues=new Set;this.isUser=this.isActive=!1;this.valuesChange=new LA;this.showingAll=this.listFieldDisabled=!1;this.tooltip=this.title="";this.isExpanded=this.isCollapsible=this.truncate=!1;this.collapsiblePanelTitle=this.iconName="";this.customFieldId=
0;this.isRequired=!1;this.inputValidator=null;this.checkAccessLimits=!1;this.toggleAccessLimits=new LA;this.enableTeamAnnotations=this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=Rj;this.enableNewCustomRepeatedEnumUi=Yr(this.activeSession,"enableNewCustomRepeatedEnumUi");this.enableGerritChanges=Yr(this.activeSession,"enableGerritChanges");this.groups$=this.providedValues$.pipe(fg(function(b){return a.extractGroups(b)}),
eg(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Y(hN,Z);hN.\u0275dir=Z.\u0275dir;hN.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};hN.prototype.ngOnInit=function(){ARa(this)};
var ARa=function(a){a.sortedEnumChoices=[].concat(p(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=((c=a.values)==null?0:c.includes(b))?1:0,e;return(((e=a.values)==null?0:e.includes(b))?1:0)-d})},BRa=function(a){var b=a.values||[],c=[].concat(p(a.enumPendingValues)),d=c.filter(function(f){return!b.includes(f)}),e=b.filter(function(f){return!c.includes(f)});if(d.length||e.length)a.values=c,a.valuesChange.emit({values:a.values,added:d,removed:e})},ERa=function(a){var b;return w(function(c){if(c.nextAddress==
1)return a.customRepeatedEnumDialogService.isOpen()?c.return():x(c,a.customRepeatedEnumDialogService.open({customFieldTitle:a.title,allowedValues:eSa(a),selectedValues:a.values}),2);(b=c.yieldResult)&&dSa(a,Array.from(b));ze(c)})},Bq=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3};hN.prototype.showCodeChanges=function(a){a=!!im(a);return this.type==="CODE_CHANGES"&&(!a||this.enableGerritChanges)};
var eSa=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},dSa=function(a,b){var c,d=(c=a.values)!=null?c:[];c=b.filter(function(f){return!d.includes(f)});var e=d.filter(function(f){return!b.includes(f)});if(c.length||e.length)a.values=b,a.valuesChange.emit({values:a.values,added:c,removed:e});a.closeAddPopup(!0);WRa(a)&&Cq(a,!0)};g=hN.prototype;g.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
g.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if((d=b.values)==null?0:d.length){d=Math.min(a,b.values.length-1);var e,f,h;(e=b.removeButtons)==null||(f=e.get(d))==null||(h=f.nativeElement)==null||h.focus()}else{var k,q;(k=b.addLinkEl)==null||(q=k.nativeElement)==null||q.focus()}})};
g.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=UEa(a);this.preventDuplicates&&this.values.find(function(h){return Pj(h,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&cua(this.values)&&cua(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(Sj(this.values)&&Sj(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=l(a.split(/[,; ]/));for(var d=
a.next();!d.done;d=a.next()){var e=d=d.value;if(this.type==="CODE_CHANGES"){var f=!!im(d);this.enableGerritChanges&&f?e=d:e=Exa(d)}e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&this.type!=="REPEATED_DATE"||this.closeAddPopup(!0);b.length!==0&&(this.values=[].concat(p(this.values),p(b)),this.valuesChange.emit({values:this.values,added:b}))};g.onDrop=function(a){Aq(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
g.closeAddPopup=function(a){var b,c=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};g.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var Cq=function(a,b,c){c==null||c.stopPropagation();c==null||c.preventDefault();a.showingAll=b;a.cdr.detectChanges();a.schedule(function(){var d,e,f;(d=(f=a.showFewer)!=null?f:a.showMore)==null||(e=d.nativeElement)==null||e.focus()})},WRa=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},vRa=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Ho(b))}):a.values&&a.type==="TEAM"?a.values:a.values&&a.type==="WORKSPACES"?
a.values:a.values&&a.type==="REPEATED_ENUM"?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return Rj(b)?b:bua(b)?""+b:a.dateFormatter.formatUserCalendar(Ho(b))})};g=hN.prototype;
g.textPopupSubmit=function(a,b){var c=this,d,e,f;return w(function(h){if(h.nextAddress==1)return c.inputValidator?x(h,c.inputValidator(a.value.input),3):h.jumpTo(2);h.nextAddress!=2&&(c.invalidMessage=h.yieldResult,c.cdr.detectChanges());if(!a.valid||c.invalidMessage)return h.return();d=a.value.input;(e=a)==null||e.reset();(f=b.querySelector("input"))==null||f.focus();c.addItems(d);ze(h)})};g.trackClick=function(a){this.analytics.trackEvent("linkField","click",a)};g.getUser=function(a){return this.userMap.get(a)};
g.schedule=function(a){this.subscriptions.add(Re.schedule(a))};g.getAriaLabel=function(){if(!this.values||this.values.length===0)return this.title+" is empty";var a=this.title+" has "+this.values.length+" ";switch(this.type){case "REPEATED_DATE":a+="date";break;default:a+="item"}this.values.length>1&&(a+="s");return a};var YRa=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
hN.prototype.extractGroups=function(a){if(!this.isUser)return Ce(new Set([]));var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(y(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};hN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(hN)))(b||hN)}}();
hN.\u0275cmp=B({type:hN,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(Wg(TIc,5),Wg(UIc,5),Wg(VIc,5),Wg(WIc,5,ff),Wg(XIc,5),Wg(YG,5),Wg(TM,5));if(a&2){var c;$g(c=ah())&&(b.addLinkEl=c.first);$g(c=ah())&&(b.showFewer=c.first);$g(c=ah())&&(b.showMore=c.first);$g(c=ah())&&(b.editButton=c.first);$g(c=ah())&&(b.removeButtons=c);$g(c=ah())&&(b.menuTriggers=c);$g(c=ah())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",
isDefaultOrAllowedValues:"isDefaultOrAllowedValues",values:"values",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",isCollapsible:"isCollapsible",isExpanded:"isExpanded",iconName:"iconName",collapsiblePanelTitle:"collapsiblePanelTitle",customFieldId:"customFieldId",isRequired:"isRequired",
inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",teamId:"teamId"},outputs:{valuesChange:"valuesChange",toggleAccessLimits:"toggleAccessLimits"},standalone:!1,features:[hh([NA]),kg,Uu],ngContentSelectors:[".title-action",".value-action"],decls:26,vars:27,consts:[["addLink",""],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["textPopup",""],["datePopup",""],["customFieldPopup",""],["editButton",""],["removeButton",""],["showFewer",""],["showMore",""],["textPopupForm",
"ngForm","formEl",""],[3,"ngClass"],["tabindex","0",1,"bv2-issue-metadata-field-inner",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],[1,"bv2-editable-title",3,"focusin","focusout","matTooltip","matTooltipPosition","matTooltipDisabled"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDropped","cdkDropListDisabled"],[3,"isExpanded","iconName",
"hasCompactTitleBar","title"],[1,"bv2-field-user-action-footer"],["matMenuContent",""],["cdkDrag",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"no-value"],["type","button","mat-button","","dialogLabel","Add a new item to the list","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex",
"0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"matMenuTriggerFor"],["type","button","mat-button","","dialogLabel","Select items in the list","panelClass","bv2-add-item-bubble","matTooltip","Select items in the list","tabindex","0",1,
"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuOpened","menuClosed","matMenuTriggerFor"],["type","button","mat-button",
"","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"click"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"beforeOpened","xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[1,"overflow-ellipsis",3,"matTooltip"],
["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"disabled","matTooltip"],[1,"float-clear"],[3,"codeChange"],["target","_blank",1,"bv2-metadata-link",3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"click","href"],["routerLink","/issues",1,"subtle-link",3,"click","queryParams"],[3,"maxWidth","modelValue","disabled"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","disabled","matTooltip"],["tabindex","0","role",
"button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"click",
"disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],[3,"ngSubmit"],["name","input","ngModel","","required","","step","any","aria-expanded","true","autofocus","",3,"type"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],[3,"dateChange","cancelClicked","required","renderPanel"],[3,
"onApplyChanges","onCancelChanges","allowMultiSelect","customFieldTitle","allowedValues","selectedValues"]],template:function(a,b){if(a&1){var c=r();Ng(YIc);I(0,"div",12)(1,"div",13)(2,"div",14);M("focusin",function(){t(c);return v(b.focusOnTitle=!0)})("focusout",function(){t(c);return v(b.focusOnTitle=!1)});E(3,rRa,2,1,"label");E(4,sRa,1,0,"mat-icon",15);Og(5);J();I(6,"div",16);M("cdkDropListDropped",function(d){t(c);return v(b.onDrop(d))});E(7,wRa,4,5,"collapsible-panel",17)(8,zRa,4,2);I(9,"div",
18,0);E(11,JRa,3,1);Og(12,1);J()()();C(13,TRa,1,1,"ng-template",null,1,nh)(15,XRa,2,2,"ng-template",null,2,nh);I(17,"mat-menu",null,3);C(19,$Ra,2,0,"ng-template",19);J();C(20,bSa,12,9,"ng-template",null,4,nh)(22,cSa,1,2,"ng-template",null,5,nh)(24,fSa,3,4,"ng-template",null,6,nh);J()}a&2&&(wg("empty-list-field-indication",b.isRequired&&!(b.values==null?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),D("ngClass",lh(23,ZIc,!b.showInternalOnlyFieldBadge,!b.showInternalOnlyFieldBadge,
b.showInternalOnlyFieldBadge)),z(),wg("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),D("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",Bq(b)),ng("aria-label",b.getAriaLabel()),z(),D("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!Bq(b)),z(),F(b.title?3:-1),z(),F(b.showInternalOnlyFieldBadge?4:-1),z(2),wg("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),D("cdkDropListDisabled",!b.isDefaultOrAllowedValues),
z(),F(b.isCollapsible||b.enableNewCustomRepeatedEnumUi&&Bq(b)?7:8),z(4),F(b.readonly?-1:11))},dependencies:[Mv,Pv,aB,FA,Oy,IL,wy,Li,oy,py,Gy,vy,ty,PA,Tx,YA,cB,YJ,fN,eN,PM,OM,TM,UG,XG,VG,WG,YG,MM,KM,DM,cM],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.list-field-content.draggable[_ngcontent-%COMP%]{cursor:grab}.list-field-content.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.internal-only[_ngcontent-%COMP%]{background-color:#f4f5f6;background-color:var(--tonal-fill-grey);margin:5px;border-radius:5%;padding:5px 15px}.internal-only[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}[_nghost-%COMP%]     .bv2-field-user-action-footer span{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});
var aJc={CODE_CHANGES:"CODE_CHANGES",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},iN=function(){};iN.\u0275fac=function(a){return new (a||iN)};iN.\u0275mod=Jf({type:iN});iN.\u0275inj=Tc({imports:[ZB,EL,aN,eM,UL,Ly,$B,cC,XJ,JM,ZJ,FL,gN,QM,XM,LH,cJ,NM,XM,LM,HM,fM,wM]});var bJc=dq({opacity:"0"}),cJc=Ve(function(a){return a}),dJc=oe(Xf(),cJc,Tf()),eJc=new yd("xap-bubble UX style"),jN=function(a){var b=this;this.activity=new bg;this.openedSubject=new tj(!1);this.destroy=new ag;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new hv;this.onOpened=new hv;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Dja(function(){return b.activity.pipe(Sf(b.hoverDelayMs))}));a=gg(this.destroy);this.opened.pipe(dJc,
a).subscribe(this.onOpened);this.openedSubject.pipe(cJc,eka(function(){return b.opened.pipe(Ve(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};jN.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};jN.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};jN.\u0275fac=function(a){return new (a||jN)(zf(eJc,8))};
jN.\u0275cmp=B({type:jN,selectors:[["xap-bubble"]],inputs:{panelTemplate:"panelTemplate",overlayPositions:"overlayPositions",overlayPanelClass:"overlayPanelClass",hoverDelayMs:"hoverDelayMs"},outputs:{beforeOpened:"beforeOpened",beforeShow:"beforeShow",onOpened:"opened"},standalone:!1,ngContentSelectors:["*"],decls:5,vars:7,consts:[["trigger","cdkOverlayOrigin"],["cdkOverlayOrigin","",1,"xap-bubble-trigger",3,"mouseenter","mouseleave","mousemove","ngClass"],["cdkConnectedOverlay","","cdkConnectedOverlayPush",
"true",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[1,"xap-bubble-panel",3,"mouseenter","mouseleave","mousemove","ngClass"],[4,"ngTemplateOutlet"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"span",1,0);M("mouseenter",function(){t(c);return v(b.toggle(!0))})("mouseleave",function(){t(c);return v(b.toggle(!1))})("mousemove",function(){t(c);b.activity.next();return v()});Og(2);J();C(3,kSa,2,3,"ng-template",2);S(4,"async")}a&
2&&(a=L(1),D("ngClass",b.bubbleStyle),z(3),D("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",T(4,5,b.opened)))},dependencies:[Mv,Pv,xx,wx,Qv],styles:[".xap-bubble-trigger{cursor:default;pointer-events:auto}.xap-bubble-trigger.xap-bubble-reach{-webkit-text-decoration:underline dashed #80868b;-moz-text-decoration:underline dashed #80868b;text-decoration:underline dashed #80868b;text-underline-position:under}.xap-bubble-panel{overflow:auto;padding:16px;will-change:opacity}.xap-bubble-panel.xap-bubble-md1{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);max-height:400px;max-width:400px}.xap-bubble-panel.xap-bubble-reach{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);border-radius:8px;max-height:420px;max-width:420px;min-height:40px;min-width:220px}"],
encapsulation:2,data:{animation:[tLa("fade",[fq(":enter",[bJc,cq("225ms")]),fq(":leave",[cq("195ms",bJc)])])]}});var kN=function(){this.activeSession=n(Es);this.documentationLinks=n(lK);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
kN.prototype.ngOnChanges=function(){if(this.accessLevel)switch(this.accessLevel){case "EXTERNAL_PARTNER":this.chipClass="partner";this.chipText=this.compactMode?"Partners":"Visible to Partners";this.bubbleText=' Components and issues designated as "Visible to Partners" can be shared with specific external partners listed in the component\'s access control settings.';break;case "EXTERNAL_PUBLIC":this.chipClass="public";this.chipText=this.compactMode?"Public":"Visible to Public";this.bubbleText='Components and issues designated as "Visible to Public" can be\n                shared with any external user.';
break;default:this.chipText=this.bubbleText=this.chipClass=""}};kN.\u0275fac=function(a){return new (a||kN)};
kN.\u0275cmp=B({type:kN,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},standalone:!1,features:[Uu],decls:1,vars:1,consts:[["popup",""],[1,"chippy","rounded",3,"ngClass","xs"],[3,"panelTemplate"],[1,"chippy","rounded",3,"ngClass"],[1,"chippy","rounded","nowrap",3,"ngClass"],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&E(0,oSa,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?
b.accessLevel==="EXTERNAL_PARTNER"||b.accessLevel==="EXTERNAL_PUBLIC":wC(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;F(a?0:-1)}},dependencies:[Mv,jN],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px}.chippy.partner[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.chippy.public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.chippy.xs[_ngcontent-%COMP%]{box-shadow:none;margin-right:4px}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var fJc=Fq.listIssues.makeHref,gJc=Fq.createIssue.makeHref,lN=function(){Z.apply(this,arguments);var a=this;this.componentFridge=n(jD);this.activeSession=n(Es);this.providedComponentId$=new ag(1);this.component$=this.providedComponentId$.pipe(fg(function(b){return a.componentFridge.watch(b)}),cg({refCount:!0,bufferSize:1}));this.init=new ag(1);this.isAnonymous=this.activeSession.isAnonymous()};Y(lN,Z);lN.\u0275dir=Z.\u0275dir;
lN.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=fJc({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=gJc()+"?component="+this.componentId;this.viewComponentUrl=Fq.editComponent.makeHref(this.componentId);this.component$.pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.init.next()})};lN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(lN)))(b||lN)}}();
lN.\u0275cmp=B({type:lN,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},standalone:!1,features:[kg],decls:4,vars:3,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[3,"accessLevel","labelOnlyMode"],["tabindex","0",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),E(2,qSa,15,8),S(3,"async"),J()());if(a&2){var c;z(2);F((c=T(3,1,b.component$))?2:-1,c)}},dependencies:[kN,
Qv],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var mN=function(){this.trackerHelpers=n(LK);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};ea.Object.defineProperties(mN.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=rs(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?tSa(a,eNa):tSa(a)}}});mN.\u0275fac=function(a){return new (a||mN)};
mN.\u0275cmp=B({type:mN,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},standalone:!1,decls:7,vars:2,consts:[["card","onedevHovercard"],["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"breadcrumb-archived-indicator"],[1,"keep-focus-ring",3,"onedevHovercardTrigger",
"routerLinkObj"],[3,"componentId"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"p",2),Q(2),J(),I(3,"span",3),Dg(4,rSa,6,4,"span",4,Cg),E(6,sSa,2,0,"span",5),J()());a&2&&(z(2),R("",b.label,":"),z(2),Eg(b.componentPath),z(2),F(b.isArchived?6:-1))},dependencies:[WB,fJ,lJ,lN],encapsulation:2});var nN=function(){Z.apply(this,arguments);var a=this;this.componentFridge=n(jD);this.trackerHelpers=n(LK);this.recentIssuesInComponent=vq;this.componentId$=new ag(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(Ve(function(b){return String(b.idOrKey)===a.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(Ve(Tk),fg(function(b){return a.componentFridge.watch(b)}),Ve(Tk));this.component$=Ue(this.error$,this.rawComponent$).pipe(y(function(b){return b.componentId&&b.name?
b:{componentId:Number(b.idOrKey),name:"(unknown)"}}));this.isArchived$=this.component$.pipe(y(function(b){return b.archived}));this.componentPath$=this.component$.pipe(y(function(b){b=rs(a.trackerHelpers,b.componentPathInfo);return tSa(b)}));this.init=new ag(1);this.routes$=this.componentId$.pipe(y(function(b){return{createIssue:dNa(b),componentSettings:eNa(b),recentIssues:vq(b)}}))};Y(nN,Z);nN.\u0275dir=Z.\u0275dir;nN.prototype.ngOnInit=function(){var a=this;this.component$.pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.init.next()})};
ea.Object.defineProperties(nN.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});nN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(nN)))(b||nN)}}();
nN.\u0275cmp=B({type:nN,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},standalone:!1,features:[kg],decls:7,vars:7,consts:[["role","dialog","aria-label","Component Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"component-path","squared","b-chip","s","margin-s-bottom"],[1,"flex-kids-y","padded-s-top","actions"],[3,"routerLinkObj"],[1,"flex-kids-x"],["svgIcon","folder",1,"icon-xs"],[1,"type-s"],[1,"id-text",
"flex-kids-x","gap-s","align-items-center"],[3,"accessLevel","labelOnlyMode"],["aria-label","View recent open issues","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","View component settings","mat-button","",1,"primary",3,"routerLinkObj"],["aria-label","Create issue in this component","mat-button","",1,"primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),E(2,xSa,6,5,"div",2),E(3,ySa,10,5),S(4,"async"),E(5,zSa,7,3,"div",3),S(6,"async"),J()());if(a&2){var c,
d;z(2);F(b.hidePath?-1:2);z();F((c=T(4,3,b.component$))?3:-1,c);z(2);F((d=T(6,5,b.routes$))?5:-1,d)}},dependencies:[aB,WB,PA,Tx,kN,Qv],styles:["img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:24px;height:24px;box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 2px 6px 2px rgba(0,0,0,.15);padding:5px;border-radius:4px}.id-text[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-bottom:12px}.b-chip[_ngcontent-%COMP%]{margin-right:0;line-height:16px;padding-top:2px;padding-bottom:2px}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#202124;color:var(--text)}.component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, .component-path[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"]});var hJc={QA:124156,NIGHTLY:190923,PROD:190923};var oN=function(){var a=n(wD),b=n(gE),c=n(jD);Z.call(this);var d=this;this.componentApi=n(hD);this.appEvents=n(nD);this.activeSession=n(Es);this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(e){d.components.removeAll();c.invalidate(e)}));this.componentGetter=b.adapt(function(e){var f=ab(e);Lba(f);return d.componentApi.query({id:f}).then(function(h){var k={};h=l(h);
for(var q=h.next();!q.done;q=h.next())(q=q.value)&&(k[q.componentId]=q);return e.map(function(u){return k[u]||null})})})};Y(oN,Z);oN.\u0275dir=Z.\u0275dir;g=oN.prototype;g.get=function(a){var b=this.components.get(String(a));if(b!=null)return b;b=this.componentGetter.get(a).then(function(c){return c!=null?c:Promise.reject(new mrc("Could not load details for component "+a))});return this.components.put(String(a),b)};
g.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
g.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.getChildren=function(a,b){return this.componentApi.getChildren(a,b===void 0?!1:b)};g.getDescendants=function(a){return this.componentApi.getDescendants(a)};
g.getUncached=function(a){this.components.remove(String(a));return this.componentApi.fetchComponent(a)};g.search=function(a,b){var c={query:a};if(b===void 0?0:b)c.includearchived=!0;return iJc(this,a,this.componentApi.query(c))};
var iJc=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=hJc[a.activeSession.getEnvironmentType()];if(d)return Yi({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=l(e.rest);for(var h=e.next();!h.done;h=e.next())h=h.value,h.componentId!==d&&f.push(h);return f})}return c};
oN.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Lba(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=l(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});c=l(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$355:void 0},d=c.next())e.id$jscomp$355=d.value,this.components.put(String(e.id$jscomp$355),a.then(function(f){return function(h){return h[f.id$jscomp$355]?h[f.id$jscomp$355]:
Promise.reject(new mrc("Could not load details for component "+f.id$jscomp$355))}}(e)))}};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275prov=Sc({token:oN,factory:oN.\u0275fac,providedIn:"root"});var jJc=ru(["https://www.gstatic.com/buganizer/gfx/","/",""]),pN=ru(["https://www.gstatic.com/buganizer/img/v2/",""]),kJc=Ri(jJc,"2025-03-19-047c2b2a","all-icons.svg"),lJc=Ri(pN,"empty_blocker_light.png"),mJc=Ri(pN,"empty_blocker_dark.png"),nJc=Ri(pN,"empty_child_light.png"),oJc=Ri(pN,"empty_child_dark.png"),pJc=Ri(pN,"robot_sleeping.png"),qJc=Ri(pN,"tea_light.png"),rJc=Ri(pN,"tea_dark.png"),sJc=Ri(pN,"space_empty_state.png"),tJc=Ri(pN,"eg_work_area.png"),uJc=Ri(pN,"empty_triage.png");Ri(pN,"gerrit_logo.svg");var qN=function(){this.ICON_URL=kJc;this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";this.EMPTY_BLOCKER_LIGHT=lJc;this.EMPTY_BLOCKER_DARK=mJc;this.EMPTY_CHILD_LIGHT=nJc;this.EMPTY_CHILD_DARK=oJc;this.ROBOT_SLEEPING=pJc;this.TEA_LIGHT=qJc;this.TEA_DARK=rJc;this.SPACE_EMPTY_STATE=sJc;this.WORK_AREA_EXAMPLE_ILLUSTRATION=tJc;this.EMPTY_TRIAGE=uJc};qN.\u0275fac=function(a){return new (a||qN)};qN.\u0275prov=Sc({token:qN,factory:qN.\u0275fac,providedIn:"root"});var rN=function(){this.activeSession=n(Es);this.documentationLinks=n(lK);this.trackerHelpers=n(LK);this.imageUrls=n(qN);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
rN.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?IEc(this.trackerHelpers,""):tr(this.trackerHelpers,"",this.tracker);this.name=this.getName();this.extendedName=this.isGlobalBuganizer?this.name:"the "+this.name+" Tracker";if(this.isGlobalBuganizer)a=this.imageUrls.LOGO_LIGHT;else{var b,c;if((b=this.tracker)==null?0:(c=b.branding)==null?0:c.logoUrl){var d,e,f;a=(f=(d=this.tracker)==null?void 0:(e=d.branding)==null?void 0:e.logoUrl)!=null?
f:""}else a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}this.logoLight=a;if(this.isGlobalBuganizer)d="https://www.gstatic.com/buganizer/img/v3/logo_dark.svg";else{var h;d=(h=this.logoLight)!=null?h:""}this.logoDark=d}};rN.prototype.getName=function(){if(this.isGlobalBuganizer)return this.activeSession.getAppName();var a,b;return(b=(a=this.tracker)==null?void 0:a.name)!=null?b:""};rN.\u0275fac=function(a){return new (a||rN)};
rN.\u0275cmp=B({type:rN,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},standalone:!1,features:[Uu],decls:1,vars:1,consts:[["card","onedevHovercard"],["type","button",1,"chippy","rounded",3,"onedevHovercardTrigger","onedevHovercardActive"],["alt","",1,"logo","light-only",3,"src"],["alt","",1,"logo","dark-only",3,"src"],[1,"name"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],
[1,"flex-kids-y","padded-s-top","actions"],["mat-button","","target","_blank",1,"primary",3,"href"]],template:function(a,b){a&1&&E(0,DSa,15,12);a&2&&F(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[fJ,lJ,PA,Tx],styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--tracker-chip-bg:#d5e2fa}.dark-mode   [_nghost-%COMP%]    {--tracker-chip-bg:#283143}.chippy[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast);margin-right:8px;background:var(--tracker-chip-bg);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding-right:8px;vertical-align:middle;border:0;box-shadow:none}.chippy[_ngcontent-%COMP%]:focus{outline:1px solid var(--primary)}.logo[_ngcontent-%COMP%]{width:16px;height:16px}.name[_ngcontent-%COMP%]{margin-left:4px}.chippy.xs[_ngcontent-%COMP%]{margin-right:4px;padding:0 4px;min-height:15px}.chippy.xs[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:14px;height:14px}.onedev-hovercard-body[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.onedev-hovercard-body[_ngcontent-%COMP%]   .hovertext[_ngcontent-%COMP%]{margin-bottom:1em}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}.onedev-hovercard-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-8px}"],
changeDetection:0});var sN=function(){var a=this;this.activeSession=n(Es);this.trackerFridge=n(IG);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new tj(void 0);this.tracker$=this.trackerId$.pipe(fg(function(b){return b?a.trackerFridge.watch(b).pipe(Pf(function(){return Ce(void 0)})):Ce(void 0)}));this.isCurrentTracker$=this.trackerId$.pipe(y(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return d?d===b:!b}))};sN.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
ea.Object.defineProperties(sN.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});sN.\u0275fac=function(a){return new (a||sN)};
sN.\u0275cmp=B({type:sN,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},standalone:!1,features:[Uu],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(E(0,ESa,2,6,"b-tracker-chip",0),S(1,"async"));a&2&&F(T(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[rN,Qv],encapsulation:2,changeDetection:0});var tN=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new LA;this.expandComponent=new LA;this.goBack=new LA};tN.prototype.ngOnInit=function(){};tN.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};tN.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};tN.\u0275fac=function(a){return new (a||tN)};
tN.\u0275cmp=B({type:tN,selectors:[["component-row"]],inputs:{showFolderSpecialIcon:"showFolderSpecialIcon",componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},standalone:!1,decls:11,vars:7,consts:[[1,"container"],["svgIcon","history"],"type;button;mat-icon-button;;aria-label;Return to search results;matTooltip;Return to search results".split(";"),["type","button","mat-icon-button","",1,"expand-button",
3,"matTooltip"],[1,"content"],[1,"margin-s-right"],[1,"archived-indicator"],[3,"accessLevel","labelOnlyMode"],[3,"trackerId","showHovercard"],["type","button","mat-icon-button","","aria-label","Return to search results","matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["type","button","mat-icon-button","",1,"expand-button",3,"mousedown","matTooltip"],[3,"svgIcon"],[1,"subtle-link",3,"innerHtml"],[1,"subtle-link",3,"mousedown","innerHtml"],[1,"subtle-link"],[1,"subtle-link",
3,"mousedown"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,FSa,1,0,"mat-icon",1)(2,GSa,2,0,"button",2)(3,HSa,2,3,"button",3),I(4,"div",4)(5,"span",5),E(6,MSa,2,0)(7,OSa,1,1),E(8,PSa,2,0,"span",6),J(),K(9,"b-component-access-level-indicator",7)(10,"b-tracker-chip-smart",8),J()());a&2&&(z(),F(!0===(b.mode=="recent"||b.mode=="popular")?1:!0===(b.mode=="tree")?2:3),z(5),F(b.mode!=="leaf"?6:7),z(2),F(b.componentOption.archived?8:-1),z(),D("accessLevel",b.componentOption.accessLimit==null?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0),z(),D("trackerId",b.componentOption.trackerId)("showHovercard",!1))},dependencies:[aB,PA,Ux,YA,cB,sN,kN,RB,Nlc],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.content[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;margin-top:1px;line-height:20px}.mat-mdc-icon-button[_ngcontent-%COMP%]{width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:18px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mdc-icon-button-icon-size:18px;height:18px;width:18px;line-height:18px}.archived-indicator[_ngcontent-%COMP%]{margin-left:4px;color:#ea4335;color:var(--bad)}\n/*# sourceMappingURL=component_row.css.map */"]});var uN=function(a,b,c,d,e,f,h,k,q,u){var A=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=h;this.config=k;this.trackerHelpers=q;this.activeSession=u;this.includeArchived=!1;this.searchQuery$=new tj("");this.debouncedSearchQuery$=this.searchQuery$.pipe(Sf(250));this.state$=new tj("default");this.listUpdated$=new bg;this.componentsLoading=this.teamsLoading=!1;this.teamScope$=new tj(void 0);this.componentOptions=
[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.popularComponents=[];this.rawRecentComponents=[];this.recentComponents=[];this.myTeams$=new tj([]);this.showAllTeams$=new tj(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(Xf());this.teamOptions$=new tj([]);this.filteredTeamOptions$=Je([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(y(function(G){var H=l(G);G=H.next().value;return H.next().value?G:G.slice(0,5)}));this.hasHiddenTeams$=Je([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(y(function(G){var H=
l(G);G=H.next().value;H=H.next().value;return G.length>5&&!H}));this.newChildTeams$=new tj([]);this.teamsDisplayed$=Ue(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(y(function(G){return G?[G]:[]}))).pipe(y(function(G){return G.map(function(H){return H.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(y(function(G){return G.filter(function(H){return!A.childTeamsMap.has(H)})}),Ve(function(G){return G.length>0}),fg(function(G){return A.teamsService.getChildTeams(G)}),
y(TSa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(y(function(G){return G.filter(function(H){return!A.componentCountMap.has(H)})}),Ve(function(G){return G.length>0}),fg(function(G){return ltc(A.teamsService,G)}));this.componentIdSelected$=new ag(1);this.lastProcessedIndex=-1;this.requestIndex=0};
uN.prototype.init=function(a,b){var c=this;a=a===void 0?!1:a;vJc(this,b===void 0?null:b);Je([this.debouncedSearchQuery$.pipe(dg(a?1:0)),this.state$]).pipe(gg(this.destroyed$)).subscribe(function(d){var e=l(d);d=e.next().value;e=e.next().value;c.showAllTeams$.next(!1);e==="default"?d?c.state$.next("global"):(c.componentOptions=[],c.teamOptions$.next([]),c.listUpdated$.next()):e==="global"?d?(c.includeTeamData()&&wJc(c,d),xJc(c,d)):c.state$.next("default"):e==="team_scope"?c.teamScope$.value&&(c.teamOptions$.next([]),
xJc(c,"teamid:"+c.teamScope$.value.id+" "+d)):e==="component_scope"&&c.componentScope&&yJc(c,c.componentScope.id)});this.debouncedSearchQuery$.pipe(ig(this.state$),gg(this.destroyed$)).subscribe(function(d){var e=l(d);d=e.next().value;e.next().value==="component_scope"&&c.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(gg(this.destroyed$)).subscribe(function(d){d=l(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c.childTeamsMap.set(e,
f)}});this.unseenTeamComponentCountMap$.pipe(gg(this.destroyed$)).subscribe(function(d){d=l(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c.componentCountMap.set(e,f)}})};uN.prototype.includeTeamData=function(){return this.config.includeTeamData&&!Gq(this.activeSession)};
var vJc=function(a,b){b=b===void 0?null:b;a.componentsLoading=!0;var c=Promise.resolve(b!==null?kE(a.userAccess,"reader","components/"+b.componentId+"/issueDefaults"):!1).then(function(e){e&&a.componentApi.getPopularRoutingTargets(b.componentId).then(function(f){f=f.filter(function(h){return a.filterTrackerComponents(h)});f=zJc(a,f);a.popularComponents=f})}),d=a.userApi.getRecentComponents().then(function(e){e=e.filter(function(f){return a.filterTrackerComponents(f)});e=zJc(a,e);a.rawRecentComponents=
e});Promise.all([c,d]).finally(function(){a.recentComponents=a.rawRecentComponents.filter(function(e){return!a.popularComponents.some(function(f){return e.id===f.id})});a.listUpdated$.next();a.componentsLoading=!1});a.includeTeamData()&&(a.teamsLoading=!0,AG(a.teamsService,"").pipe(gg(a.destroyed$)).subscribe(function(e){a.myTeams$.next(e.map(QSa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
uN.prototype.filterTrackerComponents=function(a){var b;return!Gq(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};uN.prototype.selectOption=function(a){a.type==="component"?uUa(this,a.id):a.type==="team"?mTa(this,a):console.warn("invalid option selected")};
var uUa=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",AJc(a,b));var c=new Map;c.set("combined",[].concat(p(a.popularComponents),p(a.recentComponents)));c.set("popular",a.popularComponents);c.set("recent",a.rawRecentComponents);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;for(var f=null,h=0;h<e.length;h++){var k=void 0;if(b===((k=e[h])==null?void 0:k.id)){f=h+1;break}}f!=null?a.analytics.trackEvent("componentPicker",
"suggestionSuccess",d+"Success"):(h=void 0,((h=e)==null?void 0:h.length)>0?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoMatch"):a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoSuggestion"));f!=null&&(f===1&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N1"),f<=5&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N5"),f<=10&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N10"))}a.componentIdSelected$.next(b);
a.state$.next("global")},AJc=function(a,b){if(a.state$.value==="default")return a.popularComponents.some(function(e){return b===e.id})?"popular-component":"recent-component";if(a.state$.value==="global")return"global-search";if(a.state$.value==="component_scope")return"component-scope";if(a.state$.value==="team_scope"){var c,d=(c=a.teamScope$.value)==null?void 0:c.id;return a.myTeams$.value.some(function(e){return e.id===d})?"my-team":"team-scope"}return""};
uN.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var $Ta=function(a,b){a.componentActions.get(b).then(function(c){var d=rs(a.trackerHelpers,c.componentPathInfo);a.componentScope=SSa(c,d);a.state$.next("component_scope")})},ZTa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},mTa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||nTa(a,b.id)},nTa=function(a,b){a.teamsLoading=!0;AG(a.teamsService,b).pipe(gg(a.destroyed$)).subscribe(function(c){c=
c.map(QSa);if(c.length===1){c=c[0];var d,e=c.id!==((d=a.teamScope$.value)==null?void 0:d.id);a.teamScope$.next(c);a.teamsLoading=!1;e&&a.state$.next("team_scope")}},function(){a.teamsLoading=!1})},BJc=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;nTa(a,b[b.length-2])}};uN.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
uN.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var PTa=function(a,b){b.expanded=!1;a.listUpdated$.next()},QTa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},TTa=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},wJc=function(a,b){b.length>1&&(a.teamsLoading=!0,AG(a.teamsService,b).pipe(gg(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(QSa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},xJc=function(a,b){if(b.length>
1){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=zJc(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},yJc=function(a,b){var c=a.requestIndex++;a.componentsLoading=!0;a.componentActions.getChildren(b).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=zJc(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},zJc=function(a,b){return b.map(function(c){var d=rs(a.trackerHelpers,c.componentPathInfo);return SSa(c,d)})};var CJc=0,vN=function(){this.changeDetectorRef=n(qv);this.elementRef=n(ff);this.active=!1;this.id="b-component-picker-option-"+CJc++};vN.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};vN.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};vN.\u0275fac=function(a){return new (a||vN)};
vN.\u0275dir=Kf({type:vN,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Ig("id",b.id),wg("active",b.active))},inputs:{data:"data",listOrder:"listOrder"},standalone:!1});var wN=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new LA};wN.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};wN.prototype.ngOnInit=function(){};wN.\u0275fac=function(a){return new (a||wN)};
wN.\u0275cmp=B({type:wN,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},standalone:!1,decls:5,vars:7,consts:[[1,"container"],["alt",""],[1,"content"],[1,"name-row"],[1,"path"],[1,"team-name",3,"innerHtml"],[1,"no-component-label"],[1,"subtle-link"],[1,"subtle-link",3,"mousedown"],[1,"team-name"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,
USa,1,1,"img",1),I(2,"div",2),E(3,WSa,4,5,"div",3),E(4,dTa,3,0,"div",4),J()());a&2&&(wg("no-component",b.hasNoComponent)("compact",b.compact),z(),F(b.compact?-1:1),z(2),F(b.compact?-1:3),z(),F(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[RB],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:4px}.no-component[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-filter:grayscale(1);filter:grayscale(1)}.no-component[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-left:8px;width:100%}.container[_ngcontent-%COMP%]:not(.compact)   .path[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]:not(.compact)   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.container.compact[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{margin-left:2px}.name-row[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.no-component-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;margin-left:auto}img[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;object-fit:contain;width:20px;height:20px}\n/*# sourceMappingURL=team_row.css.map */"]});var DJc=["container"],EJc=["inputBox"],FJc=["dropdownTemplate"],GJc=["dropdown"],sTa=function(a){return{mode:"popular",$implicit:a}},wTa=function(a){return{mode:"recent",$implicit:a}},JTa=function(a){return{mode:"default",$implicit:a}},DTa=function(a){return[a]},CTa=function(a,b){return{team:a,level:0,order:b}},XTa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},UTa=function(){return[0]},MTa=function(a){return[0,a]},cUa=function(a){return{mode:"leaf",$implicit:a}},iUa=function(a,b,c){return{team:a,
level:b,order:c}},HJc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],IJc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],xN=function(){Z.apply(this,arguments);this.overlay=n(vx);this.viewContainerRef=n(Ug);this.userApi=n(ID);this.componentApi=n(hD);this.componentActions=n(oN);this.teamsService=n(yG);this.userAccess=n(jE);this.analytics=
n(CF);this.activeSession=n(Es);this.trackerHelpers=n(LK);this.cdr=n(qv);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new LA;this.shouldFocus=!1;this.touched=new LA;this.selectedComponentChange=new LA;this.dropdownClosed=new LA;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();this.searchState=new uN(this.userApi,this.userAccess,this.componentApi,this.componentActions,this.teamsService,
this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.trackerHelpers,this.activeSession);this.componentLoading=this.isDropdownOpen=!1};Y(xN,Z);xN.\u0275dir=Z.\u0275dir;
xN.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent,this.selectedComponent);this.searchState.componentIdSelected$.pipe(gg(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;JJc(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});Ue(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(gg(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
xN.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var JJc=function(a){if(a.selectedComponent){var b=rs(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=SSa(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},KJc=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;
a.dropdown.nativeElement.scrollTop=c<d?c:c+b>d+e?Math.max(0,c-e+b):d}};g=xN.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(JJc(this),this.checkAdminAccess&&this.selectedComponent&&LJc(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Iw(Jw(new Nw(this.listOptions)));this.searchState.listUpdated$.pipe(gg(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(gg(this.destroyed$)).subscribe(function(b){var c=b.toArray();b=c.filter(function(e){return e.listOrder==null});c=c.filter(function(e){return e.listOrder!=null}).sort(EUa);b=[].concat(p(c),p(b));a.listOptions.reset(b);var d;if((d=a.keyManager)==null?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
d>-1&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};g.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
g.close=function(a){a=a===void 0?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),this.searchState.state$.value==="team_scope"&&TTa(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),this.analytics.trackEvent("componentPicker","close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var MJc=function(a){var b,c,d;return(d=(b=a.keyManager)==null?void 0:(c=b.activeItem)==null?void 0:c.id)!=null?d:void 0};
xN.prototype.handleKeydown=function(a){var b=this;if(this.keyManager)switch(a.key){case "Escape":this.close();break;case "ArrowUp":a.preventDefault();this.isDropdownOpen?(this.keyManager.onKeydown(a),KJc(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||ucc(d);KJc(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),KJc(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);KJc(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?TTa(this.searchState):this.searchState.selectOption(this.keyManager.activeItem.data),a.preventDefault());break;case "ArrowRight":if(this.keyManager.activeItem){var c=this.keyManager.activeItem.data;c.type==="team"?(a.preventDefault(),QTa(this.searchState,c)):c.type==="component"&&(a.preventDefault(),this.searchState.expandComponent(c))}break;case "ArrowLeft":this.keyManager.activeItem&&this.keyManager.activeItem.data.type==="team"&&
(a.preventDefault(),this.searchState.teamScope$.value!==this.keyManager.activeItem.data||this.searchState.teamScope$.value.expanded?PTa(this.searchState,this.keyManager.activeItem.data):BJc(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),ZTa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(TTa(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var Eq=function(a){a.preventDefault();a.stopPropagation()},LJc=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;kE(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=xN.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new ex({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};g.attach=function(){var a=new px(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
g.getPositionStrategy=function(){var a=this.showOverlayAbove?IJc:HJc;return hx(Rcc(jx(mx(this.overlay.position(),this.container),!1),!1),a)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};g.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};
ea.Object.defineProperties(xN.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});xN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(xN)))(b||xN)}}();
xN.\u0275cmp=B({type:xN,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(Wg(DJc,7),Wg(EJc,7),Wg(FJc,7),Wg(GJc,5),Wg(vN,5));if(a&2){var c;$g(c=ah())&&(b.container=c.first);$g(c=ah())&&(b.inputBox=c.first);$g(c=ah())&&(b.dropdownTemplateRef=c.first);$g(c=ah())&&(b.dropdown=c.first);$g(c=ah())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",showOverlayAbove:"showOverlayAbove",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",
shouldFocus:"shouldFocus",includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},standalone:!1,features:[kg,Uu],decls:13,vars:10,consts:[["container",""],["inputBox",""],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["dropdown",""],[1,"container","pseudo-input"],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-autocomplete",
"list",1,"override",3,"ngModelChange","keydown","click","focus","blur","ngModel","placeholder","required"],"type;button;mat-icon-button;;tabindex;-1;matTooltip;Clear component;aria-label;Clear component".split(";"),["type","button","mat-icon-button","","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown"],["svgIcon","clear"],[1,"bv2-picker-checking"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,"mousedown"],[1,"progress-bar-container"],
["mode","indeterminate"],[1,"dropdown-content"],["role","tree"],[1,"section-header"],["role","treeitem","listOption","",1,"list-option",3,"data"],["role","treeitem","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectTeamId","teamOption","query","hasNoComponent"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button",3,"mousedown"],["svgIcon","arrow-down"],
[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"selectTeamId","teamOption","query","compact","allowSegmentSelection"],["type","button","tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"small","clear-filter",3,"mousedown"],["svgIcon","close"],[1,"team-scope-child-teams"],[1,"component-scope-container"],[1,"title"],["mode","tree",3,"goBack","selectComponentId","componentOption"],["role","treeitem","listOption","",1,"list-option",3,"mousedown",
"listOrder","data"],[1,"team-row-container"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox"],["role","option","listOption","",1,"list-option",3,"data"],["role","option","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectComponentId","expandComponent","showFolderSpecialIcon","componentOption","query",
"mode"],[1,"empty-list","muted"],["svgIcon","close",1,"icon-xs","valign-middle"],["href","http://go/buganizer:component-mapping#associate","target","_blank"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){if(a&1){var c=r();I(0,"div",6,0)(2,"input",7,1);S(4,"async");M("ngModelChange",function(d){t(c);return v(b.searchState.searchQuery$.next(d))})("keydown",function(d){t(c);return v(b.handleKeydown(d))})("click",function(){t(c);b.open();return v(b.touched.emit())})("focus",function(){t(c);
return v(b.open())})("blur",function(){t(c);return v(b.close())});J();E(5,eTa,2,0,"button",8);J();E(6,iTa,3,1,"div");C(7,fUa,6,2,"ng-template",null,2,nh)(9,oUa,5,11,"ng-template",null,3,nh)(11,DUa,2,1,"ng-template",null,4,nh)}a&2&&(a=L(3),z(2),D("ngModel",T(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired),ng("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",
MJc(b)),z(3),F(a.value?5:-1),z(),F(b.checkAdminAccess?6:-1))},dependencies:[Pv,aB,Li,oy,Gy,vy,PA,Ux,HL,YA,cB,VA,TA,wN,tN,vN,Qv],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple{background-color:#1a73e8;background-color:var(--primary-c600);opacity:.12}.team-scope-container[_ngcontent-%COMP%]{margin-bottom:10px}.expand-team-line-button[_ngcontent-%COMP%]{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:4px;margin-left:12px;color:#1a73e8;color:var(--link)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon.expanded[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.mat-mdc-icon-button[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:20px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mdc-icon-button-icon-size:16px;height:16px;width:16px;line-height:16px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:not(.expanded){-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.indent[_ngcontent-%COMP%]{margin-left:24px}.arrow-button[_ngcontent-%COMP%]{margin-right:4px}.team-scope-child-teams[_ngcontent-%COMP%]   .list-option[_ngcontent-%COMP%]{padding-left:14px}.component-scope-container[_ngcontent-%COMP%] > .title[_ngcontent-%COMP%]{font-weight:700;padding:4px 16px;background-color:#f1f3f4;background-color:var(--c100)}.component-scope-container[_ngcontent-%COMP%] > component-row[_ngcontent-%COMP%]{display:block;margin-left:10px}.empty-list[_ngcontent-%COMP%]{padding:4px 18px}button.clear-filter[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}\n/*# sourceMappingURL=team_component_picker.css.map */"],
changeDetection:0});var yN=function(){this.warningChunks=[]};yN.prototype.ngOnInit=function(){var a=this.warningText,b=JUa(a,"EXTERNAL_PUBLIC")||JUa(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};yN.\u0275fac=function(a){return new (a||yN)};
yN.\u0275cmp=B({type:yN,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},standalone:!1,decls:3,vars:0,consts:[[3,"accessLevel"]],template:function(a,b){a&1&&(I(0,"div"),Dg(1,HUa,3,1,"span",null,Cg),J());a&2&&(z(),Eg(b.warningChunks))},dependencies:[kN],encapsulation:2});var IUa=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var NJc=["input"],OJc=["formField"],PJc=function(a,b){this.source=a;this.value=b},QJc={provide:iy,useExisting:ld(function(){return zN}),multi:!0},RJc=new yd("MatRadioGroup"),SJc=new yd("mat-radio-default-options",{providedIn:"root",factory:KUa}),zN=function(){this._changeDetector=n(qv);this._value=null;this._name=n(Gw).getId("mat-radio-group-");this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=function(){};this.onTouched=
function(){};this.change=new hv;this._disabledInteractive=!1};g=zN.prototype;g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};g.ngAfterContentInit=function(){var a=this;this._isInitialized=!0;this._buttonChanges=this._radios.changes.subscribe(function(){a.selected&&!a._radios.find(function(b){return b===a.selected})&&(a._selected=null)})};g.ngOnDestroy=function(){var a;(a=this._buttonChanges)==null||a.unsubscribe()};g._touch=function(){if(this.onTouched)this.onTouched()};
g._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};g._updateSelectedRadioFromValue=function(){var a=this,b=this._selected!==null&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};g._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new PJc(this._selected,this._value))};
g._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};g.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
ea.Object.defineProperties(zN.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._name=a;this._updateRadioButtonNames()}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition},set:function(a){this._labelPosition=a==="before"?"before":"after";this._markRadiosForCheck()}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,this._updateSelectedRadioFromValue(),
this._checkSelectedRadioButton())}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this.value=(this._selected=a)?a.value:null;this._checkSelectedRadioButton()}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=a;this._markRadiosForCheck()}},disabledInteractive:{configurable:!0,
enumerable:!0,get:function(){return this._disabledInteractive},set:function(a){this._disabledInteractive=a;this._markRadiosForCheck()}}});zN.\u0275fac=function(a){return new (a||zN)};
zN.\u0275dir=Kf({type:zN,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&Xg(c,AN,5);if(a&2){var d;$g(d=ah())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",Dh],required:[2,"required","required",Dh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dh]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[hh([QJc,{provide:RJc,useExisting:zN}])]});
var AN=function(){var a=this;this._elementRef=n(ff);this._changeDetector=n(qv);this._focusMonitor=n(gw);this._radioDispatcher=n($w);this._defaultOptions=n(SJc,{optional:!0});this._ngZone=n(ph);this._renderer=n(jv);this.id=this._uniqueId=n(Gw).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new hv;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=Hi();this._injector=n(Ze);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};n(kw).load(Gx);var b=n(RJc,{optional:!0}),c=n(new Vu("tabindex"),{optional:!0});this.radioGroup=b;var d,e;this._disabledInteractive=(e=(d=this._defaultOptions)==null?void 0:d.disabledInteractive)!=null?e:!1;c&&(this.tabIndex=Eh(c,0))};g=AN.prototype;g.focus=function(a,b){b?hw(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};
g.ngOnInit=function(){var a=this;if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}this._removeUniqueSelectionListener=this._radioDispatcher.listen(function(b,c){b!==a.id&&c===a.name&&(a.checked=!1)})};g.ngDoCheck=function(){this._updateTabIndex()};
g.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()});this._ngZone.runOutsideAngular(function(){a._cleanupClick=a._renderer.listen(a._inputElement.nativeElement,"click",a._onInputClick)})};g.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};
g._emitChangeEvent=function(){this.change.emit(new PJc(this,this._value))};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};
g._onTouchTargetClick=function(a){this._onInputInteraction(a);if(!this.disabled||this.disabledInteractive){var b;(b=this._inputElement)==null||b.nativeElement.focus()}};g._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
g._updateTabIndex=function(){var a=this,b=this.radioGroup;var c=b&&b.selected&&!this.disabled?b.selected===this?this.tabIndex:-1:this.tabIndex;if(c!==this._previousTabIndex){var d,e=(d=this._inputElement)==null?void 0:d.nativeElement;e&&(e.setAttribute("tabindex",c+""),this._previousTabIndex=c,$e(function(){queueMicrotask(function(){if(b&&b.selected&&b.selected!==a&&document.activeElement===e){var f;(f=b.selected)==null||f._inputElement.nativeElement.focus();document.activeElement===e&&a._inputElement.nativeElement.blur()}})},
{injector:this._injector}))}};
ea.Object.defineProperties(AN.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked!==a&&((this._checked=a)&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!a&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),a&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value!==
a&&(this._value=a,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},labelPosition:{configurable:!0,enumerable:!0,get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled},set:function(a){this._setDisabled(a)}},required:{configurable:!0,
enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=a}},color:{configurable:!0,enumerable:!0,get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"},set:function(a){this._color=a}},disabledInteractive:{configurable:!0,enumerable:!0,get:function(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive},set:function(a){this._disabledInteractive=
a}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});AN.\u0275fac=function(a){return new (a||AN)};
AN.\u0275cmp=B({type:AN,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(Wg(NJc,5),Wg(OJc,7,ff));if(a&2){var c;$g(c=ah())&&(b._inputElement=c.first);$g(c=ah())&&(b._rippleTrigger=c.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(a,b){a&1&&M("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(ng("id",b.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),wg("mat-primary",b.color==="primary")("mat-accent",
b.color==="accent")("mat-warn",b.color==="warn")("mat-mdc-radio-checked",b.checked)("mat-mdc-radio-disabled",b.disabled)("mat-mdc-radio-disabled-interactive",b.disabledInteractive)("_mat-animation-noopable",b._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:Eh(a)}],checked:[2,"checked","checked",Dh],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",Dh],required:[2,"required","required",Dh],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dh]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:["*"],decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type",
"radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",2,0)(2,"div",3)(3,"div",4);M("click",function(d){t(c);return v(b._onTouchTargetClick(d))});
J();I(4,"input",5,1);M("change",function(d){t(c);return v(b._onInputInteraction(d))});J();I(6,"div",6);K(7,"div",7)(8,"div",8);J();I(9,"div",9);K(10,"div",10);J()();I(11,"label",11);Og(12);J()()}a&2&&(D("labelPosition",b.labelPosition),z(2),wg("mdc-radio--disabled",b.disabled),z(2),D("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),ng("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",
b.ariaDescribedby)("aria-disabled",b.disabled&&b.disabledInteractive?"true":null),z(5),D("matRippleTrigger",b._rippleTrigger.nativeElement)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0),z(2),D("for",b.inputId))},dependencies:[Jx,Hx],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px);top:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var BN=function(){this.data=n(sK);this.documentationLinks=n(lK);this.dialogRef=n(mK);var a=this.documentationLinks;this.learnMore=a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/access-control":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-dos-donts#moving-issues-to-a-new-component";this.acknowledged=!0;this.header=this.data.response.warningHeader;this.warning=this.data.response.warning;this.isExternalMove=this.data.response.isExternalMove;this.isLimitNoneIssueTrackerMove=
this.data.isLimitNoneIssueTrackerMove;this.setLimitViewTrusted=this.isExternalMove&&this.isLimitNoneIssueTrackerMove;this.isAllowed=this.data.response.isAllowed;this.callbacks=this.data.callbacks;this.isExternalMove&&!this.isLimitNoneIssueTrackerMove&&(this.acknowledged=!1)};BN.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
BN.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};BN.\u0275fac=function(a){return new (a||BN)};
BN.\u0275cmp=B({type:BN,selectors:[["b-component-move-warning"]],standalone:!1,decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],["type","button","mat-button","","mat-dialog-close","",1,"medium",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"disabled"],["aria-labelledby","issue-access-limit-radio-label",3,"ngModelChange","ngModel"],[1,"margin-s-bottom",3,"value"],[3,"value"],[3,
"ngModelChange","ngModel"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"div",1)(3,"div",2),K(4,"b-component-move-warning-content",3),J(),K(5,"br"),I(6,"a",4),Q(7,"Learn more"),J(),E(8,NUa,3,1,"div"),J(),I(9,"mat-dialog-actions")(10,"button",5),M("click",function(){return b.cancel()}),Q(11," Cancel "),J(),E(12,OUa,2,1,"button",6),J());a&2&&(z(),ch(b.header),z(3),D("warningText",b.warning),z(2),ng("href",b.learnMore,
uf),z(2),F(b.isExternalMove&&b.isAllowed?8:-1),z(4),F(b.isAllowed?12:-1))},dependencies:[oy,vy,PA,Tx,zN,AN,yM,CM,uK,wK,yK,xK,yN],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var TJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,TJc.messageId)};Y(TJc,V);TJc.messageId="b.CompareComponentAccessResponse";var CN=function(){this.executor=n(zC)};CN.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:TJc}).then(xCa)};CN.\u0275fac=function(a){return new (a||CN)};CN.\u0275prov=Sc({token:CN,factory:CN.\u0275fac,providedIn:"root"});var DN=function(){this.issueInteractionsTracking=n(hL);this.issueFullFridge=n(EF);this.componentFridge=n(jD);this.butterBar=n(iK);this.compareComponentAccess=n(CN);this.matDialogService=n(tK);this.editIssueService=n(oL);this.activeSession=n(Es)};
DN.prototype.updateComponent=function(a,b){var c=this,d,e,f,h,k,q,u,A,G,H,N,O;return w(function(U){switch(U.nextAddress){case 1:a=String(a);Oq(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return U.return(!1);d=l;return x(U,Promise.all([Ge(c.issueFullFridge.watch(a)),Ge(c.componentFridge.watch(b))]),2);case 2:e=d(U.yieldResult);f=e.next().value;h=e.next().value;k=f;q=h;if(!k)return c.butterBar.showWarning("Could not load issue "+a),U.return(!1);if(!q)return c.butterBar.showWarning("Could not load component "+
b),U.return(!1);u=k.snapshot[0].componentId;return u===b?U.return(!1):x(U,c.compareComponentAccess.check(String(u),String(b),a),3);case 3:A=U.yieldResult;G=!!q.trackerId;H=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";N=Yr(c.activeSession,"enableTrackerBoundaryImprovements")&&G&&H;O={allow:!1,setLimitViewTrusted:!1};if(!A.warning){U.jumpTo(4);break}return x(U,UJc(c,A,N),5);case 5:if(O=U.yieldResult,!O.allow)return U.return(!1);case 4:return x(U,c.editIssueService.updateComponent(a,b,A.isExternalMove,
O.setLimitViewTrusted),6);case 6:return U.return(!0)}})};var UJc=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){nK(a.matDialogService.open(BN,{width:"580px",data:{response:b,isLimitNoneIssueTrackerMove:c,callbacks:{allow:function(e){d({allow:!0,setLimitViewTrusted:e})},cancel:function(){d({allow:!1,setLimitViewTrusted:!1})}}}})).subscribe(function(){d({allow:!1,setLimitViewTrusted:!1})})})};DN.\u0275fac=function(a){return new (a||DN)};
DN.\u0275prov=Sc({token:DN,factory:DN.\u0275fac,providedIn:"root"});var EN=function(){this.bLocation=n(cI);this.listIssues=Fq.listIssues.makeHref;this.createIssue=Fq.createIssue.makeHref};EN.prototype.viewSavedSearch=function(a,b){return PUa(Fq.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var VJc=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new Qp(a);b=new Qp(b);return a.getPath()===b.getPath()&&xH(a.queryData_.toString())===xH(b.queryData_.toString())};g=EN.prototype;g.createBookmarkGroup=function(){return Fq.createBookmarkGroup.routeDeclarationPath};
g.viewBookmarkGroup=function(a){return PUa(Fq.viewBookmarkGroup.routeDeclarationPath,{id:a})};g.editBookmarkGroup=function(a){return Iq(Fq.editBookmarkGroup.routeDeclarationPath,{id:a})};g.editSavedSearch=function(a){return Iq(Fq.editSavedSearch.routeDeclarationPath,{id:a})};g.getBaseUrl=function(){var a=this.bLocation.platformLocation.href;a=a.slice(0,a.length-this.bLocation.getUrl().length);a.charAt(a.length-1)==="/"&&(a=a.slice(0,a.length-1));return a};
g.settings=function(a){return a?Iq(Fq.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):Iq(Fq.settings.routeDeclarationPath)};g.home=function(){return Iq(Fq.home.routeDeclarationPath,{params:void 0})};EN.\u0275fac=function(a){return new (a||EN)};EN.\u0275prov=Sc({token:EN,factory:EN.\u0275fac,providedIn:"root"});var WJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WJc,V);g=WJc.prototype;g.getFormattingMode=function(){return pl(this,1)};g.setFormattingMode=function(a){return Nk(this,1,a)};g.getSource=function(){return Oh(this,2)};g.setSource=function(a){return Lk(this,2,a)};g.getIssueId=function(){return Dl(this,3)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,3)};g.getIssueId_asString=function(){return Gl(this,3)};
g.setIssueId=function(a){return Fm(this,3,a)};g.getIdPrefix=function(){return Oh(this,4)};g.setIdPrefix=function(a){return Lk(this,4,a)};var FN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,FN.messageId)};Y(FN,V);FN.prototype.getIt=function(){return X(this,WJc,8)};FN.prototype.setIt=function(a){return W(this,WJc,8,a)};FN.messageId="b.FormatCommentRequest";var GN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GN,V);GN.prototype.getFormattedComment=function(){return X(this,tn,1)};GN.prototype.hasFormattedComment=function(){return nk(this,tn,1)};GN.prototype.getMentionsList=function(a){return Wk(this,Alc,2,Fk(a))};var HN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,HN.messageId)};Y(HN,V);HN.prototype.getIt=function(){return X(this,GN,3)};HN.prototype.setIt=function(a){return W(this,GN,3,a)};HN.messageId="b.FormatCommentResponse";var IN=function(){this.executor=n(yC);this.activeSession=n(Es)};IN.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?XUa(a):XJc(this,a).pipe(y(WUa))};
var XJc=function(a,b){var c,d=(new WJc).setFormattingMode(fn(b.formattingMode)).setSource(b.comment).setIssueId((c=Qk(b.issueId))!=null?c:0).setIdPrefix(b.idPrefix);c=b.audience==="EXTERNAL";var e=a.activeSession.getTracker();c=c?(e==null?void 0:e.externalBaseUrl)||a.activeSession.getExternalBaseUrl():(e==null?void 0:e.internalBaseUrl)||a.activeSession.getInternalBaseUrl();d=Lk(d,5,c);b=Nk(d,6,Tkc[b.audience]);return a.executor.post({url:"action/formatComment",body:(new FN).setIt(b),responseConstructor:HN})};
IN.\u0275fac=function(a){return new (a||IN)};IN.\u0275prov=Sc({token:IN,factory:IN.\u0275fac,providedIn:"root"});var YJc=function(){this.documentationLinks=n(lK)};YJc.\u0275fac=function(a){return new (a||YJc)};
YJc.\u0275cmp=B({type:YJc,selectors:[["b-issue-component-retention-dialog"]],standalone:!1,decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(I(0,"h1",0),Q(1,"Apply component retention settings?"),
J(),I(2,"div",1)(3,"p"),Q(4," This issue is currently retained indefinitely. If you select this option, this issue will be scheduled for deletion based on the component retention settings. "),J(),I(5,"a",2),Q(6,"Learn more"),J()(),I(7,"div",3)(8,"button",4),Q(9," Cancel "),J(),I(10,"button",5),Q(11," OK "),J()());a&2&&(z(5),D("href",zs(),uf),z(3),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0))},dependencies:[uK,wK,yK,xK,PA,Tx],encapsulation:2});var ZJc=function(){this.documentationLinks=n(lK);this.data=n(sK);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};ZJc.\u0275fac=function(a){return new (a||ZJc)};
ZJc.\u0275cmp=B({type:ZJc,selectors:[["b-issue-delete-attachment-dialog"]],standalone:!1,decls:15,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"div",1)(3,"span"),Q(4," Please select the reason for deleting this attachment. "),I(5,"a",2),Q(6," \u00a0Learn more "),J()(),I(7,"mat-radio-group",3),gh("ngModelChange",function(c){fh(b.selectedReason,c)||(b.selectedReason=c);return c}),Dg(8,ZUa,3,4,"mat-radio-button",4,Cg),J()(),I(10,"div",5)(11,"button",6),Q(12," Cancel "),J(),I(13,"button",7),Q(14," Delete "),J()());a&2&&(z(),R("Delete attachment ",b.attachmentId),z(4),D("href",
cEc(b.documentationLinks),uf),z(2),eh("ngModel",b.selectedReason),z(),Eg(b.deletionReasons),z(5),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[uK,wK,yK,xK,PA,Tx,oy,vy,zN,AN],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var $Jc=function(){this.documentationLinks=n(lK);this.data=n(sK);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};$Jc.\u0275fac=function(a){return new (a||$Jc)};
$Jc.\u0275cmp=B({type:$Jc,selectors:[["b-issue-delete-comment-dialog"]],standalone:!1,decls:15,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"div",1)(3,"label"),Q(4,"Please select the reason for deleting this comment."),J(),I(5,"a",2),Q(6," \u00a0Learn more "),J(),I(7,"mat-radio-group",3),gh("ngModelChange",function(c){fh(b.selectedReason,c)||(b.selectedReason=c);return c}),Dg(8,aVa,3,4,"mat-radio-button",4,Cg),J()(),I(10,"div",5)(11,"button",6),Q(12," Cancel "),J(),I(13,"button",7),Q(14," Delete "),J()());a&2&&(z(),dh("Delete Comment #",b.commentNumber," of Issue ",b.issueId),
z(4),D("href",cEc(b.documentationLinks),uf),z(2),eh("ngModel",b.selectedReason),z(),Eg(b.deletionReasons),z(5),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[uK,wK,yK,xK,PA,Tx,oy,vy,zN,AN],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var aKc=function(){this.documentationLinks=n(lK);this.activeSession=n(Es);this.REMOVAL_URL=bVa(this.activeSession.isInternalSession())};aKc.\u0275fac=function(a){return new (a||aKc)};
aKc.\u0275cmp=B({type:aKc,selectors:[["b-issue-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Report spam?"),
J(),I(2,"div",1)(3,"p"),Q(4," This will remove the issue from search results, and it will be deleted after 30 days. For more information on remediating spam at scale, "),I(5,"a",2),Q(6,"see here"),J(),Q(7,". "),J(),K(8,"p"),I(9,"p"),Q(10," To delete PII or other sensitive content, "),I(11,"a",2),Q(12,"file a support request"),J(),Q(13,". "),J()(),I(14,"div",3)(15,"button",4),Q(16," Cancel "),J(),I(17,"button",5),Q(18," Report spam "),J()());a&2&&(z(5),D("href",bEc(b.documentationLinks),uf),z(6),D("href",
b.REMOVAL_URL,uf),z(4),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0))},dependencies:[uK,wK,yK,xK,PA,Tx],encapsulation:2});var bKc=function(){this.documentationLinks=n(lK);this.indefiniteRetentionAcknowledged=!1};bKc.\u0275fac=function(a){return new (a||bKc)};
bKc.\u0275cmp=B({type:bKc,selectors:[["b-issue-indefinite-retention-dialog"]],standalone:!1,decls:28,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","",3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(I(0,"h1",
0),Q(1,"Retain issue indefinitely?"),J(),I(2,"div",1)(3,"p"),Q(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),J(),I(5,"p")(6,"b"),Q(7,"Please note indefinite retention is not appropriate in many circumstances."),J(),K(8,"br"),Q(9," Before selecting this option, you should make sure at least one of the following is true: "),J(),I(10,"ul")(11,"li"),Q(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
J(),I(13,"li"),Q(14," You have a process in place to manually delete this issue within an approved period of time. "),J(),I(15,"li"),Q(16," Legal and Privacy have approved this non-standard retention period. "),J()(),K(17,"p"),I(18,"p")(19,"a",2),Q(20,"Learn more"),J()(),I(21,"mat-checkbox",3),M("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),Q(22," I acknowledge "),J()(),I(23,"div",4)(24,"button",5),Q(25," Cancel "),J(),I(26,"button",6),Q(27," OK "),J()());a&2&&(z(19),D("href",
zs(),uf),z(2),D("checked",b.indefiniteRetentionAcknowledged),z(3),D("mat-dialog-close",!1),z(2),D("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[uK,wK,yK,xK,PA,Tx,yM,CM],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var JN=function(){Z.apply(this,arguments);this.userPreferencesManager=n(OG);this.timestamps$=this.userPreferencesManager.preferences$.pipe(y(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Y(JN,Z);JN.\u0275dir=Z.\u0275dir;var cKc=function(a,b){return a.timestamps$.pipe(y(function(c){return c?!!c[b]:!1}))};JN.prototype.isDismissed=function(a){return Ge(cKc(this,a))};
JN.prototype.dismiss=function(a){var b=this;return this.timestamps$.pipe(Uf(),y(function(c){var d={};return{dismissalTimestamps:Object.assign({},c,(d[a]=new Date(Date.now()),d))}}),fg(function(c){return b.userPreferencesManager.save(c)}),y(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};JN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(JN)))(b||JN)}}();JN.\u0275prov=Sc({token:JN,factory:JN.\u0275fac,providedIn:"root"});var KN=function(){Z.apply(this,arguments);this.data=n(sK);this.dialogRef=n(mK);this.dismissalService=n(JN);this.dontShowAgain=!1};Y(KN,Z);KN.\u0275dir=Z.\u0275dir;KN.prototype.confirm=function(){var a=this,b;return w(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=cVa(a.data.action);return x(c,Ge(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);ze(c)})};KN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(KN)))(b||KN)}}();
KN.\u0275cmp=B({type:KN,selectors:[["b-share-email-confirmation-dialog"]],standalone:!1,features:[kg],decls:9,vars:2,consts:[["mat-dialog-content",""],[3,"innerHTML"],[3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"div",1),I(2,"mat-checkbox",2),M("change",function(c){return b.dontShowAgain=c.checked}),
Q(3," Don't show this again "),J()(),I(4,"div",3)(5,"button",4),M("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),J(),I(7,"button",5),M("click",function(){return b.confirm()}),Q(8," Confirm "),J()());a&2&&(z(),D("innerHTML",b.data.content,tf),z(),D("checked",b.dontShowAgain))},dependencies:[yK,xK,PA,Tx,yM,CM],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var dKc=function(){this.text="..."};dKc.\u0275fac=function(a){return new (a||dKc)};
dKc.\u0275cmp=B({type:dKc,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("large",b.large)},inputs:{large:"large",text:"text"},standalone:!1,decls:2,vars:1,template:function(a,b){a&1&&(I(0,"label"),Q(1),J());a&2&&(z(),R(" ",b.text," "))},styles:["[_nghost-%COMP%]{padding:2px 6px}.large[_nghost-%COMP%]{line-height:42px;min-width:80px;padding-left:16px;padding-right:16px;text-align:center}[_nghost-%COMP%]{display:inline-block;border-radius:4px;padding-left:4px;padding-right:4px;-webkit-animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;background:-webkit-linear-gradient(315deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%;background:linear-gradient(135deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%}@-webkit-keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}label[_ngcontent-%COMP%]{color:#0a0a0a;mix-blend-mode:color-burn}.dark-mode   [_nghost-%COMP%]     label{color:#e9e9e9;mix-blend-mode:color-dodge}\n/*# sourceMappingURL=ai_spinner.css.map */"],changeDetection:0});var eKc=new yd("GMAT_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var fKc=["determinateSpinner"],gKc=new yd("mat-progress-spinner-default-options",{providedIn:"root",factory:eVa}),LN=function(){this._elementRef=n(ff);this._defaultColor="primary";this._value=0;this._diameter=100;var a=n(gKc);this._noopAnimations=Hi()&&!!a&&!a._forceAnimations;this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate";a&&(a.color&&(this.color=this._defaultColor=a.color),a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=
a.strokeWidth))};g=LN.prototype;g._circleRadius=function(){return(this.diameter-10)/2};g._viewBox=function(){var a=this._circleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};g._strokeCircumference=function(){return 2*Math.PI*this._circleRadius()};g._strokeDashOffset=function(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null};g._circleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
ea.Object.defineProperties(LN.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color||this._defaultColor},set:function(a){this._color=a}},value:{configurable:!0,enumerable:!0,get:function(){return this.mode==="determinate"?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,a||0))}},diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=a||0}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){var a;
return(a=this._strokeWidth)!=null?a:this.diameter/10},set:function(a){this._strokeWidth=a||0}}});LN.\u0275fac=function(a){return new (a||LN)};
LN.\u0275cmp=B({type:LN,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&Wg(fKc,5);if(a&2){var c;$g(c=ah())&&(b._determinateCircle=c.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(a,b){a&2&&(ng("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode),xg("mat-"+b.color),vg("width",b.diameter,"px")("height",b.diameter,"px")("--mdc-circular-progress-size",
b.diameter+"px")("--mdc-circular-progress-active-indicator-width",b.diameter+"px"),wg("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Eh],diameter:[2,"diameter","diameter",Eh],strokeWidth:[2,"strokeWidth","strokeWidth",Eh]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],
["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(C(0,dVa,2,8,"ng-template",null,0,nh),I(2,"div",2,1),Vd(),I(4,"svg",3),K(5,"circle",4),J()(),Wd(),I(6,"div",5)(7,"div",6)(8,"div",7),Hg(9,8),J(),I(10,"div",9),Hg(11,8),J(),I(12,"div",10),Hg(13,8),J()()());a&2&&(a=L(1),z(4),ng("viewBox",b._viewBox()),z(),vg("stroke-dasharray",b._strokeCircumference(),"px")("stroke-dashoffset",b._strokeDashOffset(),
"px")("stroke-width",b._circleStrokeWidth(),"%"),ng("r",b._circleRadius()),z(4),D("ngTemplateOutlet",a),z(2),D("ngTemplateOutlet",a),z(2),D("ngTemplateOutlet",a))},dependencies:[Pv],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],
encapsulation:2,changeDetection:0});var MN=function(){};MN.\u0275fac=function(a){return new (a||MN)};MN.\u0275mod=Jf({type:MN});MN.\u0275inj=Tc({imports:[zx]});var NN=function(a,b){var c=this;this.options=a;this.progressSpinner=b;this.destroyed=new bg;this.labelElement=document.createElement("label");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");yta(b._elementRef.nativeElement).pipe(gg(this.destroyed)).subscribe(function(d){c.writeLabelSpan(d[0],d[1])})};NN.prototype.ngOnInit=function(){this.initializeLabelSpan()};
NN.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};NN.prototype.initializeLabelSpan=function(){this.progressSpinner._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressSpinner._elementRef.nativeElement.getAttribute("aria-label");this.writeLabelSpan(a!=null?a:"",this.progressSpinner.mode==="indeterminate"?"indeterminate":this.progressSpinner.value.toString())};
NN.prototype.writeLabelSpan=function(a,b){a=b==="indeterminate"?a:a+" "+dkc.format(Number(b)/100);this.labelElement.textContent=a};NN.\u0275fac=function(a){return new (a||NN)(zf(eKc),zf(LN,10))};NN.\u0275dir=Kf({type:NN,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&2&&(ng("tabindex",null),wg("gmat-mdc-progress-spinner",!b.options.disableGmatStyle))},standalone:!1});var ON=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};ON.\u0275fac=function(a){return new (a||ON)};ON.\u0275cmp=B({type:ON,selectors:[["b-spinner"]],inputs:{large:"large",ariaLabel:"ariaLabel"},standalone:!1,decls:2,vars:2,consts:[[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(E(0,fVa,1,2,"mat-spinner",0),E(1,gVa,1,3,"mat-spinner",1));a&2&&(F(b.large?0:-1),z(),F(b.large?-1:1))},dependencies:[NN,LN],styles:[".muted[_nghost-%COMP%]     .mat-mdc-progress-spinner circle, .muted[_nghost-%COMP%]     .mat-mdc-progress-spinner circle{stroke:rgba(0,0,0,.4)}[_nghost-%COMP%]     .mat-mdc-progress-spinner circle, [_nghost-%COMP%]     .mat-mdc-progress-spinner circle{stroke:var(--text-primary)}.large[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;margin-left:-18px;margin-top:-18px}[_nghost-%COMP%]{animation-delay:150ms;animation-duration:200ms;animation-name:_ngcontent-%COMP%_fade-in;animation-timing-function:linear;animation-fill-mode:both;display:inline-block;vertical-align:middle}[_nghost-%COMP%]     mat-spinner.small{margin-top:-2px}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0}100%{opacity:1}}/*# sourceMappingURL=spinner.css.map */"]});var PN=function(){};PN.\u0275fac=function(a){return new (a||PN)};PN.\u0275mod=Jf({type:PN});PN.\u0275inj=Tc({imports:[MN]});var QN=function(){};QN.\u0275fac=function(a){return new (a||QN)};QN.\u0275mod=Jf({type:QN});QN.\u0275inj=Tc({imports:[ZB,PN]});var hKc=new yd("GMAT_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var iKc=function(a){this._items=a};iKc.prototype.hide=function(){this._items.forEach(function(a){return jKc(a)});this._currentItem=void 0};
var lKc=function(a,b){var c=a._items.find(function(h){return h.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||jKc(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);kKc(c,d);a._currentItem=c}},RN=function(){this._elementRef=n(ff);this._fitToContent=!1},kKc=function(a,b){var c=a._elementRef.nativeElement;if(b&&c.getBoundingClientRect&&a._inkBarContentElement){var d=c.getBoundingClientRect(),e=b.width/d.width;b=b.left-
d.left;c.classList.add("mdc-tab-indicator--no-transition");a._inkBarContentElement.style.setProperty("transform","translateX("+b+"px) scaleX("+e+")");c.getBoundingClientRect();c.classList.remove("mdc-tab-indicator--no-transition");c.classList.add("mdc-tab-indicator--active");a._inkBarContentElement.style.setProperty("transform","")}else c.classList.add("mdc-tab-indicator--active")},jKc=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};RN.prototype.ngOnInit=function(){this._createInkBarElement()};
RN.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};RN.prototype._createInkBarElement=function(){var a=this._elementRef.nativeElement.ownerDocument||document,b=this._inkBarElement=a.createElement("span");a=this._inkBarContentElement=a.createElement("span");b.className="mdc-tab-indicator";a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline";b.appendChild(this._inkBarContentElement);this._appendInkBarElement()};
RN.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};ea.Object.defineProperties(RN.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});RN.\u0275fac=function(a){return new (a||RN)};
RN.\u0275dir=Kf({type:RN,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Dh]}});new yd("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var mKc=new yd("MatTabContent"),SN=function(){this.template=n(Tg)};SN.\u0275fac=function(a){return new (a||SN)};SN.\u0275dir=Kf({type:SN,selectors:[["","matTabContent",""]],features:[hh([{provide:mKc,useExisting:SN}])]});var nKc=["content"],UN=function(){tx.call(this);this._host=n(TN);this._leavingSub=this._centeringSub=ke.EMPTY};Y(UN,tx);UN.prototype.ngOnInit=function(){var a=this;tx.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(eg(this._host._isCenterPosition())).subscribe(function(b){a._host._content&&b&&!a.hasAttached()&&a.attach(a._host._content)});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a.detach()})};
UN.prototype.ngOnDestroy=function(){tx.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275dir=Kf({type:UN,selectors:[["","matTabBodyHost",""]],features:[kg]});
var TN=function(){var a=this;this._elementRef=n(ff);this._dir=n(Qw,{optional:!0});this._ngZone=n(ph);this._injector=n(Ze);this._renderer=n(jv);this._diAnimationsDisabled=Hi();this._dirChangeSubscription=ke.EMPTY;this._onCentering=new hv;this._beforeCentering=new hv;this._afterLeavingCenter=new hv;this._onCentered=new hv(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=n(qv);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};g=TN.prototype;g.ngOnInit=function(){var a=this;this._bindTransitionEvents();this._position==="center"&&(this._setActiveClass(!0),$e(function(){return a._onCentering.emit(a._elementRef.nativeElement.clientHeight)},{injector:this._injector}));this._initialized=!0};g.ngOnDestroy=function(){clearTimeout(this._fallbackTimer);var a;(a=this._eventCleanups)==null||a.forEach(function(b){return b()});this._dirChangeSubscription.unsubscribe()};
g._bindTransitionEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement,c=function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),d.type==="transitionend"&&a._transitionDone())};a._eventCleanups=[a._renderer.listen(b,"transitionstart",function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.add("mat-tab-body-animating"),
a._transitionStarted())}),a._renderer.listen(b,"transitionend",c),a._renderer.listen(b,"transitioncancel",c)]})};g._transitionStarted=function(){clearTimeout(this._fallbackTimer);var a=this._position==="center";this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};g._transitionDone=function(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()};
g._setActiveClass=function(a){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",a)};g._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};g._isCenterPosition=function(){return this._positionIndex===0};
g._computePositionAnimationState=function(a){var b=this;a=a===void 0?this._getLayoutDirection():a;this._previousPosition=this._position;this._position=this._positionIndex<0?a=="ltr"?"left":"right":this._positionIndex>0?a=="ltr"?"right":"left":"center";this._animationsDisabled()?this._simulateTransitionEvents():!this._initialized||this._position!=="center"&&this._previousPosition!=="center"||(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){return b._simulateTransitionEvents()},
100)}))};g._simulateTransitionEvents=function(){var a=this;this._transitionStarted();$e(function(){return a._transitionDone()},{injector:this._injector})};g._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"};ea.Object.defineProperties(TN.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});TN.\u0275fac=function(a){return new (a||TN)};
TN.\u0275cmp=B({type:TN,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(Wg(UN,5),Wg(nKc,5));if(a&2){var c;$g(c=ah())&&(b._portalHost=c.first);$g(c=ah())&&(b._contentElement=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a,b){a&2&&ng("inert",b._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",
_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(a,b){a&1&&(I(0,"div",1,0),C(2,hVa,0,0,"ng-template",2),J());a&2&&wg("mat-tab-body-content-left",b._position==="left")("mat-tab-body-content-right",b._position==="right")("mat-tab-body-content-can-animate",b._position==="center"||b._previousPosition==="center")},dependencies:[UN,Yw],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],
encapsulation:2});var oKc=new yd("MAT_TABS_CONFIG");var pKc={passive:!0},VN=function(){var a=this;this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._viewportRuler=n(ax);this._dir=n(Qw,{optional:!0});this._ngZone=n(ph);this._platform=n(ew);this._sharedResizeObserver=n(Ty);this._injector=n(Ze);this._renderer=n(jv);this._animationsDisabled=Hi();this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new bg;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new bg;this.disablePagination=
!1;this._selectedIndex=0;this.selectFocusedIndex=new hv;this.indexFocused=new hv;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};g=VN.prototype;
g.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(si(this._renderer,this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},pKc),si(this._renderer,this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},pKc))};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:Ce("ltr"),c=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Sf(32),gg(this._destroyed)),d=this._viewportRuler.change(150).pipe(gg(this._destroyed)),e=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=Iw(Lw(Kw(new Ow(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});Mw(this._keyManager,this._selectedIndex);$e(e,{injector:this._injector});Ue(b,d,
c,this._items.changes,this._itemsResized()).pipe(gg(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));e()})});Kw(a._keyManager,a._getLayoutDirection())});this._keyManager.change.subscribe(function(f){a.indexFocused.emit(f);a._setTabFocus(f)})};
g._itemsResized=function(){var a=this;return typeof ResizeObserver!=="function"?Te:this._items.changes.pipe(eg(this._items),fg(function(b){return new pe(function(c){return a._ngZone.runOutsideAngular(function(){var d=new ResizeObserver(function(e){return c.next(e)});b.forEach(function(e){return d.observe(e.elementRef.nativeElement)});return function(){d.disconnect()}})})}),dg(1),Ve(function(b){return b.some(function(c){return c.contentRect.width>0&&c.contentRect.height>0})}))};
g.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck());this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck());this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())};
g.ngOnDestroy=function(){this._eventCleanups.forEach(function(b){return b()});var a;(a=this._keyManager)==null||a.destroy();this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!ri(a))switch(a.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){var b=this._items.get(this.focusIndex);b&&!b.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(a))}break;default:this._keyManager.onKeydown(a)}};
g._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};g.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};g._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
g._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft=this._getLayoutDirection()=="ltr"?0:a.scrollWidth-a.offsetWidth)};g._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};
g._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round(this._getLayoutDirection()==="ltr"?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};g._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+(a=="before"?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
g._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
g._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;this._getLayoutDirection()=="ltr"?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b:c>a&&(this.scrollDistance+=Math.min(c-a,b-d))}}};
g._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;a||(this.scrollDistance=0);a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}};
g._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};g._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
g._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?lKc(this._inkBar,a):this._inkBar.hide()};g._stopInterval=function(){this._stopScrolling.next()};
g._handlePaginatorPress=function(a,b){var c=this;b&&b.button!=null&&b.button!==0||(this._stopInterval(),Se(650,100).pipe(gg(Ue(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(d===0||d>=e)&&c._stopInterval()}))};
g._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
ea.Object.defineProperties(VN.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=isNaN(a)?0:a;this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&Mw(this._keyManager,a))}},focusIndex:{configurable:!0,enumerable:!0,get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(a){this._isValidIndex(a)&&this.focusIndex!==a&&this._keyManager&&this._keyManager.setActiveItem(a)}},
scrollDistance:{configurable:!0,enumerable:!0,get:function(){return this._scrollDistance},set:function(a){this._scrollTo(a)}}});VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275dir=Kf({type:VN,inputs:{disablePagination:[2,"disablePagination","disablePagination",Dh],selectedIndex:[2,"selectedIndex","selectedIndex",Eh]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var WN=function(){RN.apply(this,arguments);this.elementRef=n(ff);this.disabled=!1};Y(WN,RN);WN.prototype.focus=function(){this.elementRef.nativeElement.focus()};WN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(WN)))(b||WN)}}();WN.\u0275dir=Kf({type:WN,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(ng("aria-disabled",!!b.disabled),wg("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",Dh]},features:[kg]});var qKc=["tabListContainer"],rKc=["tabList"],sKc=["tabListInner"],tKc=["nextPaginator"],uKc=["previousPaginator"],XN=function(){VN.apply(this,arguments);this.disableRipple=!1};Y(XN,VN);XN.\u0275dir=VN.\u0275dir;XN.prototype.ngAfterContentInit=function(){this._inkBar=new iKc(this._items);VN.prototype.ngAfterContentInit.call(this)};XN.prototype._itemSelected=function(a){a.preventDefault()};XN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(XN)))(b||XN)}}();
XN.\u0275cmp=B({type:XN,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&Xg(c,WN,4);if(a&2){var d;$g(d=ah())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Wg(qKc,7),Wg(rKc,7),Wg(sKc,7),Wg(tKc,5),Wg(uKc,5));if(a&2){var c;$g(c=ah())&&(b._tabListContainer=c.first);$g(c=ah())&&(b._tabList=c.first);$g(c=ah())&&(b._tabListInner=c.first);$g(c=ah())&&(b._nextPaginator=c.first);$g(c=ah())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",Dh]},features:[kg],ngContentSelectors:["*"],decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination",
"mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",5,0);M("click",function(){t(c);
return v(b._handlePaginatorClick("before"))})("mousedown",function(d){t(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){t(c);return v(b._stopInterval())});K(2,"div",6);J();I(3,"div",7,1);M("keydown",function(d){t(c);return v(b._handleKeydown(d))});I(5,"div",8,2);M("cdkObserveContent",function(){t(c);return v(b._onContentChanges())});I(7,"div",9,3);Og(9);J()()();I(10,"div",10,4);M("mousedown",function(d){t(c);return v(b._handlePaginatorPress("after",d))})("click",function(){t(c);
return v(b._handlePaginatorClick("after"))})("touchend",function(){t(c);return v(b._stopInterval())});K(12,"div",6);J()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple),z(3),wg("_mat-animation-noopable",b._animationsDisabled),z(2),ng("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),z(5),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),D("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[Jx,xw],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],
encapsulation:2});var vKc=new yd("MatTabLabel"),wKc=new yd("MAT_TAB"),YN=function(){sx.apply(this,arguments);this._closestTab=n(wKc,{optional:!0})};Y(YN,sx);YN.\u0275fac=function(){var a;return function(b){return(a||(a=fe(YN)))(b||YN)}}();YN.\u0275dir=Kf({type:YN,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[hh([{provide:vKc,useExisting:YN}]),kg]});var xKc=new yd("MAT_TAB_GROUP"),ZN=function(){this._viewContainerRef=n(Ug);this._closestTabGroup=n(xKc,{optional:!0});this.disabled=!1;this._explicitContent=void 0;this.textLabel="";this._contentPortal=null;this._stateChanges=new bg;this.origin=this.position=null;this.isActive=!1;n(kw).load(Gx)};ZN.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};ZN.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
ZN.prototype.ngOnInit=function(){this._contentPortal=new px(this._explicitContent||this._implicitContent,this._viewContainerRef)};ZN.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};ea.Object.defineProperties(ZN.prototype,{templateLabel:{configurable:!0,enumerable:!0,get:function(){return this._templateLabel},set:function(a){this._setTemplateLabelInput(a)}},content:{configurable:!0,enumerable:!0,get:function(){return this._contentPortal}}});
ZN.\u0275fac=function(a){return new (a||ZN)};
ZN.\u0275cmp=B({type:ZN,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(Xg(c,YN,5),Xg(c,SN,7,Tg));if(a&2){var d;$g(d=ah())&&(b.templateLabel=d.first);$g(d=ah())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&Wg(Tg,7);if(a&2){var c;$g(c=ah())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Dh],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",
bodyClass:"bodyClass"},exportAs:["matTab"],features:[hh([{provide:wKc,useExisting:ZN}]),Uu],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),C(0,iVa,1,0,"ng-template"))},encapsulation:2});var yKc=["tabBodyWrapper"],zKc=["tabHeader"],$N=function(){this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._ngZone=n(ph);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=ke.EMPTY;this._animationsDisabled=Hi();this._tabs=new Vg;this._indexToSelect=0;this._lastFocusedTabIndex=null;this._tabBodyWrapperHeight=0;this._fitInkBarToContent=!1;this.stretchTabs=!0;this.alignTabs=null;this.dynamicHeight=!1;this._selectedIndex=null;this.headerPosition="above";this.preserveContent=
this.disableRipple=this.disablePagination=!1;this.selectedIndexChange=new hv;this.focusChange=new hv;this.animationDone=new hv;this.selectedTabChange=new hv(!0);this._isServer=!n(ew).isBrowser;var a=n(oKc,{optional:!0});this._groupId=n(Gw).getId("mat-tab-group-");this.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.dynamicHeight=a&&a.dynamicHeight!=null?a.dynamicHeight:!1;(a==null?void 0:a.contentTabIndex)!=
null&&(this.contentTabIndex=a.contentTabIndex);this.preserveContent=!(a==null||!a.preserveContent);this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0;this.alignTabs=a&&a.alignTabs!=null?a.alignTabs:null};g=$N.prototype;
g.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=this._selectedIndex==null;if(!c){this.selectedTabChange.emit(this._createChangeEvent(b));var d=this._tabBodyWrapper.nativeElement;d.style.minHeight=d.clientHeight+"px"}Promise.resolve().then(function(){a._tabs.forEach(function(e,f){return e.isActive=f===b});c||(a.selectedIndexChange.emit(b),a._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(e,
f){e.position=f-b;a._selectedIndex==null||e.position!=0||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
g.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
g.ngAfterViewInit=function(){var a=this;this._tabBodySubscription=this._tabBodies.changes.subscribe(function(){return a._bodyCentered(!0)})};g._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(eg(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));Zg(a._tabs)})};g.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe();this._tabBodySubscription.unsubscribe()};
g.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};g._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};g._createChangeEvent=function(a){var b=new AKc;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};g._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=Ue.apply(null,p(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
g._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};g._getTabLabelId=function(a){return this._groupId+"-label-"+a};g._getTabContentId=function(a){return this._groupId+"-content-"+a};g._setTabBodyWrapperHeight=function(a){if(this.dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}else this._tabBodyWrapperHeight=a};
g._removeTabBodyWrapperHeight=function(){var a=this,b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight;b.style.height="";this._ngZone.run(function(){return a.animationDone.emit()})};g._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};g._getTabIndex=function(a){var b,c=(b=this._lastFocusedTabIndex)!=null?b:this.selectedIndex;return a===c?0:-1};g._tabFocusChanged=function(a,b){a&&a!=="mouse"&&a!=="touch"&&(this._tabHeader.focusIndex=b)};
g._bodyCentered=function(a){var b=this;if(a){var c;(c=this._tabBodies)==null||c.forEach(function(d,e){return d._setActiveClass(e===b._selectedIndex)})}};
ea.Object.defineProperties($N.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitInkBarToContent},set:function(a){this._fitInkBarToContent=a;this._changeDetectorRef.markForCheck()}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=isNaN(a)?null:a}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){var b=a+"";this._animationDuration=
/^\d+$/.test(b)?a+"ms":b}},contentTabIndex:{configurable:!0,enumerable:!0,get:function(){return this._contentTabIndex},set:function(a){this._contentTabIndex=isNaN(a)?null:a}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}}});
$N.\u0275fac=function(a){return new (a||$N)};
$N.\u0275cmp=B({type:$N,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&Xg(c,ZN,5);if(a&2){var d;$g(d=ah())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(Wg(yKc,5),Wg(zKc,5),Wg(TN,5));if(a&2){var c;$g(c=ah())&&(b._tabBodyWrapper=c.first);$g(c=ah())&&(b._tabHeader=c.first);$g(c=ah())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(ng("mat-align-tabs",b.alignTabs),xg("mat-"+(b.color||"primary")),vg("--mat-tab-animation-duration",
b.animationDuration),wg("mat-mdc-tab-group-dynamic-height",b.dynamicHeight)("mat-mdc-tab-group-inverted-header",b.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",b.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Dh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Dh],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Dh],selectedIndex:[2,"selectedIndex","selectedIndex",Eh],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Eh],disablePagination:[2,"disablePagination","disablePagination",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh],preserveContent:[2,"preserveContent","preserveContent",Dh],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[hh([{provide:xKc,useExisting:$N}])],ngContentSelectors:["*"],decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],
[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered",
"_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"mat-tab-header",3,0);M("indexFocused",function(d){t(c);return v(b._focusChanged(d))})("selectFocusedIndex",function(d){t(c);return v(b.selectedIndex=d)});Dg(2,mVa,8,17,"div",4,Cg);J();E(4,nVa,1,0);I(5,"div",5,1);Dg(7,oVa,1,10,"mat-tab-body",6,Cg);J()}a&2&&(D("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination)("aria-label",
b.ariaLabel)("aria-labelledby",b.ariaLabelledby),z(2),Eg(b._tabs),z(2),F(b._isServer?4:-1),z(),wg("_mat-animation-noopable",b._animationsDisabled),z(2),Eg(b._tabs))},dependencies:[XN,WN,iw,Jx,tx,TN],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],
encapsulation:2});var AKc=function(){};var BKc=["tabListContainer"],CKc=["tabList"],DKc=["tabListInner"],EKc=["nextPaginator"],FKc=["previousPaginator"],GKc=["*"],aO=function(){var a=n(oKc,{optional:!0});VN.call(this);this._fitInkBarToContent=new tj(!1);this.stretchTabs=!0;this.disableRipple=!1;this.color="primary";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0};Y(aO,VN);
aO.\u0275dir=VN.\u0275dir;aO.prototype._itemSelected=function(){};aO.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new iKc(this._items);this._items.changes.pipe(eg(null),gg(this._destroyed)).subscribe(function(){return HKc(a)});VN.prototype.ngAfterContentInit.call(this)};aO.prototype.ngAfterViewInit=function(){VN.prototype.ngAfterViewInit.call(this)};
var HKc=function(a){if(a._items){for(var b=a._items.toArray(),c=0;c<b.length;c++)if(b[c].active){a.selectedIndex=c;a._changeDetectorRef.markForCheck();a.tabPanel&&(a.tabPanel._activeTabId=b[c].id);return}a.selectedIndex=-1}};aO.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
ea.Object.defineProperties(aO.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitInkBarToContent.value},set:function(a){this._fitInkBarToContent.next(a);this._changeDetectorRef.markForCheck()}},animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){var b=a+"";this._animationDuration=/^\d+$/.test(b)?a+"ms":b}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},
set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-tabs-with-background","mat-background-"+this.backgroundColor);a&&b.add("mat-tabs-with-background","mat-background-"+a);this._backgroundColor=a}}});aO.\u0275fac=function(a){return new (a||aO)};
aO.\u0275cmp=B({type:aO,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&Xg(c,bO,5);if(a&2){var d;$g(d=ah())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Wg(BKc,7),Wg(CKc,7),Wg(DKc,7),Wg(EKc,5),Wg(FKc,5));if(a&2){var c;$g(c=ah())&&(b._tabListContainer=c.first);$g(c=ah())&&(b._tabList=c.first);$g(c=ah())&&(b._tabListInner=c.first);$g(c=ah())&&(b._nextPaginator=c.first);$g(c=ah())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,
hostBindings:function(a,b){a&2&&(ng("role",b._getRole()),vg("--mat-tab-animation-duration",b.animationDuration),wg("mat-mdc-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-mdc-tab-header-rtl",b._getLayoutDirection()=="rtl")("mat-mdc-tab-nav-bar-stretch-tabs",b.stretchTabs)("mat-primary",b.color!=="warn"&&b.color!=="accent")("mat-accent",b.color==="accent")("mat-warn",b.color==="warn")("_mat-animation-noopable",b._animationsDisabled))},inputs:{fitInkBarToContent:[2,"fitInkBarToContent",
"fitInkBarToContent",Dh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Dh],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",Dh],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[kg],attrs:["mat-tab-nav-bar",""],ngContentSelectors:GKc,decls:13,vars:6,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination",
"mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-link-container",3,"keydown"],[1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-links"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",5,0);M("click",function(){t(c);return v(b._handlePaginatorClick("before"))})("mousedown",
function(d){t(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){t(c);return v(b._stopInterval())});K(2,"div",6);J();I(3,"div",7,1);M("keydown",function(d){t(c);return v(b._handleKeydown(d))});I(5,"div",8,2);M("cdkObserveContent",function(){t(c);return v(b._onContentChanges())});I(7,"div",9,3);Og(9);J()()();I(10,"div",10,4);M("mousedown",function(d){t(c);return v(b._handlePaginatorPress("after",d))})("click",function(){t(c);return v(b._handlePaginatorClick("after"))})("touchend",
function(){t(c);return v(b._stopInterval())});K(12,"div",6);J()}a&2&&(wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple),z(10),wg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),D("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[Jx,xw],styles:[".mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-links{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}\n"],
encapsulation:2});
var bO=function(){RN.call(this);var a=this;this._tabNavBar=n(aO);this.elementRef=n(ff);this._focusMonitor=n(gw);this._destroyed=new bg;this.disableRipple=this.disabled=this._isActive=!1;this.tabIndex=0;this.id=n(Gw).getId("mat-tab-link-");n(kw).load(Gx);var b=n(Ix,{optional:!0}),c=n(new Vu("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=c==null?0:parseInt(c)||0;Hi()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(gg(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};
Y(bO,RN);bO.\u0275dir=RN.\u0275dir;g=bO.prototype;g.focus=function(){this.elementRef.nativeElement.focus()};g.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();RN.prototype.ngOnDestroy.call(this);this._focusMonitor.stopMonitoring(this.elementRef)};g._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};
g._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)this.disabled?a.preventDefault():this._tabNavBar.tabPanel&&(a.keyCode===32&&a.preventDefault(),this.elementRef.nativeElement.click())};g._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?(a=this._tabNavBar.tabPanel)==null?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};g._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};
g._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};g._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};g._getTabIndex=function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex};
ea.Object.defineProperties(bO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,HKc(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});bO.\u0275fac=function(a){return new (a||bO)};
bO.\u0275cmp=B({type:bO,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&M("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ng("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._getTabIndex())("role",b._getRole()),wg("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",Dh],disabled:[2,"disabled","disabled",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:Eh(a)}],id:"id"},exportAs:["matTabLink"],features:[kg],attrs:["mat-tab-link",""],ngContentSelectors:GKc,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],
template:function(a,b){a&1&&(Ng(),K(0,"span",0)(1,"div",1),I(2,"span",2)(3,"span",3),Og(4),J()());a&2&&(z(),D("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[Jx],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],
encapsulation:2,changeDetection:0});var IKc=function(){this.id=n(Gw).getId("mat-tab-nav-panel-")};IKc.\u0275fac=function(a){return new (a||IKc)};IKc.\u0275cmp=B({type:IKc,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(a,b){a&2&&ng("aria-labelledby",b._activeTabId)("id",b.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:GKc,decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},encapsulation:2,changeDetection:0});var cO=function(){};cO.\u0275fac=function(a){return new (a||cO)};cO.\u0275mod=Jf({type:cO});cO.\u0275inj=Tc({imports:[zx,zx]});var dO=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};ea.Object.defineProperties(dO.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance===a||this.options.disableGmatStyle||(this.cachedAppearance=a,this.tabGroup.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});dO.\u0275fac=function(a){return new (a||dO)(zf(hKc),zf(qv),zf($N))};
dO.\u0275dir=Kf({type:dO,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",!b.options.disableGmatStyle&&b.appearance==="primary")("gmat-mdc-tabs-secondary",!b.options.disableGmatStyle&&b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var eO=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;this.appearance=this.options.appearance};
ea.Object.defineProperties(eO.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance===a||this.options.disableGmatStyle||(this.cachedAppearance=a,this.tabNav.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});eO.\u0275fac=function(a){return new (a||eO)(zf(hKc),zf(qv),zf(aO))};
eO.\u0275dir=Kf({type:eO,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&wg("gmat-mdc-tabs-primary",!b.options.disableGmatStyle&&b.appearance==="primary")("gmat-mdc-tabs-secondary",!b.options.disableGmatStyle&&b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var fO=function(){};fO.\u0275fac=function(a){return new (a||fO)};fO.\u0275mod=Jf({type:fO});fO.\u0275inj=Tc({imports:[cO]});var gO=function(){};gO.\u0275fac=function(a){return new (a||gO)};gO.\u0275mod=Jf({type:gO});gO.\u0275inj=Tc({imports:[zx,Mx,AN,zx]});var hO=function(){};hO.\u0275fac=function(a){return new (a||hO)};hO.\u0275mod=Jf({type:hO});hO.\u0275inj=Tc({imports:[ZB,$K,$B,aN,Ly,ZM,gO,QN,fO,GM]});var pVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pVa,V);g=pVa.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getScope=function(){return Oh(this,2)};g.setScope=function(a){return Lk(this,2,a)};g.setMaxResults=function(a){return $k(this,5,a)};var Jq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Jq.messageId)};Y(Jq,V);Jq.prototype.getIt=function(){return X(this,pVa,1)};Jq.prototype.setIt=function(a){return W(this,pVa,1,a)};Jq.messageId="b.LookupSimilarIssuesRequest";var JKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JKc,V);g=JKc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getScore=function(){return Pm(this,2)};g.setScore=function(a){return on(this,2,a)};var KKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KKc,V);var iO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,iO.messageId)};Y(iO,V);iO.prototype.getIt=function(){return X(this,KKc,3)};iO.prototype.setIt=function(a){return W(this,KKc,3,a)};iO.messageId="b.LookupSimilarIssuesResponse";var LKc={},MKc=(LKc[RG.queryAtom]=!0,LKc),jO=function(){this.executor=n(yC)},kO=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:qVa(b),responseConstructor:iO}).pipe(y(function(c){var d=Wk(c.getIt(),vo,1,Fk()).map(VAa);c=Wk(c.getIt(),JKc,2,Fk()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},NKc=function(a,b,c,d){d=d===void 0?new Set:d;d={maxResults:7,scope:tp.apply(null,[b?sp("-id",b):void 0,sp("modified","365d")].concat(p(Array.from(d).map(function(e){return e.queryAtom})))),
scopeSortOrder:"vote_count desc"};c==null?d.issueId=Number(b):d.keyword=c;return kO(a,d)},OKc=function(a,b,c,d){d=d===void 0?new Set:d;return kO(a,{issueId:Number(b),maxResults:7,scope:tp.apply(null,[sp("-id",b),sp("id",c)].concat(p(Array.from(d).map(function(e){return e.queryAtom}).filter(function(e){return MKc[e]}))))})};jO.\u0275fac=function(a){return new (a||jO)};jO.\u0275prov=Sc({token:jO,factory:jO.\u0275fac,providedIn:"root"});var PKc=gl(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},hl),QKc=new Set([RG]),lO=function(){this.issueFullFridge=n(EF);this.issueFridge=n($E);this.similarIssuesApi=n(jO);this.analytics=n(CF);this.recentlyViewedIds$=this.issueFridge.watchMany({custom:"viewed",pageSize:50}).pipe(y(function(a){return a.results.map(function(b){return b.issueId})}));this.componentIdToRecentCanonicals=new Map},RKc=function(a,b,c){c=c===void 0?QKc:c;var d=NKc(a.similarIssuesApi,
b,void 0,c),e=Ce([]).pipe(Wf(5E3));e=Zga(e,a.recentlyViewedIds$).pipe(fg(function(f){return OKc(a.similarIssuesApi,b,f,c)}));return Je([d,e]).pipe(y(function(f){var h=l(f);f=h.next().value;h=h.next().value;return rVa(f,h)}),y(function(f){return f.similarIssues.map(function(h,k){return Object.assign({},h,{score:f.scores[k]})})}),y(function(f){return f.slice(0,7)}),Pf(function(f){Nj("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var h,k,q=(k=f==null?void 0:(h=f.error)==null?void 0:
h.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",q);return Ce([])}))},TKc=function(a,b,c,d,e){c=c===void 0?QKc:c;return b.trim()?d==="canonical"?NKc(a.similarIssuesApi,e==null?void 0:e.id,b,c).pipe(y(function(f){return f.similarIssues.map(function(h,k){return Object.assign({},h,{score:f.scores[k]})})}),Pf(function(f){Nj("IssuePickerSearchService::searchSimilarIssues() error: ",f);var h,k,q=(k=f==null?void 0:(h=f.error)==null?void 0:h.status)!=null?
k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",q);return Ce([])})):SKc(a,b):Ce(void 0)};
lO.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return Ce(void 0);if(b==="canonical"){b=UKc(this,a,d);d=VKc(this,d).pipe(fg(function(h){return e.issueFridge.watchMany({filter:tp(a,sp("-id",c==null?void 0:c.id),sp("status","open"),sp("componentid",h)),pageSize:10})}),y(function(h){return h==null?void 0:h.results}));var f=this.issueFridge.watchMany({filter:tp(a,sp("-id",c==null?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(y(function(h){return h==null?void 0:h.results}),eg([]));
return Je([b,d,f]).pipe(y(function(h){return ik(h.flat(),function(k){return k.issueId})}),y(function(h){return h.slice(0,10)}),y(function(h){return PKc(h,"DESCENDING")}))}return SKc(this,a)};
var SKc=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(y(function(c){return c==null?void 0:c.results}))},UKc=function(a,b,c){return c?WKc(a,c).pipe(fg(function(d){return d.length===0?Ce([]):a.issueFridge.watchMany({filter:tp(b,sp("id",d),sp("status","open")),pageSize:10}).pipe(y(function(e){return e==null?void 0:e.results}))})):Ce([])},WKc=function(a,b){if(!b)return Ce([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);var c=a.issueFridge.watchMany({filter:tp(sp("componentid",
b,!0),sp("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(y(function(d){return d==null?void 0:d.results}),y(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),y(function(d){return jk(d.filter(Tk))}),cg({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},VKc=function(a,b){return b?WKc(a,b).pipe(fg(function(c){return a.issueFullFridge.watchSet(c)}),y(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),
y(function(c){return[b].concat(p(c.filter(Tk)))}),y(jk),cg({bufferSize:1,refCount:!0})):Ce([])};lO.\u0275fac=function(a){return new (a||lO)};lO.\u0275prov=Sc({token:lO,factory:lO.\u0275fac,providedIn:"root"});var mO=function(){};mO.\u0275fac=function(a){return new (a||mO)};mO.\u0275cmp=B({type:mO,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:1,consts:[[1,"animated-loading-bar"]],template:function(a,b){a&1&&(Ng(),E(0,sVa,1,0)(1,tVa,1,0,"div",0));a&2&&F(b.isReady?0:1)},encapsulation:2});var nO=function(){this.mode="datetime";this.isDataLoaded=!1};nO.prototype.ngOnChanges=function(){var a;if((a=this.issue)==null?0:a.aggregatedData){var b;this.createdTime=((b=this.issue)==null?NaN:b.aggregatedData.createdTimeMicros)/1E3}this.isDataLoaded=this.issue!=null};nO.\u0275fac=function(a){return new (a||nO)};
nO.\u0275cmp=B({type:nO,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,uVa,1,3,"b-formatted-date-time",1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.createdTime?1:-1))},dependencies:[mO,ZL],encapsulation:2,changeDetection:0});var oO=function(){this.relayOnly=!1;this.keydown$=new bg};oO.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};ea.Object.defineProperties(oO.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});oO.\u0275fac=function(a){return new (a||oO)};
oO.\u0275dir=Kf({type:oO,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b.onKeydown(c)});a&2&&ng("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"},standalone:!1});var XKc=0,pO=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+XKc;this.closePanel$=new ag(1);XKc++};pO.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};pO.\u0275fac=function(a){return new (a||pO)(zf(oO,8))};
pO.\u0275cmp=B({type:pO,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&Wg(Tg,7);if(a&2){var c;$g(c=ah())&&(b.templateRef=c.first)}},inputs:{className:"className"},exportAs:["onedevPopupPanel"],standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(Ng(),C(0,vVa,2,3,"ng-template"))},styles:[".onedev-popup-panel{background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto}.onedev-popup-panel:focus{outline:0}"],
encapsulation:2});var qO=function(a,b,c,d,e){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.cdr=e;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new hv;this.closed=new hv;this.isOpen=!1;this.destroyed$=new ag(1);this.closingActionsSubscription=ke.EMPTY};qO.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
qO.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new px(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=YKc(this).pipe(gg(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
qO.prototype.close=function(){if(this.isOpen){this.isOpen=!1;var a;if((a=this.overlayRef)==null?0:a.hasAttached())this.overlayRef.detach(),this.overlayRef.dispose();this.focusTrap&&this.focusTrap.destroy();this.closingActionsSubscription.unsubscribe();this.element.nativeElement.focus();this.closed.emit();this.cdr.markForCheck()}};
qO.prototype.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();return this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"onedev-popup-panel-backdrop"})};var YKc=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?Ue(b,c,d):Ue(c,d)};
qO.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
qO.prototype.getPositionStrategy=function(){return hx(ix(jx(mx(this.overlay.position(),this.element)),8),[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])};qO.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
ea.Object.defineProperties(qO.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});qO.\u0275fac=function(a){return new (a||qO)(zf(vx),zf(ff),zf(Ug),zf(Fw),zf(qv))};
qO.\u0275dir=Kf({type:qO,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&ng("aria-disabled",b.disabled)("aria-expanded",b.isOpen||null)("aria-controls",b.isOpen?b.popupPanel.id:null)},inputs:{onedevPopupPanelTriggerFor:"onedevPopupPanelTriggerFor",disabled:[0,"onedevPopupPanelTriggerDisabled","disabled"],closeOnBackdropClick:[0,"onedevPopupPanelTriggerCloseOnBackdropClick","closeOnBackdropClick"]},outputs:{opened:"onedevPopupPanelTriggerOpened",
closed:"onedevPopupPanelTriggerClosed"},exportAs:["onedevPopupPanelTrigger"]});var ZKc=function(a,b){this._document=b;var c=this._textarea=this._document.createElement("textarea"),d=c.style;d.position="fixed";d.top=d.opacity="0";d.left="-999em";c.setAttribute("aria-hidden","true");c.value=a;c.readOnly=!0;(this._document.fullscreenElement||this._document.body).appendChild(c)};ZKc.prototype.copy=function(){var a=this._textarea,b=!1;try{if(a){var c=this._document.activeElement;a.select();a.setSelectionRange(0,a.value.length);b=this._document.execCommand("copy");c&&c.focus()}}catch(d){}return b};
ZKc.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var rO=function(){this._document=n(Ei)};rO.prototype.copy=function(a){a=new ZKc(a,this._document);var b=a.copy();a.destroy();return b};rO.\u0275fac=function(a){return new (a||rO)};rO.\u0275prov=Sc({token:rO,factory:rO.\u0275fac,providedIn:"root"});new yd("CDK_COPY_TO_CLIPBOARD_CONFIG");var sO=function(){Z.apply(this,arguments);var a=this;this.activeSession=n(Es);this.trackerHelpers=n(LK);this.clipboard=n(rO);this.butterBar=n(iK);this.componentId=0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=xp;this.copyIssueId=dgc(function(){a.clipboard.copy(a.issueId);Mq(a.butterBar,"Issue ID copied",2E3)})};Y(sO,Z);sO.\u0275dir=Z.\u0275dir;var Kq=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
sO.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};sO.prototype.getAppBaseUrl=function(a){return tr(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};sO.\u0275fac=function(){var a;return function(b){return(a||(a=fe(sO)))(b||sO)}}();
sO.\u0275cmp=B({type:sO,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&Wg(qO,5);if(a&2){var c;$g(c=ah())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},standalone:!1,features:[kg],decls:4,vars:6,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["issueIdField",""],["issueUrlField",
""],["urlAndTitleField",""],["issueShortlinkField",""],["issueEmailField",""],["todoCommentField",""],["type","button","matTooltip","Copy issue ID","matTooltipShowDelay","750","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click","mousedown"],["svgIcon","copy",1,"icon-xs","invisible"],["type","button","matTooltip","Show links for this issue","onedevPopupPanelTrigger","","disableRipple","true",1,"unstyled","square-left",3,"onHotkey","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed",
"click","onedevPopupPanelTriggerFor","hotkey","hotkeyEnabled"],["svgIcon","arrow-dropdown",1,"icon-xs"],["role","region"],["cdkTrapFocus","",1,"issue-id-picker-popup",3,"cdkTrapFocusAutoCapture"],[1,"id-details-row"],[3,"htmlFor"],["cdkFocusInitial","","type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],[1,"muted","shortcut"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"copy",
3,"onHotkey","click","hotkey","hotkeyEnabled"],["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button",
"","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"copy",3,"onHotkey","click","hotkey","hotkeyEnabled"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"onHotkey","focus","hotkey","hotkeyEnabled"],["type","button","mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"copy",3,"onHotkey",
"click","hotkey","hotkeyEnabled"]],template:function(a,b){a&1&&(I(0,"button",8),M("click",function(){return b.copyIssueId()})("mousedown",function(){return b.copyIssueId()}),Q(1),E(2,wVa,1,0,"mat-icon",9),J(),E(3,HVa,6,5));a&2&&(wg("square-right",b.showCopyOptions),ng("aria-label","Copy issue number "+b.issueId),z(),R(" ",b.issueId," "),z(),F(b.showCopyOptions?-1:2),z(),F(b.showCopyOptions?3:-1))},dependencies:[qw,aB,pH,PA,Ux,YA,cB,pO,qO],styles:["[_nghost-%COMP%]{border-radius:4px;font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;display:inline-block;user-select:none;white-space:nowrap;line-height:22px}button[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.issue-id[_ngcontent-%COMP%]{padding:0 3px}@media(forced-colors: active){.issue-id[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}.issue-id[_ngcontent-%COMP%]:focus-visible{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.shortcut[_ngcontent-%COMP%]{font-family:WorkAroundWebKitAndMozilla,monospace;padding-left:8px;white-space:nowrap}button.issue-id[_ngcontent-%COMP%]:hover   mat-icon[_ngcontent-%COMP%], button.issue-id[_ngcontent-%COMP%]:focus-visible   mat-icon[_ngcontent-%COMP%]{visibility:visible}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px;user-select:text}button[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%]:focus-visible{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}button.square-left[_ngcontent-%COMP%]{border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}@media(forced-colors: active){button.square-left[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider)}button.square-left[_ngcontent-%COMP%]:focus-visible{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}mat-icon[_ngcontent-%COMP%]{margin-top:-2px;color:#3c4043;color:var(--gfx)}  .onedev-popup-panel .issue-id-picker-popup{padding:10px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row{display:flex;flex-direction:row;align-items:center}  .onedev-popup-panel .issue-id-picker-popup .id-details-row label{flex-basis:110px;font-family:Roboto,Arial,sans-serif;font-size:.8125rem;color:#5f6368;color:var(--text-muted)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value{flex-grow:1;font-family:Roboto,Arial,sans-serif;display:inline-block;width:345px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;outline:none;padding:5px;margin-left:5px}  .onedev-popup-panel .issue-id-picker-popup .id-details-row .value:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy .mat-mdc-button-persistent-ripple{border-radius:inherit}"],
changeDetection:0});var tO=function(){};tO.prototype.ngOnInit=function(){};tO.prototype.onClick=function(a){a.stopPropagation()};tO.\u0275fac=function(a){return new (a||tO)};
tO.\u0275cmp=B({type:tO,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClick(c)})},inputs:{id:"id"},standalone:!1,decls:2,vars:2,consts:[[3,"isReady"],[3,"issueId","showCopyOptions"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,IVa,1,2,"b-issue-id-picker",1),J());a&2&&(D("isReady",!!b.id),z(),F(b.id?1:-1))},dependencies:[mO,sO],encapsulation:2,changeDetection:0});var uO=function(){},$Kc=function(a){a=a.issuePriority;if(a==null)return"";switch(a){case "P0":return"priority-1";case "P1":return"priority-2";case "P2":return"priority-3";case "P3":return"priority-4";case "P4":return"priority-5";default:return""}};uO.\u0275fac=function(a){return new (a||uO)};
uO.\u0275cmp=B({type:uO,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},standalone:!1,decls:2,vars:2,consts:[[1,"p-chip",3,"ngClass"]],template:function(a,b){a&1&&(I(0,"span",0),Q(1),J());a&2&&(D("ngClass",$Kc(b)),z(),a=b.issuePriority,R(" ",a==null?"--":imc[a]," "))},dependencies:[Mv],styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var vO=function(){this.priority=this.issue=null;this.isDataLoaded=!1};vO.prototype.ngOnChanges=function(){var a,b;this.priority=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.priority)||null;this.isDataLoaded=this.issue!==null};vO.\u0275fac=function(a){return new (a||vO)};
vO.\u0275cmp=B({type:vO,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"issuePriority"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,JVa,1,1,"b-issue-priority-display",1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.priority?1:-1))},dependencies:[mO,uO],encapsulation:2,changeDetection:0});var wO=function(){this.changelistFridge=n(WC);this.IssueStatus=olc;this.STATUS_JS_FULL_TEXT=yk;this.STATUS_JS_TERSE=fmc;this.isFixed=hya;this.issue=null;this.isDataLoaded=!1};wO.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=NVa(a,(b=this.issue)==null?void 0:b.issueId)}var c,d;this.status=((c=this.issue)==null?void 0:(d=c.snapshot[0])==null?void 0:d.status)||void 0;this.isDataLoaded=this.issue!==null};
wO.\u0275fac=function(a){return new (a||wO)};
wO.\u0275cmp=B({type:wO,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},standalone:!1,features:[Uu],decls:3,vars:2,consts:[[3,"isReady"],["target","_blank",3,"class","href","matTooltip"],["target","_blank",3,"href","matTooltip"],[3,"class","title"],[3,"title"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,KVa,2,8,"a",1)(2,MVa,1,1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[mO,
YA,cB],encapsulation:2,changeDetection:0});var xO=function(){this.el=n(ff);this.bFocus=!0;this.nativeElement=this.el.nativeElement};xO.prototype.ngOnInit=function(){aLc(this)};xO.prototype.ngOnChanges=function(){aLc(this)};var aLc=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275dir=Kf({type:xO,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},standalone:!1,features:[Uu]});var yO=function(){};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275mod=Jf({type:yO});
yO.\u0275inj=Tc({});var zO=function(){this.userPreferencesManager=n(OG);this.codefont$=this.userPreferencesManager.codeFont$};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275prov=Sc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var bLc=new yd("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var cLc=["child"],AO=function(){this.codefont=n(zO)};AO.prototype.ngOnInit=function(){};AO.prototype.ngOnChanges=function(){gm(this.child.nativeElement,this.content.content)};AO.\u0275fac=function(a){return new (a||AO)};
AO.\u0275cmp=B({type:AO,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&Wg(cLc,7);if(a&2){var c;$g(c=ah())&&(b.child=c.first)}},inputs:{content:"content"},standalone:!1,features:[hh([{provide:bLc,useValue:"LITERAL"}]),Uu],decls:3,vars:4,consts:[["child",""],[1,"type-m","child"]],template:function(a,b){a&1&&(K(0,"div",1,0),S(2,"async"));a&2&&wg("codefont",T(2,2,b.codefont.codefont$))},dependencies:[Qv],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var dLc=["el"],BO=function(){this.clipboard=n(rO);this.snackBar=n(fK);this.domSafe=n(rL);this.opened=!1};BO.prototype.getNgContentParentEl=function(){return this.el.nativeElement};BO.prototype.hide=function(){this.opened=!1};BO.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};BO.\u0275fac=function(a){return new (a||BO)};
BO.\u0275cmp=B({type:BO,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&Wg(dLc,7);if(a&2){var c;$g(c=ah())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:3,consts:[["trigger","cdkOverlayOrigin"],["el",""],["cdkOverlayOrigin","","aria-haspopup","true",1,"broken",3,"click"],["svgIcon","link-off",1,"broken","icon-s"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"overlayOutsideClick","detach","cdkConnectedOverlayPush",
"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["cdkTrapFocus","","cdkTrapFocusAutoCapture","",1,"b-bubble","flex-kids-y"],[1,"flex-kids-x"],["type","button","mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"],[3,"click","href"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"a",2,0);M("click",function(d){t(c);d.preventDefault();d.stopPropagation();b.opened=!0;return v()});I(2,"b-glue");K(3,"mat-icon",3);J();I(4,
"span",null,1);Og(6);J()();C(7,PVa,1,1,"ng-template",4);M("overlayOutsideClick",function(){t(c);return v(b.hide())})("detach",function(){t(c);return v(b.hide())})}a&2&&(a=L(1),z(7),D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened))},dependencies:[qw,aB,xx,wx,OH,PA,Tx,YA,cB],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.b-bubble[_ngcontent-%COMP%]{display:flex;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(0,0,0,.1);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}  .tooltip-panel{display:inline-block;margin:.1em}"],
changeDetection:0});var eLc=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new LA};eLc.\u0275fac=function(a){return new (a||eLc)};
eLc.\u0275cmp=B({type:eLc,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked",disabled:"disabled",startPos:"startPos"},outputs:{checkedChange:"checkedChange"},standalone:!1,decls:1,vars:2,consts:[[3,"change","disabled","checked"]],template:function(a,b){a&1&&(I(0,"mat-checkbox",0),M("change",function(c){return b.checkedChange.emit(c.checked)}),J());a&2&&D("disabled",b.disabled)("checked",b.checked)},dependencies:[yM,CM],encapsulation:2,changeDetection:0});var fLc=["el"],TVa=function(a,b){return b.label},CO=function(){Z.apply(this,arguments);this.domSafe=n(rL);this.clipboard=n(rO);this.snackBar=n(fK);this.activeSession=n(Es);this.contextSensitiveRegistry=n(iL);this.formattingMode=n(bLc);this.analytics=n(CF);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.urls=[];this.enableNexusLinking=Yr(this.activeSession,"enableNexusLinking")&&this.activeSession.isInternalSession();this.opened=!1};Y(CO,Z);CO.\u0275dir=Z.\u0275dir;
CO.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.enableNexusLinking){var a=np(this.contextSensitiveRegistry.getIssueId());a:{var b=this.originalHref;try{var c=null,d=(new URL(b)).hostname;switch(d.includes("analog")?"Analog":d.includes("sherlog")?"Sherlog":d.includes("eye3")?"Third Eye":"PRODUCT_UNSPECIFIED"){case "Analog":var e=new URL("https://nexus.corp.google.com/debug/dashboard");var f=new URL(b);if(f.searchParams.has("text_query")){var h=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var q=[];else{var u=k.split("/");if(u.length!==2)q=[];else{var A=(new Date(u[1])).getTime()*1E3;q=[hi("start_time","=",[(new Date(u[0])).getTime()*1E3]),hi("end_time","=",[A])]}}f=[];var G=f.concat,H=p(q);q=[];for(var N,O=[],U=l(h.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),da=U.next();!da.done;da=U.next()){var ma=da.value;O.push(ma[1]+":"+ma[2])}(N=O.length>
0?hi("site_path","!=",O):null)&&q.push(N);U=void 0;for(var ra=l(h.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),Ga=ra.next();!Ga.done;Ga=ra.next()){var Na=Ga.value,Qa=Na[1];var gb=Na[2];var va=baa()(gb)?gb:void 0;h=va;var Ja=Na[3];if(Ja.length>=2&&Ja.charAt(0)==='"'&&Ja.charAt(Ja.length-1)==='"')var La=Ja.substring(1,Ja.length-1);else if(Ja==="true"||Ja==="false")La=Ja==="true";else{var Lb=Number(Ja);La=qca(Lb)?Lb:void 0}da=La;if(h)if(Qa!==
"source_location.file"||h!=="="||N){Qa==="source_location.line"&&U&&h==="="&&(U=hi("site_path","=",[U.values[0]+":"+da]));var Eb=Dna(Qa);Eb&&(Eb==="borg_job"&&h==="=~"?q.push(hi(Eb,"=",String(da).split("|"))):q.push(hi(Eb,h,[xna.includes(Eb)?Number(da):da])))}else U=hi("site_path",h,[da])}U&&q.push(U);var jc=G.call(f,H,p(q))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("bb");G=[];O=l(f.searchParams);for(var nc=O.next();!nc.done;nc=O.next()){var Jc=l(nc.value),ec=Jc.next().value,
ye=Jc.next().value,yb=Cna(ec,ye,f.searchParams);yb&&G.push.apply(G,p(yb))}jc=G}e.searchParams.set("filters",wna(jc));e.searchParams.set("tab","rdl");c=e;break;case "Sherlog":if(b.startsWith("http://sherlog/_")){var Pb=new URL("https://nexus.corp.google.com/trace/"+b.replace("http://sherlog/_",""));Pb.searchParams.set("action","expandsherlog");c=Pb}else{var Ya=new URL(b);if(Ya.pathname.includes("workflow")){var dc=Ya.searchParams,uc,rd=encodeURIComponent((uc=dc.get("dataid"))!=null?uc:""),Jb=new URL("https://nexus.corp.google.com/trace/"+
rd),Cc=Kqa(Ya);Jb.searchParams.set("account",Cc.account);Jb.searchParams.set("account_type",Cc.accountType);var Gc;Jb.searchParams.set("version",(Gc=dc.get("version"))!=null?Gc:"");var Qd;Jb.searchParams.set("pipeline",(Qd=dc.get("config"))!=null?Qd:"");Jb.searchParams.set("trace_type","sherlog");c=Jb}else c=null}break;default:var Ed="";break a}a=a!=null?a:void 0;c==null?Ed="":(c.searchParams.set("origin_type","buganizer"),a&&(a.startsWith("b/")||(a="b/"+a),c.searchParams.set("origin_id",a)),Ed=c.toString());
break a}catch(Vf){Ed="";break a}Ed=void 0}Ed&&this.urls.push({label:"Open in Nexus",originalHref:Ed,href:Ed,icon:"nexus-logo"})}};CO.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(gg(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};CO.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var gLc=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=vxa(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};CO.prototype.hide=function(){this.opened=!1};CO.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var hLc=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};CO.\u0275fac=function(){var a;return function(b){return(a||(a=fe(CO)))(b||CO)}}();
CO.\u0275cmp=B({type:CO,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(Wg(fLc,7),Wg(xx,7));if(a&2){var c;$g(c=ah())&&(b.el=c.first);$g(c=ah())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},standalone:!1,features:[kg],ngContentSelectors:["*"],decls:7,vars:8,consts:[["trigger","cdkOverlayOrigin"],["el",""],["cdkOverlayOrigin","",1,"keep-focus-ring",3,"click","href","rel"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",
3,"detach","overlayOutsideClick","cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["svgIcon","link",1,"icon-s"],["cdkTrapFocus","","cdkTrapFocusAutoCapture","",1,"b-bubble"],[1,"gmat-caption"],["role","img",1,"icon-s",3,"svgIcon"],["target","_blank",1,"keep-focus-ring",3,"click","href","rel"],["type","button","mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"]],template:function(a,b){if(a&1){var c=
r();Ng();I(0,"a",2,0);M("click",function(d){t(c);if(!wxa(d))if(d.preventDefault(),d.stopPropagation(),gLc(b))hLc(b),b.opened=!0;else{var e=b.href;wxa(d)||(d.preventDefault(),d.stopPropagation(),Lq(b.domSafe,e))}return v()});E(2,QVa,2,0,"b-glue");I(3,"span",null,1);Og(5);J()();C(6,VVa,1,1,"ng-template",3);M("detach",function(){t(c);return v(b.hide())})("overlayOutsideClick",function(){t(c);return v(b.hide())})}a&2&&(a=L(1),wg("needs-contextual-popup",gLc(b)),D("href",b.originalHref,uf)("rel",b.EXTERNAL_LINK_REL),
z(2),F(gLc(b)?2:-1),z(4),D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened))},dependencies:[qw,aB,xx,wx,OH,PA,Tx,YA,cB],styles:[".tooltip-panel{display:inline-block;margin:.1em}[_nghost-%COMP%] > a.needs-contextual-popup[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}.b-bubble[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-width:1px;border-style:solid;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;box-shadow:0 4px 8px 3px rgba(60,64,67,.15);padding:9px;background-color:#fff;background-color:var(--surface-default)}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]{align-items:center;display:flex;max-width:400px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.b-bubble[_ngcontent-%COMP%]   .gmat-caption[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:0 2px}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px;--mat-text-button-icon-spacing:0}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.final){margin-right:4px}"],
changeDetection:0});var DO=function(){this.session=n(Es);this.userPreferencesManager=n(OG);this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(y(function(a){return a.textDisplayPreferences?a.textDisplayPreferences:{}}),Xf());this.textDisplayPreferences$.pipe(y(function(a){return a.lastPublishMode==="MARKDOWN_FORMATTING_MODE"}),Xf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(y(function(a){return a.commentDisplayOverride}),Xf())};DO.\u0275fac=function(a){return new (a||DO)};
DO.\u0275prov=Sc({token:DO,factory:DO.\u0275fac,providedIn:"root"});var iLc=new yd("IssueCard");var EO=function(){};EO.prototype.visit=function(){};EO.\u0275fac=function(a){return new (a||EO)};EO.\u0275prov=Sc({token:EO,factory:EO.\u0275fac,providedIn:"root"});var jLc=["el"],FO=function(){this.viewContainerRef=n(Ug)};FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275dir=Kf({type:FO,selectors:[["","issueCardHost",""]],standalone:!1});var GO=function(){Z.apply(this,arguments);this.issueReferenceResolver=n(EO);this.issueCard=n(iLc,{optional:!0});this.hovercardReady=new ag(1)};Y(GO,Z);GO.\u0275dir=Z.\u0275dir;GO.prototype.ngOnInit=function(){};
GO.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(gg(this.destroyed$)).subscribe(function(b){a.issueCard&&b.length!==0&&(b=a.issueCardHost.first.viewContainerRef.createComponent(a.issueCard),b.instance.issueId=a.issueId,b.instance.init.pipe(Uf(),gg(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
GO.prototype.visit=function(a){if(!wxa(a))if(this.commentNumber)this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+this.commentNumber,event:a});else{var b=this.href.indexOf("#");if(b!==-1&&(b=this.href.slice(b+1))){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:b,event:a});return}this.issueReferenceResolver.visit({issueId:this.issueId,event:a})}};GO.\u0275fac=function(){var a;return function(b){return(a||(a=fe(GO)))(b||GO)}}();
GO.\u0275cmp=B({type:GO,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(Wg(jLc,7),Wg(FO,5));if(a&2){var c;$g(c=ah())&&(b.el=c.first);$g(c=ah())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,features:[kg],ngContentSelectors:["*"],decls:6,vars:3,consts:[["issueHovercard","onedevHovercard"],["el",""],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[1,"keep-focus-ring",3,"click","onedevHovercardTrigger","onedevHovercardActive",
"href"],[3,"onedevIsHovercardReady"],["issueCardHost",""]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"onedev-hovercard",null,0);C(2,WVa,2,1,"div",2);J();I(3,"a",3,1);M("click",function(d){t(c);return v(b.visit(d))});Og(5);J()}a&2&&(a=L(1),z(3),D("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,uf))},dependencies:[fJ,gJ,lJ,hJ,FO],encapsulation:2,changeDetection:0});var HO=function(){this.activeSession=n(Es);this.isMentioningMe=!1};HO.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};HO.\u0275fac=function(a){return new (a||HO)};
HO.\u0275cmp=B({type:HO,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},standalone:!1,decls:6,vars:5,consts:[["el",""],["card",""],[1,"mention",3,"onedevHovercardTrigger"],[3,"email"]],template:function(a,b){a&1&&(I(0,"span",2,0),Q(2),J(),I(3,"onedev-hovercard",null,1),K(5,"b-issue-person-card",3),J());a&2&&(a=L(4),wg("me",b.isMentioningMe),D("onedevHovercardTrigger",a),z(2),R("@",b.username),z(3),D("email",b.email))},dependencies:[tL,fJ,lJ],styles:[".mention[_ngcontent-%COMP%]{font-weight:500}.mention.me[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--self-mentioned-bg);color:#1a73e8;color:var(--self-mentioend-text);border-radius:4px;font-weight:500;padding:0 3px}"]});var IO=function(){this.content=Kr;this.canEditComment=!1;this.checkboxChange=new LA;this.appRef=n(vh);this.flags=n(DO);this.session=n(Es);this.viewContainerRef=n(Ug);this.elementRef=n(ff);this.destroyRef=n(df);this.allComponentRefs=[]};
IO.prototype.ngOnChanges=function(){kLc(this);gm(this.elementRef.nativeElement,this.content);for(var a=this.elementRef.nativeElement,b=this.viewContainerRef,c=a.querySelectorAll("*"),d=0;d<c.length;d++){var e=c[d],f=e.dataset.bId;f&&(e.id=f)}c=l(a.querySelectorAll("a"));for(d=c.next();!d.done;d=c.next())if(d=d.value,(f=d.getAttribute("href"))&&pJa(f)&&d&&vxa(d)&&f===d.textContent&&(e=d.nextSibling,lLc(this,d,f,void 0,b),f=void 0,(f=e)!=null&&f.textContent&&(f=e.textContent.match(/(^[^\w]+)/))))f=
f[1],e.textContent=e.textContent.substring(f.length),e=document.createElement("span"),e.textContent=f,d.insertAdjacentElement("afterend",e);c=a.querySelectorAll("*[data-b-widget]");for(d=0;d<c.length;d++)switch(e=c[d],e.dataset.bWidget){case "image":f=e;e=b;var h=f.dataset.bImgSrc,k=f.dataset.bImgRedirectedSrc;XVa(f);if(h){var q=f.dataset.bImgAlt;if(pJa(h))lLc(this,f,h,q,e,!0);else if(Yr(this.flags.session,"enableMarkdownInlineImages"))e=this.createComponent(UH,f,e).instance,e.src=h,q&&(e.alt=q);
else{var u=document.createElement("a");q?u.appendChild(document.createTextNode(q)):u.appendChild(document.createTextNode(h));f.appendChild(u);mLc(this,u,h,k||h,e)}}break;case "checkbox":f=b;q=e.dataset.bCheckboxChecked!=null;XVa(e);nLc(this,e,q,f);break;case "url":f=b;q=e.dataset.bOriginalHref;h=e.dataset.bRedirectedHref;q&&h&&(e.removeAttribute("href"),mLc(this,e,q,h,f));break;case "broken-url":if(q=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(BO,f,b).instance,
f.originalHref=q,f=f.getNgContentParentEl(),e=l(e),q=e.next();!q.done;q=e.next())f.appendChild(q.value);break;case "mention":f=void 0;q=e;h=b;e="";((f=q.textContent)==null?void 0:f[0])==="@"&&(e=q.textContent.slice(1));XVa(q);f=this.createComponent(HO,q,h).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(q=e.href,h=e.dataset.bIssueId,k=e.dataset.bCommentNumber,q&&h){f=void 0;u=Number(k);k=Array.from(e.childNodes);var A=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(A,e);f=this.createComponent(GO,A,b).instance;f.href=q;f.issueId=h;f.commentNumber=u;f=f.el.nativeElement;q=l(k);for(h=q.next();!h.done;h=q.next())f.appendChild(h.value);e.remove()}}b=a.querySelectorAll("a");for(c=0;c<b.length;c++)d=b[c],d.getAttribute("target")||d.setAttribute("target","_self");b=a.querySelectorAll("table");for(c=0;c<b.length;c++)d=b[c],d.parentNode&&(e=document.createElement("div"),e.classList.add("table-overflow"),e.tabIndex=-1,d.parentNode.insertBefore(e,
d),e.appendChild(d));a=l(a.querySelectorAll("pre"));for(b=a.next();!b.done;b=a.next())b.value.tabIndex=-1};IO.prototype.ngOnDestroy=function(){kLc(this)};
var lLc=function(a,b,c,d,e,f){f=f===void 0?!1:f;var h=b;b instanceof HTMLAnchorElement&&(h=document.createElement("span"),b.insertAdjacentElement("afterend",h));a=a.createComponent(WH,h,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},nLc=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(eLc,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!Yr(a.session,"enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(Gh(a.destroyRef)).subscribe(function(h){a.checkboxChange.emit({checked:h,
startPos:f})})},mLc=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(CO,b,e).instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=l(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)};IO.prototype.createComponent=function(a,b,c){a=wma(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);gac(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var kLc=function(a){for(var b=l(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};IO.\u0275fac=function(a){return new (a||IO)};IO.\u0275dir=Kf({type:IO,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[Uu]});var JO=function(){this.codefont=n(zO);this.canEditComment=!1;this.checkboxChange=new LA};JO.prototype.ngOnInit=function(){};JO.\u0275fac=function(a){return new (a||JO)};
JO.\u0275cmp=B({type:JO,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,features:[hh([{provide:bLc,useValue:"MARKDOWN"}])],decls:3,vars:6,consts:[["child",""],[1,"type-m","markdown-display",3,"checkboxChange","applyDynamicComponents","canEditComment"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1,0);S(2,"async");M("checkboxChange",function(d){t(c);return v(b.checkboxChange.emit(d))});
J()}a&2&&(wg("codefont",T(2,4,b.codefont.codefont$)),D("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[IO,Qv],styles:[':root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}.markdown-display section.footnotes{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;margin-top:2.5em;border-top:1px solid #dadce0}.markdown-display sup.footnote-ref::before{content:"["}.markdown-display sup.footnote-ref::after{content:"]"}.markdown-display .footnote-backref{text-decoration:none}.markdown-display .footnote-backref>a{text-decoration:none}.markdown-display .align-left{text-align:left}.markdown-display .align-right{text-align:right}.markdown-display .align-center{text-align:center}.markdown-display .align-justify{text-align:justify}.markdown-display .g3mark-callout{position:relative}.markdown-display .g3mark-callout .g3mark-callout__icon{display:none}.markdown-display summary{cursor:pointer}.markdown-display code{white-space:break-spaces}.markdown-display pre code{white-space:pre}body:not(.dark-mode) .markdown-display .stx-plain{color:inherit}body:not(.dark-mode) .markdown-display .stx-keyword{color:#708}body:not(.dark-mode) .markdown-display .stx-keyword-strong{color:inherit}body:not(.dark-mode) .markdown-display .stx-string{color:#080}body:not(.dark-mode) .markdown-display .stx-comment{color:#800}body:not(.dark-mode) .markdown-display .stx-number{color:#164}body:not(.dark-mode) .markdown-display .stx-macro{color:#555}body:not(.dark-mode) .markdown-display .stx-class{color:inherit}body:not(.dark-mode) .markdown-display .stx-const{color:inherit}body:not(.dark-mode) .markdown-display .stx-escape-sequence{color:inherit}body:not(.dark-mode) .markdown-display .stx-deprecated{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-doc-tag{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-task-tag{font-weight:inherit}body:not(.dark-mode) .markdown-display .stx-atom{color:#219}body:not(.dark-mode) .markdown-display .stx-definition{color:blue}body:not(.dark-mode) .markdown-display .stx-type-id{color:#085}body:not(.dark-mode) .markdown-display .stx-qualifier{color:#555}body:not(.dark-mode) .markdown-display .stx-local-ref{color:#05a}body:not(.dark-mode) .markdown-display .stx-md-entity{color:#708}body:not(.dark-mode) .markdown-display .stx-md-bold{font-weight:bold}body:not(.dark-mode) .markdown-display .stx-md-italic{font-style:italic}body:not(.dark-mode) .markdown-display .stx-md-link{color:#080}body:not(.dark-mode) .markdown-display .stx-md-code{color:#555}body:not(.dark-mode) .markdown-display .stx-comment .stx-md-link,body:not(.dark-mode) .markdown-display .stx-comment .stx-md-code{color:#800}body:not(.dark-mode) .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body:not(.dark-mode) .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body:not(.dark-mode) .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body:not(.dark-mode) .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body:not(.dark-mode) .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body:not(.dark-mode) .markdown-display .g3mark-callout__keyword{font-weight:bold}body:not(.dark-mode) .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body:not(.dark-mode) .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body:not(.dark-mode) .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body:not(.dark-mode) .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body:not(.dark-mode) .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body:not(.dark-mode) .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body:not(.dark-mode) .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr,body:not(.dark-mode) .markdown-display .g3mark-callout-summary{border-color:#669df6;background:#e8f0fe;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-todo,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme{border-color:#bdc1c6;background:#f8f9fa;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-tip,body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice{border-color:#5bb974;background:#e6f4ea;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-note{border-color:#bdc1c6;background:#f8f9fa;color:#202124;background:#f1f3f4}body:not(.dark-mode) .markdown-display .g3mark-callout-warning{border-color:#ee675c;background:#fce8e6;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-important{border-color:#fa903e;background:#feefe3;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-question{border-color:#669df6;background:#e8f0fe;color:#202124}body.dark-mode .markdown-display .stx-plain{color:inherit}body.dark-mode .markdown-display .stx-keyword{color:#d8884b}body.dark-mode .markdown-display .stx-keyword-strong{color:inherit}body.dark-mode .markdown-display .stx-string{color:#97c67b}body.dark-mode .markdown-display .stx-comment{color:#8c9292}body.dark-mode .markdown-display .stx-number{color:#79a9c4}body.dark-mode .markdown-display .stx-macro{color:#9dbed9}body.dark-mode .markdown-display .stx-class{color:inherit}body.dark-mode .markdown-display .stx-const{color:inherit}body.dark-mode .markdown-display .stx-escape-sequence{color:inherit}body.dark-mode .markdown-display .stx-deprecated{text-decoration:inherit}body.dark-mode .markdown-display .stx-doc-tag{text-decoration:inherit}body.dark-mode .markdown-display .stx-task-tag{font-weight:inherit}body.dark-mode .markdown-display .stx-atom{color:#cf7ea9}body.dark-mode .markdown-display .stx-definition{color:#75b3db}body.dark-mode .markdown-display .stx-type-id{color:#eede7b}body.dark-mode .markdown-display .stx-qualifier{color:#97c67b}body.dark-mode .markdown-display .stx-local-ref{color:#aac6e3}body.dark-mode .markdown-display .stx-md-entity{color:#d8884b}body.dark-mode .markdown-display .stx-md-bold{font-weight:bold}body.dark-mode .markdown-display .stx-md-italic{font-style:italic}body.dark-mode .markdown-display .stx-md-link{color:#d8884b}body.dark-mode .markdown-display .stx-md-code{color:#d8884b}body.dark-mode .markdown-display .stx-comment .stx-md-link,body.dark-mode .markdown-display .stx-comment .stx-md-code{color:#89b2cd}body.dark-mode .markdown-display pre .chl{border:1px solid #ffca28;background-color:#6a5619;padding:1px 0;margin:0 -1px}body.dark-mode .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body.dark-mode .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body.dark-mode .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body.dark-mode .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body.dark-mode .markdown-display .g3mark-callout__keyword{font-weight:bold}body.dark-mode .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body.dark-mode .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body.dark-mode .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body.dark-mode .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body.dark-mode .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body.dark-mode .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body.dark-mode .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body.dark-mode .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body.dark-mode .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body.dark-mode .markdown-display .g3mark-callout-todo,body.dark-mode .markdown-display .g3mark-callout-fixme,body.dark-mode .markdown-display .g3mark-callout-tldr,body.dark-mode .markdown-display .g3mark-callout-tip,body.dark-mode .markdown-display .g3mark-callout-note,body.dark-mode .markdown-display .g3mark-callout-warning,body.dark-mode .markdown-display .g3mark-callout-important,body.dark-mode .markdown-display .g3mark-callout-best_practice,body.dark-mode .markdown-display .g3mark-callout-summary,body.dark-mode .markdown-display .g3mark-callout-question{border-color:#fff;background:#3c4043;color:#fff}/*# sourceMappingURL=markdown_format_presenter.css.map */\n'],
encapsulation:2,changeDetection:0});var oLc=["child"],pLc=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},KO=function(){this.codefont=n(zO)};KO.prototype.ngOnInit=function(){};KO.\u0275fac=function(a){return new (a||KO)};
KO.\u0275cmp=B({type:KO,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},standalone:!1,features:[hh([{provide:bLc,useValue:"PLAIN"}])],decls:4,vars:4,consts:[[1,"type-m"],[3,"section"]],template:function(a,b){a&1&&(I(0,"div",0),S(1,"async"),Dg(2,YVa,1,1,"b-plain-format-section",1,Cg),J());a&2&&(wg("codefont",T(1,2,b.codefont.codefont$)),z(2),Eg(b.content.plainSection))},dependencies:function(){return[LO,Qv]},styles:[pLc()],changeDetection:0});var LO=function(){};
LO.prototype.ngOnInit=function(){};LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275cmp=B({type:LO,selectors:[["b-plain-format-section"]],inputs:{section:"section"},standalone:!1,decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Fg(0),E(1,ZVa,1,1,"b-plain-format-quoted-section",0)(2,$Va,1,1,"b-plain-format-unquoted-section",0),Gg());a&2&&(z(),F(b.section.isQuoted?1:2))},dependencies:function(){return[MO,NO]},encapsulation:2,changeDetection:0});
var MO=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++qLc};MO.prototype.ngOnInit=function(){};MO.prototype.ngOnChanges=function(){aWa(this)};var aWa=function(a){var b=a.child.nativeElement;if(a.showQuote)gm(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};MO.\u0275fac=function(a){return new (a||MO)};
MO.\u0275cmp=B({type:MO,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&Wg(oLc,7);if(a&2){var c;$g(c=ah())&&(b.child=c.first)}},inputs:{section:"section"},standalone:!1,features:[Uu],decls:5,vars:2,consts:[["child",""],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted"],["tabindex","0","role","button","aria-expanded","false",1,"showhide","muted"],[1,"child",3,"id"],["tabindex","0","role","button","aria-expanded","true",1,"showhide","muted",3,"click"],
["tabindex","0","role","button","aria-expanded","false",1,"showhide","muted",3,"click"]],template:function(a,b){a&1&&(I(0,"div"),E(1,bWa,2,1,"a",1)(2,cWa,2,1,"a",2),K(3,"div",3,0),J());a&2&&(z(),F(b.showQuote?1:2),z(2),D("id",b.childId))},styles:[pLc()],changeDetection:0});var qLc=0,NO=function(){};NO.prototype.ngOnInit=function(){};NO.\u0275fac=function(a){return new (a||NO)};
NO.\u0275cmp=B({type:NO,selectors:[["b-plain-format-unquoted-section"]],inputs:{section:"section"},standalone:!1,decls:1,vars:1,consts:[[1,"child",3,"applyDynamicComponents"]],template:function(a,b){a&1&&K(0,"div",0);a&2&&D("applyDynamicComponents",b.section.content)},dependencies:[IO],encapsulation:2,changeDetection:0});var OO=function(){this.canEditComment=!1;this.checkboxChange=new LA};OO.prototype.ngOnInit=function(){};OO.\u0275fac=function(a){return new (a||OO)};
OO.\u0275cmp=B({type:OO,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,decls:3,vars:3,consts:[[3,"content"],[3,"content","canEditComment"],[3,"checkboxChange","content","canEditComment"]],template:function(a,b){a&1&&(E(0,dWa,1,1,"b-literal-format-presenter",0),E(1,eWa,1,2,"b-markdown-format-presenter",1),E(2,fWa,1,1,"b-plain-format-presenter",0));if(a&2){var c,d,e;F((c=
b.formattedComment.literalFormat)?0:-1,c);z();F((d=b.formattedComment.markdownFormat)?1:-1,d);z();F((e=b.formattedComment.plainFormat)?2:-1,e)}},dependencies:[AO,JO,KO],encapsulation:2,changeDetection:0});var PO=function(){Z.apply(this,arguments);var a=this;this.formatter=n(IN);this.issueIdInternal="";this.audience="EXTERNAL";this.formattingMode="LITERAL";this.params$=new ag(1);this.formattedResult$=this.params$.pipe(Sf(200),fg(function(b){return a.formatter.format(b).pipe(rLc,Pf(function(){var c={literalFormat:{content:Oi(b.comment)}};return Ce({formattedComment:c,isFallback:!0})}))}))};Y(PO,Z);PO.\u0275dir=Z.\u0275dir;
PO.prototype.ngOnInit=function(){var a=this;this.comment$&&this.subscriptions.add(this.comment$.subscribe(function(b){a.params$.next({comment:b,issueId:a.issueIdInternal,audience:a.audience!=null?a.audience:"EXTERNAL",formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};PO.prototype.ngOnChanges=function(){this.comment!=null&&this.params$.next({comment:this.comment,issueId:this.issueIdInternal,audience:this.audience!=null?this.audience:"EXTERNAL",formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
PO.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};ea.Object.defineProperties(PO.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});PO.\u0275fac=function(){var a;return function(b){return(a||(a=fe(PO)))(b||PO)}}();
PO.\u0275cmp=B({type:PO,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},standalone:!1,features:[kg,Uu],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(E(0,gWa,2,5,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[OO,Qv],styles:["[_nghost-%COMP%]{display:block}.md-preview[_ngcontent-%COMP%]{min-height:32px;margin-top:16px}.md-preview[_ngcontent-%COMP%]{box-sizing:border-box;padding:8px;background-color:#f8f9fa;background-color:var(--c50);border-radius:4px}.md-preview.error[_ngcontent-%COMP%]{background-color:rgb(253.5,243.5,242.5);background-color:var(--bad-bg-pale);box-shadow:inset 0 0 0 1px #ea4335;box-shadow:inset 0 0 0 1px var(--bad)}[_nghost-%COMP%]     .markdown-display pre, [_nghost-%COMP%]     .markdown-display code{background-color:#f1f3f4;background-color:var(--c100)}.bv2-note-container-note   [_nghost-%COMP%]   .md-preview[_ngcontent-%COMP%]{min-height:0;margin-top:0;padding:0;background-color:rgba(0,0,0,0)}/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var rLc=y(function(a){return{formattedComment:a,isFallback:!1}});var QO=function(){var a=this;this.errorHandler=n(DK);this.eventsForIssueFridge=n(CE);this.issueFullFridge=n(EF);this.issueCommentsService=n(VK);this.issueInteractionsTracking=n(hL);this.butterBar=n(iK);this.editIssueService=n(oL);this.formattedCommentsForIssueFridge=n(GE);this.rawComment$=new bg;this.issueId="";this.commentNumber=0;this.rawComment="";var b=0;this.rawComment$.pipe(y(function(c){return{comment:c,id:b+=1}}),Sf(800),Le(function(c){return a.doSave(c.comment,c.id)}),Ve(function(c){return c===
b})).subscribe(function(){sLc(a)})};QO.prototype.ngOnDestroy=function(){this.rawComment$.complete()};QO.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};QO.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
QO.prototype.doSave=function(a,b){var c=this,d,e,f;return w(function(h){switch(h.nextAddress){case 1:return te(h,2),x(h,c.issueCommentsService.update(c.issueId,(d=c.commentNumber)!=null?d:0,a,"MARKDOWN",""),4);case 4:uu(h,3);break;case 2:e=xe(h),FK(c.errorHandler,e),(f=c.savingState)==null||nL(f,"commentEdit");case 3:return h.return(b)}})};
var sLc=function(a){Mq(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=$xa(c.events,a.commentNumber,{formattedComment:void 0,unlinkifiedComment:a.rawComment,formattingMode:"MARKDOWN"})});a.issueFullFridge.poke(a.issueId);a.formattedCommentsForIssueFridge.invalidate(a.issueId+"-"+a.commentNumber);a.eventsForIssueFridge.poke(a.issueId);var b;(b=a.savingState)==null||nL(b,"commentEdit")};QO.\u0275fac=function(a){return new (a||QO)};
QO.\u0275prov=Sc({token:QO,factory:QO.\u0275fac});var RO=function(){var a=n(OG);Z.call(this);var b=this;this.activeSession=n(Es);this.appEvents=n(nD);this.markdownCheckboxService=n(QO);this.init=new LA;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=Yk;(this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions"))&&this.activeSession.isInternalSession()?a.commentFormattingPreferencesSubject$.pipe(gg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride=
"LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:Gb(c.commentDisplayOverride)}}):a.textDisplayPreferencesSubject$.pipe(gg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride=
"MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:Gb(c.commentDisplayOverride)}})};Y(RO,Z);RO.\u0275dir=Z.\u0275dir;RO.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
RO.prototype.ngOnChanges=function(a){if(a.note&&!this.markdownCheckboxService.pending()){this.rawComment=this.note.unlinkifiedComment||"";this.markdownCheckboxService.rawComment=this.rawComment;var b;this.formattedComment=(b=this.note.formattedComment)!=null?b:null}this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.note.commentNumber&&(this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber)};
RO.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};RO.\u0275fac=function(a){return new (a||RO)};
RO.\u0275cmp=B({type:RO,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},standalone:!1,features:[hh([QO]),kg,Uu],decls:4,vars:1,consts:[[1,"bv2-note-container","bv2-event-note"],[1,"bv2-note-container-note"],[3,"formattedComment","canEditComment"],[3,"comment","issueId","audience","formattingMode","idPrefix"],[3,"checkboxChange","formattedComment","canEditComment"]],
template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),E(2,hWa,1,2,"b-formatted-comment-presenter",2)(3,iWa,1,5,"b-live-preview",3),J()());if(a&2){z(2);if(a=b.formattedComment)a=b.formattedComment,a=!a||b.formattingModeOverride?!1:a.literalFormat&&b.formattingMode==="LITERAL"||a.plainFormat&&b.formattingMode==="PLAIN"||a.markdownFormat&&b.formattingMode==="MARKDOWN"?!0:!1;F(a?2:3)}},dependencies:[OO,PO],styles:[".bv2-note-container[_ngcontent-%COMP%]{display:flex;flex-direction:row}.bv2-note-container-note[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0}"],
changeDetection:0});var SO=function(){this.activeSession=n(Es);this.issueApi=n(BE);this.analytics=n(CF);this.errorHandler=n(DK);this.onCc=new LA};SO.prototype.ngOnInit=function(){};
SO.prototype.toggle=function(){var a=this;this.analytics.trackEvent("issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);this.ccState?(this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(b){a.ccState=!0;a.errorHandler.errorHandler(null,b)})):(this.ccState=!0,this.issueApi.updateIssue(this.issueId,{issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]}).then(function(){}).catch(function(b){a.ccState=
!1;a.errorHandler.errorHandler(null,b)}))};SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275cmp=B({type:SO,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},standalone:!1,decls:3,vars:1,consts:[["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){return b.toggle()}),E(1,jWa,2,0,"ng-container")(2,kWa,2,0,"ng-container"),J());a&2&&(z(),F(b.ccState?1:2))},dependencies:[PA,Tx],encapsulation:2});var pt=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.searchMaxResults_=this.suggestMaxResults_=this.searchFormat_=this.suggestFormat_=this.queryScope_=0;this.slots_=[];this.entryPoint_=0;this.filterEmptyExplodingGroups_=!0;this.selectedCustomProviderNames_=null};g=pt.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getQueryScope=function(){return this.queryScope_};
g.getEntryPoint=function(){return this.entryPoint_};g.setEntryPoint=function(a){this.entryPoint_=a;return this};g.getSuggestFormat=function(){return this.suggestFormat_};g.getSearchFormat=function(){return this.searchFormat_};g.getSuggestMaxResults=function(){return this.suggestMaxResults_};g.getSearchMaxResults=function(){return this.searchMaxResults_};
g.clone=function(){var a=new pt;a.filter_=this.filter_;a.filterEmptyExplodingGroups_=this.filterEmptyExplodingGroups_;a.boostIds_=this.boostIds_;a.primingTimeoutMillis_=this.primingTimeoutMillis_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;a.suggestFormat_=this.suggestFormat_;a.searchFormat_=this.searchFormat_;a.suggestMaxResults_=this.suggestMaxResults_;a.searchMaxResults_=this.searchMaxResults_;a.selectedCustomProviderNames_=this.selectedCustomProviderNames_;
return a};var iu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iu,V);iu.prototype.getEntryPoint=function(){return pl(this,5)};iu.prototype.setEntryPoint=function(a){return Sl(this,5,a)};var ju=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ju,V);ju.prototype.getEntryPoint=function(){return pl(this,1)};ju.prototype.setEntryPoint=function(a){return Sl(this,1,a)};var TO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TO,V);TO.prototype.getQuery=function(){return Oh(this,1)};TO.prototype.setQuery=function(a){return Rl(this,1,a)};TO.prototype.clearQuery=function(){tq(this,1)};TO.prototype.hasQuery=function(){return ml(this,1)};var tLc=function(a,b){Hl(a,3,b)};TO.prototype.getAffinityVersion=function(){return Ik(this,7)};TO.prototype.setAffinityVersion=function(a){Pl(this,7,a)};
TO.prototype.getAffinityVersionOrUndefined=function(){return Lu(this,7)};var uLc=function(a){var b=qxc();tq(a,8,Hb(b))};g=TO.prototype;g.getSources=function(){return X(this,iu,10)};g.getInstanceId=function(){return Oh(this,11)};g.setInstanceId=function(a){return Rl(this,11,a)};g.clearInstanceId=function(){tq(this,11)};g.hasInstanceId=function(){return ml(this,11)};g.getInstanceIdOrUndefined=function(){return fr(this,11)};var cu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cu,V);g=cu.prototype;g.getPersonLoggingId=function(){return Oh(this,1)};g.setPersonLoggingId=function(a){Rl(this,1,a)};g.getFieldLoggingId=function(){return Oh(this,2)};g.setFieldLoggingId=function(a){Rl(this,2,a)};g.setFieldValue=function(a){return Rl(this,3,a)};g.clearFieldValue=function(){return tq(this,3)};g.getName=function(){return Oh(this,4)};g.setName=function(a){return Rl(this,4,a)};
g.hasName=function(){return ml(this,4)};g.getNameOrUndefined=function(){return fr(this,4)};g.getContactId=function(){return Oh(this,5)};g.setContactId=function(a){return Rl(this,5,a)};g.getProfileId=function(){return Oh(this,6)};g.getProfileId_legacyNullable=function(){return am(this,6)};g.setProfileId=function(a){return Rl(this,6,a)};g.hasProfileId=function(){return ml(this,6)};g.getFieldType=function(){return pl(this,7)};g.getIsPlaceholder=function(){return kl(this,10)};
g.setIsPlaceholder=function(a){Ol(this,10,a)};g.getGroupId=function(){return Oh(this,11)};g.setGroupId=function(a){Rl(this,11,a)};g.hasGroupId=function(){return ml(this,11)};g.getIsBoosted=function(){return kl(this,12)};g.setIsBoosted=function(a){Ol(this,12,a)};var bu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bu,V);g=bu.prototype;g.getProvenance=function(){return pl(this,3)};g.setProvenance=function(a){return Sl(this,3,a)};g.getContext=function(){return pl(this,5)};g.getExistingSelectionsCount=function(){return Ik(this,6)};g.setExistingSelectionsCount=function(a){Pl(this,6,a)};var au=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(au,V);au.prototype.getInfo=function(){return X(this,cu,1)};var it=function(a){return X(a,bu,2)};au.prototype.getSessionState=function(){return X(this,TO,3)};au.prototype.setSessionState=function(a){return W(this,TO,3,a)};au.prototype.hasSessionState=function(){return nk(this,TO,3)};var Zt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zt,V);g=Zt.prototype;g.getType=function(){return pl(this,1)};g.setType=function(a){return Sl(this,1,a)};g.hasType=function(){return nl(this,1)};g.getValue=function(){return Oh(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};var vLc=function(a){this.delegate_=a};g=vLc.prototype;g.getDelegate=function(){return this.delegate_};g.getId=function(){return this.delegate_.getId()};g.getTargetType=function(){return this.delegate_.getTargetType()};g.getValue=function(){return this.delegate_.getValue()};g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getCanonicalValue=function(){return this.delegate_.getCanonicalValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getName=function(){return this.delegate_.getName()};
g.getPhoto=function(){return this.delegate_.getPhoto()};g.getTagList=function(){return this.delegate_.getTagList()};g.getSourceIdList=function(){return this.delegate_.getSourceIdList()};g.getProfileId=function(){return this.delegate_.getProfileId()};g.getContactId=function(){return this.delegate_.getContactId()};g.getLoggingToken=function(){return this.delegate_.getLoggingToken()};g.getIsMe=function(){return this.delegate_.getIsMe()};g.getOrgState=function(){return this.delegate_.getOrgState()};
g.getEmailSecurityInfo=function(){return this.delegate_.getEmailSecurityInfo()};g.getDataSource=function(){return this.delegate_.getDataSource()};g.getOriginatingField=function(){return this.delegate_.getOriginatingField()};g.getReachabilityInfo=function(){return this.delegate_.getReachabilityInfo()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var B5b=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=B5b.prototype;g.getDisplayName=function(){return this.displayName_};g.setDisplayName=function(a){this.displayName_=a||"";return this};g.getGivenName=function(){return this.givenName_};g.setGivenName=function(a){this.givenName_=a||"";return this};g.getFamilyName=function(){return this.familyName_};g.setFamilyName=function(a){this.familyName_=a||"";return this};g.getSourceType=function(){return this.sourceType_};
g.setSourceType=function(a){this.sourceType_=a||0;return this};var wLc=function(a,b){this.delegate_=a;this.name_=b};Y(wLc,vLc);wLc.prototype.getName=function(){return this.name_};var UO=function(a){this.delegate_=a};g=UO.prototype;g.getDelegate=function(){return this.delegate_};g.getResultType=function(){return this.delegate_.getResultType()};g.getTargetList=function(){return this.delegate_.getTargetList()};g.getMemberList=function(){return this.delegate_.getMemberList()};g.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};g.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};g.getDisplayName=function(){return this.delegate_.getDisplayName()};
g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};g.getIsBoosted=function(){return this.delegate_.getIsBoosted()};g.getMatchInfo=function(){return this.delegate_.getMatchInfo()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var Pq=function(a){this.delegate_=a};Y(Pq,UO);g=Pq.prototype;g.getPrimaryTarget=function(){return this.getTargetList()[0]};g.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};g.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};g.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
g.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var lWa=function(a,b){this.delegate_=a;this.targets_=b};Y(lWa,UO);lWa.prototype.getTargetList=function(){return this.targets_};var xLc=function(){};xLc.prototype.filterResult=function(a){var b=this,c=a.getTargetList().filter(function(d){return!b.shouldRemove(d)});return c.length===0?null:c.length===a.getTargetList().length?a:new Pq(new lWa(a,c))};xLc.prototype.reset=function(){};var nWa=function(a){this.types_=a};Y(nWa,xLc);nWa.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};nWa.prototype.reset=function(){};var oWa=function(a){this.sourceIds_=a.filter(function(b){return X6b.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return Sxc.includes(b.getType())}).map(String)};Y(oWa,xLc);oWa.prototype.shouldRemove=function(a){var b=this;return!this.targetIds_.includes(String(a.getId()))&&a.getSourceIdList().every(function(c){return!b.sourceIds_.includes(String(c))})};
var qWa=function(a){this.filters_=a};qWa.prototype.filterResult=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};qWa.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var sWa=function(a){this.filters_=a};sWa.prototype.filterResult=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())if(c=c.value.filterResult(a))return c;return null};
sWa.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var yLc=rWa();var zLc=new yd("PeoplekitClientConfig"),ALc=function(a){this.matcher=a};ALc.prototype.filterResult=function(a){for(var b=a.getTargetList(),c=b.length-1;c>=0;c--)b[c].getTargetType()===1&&this.matcher(b[c].getValue())&&b.splice(c,1);return b.length?a:null};ALc.prototype.reset=function(){};var VO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new tj(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;BLc(b,b.localDarkmode);b.clientStreamzService&&MBc(b.clientStreamzService,"loadDarkmode",b.clientDarkmodeSubject.getValue())};this.setLocalDarkmode=function(c){b.localDarkmode=c;b.localDarkmode?window.localStorage.setItem("onedev-darkmode",
b.localDarkmode.toString()):window.localStorage.removeItem("onedev-darkmode")}};VO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(kJ)};var BLc=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};VO.\u0275fac=function(a){return new (a||VO)(nd(Ze))};VO.\u0275prov=Sc({token:VO,factory:VO.\u0275fac});var WO=function(){this.theme=n(VO)};WO.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var cs=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},Xcb=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()}).join(",")},vqb=function(a,b){return a.length!==b.length?!1:Pua(a,cs(b))},CLc=function(a,b){if(!(b.length===0&&a===""||vqb([a],b))){if(b.length>1){b=new Set(cs(b));b.delete(a);var c;a=(c=b.values().next().value)!=null?c:""}else a=b.length===1?cs(b)[0]:"";return a}},zWa=function(a){return{showSuggestions:!1,moveAutocompleteAboveAnchorIfOffscreen:!0,
density:2,theme:a.getTheme()}},Ucb=function(a,b){a={helpText:void 0,helpTextWithSelections:"",density:2,theme:a.getTheme()};b&&(a.preselectedIds=b.filter(Tk).map(function(c){return Ht(c)}));return a};WO.\u0275fac=function(a){return new (a||WO)};WO.\u0275prov=Sc({token:WO,factory:WO.\u0275fac,providedIn:"root"});var DLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DLc,V);g=DLc.prototype;g.setMaxResults=function(a){return Pl(this,1,a)};g.getQuery=function(){return Oh(this,2)};g.setQuery=function(a){return Rl(this,2,a)};g.clearQuery=function(){tq(this,2)};g.hasQuery=function(){return ml(this,2)};var ELc=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var FLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y(FLc,V);var GLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GLc,V);g=GLc.prototype;g.getExperimentIdsList=function(a){return Hc(this,1,Sb,Fk(a))};g.setExperimentIdsList=function(a){return Mc(this,1,a,Rb)};g.getExperimentIds=function(){return Ju(this,1)};g.setExperimentIds=function(a){Pc(this,1,Rb,void 0,a,Sb,1)};g.getProfileId=function(){return Oh(this,2)};g.getProfileId_legacyNullable=function(){return am(this,2)};g.setProfileId=function(a){return Rl(this,2,a)};
g.hasProfileId=function(){return ml(this,2)};var HLc=function(){},ILc=function(){return!1},JLc=function(){this.experiments_=(new GLc).setProfileId(zI.userProfileId);this.peopleApiEnv_=zI.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=HLc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=ILc;this.customDataConfig_=null;this.requestCorpHeaders_=this.isOrgStateEnabled_=!1;var a=zI.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(Ht(a)))};g=JLc.prototype;
g.getUserEmail=function(){return this.userEmail_};g.getDelegatorId=function(){return this.delegatorId_};g.getPeopleApiEnv=function(){return this.peopleApiEnv_};g.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};g.getExperiments=function(){return this.experiments_};g.getAuthErrorHandler=function(){return this.onAuthError_};g.setClearcutUrl=function(a){this.clearcutUrl_=a};g.getClearcutUrl=function(){return this.clearcutUrl_};g.setAuthErrorHandler=function(a){this.onAuthError_=a||HLc};
g.getApiKey=function(){return this.apiKey_};g.setApiKey=function(a){this.apiKey_=a;return this};var XO=function(a,b){b!=null||(b=n(ph));var c=new JLc;a.peopleApiEnv&&c.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(c.customAuthHeaders_=a.customAuthHeaders);a.profileId&&c.getExperiments().setProfileId(a.profileId);if(a.dynamicDataProviders||a.staticDataProviders){var d=new ELc;a.dynamicDataProviders&&(d.dynamicDataProviders_=a.dynamicDataProviders);a.staticDataProviders&&(d.staticDataProviders_=a.staticDataProviders);c.customDataConfig_=d}b=b.runOutsideAngular(function(){var e=a.peopleStoreClient.create(c);
e.warmUpCache();return{peopleStore:e,environmentConfig:new Xxc(c.getPeopleApiEnv(),new Yxc(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};XO.\u0275fac=function(a){return new (a||XO)(nd(zLc),nd(ph))};XO.\u0275prov=Sc({token:XO,factory:XO.\u0275fac});var KLc=["multiUserInput"],LLc=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};LLc.prototype.getPosition=function(){return 2};LLc.prototype.warmUpCache=function(){var a=new Dlc;Elc(a,this.component.additionalContactsFn().map(function(b){var c=(new Clc).setResultType(7);b=Sl((new OB).setValue(b.id),1,18).setName((new MB).setDisplayName(b.text));Eu(c,2,OB,b);return c}));return Promise.resolve(a)};LLc.prototype.needsWarmUp=function(){return!1};
var YO=function(){Z.apply(this,arguments);var a=this;this.element=n(ff);this.principalTypes=n(kG);this.activeSession=n(Es);this.documentationLinks=n(lK);this.appEvents=n(nD);this.cdr=n(NA,{self:!0});this.hotkeys=n(nH);this.autocompleteConfigService=n(WO);this.usersChange=new LA(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new LA;this.enablePeoplekitAc=Yr(this.activeSession,
"enablePeoplekitUserAc");this.SESSION_OPTIONS=(new pt).setFilter(tWa(Qq(1),Qq(18)));this.typedText="";this.items=[];this.chipifyFn=function(){MLc(a)};this.additionalContactsFn=function(){return NLc(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Y(YO,Z);YO.\u0275dir=Z.\u0275dir;
YO.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(oH(this.hotkeys,{title:"Manage Component Page",hotkeys:[{keys:[],displayAs:"Right Arrow (>)",description:"Move the Cursor to Input Field",onPress:function(){}}]}));this.validators=Object.assign({},{validateGaia:function(b,c){return OLc(c)},validateInternalAccessLevel:function(b,c){return PLc(a,c)},validateExternalAccessLevel:function(b,
c){return QLc(a,c)}},this.customValidators)};YO.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=RLc(this,this.users),ZO(this)};var ZO=function(a){var b=[].concat(p(a.items)),c=SLc(b),d=TLc(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Pj(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
YO.prototype.validate=function(a,b,c){for(var d=new Set,e=l(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=l(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=l(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return this.violations.size===0};
var wWa=function(a){!a.isWidgetDisabled()&&ULc(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},uWa=function(a){Rq(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};YO.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var ULc=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
YO.prototype.removeItem=function(a){this.isWidgetDisabled()||!Rq(this,a)||this.items[a].isReadonly||(uWa(this),this.items.splice(a,1),ZO(this))};YO.prototype.setAccessLevel=function(a){this.accessLevel=a};
var NLc=function(a){return VLc(a).map(function(b){return{text:mua(b),id:Sp({alias:b})}})},VLc=function(a){if(!a.includeAliases||xC(a.activeSession))return[];var b=["googlers_unrestricted"];if(a.accessLevel===void 0||a.accessLevel==="EXTERNAL_PUBLIC")b.push("public_non_google"),a.includeViewAliases&&b.push("public");return b},MLc=function(a){setTimeout(function(){a.typedText&&Da(a.typedText,",")&&WLc(a,a.typedText.split(",")[0].trim())})},xWa=function(a){WLc(a,a.typedText.split(",")[0].trim())},WLc=
function(a,b){b&&(b=NKa.test(b)?XLc(a,b):YLc(a,b),a.items.push(b));a.typedText="";ZO(a)},Rq=function(a,b){return b>=0&&b<a.items.length},XLc=function(a,b){var c=c===void 0?!1:c;var d=LKa(b);if(d.alias===void 0)throw Error("Qd`"+b);b=d.alias;d=mua(b);return new $O("ALIAS",b,d,null,c,a)},ZLc=function(a,b){b=$p(b);var c=new $O("GROUP",b,b,null,!1,a);lG(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;ZO(a)});return c},$Lc=function(a,b){var c=c===void 0?!1:c;b=$p(b);var d=
new $O("USER",b,b,null,c,a);lG(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;ZO(a)});return d},YLc=function(a,b){var c=c===void 0?!1:c;b=$p(b);var d=new $O("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);lG(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;ZO(a)});return d},aMc=function(a,b,c){return new $O("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};YO.prototype.getAccessLevel=function(){return this.accessLevel};
YO.prototype.getAppName=function(){return this.activeSession.getAppName()};YO.prototype.onKeyDown=function(a){a.keyCode===8?Rq(this,this.selectedChipIndex)?(Rq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex),a.stopPropagation(),a.preventDefault()):this.typedText===""&&this.items.length>0&&this.removeItem(this.items.length-1):a.keyCode===46?Rq(this,this.selectedChipIndex)&&Rq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&wWa(this)};
var RLc=function(a,b){b=(b||[]).map(function(d){return bMc(a,d)});if(a.containerChips){var c=a.containerChips.filter(function(d){return d.values!==void 0&&Array.isArray(d.values)&&d.values.length>0}).map(function(d){return aMc(a,d.displayText,d.values.map(function(e){return bMc(a,e)}))});return[].concat(p(c),p(b))}return b},bMc=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("de`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("de`"+b);return d==="ALIAS"?XLc(a,b):d===
"USER"?$Lc(a,c[1]):ZLc(a,c[1])},SLc=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},TLc=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},OLc=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},PLc=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
QLc=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};YO.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),xWa(this),this.isFocused=!1,this.cdr.detectChanges())};YO.\u0275fac=function(){var a;return function(b){return(a||(a=fe(YO)))(b||YO)}}();
YO.\u0275cmp=B({type:YO,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&Wg(KLc,5);if(a&2){var c;$g(c=ah())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&M("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",customValidators:"customValidators",detailedUserValidators:"detailedUserValidators",
ariaLabel:"ariaLabel",placeholderText:"placeholderText"},outputs:{usersChange:"usersChange",isValid:"isValid"},standalone:!1,features:[hh([NA,XO,{provide:zLc,useFactory:function(){var a=n(YO),b=n(zLc,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(p((c=b.staticDataProviders)!=null?c:[]),[new LLc(a)])})}}]),kg,Uu],decls:17,vars:14,consts:[["multiUserInput",""],["tabindex","0","role","list",1,"bv2-multi-user-input","keep-focus-ring",3,"click"],["id","input-description","hidden",
"",1,"screen-reader-only"],["role","listitem",1,"bv2-user-chip"],["role","alert",1,"bv2-multi-user-errors"],[3,"chipSelection","chipClear","chipRemove","isReadonly","isSelected","isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel"],["b-adaptive-width-input","","tabindex","0","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback","ngModel","disabled","placeholder"],["b-adaptive-width-input",
"","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","disabled","placeholder"],["b-adaptive-width-input","","tabindex","0","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"autocompleteActive","ngModelChange","focus","blur","bContactAutocomplete","additionalContactsCallback","ngModel","disabled","placeholder"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete",
"","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteSelectionChange","ngModelChange","focus","blur","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","disabled","placeholder"],["target","_blank"]],template:function(a,b){a&1&&(I(0,"div",1),M("click",function(){return wWa(b)}),I(1,"div",2),Q(2," Press tab to navigate through users and right arrow to go to input section "),J(),I(3,"div"),Dg(4,vWa,2,9,"div",3,Cg),E(6,BWa,2,1),J()(),I(7,"div",4),
E(8,CWa,4,1,"span"),E(9,DWa,2,0,"span"),E(10,EWa,2,0,"span"),E(11,FWa,2,0,"span"),E(12,GWa,2,0,"span"),E(13,HWa,2,0,"span"),E(14,IWa,2,0,"span"),E(15,JWa,2,0,"span"),E(16,KWa,2,0,"span"),J());if(a&2){wg("focused",b.isFocused);var c;ng("aria-label",(c=b.idForInputBox)!=null?c:0);z(4);Eg(b.items);z(2);F(ULc(b)?6:-1);z();ng("aria-hidden",b.violations.size===0);z();F(b.violations.has("noRestrictedPlusGroups")?8:-1);z();F(b.violations.has("validateGaia")?9:-1);z();F(b.violations.has("validateInternalAccessLevel")?
10:-1);z();F(b.violations.has("validateExternalAccessLevel")?11:-1);z();F(b.violations.has("escalationOwnerNotUser")?12:-1);z();F(b.violations.has("escalationOwnerNotGoogler")?13:-1);z();F(b.violations.has("userNotInGoogleDomain")?14:-1);z();F(b.violations.has("userAlreadySelected")?15:-1);z();F(b.violations.has("isNotUserType")?16:-1)}},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);color:#202124;color:var(--text-high-contrast)}.bv2-multi-user-input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:1px;cursor:text;min-height:27px;padding:6px;width:600px}.bv2-multi-user-input[_ngcontent-%COMP%]:hover{box-shadow:inset 0px 1px 2px rgba(0,0,0,.1)}.bv2-multi-user-input.focused[_ngcontent-%COMP%]{box-shadow:inset 0px 1px 2px rgba(0,0,0,.3);border-color:#1a73e8;border-color:var(--primary)}.bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[_ngcontent-%COMP%]{border:0;display:inline-block;height:24px;min-width:100px;max-width:500px;width:100%;outline:none;padding-left:5px}.bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding:3px;padding-top:2px;vertical-align:top}.ng-invalid[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast)}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);cursor:initial}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:none}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}.disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover, [disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover{border-color:#dadce0;border-color:var(--divider);box-shadow:none}.bv2-multi-user-errors[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=multi_user_input.css.map */"]});
var $O=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType="NO_DETAILED_TYPE";this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=$O.prototype;
g.getTooltip=function(){if(this.principalType!=="ALIAS")return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.parentController.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("ee`"+this.value);}};
g.isGroupChip=function(){return this.principalType==="GROUP"};g.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};g.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};
g.isContainerChip=function(){return this.nestedChips!==null};g.isInternalAccessViolated=function(){return this.parentController.getAccessLevel()==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};g.isExternalPartnerAccessViolated=function(){return this.parentController.getAccessLevel()==="EXTERNAL_PARTNER"&&this.isPublicChip()};g.isUserChip=function(){return this.principalType==="USER"};var aP={type:"no_indicator",displayText:""},cMc={type:"visible_to_listed_partners",displayText:"Visible to listed partners",displayTextCompact:"Listed partners",explanation:"This issue is not visible to all partners, but it is visible to partners listed on the issue."},OWa={type:"visible_to_listed_public_users",displayText:"Visible to listed users",displayTextCompact:"Listed users",explanation:"This issue is not visible to all public, but it is visible to public users listed on the issue."},dMc={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},LWa={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},bP=function(){this.issueFullFridge=n(EF);this.componentAccessPolicyFridge=n(aD);this.activeSession=n(Es)},gMc=function(a,b,c){var d=a.issueFullFridge.watch(b);b=Oe(function(){return c?Ce(c):d.pipe(y(function(e){return e==null?void 0:e.snapshot[0].componentId}))}).pipe(fg(function(e){return a.componentAccessPolicyFridge.watch(e)}));
return Je([d,b]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;var h,k;var q=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(h=e.accessLimit)==null?void 0:h.accessLevel;if(xC(a.activeSession))h=aP;else if(wC(a.activeSession))h=eMc(q,k,f);else if(a.activeSession.isInternalSession())h=fMc(q,k,f);else throw Error("fe");return h}))},eMc=function(a,b,c){switch(b){case "INTERNAL":return aP;case "EXTERNAL_PARTNER":return aP;case "EXTERNAL_PUBLIC":return PWa(a,
c);case "ACCESS_LEVEL_UNSPECIFIED":return aP;default:return aP}},fMc=function(a,b,c){switch(b){case "INTERNAL":return aP;case "EXTERNAL_PARTNER":return a&&NWa(a)?cMc:dMc;case "EXTERNAL_PUBLIC":return PWa(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return aP;default:return aP}};bP.\u0275fac=function(a){return new (a||bP)};bP.\u0275prov=Sc({token:bP,factory:bP.\u0275fac,providedIn:"root"});var cP=function(){Z.apply(this,arguments);var a=this;this.accessIndicatorService=n(bP);this.documentationLinks=n(lK);this.issueFullFridge=n(EF);this.issueApi=n(AE);this.compactMode=!1;this.issueId$=new ag;this.accessIndicator$=this.issueId$.pipe(fg(function(b){return gMc(a.accessIndicatorService,b)}));this.chipClass$=this.accessIndicator$.pipe(y(function(b){return b.type}));this.chipText$=this.accessIndicator$.pipe(y(function(b){return a.compactMode?b.displayTextCompact||b.displayText:b.displayText}));
this.bubbleText$=this.accessIndicator$.pipe(y(function(b){return b.explanation}));this.shouldShowIndicator$=this.accessIndicator$.pipe(y(function(b){return b.type!=="no_indicator"}));this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.viewers$=Je([this.issue$,this.accessIndicator$]).pipe(Sf(0,qp),fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(!b||!VWa(c.type))return Ce([]);var d,e;return a.issueApi.getRetainedAccessPrincipals(b==null?void 0:b.issueId,
(e=b==null?void 0:(d=b.snapshot[0])==null?void 0:d.issueAccessLimitLevel)!=null?e:"LIMIT_NONE",[],[]).pipe(y(function(f){f=[].concat(p(Vp(f.writers)),p(Vp(f.appenders)),p(Vp(f.readers)));return[].concat(p(new Set(f)))}))}),cg({refCount:!0,bufferSize:1}));this.showHovercard$=this.viewers$.pipe(y(function(b){return!!b.length}),Ve(Boolean),y(function(){}));this.loadTooltip$=new ag(1);this.tooltipText$=this.loadTooltip$.pipe(fg(function(){return a.viewers$}),y(function(b){return b.length?"Press Alt + Right arrow for more details":
""}));this.loadTooltipOnce=hk(function(){a.loadTooltip$.next()})};Y(cP,Z);cP.\u0275dir=Z.\u0275dir;cP.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.tooltipText$.subscribe(function(b){b&&(a.matTooltip.message=b,a.matTooltip.show())}))};ea.Object.defineProperties(cP.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});cP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(cP)))(b||cP)}}();
cP.\u0275cmp=B({type:cP,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&Wg(cB,5);if(a&2){var c;$g(c=ah())&&(b.matTooltip=c.first)}},inputs:{issueId:"issueId",compactMode:"compactMode"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["tooltip","matTooltip"],["card","onedevHovercard"],["tabindex","0",1,"chippy","rounded","nowrap","keep-focus-ring",3,"focus","blur","onedevHovercardTrigger","matTooltipDisabled","matTooltip","ngClass"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],
[1,"issue-visibility-chip-bubble"],["target","_blank",3,"href"],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady"],["idForInputBox","Users who can view",3,"users"]],template:function(a,b){a&1&&(E(0,UWa,15,17),S(1,"async"));a&2&&F(T(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[Mv,YO,fJ,gJ,lJ,hJ,YA,cB,Qv],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px}.chippy[_ngcontent-%COMP%]:hover, .chippy[_ngcontent-%COMP%]:focus, .chippy[_ngcontent-%COMP%]:focus-visible, .chippy[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;outline-offset:2px}.chippy.visible_to_partners[_ngcontent-%COMP%]{background-color:#ffdeb5;background-color:var(--partner-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-outline)}.chippy.visible_to_listed_partners[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);background-color:var(--partner-listed-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-listed-outline)}.chippy.visible_to_public[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-outline)}.chippy.visible_to_listed_public_users[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);background-color:var(--public-listed-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-listed-outline)}  .issue-visibility-chip-bubble a{color:#1a73e8;color:var(--link)}  .issue-visibility-chip-bubble a:visited{color:#7627bb;color:var(--link-visited)}  .issue-visibility-chip-bubble div.bv2-multi-user-input{width:auto}"],
changeDetection:0});var dP=function(){Z.apply(this,arguments);this.errorHandler=n(DK);this.issueFullFridge=n(EF);this.upvoted=!1;this.voteCount=0;this.onVote=new LA;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Y(dP,Z);dP.\u0275dir=Z.\u0275dir;
dP.prototype.onClick=function(){var a=this;if(this.issueId!=null&&!this.isSaving){var b=(this.upvoted=!this.upvoted)?1:-1;this.voteCount+=b;this.onVote.emit(this.upvoted);this.isSaving=!0;irc(this.issueFullFridge,String(this.issueId),this.upvoted).pipe(Uf(),gg(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};dP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(dP)))(b||dP)}}();
dP.\u0275cmp=B({type:dP,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},standalone:!1,features:[kg],decls:4,vars:6,consts:[["type","button","mat-button","",1,"small",3,"click","matTooltip"],["svgIcon","exposure_plus_1_24px",1,"icon-m"],[3,"title"]],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){return b.onClick()}),K(1,"mat-icon",
1),I(2,"output",2),Q(3),J()());a&2&&(D("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),ng("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),z(2),Pg("title","",b.voteCount," votes on this issue"),z(),R(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[aB,PA,Tx,YA,cB],styles:["[_nghost-%COMP%]{display:inline-block;margin-right:12px}.gmat-mdc-button[_ngcontent-%COMP%]{box-sizing:border-box;height:24px;line-height:24px;min-width:42px;border-radius:12px;padding:0 4px;font-size:.8125rem;text-align:center;box-shadow:inset 0 0 0 1px #dadce0;box-shadow:inset 0 0 0 1px var(--divider)}.gmat-mdc-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin:0}.gmat-mdc-button[_ngcontent-%COMP%]:hover{box-shadow:inset 0 0 0 1px #d2e3fc;box-shadow:inset 0 0 0 1px var(--primary-c100)}.gmat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse);box-shadow:none}.gmat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:hover{background-color:#4285f4;background-color:var(--primary-btn-bg-hover)}button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]{color:#fff;color:var(--text-inverse)}button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:hover{--mdc-text-button-hover-label-text-color: var(--text-inverse)}button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:focus{--mdc-text-button-focus-label-text-color: var(--text-inverse)}.bv2-material   [_nghost-%COMP%]     button.gmat-mdc-button:not(.mat-mdc-icon-button).small{padding:0 4px}output[_ngcontent-%COMP%]{display:inline-block;box-sizing:border-box;height:20px;line-height:20px;min-width:20px;border-radius:10px;margin-left:4px;margin-right:-16px;transform:translate(0, -33%);padding:0 4px;font-weight:500;font-size:.75rem;text-align:center;background-color:#188038;background-color:var(--good-bg-inverse);color:#fff;color:var(--text-inverse);box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px var(--background);position:relative;z-index:1}[_nghost-%COMP%], output[_ngcontent-%COMP%]{transition:margin-right .1s ease-out}.no-votes[_nghost-%COMP%]{margin-right:2px}.no-votes[_nghost-%COMP%]   output[_ngcontent-%COMP%]{margin-right:-22px;visibility:hidden}/*# sourceMappingURL=app_vote_button.css.map */"],
changeDetection:0});var iXa=function(){return[]},eP=function(){Z.apply(this,arguments);var a=this;this.cdr=n(NA,{self:!0});this.activeSession=n(Es);this.analytics=n(CF);this.relationshipService=n(OF);this.issueFullFridge=n(EF);this.butterBar=n(iK);this.STATUS_JS_FULL_TEXT=yk;this.ISSUE_PRIORITY_TEXT_JS=imc;this.ISSUE_PRIORITY_ENUM=alc;this.ROUTES=Fq;this.providedIssueId$=new ag(1);this.issue$=this.providedIssueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}),Ve(Tk));this.FormattingMode=Yk;this.init=new ag(1)};
Y(eP,Z);eP.\u0275dir=Z.\u0275dir;eP.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issue$.pipe(gg(this.destroyed$)).subscribe(function(b){a.issue=b;a.firstEvent=b.description&&uEa(b.description,b);a.cdr.markForCheck();a.init.next()})};eP.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
eP.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:((a=this.firstEvent)==null?void 0:a.unlinkifiedComment)||"",formattedComment:(b=this.firstEvent)==null?void 0:b.formattedComment}};
var hXa=function(a,b){return Bk(b).includes(a.activeSession.getUserEmail())},cXa=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return c=a.issueId,a.issueFullFridge.manualUpdate(b,function(e){var f=e.parentIssueIds.indexOf(c);f<0||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),te(d,2,3),x(d,Ge(a.relationshipService.delete(c,"CHILD",b)),3);if(d.nextAddress!=2)return ue(d),a.issueFullFridge.poke(b),we(d,0);xe(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
eP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(eP)))(b||eP)}}();
eP.\u0275cmp=B({type:eP,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},standalone:!1,features:[hh([NA]),kg],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[1,"bv2-hovercard-wide"],[3,"href"],[1,"bv2-issue-card-title"],[1,"issue-card-id-snippets"],[3,"issueId"],[1,"priority-status"],[1,"bv2-priority",3,"ngClass"],[1,"issue-card-buttons","margin-y"],[3,"onCc","issueId",
"ccState"],["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium"],[1,"bv2-issue-card-comment"],[3,"model","hovercardEnabled"],[3,"issueId","voteCount","upvoted"],["type","button","mat-button","","matTooltip","Remove the parent/child relationship with this issue",1,"medium",3,"click"],["mode","date",1,"float-right",3,"timestamp"],[3,"issueId","issueAccessLevel","formattingMode","note"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,jXa,22,16,
"div",1),J());if(a&2){var c;z();F((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[Mv,PA,Tx,YA,cB,zL,ZL,RO,dP,cP,SO],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;padding:16px}.issue-card-buttons[_ngcontent-%COMP%]{margin-left:-12px}h3[_ngcontent-%COMP%]{display:inline-flex}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}.priority-status[_ngcontent-%COMP%]{display:inline-flex}"]});var hMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hMc,V);g=hMc.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getText=function(){return Oh(this,2)};g.setText=function(a){return Lk(this,2,a)};var fP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fP.messageId)};Y(fP,V);fP.prototype.getIt=function(){return X(this,hMc,3)};fP.prototype.setIt=function(a){return W(this,hMc,3,a)};fP.messageId="b.CheckBannedWordsRequest";var iMc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iMc,V);var gP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,gP.messageId)};Y(gP,V);gP.prototype.getIt=function(){return X(this,iMc,2)};gP.prototype.setIt=function(a){return W(this,iMc,2,a)};gP.messageId="b.CheckBannedWordsResponse";var hP=function(){this.executor=n(yC)};hP.prototype.checkBannedWords=function(a){a=(new fP).setIt((new hMc).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:gP}).pipe(y(kXa))};hP.\u0275fac=function(a){return new (a||hP)};hP.\u0275prov=Sc({token:hP,factory:hP.\u0275fac,providedIn:"root"});var iP=function(){this.observableApi=n(hP)};iP.prototype.checkBannedWords=function(a){return Ge(this.observableApi.checkBannedWords(a))};
iP.\u0275fac=function(a){return new (a||iP)};iP.\u0275prov=Sc({token:iP,factory:iP.\u0275fac,providedIn:"root"});var jP=function(){Z.apply(this,arguments);this.bannedWordsApi=n(iP);this.activeSession=n(Es);this.errorHandler=n(DK);this.analytics=n(CF);this.matchedPatterns=[];this.warningState$=new tj("INITIAL");this.enableBannedWordsCheck=Yr(this.activeSession,"enableBannedWordsCheck");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(y(function(a){return a==="SHOW_WARNING"}))};Y(jP,Z);jP.\u0275dir=Z.\u0275dir;
jP.prototype.check=function(a,b,c){var d=this;return w(function(e){if(!(d.enableBannedWordsCheck&&d.isUserInternal&&b&&c))return e.return(!0);switch(d.warningState$.value){case "INITIAL":return e.return(jMc(d,String(c),a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",Sq(d)),e.return(!0);default:return e.return(!0)}})};
var jMc=function(a,b,c){var d,e;return w(function(f){if(f.nextAddress==1)return te(f,2),x(f,a.bannedWordsApi.checkBannedWords({componentId:b,text:c}),4);if(f.nextAddress!=2)return d=f.yieldResult,d.matchedPatterns.length>0?(a.matchedPatterns=d.matchedPatterns,a.warningState$.next("SHOW_WARNING"),a.analytics.trackEvent("bannedWords","failBannedWordsCheck",Sq(a)),f.return(!1)):f.return(!0);e=xe(f);FK(a.errorHandler,e);return f.return(!0)})},Sq=function(a){return a.matchedPatterns.join(", ")};
jP.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};jP.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};jP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(jP)))(b||jP)}}();jP.\u0275prov=Sc({token:jP,factory:jP.\u0275fac});var kMc=["issueTitleCellInputEl"],kP=function(){this.appEvents=n(nD);this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.bannedWordsChecker=n(jP);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new LA;this.onSave=new LA;this.issueNavigated=new LA;this.title="";this.isDataLoaded=!1;this.link=""};
kP.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||"";this.isDataLoaded=this.issue!==null;var c,d;this.link=this.getIssueUrl((d=(c=this.issue)==null?void 0:c.issueId)!=null?d:"")};var oXa=function(a,b){b.stopPropagation();var c;if((c=a.issue)==null?0:c.issueId){var d;a.issueNavigated.emit((d=a.issue)==null?void 0:d.issueId)}};kP.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Fq.viewIssue.makeHref(a)};
var lXa=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},vXa=function(a){var b,c;return w(function(d){if(d.nextAddress==1){if(!a.title||a.savingTitle||((b=a.issue)==null?void 0:b.issueId)==null)return d.return();a.savingTitle=!0;ve(d,2);return x(d,a.bannedWordsChecker.check(a.title,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",Number(a.issue.snapshot[0].componentId)),4)}if(d.nextAddress!=2)return c=d.yieldResult,c?x(d,lMc(a),2):
(a.issueTitleCellInputEl.nativeElement.focus(),d.jumpTo(2));ue(d);a.savingTitle=!1;return we(d,0)})},lMc=function(a){return w(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),ve(b,2),x(b,Ge(jrc(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);ue(b);a.onSave.emit();return we(b,0)})};kP.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||vXa(this)};kP.\u0275fac=function(a){return new (a||kP)};
kP.\u0275cmp=B({type:kP,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&Wg(kMc,5);if(a&2){var c;$g(c=ah())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],inputs:{issue:"issue",issueUrlFactory:"issueUrlFactory",useButtonToNavigate:"useButtonToNavigate",anchorTarget:"anchorTarget",enableHovercard:"enableHovercard",trailingChip:"trailingChip",isEditMode:"isEditMode"},outputs:{onCancel:"onCancel",onSave:"onSave",issueNavigated:"issueNavigated"},standalone:!1,
features:[hh([jP]),Uu],decls:12,vars:9,consts:[["issueHovercard","onedevHovercard"],["editableIssueTitle",""],["issueTitleCellInputEl",""],[1,"title","title-location","gap-s",3,"isReady"],[3,"trackerId","compactMode"],[1,"b-chip","s","margin-s-left",3,"class","matTooltip"],[3,"issueId"],[1,"banned-words-warning","break-word"],[1,"line-clamp-3",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"line-clamp-3"],["mat-icon-button","","tabindex","0","matTooltip","Open issue in a new tab","aria-label",
"Open issue",1,"small","visible-on-row-active","hover-link","pop-out-link",3,"keydown","click","routerLink","target","matTooltipShowDelay"],["svgIcon","pop-out",1,"icon-s"],[1,"line-clamp-3",3,"onedevHovercardShown","onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[1,"b-chip","s","margin-s-left",3,"matTooltip"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[1,"hover-link",
"line-clamp-3","break-word",3,"routerLink","target","onedevHovercardTrigger","onedevHovercardActive"],["type","text","placeholder","Enter a new title",1,"grow-1",3,"input","ngModelChange","keydown","blur","bFocus","ngModel"],["id","save-button","type","button","mat-stroked-button","","color","primary","format","fill","size","small","title","Change issue title","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["id","cancel-button","type","button","mat-stroked-button","","format","flat","size",
"small","title","Cancel","matTooltip","(Shortcut: Esc)",3,"onAction","disabled"],[1,"hover-link","line-clamp-3","break-word",3,"keydown","click","onedevHovercardShown","routerLink","target","onedevHovercardTrigger","onedevHovercardActive"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",3),K(1,"b-tracker-chip-smart",4),E(2,pXa,4,4)(3,rXa,1,1,"ng-container"),E(4,sXa,2,7,"span",5),J(),I(5,"onedev-hovercard",null,0),E(7,tXa,1,1,"b-issue-card",6),J(),E(8,uXa,4,1,"p",7),S(9,"async"),C(10,
yXa,2,1,"ng-template",null,1,nh));if(a&2){var c;D("isReady",b.isDataLoaded);z();D("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);z();F(b.useButtonToNavigate?2:3);z(2);F((c=b.trailingChip)?4:-1,c);z(3);F(b.enableHovercard&&b.issue?7:-1);z();F(T(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[mO,Pv,aB,FA,aH,xO,Li,oy,vy,PA,Ux,YA,cB,fJ,lJ,eP,sN,Qv],styles:[".title[_ngcontent-%COMP%]{padding-top:7px;padding-bottom:6px;display:flex;flex-direction:row;align-items:center}a[_ngcontent-%COMP%]{color:inherit}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text);padding-left:9px}b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%], b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%]:focus, b-async-data-placeholder[_ngcontent-%COMP%]   input[type=text].banned-words-warning[_ngcontent-%COMP%]:focus-within{border-color:#c5221f;border-color:var(--bad-gfx);color:#c5221f;color:var(--bad-text)}"],
changeDetection:0});var mMc=function(a,b){return[a,b]},nMc=[[["b-callout-body"]],[["b-callout-actions"]]],lP=function(){this.messageType="info";this.format="default"};lP.prototype.getIconName=function(){if(this.iconOverride!=null)return this.iconOverride;switch(this.messageType){case "caution":return"warning";case "success":return"success";case "error":return"alert";default:return"info"}};lP.\u0275fac=function(a){return new (a||lP)};
lP.\u0275cmp=B({type:lP,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&xg(kh(2,mMc,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},standalone:!1,ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],["role","alert",1,"content"],[3,"svgIcon"],[1,"actions"]],template:function(a,b){a&1&&(Ng(nMc),I(0,"div",0)(1,"div",1),K(2,"mat-icon",2),Og(3),J(),I(4,"div",3),Og(5,1),J()());
a&2&&(z(2),D("svgIcon",b.getIconName()))},dependencies:[aB],styles:["[_nghost-%COMP%]{display:block;border-radius:8px;color:#3c4043;color:var(--c800);padding:8px 4px}[_nghost-%COMP%]     .mat-mdc-button{min-height:28px;line-height:28px;padding:0px 8px}.app[_nghost-%COMP%]{border-radius:0;padding-left:24px}.app[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:0;margin-right:10px}.content[_ngcontent-%COMP%]{display:flex;align-items:center;flex-grow:1}.actions[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%]     b-callout-actions{display:flex;flex-wrap:nowrap;gap:4px;justify-content:flex-end}mat-icon[_ngcontent-%COMP%]{margin-left:4px;margin-right:8px}.callout[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:36px;flex-wrap:wrap}.info[_nghost-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50)}.info[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info[_nghost-%COMP%]    .mat-button, .info[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .info[_nghost-%COMP%]    .mat-stroked-button, .info[_nghost-%COMP%]    .mat-mdc-outlined-button, .info[_nghost-%COMP%]    .mat-icon-button{color:#1a73e8;color:var(--link);--mat-text-button-state-layer-color:var(--link)}.info[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .info[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#1a73e8;color:var(--link)}.info[_nghost-%COMP%]    .mat-flat-button, .info[_nghost-%COMP%]    .mat-mdc-unelevated-button, .info[_nghost-%COMP%]    .mat-raised-button{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}.archived[_nghost-%COMP%], .caution[_nghost-%COMP%]{background-color:#feefc3;background-color:var(--warn-c50);border-color:#fbbc04;border-color:var(--warn-gfx-muted)}.archived[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%], .caution[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx)}.archived[_nghost-%COMP%]    .mat-button, .archived[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .archived[_nghost-%COMP%]    .mat-stroked-button, .archived[_nghost-%COMP%]    .mat-mdc-outlined-button, .archived[_nghost-%COMP%]    .mat-icon-button, .caution[_nghost-%COMP%]    .mat-button, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .caution[_nghost-%COMP%]    .mat-stroked-button, .caution[_nghost-%COMP%]    .mat-mdc-outlined-button, .caution[_nghost-%COMP%]    .mat-icon-button{color:rgba(0,0,0,.7);color:var(--text-warn);--mat-text-button-state-layer-color:var(--text-warn)}.archived[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .archived[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .caution[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:rgba(0,0,0,.7);color:var(--text-warn)}.archived[_nghost-%COMP%]    .mat-flat-button, .archived[_nghost-%COMP%]    .mat-mdc-unelevated-button, .archived[_nghost-%COMP%]    .mat-raised-button, .caution[_nghost-%COMP%]    .mat-flat-button, .caution[_nghost-%COMP%]    .mat-mdc-unelevated-button, .caution[_nghost-%COMP%]    .mat-raised-button{background-color:#e37400;background-color:var(--warn-gfx);color:#fff;color:var(--text-inverse)}.error[_nghost-%COMP%]{background-color:rgb(253.5,243.5,242.5);background-color:var(--bad-bg-pale);border-color:#f6aea9;border-color:var(--bad-gfx-muted)}.error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-gfx)}.error[_nghost-%COMP%]    .mat-button, .error[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .error[_nghost-%COMP%]    .mat-stroked-button, .error[_nghost-%COMP%]    .mat-mdc-outlined-button, .error[_nghost-%COMP%]    .mat-icon-button{color:#c5221f;color:var(--bad-link);--mat-text-button-state-layer-color:var(--bad-link)}.error[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .error[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#c5221f;color:var(--bad-link)}.error[_nghost-%COMP%]    .mat-flat-button, .error[_nghost-%COMP%]    .mat-mdc-unelevated-button, .error[_nghost-%COMP%]    .mat-raised-button{background-color:#a50e0e;background-color:var(--bad-bg-inverse);color:#fff;color:var(--text-inverse)}.success[_nghost-%COMP%]{background-color:#eafaef;background-color:var(--good-bg-pale);border-color:#1e8e3e;border-color:var(--good-gfx)}.success[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx)}.success[_nghost-%COMP%]    .mat-button, .success[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button, .success[_nghost-%COMP%]    .mat-stroked-button, .success[_nghost-%COMP%]    .mat-mdc-outlined-button, .success[_nghost-%COMP%]    .mat-icon-button{color:#1e8e3e;color:var(--good-link);--mat-text-button-state-layer-color:var(--good-link)}.success[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):hover, .success[_nghost-%COMP%]    .gmat-mdc-button.mat-mdc-button:not(.mat-mdc-button-disabled):not([disabled]):not(:disabled):focus{color:#1e8e3e;color:var(--good-link)}.success[_nghost-%COMP%]    .mat-flat-button, .success[_nghost-%COMP%]    .mat-mdc-unelevated-button, .success[_nghost-%COMP%]    .mat-raised-button{background-color:#34a853;background-color:var(--good);color:#fff;color:var(--text-inverse)}/*# sourceMappingURL=callout.css.map */"]});
var mP=function(){};mP.\u0275fac=function(a){return new (a||mP)};mP.\u0275dir=Kf({type:mP,selectors:[["b-callout-body"],["b-callout-actions"]],standalone:!1});var nP=function(a,b){this.checker=a;this.document=b};nP.prototype.focusFirstFocusableElement=function(a){(a=oMc(this,a,!0))&&a.focus()};var oMc=function(a,b,c){if((c===void 0||c)&&a.checker.isFocusable(b))return b;b=b.children||b.childNodes;for(c=0;c<b.length;c++){var d=b[c].nodeType===a.document.ELEMENT_NODE?oMc(a,b[c]):null;if(d)return d}return null};nP.\u0275fac=function(a){return new (a||nP)(nd(jw),nd(Ei))};nP.\u0275prov=Sc({token:nP,factory:nP.\u0275fac,providedIn:"root"});var oP=function(){this.elementRef=n(ff);this.interactivityHelper=n(nP)};oP.prototype.ngOnInit=function(){};oP.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};ea.Object.defineProperties(oP.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});oP.\u0275fac=function(a){return new (a||oP)};
oP.\u0275dir=Kf({type:oP,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"],standalone:!1});var pP=function(){};pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275mod=Jf({type:pP});pP.\u0275inj=Tc({});var pMc=function(a,b){Ow.call(this,a);this.directives=a;this.isEqual=b};Y(pMc,Ow);var Uq=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(a.directives.changes.pipe(eg(a.directives.toArray()),y(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),Ve(Boolean),We(3E3))),2);c=d.yieldResult;a.setActiveItem(c);ze(d)})};var qMc=new yd("GMAT_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var qP=function(a){this.options=a};qP.\u0275fac=function(a){return new (a||qP)(zf(qMc))};
qP.\u0275dir=Kf({type:qP,selectors:[["mat-chip"],["mat-basic-chip"],["mat-chip-row"],["mat-basic-chip-row"],["mat-chip-option"],["mat-basic-chip-option"]],hostVars:16,hostBindings:function(a,b){a&2&&wg("gmat-mdc-chip",!b.options.disableGmatStyle)("gmat-input-chip",b.appearance==="input")("gmat-filter-chip",b.appearance==="hairline-filter"||b.appearance==="protected-filter")("gmat-suggestive-chip",b.appearance==="hairline-suggestive"||b.appearance==="protected-suggestive")("gmat-assistive-chip",b.appearance===
"hairline-assistive"||b.appearance==="protected-assistive")("gmat-hairline-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="hairline-suggestive"||b.appearance==="hairline-assistive")("gmat-protected-chip",b.appearance==="protected-filter"||b.appearance==="protected-suggestive"||b.appearance==="protected-assistive")("gmat-selectable-chip",b.appearance==="input"||b.appearance==="hairline-filter"||b.appearance==="protected-filter")},inputs:{appearance:"appearance"},standalone:!1});var rMc=new yd("GMAT_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var rP=function(a){this.options=a};rP.\u0275fac=function(a){return new (a||rP)(zf(rMc))};rP.\u0275dir=Kf({type:rP,selectors:[["mat-select"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-select",!b.options.disableGmatStyle)},standalone:!1});var sMc=new yd("GMAT_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var sP=function(a){this.options=a};sP.\u0275fac=function(a){return new (a||sP)(zf(sMc))};sP.\u0275dir=Kf({type:sP,selectors:[["table","mat-table",""],["mat-table"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-table",!b.options.disableGmatStyle)},standalone:!1});var tMc=new yd("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),uMc=new yd("MatChipAvatar"),vMc=new yd("MatChipTrailingIcon"),wMc=new yd("MatChipRemove"),xMc=new yd("MatChip");var tP=function(){this._elementRef=n(ff);this._parentChip=n(xMc);this._isPrimary=this.isInteractive=!0;this._disabled=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;n(kw).load(Gx);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};g=tP.prototype;g._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};
g._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()};g.focus=function(){this._elementRef.nativeElement.focus()};g._handleClick=function(a){!this.disabled&&this.isInteractive&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
g._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this.isInteractive||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};ea.Object.defineProperties(tP.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){var a;return this._disabled||((a=this._parentChip)==null?void 0:a.disabled)||!1},set:function(a){this._disabled=a}}});tP.\u0275fac=function(a){return new (a||tP)};
tP.\u0275dir=Kf({type:tP,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(a,b){a&1&&M("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(ng("tabindex",b._getTabindex())("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),wg("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--presentational",!b.isInteractive)("mdc-evolution-chip__action--trailing",
!b._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:Eh(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var uP=function(){tP.apply(this,arguments);this._isPrimary=this.isInteractive=!1};Y(uP,tP);uP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(uP)))(b||uP)}}();uP.\u0275dir=Kf({type:uP,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:["aria-hidden","true",1,"mat-mdc-chip-trailing-icon","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],features:[hh([{provide:vMc,useExisting:uP}]),kg]});var yMc=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],vP=function(){this._changeDetectorRef=n(qv);this._elementRef=n(ff);this._ngZone=n(ph);this._focusMonitor=n(gw);this._globalRippleOptions=n(Ix,{optional:!0});this._document=n(Ei);this._onFocus=new bg;this._onBlur=new bg;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=Hi();this.id=n(Gw).getId("mat-mdc-chip-");this.ariaDescription=this.ariaLabel=
null;this._ariaDescriptionId=this.id+"-aria-description";this._chipListDisabled=!1;this.removable=!0;this._disabled=this.disableRipple=this.highlighted=!1;this.removed=new hv;this.destroyed=new hv;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=n(Px);this._injector=n(Ze);var a=n(kw);a.load(Gx);a.load(lw);this._monitorFocus();var b;(b=this._rippleLoader)==null||ydc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};g=vP.prototype;
g._hasFocus=function(){return this._hasFocusInternal};g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._isBasicChip=a.hasAttribute(this.basicChipAttrName)||a.tagName.toLowerCase()===this.basicChipAttrName};g.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};
g.ngAfterContentInit=function(){var a=this;this._actionChanges=Ue(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};g.ngDoCheck=function(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())};
g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;(a=this._rippleLoader)==null||xdc(a,this._elementRef.nativeElement);var b;(b=this._actionChanges)==null||b.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};g.remove=function(){this.removable&&this.removed.emit({chip:this})};g._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!((a=this._globalRippleOptions)==null||!a.disabled)};
g._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};g._handleKeydown=function(a){if(a.keyCode===8&&!a.repeat||a.keyCode===46)a.preventDefault(),this.remove()};g.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};g._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};
g._getActions=function(){var a=[];this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);this.trailingIcon&&a.push(this.trailingIcon);return a};g._handlePrimaryActionInteraction=function(){};g._monitorFocus=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=b!==null;b!==a._hasFocusInternal&&((a._hasFocusInternal=b)?a._onFocus.next({chip:a}):(a._changeDetectorRef.markForCheck(),setTimeout(function(){return a._ngZone.run(function(){return a._onBlur.next({chip:a})})})))})};
ea.Object.defineProperties(vP.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value!==void 0?this._value:this._textElement.textContent.trim()},set:function(a){this._value=a}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this._chipListDisabled},set:function(a){this._disabled=a}}});vP.\u0275fac=function(a){return new (a||vP)};
vP.\u0275cmp=B({type:vP,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,uMc,5),Xg(c,vMc,5),Xg(c,wMc,5),Xg(c,uMc,5),Xg(c,vMc,5),Xg(c,wMc,5));if(a&2){var d;$g(d=ah())&&(b.leadingIcon=d.first);$g(d=ah())&&(b.trailingIcon=d.first);$g(d=ah())&&(b.removeIcon=d.first);$g(d=ah())&&(b._allLeadingIcons=d);$g(d=ah())&&(b._allTrailingIcons=d);$g(d=ah())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&Wg(tP,5);if(a&2){var c;
$g(c=ah())&&(b.primaryAction=c.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b._handleKeydown(c)});a&2&&(Ig("id",b.id),ng("role",b.role)("aria-label",b.ariaLabel),xg("mat-"+(b.color||"primary")),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",b.leadingIcon)("mdc-evolution-chip--with-primary-icon",
b.leadingIcon)("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",b.highlighted)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-basic-chip",b._isBasicChip)("mat-mdc-standard-chip",!b._isBasicChip)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon())("_mat-animation-noopable",b._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",
color:"color",removable:[2,"removable","removable",Dh],highlighted:[2,"highlighted","highlighted",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh],disabled:[2,"disabled","disabled",Dh]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[hh([{provide:xMc,useExisting:vP}])],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell",
"mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(Ng(yMc),K(0,"span",0),I(1,"span",1)(2,"span",2),E(3,zXa,2,0,"span",3),I(4,"span",4),Og(5),K(6,"span",5),J()()(),E(7,AXa,2,0,"span",6));a&2&&
(z(2),D("isInteractive",!1),z(),F(b.leadingIcon?3:-1),z(4),F(b._hasTrailingIcon()?7:-1))},dependencies:[tP],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var zMc=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],wP=function(){vP.apply(this,arguments);this._defaultOptions=n(tMc,{optional:!0});this.chipListSelectable=!0;this._chipListMultiple=!1;var a,b;this._chipListHideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=null?b:!1;this._selectable=!0;this._selected=!1;this.basicChipAttrName="mat-basic-chip-option";this.selectionChange=
new hv};Y(wP,vP);g=wP.prototype;g.ngOnInit=function(){vP.prototype.ngOnInit.call(this);this.role="presentation"};g.select=function(){this._setSelectedState(!0,!1,!0)};g.deselect=function(){this._setSelectedState(!1,!1,!0)};g._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};g._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
g._setSelectedState=function(a,b,c){a!==this.selected&&(this._selected=a,c&&this.selectionChange.emit({source:this,isUserInput:b,selected:this.selected}),this._changeDetectorRef.markForCheck())};
ea.Object.defineProperties(wP.prototype,{selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable&&this.chipListSelectable},set:function(a){this._selectable=a;this._changeDetectorRef.markForCheck()}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._setSelectedState(a,!1,!0)}},ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.selectable?this.selected.toString():null}}});
wP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(wP)))(b||wP)}}();
wP.\u0275cmp=B({type:wP,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(a,b){a&2&&(Ig("id",b.id),ng("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),wg("mdc-evolution-chip",!b._isBasicChip)("mdc-evolution-chip--filter",!b._isBasicChip)("mdc-evolution-chip--selectable",!b._isBasicChip)("mat-mdc-chip-selected",b.selected)("mat-mdc-chip-multiple",
b._chipListMultiple)("mat-mdc-chip-disabled",b.disabled)("mat-mdc-chip-with-avatar",b.leadingIcon)("mdc-evolution-chip--disabled",b.disabled)("mdc-evolution-chip--selected",b.selected)("mdc-evolution-chip--selecting",!b._animationsDisabled)("mdc-evolution-chip--with-trailing-action",b._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",b.leadingIcon)("mdc-evolution-chip--with-primary-graphic",b._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",b.leadingIcon)("mat-mdc-chip-highlighted",
b.highlighted)("mat-mdc-chip-with-trailing-icon",b._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",Dh],selected:[2,"selected","selected",Dh]},outputs:{selectionChange:"selectionChange"},features:[hh([{provide:vP,useExisting:wP},{provide:xMc,useExisting:wP}]),kg],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],
["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill",
"none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(a,b){a&1&&(Ng(zMc),K(0,"span",0),I(1,"span",1)(2,"button",2),E(3,BXa,5,0,"span",3),I(4,"span",4),Og(5),K(6,"span",5),J()()(),E(7,CXa,2,0,"span",6),I(8,"span",7),Q(9),J());a&2&&(z(2),D("_allowFocusWhenDisabled",!0),ng("aria-selected",b.ariaSelected)("aria-label",b.ariaLabel)("aria-describedby",b._ariaDescriptionId),z(),F(b._hasLeadingGraphic()?3:-1),z(4),F(b._hasTrailingIcon()?
7:-1),z(),D("id",b._ariaDescriptionId),z(),ch(b.ariaDescription))},dependencies:[tP],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var xP=function(){this._elementRef=n(ff);this._changeDetectorRef=n(qv);this._dir=n(Qw,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new bg;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new Vg};g=xP.prototype;g.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};g._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};g._syncChipsState=function(){var a=this,b;(b=this._chips)==null||b.forEach(function(c){c._chipListDisabled=a._disabled;c._changeDetectorRef.markForCheck()})};g.focus=function(){};g._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
g._isValidIndex=function(a){return a>=0&&a<this._chips.length};g._allowFocusEscape=function(){var a=this,b=this._elementRef.nativeElement.tabIndex;b!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(function(){return a._elementRef.nativeElement.tabIndex=b}))};g._getChipStream=function(a){var b=this;return this._chips.changes.pipe(eg(null),fg(function(){return Ue.apply(null,p(b._chips.map(a)))}))};
g._originatesFromChip=function(a){for(a=a.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1};
g._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(eg(this._chips)).subscribe(function(c){var d=[];c.forEach(function(e){return e._getActions().forEach(function(f){return d.push(f)})});a._chipActions.reset(d);Zg(a._chipActions)});this._keyManager=Lw(Kw(Jw(new Ow(this._chipActions)),this._dir?this._dir.value:"ltr")).skipPredicate(function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(gg(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
Mw(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(gg(this._destroyed)).subscribe(function(c){return Kw(a._keyManager,c)})};g._skipPredicate=function(a){return!a.isInteractive||a.disabled};g._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(eg(null),gg(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
g._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(gg(this._destroyed)).subscribe(function(b){var c=a._chips.toArray().indexOf(b.chip);a._isValidIndex(c)&&b.chip._hasFocus()&&(a._lastDestroyedFocusedChipIndex=c)})};
g._redirectDestroyedChipFocus=function(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){var a=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1);a=this._chips.toArray()[a];a.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}};
ea.Object.defineProperties(xP.prototype,{chipFocusChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onFocus})}},chipDestroyedChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.destroyed})}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._syncChipsState()}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._chips||
this._chips.length===0}},role:{configurable:!0,enumerable:!0,get:function(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole},set:function(a){this._explicitRole=a}},focused:{configurable:!0,enumerable:!0,get:function(){return this._hasFocusedChip()}}});xP.\u0275fac=function(a){return new (a||xP)};
xP.\u0275cmp=B({type:xP,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&Xg(c,vP,5);if(a&2){var d;$g(d=ah())&&(b._chips=d)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b._handleKeydown(c)});a&2&&ng("role",b.role)},inputs:{disabled:[2,"disabled","disabled",Dh],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:Eh(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(Ng(),I(0,"div",0),Og(1),J())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0}\n"],
encapsulation:2,changeDetection:0});var AMc=function(a,b){this.source=a;this.value=b},BMc={provide:iy,useExisting:ld(function(){return yP}),multi:!0},yP=function(){xP.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=n(tMc,{optional:!0});this._multiple=!1;this.ariaOrientation="horizontal";this._selectable=!0;this.compareWith=function(c,d){return c===d};this.required=!1;var a,b;this._hideSingleSelectionIndicator=(b=(a=this._defaultOptions)==null?void 0:a.hideSingleSelectionIndicator)!=
null?b:!1;this.change=new hv;this._chips=void 0};Y(yP,xP);g=yP.prototype;
g.ngAfterContentInit=function(){var a=this;this._chips.changes.pipe(eg(null),gg(this._destroyed)).subscribe(function(){a.value!==void 0&&Promise.resolve().then(function(){a._setSelectionByValue(a.value,!1)});a._syncListboxProperties()});this.chipBlurChanges.pipe(gg(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(gg(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};
g.focus=function(){if(!this.disabled){var a=this._getFirstSelectedChip();a&&!a.disabled?a.focus():this._chips.length>0?this._keyManager._setActiveItemByIndex(0,1):this._elementRef.nativeElement.focus()}};g.writeValue=function(a){a!=null?this.value=a:this.value=void 0};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._setSelectionByValue=function(a,b){var c=this;b=b===void 0?!0:b;this._clearSelection();Array.isArray(a)?a.forEach(function(d){return c._selectValue(d,b)}):this._selectValue(a,b)};g._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};g._keydown=function(a){a.keyCode===9&&xP.prototype._allowFocusEscape.call(this)};g._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
g._propagateChanges=function(){var a=null;Array.isArray(this.selected)?a=this.selected.map(function(b){return b.value}):a=this.selected?this.selected.value:void 0;this._value=a;this.change.emit(new AMc(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};g._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
g._selectValue=function(a,b){var c=this,d=this._chips.find(function(e){return e.value!=null&&c.compareWith(e.value,a)});d&&(b?d._setSelectedState(!0,!0,!0):d.select());return d};g._syncListboxProperties=function(){var a=this;this._chips&&Promise.resolve().then(function(){a._chips.forEach(function(b){b._chipListMultiple=a.multiple;b.chipListSelectable=a._selectable;b._chipListHideSingleSelectionIndicator=a.hideSingleSelectionIndicator;b._changeDetectorRef.markForCheck()})})};
g._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};g._skipPredicate=function(a){return!a.isInteractive};
ea.Object.defineProperties(yP.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=a;this._syncListboxProperties()}},selected:{configurable:!0,enumerable:!0,get:function(){var a=this._chips.toArray().filter(function(b){return b.selected});return this.multiple?a:a[0]}},selectable:{configurable:!0,enumerable:!0,get:function(){return this._selectable},set:function(a){this._selectable=a;this._syncListboxProperties()}},hideSingleSelectionIndicator:{configurable:!0,
enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncListboxProperties()}},chipSelectionChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a.selectionChange})}},chipBlurChanges:{configurable:!0,enumerable:!0,get:function(){return this._getChipStream(function(a){return a._onBlur})}},value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._chips&&
this._chips.length&&this._setSelectionByValue(a,!1);this._value=a}}});yP.\u0275fac=function(){var a;return function(b){return(a||(a=fe(yP)))(b||yP)}}();
yP.\u0275cmp=B({type:yP,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&Xg(c,wP,5);if(a&2){var d;$g(d=ah())&&(b._chips=d)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(a,b){a&1&&M("focus",function(){return b.focus()})("blur",function(){return b._blur()})("keydown",function(c){return b._keydown(c)});a&2&&(Ig("tabIndex",b.disabled||b.empty?-1:b.tabIndex),ng("role",b.role)("aria-required",b.role?b.required:null)("aria-disabled",
b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),wg("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",Dh],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",Dh],compareWith:"compareWith",required:[2,"required","required",Dh],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Dh],value:"value"},
outputs:{change:"change"},features:[hh([BMc]),kg],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(Ng(),I(0,"div",0),Og(1),J())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder{opacity:1}.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder{opacity:1}.mat-mdc-chip-set+input.mat-mdc-chip-input{margin-left:0;margin-right:0}\n"],
encapsulation:2,changeDetection:0});var CMc=["trigger"],DMc=["panel"],EMc=[[["mat-select-trigger"]],"*"],FMc=new yd("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=n(vx);return function(){return a.scrollStrategies.reposition()}}}),GMc=new yd("MAT_SELECT_CONFIG"),HMc={provide:FMc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},IMc=new yd("MatSelectTrigger"),JMc=function(a,b){this.source=a;this.value=b},zP=function(){var a=this;this._viewportRuler=n(ax);this._changeDetectorRef=
n(qv);this._elementRef=n(ff);this._dir=n(Qw,{optional:!0});this._idGenerator=n(Gw);this._renderer=n(jv);this._parentFormField=n(Hec,{optional:!0});this.ngControl=n(my,{self:!0,optional:!0});this._liveAnnouncer=n(zw);this._defaultOptions=n(GMc,{optional:!0});this._animationsDisabled=Hi();this._initialized=new bg;this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",
overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];this._scrollStrategyFactory=n(FMc);this._panelOpen=!1;this._compareWith=function(u,A){return u===A};this._uid=this._idGenerator.getId("mat-select-");this._triggerAriaLabelledBy=null;this._destroy=new bg;this.stateChanges=new bg;this.disableAutomaticLabeling=!0;this._onChange=function(){};this._onTouched=function(){};this._valueId=this._idGenerator.getId("mat-select-value-");
var b;this._overlayPanelClass=((b=this._defaultOptions)==null?void 0:b.overlayPanelClass)||"";this._focused=!1;this.controlType="mat-select";this.disableRipple=this.disabled=!1;this.tabIndex=0;var c,d;this._hideSingleSelectionIndicator=(d=(c=this._defaultOptions)==null?void 0:c.hideSingleSelectionIndicator)!=null?d:!1;this._multiple=!1;var e,f;this.disableOptionCentering=(f=(e=this._defaultOptions)==null?void 0:e.disableOptionCentering)!=null?f:!1;this.ariaLabel="";this.panelWidth=this._defaultOptions&&
typeof this._defaultOptions.panelWidth!=="undefined"?this._defaultOptions.panelWidth:"auto";var h,k;this.canSelectNullableOptions=(k=(h=this._defaultOptions)==null?void 0:h.canSelectNullableOptions)!=null?k:!1;this.optionSelectionChanges=Oe(function(){var u=a.options;return u?u.changes.pipe(eg(u),fg(function(){return Ue.apply(null,p(u.map(function(A){return A.onSelectionChange})))})):a._initialized.pipe(fg(function(){return a.optionSelectionChanges}))});this.openedChange=new hv;this._openedStream=
this.openedChange.pipe(Ve(function(u){return u}),y(function(){}));this._closedStream=this.openedChange.pipe(Ve(function(u){return!u}),y(function(){}));this.selectionChange=new hv;this.valueChange=new hv;this._trackedModal=null;this._skipPredicate=function(u){return a.panelOpen?!1:u.disabled};b=n(Fx);c=n(ty,{optional:!0});d=n(By,{optional:!0});e=n(new Vu("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var q;((q=this._defaultOptions)==null?void 0:q.typeaheadDebounceInterval)!=
null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);this._errorStateTracker=new adc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};g=zP.prototype;
g._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=apa(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:bpa(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};g._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};g._getChangeEvent=function(a){return new JMc(this,a)};
g.ngOnInit=function(){var a=this;this._selectionModel=new Zw(this.multiple);this.stateChanges.next();this._viewportRuler.change().pipe(gg(this._destroy)).subscribe(function(){a.panelOpen&&(a._overlayWidth=a._getOverlayWidth(a._preferredOverlayOrigin),a._changeDetectorRef.detectChanges())})};
g.ngAfterContentInit=function(){var a=this;this._initialized.next();this._initialized.complete();this._initKeyManager();this._selectionModel.changed.pipe(gg(this._destroy)).subscribe(function(b){b.added.forEach(function(c){return c.select()});b.removed.forEach(function(c){return c.deselect()})});this.options.changes.pipe(eg(null),gg(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
g.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(this._previousControl!==void 0&&b.disabled!==null&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
g.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&scc(this._keyManager,this.typeaheadDebounceInterval)};g.ngOnDestroy=function(){var a;(a=this._cleanupDetach)==null||a.call(this);var b;(b=this._keyManager)==null||b.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete();this._clearFromModal()};g.toggle=function(){this.panelOpen?this.close():this.open()};
g.open=function(){var a=this;if(this._canOpen()){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin());var b;(b=this._cleanupDetach)==null||b.call(this);this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin);this._applyModalPanelOwnership();this._panelOpen=!0;this._overlayDir.positionChange.pipe(Uf()).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()});Ycc(this._overlayDir);Kw(this._keyManager,null);
this._highlightCorrectOption();this._changeDetectorRef.markForCheck();this.stateChanges.next();Promise.resolve().then(function(){return a.openedChange.emit(!0)})}};g._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&Di(this._trackedModal,"aria-owns",b);Joa(a,"aria-owns",b);this._trackedModal=a}};
g._clearFromModal=function(){this._trackedModal&&(Di(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};g.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),Kw(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(function(){return a.openedChange.emit(!1)}))};
g._exitAndDetach=function(){var a=this;if(this._animationsDisabled||!this.panel)this._detachOverlay();else{var b;(b=this._cleanupDetach)==null||b.call(this);this._cleanupDetach=function(){c();clearTimeout(d);a._cleanupDetach=void 0};b=this.panel.nativeElement;var c=this._renderer.listen(b,"animationend",function(e){if(e.animationName==="_mat-select-exit"){var f;(f=a._cleanupDetach)==null||f.call(a);a._detachOverlay()}}),d=setTimeout(function(){var e;(e=a._cleanupDetach)==null||e.call(a);a._detachOverlay()},
200);b.classList.add("mat-select-panel-exit")}};g._detachOverlay=function(){Zcc(this._overlayDir);this._changeDetectorRef.markForCheck()};g.writeValue=function(a){this._assignValue(a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};g.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
g._isRtl=function(){return this._dir?this._dir.value==="rtl":!1};g._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
g._handleClosedKeydown=function(a){var b=a.keyCode,c=b===40||b===38||b===37||b===39,d=this._keyManager;!(d.isTyping()||b!==13&&b!==32||ri(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
g._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=c===40||c===38,e=b.isTyping();if(d&&a.altKey)a.preventDefault(),this.close();else if(e||c!==13&&c!==32||!b.activeItem||ri(a))if(!e&&this._multiple&&c===65&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(h){return!h.disabled&&!h.selected});this.options.forEach(function(h){h.disabled||(f?h.select():h.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};g._handleOverlayKeydown=function(a){a.keyCode!==27||ri(a)||(a.preventDefault(),this.close())};g._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};g._onBlur=function(){this._focused=!1;var a;if((a=this._keyManager)!=null){var b;(b=a._typeahead)==null||b.reset()}this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};
g._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};g._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
g._setSelectionByValue=function(a){var b=this;this.options.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?Mw(this._keyManager,a):this.panelOpen||Mw(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
g._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return(d.value!=null||b.canSelectNullableOptions)&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};g._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
g._getOverlayWidth=function(a){return this.panelWidth==="auto"?(a instanceof wx?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};g._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
g._initKeyManager=function(){var a=this;this._keyManager=rcc(tcc(Lw(Kw(Jw(scc(new Nw(this.options),this.typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")))).skipPredicate(this._skipPredicate);this._keyManager.tabOut.subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};g._resetOptions=function(){var a=this,b=Ue(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(gg(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});Ue.apply(null,p(this.options.map(function(c){return c._stateChanges}))).pipe(gg(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
g._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);this.canSelectNullableOptions||a.value!=null||this._multiple?(c!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),b&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),b&&this.focus())):(a.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
g._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};g._propagateChanges=function(a){var b;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
g._highlightCorrectOption=function(){if(this._keyManager)if(this.empty){for(var a=-1,b=0;b<this.options.length;b++)if(!this.options.get(b).disabled){a=b;break}this._keyManager.setActiveItem(a)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])};g._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&((a=this.options)==null?void 0:a.length)>0&&!!this._overlayDir};g.focus=function(a){this._elementRef.nativeElement.focus(a)};
g._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||null;return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};g._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
g._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=(a=this._parentFormField)==null?void 0:a.getLabelId();a=(b?b+" ":"")+this._valueId;this.ariaLabelledby&&(a+=" "+this.ariaLabelledby);return a};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focus();this.open()};
ea.Object.defineProperties(zP.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=a;this._syncParentProperties()}},placeholder:{configurable:!0,enumerable:!0,get:function(){return this._placeholder},set:function(a){this._placeholder=a;this.stateChanges.next()}},required:{configurable:!0,
enumerable:!0,get:function(){var a,b,c,d;return(d=(c=this._required)!=null?c:(a=this.ngControl)==null?void 0:(b=a.control)==null?void 0:$dc(b))!=null?d:!1},set:function(a){this._required=a;this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=a}},compareWith:{configurable:!0,enumerable:!0,get:function(){return this._compareWith},set:function(a){this._compareWith=a;this._selectionModel&&this._initializeSelection()}},
value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._assignValue(a)&&this._onChange(a)}},errorStateMatcher:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.matcher},set:function(a){this._errorStateTracker.matcher=a}},id:{configurable:!0,enumerable:!0,get:function(){return this._id},set:function(a){this._id=a||this._uid;this.stateChanges.next()}},errorState:{configurable:!0,enumerable:!0,get:function(){return this._errorStateTracker.errorState},
set:function(a){this._errorStateTracker.errorState=a}},panelOpen:{configurable:!0,enumerable:!0,get:function(){return this._panelOpen}},selected:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.multiple?((a=this._selectionModel)==null?void 0:a.selected)||[]:(b=this._selectionModel)==null?void 0:b.selected[0]}},triggerValue:{configurable:!0,enumerable:!0,get:function(){if(this.empty)return"";if(this._multiple){var a=this._selectionModel.selected.map(function(b){return b.viewValue});
this._isRtl()&&a.reverse();return a.join(", ")}return this._selectionModel.selected[0].viewValue}},empty:{configurable:!0,enumerable:!0,get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}}});zP.\u0275fac=function(a){return new (a||zP)};
zP.\u0275cmp=B({type:zP,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(Xg(c,IMc,5),Xg(c,Lx,5),Xg(c,edc,5));if(a&2){var d;$g(d=ah())&&(b.customTrigger=d.first);$g(d=ah())&&(b.options=d);$g(d=ah())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(Wg(CMc,5),Wg(DMc,5),Wg(xx,5));if(a&2){var c;$g(c=ah())&&(b.trigger=c.first);$g(c=ah())&&(b.panel=c.first);$g(c=ah())&&(b._overlayDir=c.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(a,
b){a&1&&M("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});a&2&&(ng("id",b.id)("tabindex",b.disabled?-1:b.tabIndex)("aria-controls",b.panelOpen?b.id+"-panel":null)("aria-expanded",b.panelOpen)("aria-label",b.ariaLabel||null)("aria-required",b.required.toString())("aria-disabled",b.disabled.toString())("aria-invalid",b.errorState)("aria-activedescendant",b._getAriaActiveDescendant()),wg("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",
b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Dh],disableRipple:[2,"disableRipple","disableRipple",Dh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:Eh(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Dh],placeholder:"placeholder",
required:[2,"required","required",Dh],multiple:[2,"multiple","multiple",Dh],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Dh],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Eh],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,
"canSelectNullableOptions","canSelectNullableOptions",Dh]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[hh([{provide:Sy,useExisting:zP},{provide:ddc,useExisting:zP}]),Uu],ngContentSelectors:["mat-select-trigger","*"],decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],
[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],"viewBox;0 0 24 24;width;24px;height;24px;focusable;false;aria-hidden;true".split(";"),["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown",
"cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(a,b){if(a&1){var c=r();Ng(EMc);I(0,"div",2,0);M("click",function(){t(c);return v(b.open())});I(3,"div",3);E(4,DXa,2,1,"span",4)(5,GXa,3,1,"span",5);J();I(6,"div",6)(7,
"div",7);Vd();I(8,"svg",8);K(9,"path",9);J()()()();C(10,HXa,3,10,"ng-template",10);M("detach",function(){t(c);return v(b.close())})("backdropClick",function(){t(c);return v(b.close())})("overlayKeydown",function(d){t(c);return v(b._handleOverlayKeydown(d))})}a&2&&(a=L(1),z(3),ng("id",b._valueId),z(),F(b.empty?4:5),z(6),D("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||
a)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0))},dependencies:[wx,xx,Mv],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],
encapsulation:2,changeDetection:0});var AP=function(){};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275dir=Kf({type:AP,selectors:[["mat-select-trigger"]],features:[hh([{provide:IMc,useExisting:AP}])]});var BP=new yd("CDK_TABLE");new yd("text-column-options");var CP=function(){this.template=n(Tg)};CP.\u0275fac=function(a){return new (a||CP)};CP.\u0275dir=Kf({type:CP,selectors:[["","cdkCellDef",""]]});var DP=function(){this.template=n(Tg)};DP.\u0275fac=function(a){return new (a||DP)};DP.\u0275dir=Kf({type:DP,selectors:[["","cdkHeaderCellDef",""]]});var EP=function(){this.template=n(Tg)};EP.\u0275fac=function(a){return new (a||EP)};EP.\u0275dir=Kf({type:EP,selectors:[["","cdkFooterCellDef",""]]});
var FP=function(){this._table=n(BP,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};FP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};FP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};FP.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
FP.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
ea.Object.defineProperties(FP.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}},sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}},stickyEnd:{configurable:!0,enumerable:!0,get:function(){return this._stickyEnd},set:function(a){a!==this._stickyEnd&&(this._stickyEnd=a,this._hasStickyChanged=!0)}}});
FP.\u0275fac=function(a){return new (a||FP)};FP.\u0275dir=Kf({type:FP,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,CP,5),Xg(c,DP,5),Xg(c,EP,5));if(a&2){var d;$g(d=ah())&&(b.cell=d.first);$g(d=ah())&&(b.headerCell=d.first);$g(d=ah())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Dh],stickyEnd:[2,"stickyEnd","stickyEnd",Dh]},features:[hh([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:FP}])]});
var GP=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,p(a._columnCssClassName))},HP=function(){GP.call(this,n(FP),n(ff))};Y(HP,GP);HP.\u0275fac=function(a){return new (a||HP)};HP.\u0275dir=Kf({type:HP,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[kg]});
var IP=function(){var a=n(FP),b=n(ff);GP.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(IP,GP);IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275dir=Kf({type:IP,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[kg]});var JP=function(){var a=n(FP),b=n(ff);GP.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(JP,GP);
JP.\u0275fac=function(a){return new (a||JP)};JP.\u0275dir=Kf({type:JP,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[kg]});var KMc=function(){this.tasks=[];this.endTasks=[]},LMc=new yd("_COALESCED_STYLE_SCHEDULER"),KP=function(){this._currentSchedule=null;this._ngZone=n(ph)};KP.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};
KP.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new KMc,this._ngZone.runOutsideAngular(function(){return queueMicrotask(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new KMc;for(var c=l(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=l(b.endTasks);for(c=b.next();!c.done;c=b.next())c=c.value,c()}a._currentSchedule=null})}))};
KP.\u0275fac=function(a){return new (a||KP)};KP.\u0275prov=Sc({token:KP,factory:KP.\u0275fac});var LP=function(){this.template=n(Tg);this._differs=n(sv)};LP.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};LP.\u0275fac=function(a){return new (a||LP)};LP.\u0275dir=Kf({type:LP,features:[Uu]});var MP=function(){LP.call(this,n(Tg),n(sv));this._table=n(BP,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(MP,LP);
MP.prototype.ngOnChanges=function(a){LP.prototype.ngOnChanges.call(this,a)};MP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};MP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};ea.Object.defineProperties(MP.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});MP.\u0275fac=function(a){return new (a||MP)};
MP.\u0275dir=Kf({type:MP,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Dh]},features:[kg,Uu]});var NP=function(){LP.call(this,n(Tg),n(sv));this._table=n(BP,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(NP,LP);NP.prototype.ngOnChanges=function(a){LP.prototype.ngOnChanges.call(this,a)};NP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
NP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};ea.Object.defineProperties(NP.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});NP.\u0275fac=function(a){return new (a||NP)};NP.\u0275dir=Kf({type:NP,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Dh]},features:[kg,Uu]});
var OP=function(){LP.call(this,n(Tg),n(sv));this._table=n(BP,{optional:!0})};Y(OP,LP);OP.\u0275fac=function(a){return new (a||OP)};OP.\u0275dir=Kf({type:OP,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[kg]});var PP=function(){this._viewContainer=n(Ug);MMc=this};PP.prototype.ngOnDestroy=function(){MMc===this&&(MMc=null)};var MMc=null;PP.\u0275fac=function(a){return new (a||PP)};
PP.\u0275dir=Kf({type:PP,selectors:[["","cdkCellOutlet",""]]});var QP=function(){};QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275cmp=B({type:QP,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var RP=function(){};RP.\u0275fac=function(a){return new (a||RP)};
RP.\u0275cmp=B({type:RP,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var SP=function(){};SP.\u0275fac=function(a){return new (a||SP)};
SP.\u0275cmp=B({type:SP,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var TP=function(){this.templateRef=n(Tg);this._contentClassName="cdk-no-data-row"};TP.\u0275fac=function(a){return new (a||TP)};TP.\u0275dir=Kf({type:TP,selectors:[["ng-template","cdkNoDataRow",""]]});var NMc=new yd("CDK_SPL");var OMc=["top","bottom","left","right"],PMc=function(a,b,c,d,e,f,h,k){var q=this;e=e===void 0?!0:e;f=f===void 0?!0:f;this._isNativeHtmlTable=a;this._stickCellCss=b;this.direction=c;this._coalescedStyleScheduler=d;this._isBrowser=e;this._needsPositionStickyOnElement=f;this._positionListener=h;this._tableInjector=k;this._elemSizeCache=new WeakMap;var u;this._resizeObserver=((u=globalThis)==null?0:u.ResizeObserver)?new globalThis.ResizeObserver(function(A){return q._updateCachedSizes(A)}):null;this._updatedStickyColumnsParamsToReplay=
[];this._stickyColumnsReplayTimeout=null;this._cachedCellWidths=[];this._destroyed=!1;this._borderCellCss={top:b+"-border-elem-top",bottom:b+"-border-elem-bottom",left:b+"-border-elem-left",right:b+"-border-elem-right"}},QMc=function(a,b,c){(c.includes("left")||c.includes("right"))&&a._removeFromStickyColumnReplayQueue(b);var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e.nodeType===e.ELEMENT_NODE&&d.push.apply(d,[e].concat(p(Array.from(e.children))));a._afterNextRender({write:function(){for(var f=
l(d),h=f.next();!h.done;h=f.next())a._removeStickyStyle(h.value,c)}})},RMc=function(a,b,c,d,e,f){e=e===void 0?!0:e;f=f===void 0?!0:f;if(b.length&&a._isBrowser&&(c.some(function(ma){return ma})||d.some(function(ma){return ma}))){var h=b[0],k=h.children.length,q=a.direction==="rtl",u=q?"right":"left",A=q?"left":"right",G=c.lastIndexOf(!0),H=d.indexOf(!0),N,O,U;f&&a._updateStickyColumnReplayQueue({rows:[].concat(p(b)),stickyStartStates:[].concat(p(c)),stickyEndStates:[].concat(p(d))});a._afterNextRender({earlyRead:function(){N=
a._getCellWidths(h,e);O=a._getStickyStartColumnPositions(N,c);U=a._getStickyEndColumnPositions(N,d)},write:function(){for(var ma=l(b),ra=ma.next();!ra.done;ra=ma.next()){ra=ra.value;for(var Ga=0;Ga<k;Ga++){var Na=ra.children[Ga];c[Ga]&&a._addStickyStyle(Na,u,O[Ga],Ga===G);d[Ga]&&a._addStickyStyle(Na,A,U[Ga],Ga===H)}}a._positionListener&&N.some(function(Qa){return!!Qa})&&(a._positionListener.stickyColumnsUpdated({sizes:G===-1?[]:N.slice(0,G+1).map(function(Qa,gb){return c[gb]?Qa:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:H===
-1?[]:N.slice(H).map(function(Qa,gb){return d[gb+H]?Qa:null}).reverse()}))}})}else{(q=a._positionListener)==null||q.stickyColumnsUpdated({sizes:[]});var da;(da=a._positionListener)==null||da.stickyEndColumnsUpdated({sizes:[]})}},SMc=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,h=[],k=[],q=[];a._afterNextRender({earlyRead:function(){for(var u=0,A=0;u<e.length;u++)if(f[u]){h[u]=A;var G=e[u];q[u]=a._isNativeHtmlTable?Array.from(G.children):
[G];G=a._retrieveElementSize(G).height;A+=G;k[u]=G}},write:function(){for(var u=f.lastIndexOf(!0),A=0;A<e.length;A++)if(f[A])for(var G=h[A],H=A===u,N=l(q[A]),O=N.next();!O.done;O=N.next())a._addStickyStyle(O.value,d,G,H);if(d==="top"){var U;(U=a._positionListener)==null||U.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var da;(da=a._positionListener)==null||da.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}}})}},TMc=function(a,b,c){a._isNativeHtmlTable&&a._afterNextRender({write:function(){var d=
b.querySelector("tfoot");d&&(c.some(function(e){return!e})?a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1))}})};g=PMc.prototype;g.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
g._removeStickyStyle=function(a,b){if(a.classList.contains(this._stickCellCss)){for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);OMc.some(function(e){return b.indexOf(e)===-1&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}};
g._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};g._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=l(OMc),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
g._getCellWidths=function(a,b){if(b!==void 0&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(this._retrieveElementSize(a[c]).width);return this._cachedCellWidths=b};g._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};g._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;e>0;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
g._retrieveElementSize=function(a){var b=this._elemSizeCache.get(a);if(b)return b;b=a.getBoundingClientRect();b={width:b.width,height:b.height};if(!this._resizeObserver)return b;this._elemSizeCache.set(a,b);this._resizeObserver.observe(a,{box:"border-box"});return b};g._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
g._removeFromStickyColumnReplayQueue=function(a){var b=new Set(a);a=l(this._updatedStickyColumnsParamsToReplay);for(var c=a.next();!c.done;c=a.next())c=c.value,c.rows=c.rows.filter(function(d){return!b.has(d)});this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(function(d){return!!d.rows.length})};
g._updateCachedSizes=function(a){var b=this,c=!1;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.borderBoxSize)==null?0:e.length)?{width:d.borderBoxSize[0].inlineSize,height:d.borderBoxSize[0].blockSize}:{width:d.contentRect.width,height:d.contentRect.height};e=void 0;f.width!==((e=this._elemSizeCache.get(d.target))==null?void 0:e.width)&&IXa(d.target)&&(c=!0);this._elemSizeCache.set(d.target,f)}c&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&
clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(function(){if(!b._destroyed){for(var h=l(b._updatedStickyColumnsParamsToReplay),k=h.next();!k.done;k=h.next())k=k.value,RMc(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};
g._afterNextRender=function(a){this._tableInjector?$e(a,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(function(){var b;(b=a.earlyRead)==null||b.call(a);a.write()})};var UMc=[[["caption"]],[["colgroup"],["col"]],"*"],UP=function(){this.viewContainer=n(Ug);this.elementRef=n(ff);var a=n(BP);a._rowOutlet=this;a._outletAssigned()};UP.\u0275fac=function(a){return new (a||UP)};UP.\u0275dir=Kf({type:UP,selectors:[["","rowOutlet",""]]});var VP=function(){this.viewContainer=n(Ug);this.elementRef=n(ff);var a=n(BP);a._headerRowOutlet=this;a._outletAssigned()};VP.\u0275fac=function(a){return new (a||VP)};VP.\u0275dir=Kf({type:VP,selectors:[["","headerRowOutlet",""]]});
var WP=function(){this.viewContainer=n(Ug);this.elementRef=n(ff);var a=n(BP);a._footerRowOutlet=this;a._outletAssigned()};WP.\u0275fac=function(a){return new (a||WP)};WP.\u0275dir=Kf({type:WP,selectors:[["","footerRowOutlet",""]]});var XP=function(){this.viewContainer=n(Ug);this.elementRef=n(ff);var a=n(BP);a._noDataRowOutlet=this;a._outletAssigned()};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275dir=Kf({type:XP,selectors:[["","noDataRowOutlet",""]]});
var YP=function(){this._differs=n(sv);this._changeDetectorRef=n(qv);this._elementRef=n(ff);this._dir=n(Qw,{optional:!0});this._platform=n(ew);this._viewRepeater=n(Gcc);this._coalescedStyleScheduler=n(LMc);this._viewportRuler=n(ax);this._stickyPositioningListener=n(NMc,{optional:!0,skipSelf:!0});this._document=n(Ei);this._onDestroy=new bg;this._columnDefsByName=new Map;this._customColumnDefs=new Set;this._customRowDefs=new Set;this._customHeaderRowDefs=new Set;this._customFooterRowDefs=new Set;this._forceRecalculateCellWidths=
this._stickyColumnStylesNeedReset=this._footerRowDefChanged=this._headerRowDefChanged=!0;this._cachedRenderRowsMap=new Map;this.stickyCssClass="cdk-table-sticky";this.needsPositionStickyOnElement=!0;this._hasInitialized=this._hasAllOutlets=this._isShowingNoDataRow=!1;this._cellRoleInternal=void 0;this._fixedLayout=this._multiTemplateDataRows=!1;this.contentChanged=new hv;this._injector=n(Ze);n(new Vu("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table");this._isServer=
!this._platform.isBrowser;this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE"};g=YP.prototype;g._getCellRole=function(){var a=this._elementRef.nativeElement.getAttribute("role");return a==="grid"||a==="treegrid"?"gridcell":"cell"};
g.ngOnInit=function(){var a=this;this._setupStickyStyler();this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c});this._viewportRuler.change().pipe(gg(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};g.ngAfterContentInit=function(){this._hasInitialized=!0};g.ngAfterContentChecked=function(){this._canRender()&&this._render()};
g.ngOnDestroy=function(){var a;(a=this._stickyStyler)==null||a.destroy();var b,c,d;[(b=this._rowOutlet)==null?void 0:b.viewContainer,(c=this._headerRowOutlet)==null?void 0:c.viewContainer,(d=this._footerRowOutlet)==null?void 0:d.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e==null||e.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();
this._onDestroy.complete();Soa(this.dataSource)&&this.dataSource.disconnect(this)};
g.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){return d.item.data},function(d){d.operation===1&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});this._updateRowIndexContext();tac(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();
this.contentChanged.next();VMc(this)}else this._updateNoDataRow(),this.contentChanged.next()};
var WMc=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=NXa(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});QMc(a._stickyStyler,b,["top"]);SMc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},XMc=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=NXa(a._footerRowOutlet,"tfoot");c&&(c.style.display=b.length?
"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});QMc(a._stickyStyler,b,["bottom"]);SMc(a._stickyStyler,b,c,"bottom");TMc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},VMc=function(a){var b=a._getRenderedRows(a._headerRowOutlet),c=a._getRenderedRows(a._rowOutlet),d=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable&&!a._fixedLayout||a._stickyColumnStylesNeedReset)QMc(a._stickyStyler,[].concat(p(b),p(c),
p(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],h=0;h<c.length;h++)a._renderRows[h].rowDef===e&&f.push(c[h]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};g=YP.prototype;
g._outletAssigned=function(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())};g._canRender=function(){return this._hasAllOutlets&&this._hasInitialized};
g._render=function(){this._cacheRowDefs();this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a;this._forceRecalculateCellWidths=a;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1);this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1);this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?
this._observeRenderChanges():this._stickyColumnStylesNeedReset&&VMc(this);this._checkStickyStates()};
g._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var c=0;c<this._data.length;c++){var d=this._data[c],e=this._getRenderRowsForData(d,c,b.get(d));this._cachedRenderRowsMap.has(d)||this._cachedRenderRowsMap.set(d,new WeakMap);for(d=0;d<e.length;d++){var f=e[d],h=this._cachedRenderRowsMap.get(f.data);h.has(f.rowDef)?h.get(f.rowDef).push(f):h.set(f.rowDef,[f]);a.push(f)}}return a};
g._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};g._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();MXa(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
g._cacheRowDefs=function(){this._headerRowDefs=MXa(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=MXa(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=MXa(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
g._renderUpdatedColumns=function(){var a=function(d,e){e=!!e._columnsDiffer.diff(e.columns);return d||e},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
g._switchDataSource=function(a){this._data=[];Soa(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear());this._dataSource=a};
g._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;Soa(this.dataSource)?b=this.dataSource.connect(this):dha(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=Ce(this.dataSource));this._renderChangeSubscription=b.pipe(gg(this._onDestroy)).subscribe(function(c){a._data=c||[];a.renderRows()})}};
g._forceRenderHeaderRows=function(){var a=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});WMc(this)};g._forceRenderFooterRows=function(){var a=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});XMc(this)};
g._addStickyColumnStyles=function(a,b){var c=this,d=Array.from((b==null?void 0:b.columns)||[]).map(function(e){return c._columnDefsByName.get(e)});b=d.map(function(e){return e.sticky});d=d.map(function(e){return e.stickyEnd});RMc(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};g._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
g._getRowDefs=function(a,b){if(this._rowDefs.length==1)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};g._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
g._renderRow=function(a,b,c,d){d=d===void 0?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};g._renderCellTemplateForItem=function(a,b){a=l(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,MMc&&MMc._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
g._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=b===0;d.last=b===c-1;d.even=b%2===0;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
g._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof MP?c.headerCell.template:a instanceof NP?c.footerCell.template:c.cell.template}):[]};g._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();this.renderRows()};
g._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&WMc(this);this._footerRowDefs.reduce(a,!1)&&XMc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,VMc(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new PMc(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector);(this._dir?this._dir.change:Ce()).pipe(gg(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;VMc(a)})};g._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
g._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=this._rowOutlet.viewContainer.length===0;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;if(b){c=c.createEmbeddedView(a.templateRef);var d=c.rootNodes[0];c.rootNodes.length===1&&(d==null?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(a._contentClassName))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
ea.Object.defineProperties(YP.prototype,{trackBy:{configurable:!0,enumerable:!0,get:function(){return this._trackByFn},set:function(a){this._trackByFn=a}},dataSource:{configurable:!0,enumerable:!0,get:function(){return this._dataSource},set:function(a){this._dataSource!==a&&this._switchDataSource(a)}},multiTemplateDataRows:{configurable:!0,enumerable:!0,get:function(){return this._multiTemplateDataRows},set:function(a){this._multiTemplateDataRows=a;this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),VMc(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});YP.\u0275fac=function(a){return new (a||YP)};
YP.\u0275cmp=B({type:YP,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,TP,5),Xg(c,FP,5),Xg(c,OP,5),Xg(c,MP,5),Xg(c,NP,5));if(a&2){var d;$g(d=ah())&&(b._noDataRow=d.first);$g(d=ah())&&(b._contentColumnDefs=d);$g(d=ah())&&(b._contentRowDefs=d);$g(d=ah())&&(b._contentHeaderRowDefs=d);$g(d=ah())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Dh],fixedLayout:[2,"fixedLayout","fixedLayout",Dh]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[hh([{provide:BP,useExisting:YP},{provide:Gcc,useClass:Hcc},{provide:LMc,useClass:KP},{provide:NMc,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a,b){a&1&&(Ng(UMc),Og(0),Og(1,1),E(2,JXa,1,0),E(3,KXa,7,0)(4,LXa,4,0));a&2&&(z(2),F(b._isServer?2:-1),z(),F(b._isNativeHtmlTable?3:4))},dependencies:[VP,UP,XP,WP],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var ZP=function(){};ZP.\u0275fac=function(a){return new (a||ZP)};ZP.\u0275mod=Jf({type:ZP});ZP.\u0275inj=Tc({imports:[cx]});var $P=function(){CP.apply(this,arguments)};Y($P,CP);$P.\u0275fac=function(){var a;return function(b){return(a||(a=fe($P)))(b||$P)}}();$P.\u0275dir=Kf({type:$P,selectors:[["","matCellDef",""]],features:[hh([{provide:CP,useExisting:$P}]),kg]});var aQ=function(){DP.apply(this,arguments)};Y(aQ,DP);aQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(aQ)))(b||aQ)}}();aQ.\u0275dir=Kf({type:aQ,selectors:[["","matHeaderCellDef",""]],features:[hh([{provide:DP,useExisting:aQ}]),kg]});
var bQ=function(){EP.apply(this,arguments)};Y(bQ,EP);bQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(bQ)))(b||bQ)}}();bQ.\u0275dir=Kf({type:bQ,selectors:[["","matFooterCellDef",""]],features:[hh([{provide:EP,useExisting:bQ}]),kg]});var cQ=function(){FP.apply(this,arguments)};Y(cQ,FP);cQ.prototype._updateColumnCssClassName=function(){FP.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
ea.Object.defineProperties(cQ.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});cQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(cQ)))(b||cQ)}}();cQ.\u0275dir=Kf({type:cQ,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[hh([{provide:FP,useExisting:cQ},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:cQ}]),kg]});var dQ=function(){HP.apply(this,arguments)};Y(dQ,HP);
dQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(dQ)))(b||dQ)}}();dQ.\u0275dir=Kf({type:dQ,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[kg]});var eQ=function(){IP.apply(this,arguments)};Y(eQ,IP);eQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(eQ)))(b||eQ)}}();
eQ.\u0275dir=Kf({type:eQ,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[kg]});var fQ=function(){JP.apply(this,arguments)};Y(fQ,JP);fQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(fQ)))(b||fQ)}}();fQ.\u0275dir=Kf({type:fQ,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[kg]});var gQ=function(){MP.apply(this,arguments)};Y(gQ,MP);gQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(gQ)))(b||gQ)}}();gQ.\u0275dir=Kf({type:gQ,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Dh]},features:[hh([{provide:MP,useExisting:gQ}]),kg]});var hQ=function(){NP.apply(this,arguments)};Y(hQ,NP);hQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(hQ)))(b||hQ)}}();
hQ.\u0275dir=Kf({type:hQ,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",Dh]},features:[hh([{provide:NP,useExisting:hQ}]),kg]});var iQ=function(){OP.apply(this,arguments)};Y(iQ,OP);iQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(iQ)))(b||iQ)}}();
iQ.\u0275dir=Kf({type:iQ,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[hh([{provide:OP,useExisting:iQ}]),kg]});var jQ=function(){};Y(jQ,QP);jQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(jQ)))(b||jQ)}}();
jQ.\u0275cmp=B({type:jQ,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[hh([{provide:QP,useExisting:jQ}]),kg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var kQ=function(){};Y(kQ,RP);kQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(kQ)))(b||kQ)}}();
kQ.\u0275cmp=B({type:kQ,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[hh([{provide:RP,useExisting:kQ}]),kg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var lQ=function(){};Y(lQ,SP);lQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(lQ)))(b||lQ)}}();
lQ.\u0275cmp=B({type:lQ,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[hh([{provide:SP,useExisting:lQ}]),kg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Hg(0,0)},dependencies:[PP],encapsulation:2});var mQ=function(){TP.apply(this,arguments);this._contentClassName="mat-mdc-no-data-row"};Y(mQ,TP);mQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(mQ)))(b||mQ)}}();
mQ.\u0275dir=Kf({type:mQ,selectors:[["ng-template","matNoDataRow",""]],features:[hh([{provide:TP,useExisting:mQ}]),kg]});var YMc=[[["caption"]],[["colgroup"],["col"]],"*"],ZMc=function(){};ZMc.\u0275fac=function(a){return new (a||ZMc)};ZMc.\u0275dir=Kf({type:ZMc,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[hh([{provide:Gcc,useClass:Icc}])]});var nQ=function(){YP.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Y(nQ,YP);nQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(nQ)))(b||nQ)}}();
nQ.\u0275cmp=B({type:nQ,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[hh([{provide:YP,useExisting:nQ},{provide:BP,useExisting:nQ},{provide:LMc,useClass:KP},{provide:Gcc,useClass:Hcc},{provide:NMc,useValue:null}]),kg],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",
""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,b){a&1&&(Ng(YMc),Og(0),Og(1,1),E(2,OXa,1,0),E(3,PXa,7,0)(4,QXa,4,0));a&2&&(z(2),F(b._isServer?2:-1),z(),F(b._isNativeHtmlTable?3:4))},dependencies:[VP,UP,XP,WP],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],
encapsulation:2});var $Mc=["componentSearchMenuTrigger"],aNc=["searchInput"],bNc={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},cNc={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},dNc={},eNc=(dNc["Similar issues"]="similar",dNc["Search results"]="exact",dNc["Semantic search results"]="semantic",dNc["Issue IDs"]="id",dNc),fNc={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},oQ=function(){Z.apply(this,
arguments);var a=this;this.dialogRef=n(mK);this.initialData=n(sK);this.issueFullFridge=n(EF);this.issuePickerSearchService=n(lO);this.analytics=n(CF);this.activeSession=n(Es);this.componentFridge=n(jD);this.teamFridge=n(DG);this.domSafe=n(rL);this.trackerHelpers=n(LK);this.elRef=n(ff);this.focusTrapFactory=n(Fw);this.userPreferencesManager=n(OG);this.isInternalSession=this.activeSession.isInternalSession();this.data=Object.assign({},bNc,this.initialData);var b;this.currentComponentId=(b=this.data.componentId)!=
null?b:void 0;this.currentIssueId$=Oe(function(){var d;return((d=a.data.currentResource)==null?void 0:d.type)==="issue"?Ce(a.data.currentResource.id):ev});this.currentIssue$=this.currentIssueId$.pipe(fg(function(d){return a.issueFullFridge.watch(d)}),cg({bufferSize:1,refCount:!0}));this.team$=this.currentIssue$.pipe(fg(function(d){var e;return a.teamFridge.watch(d==null?void 0:(e=d.aggregatedData)==null?void 0:e.teamId)}),cg({bufferSize:1,refCount:!0}));this.assistiveIssuePickerPreferences$=this.userPreferencesManager.preferences$.pipe(y(function(d){var e,
f;return(f=a.currentComponentId?d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId):void 0)!=null?f:a.DEFAULT_PREFERENCES}));var c;this.originIsBulk=(c=this.data.originIsBulk)!=null?c:!1;this.DEFAULT_PREFERENCES={open:!0,searchScope:"COMPONENT",componentScope:this.currentComponentId,includeDescendants:!1};this.openFilterEnabled$=this.assistiveIssuePickerPreferences$.pipe(y(function(d){return d.open}));this.selectedScope$=this.assistiveIssuePickerPreferences$.pipe(y(function(d){return d.searchScope}));
this.includeDescendants$=this.assistiveIssuePickerPreferences$.pipe(y(function(d){return d.includeDescendants}));this.component$=this.assistiveIssuePickerPreferences$.pipe(fg(function(d){return a.componentFridge.watch(d.componentScope)}));this.selectedIssues=new uC;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");this.issueUrlFactory=Fq.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=new tj("");this.searchTextTrimmed$=
this.searchText$.pipe(y(function(d){return d.trim()}),Xf());this.idsInSearchText$=this.searchTextTrimmed$.pipe(y(BJa),y(jk),y(function(d){return d.filter(function(e){return e.length>=4})}),Xf(Pj));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(fg(function(d){return a.issueFullFridge.watchSet(d)}),hg(function(){a.isLoading=!1}),cg({bufferSize:1,refCount:!0}));this.openFilter=RG;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(Ve(Tk));
this.selectedFilters$=new uC([]);this.similarIssues$=Je([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$]).pipe(Sf(0,qp),Ve(function(d){d=l(d);d.next();d.next();return d.next().value===""}),hg(function(){a.isLoading=!0}),fg(function(d){var e=l(d);d=e.next().value;e=e.next().value;return RKc(a.issuePickerSearchService,d,e)}),hg(function(){a.isLoading=!1}),cg({bufferSize:1,refCount:!0}));this.SearchSource=fNc;this.selectedSearchSource$=new tj("Smart search");this.searchResults$=
Je([this.searchTextTrimmed$.pipe(hg(function(){a.isLoading=!0}),Sf(200)),this.selectedFilters$.value$.pipe(hg(function(){a.isLoading=!0})),this.selectedSearchSource$]).pipe(fg(function(d){var e=l(d);d=e.next().value;var f=e.next().value;return e.next().value==="Smart search"?(a.analytics.trackEvent("assistive-issue-picker","semantic-search-"+a.data.edgeType),TKc(a.issuePickerSearchService,d,f,a.data.edgeType,a.data.currentResource)):a.issuePickerSearchService.search(d,a.data.edgeType,a.data.currentResource,
a.currentComponentId)}),hg(function(){a.isLoading=!1}),cg({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(y(function(d){return d.length!==1?[]:[d[0].issueId]}),Xf(Pj),hg(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=np(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=f.map(function(h){return h.issueId}).includes(d[0])}),cg({bufferSize:1,refCount:!0}));this.TableDataSource=cNc;this.tableDataSource="Search results";this.issues$=Je([this.searchTextTrimmed$,
this.issuesWithIdMatches$,this.similarIssues$.pipe(eg([])),this.selectedSearchSource$,this.defaultChoices$]).pipe(fg(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;var k=e.next().value;e=e.next().value;return f.length===1?(a.tableDataSource="Issue IDs",a.issuesWithIdMatches$):d?(a.tableDataSource=k==="Smart search"?"Semantic search results":"Search results",a.searchResults$):e&&e.length>0?(a.tableDataSource="Similar issues",a.defaultChoices$):h?(h.length>0&&(a.tableDataSource=
"Similar issues"),a.similarIssues$):Ce(void 0)}),Xf());this.correctedDisplayedRows=new Vg;this.isPasteResultInSuggestion=this.isLoading=!1};Y(oQ,Z);oQ.\u0275dir=Z.\u0275dir;oQ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(WKc(this.issuePickerSearchService,this.currentComponentId).subscribe());gNc(this)};
var gNc=function(a){var b,c,d,e,f,h,k,q,u,A,G,H,N;w(function(O){if(O.nextAddress==1)return b=l,x(O,Promise.all([Ge(a.openFilterEnabled$),Ge(a.component$),Ge(a.team$),Ge(a.selectedScope$),Ge(a.includeDescendants$)]),2);c=b(O.yieldResult);d=c.next().value;e=c.next().value;f=c.next().value;h=c.next().value;k=c.next().value;q=d;u=e;A=f;G=h;H=k;q&&a.selectedFilters$.add(a.openFilter);if(u){a.componentFilter=lIa(u,H);if(N=G==="COMPONENT"||G==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=u}A&&(a.teamFilter=kIa(A,H),G==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));ze(O)})};oQ.prototype.ngAfterViewInit=function(){this.focusManager=Lw(new pMc(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};oQ.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
oQ.prototype.openFilterChanged=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(RG):b.selectedFilters$.delete(RG),x(d,Ge(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return x(d,hNc(b,Object.assign({},c,{open:a!==void 0})),0)})};
var hNc=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(a.userPreferencesManager.preferences$.pipe(y(function(e){return new Map(e.assistiveIssuePickerPreferences)}))),2);c=d.yieldResult;a.currentComponentId&&(c.set(a.currentComponentId,b),a.subscriptions.add(a.userPreferencesManager.save({assistiveIssuePickerPreferences:c}).subscribe()));ze(d)})},$Xa=function(a,b){var c,d,e;return w(function(f){if(f.nextAddress==1){if(!a.componentFilter||!a.teamFilter||a.selectedScopeFilter===
b)return f.return();a.selectedScopeFilter=b;c=new Set(a.selectedFilters$.value);(d=b===a.componentFilter)?(c.add(a.componentFilter),c.delete(a.teamFilter)):(c.add(a.teamFilter),c.delete(a.componentFilter));a.selectedFilters$.reset(c);return x(f,Ge(a.assistiveIssuePickerPreferences$),2)}e=f.yieldResult;return x(f,hNc(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},hYa=function(a){var b,c,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:return x(q,Ge(a.includeDescendants$),
2);case 2:return b=!q.yieldResult,x(q,Ge(a.assistiveIssuePickerPreferences$),3);case 3:return c=q.yieldResult,x(q,hNc(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return x(q,Ge(a.component$),5);case 5:return d=q.yieldResult,x(q,Ge(a.team$),6);case 6:e=q.yieldResult;if(!d)return q.return();f=lIa(d,b);h=new Set(a.selectedFilters$.value);if(!a.componentFilter)return q.return();h.has(a.componentFilter)&&(h.delete(a.componentFilter),h.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
kIa(e,b),a.teamFilter&&h.has(a.teamFilter)&&(h.delete(a.teamFilter),h.add(k),a.selectedScopeFilter=k),a.teamFilter=k);a.selectedFilters$.reset(h);ze(q)}})},IYa=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return x(e,Zi(0),2);c=new Map(a.displayedRows.toArray().map(function(f){return[f.row.issueId,f]}));d=b.map(function(f){return c.get(f.issueId)}).filter(Tk);a.correctedDisplayedRows.reset(d);Zg(a.correctedDisplayedRows);ze(e)})};
oQ.prototype.onPressConfirm=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1){if(!a.selectedIssues.size)return d.return();b=[].concat(p(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);return x(d,iNc(a,b[0]),2)}return x(d,jNc(a,b[0]),0)})};oQ.prototype.onPressCancel=function(){this.dialogRef.close()};oQ.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
oQ.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var dYa=function(a,b){var c,d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return u.return();if(c=!b){u.jumpTo(2);break}return x(u,Ge(a.component$),3);case 3:c=u.yieldResult===b;case 2:if(c)return u.return();d=lIa;e=b;return x(u,Ge(a.includeDescendants$),4);case 4:return f=d(e,u.yieldResult),a.selectedScopeFilter=f,x(u,Ge(a.assistiveIssuePickerPreferences$),5);case 5:return h=u.yieldResult,x(u,hNc(a,Object.assign({},h,{componentScope:b.componentId})),
6);case 6:return k=Set,x(u,Ge(a.selectedFilters$.value$),7);case 7:q=new k(u.yieldResult),q.delete(a.componentFilter),q.add(f),a.componentFilter=f,a.selectedFilters$.reset(q),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),ze(u)}})},WXa=function(a){return w(function(b){if(b.nextAddress==1)return x(b,Ge(a.component$),2);a.selectedComponent=b.yieldResult;ze(b)})},jNc=function(a,b){var c,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return a.data.edgeType!==
"canonical"?u.return():x(u,Ge(a.issueFullFridge.watch(b)),2);if(u.nextAddress!=3)return(c=u.yieldResult)?x(u,kNc(a,b),3):u.return();d=u.yieldResult;e=eNc[a.tableDataSource];a.analytics.trackEvent("assistive-issue-picker","picked-c-canonical",d?e+"-hit":e+"-miss",d?1:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","dupe-count",(h=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?h:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(q=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?q:0);ze(u)})};oQ.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);fcc(this.focusTrap)};
var iNc=function(a,b){var c,d,e,f,h,k,q,u,A;return w(function(G){if(G.nextAddress==1)return x(G,Ge(a.similarIssues$),2);if(G.nextAddress!=4){d=(c=G.yieldResult)!=null?c:[];e=d.find(function(H){return H.issueId===b});f=!!e;h=eNc[a.tableDataSource];if(d.length===0)return a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,h+"-empty"),G.jumpTo(0);a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?h+"-hit":h+"-miss",f?1:0);return x(G,Ge(a.component$),
4)}k=G.yieldResult;u=rs(a.trackerHelpers,(q=k)==null?void 0:q.componentPathInfo);A="";u&&u.componentPathName&&(A=u.componentPathName[0].toString().trim());a.analytics.trackEvent("assistive-issue-picker","hit-rate-by-component-"+a.data.edgeType,f?h+"-hit,"+A:h+"-miss,"+A,f?1:0);f&&(a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-rank",d.indexOf(e)+1),e.score&&a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-score",e.score));
ze(G)})},kNc=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1){if(a.data.edgeType!=="canonical")return e.return(!1);c=Set;return x(e,Ge(WKc(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};oQ.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};var YXa=function(a){return a.startsWith("Component:")?"Component":a};oQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(oQ)))(b||oQ)}}();
oQ.\u0275cmp=B({type:oQ,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(Wg($Mc,5),Wg(aNc,5),Wg(oP,5));if(a&2){var c;$g(c=ah())&&(b.trigger=c.first);$g(c=ah())&&(b.inputEl=c.first);$g(c=ah())&&(b.displayedRows=c)}},hostBindings:function(a,b){a&1&&M("keydown.control.enter",function(){return b.onPressConfirm()})("keydown.meta.enter",function(){return b.onPressConfirm()})},standalone:!1,features:[kg],decls:28,vars:21,consts:[["searchInput",""],["teamComponentMenu","matMenu"],
["componentSearchMenu","matMenu"],["menuTrigger","matMenuTrigger"],["componentSearchMenuTrigger","matMenuTrigger"],["mat-dialog-title",""],[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-s-y","heading-m"],["svgIcon","merge_type_24px",1,"rotate-180","green"],[1,"search-field","margin-s-bottom","flex-kids-x","align-items-center","heading-xs"],["cdkFocusInitial","","placeholder","Search by title, contents, or id",3,"keydown.arrowdown","input","keydown.enter"],[1,"padded-s",3,"selectionChange",
"value"],["matTooltip","Searches by semantic similarity of the query. Does not support search atoms (like 'status:open')","matTooltipShowDelay","750","matTooltipPosition","left",3,"value"],["matTooltip","Searches by the exact query text. Supports search atoms (like 'status:open')","matTooltipShowDelay","750","matTooltipPosition","left",3,"value"],[1,"center-text","padded","margined","pos-rel"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",
3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],[1,"heading","flex-kids-y","gap-s","border-bottom","padded-bottom","margin-s-bottom"],[1,"type-xs"],[1,"heading-s","line-clamp-3"],["svgIcon","search_spark_24px",1,"icon-m"],["svgIcon","search",1,"icon-m"],[1,"flex-kids-x","align-items-center","margin-s-bottom","gap-s"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",1,"open-filter-chip",3,"selected","value"],
[3,"matTooltip"],["xPosition","before"],["matMenuContent",""],["xPosition","after"],["aria-label","Include subcomponents or subteams",3,"change"],["appearance","hairline-filter",1,"include-descendants-chip",3,"selected"],["matTooltip","Include subcomponents or subteams"],"type;button;mat-icon-button;;matTooltip;Learn more;aria-label;help".split(";"),["aria-label","Scope search to component or team",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Select Component or Team scope",
"selected","","color","primary","role","button",1,"team-component-filters",3,"keydown.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown",1,"dropdown-icon"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Search for a component","selected","","color","primary","role","button",1,"component-search-filter",3,"keydown.enter","keyup.space","menuOpened","matMenuTriggerFor"],
["type","button","mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",1,"component-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",1,"team-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",1,"component-filter",3,"click","matTooltip"],["svgIcon","done"],["type","button","mat-menu-item","","matTooltipPosition","right","matTooltipShowDelay","500",
1,"team-filter",3,"click","matTooltip"],[3,"click","keydown.tab","keydown.shift.tab"],[1,"component-search-menu-item"],["tabindex","0",3,"selectedComponentChange","selectedComponent","placeholder","shouldFocus","isRequired"],[1,"component-picker-action-buttons"],["type","button","mat-button","","color","primary",1,"choose-picker-button","small",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel-picker-button","small",3,"click"],["type","button","mat-icon-button","",
"matTooltip","Learn more","aria-label","help",3,"click"],["svgIcon","help-outline"],["text","Finding similar issues...",3,"large"],["text","Searching..."],["ariaLabel","Loading results",1,"margined","inline-block"],["messageType","info","iconOverride","lightbulb_24px"],[1,"heading-xs"],["mat-table","",1,"full-width",3,"dataSource","trackBy"],[1,"center-text","padded"],["href","http://go/b-mark-as-duplicate","target","\u201d_blank\u201d"],["svgIcon","spark_24px","color","primary",1,"valign-middle"],
["mat-table","",1,"full-width",3,"contentChanged","dataSource","trackBy"],["matColumnDef","single-selection"],["mat-header-cell","",4,"matHeaderCellDef"],["aria-label","Select issue",3,"change"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","id"],["matColumnDef","priority"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],["matColumnDef","duplicateCount"],["mat-cell","","class","center-text",4,"matCellDef"],["matColumnDef",
"votes"],["mat-header-cell","","matTooltip","Votes",4,"matHeaderCellDef"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"row","keydown","keydown.enter","focusin","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","0",3,"checked","aria-label","value"],["anchorTarget","_blank",3,"issue","issueUrlFactory",
"useButtonToNavigate","enableHovercard"],[3,"id"],[3,"issue"],["mat-header-cell","","mat-sort-header","status"],["mat-cell","",1,"center-text"],["mat-header-cell","","matTooltip","Votes"],["svgIcon","exposure_plus_1_24px",1,"icon-xs"],["mat-header-cell","","mat-sort-header","createdTime"],["mode","relativepastshort",3,"issue"],["mat-header-row",""],["mat-row","",1,"clickable",3,"keydown","keydown.enter","focusin","click","row"],[1,"margined","inline-block"]],template:function(a,b){if(a&1){var c=r();
I(0,"div",5);E(1,SXa,2,3);I(2,"div",6);K(3,"mat-icon",7);I(4,"span");Q(5,"Close as duplicate of:");J()();I(6,"header",8);E(7,VXa,2,1);S(8,"async");I(9,"input",9,0);M("keydown.arrowdown",function(){t(c);return v(b.focusManager.setActiveItem(0))})("input",function(){t(c);var h=L(10);return v(b.searchText$.next(h.value))})("keydown.enter",function(){t(c);return v(b.onPressConfirm())});J();I(11,"mat-select",10);S(12,"async");M("selectionChange",function(h){t(c);b.selectedSearchSource$.next(h.value);return v()});
I(13,"mat-option",11);Q(14);J();I(15,"mat-option",12);Q(16);J()()();E(17,jYa,1,1);S(18,"async");J();E(19,nYa,5,3,"div",13);E(20,LYa,5,4,"div",14);S(21,"async");I(22,"div",15)(23,"button",16);M("click",function(){t(c);return v(b.onPressCancel())});Q(24," Cancel ");J();I(25,"button",17);S(26,"async");M("click",function(){t(c);return v(b.onPressConfirm())});Q(27," Close as duplicate ");J()()}if(a&2){var d,e,f;z();F(b.originIsBulk?-1:1);z(6);F((d=T(8,11,b.selectedSearchSource$))?7:-1,d);z(4);D("value",
T(12,13,b.selectedSearchSource$));z(2);D("value",b.SearchSource.SEMANTIC_SEARCH);z();R(" ",b.SearchSource.SEMANTIC_SEARCH," ");z();D("value",b.SearchSource.EXACT_MATCH);z();R(" ",b.SearchSource.EXACT_MATCH," ");z();F((e=T(18,15,b.selectedSearchSource$))?17:-1,e);z(2);F(b.isLoading?19:-1);z();F((f=T(21,17,b.issues$))?20:-1,f);z(5);D("disabled",!T(26,19,b.selectedIssues.size$))}},dependencies:[aB,qP,yP,wP,uP,nO,tO,vO,wO,kP,PA,Tx,Ux,wK,yK,xK,UG,XG,VG,WG,YG,zN,AN,rP,zP,Lx,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,
lQ,YA,cB,dKc,ON,oP,lP,mP,xN,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin:0}.heading[_ngcontent-%COMP%]{padding-left:4px}.mat-mdc-menu-item[_ngcontent-%COMP%]{height:auto}.search-field[_ngcontent-%COMP%]{position:relative}.search-field[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;top:9px;left:5px}.search-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:40px;width:100%;min-width:320px;background-color:#f1f3f4;background-color:var(--main-search-bg);color:#202124;color:var(--text-high-contrast);border-radius:8px;border:none;padding:0 16px;padding-left:40px;padding-right:140px}.search-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]{position:absolute;right:8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:8px}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.search-field[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}[_nghost-%COMP%]     .mat-mdc-select-arrow, [_nghost-%COMP%]     .mat-mdc-select-value{color:#1a73e8;color:var(--primary)}@media (forced-colors:active){[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button:focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}[_nghost-%COMP%]   .mat-mdc-dialog-actions[_ngcontent-%COMP%]   -shadowcsshost     button.gmat-mdc-button:not([disabled]):focus{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;border-radius:2px;outline-offset:3px}.mat-mdc-table[_ngcontent-%COMP%]{background-color:inherit;margin:4px 0}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-title[_ngcontent-%COMP%]{min-width:250px;max-width:24vw}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-id[_ngcontent-%COMP%]{margin-right:-8px}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-single-selection[_ngcontent-%COMP%]{padding-left:6px}.mat-mdc-table[_ngcontent-%COMP%]   .mat-column-votes[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:5px}.component-search-menu-item[_ngcontent-%COMP%]{padding:0 5px}.component-picker-action-buttons[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:5px}.dropdown-icon[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=assistive_issue_picker_dialog.css.map */"],
changeDetection:0});var lNc=function(){this.enrichmentCategoryFridge=n(VD);this.enrichmentCategoryNames=[]},PYa=function(a,b){return b==="Buganizer"?Ce({enableHovercard:!1,displayName:b,description:""}):a.enrichmentCategoryFridge.watch(b).pipe(y(function(c){var d,e;return{enableHovercard:!0,displayName:(d=c==null?void 0:c.displayName)!=null?d:b,description:(e=c==null?void 0:c.description)!=null?e:""}}),eg({enableHovercard:!0,displayName:b,description:""}))};lNc.\u0275fac=function(a){return new (a||lNc)};
lNc.\u0275cmp=B({type:lNc,selectors:[["b-enrichment-categories-cell"]],inputs:{enrichmentCategoryNames:"enrichmentCategoryNames"},standalone:!1,decls:2,vars:0,consts:[["categoryInfoCard","onedevHovercard"],["role","button",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&Dg(0,QYa,2,3,null,null,Cg);a&2&&Eg(b.enrichmentCategoryNames)},dependencies:[fJ,lJ,Qv],encapsulation:2,changeDetection:0});var pQ=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new LA;this.onCancelOutput=new LA;this.expansionChange=new LA;this.title=""};pQ.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};pQ.\u0275fac=function(a){return new (a||pQ)};
pQ.\u0275cmp=B({type:pQ,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&Wg(kP,7);if(a&2){var c;$g(c=ah())&&(b.issueTitleCell=c.first)}},inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level",isEditMode:"isEditMode"},outputs:{onSaveOutput:"onSaveOutput",onCancelOutput:"onCancelOutput",expansionChange:"expansionChange"},standalone:!1,features:[Uu],decls:4,vars:5,consts:[[1,"flex-kids-x","align-items-center"],["type","button","mat-icon-button","",1,
"medium","expander",3,"collapsed"],[1,"leaf"],[1,"grow-1",3,"onSave","onCancel","issue","isEditMode"],["type","button","mat-icon-button","",1,"medium","expander",3,"click"],["name","arrow-dropdown","size","small"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,RYa,2,3,"button",1)(2,SYa,1,0,"div",2),I(3,"b-issue-title-cell",3),M("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),J()());a&2&&(vg("margin-left",b.level*24,"px"),z(),F(b.expandable?
1:2),z(2),D("issue",b.issue)("isEditMode",b.isEditMode))},dependencies:[PA,Ux,CL,kP],styles:[".expander[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.expander.collapsed[_ngcontent-%COMP%]{transform:rotate(-90deg)}.leaf[_ngcontent-%COMP%]{width:32px;min-width:32px;display:inline-block}"],changeDetection:0});var qQ=function(){this.tooltip=this.displayText=this.chipColor=""};qQ.\u0275fac=function(a){return new (a||qQ)};
qQ.\u0275cmp=B({type:qQ,selectors:[["b-signal-chip"]],inputs:{chipColor:"chipColor",icon:"icon",displayText:"displayText",tooltip:"tooltip"},decls:3,vars:6,consts:[["role","button","tabindex","0",3,"matTooltip"],[1,"vertical-centered","icon-s",3,"svgIcon"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,TYa,1,1,"mat-icon",1),Q(2),J());a&2&&(xg("signal-chip type-button "+b.chipColor),D("matTooltip",b.tooltip),ng("aria-label",b.tooltip),z(),F(b.icon?1:-1),z(),R(" ",b.displayText,"\n"))},dependencies:[YA,
cB,aB],styles:[".signal-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:2px 12px;border-radius:32px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;white-space:nowrap}.signal-chip.blue[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);border:1px solid;border-color:#185abc;border-color:var(--blue-text);color:#185abc;color:var(--blue-text)}.signal-chip.green[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);border:1px solid;border-color:#137333;border-color:var(--green-text);color:#137333;color:var(--green-text)}.signal-chip.orange[_ngcontent-%COMP%]{background-color:#fff3e9;background-color:var(--orange-bg);border:1px solid;border-color:#bd4800;border-color:var(--orange-text);color:#bd4800;color:var(--orange-text)}.signal-chip.pink[_ngcontent-%COMP%]{background-color:#fff2f9;background-color:var(--pink-bg);border:1px solid;border-color:#d01884;border-color:var(--pink-text);color:#d01884;color:var(--pink-text)}.signal-chip.purple[_ngcontent-%COMP%]{background-color:#f9f3ff;background-color:var(--purple-bg);border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text)}.signal-chip.red[_ngcontent-%COMP%]{background-color:#fff2f1;background-color:var(--red-bg);border:1px solid;border-color:#d42521;border-color:var(--red-text);color:#d42521;color:var(--red-text)}"],
changeDetection:0});var rQ=function(){this.issueService=n(UE);this.issueExperimentalFieldsFridge=n(WE);this.isDataLoaded=!1;this.alerts=[]};rQ.prototype.ngOnInit=function(){};var VYa=function(a){return a.alerts.filter(function(b){return Tya(a.issue,b)})};
rQ.prototype.dismissAlert=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return a.issue.issueId?x(c,Ge(a.issueExperimentalFieldsFridge.watch(a.issue.issueId)),2):c.return();b=c.yieldResult;if(!b)return c.return();b.triage.dismissed={seconds:Date.now()/1E3,nanos:0};return x(c,Bpc(a.issueService,b),0)})};rQ.\u0275fac=function(a){return new (a||rQ)};
rQ.\u0275cmp=B({type:rQ,selectors:[["b-issue-alerts-cell"]],inputs:{issue:"issue",alerts:"alerts"},standalone:!1,decls:6,vars:3,consts:[["tooltipTemplate",""],[1,"chip-container","flex-kids-x","gap-xs","align-items-center"],[1,"truncated-alerts-chip",3,"xapInlineDialog"],[3,"chipColor","displayText","tooltip"],["type","button","mat-icon-button","","ariaLabel","Dismiss","matTooltip","Dismiss this alert",1,"xs",3,"click","mousedown"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],
[1,"tooltip-chip-container","flex-kids-x"],["svgIcon","issue-status-wont-fix","color","primary",1,"tooltip-dismiss-icon"]],template:function(a,b){a&1&&(I(0,"div",1),Kg(1),E(2,UYa,3,3),E(3,WYa,2,2,"div",2),J(),C(4,YYa,4,0,"ng-template",null,0,nh));a&2&&(z(),a=Lg(VYa(b)[0]),z(),F(a?2:-1),z(),F(VYa(b).slice(1).length?3:-1))},dependencies:[aB,PA,Ux,YA,cB,qQ,PM,OM,UM],styles:["b-signal-chip[_ngcontent-%COMP%]:not(:last-of-type){margin-right:8px}.dismiss-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%]{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}.truncated-alerts-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:2px 12px;border-radius:32px;width:fit-content;text-align:center;white-space:nowrap}.tooltip-chip-container[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}.tooltip-chip-container[_ngcontent-%COMP%]   b-signal-chip[_ngcontent-%COMP%]{margin-right:8px}.tooltip-dismiss-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary)}"],
changeDetection:0});var sQ=function(){this.issue=null;this.isDataLoaded=!1};sQ.prototype.ngOnChanges=function(){var a;this.assignee=Bua(Dk((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};sQ.\u0275fac=function(a){return new (a||sQ)};
sQ.\u0275cmp=B({type:sQ,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,ZYa,2,2,"b-person-hovercard",1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.assignee?1:-1))},dependencies:[mO,IJ],encapsulation:2,changeDetection:0});var tQ=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};tQ.prototype.ngOnChanges=function(){var a,b,c;this.teamId=((a=this.issue)==null?void 0:(b=a.aggregatedData)==null?void 0:(c=b.teamId)==null?void 0:c.toString())||"";var d,e;this.componentId=String((d=this.issue)==null?void 0:(e=d.snapshot[0])==null?void 0:e.componentId)||"";this.isDataLoaded=this.issue!==null};tQ.\u0275fac=function(a){return new (a||tQ)};
tQ.\u0275cmp=B({type:tQ,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,$Ya,1,3,"b-team-display",1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.teamId?1:-1))},dependencies:[mO,KM],encapsulation:2,changeDetection:0});var uQ=function(){this.activeSession=n(Es);this.issueExperimentalFieldsFridge=n(WE);this.analytics=n(CF)};uQ.prototype.ngOnInit=function(){};uQ.prototype.claim=function(){var a=this;XE(this.issueExperimentalFieldsFridge,this.issue.issueId,function(b){b.triage.triagerEmail=a.activeSession.getUserEmail()});this.analytics.trackEvent("triageIssue","claim")};uQ.\u0275fac=function(a){return new (a||uQ)};
uQ.\u0275cmp=B({type:uQ,selectors:[["b-issue-triager-cell"]],inputs:{issue:"issue"},standalone:!1,decls:2,vars:1,consts:[["size","medium",1,"align-with-btn",3,"email"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr",3,"click","mousedown"]],template:function(a,b){a&1&&E(0,aZa,1,1,"b-user-image",0)(1,bZa,2,0,"button",1);if(a&2){var c;F((c=b.issue.experimentalFields==null?null:b.issue.experimentalFields.triage==
null?null:b.issue.experimentalFields.triage.triagerEmail)?0:1,c)}},dependencies:[PA,Tx,AL],styles:[".align-with-hr[_ngcontent-%COMP%] {\n      margin-left: -8px;\n    }\n    .align-with-btn[_ngcontent-%COMP%] {\n      padding-left: 8px;\n    }"],changeDetection:0});var vQ=function(){this.type=this.issue=null;this.isDataLoaded=!1};vQ.prototype.ngOnChanges=function(){var a,b;this.type=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.type)||null;this.isDataLoaded=this.issue!==null};vQ.\u0275fac=function(a){return new (a||vQ)};
vQ.\u0275cmp=B({type:vQ,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,cZa,3,3,"ng-container"),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.type?1:-1))},dependencies:[mO,PB],encapsulation:2,changeDetection:0});var wQ=function(){Z.call(this);var a=this;this.activeSession=n(Es);this.prefs=n(OG);this.flags=n(DO);this.links=n(lK);this.change=new LA;this.checkedSubject=new tj(!1);this.disabledSubject=new tj(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.flags.textDisplayPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.currentTextDisplayPreferences=
b});this.flags.commentDisplayOverride$.pipe(gg(this.destroyed$)).subscribe(function(b){a.currentCommentDisplayOverride=b})};Y(wQ,Z);wQ.\u0275dir=Z.\u0275dir;wQ.prototype.ngOnInit=function(){this.checkedSubject.next(this.initialValue==="MARKDOWN");this.enableLiteralModeRevisions&&this.disabledSubject.next(this.initialValue==="LITERAL")};
wQ.prototype.ngOnChanges=function(){this.initialValue!=null&&(this.checkedSubject.next(this.initialValue==="MARKDOWN"),this.enableLiteralModeRevisions&&this.disabledSubject.next(this.initialValue==="LITERAL"))};wQ.prototype.save=function(a){var b=this.prefs.commentFormattingPreferencesSubject$.value;a!=="LITERAL_FORMATTING_MODE"&&(b=Object.assign({},b,{lastPublishMode:a}));a=Object.assign({},this.currentTextDisplayPreferences,{lastPublishMode:a});this.prefs.save({textDisplayPreferences:a,commentFormattingPreferences:b}).pipe(gg(this.destroyed$)).subscribe()};
wQ.\u0275fac=function(a){return new (a||wQ)};
wQ.\u0275cmp=B({type:wQ,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},standalone:!1,features:[kg,Uu],decls:5,vars:7,consts:[["aria-label","Use markdown for this comment","matTooltip","Use Markdown for this comment",3,"change","checked","disabled"],["mat-icon-button","","matTooltip","Markdown Help","aria-label","Markdown Help","target","_blank",1,"help","small",3,"href","disableRipple"],["svgIcon","help-outline",1,"icon-xs"]],template:function(a,b){a&
1&&(I(0,"mat-checkbox",0),S(1,"async"),S(2,"async"),M("change",function(e){if(b.enableLiteralModeRevisions)b.prefs.lastPublishOrUpdatedFormattingModeSubject$.next(e.checked?"MARKDOWN":"PLAIN"),b.change.emit(b.prefs.currentCommentFormattingModeSubject$.value);else{var f=b.currentCommentDisplayOverride;e=e.checked?"MARKDOWN_FORMATTING_MODE":f?f:"PLAIN_FORMATTING_MODE";b.save(e);b.change.emit(Xk(e))}}),Q(3," Markdown\n"),J(),E(4,dZa,2,2,"a",1));if(a&2){var c,d;D("checked",(c=T(1,3,b.checkedSubject))!=
null?c:!1)("disabled",(d=T(2,5,b.disabledSubject))!=null?d:!1);z(4);F(b.mdHelpLink?4:-1)}},dependencies:[yM,CM,aB,PA,Ux,YA,cB,Qv],encapsulation:2,changeDetection:0});var xQ=function(){};xQ.\u0275fac=function(a){return new (a||xQ)};xQ.\u0275mod=Jf({type:xQ});xQ.\u0275inj=Tc({providers:[HMc],imports:[yx,Ox,zx,bx,Yy,Ox,zx]});var mNc={provide:GMc,deps:[[new Wu,new Xu,new X9b(GMc)],[new Wu,new X9b(rMc)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:yi(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},yQ=function(){};yQ.\u0275fac=function(a){return new (a||yQ)};yQ.\u0275mod=Jf({type:yQ});yQ.\u0275inj=Tc({providers:[mNc],imports:[xQ,ZM]});var nNc=new yd("GMAT_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var zQ=function(a,b,c,d,e,f,h){h.disableGmatStyle||a.appendGmatPanelClass("gmat-mdc-snack-bar");fK.call(this,a,b,c,d,e,f)};Y(zQ,fK);zQ.\u0275fac=function(a){return new (a||zQ)(nd(vx),nd(zw),nd(Ze),nd(tw),nd(fK,12),nd(UDc),nd(nNc))};zQ.\u0275prov=Sc({token:zQ,factory:zQ.\u0275fac});var AQ=function(){};AQ.\u0275fac=function(a){return new (a||AQ)};AQ.\u0275mod=Jf({type:AQ});AQ.\u0275inj=Tc({providers:[{provide:fK,useClass:zQ},{provide:vx,useClass:YK}],imports:[gK]});var BQ=function(){};BQ.\u0275fac=function(a){return new (a||BQ)};BQ.\u0275mod=Jf({type:BQ});BQ.\u0275inj=Tc({imports:[Aw,GM,AQ,ZB,yx,XH,yQ,fO,$B,cC,XJ,uL,WJ]});var oNc={TYPE_UNSPECIFIED:"Unknown",TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},CQ=function(){};CQ.prototype.transform=function(a){return oNc[a]};CQ.\u0275fac=function(a){return new (a||CQ)};CQ.\u0275pipe=Lf({name:"toCustomFieldTypeDisplayValue",type:CQ,pure:!0,standalone:!1});var DQ=function(){};DQ.prototype.transform=function(a,b){var c;a=(c=a.split("@"))==null?void 0:c[0];b&&a.length>b&&(b=(b-3)/2,a=a.substring(0,b)+"..."+a.substring(a.length-b));return a+"@"};DQ.\u0275fac=function(a){return new (a||DQ)};DQ.\u0275pipe=Lf({name:"shortenEmail",type:DQ,pure:!0,standalone:!1});var EQ=function(){};EQ.prototype.transform=function(a){if(!a||!a.length)return"";var b=a.filter(function(c){return!!c.user}).length;b=b>0?"Users: "+b:"";a=a.filter(function(c){return!!c.placeholder}).map(function(c){var d=c.placeholder.role;return c.placeholder.count+" "+(d&&d!=="JOB_ROLE_UNSPECIFIED"?km[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};EQ.\u0275fac=function(a){return new (a||EQ)};EQ.\u0275pipe=Lf({name:"staffingSummary",type:EQ,pure:!0,standalone:!1});var FQ=function(){};FQ.\u0275fac=function(a){return new (a||FQ)};FQ.\u0275mod=Jf({type:FQ});FQ.\u0275inj=Tc({imports:[ZB]});var GQ=function(){};GQ.\u0275fac=function(a){return new (a||GQ)};GQ.\u0275mod=Jf({type:GQ});GQ.\u0275inj=Tc({imports:[Yv,yx]});var HQ=function(){};HQ.\u0275fac=function(a){return new (a||HQ)};HQ.\u0275mod=Jf({type:HQ});HQ.\u0275inj=Tc({imports:[ZB,FQ,GQ]});var IQ=function(){this.el=n(ff);this.minWidth=100;this.maxWidth=500;this.shadowInput=document.createElement("span");this.shadowInput.style.position="absolute";this.shadowInput.style.top="0px";this.shadowInput.style.left="0px";this.shadowInput.style.visibility="hidden";this.shadowInput.style.width="10px";this.shadowInput.style.whiteSpace="pre";this.shadowInput.style.overflow="hidden";this.shadowInput.style.padding="0";document.body.appendChild(this.shadowInput)};IQ.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
IQ.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};IQ.prototype.resize=function(a){for(;this.shadowInput.firstChild;)this.shadowInput.removeChild(this.shadowInput.firstChild);this.shadowInput.appendChild(document.createTextNode(a));this.el.nativeElement.style.width=Math.min(Math.max(this.shadowInput.scrollWidth,this.minWidth),this.maxWidth)+"px"};IQ.\u0275fac=function(a){return new (a||IQ)};
IQ.\u0275dir=Kf({type:IQ,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&M("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"},standalone:!1});var JQ=function(){};JQ.\u0275fac=function(a){return new (a||JQ)};JQ.\u0275mod=Jf({type:JQ});JQ.\u0275inj=Tc({});var KQ=function(){this.activeSession=n(Es);this.sessionIsExternal=this.activeSession.isExternalSession()};KQ.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!Zj(this.email)};KQ.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};KQ.\u0275fac=function(a){return new (a||KQ)};
KQ.\u0275cmp=B({type:KQ,selectors:[["b-group-email-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["role","dialog","aria-label","Group email hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","bv2-group-email-card"],[1,"bv2-group-email-card-content"],[1,"bv2-group-email-card-name"],
[1,"bv2-group-email-card-email"],["svgIcon","group"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"]],template:function(a,b){a&1&&(Ng(),E(0,iZa,16,5)(1,kZa,1,1,"ng-container"),C(2,lZa,1,0,"ng-template",null,0,nh));a&2&&F(Zj(b.email)?0:1)},dependencies:[Pv,aB,fJ,lJ],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--onedev-card-title-text: var(--text-default, rgb(32, 33, 36));--onedev-card-icon: var(--icon, rgb(95, 99, 104));--onedev-card-secondary-text: var(--text-secondary, rgb(95, 99, 104));--onedev-card-link-color: var(--primary-default, rgb(26, 115, 232))}.onedev-hovercard-content[_ngcontent-%COMP%]{background-color:var(--onedev-card-background);width:356px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]{padding:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--onedev-card-link-color)}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px auto;column-gap:20px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info.with-avatar[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{grid-row:1/span 2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{grid-row:1;grid-column:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .contact-info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{grid-row:2;grid-column:2}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:var(--onedev-card-title-text);margin:0 0 12px;max-height:48px;overflow:hidden}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .chips[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--onedev-card-icon);font-size:18px;height:18px;width:18px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:grid;grid-template-columns:18px auto;grid-gap:12px 20px;margin:0;margin-top:12px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{margin-top:2px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]:empty{margin-top:0px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .subcontent[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:var(--onedev-card-secondary-text);padding:0 8px 0 0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]{display:inline;list-style-type:none;margin:0;padding:0}.onedev-hovercard-content[_ngcontent-%COMP%]   .onedev-hovercard-body[_ngcontent-%COMP%]   .dot-separated-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline}.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-group-email-card[_ngcontent-%COMP%]{margin:-15px -20px -20px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]{padding:15px 60px 20px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;vertical-align:middle}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-content[_ngcontent-%COMP%]   .bv2-group-email-card-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:10px 15px}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:hover, .bv2-group-email-card[_ngcontent-%COMP%]   .bv2-group-email-card-links-container[_ngcontent-%COMP%]   .bv2-group-email-card-link[_ngcontent-%COMP%]:active{text-decoration:underline}/*# sourceMappingURL=group_email_card.css.map */"]});
var LQ=function(){};LQ.\u0275fac=function(a){return new (a||LQ)};LQ.\u0275mod=Jf({type:LQ});LQ.\u0275inj=Tc({imports:[ZB,WJ]});var pNc=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};pNc.\u0275fac=function(a){return new (a||pNc)};
pNc.\u0275cmp=B({type:pNc,selectors:[["b-text-with-tooltip"]],inputs:{dialogTabIndex:"dialogTabIndex",displayText:"displayText"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:5,consts:[["tooltipTemplate",""],[3,"dialogLabel","dialogTabIndex","overlaySize","xapInlineDialog"]],template:function(a,b){a&1&&(Ng(),I(0,"xap-text-trigger",1),Q(1),J(),C(2,mZa,3,0,"ng-template",null,0,nh));a&2&&(a=L(3),D("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",
a),z(),R(" ",b.displayText,"\n"))},dependencies:[PM,OM,UM,VM],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var MQ=function(){};MQ.\u0275fac=function(a){return new (a||MQ)};MQ.\u0275mod=Jf({type:MQ});MQ.\u0275inj=Tc({imports:[PM,VM]});var Mla=function(a,b,c,d,e,f){return{"bv2-user-chip-external":a,"bv2-user-chip-non-gaia":b,"bv2-user-chip-not-accessible":c,"bv2-user-chip-container":d,selected:e,readonly:f}},NQ=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.isReadonly=!0;this.isSelected=!1;this.isWidgetDisabled=!0;this.nestedChips=this.detailedUserType=this.principalType=null;this.displayText=this.value="";this.accessLevel=void 0;this.chipSelection=new LA;this.chipClear=new LA;this.chipRemove=new LA};Y(NQ,Z);
NQ.\u0275dir=Z.\u0275dir;g=NQ.prototype;g.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};g.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};g.isContainerChip=function(){return this.nestedChips!==null};g.isUserChip=function(){return this.principalType==="USER"};g.isGroupChip=function(){return this.principalType==="GROUP"};g.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};
g.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};g.isExternalPartnerAccessViolated=function(){return this.accessLevel==="EXTERNAL_PARTNER"&&this.isPublicChip()};g.isInternalAccessViolated=function(){return this.accessLevel==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};
g.getTooltip=function(){if(this.principalType!=="ALIAS")return this.displayText;switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.activeSession.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("ee`"+this.value);}};
var qNc=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};NQ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(NQ)))(b||NQ)}}();
NQ.\u0275cmp=B({type:NQ,selectors:[["b-contact-chip"]],inputs:{isReadonly:"isReadonly",isSelected:"isSelected",isWidgetDisabled:"isWidgetDisabled",principalType:"principalType",detailedUserType:"detailedUserType",nestedChips:"nestedChips",value:"value",displayText:"displayText",accessLevel:"accessLevel"},outputs:{chipSelection:"chipSelection",chipClear:"chipClear",chipRemove:"chipRemove"},standalone:!1,features:[kg],decls:8,vars:13,consts:[[1,"bv2-user-chip-item",3,"focus","blur","ngClass"],[1,"alias-icon"],
[3,"svgIcon"],[1,"user-chip-name"],[3,"email"],[3,"dialogTabIndex","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"matTooltip"],[1,"bv2-user-chip-nested-content-container","flex-kids-x","flex-wrap"],[1,"bv2-user-chip"],[3,"value","detailedUserType","principalType","accessLevel","displayText"],["role","button","tabindex","0",1,"user-chip-x","keep-focus-ring",3,"click","keydown.enter","matTooltip"],["svgIcon","close"]],template:function(a,b){a&1&&(I(0,"span",0),M("focus",
function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),I(1,"span",1),E(2,nZa,1,1,"mat-icon",2),J(),I(3,"div",3),E(4,oZa,2,2,"b-person-hovercard",4),E(5,pZa,2,2,"b-group-email-card",4),E(6,tZa,3,3,"b-text-with-tooltip",5),J(),E(7,uZa,2,3,"div",6),J());if(a&2){var c;D("ngClass",Nla(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly));z(2);F((c=qNc(b))?2:-1,c);z(2);F(b.isUserChip()?
4:-1);z();F(b.isGroupChip()?5:-1);z();F(b.isUserChip()||b.isGroupChip()?-1:6);z();F(b.isReadonly||b.isWidgetDisabled?-1:7)}},dependencies:[Mv,aB,YA,cB,IJ,KQ,pNc,NQ],styles:["span.bv2-user-chip-item[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:block;height:20px;white-space:nowrap}span.bv2-user-chip-item[_ngcontent-%COMP%]   .alias-icon[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:18px;height:20px;margin-left:3px;margin-right:-3px;opacity:.6}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-name[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{cursor:pointer;display:inline-block}span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:16px;height:20px;opacity:.6;margin-left:-3px;margin-right:2px}span.bv2-user-chip-item.selected[_ngcontent-%COMP%]   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:hover:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:block}span.bv2-user-chip-item[_ngcontent-%COMP%]:not(.selected)   .bv2-user-chip-nested-content[_ngcontent-%COMP%], span.bv2-user-chip-item[_ngcontent-%COMP%]:not(:hover)   .bv2-user-chip-nested-content[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.selected[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]:active, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%], span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:hover, span.bv2-user-chip-item.readonly.selected[_ngcontent-%COMP%]:active{border-color:#1a73e8;border-color:var(--primary)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}span.bv2-user-chip-item.readonly[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}span.bv2-user-chip-item.bv2-user-chip-external[_ngcontent-%COMP%]{background-color:#fbe983;background-color:var(--public-bg)}span.bv2-user-chip-item.bv2-user-chip-non-gaia[_ngcontent-%COMP%]{border:1px dashed;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-not-accessible[_ngcontent-%COMP%]{border:1px solid;border-color:#ea4335;border-color:var(--bad)}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%]{cursor:pointer}span.bv2-user-chip-item.bv2-user-chip-container[_ngcontent-%COMP%] > .user-chip-name[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-style:dashed;height:14px}.bv2-user-chip-nested-content-container[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{padding:4px}/*# sourceMappingURL=contact_chip.css.map */"]});var OQ=function(a,b,c,d,e,f){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.selectionChange=new hv;this.sessionOptions=(new pt).setFilter(rNc);this.inputSearchDelay=200;this.destroyed$=new ag(1);this.inputChanged$=new ag(1)};OQ.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
OQ.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);vZa(b,this.config);this.zone.runOutsideAngular(function(){var c;if((c=a.clientConfig.autocompleteFactory)==null)c=void 0;else{var d=c.create;if(!a.peopleKitService.autocompleteAnchor){var e=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=e;a.renderer.addClass(e,"peoplekit-autocomplete-anchor");var f;((f=RKa(a.inputEl.nativeElement))!=null?
f:a.document.body).append(e)}c=d.call(c,a.peopleKitService.autocompleteAnchor,a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)}a.autocomplete=c});this.autocomplete.subscribeToSelectionChanged(function(c){a.zone.run(function(){a.selectionChange.emit(c)});a.autocomplete.report(4)});this.inputChanged$.pipe(Sf(this.inputSearchDelay)).subscribe(function(){a.search()})};
OQ.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};OQ.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};OQ.\u0275fac=function(a){return new (a||OQ)(zf(zLc),zf(Ei),zf(XO),zf(ff),zf(ph),zf(jv))};
OQ.\u0275dir=Kf({type:OQ,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&M("input",function(){return b.inputChanged$.next()})("focus",function(){return b.search()})("blur",function(){return b.cancel()})},inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],inputSearchDelay:[0,"peoplekitAutocompleteInputSearchDelay","inputSearchDelay"]},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},
exportAs:["peoplekitAutocomplete"],standalone:!1});var rNc=Qq(1);var PQ=function(){};PQ.\u0275fac=function(a){return new (a||PQ)};PQ.\u0275mod=Jf({type:PQ});PQ.\u0275inj=Tc({imports:[Yv]});var QQ=function(){};QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275mod=Jf({type:QQ});QQ.\u0275inj=Tc({imports:[ZB,Ly,cC,XJ,LQ,VB,cJ,JQ,PQ,MQ]});Qla(YO,[Li,oy,vy,bJ,IQ,OQ,NQ],[]);var RQ=function(){};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275mod=Jf({type:RQ});RQ.\u0275inj=Tc({imports:[ZB,FQ,QQ,WJ,cC]});var SQ=function(){};SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275mod=Jf({type:SQ});SQ.\u0275inj=Tc({imports:[ZB,$B,cC]});var TQ=function(){};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275mod=Jf({type:TQ});TQ.\u0275inj=Tc({providers:[{provide:iLc,useValue:eP}],imports:[ZB,HQ,$B,cC,FL,dM,BQ,SQ,RQ]});var UQ=function(){};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275mod=Jf({type:UQ});UQ.\u0275inj=Tc({imports:[ZB]});var sNc={provide:pkc,deps:[vx],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},tNc=ui({passive:!0}),VQ=function(a,b,c,d,e,f,h,k,q,u,A,G){var H=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=u;this._defaultOptions=A;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new bg;this._scrollStrategy=q;this._document=G;A&&(this._showDelay=A.showDelay,this._hideDelay=A.hideDelay,A.position&&(this.position=A.position),A.positionAtOrigin&&(this.positionAtOrigin=A.positionAtOrigin),A.touchGestures&&(this.touchGestures=A.touchGestures));u.change.pipe(gg(this._destroyed)).subscribe(function(){H._overlayRef&&H._updatePosition(H._overlayRef)})};
g=VQ.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(gg(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,tNc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();Cw(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new ox(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(gg(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};g.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};g.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof ff)return this._overlayRef;this._detach()}c=Fcc(this._scrollDispatcher,this._elementRef);a=Pcc(ix(jx(Tcc(mx(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(gg(this._destroyed)).subscribe(function(e){b._updateCurrentPositionClass(e.connectionPair);
b._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&b._tooltipInstance.isVisible()&&b._ngZone.run(function(){return b.hide(0)})});this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:this._cssClassPrefix+"-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(gg(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(gg(this._destroyed)).subscribe(function(){var e;
return(e=b._tooltipInstance)==null?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(gg(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&e.keyCode===27&&!ri(e)&&(e.preventDefault(),e.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var d;((d=this._defaultOptions)==null?0:d.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+"-tooltip-panel-non-interactive");return this._overlayRef};
g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();hx(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){return a};
g._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Uf(),gg(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show(void 0,d)},500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){clearTimeout(a._touchstartTimeout);a.hide(a._defaultOptions.touchendHideDelay)};
b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,p(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,tNc)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
ea.Object.defineProperties(VQ.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){if(a!==this._position&&(this._position=a,this._overlayRef)){this._updatePosition(this._overlayRef);var b;(b=this._tooltipInstance)==null||b.show(0);this._overlayRef.updatePosition()}}},positionAtOrigin:{configurable:!0,enumerable:!0,get:function(){return this._positionAtOrigin},set:function(a){this._positionAtOrigin=zi(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=zi(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Ci(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Ci(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;Cw(this._ariaDescriber,this._elementRef.nativeElement,this._message,"tooltip");this._message=a!=null?String(a).trim():"";!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){mcc(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")})}))}},tooltipClass:{configurable:!0,enumerable:!0,
get:function(){return this._tooltipClass},set:function(a){this._tooltipClass=a;this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}});VQ.\u0275fac=function(){Fia()};
VQ.\u0275dir=Kf({type:VQ,inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},standalone:!1});
var WQ=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new bg;this._animationsDisabled=b==="NoopAnimations"};g=WQ.prototype;g.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
g.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.afterHidden=function(){return this._onHide};g.isVisible=function(){return this._isVisible};g.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};
g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};g._onShow=function(){};g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
g._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
WQ.\u0275fac=function(a){return new (a||WQ)(zf(qv),zf(Gi,8))};WQ.\u0275dir=Kf({type:WQ,standalone:!1});var uNc=["tooltip"],YQ=function(a,b,c,d,e,f,h,k,q,u,A,G){VQ.call(this,a,b,c,d,e,f,h,k,q,u,A,G);this._tooltipComponent=XQ};Y(YQ,VQ);YQ.\u0275fac=function(a){return new (a||YQ)(zf(vx),zf(ff),zf(Xw),zf(Ug),zf(ph),zf(ew),zf(Bw),zf(gw),zf(pkc),zf(Qw,8),zf(rkc,8),zf(Ei))};YQ.\u0275dir=Kf({type:YQ,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[kg]});
var XQ=function(a,b,c){WQ.call(this,a,c);this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide";this._isHandset=b.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")};Y(XQ,WQ);XQ.\u0275dir=WQ.\u0275dir;XQ.\u0275fac=function(a){return new (a||XQ)(zf(qv),zf(tw),zf(Gi,8))};
XQ.\u0275cmp=B({type:XQ,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Wg(uNc,7);if(a&2){var c;$g(c=ah())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&1&&M("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&(ng("mat-id-collision",null),vg("zoom",b.isVisible()?1:null))},standalone:!1,features:[kg],decls:4,vars:6,consts:[["tooltip",""],[1,"mat-tooltip",3,"animationend","ngClass"]],template:function(a,b){if(a&1){var c=
r();I(0,"div",1,0);S(2,"async");M("animationend",function(e){t(c);return v(b._handleAnimationEnd(e))});Q(3);J()}if(a&2){var d;wg("mat-tooltip-handset",(d=T(2,4,b._isHandset))==null?null:d.matches);D("ngClass",b.tooltipClass);z(3);ch(b.message)}},dependencies:[Mv,Qv],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;-webkit-transform:scale(0);transform:scale(0)}.mat-tooltip._mat-animation-noopable{-webkit-animation:none;animation:none;-webkit-transform:scale(1);transform:scale(1)}@media (forced-colors:active){.mat-tooltip{outline:1px solid}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@-webkit-keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-show{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0)}50%{opacity:.5;-webkit-transform:scale(.99);transform:scale(.99)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1);transform:scale(1)}}.mat-tooltip-show{-webkit-animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-show .2s cubic-bezier(0,0,.2,1) forwards}.mat-tooltip-hide{-webkit-animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards;animation:mat-tooltip-hide .1s cubic-bezier(0,0,.2,1) forwards}"],
encapsulation:2,changeDetection:0});var ZQ=function(){};ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275mod=Jf({type:ZQ});ZQ.\u0275inj=Tc({providers:[sNc],imports:[Aw,Yv,yx,zx,zx,bx]});var $Q=function(){};$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275mod=Jf({type:$Q});$Q.\u0275inj=Tc({imports:[Yv,yx,ux,VJ,ZQ,Aw,eJ]});var aR=function(){};aR.\u0275fac=function(a){return new (a||aR)};aR.\u0275mod=Jf({type:aR});aR.\u0275inj=Tc({imports:[Aw,ZB,qH,$B,cC,$Q]});var bR=function(){var a=this;this.componentFridge=n(jD);this.trackerHelpers=n(LK);this.issue$=new ag(1);this.isLoaded$=this.issue$.pipe(y(function(b){return b!==null}));this.componentId$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].componentId)!=null?c:void 0}));this.component$=this.componentId$.pipe(fg(function(b){return a.componentFridge.watch(b)}));this.componentName$=Je([this.componentId$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return c?(b=rs(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":(b==null?void 0:b.toString())||""}))};ea.Object.defineProperties(bR.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});bR.\u0275fac=function(a){return new (a||bR)};
bR.\u0275cmp=B({type:bR,selectors:[["b-issue-component-name-cell"]],inputs:{issue:"issue"},standalone:!1,decls:4,vars:6,consts:[[3,"isReady"],[1,"nowrap","overflow-ellipsis",3,"matTooltip"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),S(1,"async"),E(2,wZa,2,2,"span",1),S(3,"async"),J());if(a&2){var c;D("isReady",T(1,2,b.isLoaded$));z(2);F((c=T(3,4,b.componentName$))?2:-1,c)}},dependencies:[mO,YA,cB,Qv],encapsulation:2,changeDetection:0});var cR=function(){this.issue=null;this.isDataLoaded=!1};cR.prototype.ngOnChanges=function(){var a;this.reporter=Bua(Dk((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};cR.\u0275fac=function(a){return new (a||cR)};
cR.\u0275cmp=B({type:cR,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},standalone:!1,features:[Uu],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),E(1,xZa,2,2,"b-person-hovercard",1),J());a&2&&(D("isReady",b.isDataLoaded),z(),F(b.reporter?1:-1))},dependencies:[mO,IJ],encapsulation:2,changeDetection:0});var vNc=["theInput"],dR=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new LA;this.commit=new LA};dR.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};dR.\u0275fac=function(a){return new (a||dR)};
dR.\u0275cmp=B({type:dR,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&Wg(vNc,5);if(a&2){var c;$g(c=ah())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},standalone:!1,decls:2,vars:7,consts:[["theInput",""],["type","text",3,"keydown.enter","ngModelChange","placeholder","disabled","ngModel"]],template:function(a,b){if(a&1){var c=r();I(0,"input",1,0);M("keydown.enter",
function(d){t(c);b.readonly||b.commit.emit(d);return v()})("ngModelChange",function(d){t(c);return v(b.valueChange.emit(d))});J()}a&2&&(wg("readonly",b.readonly)("override",b.readonly),D("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Li,oy,vy],styles:["input[_ngcontent-%COMP%] {\n      margin-left: 2px;\n      width: 100%;\n    }\n    input[disabled][_ngcontent-%COMP%] {\n      background-color: unset;\n      color: unset;\n      border-color: transparent;\n      padding-left: 8px;\n    }"],
changeDetection:0});var eR=function(){};eR.\u0275fac=function(a){return new (a||eR)};eR.\u0275mod=Jf({type:eR});eR.\u0275inj=Tc({imports:[ZB,WJ,$B]});var fR=function(){};fR.\u0275fac=function(a){return new (a||fR)};fR.\u0275mod=Jf({type:fR});fR.\u0275inj=Tc({imports:[ZB]});var gR=function(){};gR.\u0275fac=function(a){return new (a||gR)};gR.\u0275mod=Jf({type:gR});gR.\u0275inj=Tc({imports:[fR,VB,ZB,bH,dM,yO,Ly,$B,cC,WJ,EL,TQ,aR,UQ,XJ,LM,eR,qQ,FL,PM]});var hR=function(){Z.apply(this,arguments);this.dialogRef=n(mK)};Y(hR,Z);hR.\u0275dir=Z.\u0275dir;hR.prototype.onSave=function(){this.dialogRef.close(this.selectedId)};hR.prototype.onCancel=function(){this.dialogRef.close()};hR.prototype.onSelect=function(a){this.selectedId=a==null?void 0:a.componentId};hR.\u0275fac=function(){var a;return function(b){return(a||(a=fe(hR)))(b||hR)}}();
hR.\u0275cmp=B({type:hR,selectors:[["component_picker_dialog"]],standalone:!1,features:[kg],decls:9,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedComponentChange"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary","data-test","save",1,"medium",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"header",0),Q(1," Choose a Component "),J(),I(2,"div",1)(3,"b-team-component-picker",
2),M("selectedComponentChange",function(c){return b.onSelect(c)}),J()(),I(4,"div",3)(5,"button",4),M("click",function(){return b.onCancel()}),Q(6," Cancel "),J(),I(7,"button",5),M("click",function(){return b.onSave()}),Q(8," Save "),J()());a&2&&(z(7),D("disabled",b.selectedId==null))},dependencies:[PA,Tx,wK,yK,xK,xN],styles:["[_nghost-%COMP%]     b-team-component-picker .pseudo-input{margin:1px}[_nghost-%COMP%]     b-team-component-picker .pseudo-input:focus-within{margin:0}\n/*# sourceMappingURL=component_picker_dialog.css.map */"]});
var iR=function(){this.dialog=n(tK)};iR.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){nK(b.dialog.open(hR,c)).subscribe(function(e){a==null||a(e);d(e)})})};iR.\u0275fac=function(a){return new (a||iR)};iR.\u0275prov=Sc({token:iR,factory:iR.\u0275fac,providedIn:"root"});var jR=function(){};jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275mod=Jf({type:jR});jR.\u0275inj=Tc({imports:[ZB,Ly,$B,RL,cC,aC,$K,yx,ux,eR,Aw,VB,HQ]});var kR=function(){};kR.\u0275fac=function(a){return new (a||kR)};kR.\u0275mod=Jf({type:kR});kR.\u0275inj=Tc({imports:[ZB]});var lR=function(){};lR.\u0275fac=function(a){return new (a||lR)};lR.\u0275mod=Jf({type:lR});lR.\u0275inj=Tc({providers:[Fx,{provide:tMc,useValue:{separatorKeyCodes:[13]}}],imports:[zx,Mx,zx]});var mR=function(){};mR.\u0275fac=function(a){return new (a||mR)};mR.\u0275mod=Jf({type:mR});mR.\u0275inj=Tc({imports:[lR]});var nR=function(){};nR.\u0275fac=function(a){return new (a||nR)};nR.\u0275mod=Jf({type:nR});nR.\u0275inj=Tc({imports:[zx,ZP,zx]});var oR=function(){};oR.\u0275fac=function(a){return new (a||oR)};oR.\u0275mod=Jf({type:oR});oR.\u0275inj=Tc({imports:[nR]});var pR=function(){};pR.\u0275fac=function(a){return new (a||pR)};pR.\u0275mod=Jf({type:pR});pR.\u0275inj=Tc({imports:[ZB,mR,fO,gR,$B,$K,LH,gO,yQ,oR,cC,QN,pP,kR,jR]});var qR=function(){this.issuesApi=n(BE)};qR.prototype.get=function(a){return this.issuesApi.getRelatedIssues({resourceType:a.resourceType===void 0?null:a.resourceType,resourceId:a.resourceId===void 0?null:a.resourceId,q:a.query,trackerId:a.trackerId===void 0?null:a.trackerId,s:a.sort===void 0?null:a.sort,count:a.count===void 0?null:a.count,p:a.page===void 0?null:a.page})};qR.\u0275fac=function(a){return new (a||qR)};qR.\u0275prov=Sc({token:qR,factory:qR.\u0275fac,providedIn:"root"});var rR=function(){Z.apply(this,arguments);var a=this;this.cdr=n(NA,{self:!0});this.paths=n(EN);this.issueFullFridge=n(EF);this.relatedIssues=n(qR);this.errorHandler=n(DK);this.domSafe=n(rL);this.activeSession=n(Es);this.STATUS_ICON=kmc;this.entrySelect=new LA;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new LA;this.getTextToPutInInputOnSelect=function(){return a.query}};
Y(rR,Z);rR.\u0275dir=Z.\u0275dir;rR.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(Sf(250),gg(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};rR.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(p(this.defaultChoices),p(this.asyncChoices)))};rR.prototype.selectIssue=function(a){wNc(this,[a])};
var yNc=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(xNc(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return Ofb(b)?[b]:[]},xNc=function(a){return!a.some(function(b){return!Ofb(b)})};rR.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
rR.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")zNc(this);else{var b=yNc(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",ANc(this,b,a)):(this.lastSearchType="query",BNc(this,a))}};
var zNc=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;wNc(a,[])},wNc=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||Ikb(c)},ANc=function(a,b,c){var d;((d=a.currentResource)==null?void 0:d.type)==="issue"&&b.length===1&&b[0]===a.currentResource.id?(a.searchingForSelf=!0,zNc(a)):(a.choices=CNc(a,b),a.hasLoadedResults=!1,a.issueFullFridge.watchSet(b).pipe(Uf(),gg(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(h,k){var q=Ua(k.snapshot);return h.set(k.issueId,{resourceId:k.issueId,displayText:q.title,status:q.status,relations:[]})},new Map);Lba(b);e=b.map(function(h){return f.get(h)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(p(a.choices),p(a.asyncChoices));wNc(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},BNc=function(a,b){a.choices=DNc(a,b);a.hasLoadedResults=
!1;if(Ca(b))a.hasLoadedResults=!0;else{var c=ENc(b,a.defaultChoices),d,e,f;a.relatedIssues.get({query:c,trackerId:(d=a.activeSession.getTracker())==null?void 0:d.trackerId,resourceType:(e=a.currentResource)==null?void 0:e.type,resourceId:Qk((f=a.currentResource)==null?void 0:f.id),nonParallelRequest:!0}).then(function(h){a.currentQuery===b&&(h=h.issueDigests.map(function(k){return{resourceId:k.issueId,displayText:k.title,status:k.status,relations:[]}}),a.choices=[].concat(p(a.choices),p(h)),a.cdr.detectChanges())},
function(h){a.errorHandler.errorHandler(null,h)}).finally(function(){a.hasLoadedResults=!0})}},CNc=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},DNc=function(a,b){return Ca(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};rR.prototype.getIssueLink=function(a){return Hq(a.resourceId)};
var DZa=function(a){return a.relations.map(function(b){return FNc.get(b)}).filter(function(b){return!!b}).join("/")},ENc=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};rR.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};ea.Object.defineProperties(rR.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
rR.\u0275fac=function(){var a;return function(b){return(a||(a=fe(rR)))(b||rR)}}();
rR.\u0275cmp=B({type:rR,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&Wg(AM,5);if(a&2){var c;$g(c=ah())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},standalone:!1,features:[hh([qR,NA]),kg,Uu],decls:10,vars:7,consts:[["auto","matAutocomplete"],["issueHovercard","onedevHovercard"],["cardBody",""],[1,"bv2-issue-picker"],[1,"bv2-resource-picker",
"bv2-picker"],["type","text","placeholder","Type issue ID or search query...","autocomplete","off","spellcheck","false","aria-autocomplete","list","role","combobox","autofocus","autofocus","cdkFocusInitial","",1,"bv2-resource-picker-input",3,"ngModelChange","keydown.enter","keydown.alt.arrowright","ngModel","matAutocomplete"],[1,"issue-picker","base-resource-picker",3,"optionActivated","optionSelected","displayWith"],["disabled",""],["disabled","",1,"bv2-resource-picker-message"],[1,"bv2-resource-picker-item",
"bv2-issue-picker-item",3,"value"],[1,"bv2-issue-picker-message"],[1,"spinner-container"],[3,"large"],["role","region","tabindex","0"],[1,"icon-s","margin-none",3,"svgIcon"],[1,"bv2-issue-picker-issue-id",3,"title"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["mat-icon-button","","aria-label","Go to issue page.","data-stable","issue-pop-out","target","_blank",1,"small","bv2-issue-picker-pop-out",3,"click","onedevHovercardTrigger","href"],["svgIcon","pop-out",1,"icon-s"],[1,
"bv2-issue-picker-relations"],[1,"bv2-issue-picker-description",3,"title","innerHTML"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){if(a&1){var c=r();I(0,"div",3);E(1,yZa,3,0,"div");I(2,"div",4)(3,"input",5);M("ngModelChange",function(d){t(c);return v(b.search(d))})("keydown.enter",function(d){t(c);return v(b.onEnter(d))})("keydown.alt.arrowright",function(){t(c);b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice));return v()});J();I(4,"mat-autocomplete",6,0);M("optionActivated",
function(d){t(c);b.activeChoice=d.option==null?null:d.option.value;return v()})("optionSelected",function(d){t(c);return v(b.selectIssue(d.option.value))});E(6,zZa,3,1,"mat-option",7);E(7,AZa,2,0,"mat-option",8);Dg(8,EZa,14,13,"mat-option",9,Cg);J()()()}a&2&&(a=L(5),z(),F(b.searchingForSelf?1:-1),z(2),D("ngModel",b.query)("matAutocomplete",a),ng("aria-label",b.selectedIssues.length>0?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue"),z(),D("displayWith",b.getTextToPutInInputOnSelect),
z(2),F(b.query===""||b.hasLoadedResults?-1:6),z(),F(b.query!==""&&b.hasLoadedResults&&b.choices.length===0?7:-1),z(),Eg(b.choices))},dependencies:[aB,Li,oy,vy,fJ,gJ,lJ,hJ,eP,xM,zM,Lx,AM,PA,Ux,ON,RB],styles:['b-simple-issue-picker input{width:450px}b-simple-issue-picker .bv2-issue-picker-message{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}.mat-mdc-autocomplete-panel.issue-picker{max-height:400px;width:450px}.mat-mdc-autocomplete-panel.issue-picker .mat-mdc-option{font-size:inherit;line-height:inherit;white-space:inherit;height:auto;min-height:40px;padding:10px}.mat-mdc-autocomplete-panel.issue-picker .mat-mdc-option .mdc-list-item__primary-text{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item{cursor:pointer;padding:10px}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover,.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-message{color:#5f6368;color:var(--muted);padding:5px;text-align:center}.mat-mdc-autocomplete-panel.issue-picker .mat-icon.margin-none{vertical-align:bottom}.mat-mdc-autocomplete-panel.issue-picker .margin-none{margin:0}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-relations{color:#5f6368;color:var(--muted);float:right;font-style:italic}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-issue-id{margin-left:5px;opacity:.8}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-description{margin-left:20px}.mat-mdc-autocomplete-panel.issue-picker .bv2-issue-picker-pop-out{float:right;visibility:hidden}.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item:hover .bv2-issue-picker-pop-out,.mat-mdc-autocomplete-panel.issue-picker .bv2-resource-picker-item.selected .bv2-issue-picker-pop-out{visibility:visible}.mat-mdc-autocomplete-panel.issue-picker .spinner-container{height:40px}[mat-dialog-content] .bv2-rel-issue-bubble-issue-picker{padding-bottom:5px}[mat-dialog-content] .bv2-rel-issue-id-link{margin-left:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[mat-dialog-content] .bv2-rel-issue-title-link span{display:inline-block}[mat-dialog-content] .bv2-rel-issue-title-link span.bv2-rel-issue-title-link-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:350px;vertical-align:middle;text-decoration:underline}[mat-dialog-content] .bv2-rel-issue-error{color:#c5221f;color:var(--bad-text)}[mat-dialog-content] .bv2-rel-issue-narrow-to-component{color:#1a73e8;color:var(--text-primary);float:left;height:32px;margin-top:7px;width:28px}[mat-dialog-content] .bv2-rel-issue-issue-picker{float:left;margin-top:10px;vertical-align:top}[mat-dialog-content] .bv2-rel-issue-text{float:left;width:370px}[mat-dialog-content] .bv2-rel-issue-apply-button{float:right}[mat-dialog-content] .bv2-rel-issue-preview-link{float:left;margin:0px}[mat-dialog-content] .bv2-rel-issue-row,[mat-dialog-content] .bv2-rel-issue-issue-picker-full-width{width:475px}[mat-dialog-content] .bv2-rel-issue-search{margin-top:10px;clear:both}[mat-dialog-content] .bv2-narrow-search-comp-btn{background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/filter.png");background-position:center center;background-size:20px 16px;cursor:pointer;display:inline-block;height:25px;opacity:.8;vertical-align:middle;width:25px}[mat-dialog-content] .bv2-narrow-search-comp-btn[aria-checked=true]{opacity:.2}\n'],
encapsulation:2});var FNc=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var sR=function(){this.dialogRef=n(mK);this.params=n(aL);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=n(sK);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},IZa=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(ak(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};g=sR.prototype;g.onQueryChange=function(a){this.isQueryRestricted=this.queryRestriction!==""&&a.includes(this.queryRestriction)};g.onEnter=function(){if(this.selectedIssues.length!==0)this.onPressConfirm()};g.onEscape=function(){this.dialogRef.close()};g.onPressConfirm=function(){var a,b={selectedIssueIds:this.selectedIssues.map(function(c){return c.resourceId}),lastSearchType:(a=this.issuePicker)==null?void 0:a.lastSearchType};this.dialogRef.close(b)};
g.onPressCancel=function(){this.dialogRef.close()};sR.\u0275fac=function(a){return new (a||sR)};
sR.\u0275cmp=B({type:sR,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&Wg(rR,5);if(a&2){var c;$g(c=ah())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&M("keydown.escape",function(){return b.onEscape()})},standalone:!1,decls:15,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],[1,"bv2-rel-issue-preview-link"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],[1,"bv2-rel-issue-narrow-to-component"],[1,"bv2-rel-issue-issue-picker",
3,"keydown.enter","entrySelect","queryChange","defaultChoices","currentResource","allowMultipleIds"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["target","_blank",1,"bv2-rel-issue-id-link",3,"href"],["target","_blank",1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-title-link-txt"],["svgIcon","pop-out",1,"icon-xs"],["role","checkbox",
"tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn","keep-focus-ring",3,"click","keyup.space","matTooltip"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1),J(),I(2,"div",1)(3,"div",2),E(4,GZa,3,0,"div",3),E(5,HZa,6,3,"div",3),J(),I(6,"div",4)(7,"div",5),E(8,JZa,2,2,"div",6),I(9,"b-simple-issue-picker",7),M("keydown.enter",function(){return b.onEnter()})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),J()()()(),I(10,
"div",8)(11,"button",9),M("click",function(){return b.onPressCancel()}),Q(12," Cancel "),J(),I(13,"button",10),M("click",function(){return b.onPressConfirm()}),Q(14," Confirm "),J()());a&2&&(z(),R(" ",b.data.title,"\n"),z(3),F(b.selectedIssues.length>1?4:-1),z(),F(b.selectedIssues.length===1?5:-1),z(3),F(b.queryRestriction?8:-1),z(),wg("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),D("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),z(4),D("disabled",!b.selectedIssues.length))},dependencies:[aB,PA,Tx,wK,yK,xK,YA,cB,rR],encapsulation:2});var tR=function(){};tR.\u0275fac=function(a){return new (a||tR)};tR.\u0275mod=Jf({type:tR});tR.\u0275inj=Tc({imports:[VB,ZB,Ly,WJ,TQ,EM,$B,$K,cC,QN]});var GNc=new yd("XapHatsSurveyApiKey"),HNc=new yd("XapHatsSurveyLocale"),INc=new yd("XapHatsSurveyWindow"),JNc=new yd("XapHatsSurveyListnrProductId");var KNc=new Map([[0,1],[1,2]]),LNc={anchor:1,verticalMargin:0,horizontalMargin:0},uR=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:c!=null?c:"en-US",window:d};h=Hgc(Mgc,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,asxUiUri:h.asxUiUri||h.asxUiUri,environment:h.environment||h.environment,flow:h.flow||h.flow,frdProductData:h.frdProductData||h.frdProductData,frdProductDataSerializedJspb:h.frdProductDataSerializedJspb||h.frdProductDataSerializedJspb,helpCenterPath:h.helpCenterPath||
h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,window:h.window||h.window});return new Lgc(h)};this.helpService=e?e.runOutsideAngular(f):f()},MNc=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;var e=d.anonymous?void 0:d.authUser||0;return(new pe(function(f){a.helpService.requestSurvey({triggerId:b,
enableTestingMode:d.enableTestingMode,enableFeedback1pEndpoint:d.enableFeedback1pEndpoint,nonProd:d.nonProd,callback:function(h){h.surveyData!=null&&f.next(h.surveyData);f.complete()},authuser:e})})).pipe(fg(function(f){return new pe(function(h){var k;a.helpService.presentSurvey({surveyData:f,colorScheme:d.theme?KNc.get(d.theme):1,authuser:e,customZIndex:(k=d.zIndex)!=null?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,listener:{surveyClosed:function(){h.complete()},surveyPositioning:function(){return Object.assign({},
LNc,d.placement)}}});h.next(f.surveyMetadata)})}))};uR.\u0275fac=function(a){return new (a||uR)(nd(GNc),nd(JNc),nd(HNc,8),nd(INc,8),nd(ph,8))};uR.\u0275prov=Sc({token:uR,factory:uR.\u0275fac,providedIn:"root"});var vR=function(){this.dialog=n(tK);this.analytics=n(CF);this.hatsService=n(uR);this.activeSession=n(Es)};
vR.prototype.open=function(a,b){var c=this,d=NNc(a),e=d.dialog,f=d.config;return new Promise(function(h){nK(c.dialog.open(e,f)).subscribe(function(k){var q,u=(q=k==null?void 0:k.selectedIssueIds)!=null?q:[],A;k=(A=k==null?void 0:k.lastSearchType)!=null?A:"";A=[a.originIsBulk?"bulk":void 0,u.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",A,k);b==null||b(u);h(u);c.activeSession.isInternalSession()&&k==="id"&&MNc(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(Uf()).subscribe()})})};
var NNc=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:oQ,config:b}):{dialog:sR,config:b}};vR.\u0275fac=function(a){return new (a||vR)};vR.\u0275prov=Sc({token:vR,factory:vR.\u0275fac,providedIn:"root"});var wR=function(){};wR.\u0275fac=function(a){return new (a||wR)};wR.\u0275mod=Jf({type:wR});wR.\u0275inj=Tc({imports:[tR,pR]});var xR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xR,V);xR.prototype.getContentJudgement=function(){return X(this,Em,1)};xR.prototype.setContentJudgement=function(a){return W(this,Em,1,a)};var yR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yR,V);yR.prototype.getContentJudgement=function(){return X(this,Em,1)};yR.prototype.setContentJudgement=function(a){return W(this,Em,1,a)};var zR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zR.messageId)};Y(zR,V);zR.prototype.getIt=function(){return X(this,xR,4)};zR.prototype.setIt=function(a){return W(this,xR,4,a)};zR.messageId="b.CreateContentJudgementRequest";var ONc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ONc,V);var AR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,AR.messageId)};Y(AR,V);AR.prototype.getIt=function(){return X(this,ONc,2)};AR.prototype.setIt=function(a){return W(this,ONc,2,a)};AR.messageId="b.ListContentJudgementsResponse";var BR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,BR.messageId)};Y(BR,V);BR.prototype.getIt=function(){return X(this,yR,2)};BR.prototype.setIt=function(a){return W(this,yR,2,a)};BR.messageId="b.UpdateContentJudgementRequest";var CR=function(){this.executor=n(yC)};CR.prototype.create=function(a,b,c){var d=new zR,e=d.setIt,f=new xR,h=f.setContentJudgement;a=Nk(fza({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}),5,2);a=Nk(a,6,2);d=e.call(d,h.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:uq}).pipe(y(kBa))};
CR.prototype.update=function(a){var b=Nk(fza(a),5,2);b=tq(b,9);b=(new BR).setIt((new yR).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:uq}).pipe(y(kBa))};CR.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:AR}).pipe(y(function(b){b=b.getIt();return Wk(b,Em,1,Fk()).map(gza)}))};CR.\u0275fac=function(a){return new (a||CR)};
CR.\u0275prov=Sc({token:CR,factory:CR.\u0275fac,providedIn:"root"});var ER=function(){var a=this;this.dialogRef=n(mK);this.documentationLinks=n(lK);this.contentJudgements=n(CR);this.activeSession=n(Es);this.data=n(sK);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=glc;this.loaded=!1;this.minimumSeverity="RESTRICTION_SEVERITY_UNSPECIFIED";this.severity=this.data.severity;this.data.resourcePath?this.contentJudgements.list(this.data.resourcePath).subscribe(function(b){var c="RESTRICTION_SEVERITY_UNSPECIFIED";b=l(b);for(var d=b.next();!d.done;d=
b.next())d=d.value,Dk(d.judge)===a.activeSession.getUserEmail()?PNc(a,d):DR(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;DR(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(PNc(this,this.data.contentJudgement),this.loaded=!0)};ER.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var DR=function(a,b){return KZa(a)>KZa(b)},PNc=function(a,b){if(a.judgement=b)a.severity=b.severity},QNc=function(a){var b=a.data.resourceType||"comment and/or attachment(s)";a.data.resourcePath&&(a.data.resourcePath.includes("comment")?b="comment":a.data.resourcePath.includes("attachment")&&(b="attachment"));if(!a.data.hasAclToCreate)return"You do not have permission to create new judgements for this\n          "+b+". This is the current restriction level of the\n          "+b+".";b="Each restriction level allows access to particular users and has a designated content retention period. Customize levels on the component settings page.";
DR(a.minimumSeverity,"NONE_DETECTED")&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};ER.prototype.getContentJudgement=function(){var a;this.judgement?a=Object.assign({},this.judgement):a={contentJudgementId:void 0,resourcePath:void 0,severity:"RESTRICTION_SEVERITY_UNSPECIFIED",judgementReason:""};a.severity=this.severity;a.judgementReason="None specified";return a};
ER.prototype.onSaveClick=function(){var a=this;if(this.data.resourcePath){if(this.judgement==null){this.contentJudgements.create(this.data.resourcePath,this.severity,"None specified").subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});return}if(this.judgement.severity!==this.severity||this.judgement.judgementReason!=="None specified"){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};ER.prototype.onNoClick=function(){this.dialogRef.close(null)};ER.\u0275fac=function(a){return new (a||ER)};
ER.\u0275cmp=B({type:ER,selectors:[["b-content-judgement-dialog"]],standalone:!1,decls:28,vars:11,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-focus-ring",3,"rel"],["aria-labelledby","restriction-radio-group-label",3,"ngModelChange","ngModel"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio","restriction-pii",
3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["type","button","mat-button","",1,"medium","content-judgement-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","content-judgement-dialog-confirm",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"header",0)(1,"h1"),K(2,"mat-icon",1),I(3,"div"),Q(4," Set restriction "),J()()(),I(5,"section",2)(6,"label",3),Q(7),I(8,"a",4),Q(9," Learn More "),
J()(),I(10,"mat-radio-group",5),gh("ngModelChange",function(c){fh(b.severity,c)||(b.severity=c);return c}),I(11,"mat-radio-button",6),Q(12," No restriction "),I(13,"div"),Q(14,' Users with "View issues" can access. '),J()(),I(15,"mat-radio-button",7),Q(16," Restricted "),I(17,"div"),Q(18,' Users with "View restricted content" can access. '),J()(),I(19,"mat-radio-button",8),Q(20," Restricted+ "),I(21,"div"),Q(22,' Users with "View restricted+ content" can access. '),J()()()(),I(23,"mat-dialog-actions")(24,
"button",9),M("click",function(){return b.onNoClick()}),Q(25," Cancel "),J(),I(26,"button",10),M("click",function(){return b.onSaveClick()}),Q(27," Set "),J()());a&2&&(z(7),R(" ",QNc(b)," "),z(),D("rel",b.EXTERNAL_LINK_REL),ng("href",b.documentationLinks.getRestrictedAccessHelpLink(),uf),z(2),eh("ngModel",b.severity),z(),D("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||DR(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),z(4),D("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||DR(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),z(4),D("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||DR(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),z(7),D("disabled",!b.canInteract()))},dependencies:[aB,PA,Tx,wK,yK,xK,zN,AN,oy,vy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.restriction-radio[_ngcontent-%COMP%]{display:block;margin:10px;padding:4px;line-height:1.5em}.restriction-radio[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}/*# sourceMappingURL=content_judgement_dialog.css.map */"]});var FR=function(){this.dialogRef=n(mK);this.documentationLinks=n(lK);this.data=n(sK);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};FR.prototype.canInteract=function(){return!RNc(this)||this.acknowledgeToMatchIssueRetention};var RNc=function(a){return a.piiRetention==="INDEFINITE"};FR.prototype.onSaveClick=function(){this.dialogRef.close(1)};FR.prototype.onNoClick=function(){this.dialogRef.close(0)};
FR.\u0275fac=function(a){return new (a||FR)};
FR.\u0275cmp=B({type:FR,selectors:[["b-update-retention-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about component retention",3,"rel"],[3,"ngModel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","update-retention-dialog-cancel",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",1,"dialog-primary-action","medium",
"update-retention-dialog-confirm",3,"click","disabled"],[3,"ngModelChange","ngModel"]],template:function(a,b){a&1&&(I(0,"h1",0),K(1,"mat-icon",1),I(2,"div"),E(3,LZa,2,1,"span")(4,MZa,2,0,"span"),J()(),I(5,"div",2),E(6,NZa,8,1,"span")(7,OZa,3,2,"span"),I(8,"span")(9,"a",3),Q(10," Learn More "),J()(),I(11,"div")(12,"span"),E(13,PZa,2,1,"mat-checkbox",4),J()()(),I(14,"div",5)(15,"button",6),M("click",function(){return b.onNoClick()}),Q(16," Cancel "),J(),I(17,"button",7),M("click",function(){return b.onSaveClick()}),
Q(18," Save "),J()());a&2&&(z(3),F(RNc(b)?3:4),z(3),F(RNc(b)?6:7),z(3),D("rel",b.EXTERNAL_LINK_REL),ng("href",zs(),uf),z(4),F(RNc(b)?13:-1),z(4),D("disabled",!b.canInteract()))},dependencies:[aB,PA,Tx,wK,yK,xK,yM,CM,oy,vy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var GR=function(){this.activeSession=n(Es);this.errorHandler=n(DK);this.eventsForIssueFridge=n(CE);this.issueFullFridge=n(EF);this.issueCommentsService=n(VK);this.issueInteractionsTracking=n(hL);this.butterBar=n(iK);this.editIssueService=n(oL);this.formattedCommentsForIssueFridge=n(GE);this.userPreferencesManager=n(OG);this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions")},SNc=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;
var h=b.recaptchaToken;var k,q;w(function(u){switch(u.nextAddress){case 1:k=a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),u.return();Nq(k,"commentEdit");Mq(a.butterBar,"Saving comment edit...",0);Oq(a.issueInteractionsTracking,c,{label:d===1?"description":"comment"});te(u,2,3);return x(u,a.issueCommentsService.update(c,d,e,f,h),5);case 5:Mq(a.butterBar,"Comment edit successful.",4E3),a.eventsForIssueFridge.manualUpdate(c,function(A){A.events=
$xa(A.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),a.issueFullFridge.poke(c),a.formattedCommentsForIssueFridge.invalidate(c+"-"+d),a.eventsForIssueFridge.poke(c),a.enableLiteralModeRevisions&&ztc(a.userPreferencesManager,f).subscribe();case 3:ue(u);nL(k,"commentEdit");we(u,0);break;case 2:q=xe(u),FK(a.errorHandler,q),u.jumpTo(3)}})};GR.\u0275fac=function(a){return new (a||GR)};GR.\u0275prov=Sc({token:GR,factory:GR.\u0275fac,providedIn:"root"});var TNc=function(a,b,c){this.objectId=a;this.version=b;this.payload=c},UNc=function(){},VNc=function(a){this.timestampMicros=a};var HR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HR,V);HR.prototype.getCode=function(){return Ik(this,1)};HR.prototype.setCode=function(a){return $k(this,1,a)};HR.prototype.getMessage=function(){return Oh(this,2)};HR.prototype.setMessage=function(a){return Lk(this,2,a)};var WNc=Rh(HR);QZa.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var XNc=function(a){var b=0;a.inRetryMode_&&(b=a.random_()*.2,b=Math.ceil((1-b)*a.currentMaxDelayMs_),a.currentMaxDelayMs_<a.maxDelayMs_&&(a.currentMaxDelayMs_*=2,a.currentMaxDelayMs_>a.maxDelayMs_&&(a.currentMaxDelayMs_=a.maxDelayMs_)));a.inRetryMode_=!0;return b};var IR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(IR,V);var ZNc=function(){var a=new IR;return Nm(a,1,YNc,Kb(!0))},$Nc=function(){var a=new IR;return Nm(a,2,YNc,Kb(!0))},YNc=[1,2,3,15];var d_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(d_a,V);var c_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(c_a,V);var br=[1,2,3,4,5,6,7,8,9,10,11,12,13];var ar=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ar,V);ar.prototype.getPartsList=function(){return Wk(this,c_a,1,Fk())};ar.prototype.addParts=function(a){return Eu(this,1,c_a,a)};var $q=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($q,V);$q.prototype.getName=function(){return ap(this,1,aOc)};$q.prototype.setName=function(a){return Am(this,1,aOc,a)};$q.prototype.hasName=function(){return ap(this,1,aOc)!=null};$q.prototype.getNameOrUndefined=function(){return fr(this,Km(this,aOc,1))};var aOc=[1,2];var bOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bOc,V);g=bOc.prototype;g.setProject=function(a){W(this,$q,1,a)};g.getOwner=function(){return X(this,IR,2)};g.setOwner=function(a){return W(this,IR,2,a)};g.getPath=function(){return X(this,ar,3)};g.setPath=function(a){return W(this,ar,3,a)};g.hasPath=function(){return nk(this,ar,3)};var cOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cOc,V);g=cOc.prototype;g.setProject=function(a){W(this,$q,1,a)};g.getOwner=function(){return X(this,IR,2)};g.setOwner=function(a){return W(this,IR,2,a)};g.getPrefix=function(){return X(this,ar,3)};g.setPrefix=function(a){W(this,ar,3,a)};var JR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JR,V);JR.prototype.getVersion=function(){return Hu(this,1)};JR.prototype.setVersion=function(a){return Pl(this,1,a)};JR.prototype.getVersionOrUndefined=function(){return Lu(this,1)};var dOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dOc,V);g=dOc.prototype;g.getHeader=function(){return X(this,JR,4)};g.getStartTimeMicros_asString=function(){return sl(this,1)};g.setStartTimeMicros=function(a){return Vl(this,1,a)};g.getPrefix=function(){return Qm(this,cOc,6,eOc)};g.setPrefix=function(a){Vm(this,6,eOc,a)};var eOc=[2,3,6];var fOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fOc,V);var KR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KR,V);KR.prototype.setAffinitization=function(a){Sl(this,2,a)};KR.prototype.getAffinitizationOrUndefined=function(){return du(this,2)};KR.prototype.getStartTimeMicros_asString=function(){return Gl(this,4)};KR.prototype.setStartTimeMicros=function(a){return Hl(this,4,a)};var gOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gOc,V);var hOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hOc,V);g=hOc.prototype;g.setStreamId=function(a){return Vl(this,1,a)};g.getStreamIdOrUndefined_asString=function(){return w9b(this,1)};g.getOpen=function(){return Qm(this,dOc,2,iOc)};g.setOpen=function(a){return Vm(this,2,iOc,a)};g.getClose=function(){return Qm(this,gOc,3,iOc)};g.setClose=function(a){Vm(this,3,iOc,a)};g.hasClose=function(){return an(this,gOc,3,iOc)};g.setAffinitization=function(a){Sl(this,4,a)};
g.getAffinitizationOrUndefined=function(){return du(this,4)};var iOc=[2,3];var jOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jOc,V);jOc.prototype.setRequestsList=function(a){return sn(this,1,a)};jOc.prototype.addAndReturnRequests=function(){return Qc(this,1,hOc)};var kOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kOc,V);kOc.prototype.getChannelId=function(){return Oh(this,1)};kOc.prototype.setChannelId=function(a){return Rl(this,1,a)};var lOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lOc,V);var LR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LR,V);LR.prototype.getCode=function(){return pl(this,1)};LR.prototype.setCode=function(a){return Sl(this,1,a)};LR.prototype.getCodeOrUndefined=function(){return du(this,1)};var mOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mOc,V);var MR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MR,V);MR.prototype.getVersion=function(){return cc(rl(this,3))};MR.prototype.setVersion=function(a){return Vl(this,3,a)};MR.prototype.getVersionOrUndefined=function(){return Mu(this,3)};MR.prototype.getVersionOrUndefined_asString=function(){return w9b(this,3)};var nOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nOc,V);var oOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oOc,V);var NR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NR,V);NR.prototype.getStart=function(){return Qm(this,oOc,1,OR)};NR.prototype.setStart=function(a){return Vm(this,1,OR,a)};NR.prototype.getChanges=function(){return Qm(this,nOc,2,OR)};NR.prototype.hasChanges=function(){return an(this,nOc,2,OR)};var OR=[1,2,3,5];var pOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pOc,V);pOc.prototype.getChannelId=function(){return Oh(this,1)};pOc.prototype.setChannelId=function(a){return Rl(this,1,a)};var PR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PR,V);PR.prototype.getStatus=function(){return X(this,sz,1)};PR.prototype.setStatus=function(a){return W(this,sz,1,a)};PR.prototype.hasStatus=function(){return nk(this,sz,1)};var qOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qOc,V);g=qOc.prototype;g.setStreamId=function(a){return Vl(this,1,a)};g.getStreamIdOrUndefined_asString=function(){return w9b(this,1)};g.getClose=function(){return Qm(this,PR,3,rOc)};g.setClose=function(a){Vm(this,3,rOc,a)};g.hasClose=function(){return an(this,PR,3,rOc)};var rOc=[2,3,4];var QR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QR,V);QR.prototype.getResponsesList=function(){return Wk(this,qOc,1,Fk())};QR.prototype.getStatus=function(){return X(this,LR,2)};QR.prototype.setStatus=function(a){return W(this,LR,2,a)};QR.prototype.hasStatus=function(){return nk(this,LR,2)};var sOc=function(){oF.call(this,"l")};zu(sOc,oF);var tOc=function(){oF.call(this,"k")};zu(tOc,oF);var uOc=function(a,b,c){this.path=a;this.authMethod=b;this.useFetchApi=c},vOc=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new Is;this.channel=this.createWebChannel(e)};
vOc.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({},{gsessionid:a},this.config.authMethod.getQueryParameters()),useFetchStreams:this.config.useFetchApi,messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(this.config.path,a);this.channelHandler.listen(a,"i",function(){b.channelStatusHandler.onOpen()});
this.channelHandler.listen(a,"j",function(){b.channelStatusHandler.onClose((new wOc(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"l",function(c){(c=c.data)&&c.length===1&&b.channelMessageHandler(new QR(c[0]))});this.channelHandler.listen(a,"k",function(c){b.channelStatusHandler.onError(c,(new wOc(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};
vOc.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};vOc.prototype.close=function(){this.state!==2&&this.channel.close()};vOc.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var xOc,yOc=(new JR).setVersion(8);xOc=Sl(yOc,2,5);var Wq=function(a){this.rep=a};Wq.prototype.equals=function(a){return this.rep===a.rep};var zOc=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};zOc.prototype.update=function(){var a=Date.now();a=Math.floor((a-this.lastAddedTimestampMs)/3E5);this.tokens=Math.min(this.tokens+a,this.max);this.lastAddedTimestampMs+=a*3E5};var e_a=function(a,b){this.seconds=a;this.nanos=b},f_a=function(a){var b=new bl;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},k_a=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("he`"+b);if(253402300800<=b)throw Error("ie`"+b);if(c<0)throw Error("je`"+c);if(1E9<=c)throw Error("ke`"+c);if(!Number.isInteger(b))throw Error("le`"+b);if(!Number.isInteger(c))throw Error("me`"+c);return new e_a(b,c)}catch(d){return null}};
e_a.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var SZa=function(a,b){this.value=a;this.isDecreasing=!!b};
SZa.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Wq)b=a.value instanceof Wq?this.value.equals(a.value):!1;else if(this.isDecreasing!==a.isDecreasing)b=!1;else if(typeof this.value==="string"||typeof this.value==="number")b=this.value===a.value;else if(this.value instanceof cr)b=a.value instanceof cr?this.value.equals(a.value):!1;else if(this.value instanceof Uint8Array)if(a.value instanceof Uint8Array)a:if(b=this.value,a=a.value,b.length!==a.length)b=
!1;else{for(var c=0;c<b.length;++c)if(b[c]!==a[c]){b=!1;break a}b=!0}else b=!1;else b=this.value instanceof e_a?a.value instanceof e_a?this.value.equals(a.value):!1:!1;return b};var Vq=function(a){return new SZa(a)},dr=function(a,b){this.parts=a;this.isPrivate=b},h_a=function(){for(var a=[],b=l(ud.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof SZa?a.push(c):a.push(Vq(c));return new dr(a,!1)};
dr.prototype.equals=function(a){var b;if(b=this.parts.length===a.parts.length)a:if(this.isPrivate!==a.isPrivate||this.parts.length>a.parts.length)b=!1;else{for(b=0;b<this.parts.length;++b)if(!this.parts[b].equals(a.parts[b])){b=!1;break a}b=!0}return b};var AOc=function(){},XZa=function(a,b){this.apiKey=a;this.authUser=b};g=XZa.prototype;g.getHeaders=function(){var a={},b;(b=$Ja([]))?(b=b.split(" "),b={scheme:b[0],hash:b[1]}):b=null;b!=null&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));return a};g.getQueryParameters=function(){return{key:this.apiKey}};g.domainType=function(){return 0};g.usesCredentialedRequests=function(){return!0};g.getAuthUser=function(){return this.authUser};
var VZa=function(a){this.oauthTokens=a};g=VZa.prototype;g.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};g.getQueryParameters=function(){return{}};g.domainType=function(){return 1};g.usesCredentialedRequests=function(){return!0};g.getAuthUser=function(){};var WZa=function(a,b){this.apiKey=a;this.appAuthTokens=b};g=WZa.prototype;g.getHeaders=function(){return{}};g.getQueryParameters=function(){return{key:this.apiKey}};g.domainType=function(){return 1};
g.usesCredentialedRequests=function(){return!1};g.getAuthUser=function(){};var BOc=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var COc,DOc=function(){};zu(DOc,RZa);DOc.prototype.createInstance=function(){return new XMLHttpRequest};COc=new DOc;var Xq=function(a){Hp.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhr_=null;this.lastUri_="";this.lastErrorCode_=0;this.lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.withCredentials_=!1;this.attributionReportingOptions_=this.trustToken_=null};zu(Xq,Hp);
var EOc=/^https?$/i,FOc=["POST","PUT"],GOc=[],r2a=function(a,b,c,d,e,f,h){var k=new Xq;GOc.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));h&&(k.withCredentials_=h);k.send(a,c,d,e);return k};g=Xq.prototype;g.cleanupSend_=function(){this.dispose();Za(GOc,this)};g.setTrustToken=function(a){this.trustToken_=a};g.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
g.send=function(a,b,c,d){if(this.xhr_)throw Error("oe`"+this.lastUri_+"`"+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastErrorCode_=0;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhr_.onreadystatechange=Fz(mt(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(h){this.error_(5,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,
d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=l(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("pe`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=ya.FormData&&a instanceof ya.FormData;!(Wa(FOc,b)>=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=l(c);for(d=b.next();!d.done;d=b.next())c=l(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,
c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(h){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(h){}try{this.timeoutId_&&(clearTimeout(this.timeoutId_),
this.timeoutId_=null),this.timeoutInterval_>0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};g.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():COc.createInstance()};g.timeout_=function(){typeof L7b!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
g.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;HOc(this);IOc(this)};var HOc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};Xq.prototype.abort=function(a){this.xhr_&&this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),IOc(this))};
Xq.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),IOc(this,!0));Xq.superClass_.disposeInternal.call(this)};Xq.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)JOc(this);else this.onReadyStateChangeEntryPoint_()};Xq.prototype.onReadyStateChangeEntryPoint_=function(){JOc(this)};
var JOc=function(a){if(a.active_&&typeof L7b!="undefined")if(a.inSend_&&a.getReadyState()==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.lastErrorCode_=6;try{var b=a.getReadyState()>2?a.xhr_.statusText:""}catch(c){b=""}a.lastError_=b+" ["+a.getStatus()+"]";HOc(a)}}finally{IOc(a)}}},IOc=function(a,b){if(a.xhr_){a.timeoutId_&&(clearTimeout(a.timeoutId_),
a.timeoutId_=null);var c=a.xhr_;a.xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};g=Xq.prototype;g.isActive=function(){return!!this.xhr_};g.isComplete=function(){return this.getReadyState()==4};
g.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=a===0)a=String(this.lastUri_).match(Juc)[1]||null,!a&&ya.self&&ya.self.location&&(a=ya.self.location.protocol.slice(0,-1)),a=!EOc.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&b.indexOf(a)==0&&(b=b.substring(a.length));a:{a=b;if(ya.JSON)try{var c=ya.JSON.parse(a);break a}catch(d){}c=Swc(a)}return c}};
g.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case "":case "text":return this.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};g.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};
g.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=2?this.xhr_.getAllResponseHeaders()||"":""};g.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!Ca(b[c])){var d=sbc(b[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var f=a[e]||[];a[e]=f;f.push(d)}}return Lqa(a,function(h){return h.join(", ")})};var u5a=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};Xq.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
Xq.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};Ufc(function(a){Xq.prototype.onReadyStateChangeEntryPoint_=a(Xq.prototype.onReadyStateChangeEntryPoint_)});var KOc=function(a,b,c){var d=Error.call(this,b);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;this.message=b;this.status=c;Object.setPrototypeOf(this,KOc.prototype);this.name="XhrError"};Y(KOc,Error);var LOc=function(a,b){b=b===void 0?$Za():b;this.baseUri=a;this.xhrIo=b};LOc.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
LOc.prototype.request=function(a,b,c,d,e){var f=this,h=new Qp(this.baseUri);h.setPath(b);if(e.queryParams){b=l(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var q=l(k.value);k=q.next().value;q=q.next().value;Jr(h,k,q)}}var u={"Content-type":"application/json+protobuf"};Object.assign(u,e.extraHeaders);var A=c.serialize();return new Promise(function(G,H){var N;f.xhrIo.send(h,function(){var O=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{G(cna(d,this.getResponseText()))}catch(U){H(new KOc(4,
"Failed to deserialize response from "+h+": "+this.getResponseText(),O))}else H(new KOc(this.getLastErrorCode(),this.getLastError(),O))},a,A,u,(N=e.timeoutMs)!=null?N:2E4,e.withCredentials)})};var MOc=function(a,b,c){aF.call(this);this.listener_=c!=null?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};Y(MOc,aF);g=MOc.prototype;g.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:this.doAction_()};g.stop=function(){this.timer_&&(Zq(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};g.pause=function(){this.pauseCount_++};
g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};g.disposeInternal=function(){aF.prototype.disposeInternal.call(this);this.stop()};g.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};g.doAction_=function(){var a=this;this.timer_=Yq(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};var NOc=null,OOc=function(){return NOc=NOc||new Hp},POc=function(a){oF.call(this,"serverreachability",a)};zu(POc,oF);var QOc=function(a){var b=OOc();b.dispatchEvent(new POc(b,a))},ROc=function(a,b){oF.call(this,"statevent",a);this.stat=b};zu(ROc,oF);var RR=function(a){var b=OOc();b.dispatchEvent(new ROc(b,a))},SOc=function(a,b,c){oF.call(this,"timingevent",a);this.size=b;this.rtt=c};zu(SOc,oF);
var TOc=function(a,b,c){var d=OOc();d.dispatchEvent(new SOc(d,a,b,c))},UOc=function(a,b){if(typeof a!=="function")throw Error("qe");return ya.setTimeout(function(){a()},b)};var SR=function(){this.redactEnabled_=!0};SR.prototype.disableRedact=function(){this.redactEnabled_=!1};
var VOc=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var h="";for(var k=f.split("&"),q=0;q<k.length;q++){var u=k[q].split("=");if(u.length>1){var A=u[0];u=u[1];var G=A.split("_");h=G.length>=2&&G[1]=="type"?h+(A+"="+u+"&"):h+(A+"=redacted&")}}}else h=null;else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})},WOc=function(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})},TR=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+XOc(a,c)+(d?" "+d:"")})},YOc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};SR.prototype.debug=function(){};SR.prototype.info=function(){};SR.prototype.warning=function(){};
var XOc=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var f=e[1];if(Array.isArray(f)&&!(f.length<1)){var h=f[0];if(h!="noop"&&h!="stop"&&h!="close")for(var k=1;k<f.length;k++)f[k]=""}}}return(new Twc).serialize(c)}catch(q){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var UR=function(a,b,c,d,e){this.channel_=a;this.channelDebug_=b;this.sid_=c;this.rid_=d;this.retryId_=e||1;this.eventHandler_=new Is(this);this.timeout_=45E3;this.extraHeaders_=null;this.successful_=!1;this.postData_=this.requestUri_=this.baseUri_=this.type_=this.requestStartTime_=this.watchDogTimeoutTime_=this.watchDogTimerId_=null;this.pendingMessages_=[];this.xmlHttp_=null;this.xmlHttpChunkStart_=0;this.lastError_=this.verb_=null;this.lastStatusCode_=-1;this.cancelled_=!1;this.readyStateChangeThrottleMs_=
0;this.readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ZOc},ZOc=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},$Oc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},aPc={},bPc={};
UR.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};UR.prototype.setTimeout=function(a){this.timeout_=a};UR.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};UR.prototype.getPendingMessages=function(){return this.pendingMessages_};
var dPc=function(a,b,c){a.type_=1;a.baseUri_=Zuc(b.clone());a.postData_=c;a.decodeChunks_=!0;cPc(a,null)},cPc=function(a,b){a.requestStartTime_=Date.now();ePc(a);a.requestUri_=a.baseUri_.clone();var c=a.requestUri_,d=a.retryId_;Array.isArray(d)||(d=[String(d)]);c.queryData_.setValues("t",d);a.xmlHttpChunkStart_=0;c=a.channel_.supportsCrossDomainXhrs_;a.fetchResponseState_=new ZOc;a.xmlHttp_=fPc(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new MOc(mt(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?Wi(a.extraHeaders_):{};a.postData_?(a.verb_||(a.verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.xmlHttp_.send(a.requestUri_,a.verb_,a.postData_,b)):(a.verb_="GET",a.xmlHttp_.send(a.requestUri_,a.verb_,null,b));QOc(1);VOc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
UR.prototype.readyStateChangeHandler_=function(a){a=a.target;var b=this.readyStateChangeThrottle_;b&&a.getReadyState()==3?(this.channelDebug_.debug("Throttling readystatechange."),b.fire()):this.xmlHttpHandler_(a)};UR.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?gPc(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),hPc(this)}finally{}};
var gPc=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!hPc(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?QOc(3):QOc(2));iPc(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=jPc(a);hPc(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;WOc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
kPc(a))TR(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,lPc(a,d);else{a.successful_=!1;a.lastError_=3;RR(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");VR(a);mPc(a);return}a.decodeChunks_?nPc(a,b,c):(TR(a.channelDebug_,a.rid_,c,null),lPc(a,c));b==4&&VR(a);a.successful_&&!a.cancelled_&&(b==4?oPc(a.channel_,a):(a.successful_=!1,ePc(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,RR(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,RR(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),VR(a),mPc(a)}},kPc=function(a){return a.xmlHttp_&&(a=u5a(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!Ca(a)?a:null},jPc=function(a){if(!pPc(a))return a.xmlHttp_.getResponseText();var b=a.xmlHttp_.getResponse();if(b==="")return"";var c="",d=b.length,e=a.xmlHttp_.getReadyState()==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder===
"undefined")return VR(a),mPc(a),"";a.fetchResponseState_.textDecoder=new ya.TextDecoder}for(var f=0;f<d;f++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[f],{stream:!(e&&f==d-1)});b.length=0;a.fetchResponseState_.responseBuffer+=c;a.xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},hPc=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},pPc=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},nPc=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=qPc(a,c),e==bPc){b==4&&(a.lastError_=4,RR(14),d=!1);TR(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==aPc){a.lastError_=4;RR(15);TR(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else TR(a.channelDebug_,a.rid_,e,null),lPc(a,e);pPc(a)&&a.xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.xmlHttpChunkStart_),
a.xmlHttpChunkStart_=0);b!=4||c.length!=0||a.fetchResponseState_.responseArrivedForFetch||(a.lastError_=1,RR(16),d=!1);a.successful_=a.successful_&&d;d?c.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.channel_,b.backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),rPc(b),b.bpDetectionDone_=!0,RR(11))):(TR(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),VR(a),mPc(a))},qPc=function(a,
b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return bPc;c=Number(b.substring(c,d));if(isNaN(c))return aPc;d+=1;if(d+c>b.length)return bPc;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};UR.prototype.cancel=function(){this.cancelled_=!0;VR(this)};
var ePc=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;sPc(a,a.timeout_)},sPc=function(a,b){if(a.watchDogTimerId_!=null)throw Error("re");a.watchDogTimerId_=UOc(mt(a.onWatchDogTimeout_,a),b)},iPc=function(a){a.watchDogTimerId_&&(ya.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
UR.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(YOc(this.channelDebug_,this.requestUri_),this.type_!=2&&(QOc(3),RR(17)),VR(this),this.lastError_=2,mPc(this)):(this.channelDebug_.warning("WatchDog timer called too early"),sPc(this,this.watchDogTimeoutTime_-a))};
var mPc=function(a){a.channel_.isClosed()||a.cancelled_||oPc(a.channel_,a)},VR=function(a){iPc(a);To(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};UR.prototype.getLastError=function(){return this.lastError_};UR.prototype.getLastStatusCode=function(){return this.lastStatusCode_};UR.prototype.getRequestId=function(){return this.rid_};UR.prototype.getXhr=function(){return this.xmlHttp_};
var lPc=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||tPc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&tPc(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(ra){d=null}if(Array.isArray(d)&&d.length==3){var e=d;if(e[0]==0)a:if(c.channelDebug_.debug("Server claims our backchannel is missing."),c.backChannelTimerId_)c.channelDebug_.debug("But we are currently starting the request.");else{if(c.backChannelRequest_)if(c.backChannelRequest_.requestStartTime_+
3E3<a.requestStartTime_)uPc(c),vPc(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");wPc(c);RR(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var h=e[2];c.channelDebug_.debug(h+" bytes (in "+f+" arrays) are outstanding on the BackChannel");h<37500&&c.enableStreaming_&&c.backChannelRetryCount_==0&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=UOc(mt(c.onBackChannelDead_,c),6E3))}}if(xPc(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(ra){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),WR(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&uPc(c),!Ca(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f];c.lastArrayId_=k[0];k=k[1];if(c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var q=k[3];q!=null&&(c.channelVersion_=q,c.channelDebug_.info("VER="+
c.channelVersion_));var u=k[4];u!=null&&(c.serverVersion_=u,c.channelDebug_.info("SVER="+c.serverVersion_));var A=k[5];A!=null&&typeof A==="number"&&A>0&&(h=1.5*A,c.backChannelRequestTimeoutMs_=h,c.channelDebug_.info("backChannelRequestTimeoutMs_="+h));h=c;var G=a.getXhr();if(G){var H=u5a(G,"X-Client-Wire-Protocol");if(H){var N=h.forwardChannelRequestPool_;b=H;!N.requestPool_&&(Da(b,"spdy")||Da(b,"quic")||Da(b,"h2"))&&(N.maxSize_=N.maxPoolSizeConfigured_,N.requestPool_=new Set,N.request_&&(N.addRequest(N.request_),
N.request_=null))}if(h.httpSessionIdParam_){var O=u5a(G,"X-HTTP-Session-Id");O?(h.httpSessionId_=O,Jr(h.forwardChannelUri_,h.httpSessionIdParam_,O)):h.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response")}}c.state_=3;c.handler_&&c.handler_.channelOpened();c.detectBufferingProxy_&&(c.handshakeRttMs_=Date.now()-a.requestStartTime_,c.channelDebug_.info("Handshake RTT: "+c.handshakeRttMs_+"ms"));h=c;b=a;var U=d=h,da=yPc(U,U.supportsCrossDomainXhrs_?h.hostPrefix_:null,h.path_);U.channelDebug_.debug("GetBackChannelUri: "+
da);d.backChannelUri_=da;if(b.initialResponseDecoded_){h.channelDebug_.debug("Upgrade the handshake request to a backchannel.");zPc(h.forwardChannelRequestPool_,b);d=b;var ma=h.backChannelRequestTimeoutMs_;ma&&d.setTimeout(ma);d.watchDogTimerId_&&(iPc(d),ePc(d));h.backChannelRequest_=b}else APc(h);c.outgoingMaps_.length>0&&BPc(c)}else k[0]!="stop"&&k[0]!="close"||WR(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?WR(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),
c.backChannelRetryCount_=0)}QOc(4)}catch(ra){}};var CPc=function(a,b){this.mapId=a;this.map=b;this.context=null};var DPc=function(a){this.maxPoolSizeConfigured_=a||10;ya.PerformanceNavigationTiming?(a=ya.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ya.chrome&&ya.chrome.loadTimes&&ya.chrome.loadTimes()&&ya.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},EPc=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},xPc=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},tPc=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1};DPc.prototype.addRequest=function(a){this.requestPool_?this.requestPool_.add(a):this.request_=a};var zPc=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
DPc.prototype.cancel=function(){this.pendingMessages_=this.getPendingMessages();if(this.request_)this.request_.cancel(),this.request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=l(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
DPc.prototype.getPendingMessages=function(){if(this.request_!=null)return this.pendingMessages_.concat(this.request_.getPendingMessages());if(this.requestPool_!=null&&this.requestPool_.size!==0){for(var a=this.pendingMessages_,b=l(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return ab(this.pendingMessages_)};var FPc=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var GPc=function(a,b){var c=new SR;c.debug("TestLoadImage: loading "+a);if(ya.Image){var d=new Image;d.onload=yu(YR,c,"TestLoadImage: loaded",!0,b,d);d.onerror=yu(YR,c,"TestLoadImage: error",!1,b,d);d.onabort=yu(YR,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=yu(YR,c,"TestLoadImage: timeout",!1,b,d);ya.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},HPc=function(a,b){var c=new SR,d=new AbortController,e=setTimeout(function(){d.abort();YR(c,"TestPingServer: timeout",!1,
b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?YR(c,"TestPingServer: ok",!0,b):YR(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);YR(c,"TestPingServer: error",!1,b)})},YR=function(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(f){}};var IPc=function(){this.replacer_=void 0};IPc.prototype.stringify=function(a){return ya.JSON.stringify(a,this.replacer_)};IPc.prototype.parse=function(a){return ya.JSON.parse(a,void 0)};var JPc=function(){this.parser_=new IPc},KPc=function(a,b,c){var d=c||"";try{Huc(a,function(e,f){var h=e;cb(e)&&(h=(new Twc).serialize(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};var ZR=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};zu(ZR,RZa);ZR.prototype.createInstance=function(){var a=new $R(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};ZR.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};ZR.prototype.setCacheMode=function(a){this.cacheMode_=a};
var $R=function(a,b){Hp.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null};zu($R,Hp);
$R.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("se");this.method_=a;this.url_=b;this.readyState=1;LPc(this)};$R.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("te");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||ya).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
$R.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,MPc(this));this.readyState=0};
$R.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.responseHeaders_=a.headers,this.readyState=2,LPc(this)),this.inProgress_&&(this.readyState=3,LPc(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ya.ReadableStream!=="undefined"&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("ue");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;NPc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var NPc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
$R.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?MPc(this):LPc(this);this.readyState==3&&NPc(this)}};$R.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,MPc(this))};
$R.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,MPc(this))};$R.prototype.handleSendFailure_=function(){this.inProgress_&&MPc(this)};var MPc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;LPc(a)};g=$R.prototype;g.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};g.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
g.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};g.setCredentialsMode=function(a){this.credentialsMode_=a};g.setCacheMode=function(a){this.cacheMode_=a};var LPc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty($R.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var OPc=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},aS=function(a){this.clientVersion_=22;this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new SR;this.hostPrefix_=this.backChannelUri_=this.forwardChannelUri_=this.path_=this.backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.extraHeaders_=null;this.nextMapId_=this.nextRid_=0;this.failFast_=OPc("failFast",!1,a);
this.enableStreaming_=this.deadBackChannelTimerId_=this.backChannelTimerId_=this.forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.lastPostResponseArrayId_=this.lastArrayId_=-1;this.backChannelAttemptId_=this.backChannelRetryCount_=this.forwardChannelRetryCount_=0;this.baseRetryDelayMs_=OPc("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=OPc("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=OPc("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
OPc("forwardChannelRequestTimeoutMs",2E4,a);this.xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.readyStateChangeThrottleMs_=0;this.supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new DPc(a&&a.concurrentRequestLimit);this.wireCodec_=new JPc;this.fastHandshake_=a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=
a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=
void 0;a&&a.longPollingTimeout&&a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};aS.prototype.channelVersion_=8;aS.prototype.state_=1;
aS.prototype.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");RR(0);this.path_=a;this.extraParams_=b||{};c&&d!==void 0&&(this.extraParams_.OSID=c,this.extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.channelDebug_.debug("connectChannel_()");a=yPc(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;BPc(this)};
aS.prototype.disconnect=function(){this.channelDebug_.debug("disconnect()");PPc(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Jr(b,"SID",this.sid_);Jr(b,"RID",a);Jr(b,"TYPE","terminate");QPc(this,b);a=new UR(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=Zuc(b.clone());b=!1;if(ya.navigator&&ya.navigator.sendBeacon)try{b=ya.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ya.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=fPc(a.channel_,
null),a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();ePc(a)}RPc(this)};var vPc=function(a){a.backChannelRequest_&&(rPc(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},PPc=function(a){vPc(a);a.backChannelTimerId_&&(ya.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);uPc(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ya.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};
g=aS.prototype;g.setExtraHeaders=function(a){this.extraHeaders_=a};g.getHttpSessionId=function(){return this.httpSessionId_};g.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};g.getHandler=function(){return this.handler_};g.isClosed=function(){return this.state_==0};g.getState=function(){return this.state_};g.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var BPc=function(a){EPc(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,Hz(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},TPc=function(a,b){if(xPc(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.maxSize_-(a.forwardChannelTimerId_?1:0))return!1;if(a.forwardChannelTimerId_)return a.channelDebug_.debug("Use the retry request that is already scheduled."),a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_),!0;if(a.state_==1||
a.state_==2||a.forwardChannelRetryCount_>=(a.failFast_?0:a.forwardChannelMaxRetries_))return!1;a.channelDebug_.debug("Going to retry POST");a.forwardChannelTimerId_=UOc(mt(a.onStartForwardChannelTimer_,a,b),SPc(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
aS.prototype.onStartForwardChannelTimer_=function(a){if(this.forwardChannelTimerId_)if(this.forwardChannelTimerId_=null,this.channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.channelDebug_.debug("open_()");this.nextRid_=Math.floor(Math.random()*1E5);a=this.nextRid_++;var b=new UR(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=Wi(c),Vqa(c,this.initHeaders_)):c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||
(b.setExtraHeaders(c),c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.outgoingMaps_.length;e++){b:{var f=this.outgoingMaps_[e];if("__data__"in f.map&&(f=f.map.__data__,typeof f==="string")){f=f.length;break b}f=void 0}if(f===void 0)break;d+=f;if(d>4096){d=e;break a}if(d===4096||e===this.outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=UPc(this,b,d);e=this.forwardChannelUri_.clone();Jr(e,"RID",a);this.clientVersion_>0&&Jr(e,"CVER",this.clientVersion_);this.httpSessionIdParam_&&
Jr(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);QPc(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+encodeURIComponent(String(bvc(c)))+"&"+d:this.httpHeadersOverwriteParam_&&cvc(e,this.httpHeadersOverwriteParam_,c));this.forwardChannelRequestPool_.addRequest(b);this.blockingHandshake_&&Jr(e,"TYPE","init");this.fastHandshake_?(Jr(e,"$req",d),Jr(e,"SID","null"),b.decodeInitialResponse_=!0,dPc(b,e,null)):dPc(b,e,d);this.state_=2}}else this.state_==3&&(a?VPc(this,a):this.outgoingMaps_.length==
0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):EPc(this.forwardChannelRequestPool_)||(VPc(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var VPc=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Jr(d,"SID",a.sid_);Jr(d,"RID",c);Jr(d,"AID",a.lastArrayId_);QPc(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&cvc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new UR(a,a.channelDebug_,a.sid_,c,a.forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&c.setExtraHeaders(a.extraHeaders_);b&&(a.outgoingMaps_=b.getPendingMessages().concat(a.outgoingMaps_));b=UPc(a,c,1E3);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*
.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));a.forwardChannelRequestPool_.addRequest(c);dPc(c,d,b)},QPc=function(a,b){a.extraParams_&&Si(a.extraParams_,function(c,d){Jr(b,d,c)});a.handler_&&Huc({},function(c,d){Jr(b,d,c)})},UPc=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?mt(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var h=["count="+c];f==-1?c>0?(f=e[0].mapId,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var k=!0,q=0;q<
c;q++){var u=e[q].mapId,A=e[q].map;u-=f;if(u<0)f=Math.max(0,e[q].mapId-100),k=!1;else try{KPc(A,h,"req"+u+"_")}catch(G){d&&d(A)}}if(k){d=h.join("&");break a}}d=void 0}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return d},APc=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,Hz(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},wPc=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");
a.backChannelAttemptId_++;a.backChannelTimerId_=UOc(mt(a.onStartBackChannelTimer_,a),SPc(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
aS.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;WPc(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.backChannelRequest_==null||this.handshakeRttMs_<=0)this.channelDebug_.warning("Skip bpDetectionTimerId_ "+this.backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=UOc(mt(this.onBpDetectionTimer_,this),a)}};
aS.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.channelDebug_.info("BP detection timeout reached.");if(this.backChannelRequest_.getXhr()!=null){var a=this.backChannelRequest_.getXhr().getResponseText();a&&this.channelDebug_.warning("Timer should have been cancelled : "+a)}this.channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=!1;this.bpDetectionDone_=!0;RR(10);vPc(this);WPc(this)}else this.channelDebug_.warning("Invalid operation.")};
var rPc=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ya.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},WPc=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new UR(a,a.channelDebug_,a.sid_,"rpc",a.backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&a.backChannelRequest_.setExtraHeaders(a.extraHeaders_);a.backChannelRequest_.setReadyStateChangeThrottle(a.readyStateChangeThrottleMs_);var b=
a.backChannelUri_.clone();Jr(b,"RID","rpc");Jr(b,"SID",a.sid_);Jr(b,"AID",a.lastArrayId_);Jr(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Jr(b,"TO",a.longPollingTimeout_);Jr(b,"TYPE","xmlhttp");QPc(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&cvc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=Zuc(b.clone());
c.postData_=null;c.decodeChunks_=!0;cPc(c,d);a.channelDebug_.debug("New Request created")};aS.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};aS.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,vPc(this),wPc(this),RR(19))};
var uPc=function(a){a.deadBackChannelTimerId_!=null&&(ya.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},oPc=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){uPc(a);rPc(a);a.backChannelRequest_=null;var d=2}else if(tPc(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),zPc(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(TOc(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),BPc(a)):APc(a);else{var e=b.getLastStatusCode(),f=b.getLastError();if(f==3||f==0&&e>0)a.channelDebug_.debug("Not retrying due to error type"),e>200&&(a.errorResponseStatusCode_=b.getLastStatusCode());else{a.channelDebug_.debug(function(){return"Maybe retrying, last error: "+$Oc(f,a.errorResponseStatusCode_)});if(d==1&&TPc(a,b)||d==2&&wPc(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&FPc(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:WR(a,5);break;case 4:WR(a,10);break;case 3:WR(a,6);break;default:WR(a,2)}}},SPc=function(a,b){var c=a.baseRetryDelayMs_+Math.floor(Math.random()*a.retryDelaySeedMs_);a.isActive()||(a.channelDebug_.debug("Inactive channel"),c*=2);return c*b},WR=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=mt(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new Qp(d||"//www.google.com/images/cleardot.gif");ya.location&&ya.location.protocol=="http"||uH(d,"https");Zuc(d);e?GPc(d.toString(),
c):HPc(d.toString(),c)}else RR(2);a.onError_(b)};aS.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),RR(2)):(this.channelDebug_.info("Failed to ping google.com"),RR(1))};aS.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);RPc(this);PPc(this)};
var RPc=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=a.forwardChannelRequestPool_.getPendingMessages();if(b.length!=0||a.outgoingMaps_.length!=0)a.channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.outgoingMaps_.length}),Iba(a.nonAckedMapsAtChannelClose_,b),Iba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,ab(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
yPc=function(a,b,c){var d=Hr(c);d.getDomain()!=""?(b&&vH(d,b+"."+d.getDomain()),d.setPort(d.getPort())):(d=ya.location,d=$uc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&Jr(d,b,c);Jr(d,"VER",a.channelVersion_);QPc(a,d);return d},fPc=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("ve");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new Xq(new ZR({streamBinaryChunks:c})):new Xq(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};aS.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var XPc=function(){};g=XPc.prototype;g.channelOpened=function(){};g.channelHandleArray=function(){};g.channelError=function(){};g.channelClosed=function(){};g.isActive=function(){return!0};g.badMapError=function(){};g.correctHostPrefix=function(a){return a};var YPc=function(){};YPc.prototype.createWebChannel=function(a,b){return new bS(a,b)};
var bS=function(a,b){Hp.call(this);this.channel_=new aS(b);this.url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.channel_.setExtraHeaders(a);a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&&b.clientProfile&&(a?a["X-WebChannel-Client-Profile"]=
b.clientProfile:a={"X-WebChannel-Client-Profile":b.clientProfile});this.channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!Ca(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Ca(b)&&(this.channel_.httpSessionIdParam_=b,Oqa(this.messageUrlParams_,b)&&Vi(this.messageUrlParams_,b));this.channelHandler_=new cS(this)};zu(bS,Hp);
bS.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};bS.prototype.close=function(){this.channel_.disconnect()};bS.prototype.send=function(a){var b=this.channel_;if(typeof a==="string"){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=(new Twc).serialize(a),a=c);b.outgoingMaps_.push(new CPc(b.nextMapId_++,a));b.state_==3&&BPc(b)};
bS.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;bS.superClass_.disposeInternal.call(this)};var ZPc=function(a){sOc.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}this.data=(this.metadataKey=a)?Tqa(b,this.metadataKey):b}else this.data=a};zu(ZPc,sOc);
var $Pc=function(a){tOc.call(this);this.status=1;this.errorCode=a};zu($Pc,tOc);var cS=function(a){this.channel_=a};zu(cS,XPc);cS.prototype.channelOpened=function(){this.channel_.dispatchEvent("i")};cS.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new ZPc(a))};cS.prototype.channelError=function(a){this.channel_.dispatchEvent(new $Pc(a))};cS.prototype.channelClosed=function(){this.channel_.dispatchEvent("j")};var wOc=function(a){this.channel_=a};
wOc.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};wOc.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};wOc.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var aQc=function(){this.changeList=[]};aQc.prototype.add=function(a){this.changeList.push(a)};
var bQc=function(){var a=self.performance;a=a===void 0?Date:a;var b=b===void 0?Iv(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},cQc=function(a,b,c){this.authMethod=b;this.jspbClient=new LOc(a,c)},dQc=function(a,b,c){var d,e,f,h,k,q,u;return w(function(A){if(A.nextAddress==1){d=new bQc;var G=new fOc;e=W(G,dOc,1,b);if(c){if(c.rttMicros==null)throw Error("xe");G=Cv(c.rttMicros)/1E6;G=tq(e,2,Hb(G));var H=c.clockOffsetMicros!=null?Iv(c.clock.now()*1E3).add(c.clockOffsetMicros):void 0;H=(f=H)==
null?void 0:f.toString();Hl(G,3,H)}return x(A,a.jspbClient.post("/punctual/v1/chooseServer",e,KR,UZa(a.authMethod)),2)}h=A.yieldResult;G=d;H=er(h.getStartTimeMicros_asString());var N=er(Gl(h,5)),O=Iv(G.clock.now()*1E3),U=Fv(N,H);G.rttMicros=Fv(Fv(O,G.clientStartMicros),U);G.clockOffsetMicros=Ev(Fv(Fv(H,G.clientStartMicros).add(N),O),Iv(2));k=fr(h,1);if(k==null)throw Error("ye");return A.return({gsessionid:k,affinitization:(q=h.getAffinitizationOrUndefined())!=null?q:0,initialConnectionDelayMillis:(u=
Lu(h,3))!=null?u:0,timeEstimator:d})})},eQc=function(a,b,c){this.authMethod=b;this.jspbClient=new LOc(a,c)},fQc=function(a,b,c){var d,e;return w(function(f){if(f.nextAddress==1){if(a.authMethod instanceof WZa)return f.return(Promise.resolve());d=(new kOc).setChannelId(c);e=UZa(a.authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;te(f,2);return x(f,a.jspbClient.post("/punctual/v1/refreshCreds",d,lOc,e),4)}if(f.nextAddress!=2)return uu(f,0);xe(f);ze(f)})},
gQc=function(a,b,c){this.project=a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},dS=function(a,b){this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new bg;this.streamNumber=0;this.rawStatus=new bg;this.status=new tj(new HR);this.skipBackoff=new zOc;this.recentResyncs=[];this.hasConnected=!1;this.rawStatus.pipe(Jja(function(e){return e.getCode()===
0?Promise.resolve():new Promise(function(f){Yq(f,500)})})).subscribe(this.status);this.delayGenerator=new QZa;var c,d;this.reconnectHint=(d=(c=b.reconnectHint)==null?void 0:c.pipe(Pf(function(){return ev}),Ija(ev)))!=null?d:ev;hQc(this)},iQc=function(a,b,c){b=b.then(function(d){switch(d.domainType()){case 2:case 0:var e=a.firstPartyUri;break;case 1:e=a.thirdPartyUri;break;default:e=new Qp}var f=e.clone().setPath("/punctual/multi-watch/channel"),h=new uOc(f.toString(),d,c.xmlHttpFactory!==void 0);
return{serverChooser:new cQc(e,d,$Za(c.xmlHttpFactory)),credentialRefresher:new eQc(e,d,$Za(c.xmlHttpFactory)),channelCreator:function(k,q,u){k=new vOc(k,q,h,function(A,G){return(new YPc).createWebChannel(A,G)},u);k.open();return k}}});return new dS(b,c)},jQc=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},kQc=function(a){var b;Yq(function(){a.channelDeps.then(function(c){var d,e;((d=a.channelState)==null?void 0:d.channelId)!=null&&((e=a.channelState)==null?void 0:
e.lastRefreshTime)!=null&&Date.now()>=a.channelState.lastRefreshTime+24E4&&(fQc(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),a.channelState.lastRefreshTime=Date.now());kQc(a)})},jQc(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};
dS.prototype.handleClose=function(a,b){var c=this.causalStreams.get(a)||this.limboStreams.get(a)||this.nonCausalStreams.get(a);c&&(b.getCodeOrUndefined()===0?c.observer.complete():c.observer.error(b),this.causalStreams.delete(a),this.limboStreams.delete(a),this.nonCausalStreams.delete(a))};
var lQc=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},mQc=function(a,b){return a.recentResyncs.find(function(c){var d;if(d=c.project===b.project)c=c.interestSet,d=b.interestSet,d=c instanceof dr&&d instanceof dr?c.equals(d):!1;return d})};dS.prototype.onOpen=function(){var a=(new HR).setCode(0);try{this.rawStatus.next(a)}catch(b){}};dS.prototype.onClose=function(){this.channelState=void 0;hQc(this)};
dS.prototype.onError=function(a,b){a=(new HR).setCode(ZZa(b));try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=l(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var pQc=function(a,b,c){if(a.channelState){var d=nQc(c.project,c.interestSet);if(c instanceof oQc){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());Ol(e,8,c.knowledgeTimestampChosenByPunctual)}Sl(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new jOc;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},nQc=function(a,b){var c=new dOc;c=W(c,JR,4,xOc);if(b instanceof dr){var d=new bOc;a!=
null&&d.setProject(b_a(a));d.setOwner(b.isPrivate?$Nc():ZNc()).setPath(g_a(b));Vm(c,2,eOc,d)}else d=new cOc,a!=null&&d.setProject(b_a(a)),d.setOwner(b.root.isPrivate?$Nc():ZNc()).setPrefix(g_a(b.root)),c.setPrefix(d);return c},qQc=function(a,b){var c=new jOc;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new gOc);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},hQc=function(a){var b=XNc(a.delayGenerator);a_a(b).pipe(Xja(a.reconnectHint.pipe(Zf(function(){var c=
a.skipBackoff;c.update();c.tokens>0?(c.tokens--,c=!0):c=!1;return c})))).subscribe(function(){a.channelDeps.then(function(c){rQc(a,c.serverChooser).then(function(d){a.serverTimeEstimator=d.timeEstimator;Yq(function(){a.hasConnected=!0;sQc(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(){hQc(a)})},function(c){c=(new HR).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},rQc=function(a,b){var c,d,e,f,h,k;return w(function(q){if(q.nextAddress==1)return x(q,
tQc(a),2);c=q.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return(dQc(b,nQc(h,k),a.serverTimeEstimator))})},tQc=function(a){var b,c,d,e,f,h,k;return w(function(q){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=l(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=l(e.values()),h=f.next();!h.done;h=f.next())return k=h.value,q.return([k.project,k.interestSet]);return x(q,Ge(av(a.newStreamSubject).pipe(Zf())),1)})},sQc=function(a,b,c){a.channelState={channel:b(function(f){for(var h=
l(f.getResponsesList()),k=h.next();!k.done;k=h.next()){var q=a,u=k.value;k=u.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),u.hasClose()){a:{if(u=u.getClose())if(u=u.getStatus())break a;u=void 0}u&&q.handleClose(k,u)}else if(u=Qm(u,NR,2,rOc))switch(vm(u,OR)){case 1:if(u=q.causalStreams.get(k)){try{u.observer.next(new UNc)}catch(U){}q.causalStreams.delete(k);q.limboStreams.set(k,u.start())}break;case 3:a:{if(u=Qm(u,mOc,3,OR))if(u=w9b(u,1),u!=null){var A=new VNc(er(u));break a}A=void 0}if(A&&
(u=k,k=A,(A=q.limboStreams.get(u))?(A=A.advance(k.timestampMicros),q.limboStreams.delete(u),q.nonCausalStreams.set(u,A),q=A):q=q.nonCausalStreams.get(u),q)){u=q;A=k.timestampMicros;A>u.knowledgeTimestamp&&(u.knowledgeTimestamp=A,u.knowledgeTimestampChosenByPunctual=!0);try{q.observer.next(k)}catch(U){}}break;case 2:k=q.nonCausalStreams.get(k)||q.limboStreams.get(k);if(!k)break;q=k.interestSet;if(A=u.getChanges()){u=new aQc;A=l(Wk(A,MR,1,Fk()));for(var G=A.next();!G.done;G=A.next()){var H=G.value,
N=X(H,ar,6);G=H.getVersionOrUndefined_asString();if(N&&G!=null){var O=void 0;H=(O=j_a(H,2))==null?void 0:new Uint8Array(zc(O)||0);O=H==null?void 0:H;(N=l_a(q,N))&&u.add(new TNc(N,er(G),O))}}q=u}else q=void 0;if(q)for(q=l(q.changeList),u=q.next();!u.done;u=q.next()){u=u.value;u=new TNc(u.objectId,u.version,u.payload);try{k.observer.next(u)}catch(U){}}break;case 5:if(k=q.causalStreams.get(k)||q.limboStreams.get(k)||q.nonCausalStreams.get(k)){k instanceof oQc&&(lQc(q),(u=mQc(q,k))?(u.hasRecurred=!0,
u.knowledgeTimestamp=k.knowledgeTimestamp,u.resyncMillis=Date.now()):q.recentResyncs.push(new gQc(k.project,k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(U){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:h=l(a.causalStreams.values());for(k=h.next();!k.done;k=h.next())k.value.streamInitiationReason=3;h=l(a.nonCausalStreams.values());for(k=h.next();!k.done;k=h.next())k.value.streamInitiationReason=3;a.channelState&&a.channelState.channel.close()}nk(f,
pOc,3)&&a.channelState&&(a.channelState.channelId=X(f,pOc,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(kQc(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid),affinitization:c.affinitization,gsessionid:c.gsessionid};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,h){return f[0]-h[0]});b=l(b);for(c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;pQc(a,
c,d)}b=l(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Yq(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
dS.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new pe(function(d){var e=++c.streamNumber,f,h=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new uQc(d,h,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});pQc(c,e,d);return function(){qQc(c,e)}})};
dS.prototype.watchWithStartTime=function(a,b,c){var d=this;c=c===void 0?{}:c;return new pe(function(e){var f=++d.streamNumber,h,k=(h=c.projectOverride)!=null?h:d.options.defaultProject,q=new oQc(e,k,a,b,!1);lQc(d);if((e=mQc(d,q))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var u=!0;Yq(function(){u&&q.observer.complete()},6E4);return function(){u=!1}}d.nonCausalStreams.set(f,q);d.newStreamSubject.next({});pQc(d,f,q);return function(){qQc(d,f)}})};
var uQc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};uQc.prototype.start=function(){return new vQc(this.observer,this.project,this.interestSet)};var vQc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};vQc.prototype.advance=function(a){return new oQc(this.observer,this.project,this.interestSet,a,!0)};
var oQc=function(a,b,c,d,e){this.observer=a;this.project=b;this.interestSet=c;this.knowledgeTimestamp=d;this.knowledgeTimestampChosenByPunctual=e;this.streamInitiationReason=1};var wQc={firstPartyUri:new Qp("https://signaler-pa.clients6.google.com"),thirdPartyUri:new Qp("https://signaler-pa.googleapis.com")},xQc={firstPartyUri:new Qp("https://punctual-dev.corp.google.com"),thirdPartyUri:new Qp("https://signaler-staging.sandbox.google.com")},yQc=new Map([["prod",wQc],["preprod-dynamite-alpha-us",gr("preprod-dynamite-alpha-us")],["preprod-dynamite-alpha-eu",gr("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",gr("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",
gr("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",gr("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",gr("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",gr("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",gr("prod-dynamite-prod-00-eu")],["prod-dynamite-prod-01-eu",gr("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",gr("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",gr("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",gr("prod-dynamite-prod-02-us")],
["prod-dynamite-prod-03-us",gr("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",gr("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",gr("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",gr("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",gr("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",gr("prod-dynamite-prod-08-us")],["prod-dynamite-prod-09-us",gr("prod-dynamite-prod-09-us")],["ytprod",{firstPartyUri:new Qp("https://signaler-pa.youtube.com"),thirdPartyUri:new Qp("https://signaler-pa.googleapis.com")}],
["dev",xQc]]);var zQc=function(a){this.projectPath=a;this.authParams=new AOc;this.fetchApi=!1};zQc.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};zQc.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
zQc.prototype.build=function(){var a=YZa(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("ze`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("Ae`"+b);b=l(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Qp(decodeURIComponent(c.substring(7))),c={firstPartyUri:c,thirdPartyUri:c};else{var d=yQc.get(c);if(!d)throw Error("Be`"+c);c=d}var e;this.fetchApi&&(e=new ZR({worker:this.worker}));return iQc(c,a,{reconnectHint:this.reconnectHint,
defaultProject:b,xmlHttpFactory:e})};var AQc={watch:function(){return Ce()},watchWithStartTime:function(){return Ce()},status:Ce()},eS=function(){this.activeSession=n(Es);if(Yr(this.activeSession,"enablePushUpdatesClient")){switch(this.activeSession.getEnvironmentType()){case "PROD":case "NIGHTLY":var a="AIzaSyDBL0cdQ7zgltPyAYPmzKE4X2t2_S_wW8w";var b="/punctual/prod/buganizer";break;case "QA":a="AIzaSyCpeBtg5BChNlEw-O4F0WpVJWgk_CFEY6I";b="/punctual/prod/buganizer-qa";break;default:a="ANVavNKXeiME5gTvC0_SzcTVHNYBMU50fWn-NpE",b="/punctual/dev/buganizer-test"}this.punctualClient=
(new zQc(b)).setApiKey(a).build()}else this.punctualClient=AQc};eS.prototype.watch=function(a,b){return this.punctualClient.watch(h_a(String(a),b)).pipe(Ve(function(c){return c instanceof TNc}))};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275prov=Sc({token:eS,factory:eS.\u0275fac,providedIn:"root"});var fS=function(){this.punctualService=n(eS);this.stream=new bg;this.isPaused=!1;this.closeStream$=new bg};fS.prototype.resume=function(){this.isPaused=!1};var BQc=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new bg,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};fS.prototype.watch=function(a){var b=this;return this.punctualService.watch("new-comment-issue",a).pipe(Ve(function(){var c=!b.isPaused;b.resume();return c}),Sf(1E3),gg(this.closeStream$))};
fS.\u0275fac=function(a){return new (a||fS)};fS.\u0275prov=Sc({token:fS,factory:fS.\u0275fac,providedIn:"root"});var CQc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var gS=function(){Z.call(this);this.window=n(jK);this.scrolledOnScreenService=n(QH);this.elementRef=n(ff);this.onAutoResize=new LA;this.el=this.elementRef.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");this.cloneEl.removeAttribute("aria-label");this.cloneEl.setAttribute("aria-hidden","");this.cloneEl.removeAttribute("data-stable");this.cloneEl.setAttribute("data-cloned-for-auto-resize","");this.cloneEl.style.height="auto";this.cloneEl.style.visibility=
"hidden";this.cloneEl.style.position="absolute";this.cloneEl.style.left="0";this.cloneEl.style.top="0";this.cloneEl.style.zIndex="-9999";this.cloneEl.style.overflowY="hidden";this.window.document.body.appendChild(this.cloneEl)};Y(gS,Z);gS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&DQc(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){DQc(a,2)}))};
gS.prototype.onInput=function(){DQc(this,1)};
var DQc=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=l("width max-height min-height font-family text-decoration letter-spacing".split(" ")),e=d.next();!e.done;e=d.next())e=e.value,a.cloneEl.style.setProperty(e,c.getPropertyValue(e));a.cloneEl.value=a.el.value;d=a.window.getComputedStyle(a.cloneEl);c=a.cloneEl;c=hm(d.getPropertyValue("border-top-width"))+hm(d.getPropertyValue("padding-top"))+c.scrollHeight+hm(d.getPropertyValue("padding-bottom"))+hm(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=hm(d.getPropertyValue("max-height")),d=hm(d.getPropertyValue("min-height")),!Number.isNaN(e)&&c>e&&(c=e),!Number.isNaN(d)&&c<d&&(c=d),d=c+"px",a.el.style.height!==d&&(a.el.style.height=d,a.onAutoResize.emit({newHeight:c,source:b})))};gS.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};gS.\u0275fac=function(a){return new (a||gS)};
gS.\u0275dir=Kf({type:gS,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&M("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},standalone:!1,features:[kg]});var EQc=["textarea"],FQc=["hiddenInput"],GQc=["autocompleteUnderlay"],HQc=Symbol(),hS=function(){Z.apply(this,arguments);this.codefont=n(zO);this.activeSession=n(Es);this.issuePermissionService=n(lL);this.window=n(jK);this.userPreferencesManager=n(OG);this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=this.disabled=!1;this.contentChange=new LA;this.focus=new LA;this.blur=new LA;this.autoResize=new LA;this.manualResize$=new LA;this.autocompleteUserName=
"";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.enableExternalMentionsFe=Yr(this.activeSession,"enableExternalMentionsFe");this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.textAreaLastAtSymbolLocation=this.textAreaLastCursorLocation=0};Y(hS,Z);hS.\u0275dir=Z.\u0275dir;
hS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?ir(a).classList.add("codefont"):ir(a).classList.remove("codefont")}))};hS.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};hS.prototype.setValue=function(a){ir(this).value!==a&&(ir(this).value=a,this.manualResize$.next())};hS.prototype.getValue=function(){return ir(this).value};
var ir=function(a){return a.textareaRef.nativeElement},q_a=function(a){var b;return(b=a.hiddenInputRef)==null?void 0:b.nativeElement},IQc=function(a){return a.enableExternalMentionsFe&&a.enableMentionsAutocomplete&&xC(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&a.taggingInProgress:!1},hr=function(a){return a.enableLiteralModeRevisions&&a.isLiteralModeSupported&&a.userPreferencesManager.currentCommentFormattingModeSubject$.value==="LITERAL"?!1:
a.enableExternalMentionsFe?a.enableMentionsAutocomplete?xC(a.activeSession)?a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent:!0:!1:a.activeSession.isInternalSession()&&a.audience==="INTERNAL"},JQc=function(a){var b;return(b=a.autocompleteUnderlayRef)==null?void 0:b.nativeElement},KQc=function(a){var b=ir(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
hS.prototype.findWord=function(a,b){var c=a.slice(0,b).search(/(?!(.*\s))/);b+=a.slice(b).search(/(\s|$)/);return{wordStart:c,wordEnd:b,word:a.slice(c,b)}};
var LQc=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"},MQc=function(a){var b=JQc(a);a=ir(a);b&&a&&(b.scrollTop=a.scrollTop)},o_a=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},p_a=function(a,b){b=b===void 0?!1:b;var c=ir(a),d=ir(a).value,e,f=(e=q_a(a))==null?void 0:e.value;e=f==null?void 0:f.length;KQc(a);var h=d.slice(0,a.textAreaLastAtSymbolLocation+1);d=a.wordInfo.word.slice(1)===f?d.slice(a.textAreaLastAtSymbolLocation+
f.length+1):d.slice(a.textAreaLastCursorLocation);e&&(a.textAreaLastCursorLocation=h.length+e);b?(b=h+f+" "+d,a.textAreaLastCursorLocation+=1):b=h+f+d;c.value=b};hS.prototype[HQc]=function(){return this.findWord};hS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(hS)))(b||hS)}}();
hS.\u0275cmp=B({type:hS,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(Wg(EQc,7),Wg(FQc,5),Wg(GQc,5));if(a&2){var c;$g(c=ah())&&(b.textareaRef=c.first);$g(c=ah())&&(b.hiddenInputRef=c.first);$g(c=ah())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&M("click",function(){o_a(b)},yha)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");d==="Escape"&&c&&(o_a(b),ir(b).focus())},yha)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},standalone:!1,features:[kg],decls:9,vars:13,consts:[["commentBoxContainer",""],["textarea",""],["hiddenInput",""],["autocompleteUnderlay",
""],[1,"pos-rel","comment-box-container",3,"keydown"],["aria-label","Comment box - add your comment","cdkFocusInitial","",3,"input","focus","blur","onAutoResize","keydown","keyup","scroll","autoResize","ngClass","disabled"],[1,"bv2-literal-mode-warning"],["id","mentions-warning","role","alert",1,"bv2-validation-error-banner"],[1,"autocomplete-input-container"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"value"],["contentEditable",
"true",1,"autocomplete-underlay"],[1,"bv2-literal-mode-warning-icon"],["svgIcon","verified_user_24px",1,"icon-xxs"],["href","http://go/buganizer-literal-mode","target","_blank"],[1,"bv2-validation-error"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"change","keyup","value"]],template:function(a,b){if(a&1){var c=r();I(0,"div",4,0);M("keydown",function(d){t(c);d.key==="Escape"&&(o_a(b),ir(b).focus());return v()});I(2,"textarea",
5,1);M("input",function(){t(c);b.contentChange.emit(b.getValue());return v()})("focus",function(d){t(c);return v(b.focus.emit(d))})("blur",function(d){t(c);return v(b.blur.emit(d))})("onAutoResize",function(d){t(c);return v(b.autoResize.emit(d))})("keydown",function(d){t(c);if(LQc(d)&&hr(b)&&b.taggingInProgress){d==null||d.preventDefault();var e;(e=q_a(b))==null||e.focus();e=d.code;var f=d.key,h=d.keyCode,k=d.which;d=new KeyboardEvent("keydown",{charCode:d.charCode,metaKey:d.metaKey,type:d.type,code:f===
"Enter"?"Tab":e,key:f==="Enter"?"Tab":f,keyCode:f==="Enter"?9:h,which:f==="Enter"?9:k});var q;(q=q_a(b))==null||q.dispatchEvent(d)}return v()})("keyup",function(d){t(c);var e=ir(b),f=e==null?void 0:e.value;b.textAreaLastCursorLocation=e.selectionStart;b.textAreaLastAtSymbolLocation=f.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!LQc(d)){d=d.target;b.scrollPosition=d.scrollTop;KQc(b);var h=b.wordInfo.word;e=h==="@";f=h.startsWith("@");var k=h.slice(h.length-1).match(/[a-z]/i);h=nua.test(h.slice(1));
if(e||f&&k&&!h){d=d.selectionStart;if(hr(b)&&!b.taggingInProgress){if(e=JQc(b)){e.textContent=b.getValue();f=JQc(b);k=ir(b);h="height width font-family margin line-height padding border".split(" ");if(f&&k){k=b.window.getComputedStyle(k);h=l(h);for(var q=h.next();!q.done;q=h.next()){q=q.value;var u=k.getPropertyValue(q);f.style.setProperty(q,u)}}MQc(b)}e=e==null?void 0:e.firstChild;f=e==null?void 0:e.textContent;e&&f&&d&&(f=new Range,f.setStart(e,d),f.setEnd(e,d),d=document.createElement("span"),
f.deleteContents(),f.insertNode(d),e=d.getBoundingClientRect(),b.autocompleteTop=e.top,b.autocompleteLeft=e.left,d.remove())}b.taggingInProgress=!0}else b.taggingInProgress=!1;if(hr(b)&&b.taggingInProgress){b.autocompleteUserName=b.wordInfo.word.slice(1);var A;(A=q_a(b))==null||A.dispatchEvent(new KeyboardEvent("keydown"))}}return v()})("scroll",function(){t(c);return v(MQc(b))});J();E(4,m_a,8,0,"div",6);E(5,n_a,3,0,"div",7);I(6,"span",8);E(7,r_a,2,1,"input",9);J();E(8,s_a,2,0,"div",10);J()}a&2&&
(z(2),D("autoResize",b.manualResize$)("ngClass",b.textareaClass)("disabled",b.disabled),ng("placeholder",b.placeholder)("id",b.idForAriaLabel),z(2),F(b.enableLiteralModeRevisions&&b.isLiteralModeSupported&&b.userPreferencesManager.currentCommentFormattingModeSubject$.value==="LITERAL"?4:-1),z(),F(IQc(b)?5:-1),z(),vg("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),z(),F(hr(b)&&b.taggingInProgress?7:-1),z(),F(hr(b)?8:-1))},dependencies:[Mv,aB,bJ,gS],styles:["textarea.banned-words-warning[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-gfx)}.bv2-literal-mode-warning[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);margin-bottom:12px;margin-top:8px;padding:8px}.bv2-literal-mode-warning-icon[_ngcontent-%COMP%]{display:inline;font-weight:bold;color:#1967d2;color:var(--primary-c700);margin-right:16px}/*# sourceMappingURL=comment_draft_textarea.css.map */"],
changeDetection:0});var NQc=function(a){return{"draft-markdown":a}},iS=function(){Z.apply(this,arguments);var a=this;this.cdr=n(NA,{self:!0});this.ref=n(ff);this.events=n(nD);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Y(iS,Z);iS.\u0275dir=Z.\u0275dir;iS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
iS.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};iS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(iS)))(b||iS)}}();
iS.\u0275cmp=B({type:iS,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&Wg($N,7);if(a&2){var c;$g(c=ah())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},standalone:!1,features:[hh([NA]),kg],decls:5,vars:5,consts:[[1,"small","no-border",3,"animationDone","selectedIndexChange","dynamicHeight","selectedIndex"],["label","Edit"],[4,"ngTemplateOutlet"],["label","Preview",3,"disabled"]],template:function(a,b){a&1&&
(I(0,"mat-tab-group",0),M("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),I(1,"mat-tab",1),C(2,t_a,1,0,"ng-container",2),J(),I(3,"mat-tab",3),C(4,u_a,1,0,"ng-container",2),J()());a&2&&(D("dynamicHeight",!1)("selectedIndex",b.selectedIndex),z(2),D("ngTemplateOutlet",b.editArea),z(),D("disabled",b.previewDisabled),z(),D("ngTemplateOutlet",b.previewArea))},dependencies:[Pv,dO,ZN,$N],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var jS=function(){Z.apply(this,arguments);this.codefont=n(zO);this.ngZone=n(ph);this.prefs=n(OG);this.hotkeys=n(nH);this.isMarkdown$=this.prefs.lastPublishMode$.pipe(y(function(a){return a==="MARKDOWN_FORMATTING_MODE"}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL";this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=!1;this.init=new LA;this.contentChange=new LA;this.focus=new LA;this.blur=new LA;this.autoResize=
new LA;this.onSubmit=new LA};Y(jS,Z);jS.\u0275dir=Z.\u0275dir;jS.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
jS.prototype.ngAfterViewInit=function(){this.init.emit(this);this.init.complete();this.commentDraftTextarea&&(this.commentDraftTextarea.setValue(this.content),this.subscriptions.add(this.commentDraftTextarea.contentChange.subscribe(this.contentChange)),this.subscriptions.add(this.commentDraftTextarea.focus.subscribe(this.focus)),this.subscriptions.add(this.commentDraftTextarea.blur.subscribe(this.blur)),this.subscriptions.add(this.commentDraftTextarea.autoResize.subscribe(this.autoResize)))};
var OQc=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&ir(a.commentDraftTextarea).focus()})};jS.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};jS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(jS)))(b||jS)}}();
jS.\u0275cmp=B({type:jS,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(Wg(hS,5),Wg(iS,5));if(a&2){var c;$g(c=ah())&&(b.commentDraftTextarea=c.first);$g(c=ah())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},
outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},standalone:!1,features:[kg,Uu],decls:2,vars:14,consts:[[3,"autoResize","keydown.control.enter","keydown.meta.enter","textareaClass","ngClass","disabled","placeholder","idForAriaLabel","audience","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"]],template:function(a,b){a&1&&(I(0,"b-comment-draft-textarea",0),S(1,"async"),M("autoResize",
function(c){return b.synchronizeHeight(c)})("keydown.control.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()})("keydown.meta.enter",function(){b.hotkeys.isEnabled()&&b.onSubmit.emit()}),J());a&2&&D("textareaClass",b.textareaClass)("ngClass",jh(12,NQc,T(1,10,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)("issueId",b.issueId)("canEditIssuesInComponent",b.canEditIssuesInComponent)("enableMentionsAutocomplete",
b.enableMentionsAutocomplete)("isLiteralModeSupported",b.isLiteralModeSupported)},dependencies:[Mv,hS,Qv],styles:["body   [_nghost-%COMP%]     textarea{resize:none;border-color:var(--text-secondary)}body   [_nghost-%COMP%]     textarea, body   [_nghost-%COMP%]     .autocomplete-underlay{max-height:40vh;min-height:130px;margin:0;width:100%;display:block;margin-bottom:8px}body   [_nghost-%COMP%]     .comment-box-container:focus-within textarea:not(:focus){padding:4px 1px 1px 7px;border:2px solid;border-color:#1a73e8;border-color:var(--primary)}body   [_nghost-%COMP%]     .autocomplete-underlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:-2;box-sizing:border-box;visibility:hidden;overflow-y:scroll;white-space:pre-line;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-input-container{position:fixed;z-index:-1;pointer-events:none}body   [_nghost-%COMP%]     .autocomplete-hidden-input{position:fixed}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input{height:18px !important;line-height:18px !important;border:0 !important;margin:0 !important;padding:0 !important;opacity:0 !important}body   [_nghost-%COMP%]     .autocomplete-input-container .autocomplete-hidden-input:focus{outline:none !important;border:0 !important;padding:0 !important}body   [_nghost-%COMP%]     textarea.codefont, body   [_nghost-%COMP%]     .draft-markdown textarea{font-family:WorkAroundWebKitAndMozilla,monospace}.good[_nghost-%COMP%]     textarea:focus{border-color:#34a853;border-color:var(--good)}.warn[_nghost-%COMP%]     textarea:focus{border-color:#fcc934;border-color:var(--warn)}.bad[_nghost-%COMP%]     textarea:focus{border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});var PQc=["captchaContainer"],kS=function(){this.ngZone=n(ph);this.window=n(jK);this.darkmodeService=n(VO);this.appEvents=n(nD);this.analytics=n(CF);this.onUpdate=new LA;this.destroyed$=new ag(1)};kS.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(gg(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
kS.prototype.ngAfterViewInit=function(){var a=this;this.onUpdate.emit("");var b;(b=this.window.recaptchaAsync)==null||b.then(function(c){var d=a.darkmodeService.clientDarkmodeSubject.getValue();a.widgetId=c.render(a.captchaContainer.nativeElement,{sitekey:"6Ley9F4iAAAAAIwZf9W4ujzph90roM2zldPodcjv",callback:function(e){a.ngZone.run(function(){a.onUpdate.emit(e);a.analytics.trackEvent("recaptchaToken","create")})},"expired-callback":function(){a.ngZone.run(function(){a.onUpdate.emit("");a.analytics.trackEvent("recaptchaToken",
"expire")})},theme:d?"dark":"light"})})};kS.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};kS.prototype.reset=function(){var a=this;if(this.widgetId!==void 0){var b;(b=this.window.recaptchaAsync)==null||b.then(function(c){c.reset(a.widgetId)})}};kS.\u0275fac=function(a){return new (a||kS)};
kS.\u0275cmp=B({type:kS,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&Wg(PQc,5);if(a&2){var c;$g(c=ah())&&(b.captchaContainer=c.first)}},outputs:{onUpdate:"onUpdate"},standalone:!1,decls:2,vars:0,consts:[["captchaContainer",""]],template:function(a){a&1&&K(0,"div",null,0)},encapsulation:2});var lS=function(){var a=this;this.checks=[];this.didTriggerBeforeUnloadHandler=!1;this.beforeUnloadEventHandler=function(b){if(a.checks.some(function(c){return c.dataChanged()}))return a.didTriggerBeforeUnloadHandler=!0,b.preventDefault(),b.returnValue="","You have unsaved changes in your form.";a.didTriggerBeforeUnloadHandler=!1};this.onUnload=function(){if(a.didTriggerBeforeUnloadHandler){var b;(b=a.didConfirm)==null||b.call(a)}};window.addEventListener("beforeunload",this.beforeUnloadEventHandler);
window.addEventListener("unload",this.onUnload)};lS.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var mS=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new ke(function(){a.checks=a.checks.filter(function(e){return e!==d})})};
lS.prototype.canDeactivate=function(a,b,c,d){a:{a=Hr(c.url).getPath()===Hr(d.url).getPath();b=l(this.checks);for(c=b.next();!c.done;c=b.next())if(c=c.value,a){if(c.triggerOnSearch&&c.dataChanged()){a=!0;break a}}else if(c.dataChanged()){a=!0;break a}a=!1}return a?QQc(this)?(this.checks=[],!0):!1:!0};var QQc=function(a){var b=window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?");if(b){var c;(c=a.didConfirm)==null||c.call(a)}return b};
lS.\u0275fac=function(a){return new (a||lS)};lS.\u0275prov=Sc({token:lS,factory:lS.\u0275fac,providedIn:"root"});var RQc=function(a){return[a]},nS=function(){this.matDialog=n(tK)};nS.prototype.show=function(a,b,c,d){this.dialog=this.matDialog.open(oS,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,componentId:d,audience:b,id:c.unlinkifiedComment!=null?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:c.formattingMode||"PLAIN"}});return Ge(nK(this.dialog))};nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275prov=Sc({token:nS,factory:nS.\u0275fac,providedIn:"root"});
var oS=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.origComment=n(sK);this.dialogRef=n(mK);this.bannedWordsChecker=n(jP);this.checkBeforeExit=n(lS);this.MARKDOWN="MARKDOWN";this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse="";this.newComment=Object.assign({},
this.origComment)};Y(oS,Z);oS.\u0275dir=Z.\u0275dir;g=oS.prototype;g.ngOnInit=function(){var a=this;this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(gg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(gg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};g.closeIfUnmodified=function(){this.isModified()||this.dialogRef.close()};
g.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};g.isModified=function(){return!Pj(this.newComment,this.origComment)};
g.closeDialogForSave=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1){if(!a.isModified())return d.return();a.enableRecaptcha&&(a.newComment.recaptchaToken=a.recaptchaResponse);return x(d,a.bannedWordsChecker.check(a.newComment.text,a.newComment.audience==="EXTERNAL",a.newComment.componentId),2)}(b=d.yieldResult)?a.dialogRef.close(a.newComment):(c=a.commentDraft)==null||OQc(c);ze(d)})};oS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(oS)))(b||oS)}}();
oS.\u0275cmp=B({type:oS,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&Wg(jS,5);if(a&2){var c;$g(c=ah())&&(b.commentDraft=c.first)}},standalone:!1,features:[hh([jP]),kg],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"contentChange","onSubmit","content","audience","textareaClass","enableMentionsAutocomplete","isLiteralModeSupported"],[1,"banned-words-warning","break-word"],[1,"inline-block",
3,"change","initialValue"],[3,"comment","issueId","audience","formattingMode"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",3,"click","disabled","color"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[1,"recaptcha-container"],[3,"onUpdate"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"section",1)(3,"p",2),
Q(4," Editing comments will not permanently remove old ones from database history. "),K(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),I(7,"a",3),Q(8," file a support request."),J()(),I(9,"b-comment-draft",4),S(10,"async"),gh("contentChange",function(c){fh(b.newComment.text,c)||(b.newComment.text=c);return c}),M("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),J(),E(11,v_a,4,1,"p",5),S(12,"async"),I(13,"b-markdown-toggle",
6),M("change",function(c){return b.newComment.formattingMode=c}),J(),E(14,w_a,1,4,"b-live-preview",7),J(),E(15,x_a,3,0,"section"),I(16,"footer",8)(17,"button",9),Q(18," Cancel "),J(),I(19,"button",10),S(20,"async"),M("click",function(){return b.closeDialogForSave()}),Q(21),S(22,"async"),J()());a&2&&(z(),dh("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId),z(6),D("href",b.contentRemovalRequestLink,uf),z(2),eh("content",b.newComment.text),D("audience",b.origComment.audience)("textareaClass",
jh(26,RQc,T(10,18,b.bannedWordsChecker.showWarning$)?"banned-words-warning":""))("enableMentionsAutocomplete",!0)("isLiteralModeSupported",!1),z(2),F(T(12,20,b.bannedWordsChecker.showWarning$)?11:-1),z(2),wg("margin-bottom",(b.newComment==null?null:b.newComment.formattingMode)!==b.MARKDOWN),D("initialValue",b.origComment.formattingMode),z(),F((b.newComment==null?null:b.newComment.formattingMode)===b.MARKDOWN?14:-1),z(),F(b.enableRecaptcha?15:-1),z(2),D("mat-dialog-close",void 0),z(2),D("disabled",
!b.isModified()||!b.isCaptchaValid())("color",T(20,22,b.bannedWordsChecker.showWarning$)?"warn":"primary"),z(2),R(" ",T(22,24,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[uK,wK,yK,xK,PA,Tx,wQ,PO,jS,kS,Qv],styles:[".recaptcha-container[_ngcontent-%COMP%]{float:right;padding-top:8px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}\n/*# sourceMappingURL=edit_comment_dialog.css.map */"],changeDetection:0});var pS=function(){this.dismissalService=n(JN);this.editIssueService=n(oL);this.butterBar=n(iK);this.issuePermissionService=n(lL);this.issueCommentService=n(GR);this.editCommentDialogService=n(nS);this.issueFullFridge=n(EF);this.matDialogService=n(tK);this.paths=n(EN);this.analytics=n(CF);this.domSafe=n(rL);this.confirmationDialogService=n(AK);this.issueComments=n(VK);this.errorHandler=n(DK);this.eventsForIssueFridge=n(CE);this.componentFridge=n(jD);this.commentFormatter=n(IN);this.confirmNoAccessService=
n(XK);this.activeSession=n(Es);this.appEvents=n(nD);this.issuePicker=n(vR);this.eventsForIssueWatcher=n(fS);this.issueInteractionsTracking=n(hL);this.enableExternalMentionsFe=Yr(this.activeSession,"enableExternalMentionsFe")},e8a=function(a,b,c){var d,e,f,h,k,q,u;return w(function(A){if(A.nextAddress==1)return x(A,Ge(a.issueFullFridge.watch(b)),2);if(A.nextAddress!=3){d=A.yieldResult;f=(e=d)==null?void 0:e.snapshot[0].componentId;h=a.editIssueService.savingState(b);if(h.get("commentEdit"))return A.return();
a.butterBar.dismiss();q=(k=a.issuePermissionService.audience())!=null?k:"EXTERNAL";return x(A,a.editCommentDialogService.show(b,q,c,f),3)}u=A.yieldResult;if(u==null)return A.return();SNc(a.issueCommentService,{issueId:b,newCommentId:u.id,newComment:u.text,newCommentFormattingMode:u.formattingMode,recaptchaToken:u.recaptchaToken});ze(A)})},TQc=function(a,b,c){var d,e,f;return w(function(h){if(h.nextAddress==1)return c?x(h,SQc(a,b),2):h.return();if(h.nextAddress!=3)return d={title:"Choose target issue",
defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResource:{id:b,type:"issue"},edgeType:"copyComment"},x(h,a.issuePicker.open(d),3);e=h.yieldResult;if((f=e)==null?0:f.length){var k=Hq(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}ze(h)})},SQc=function(a,b){function c(ma){return G.get(ma)}var d,e,f,h,k,q,u,A,G,H,N,O,U,da;return w(function(ma){if(ma.nextAddress==1)return x(ma,Ge(a.issueFullFridge.watch(b)),
2);if(ma.nextAddress!=3){d=ma.yieldResult;if(!d)return ma.return([]);f=(e=d.snapshot[0].duplicateIssueId)!=null?e:[];k=(h=d.snapshot[0].blockingIssueId)!=null?h:[];u=(q=d.snapshot[0].blockedByIssueId)!=null?q:[];return x(ma,Ge(a.issueFullFridge.watchSet(jk([].concat(p(f),p(k),p(u))))),3)}A=ma.yieldResult;G=new Map(A.map(function(ra){return[ra.issueId,ra]}));H=u.map(c).filter(Tk).map(y_a("BLOCKED_BY"));N=k.map(c).filter(Tk).map(y_a("BLOCKING"));O=f.map(c).filter(Tk).map(y_a("DUPLICATE"));U=[].concat(p(H),
p(N),p(O));da=z_a(U);return ma.return(da)})},VQc=function(a,b,c){var d;return w(function(e){return e.nextAddress==1?c?x(e,mEc(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Oi("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?x(e,UQc(a,b,c),0):e.return()})},UQc=function(a,b,c){var d,e;return w(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();Mq(a.butterBar,"Restoring comment...",
0);te(f,2,3);Nq(d,"commentUndelete");return x(f,a.issueComments.undelete(b,c),5);case 5:Mq(a.butterBar,"Comment restored successfully.");case 3:ue(f);nL(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);we(f,0);break;case 2:e=xe(f),Mq(a.butterBar,"Comment restoration failed."),FK(a.errorHandler,e),f.jumpTo(3)}})},YQc=function(a,b,c,d){var e,f,h,k;return w(function(q){if(q.nextAddress==1){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?
q.return():x(q,WQc(a,b),2)}return q.nextAddress!=3?(f=q.yieldResult,a.butterBar.dismiss(),x(q,Ge(nK(a.matDialogService.open($Jc,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(h=q.yieldResult)?x(q,XQc(a,b,c,h.value,(k=d)!=null?k:""),0):q.jumpTo(0)})},XQc=function(a,b,c,d,e){var f,h;return w(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();te(k,2,3);Mq(a.butterBar,"Deleting comment...",0);Nq(f,"commentDelete");
return x(k,a.issueComments.delete(b,c,d,e),5);case 5:Mq(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:ue(k);nL(f,"commentDelete");a.issueFullFridge.poke(b);we(k,0);break;case 2:h=xe(k),Mq(a.butterBar,"Comment deletion failed."),FK(a.errorHandler,h),k.jumpTo(3)}})},WQc=function(a,b){var c,d,e,f,h,k,q,u;return w(function(A){switch(A.nextAddress){case 1:return x(A,Ge(a.issueFullFridge.watch(b,{trustUncertainMemory:!0})),2);case 2:c=
A.yieldResult;e=((d=c)==null?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;A.jumpTo(3);break}return x(A,Ge(a.componentFridge.watch(e)),4);case 4:f=A.yieldResult;case 3:return h=f,k=new CQc("Other","USER_REQUEST"),h&&h.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),q=new CQc("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(q.enabled=!1,q.disabledReason="available on Public components"),u=new CQc("Personally Identifiable Information",
"RESTRICTED"),A.return([u,q,k])}})},ZQc=function(a,b,c){var d,e;return w(function(f){if(f.nextAddress==1)return d=kL(a.issuePermissionService,Dk(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),x(f,a.showContentJudgementDialog({severity:Bn(c.commentContentVerdict),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:e.contentJudgement.severity}},
a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b),GF(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ze(f)})};pS.prototype.showContentJudgementDialog=function(a){return Ge(nK(this.matDialogService.open(ER,{panelClass:"no-jitter",width:"500px",data:a})))};
var $Qc=function(a,b,c){var d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(nK(a.matDialogService.open(FR,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},aRc=function(a,b,c,d){var e;w(function(f){if(f.nextAddress==1){if(d==null)return f.return();a.analytics.trackEvent("restrictedContent","updateContentJudgement","attachment");return x(f,a.showContentJudgementDialog({severity:Bn(d.contentVerdict),resourcePath:"issues/"+b+"/attachments/"+d.attachmentId,
hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:e.contentJudgement.severity}},a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b),GF(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});ze(f)})};
pS.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q;w(function(u){if(u.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return u.return();e=Ge;f=c.matDialogService;h=f.open;k=ZJc;return x(u,WQc(c,a),3)}return u.nextAddress!=2?x(u,e(nK(h.call(f,k,{width:"560px",data:{deletionReasons:u.yieldResult,attachmentId:b.attachmentId}}))),2):(q=u.yieldResult)?x(u,UFc(c.editIssueService,a,b,q.value),0):u.jumpTo(0)})};
var bRc=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,h,k;return w(function(q){if(q.nextAddress==1){if(!a.enableExternalMentionsFe&&a.issuePermissionService.accessLevel()!=="INTERNAL"||a.enableExternalMentionsFe&&xC(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return q.return(!0);te(q,2);var u=a.commentFormatter;var A={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=
null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};u=A.formattingMode==="LITERAL"||A.comment.trim()===""?Ce([]):XJc(u,A).pipe(y(VUa));return x(q,Ge(u),4)}if(q.nextAddress!=2)return h=q.yieldResult,q.return(WEc(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=xe(q);FK(a.errorHandler,k);return q.return(!1)})},cRc=function(a,b){b=b===void 0?"comment":b;var c,d,e;return w(function(f){if(f.nextAddress==1)return(c=a.issuePermissionService.accessLevel())&&
c==="INTERNAL"||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||wC(a.activeSession)?f.return(!0):x(f,a.dismissalService.isDismissed(cVa(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Oi("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Oi("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:Gb(b)}return f.return(Ge(nK(a.matDialogService.open(KN,
{width:"500px",data:{content:e,action:b}}))))})};
pS.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!bFc(c)||f.get("comment"))return u.return(!1);Nq(f,"comment");h=function(){nL(f,"comment")};return x(u,bRc(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=u.yieldResult,k?x(u,cRc(e),3):(h(),u.return(!1));case 3:q=u.yieldResult;if(!q)return h(),u.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");Oq(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return x(u,e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){h();e.appEvents.commentSubmitted.next(b);e.appEvents.scrollToCommentBox.next()}),4);case 4:return u.return(!0)}})};
pS.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return w(function(q){if(q.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",x(q,b.showContentJudgementDialog({severity:h,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);ze(q)})};
pS.prototype.updateCommentReaction=function(a){var b=this,c;return w(function(d){return d.nextAddress==1?a.hasReacted?x(d,cRc(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};pS.\u0275fac=function(a){return new (a||pS)};pS.\u0275prov=Sc({token:pS,factory:pS.\u0275fac,providedIn:"root"});var qS=function(){this.editIssueService=n(oL);this.issuePicker=n(vR);this.analytics=n(CF);this.butterBar=n(iK)},dRc=function(a,b){var c,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResource:{id:b,type:"issue"},componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),x(u,a.issuePicker.open(e),2);if(u.nextAddress!=3){h=u.yieldResult;
if((k=h)==null||!k.length)return c.status=d,u.return("DISMISSED");if(b===h[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),u.return("DISMISSED");q=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(q/2E3),600)+"s",q);a.analytics.trackEvent("editIssue","setCanonicalIssue");frc(a.analytics,"DUPLICATE");return x(u,LFc(a.editIssueService,b,h[0]),3)}return u.return("DUPLICATE")})};
qS.\u0275fac=function(a){return new (a||qS)};qS.\u0275prov=Sc({token:qS,factory:qS.\u0275fac,providedIn:"root"});var rS=function(){var a=this;this.componentFridge=n(jD);this.issueEditComponentService=n(DN);this.trackerHelpers=n(LK);this.activeSession=n(Es);this.componentId$=new ag(1);this.showPickerOverlayAbove=this.viewOnly=!1;this.handleSave=!0;this.compactMode$=new tj(!1);this.componentChanged=new LA;this.displayValueOverride="";this.editing=!1;this.component$=this.componentId$.pipe(fg(function(b){return a.componentFridge.watch(b).pipe(eg(void 0))}));this.isArchived$=this.component$.pipe(y(function(b){return b==
null?void 0:b.archived}));this.showPublicIndicator$=this.component$.pipe(y(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||a.activeSession.isExternalSession()?!1:a.activeSession.isInternalSession()||wC(a.activeSession)?b==="EXTERNAL_PUBLIC":!1}));this.showPartnerIndicator$=this.component$.pipe(y(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||a.activeSession.isExternalSession()||wC(a.activeSession)?!1:
a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=Je([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b?{icon:"folder_shared_24px",tooltip:"Public component. Issues can be made visible to public Google Search."}:c?{icon:"folder_shared_24px",tooltip:"Partner component. Issues can be made visible to Google partners."}:Gq(a.activeSession)?{icon:"folder_special_24px",tooltip:"This component is inside a tracker"}:
{icon:"folder",tooltip:""}}),eg({icon:"folder",tooltip:""}));this.componentPath$=Je([this.componentId$,this.component$,this.compactMode$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return tSa({componentPathId:[Number(b)]});b=rs(a.trackerHelpers,d.componentPathInfo);b=tSa(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],h=e===b.length-1?48:32;if(d>=h)break;var k=String(f.name),q=void 0;if(d+[].concat(p(k)).length>h){var u=h-d;h="";k=
k===void 0?"":k;u=u===void 0?48:u;h=h===void 0?"...":h;q=[].concat(p(k));q.length<=u||(k=u-[].concat(p(h)).length,k=q.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=h+k);q=!0}d+=[].concat(p(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:q}));if(q)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(y(function(b){return!b}));this.isThinkingAndEmpty$=Je([this.componentFridge.thinking$,this.isEmpty$]).pipe(y(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(y(function(b){return!b}))};rS.prototype.ngOnInit=function(){};var S_a=function(a,b){a.editing=!1;(b=b==null?void 0:b.componentId)&&(a.handleSave?a.issueEditComponentService.updateComponent(a.issueId,b):a.componentChanged.emit(b))};
ea.Object.defineProperties(rS.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.componentId$.next(a)}},compactMode:{configurable:!0,enumerable:!0,set:function(a){this.compactMode$.next(a)}}});rS.\u0275fac=function(a){return new (a||rS)};
rS.\u0275cmp=B({type:rS,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",viewOnly:"viewOnly",popoutLink:"popoutLink",showPickerOverlayAbove:"showPickerOverlayAbove",handleSave:"handleSave",compactMode:"compactMode",displayValueOverride:"displayValueOverride"},outputs:{componentChanged:"componentChanged"},standalone:!1,decls:2,vars:1,consts:[["card",""],["cardBody",""],[3,"isReady"],["placeholder","Choose Component",3,"selectedComponent","isRequired",
"shouldFocus","showOverlayAbove"],[1,"b-chip","squared","s"],["title","Component folder path",1,"icon-xs",3,"svgIcon","matTooltip"],[1,"component-path"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn"],["mat-icon-button","","aria-label","View Component (Link opens in a new window)","matTooltip","View Component","target","_blank",1,"small","pop-out-btn",3,"routerLinkObj"],["href","javascript:void(0);","title","Show all Components",
"role","button",1,"subtle-link"],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components","role","button",1,"subtle-link",3,"click"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger","muted"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],[1,"view-only-component",3,"muted"],[1,"view-only-component"],[3,"onedevIsHovercardReady","componentId"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",
1,"edit-btn",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["svgIcon","pop-out",1,"icon-xs"],["placeholder","Choose Component",3,"selectedComponentChange","dropdownClosed","selectedComponent","isRequired","shouldFocus","showOverlayAbove"]],template:function(a,b){a&1&&E(0,R_a,13,22,"b-async-data-placeholder",2)(1,T_a,2,6,"b-team-component-picker",3);a&2&&F(b.editing?1:0)},dependencies:[mO,aB,WB,PA,Ux,xN,fJ,gJ,lJ,hJ,YA,cB,nN,Qv],styles:["[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}a[_ngcontent-%COMP%], .view-only-component[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.b-chip[_ngcontent-%COMP%]{margin-right:0}.edit-btn[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]{height:22px;width:22px;line-height:22px;margin-right:-4px;margin-left:4px;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid;border-left-color:#fff;border-left-color:var(--background)}.edit-btn[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple, .pop-out-btn[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple{border-radius:inherit}.edit-btn[_ngcontent-%COMP%]:hover, .pop-out-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .pop-out-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.partner[_ngcontent-%COMP%]{background-color:#fff3e9;background-color:var(--partner-component-breadcrumb-bg);color:#202124;color:var(--partner-text);box-shadow:inset 0 0 0 2px var(--partner-component-breadcrumb-outline)}.public[_ngcontent-%COMP%]{background-color:#fff8e4;background-color:var(--public-component-breadcrumb-bg);color:#202124;color:var(--public-text);box-shadow:inset 0 0 0 2px var(--public-component-breadcrumb-outline)}.public[_ngcontent-%COMP%]   .edit-btn[_ngcontent-%COMP%], .public[_ngcontent-%COMP%]   .pop-out-btn[_ngcontent-%COMP%], .partner[_ngcontent-%COMP%]   .edit-btn[_ngcontent-%COMP%], .partner[_ngcontent-%COMP%]   .pop-out-btn[_ngcontent-%COMP%]{border-left-color:rgba(0,0,0,0)}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}"],
changeDetection:0});var V_a={accessLevel:"LIMIT_NONE",title:"Default access",descriptionWithExpandedAccess:"Assignee, verifier and collaborators may edit. CCs can comment. Regular component-level permission settings apply.",descriptionNoExpandedAccess:"Issue access determined by component-level permission settings.",icon:"acl-alias-domain"},eRc={accessLevel:"LIMIT_VIEW_TRUSTED",title:"Limited visibility + Google",descriptionWithExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',
descriptionNoExpandedAccess:'Same as "limited visibility", but also allow Googlers to access, according to their component-level permissions.',icon:"visibility-off"},U_a=[V_a,{accessLevel:"LIMIT_APPEND",title:"Limited commenting",descriptionWithExpandedAccess:"Only the assignee, verifier and collaborators may edit. CCs can comment. Issue admins retain full access. Visibility is unchanged.",descriptionNoExpandedAccess:"Only added users may edit or comment if their component-level permissions allow. Issue admins retain full access. Visibility is unchanged.",
icon:"comments_disabled_24px"},{accessLevel:"LIMIT_VIEW",title:"Limited visibility",descriptionWithExpandedAccess:"Only added users may access. The assignee, verifier and collaborators may edit. CCs can comment.",descriptionNoExpandedAccess:"Only added users may access. They have their normal access as defined by the component-level permissions.",icon:"visibility-off"},eRc];var sS=function(){Z.call(this);var a=this;this.defaultAccessLimitLevel$=new ag(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new LA;this.selectedDisplay$=new tj(null);this.displays=U_a;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=Je([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c?c:fRc(a,d)}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(y(function(c){return c.title}));var b=n(df);this.defaultAccessLimitLevel$.pipe(Gh(b)).subscribe(function(c){a.selectedDisplay$.next(fRc(a,c))})};Y(sS,Z);sS.\u0275dir=Z.\u0275dir;var fRc=function(a,b){a=l(a.displays);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.accessLevel===b)return c;return V_a};ea.Object.defineProperties(sS.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
sS.\u0275fac=function(a){return new (a||sS)};
sS.\u0275cmp=B({type:sS,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},standalone:!1,features:[kg],decls:14,vars:9,consts:[["accessLimitsMenu","matMenu"],[1,"access-limits-dropdown"],["mat-button","","mat-stroked-button","","dropdown-menu-button","","type","button",1,"access-limits-dropdown-button","gmat-mdc-button",
"small",3,"matMenuTriggerFor","disabled"],[1,"selected-access-limit-level-title"],["svgIcon","acl-alias-domain",1,"icon-s"],[1,"selected-access-limit-level-title-text"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle",3,"matTooltip"],[1,"access-limit-level-options"],["type","button","mat-menu-item","",1,"access-limit-level-option"],["type","button","mat-menu-item","",1,"access-limit-level-option",
3,"click"],[1,"access-limit-level-title"],[1,"icon-s",3,"svgIcon"],[1,"access-limit-level-title-text"],[1,"access-limit-level-description"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"button",2),S(2,"async"),I(3,"span",3),K(4,"mat-icon",4),I(5,"span",5),Q(6),S(7,"async"),J()(),K(8,"mat-icon",6),J(),E(9,X_a,1,1,"mat-icon",7),I(10,"mat-menu",8,0),Dg(12,Y_a,7,3,"button",9,Cg),J()());if(a&2){var c;a=L(11);z();D("matMenuTriggerFor",a)("disabled",b.disabled);var d;ng("aria-label","Issue Access level, "+
((d=(c=T(2,5,b.selectedDisplay$))==null?null:c.title)!=null?d:"Default access"));z(5);R(" ",T(7,7,b.issueAccessLimitLevelDisplayTitle$)," ");z(3);F(b.disabled?9:-1);z(3);Eg(b.displays)}},dependencies:[aB,PA,Tx,UG,XG,VG,YG,YA,cB,Qv],styles:[".bv2-material.d-compact .mat-mdc-menu-item.access-limit-level-option{height:fit-content;line-height:12px}.bv2-material.d-cozy .mat-mdc-menu-item.access-limit-level-option{height:fit-content;line-height:16px}.mat-mdc-menu-panel.access-limit-level-options{min-width:320px}.mat-mdc-menu-item.access-limit-level-option{--mat-menu-item-with-icon-leading-spacing:0px;--mat-menu-item-with-icon-trailing-spacing:0px;height:fit-content;line-height:20px}.mat-mdc-menu-item.access-limit-level-option:focus,.mat-mdc-menu-item.access-limit-level-option:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}.mat-mdc-menu-item.access-limit-level-option .mat-icon.icon-s{margin-right:2px}.access-limits-dropdown{padding:5px 0px}.access-limits-dropdown mat-icon{vertical-align:middle;color:#202124;color:var(--text-default)}.access-limits-dropdown>mat-icon{padding-left:3px}.access-limits-dropdown-button:disabled{background-color:var(--disabled-bg);color:var(--text-disabled)}.access-limit-level-option{padding:5px 0px}.access-limit-level-option:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.access-limit-level-title{padding:0px 10px;white-space:nowrap}.access-limit-level-title mat-icon{vertical-align:text-bottom}.access-limit-level-description{padding:0px 15px 0px 35px;color:#5f6368;color:var(--text-muted);white-space:normal}.access-limit-level-options mat-icon{color:#202124;color:var(--text-default)}.selected-access-limit-level-title{color:#202124;color:var(--text-default);font-size:small}.selected-access-limit-level-title-text{padding:0px 6px}\n"],
encapsulation:2});var tS=function(){Z.apply(this,arguments);var a=this;this.errorHandler=n(DK);this.activeSession=n(Es);this.issueApi=n(BE);this.issueFullFridge=n(EF);this.componentFridge=n(jD);this.trackerFridge=n(IG);this.eventsForIssueFridge=n(CE);this.issuePermissionService=n(lL);this.snackBar=n(fK);this.dialogRef=n(mK);this.data=n(sK);this.analytics=n(CF);this.confirmationDialogService=n(AK);this.jspbPrincipalTypes=n(jG);this.defaultAccessLimitLevel="LIMIT_NONE";this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.writers=[];this.appenders=[];this.readers=[];this.currentUserEmail=this.activeSession.getUserEmail();this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.issueId=this.data.issueId;this.issue$=this.issueFullFridge.watch(this.issueId);this.currentAccessLimitLevel$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].issueAccessLimitLevel)!=null?c:a.defaultAccessLimitLevel}));
this.updatedAccessLimitLevel$=new tj(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=Je([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.componentId=this.data.componentId;this.component$=this.componentFridge.watch(this.componentId);this.trackerId$=this.component$.pipe(y(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(fg(function(b){return b?
a.trackerFridge.watch(b):Ce(void 0)}));this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(y(function(b){return b?"This component has expanded access enabled. Assignees, verifiers, and collaborators can edit issues, and CC'd users can add comments.":"This component has expanded access disabled. Being listed on the issue does not confer any additional access privileges."}))};
Y(tS,Z);tS.\u0275dir=Z.\u0275dir;
tS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);Z_a(a,b)}));this.subscriptions.add(Je([this.tracker$,this.issue$]).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.updateCollaboratorGroups(b,c)}));this.subscriptions.add(this.hasAccessLimitLevelSelectionChanged$.subscribe(function(b){a.dialogRef.disableClose=b}));this.analytics.trackEvent("issueAccessLimits","view","issue_access_limits_dialog:"+
this.issueId)};
tS.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,h;w(function(k){if(k.nextAddress==1){c.collaboratorGroupsEmailToDetailsMap.clear();c.addedCollaboratorGroups.clear();c.removedCollaboratorGroups.clear();if(a&&a.collaboratorGroups)for(d=l(a.collaboratorGroups),e=d.next();!e.done;e=d.next())f=e.value,f.emailAddress&&c.collaboratorGroupsEmailToDetailsMap.set(f.emailAddress,{user:f,specifiedOnIssue:!1});return b&&b.snapshot&&b.snapshot[0].collaboratorsUsers?x(k,gRc(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}h=k.yieldResult;h.forEach(function(q){c.collaboratorGroupsEmailToDetailsMap.set(q.emailAddress,{user:q,specifiedOnIssue:!0})});ze(k)})};
var gRc=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(Tk),x(e,Psc(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var h;return((h=d[f.emailAddress])==null?void 0:h.principalType)==="GROUP"}))})},hRc=function(a){return a?"Expanded access on":"Expanded access off"},b0a=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},Z_a=function(a,b){a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added_dryrun:"+a.issueId);a.removedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed_dryrun:"+a.issueId);a.issueApi.getRetainedAccessPrincipals(a.issueId,b,Array.from(a.addedCollaboratorGroups),Array.from(a.removedCollaboratorGroups)).then(function(c){a.writers=Vp(c.writers);a.appenders=Vp(c.appenders);a.readers=Vp(c.readers)},function(c){FK(a.errorHandler,
c)})};g=tS.prototype;g.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};g.closeDialog=function(){this.dialogRef.close()};g.onEnter=function(){this.onPressSave()};g.onEscape=function(){this.dialogRef.close()};
g.onPressSave=function(){var a=this,b=Sp({user:{emailAddress:this.currentUserEmail}});if(this.writers.includes(b)||this.appenders.includes(b)||this.readers.includes(b))this.save();else{b="You will lose access";var c="You will no longer be able to access this issue. Are you sure you want to proceed?";this.writers.length===0&&this.appenders.length===0&&this.readers.length===0&&(b="Issue will be orphaned",c="No one will be able to access this issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?");
this.confirmationDialogService.open({title:b,content:Oi(c),onConfirm:function(){a.save()}})}};
g.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,this.updatedAccessLimitLevel$.value,Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent("issueAccessLimits","update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added:"+a.issueId);a.removedCollaboratorGroups.size>
0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed:"+a.issueId)},function(b){FK(a.errorHandler,b)})};g.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFullFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};g.onPressCancel=function(){this.dialogRef.close()};tS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(tS)))(b||tS)}}();
tS.\u0275cmp=B({type:tS,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&M("keydown.escape",function(){return b.onEscape()})},standalone:!1,features:[kg],decls:38,vars:42,consts:[[1,"bv2-issue-limits-title"],[1,"lock-circle"],["svgIcon","lock","color","text-primary"],[1,"issue-limits-dialog-title-txt"],[3,"issueId","componentId","compactMode","popoutLink","viewOnly"],[1,"expanded-access"],[1,"expanded-access-txt"],["svgIcon","help-outline","tabindex","0","aria-hidden",
"false","aria-label","Help","role","button",1,"icon-s","valign-middle",3,"matTooltip"],[3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"user-display-area"],[1,"limit-users-title"],["idForInputBox","Users who can edit, comment, and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can comment and view",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Users who can only view",3,"users","includeAliases",
"includeViewAliases"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","close"],[1,"collaborator-groups-title"],[1,"collaborator-groups-checkboxes"],[1,"collaborator-group-checkbox",3,"id","name","checked"],[1,"collaborator-group-checkbox",3,"click","change","id","name","checked"],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["type","button","mat-button","",1,
"medium","close",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"span",1),K(2,"mat-icon",2),J(),I(3,"h2",3),Q(4,"Issue access level"),J()(),I(5,"mat-dialog-content")(6,"div"),K(7,"b-component-breadcrumb-chip",4),I(8,"span",5),S(9,"async"),I(10,"span",6),Q(11),S(12,"async"),J(),K(13,"mat-icon",7),S(14,"async"),J()(),I(15,"b-issue-access-limits-dropdown",8),S(16,"async"),S(17,"async"),S(18,"async"),M("updatedAccessLimitLevel",function(h){b.updatedAccessLimitLevel$.next(h);Z_a(b,h)}),J(),E(19,
a0a,8,3),S(20,"async"),I(21,"div",9)(22,"div")(23,"div",10),Q(24,"Users who can edit, comment, and view"),J(),K(25,"b-multi-user-input",11),J(),I(26,"div")(27,"div",10),Q(28,"Users who can comment and view"),J(),K(29,"b-multi-user-input",12),J(),I(30,"div")(31,"div",10),Q(32,"Users who can only view"),J(),K(33,"b-multi-user-input",13),J()()(),I(34,"div",14),E(35,c0a,5,3),S(36,"async"),Ag(37,d0a,2,0,"button",15),J());if(a&2){z(7);D("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("viewOnly",!0);z();wg("expanded-access-on",T(9,26,b.isImplicitAccessEnabled$));z(3);var c;ch(hRc((c=T(12,28,b.isImplicitAccessEnabled$))!=null?c:!1));z(2);var d;D("matTooltip",(d=T(14,30,b.expandedAccessTooltip$))!=null?d:"");z(2);var e,f;D("disabled",!T(16,32,b.hasAclToAdmin$))("defaultAccessLimitLevel",(e=T(17,34,b.currentAccessLimitLevel$))!=null?e:b.defaultAccessLimitLevel)("implicitAccessEnabled",(f=T(18,36,b.isImplicitAccessEnabled$))!=null?
f:!1);z(4);F(b.collaboratorGroupsEmailToDetailsMap.size>0&&T(20,38,b.hasAclToAdmin$)?19:-1);z(6);D("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);ng("disabled",!0);z(4);D("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);ng("disabled",!0);z(4);D("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);ng("disabled",!0);z(2);F(T(36,40,b.hasAclToAdmin$)?35:37)}},dependencies:[sS,aB,rS,PA,Tx,yK,xK,YA,cB,YO,yM,CM,Qv,Vv],styles:[".issue-limits-dialog-title-txt[_ngcontent-%COMP%]{padding:0 20px;font-size:1.4rem;line-height:2rem}.user-display-area[_ngcontent-%COMP%]{min-height:400px}.limit-users-title[_ngcontent-%COMP%]{font-weight:400;color:#202124;color:var(--text-default);padding-bottom:5px;font-size:1rem}.bv2-issue-limits-title[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;font-weight:400;padding:20px 24px 0}.limit-option[_ngcontent-%COMP%]{padding:10px 0}.limit-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.limit-title[_ngcontent-%COMP%]{padding:0 20px;white-space:nowrap}.selected-limit-title[_ngcontent-%COMP%]{padding:0 5px 0 10px;color:#202124;color:var(--text-default);font-size:small}.limit-description[_ngcontent-%COMP%]{padding:0 40px}.limit-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}b-component-breadcrumb-chip[_ngcontent-%COMP%]{margin-right:16px}.expanded-access[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-color:#c5221f;border-color:var(--text-bad);border-radius:3px;padding:5px;background-color:var(--bad-bg);vertical-align:middle}.expanded-access[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-bottom:1px}.expanded-access-on[_ngcontent-%COMP%]{border-color:#188038;border-color:var(--text-good);background-color:var(--good-bg)}.lock-circle[_ngcontent-%COMP%]{border:solid;border-color:#1a73e8;border-color:var(--primary);border-radius:50%;background-color:var(--primary);color:#fff;color:var(--background);padding:12px;display:inline-block}.edit-btn[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%], a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}b-issue-access-limits-dropdown[_ngcontent-%COMP%]{display:block;padding:20px 0}.mat-mdc-checkbox[_ngcontent-%COMP%]{padding-right:5px}.collaborator-groups-title[_ngcontent-%COMP%]{padding:0 5px 5px 0;font-size:1rem}.collaborator-groups-checkboxes[_ngcontent-%COMP%]{padding:5px 10px 20px 0}div.disabled[_ngcontent-%COMP%]{color:var(--text-disabled)}.collaborator-groups-email[_ngcontent-%COMP%]{padding-right:20px}.expanded-access-txt[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%]{padding:5px}\n/*# sourceMappingURL=issue_access_limits_dialog.css.map */"]});
var uS=function(){this.dialog=n(tK);this.dialogRef=null};uS.prototype.open=function(a){this.dialogRef=this.dialog.open(tS,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};uS.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275prov=Sc({token:uS,factory:uS.\u0275fac,providedIn:"root"});var vS=function(){this.buttonRef=n(ff);this.toRefocus=!1};vS.prototype.ngOnChanges=function(){var a=this;this.disabled?(document.activeElement!==this.buttonRef.nativeElement||this.toRefocus||(this.toRefocus=!0),this.buttonRef.nativeElement.disabled=!0):(this.buttonRef.nativeElement.disabled=!1,document.activeElement!==this.buttonRef.nativeElement&&this.toRefocus&&setTimeout(function(){a.buttonRef.nativeElement.focus();a.toRefocus=!1}))};vS.\u0275fac=function(a){return new (a||vS)};
vS.\u0275dir=Kf({type:vS,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},standalone:!1,features:[Uu]});var wS=function(){this.activeSession=n(Es);this.cdr=n(qv);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new LA;this.isAnonymous=this.activeSession.isAnonymous()};g=wS.prototype;g.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.markForCheck())};g.onEnter=function(a){this.onClick(a)};g.isDisabled=function(){return this.isAnonymous||this.disabled};
g.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};g.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};wS.\u0275fac=function(a){return new (a||wS)};
wS.\u0275cmp=B({type:wS,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},standalone:!1,decls:4,vars:7,consts:[["tooltip","matTooltip"],[1,"inline-block",3,"matTooltip"],["type","button","mat-icon-button","","focusBack","","role","checkbox",1,"small",3,"keydown.enter","click","focus","blur","disabled"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&
1){var c=r();I(0,"div",1,0)(2,"button",2);M("keydown.enter",function(d){t(c);return v(b.onEnter(d))})("click",function(d){t(c);return v(b.onClick(d))})("focus",function(){t(c);var d=L(1);return v(d.show())})("blur",function(){t(c);var d=L(1);return v(d.hide())});K(3,"mat-icon",3);J()()}a&2&&(D("matTooltip",b.getLabel()),z(2),wg("starred",b.starred),D("disabled",b.isDisabled()),ng("aria-label",b.getAriaLabel())("aria-checked",b.starred),z(),D("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[aB,
PA,Ux,YA,cB,vS],styles:["[_nghost-%COMP%]{opacity:.9;text-align:center}[_nghost-%COMP%]:hover{opacity:1}[_nghost-%COMP%]   button.mat-mdc-icon-button[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}[_nghost-%COMP%]   button.mat-mdc-icon-button.starred[_ngcontent-%COMP%]{color:#e37400;color:var(--favorite-star)}[_nghost-%COMP%]   button.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px;margin-right:initial}"],changeDetection:0});var xS=function(){this.activeSession=n(Es);this.ROUTES=Fq;this.isCompact=!1;this.starClicked=new LA;this.currentUserEmail=this.activeSession.getUserEmail()};xS.prototype.ngOnInit=function(){};xS.prototype.isDirectAdmin=function(a){return a?Bk(a.adminUsers).includes(this.currentUserEmail):!1};xS.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};xS.\u0275fac=function(a){return new (a||xS)};
xS.\u0275cmp=B({type:xS,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},standalone:!1,decls:1,vars:1,consts:[[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred"],[1,"spacer"],["target","_blank",1,"keep-focus-ring",3,"click","keydown.enter","matTooltip","routerLink"],["svgIcon",
"pop-out",1,"icon-s"],[1,"valign-middle",3,"starClicked","starMessage","unStarMessage","acceptInput","starred"]],template:function(a,b){a&1&&E(0,g0a,5,5,"span",0);a&2&&F(b.hotlist?0:-1)},dependencies:[aB,FA,wS,YA,cB,Qv],styles:[".hotlist-link-and-star[_ngcontent-%COMP%]{height:50px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .hotlist-link-and-star[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:17px;line-height:17px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:2px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}.hotlist-link-and-star[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=hotlist_matlist_option.css.map */"],
changeDetection:0});var iRc=function(){this.tokens=new Map};iRc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};iRc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new jRc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var jRc=function(a){this.sortedEntries=a};
jRc.prototype.match=function(a){for(var b=0,c=this.sortedEntries.length-1;b<=c;){var d=b+Math.floor((c-b)/2),e=this.sortedEntries[d].token;if(a===e){b=d;break}else a>e?b=d+1:c=d-1}for(c=[];b<this.sortedEntries.length;b++)if(this.sortedEntries[b].token.startsWith(a))c.push(this.sortedEntries[b]);else break;return c};jRc.prototype.search=function(a){var b=new Set;a=l(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=l(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var kRc=function(a,b){if(b.length===0)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&c.size>0;d++){var e=[].concat(p(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var lRc=function(a){this.hotlists=a;var b=new iRc,c=new iRc;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.name)==null?0:e.trim())?xJa(d.name.toLowerCase()):[];e=l(f);for(f=e.next();!f.done;f=e.next())b.add(f.value,d);e=void 0;f=((e=d.description)==null?0:e.trim())?xJa(d.description.toLowerCase()):[];e=l(f);for(f=e.next();!f.done;f=e.next())c.add(f.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(h,
k){return[h,k]}))};
lRc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=l(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=d.name)==null?void 0:e.toLowerCase(),h=void 0;e=(h=d.description)==null?void 0:h.toLowerCase();h=d.hotlistId;var k=void 0,q=void 0;(dua(a)&&String(h).includes(a)||((k=f)==null?0:k.includes(a))||((q=e)==null?0:q.includes(a)))&&b.add(d)}a=xJa(a);c=l(kRc(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=l(kRc(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return mRc(this,b)};var mRc=function(a,b){return[].concat(p(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var yS=function(){this.innerHeight$=Ne(Oe(function(){return Ce(window.innerHeight)}),Qe(window,"resize").pipe(y(function(){return window.innerHeight})))};yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275prov=Sc({token:yS,factory:yS.\u0275fac,providedIn:"root"});var w0a=function(a,b){return b.hotlistId},nRc={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},zS=function(){Z.call(this);var a=this;this.dialogRef=n(mK);this.data=n(sK);this.paths=n(EN);this.hotlistFridge=n(JD);this.currentUserBookmarksFridge=n(OD);this.hotlistApi=n(ED);this.snackBar=n(fK);this.appEvents=n(nD);this.errorHandler=n(DK);this.userApi=n(ID);this.windowHeight=n(yS);this.permissionsFridge=n(iG);this.activeSession=n(Es);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=nRc;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new tj("");this.debouncedQuery$=this.query$.pipe(Sf(100),eg(""));this.hotlists=[];var b;this.allHotlistIds=new Set([].concat(p(this.data.selectedHotlistIds),p((b=this.data.partiallySelectedHotlistIds)!=null?b:[])));this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.partiallySelectedHotlistIds=new Set(this.data.partiallySelectedHotlistIds);
var c;this.selectedHotlistIdsMap=J0a((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=J0a((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);I0a(this.data);this.originalIds=new Set(this.data.selectedHotlistIds);this.pristine=!0;this.saveBtnLabel="Save";this.saveBtnTooltip="Save your hotlist choices (Shift + Enter)";this.hotlistUnderEdit=new sy({name:new uy("",ky),description:new uy("")});this.starredHotlists=new uC;this.isSavingStar=new uC;this.userHotlists$=
PD(this.currentUserBookmarksFridge).pipe(y(function(e){return e.sort(G0a)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(y(function(e){return e.sort(G0a)}));this.combineHotlistsWithPermissions=y(function(e){var f=a.permissionsFridge.watchSet(e.map(function(h){return"hotlists/"+h.hotlistId}));return e.map(function(h,k){return Object.assign({},h,{permissions$:f.pipe(y(function(q){return q[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
Je([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(y(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;return[].concat(p(e.map(function(k){return Object.assign({},k,{type:"ISSUE"})})),p(h.map(function(k){return Object.assign({},k,{type:"RECOMMENDED"})})),p(f.map(function(k){return Object.assign({},k,{type:"USER"})})))}),y(Mua(function(e){return e.hotlistId})),y(function(e){return e.filter(Tk)}),this.combineHotlistsWithPermissions,cg({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(y(function(e){return new lRc(e)}),cg({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new bg;this.matchedHotlists$=Je([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(y(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e.trim()!==""?h.search(e):f}),cg({bufferSize:1,refCount:!0}));this.visibleHotlists$=Je([this.matchedHotlists$,Ue(this.matchedHotlists$.pipe(y(function(){return!1})),
this.forceShowOverflow$)]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length>200&&!f?e.slice(0,200):e}),cg({bufferSize:1,refCount:!0}));this.isOverflowMode$=Je([this.matchedHotlists$,this.visibleHotlists$]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(y(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&dua(e)}));this.showCreateNew$=Je([this.query$,this.matchedHotlists$]).pipe(y(function(e){var f=
l(e);e=f.next().value;f=f.next().value;return H0a(e,f)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(y(function(e){return Math.max(1,Math.floor(e*.5/24))}),Xf());this.compactNumberOfHotlistsToShow$.pipe(y(function(e){return e*24}));this.subscriptions.add(this.hotlists$.subscribe(function(e){a.hotlists=e;e=l(e);for(var f=e.next();!f.done;f=e.next())a.allHotlistIds.add(f.value.hotlistId)}))};Y(zS,Z);zS.\u0275dir=Z.\u0275dir;
zS.prototype.ngOnInit=function(){var a=this;oRc(this);this.query$.pipe(gg(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
zS.prototype.onCheckboxChange=function(a,b){a.checked?this.selectedHotlistIds.add(b):this.selectedHotlistIds.delete(b);for(var c=l(this.selectedHotlistIdsMap.values()),d=c.next();!d.done;d=c.next())d=d.value,a.checked?d.add(b):d.delete(b);a=Oj(this.originalIds,this.selectedHotlistIds);b=[];c=l(this.selectedHotlistIdsMap.entries());for(d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;var f=e.next().value;e=void 0;(d=Oj(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var h;b=(h=a==null?void 0:a.added.length)!=null?h:0;var k;h=(k=a==null?void 0:a.removed.length)!=null?k:0;h=l(a?b>0&&h===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&h>0?["Remove ("+h+")","Remove "+h+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+h+" removed)"]:["Save","(No changes)"]);k=h.next().value;h=h.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=h};
var jr=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},D0a=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},pRc=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},C0a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=D0a(a),c=pRc(a);a.hotlistApi.createHotlist(b,c).then(function(d){a.snackBar.open('Hotlist "'+d.name+
"'\" saved.","dismiss",{duration:3E3});var e=d.hotlistId;a.appEvents.hotlistChanged.next({hotlistId:e});a.selectedHotlistIds.add(e);a.selectedHotlistIdsMap.forEach(function(f){f.add(e)});a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})}).catch(function(d){a.errorHandler.errorHandler(null,d)})},oRc=function(a){Ge(toc(a.currentUserBookmarksFridge)).then(function(b){a.starredHotlists.clear();for(var c=l(b.hotlists),d=c.next();!d.done;d=c.next()){d=
d.value;var e=Number(d.id);d.starred&&a.starredHotlists.add(e)}b=l(b.bookmarkGroups);for(c=b.next();!c.done;c=b.next())for(c=l(c.value.sublinks||[]),d=c.next();!d.done;d=c.next())d=d.value,d.starred&&a.starredHotlists.add(Number(d.id))}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
zS.prototype.toggleStar=function(a){var b=this,c,d,e;return w(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};te(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),x(f,b.userApi.removeUserBookmark(d),3);b.starredHotlists.add(a);return x(f,b.userApi.addUserBookmark(d),3);case 3:ue(f);b.isSavingStar.delete(a);we(f,4);break;case 2:e=xe(f);FK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
ze(f)}})};var j0a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);jr(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};zS.\u0275fac=function(a){return new (a||zS)};
zS.\u0275cmp=B({type:zS,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&M("keydown.meta.enter",function(){return jr(b)})("keydown.shift.enter",function(){return jr(b)})("keydown.control.enter",function(){return jr(b)})},standalone:!1,features:[kg],decls:11,vars:2,consts:[["createNewHotlistBtn",""],["createNewHotlistPane",""],["searchBox",""],["content",""],["tooltip","matTooltip"],["type","button","mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal",
"role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"mat-dialog-close","matTooltip","disabled"],[4,"ngTemplateOutlet"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter hotlists from your sidebar",1,"search-box",3,"input"],["mat-dialog-content","",1,"search-results"],["type","button",1,"load-from-id-btn"],["type","button",1,"create-new-hotlist-btn"],
["type","button",1,"load-from-id-btn",3,"click"],[1,"muted"],["type","button",1,"create-new-hotlist-btn",3,"click"],[1,"grid-two-col"],["aria-label","Hotlists","role","listbox"],[1,"column-1"],[3,"matTooltip"],[1,"hotlist-actions-column"],[1,"full-width",3,"has-description","hotlist","isCompact","starredHotlists","isSavingStar"],[1,"margin-top","kids-x"],[3,"class"],["role","option",1,"hotlist-list-item",3,"height"],["svgIcon","issue-status-new",1,"icon-s","vertical-centered"],["svgIcon","star-filled",
1,"icon-s","canned-search-icon"],[1,"icon-s"],["role","option",1,"hotlist-list-item",3,"focus","blur"],[1,"flex-kids-x","align-items-center"],["role","checkbox",3,"change","value","checked","disabled","indeterminate"],[1,"hotlist-matlist-option"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"],["role","checkbox",3,"click","change","value","checked","disabled","indeterminate"],[1,"full-width",3,"starClicked","hotlist","isCompact","starredHotlists","isSavingStar"],["type",
"button",1,"force-show-overflow-btn",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["type","button","mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",3,"click","disabled"],["mat-dialog-content",""],[1,"create-hotlist-pane"],[3,"formGroup"],["for","hotlist-name"],"type text autofocus autofocus id hotlist-name required  aria-required true formControlName name".split(" "),["for","hotlist-description",
1,"margin-s-top"],["id","hotlist-description","formControlName","description"]],template:function(a,b){if(a&1){var c=r();E(0,i0a,1,1,"ng-container")(1,y0a,15,9);I(2,"mat-dialog-actions")(3,"button",5);M("click",function(){t(c);b.dialogRef.close();return v()});Q(4," Cancel ");J();E(5,A0a,1,1,"ng-container")(6,B0a,2,5,"button",6);J();C(7,E0a,2,1,"ng-template",null,0,nh)(9,F0a,14,1,"ng-template",null,1,nh)}a&2&&(F(b.showCreateNewPane?0:1),z(5),F(b.showCreateNewPane?5:6))},dependencies:[Pv,aB,uK,wK,yK,
xK,yM,CM,PA,Tx,gM,sM,tM,wy,Li,oy,py,Gy,By,Cy,YA,cB,xS,Qv],styles:[".left-padding[_ngcontent-%COMP%]{padding-left:10px}[_nghost-%COMP%]     .mat-mdc-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-mdc-dialog-title{margin:0}[_nghost-%COMP%]     .mat-mdc-dialog-title::before{height:unset}[_nghost-%COMP%]     .mat-mdc-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .search-results mat-list{width:425px}[_nghost-%COMP%]     .search-results .hotlist-actions-column{padding:8px 0}[_nghost-%COMP%]     .search-results mat-list-item .title-line{display:flex;align-items:center;justify-content:space-between;height:24px}[_nghost-%COMP%]     .search-results mat-list-item a, [_nghost-%COMP%]     .search-results mat-list-item mat-icon{height:17px;line-height:17px}[_nghost-%COMP%]     .search-results mat-list-item p{font-size:.75rem;margin-top:-2px;line-height:1.2}[_nghost-%COMP%]     .create-new-hotlist-btn, [_nghost-%COMP%]     .load-from-id-btn, [_nghost-%COMP%]     .force-show-overflow-btn{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}[_nghost-%COMP%]     .create-new-hotlist-btn:hover, [_nghost-%COMP%]     .load-from-id-btn:hover, [_nghost-%COMP%]     .force-show-overflow-btn:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}[_nghost-%COMP%]     .create-hotlist-pane label{display:block;color:#5f6368;color:var(--muted);font-weight:500}[_nghost-%COMP%]     .create-hotlist-pane input, [_nghost-%COMP%]     .create-hotlist-pane textarea{width:100%;box-sizing:border-box}[_nghost-%COMP%]     mat-list-item .title-line p{font-size:.8125rem}[_nghost-%COMP%]     .mat-mdc-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-list-item.mat-list-item .mat-list-item-content .mat-list-text{padding-left:12px}[_nghost-%COMP%]     mat-list mat-list-item{padding:0}[_nghost-%COMP%]     mat-list mat-list-item mat-checkbox{padding:11px}[_nghost-%COMP%]     mat-list mat-list-item .hotlist-matlist-option{width:100%}[_nghost-%COMP%]     mat-list-item.hotlist-list-item{padding-left:0}[_nghost-%COMP%]     hotlist-matlist-option{display:block}[_nghost-%COMP%]     .has-description{height:72px}/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var AS=function(){this.dialog=n(tK);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.errorHandler=n(DK);this.hotlistRecommendationFridge=n(ME);this.recommendationsApi=n(LE);this.activeSession=n(Es);this.analytics=n(CF)},rRc=function(a,b){var c,d,e,f;return w(function(h){if(h.nextAddress==1)return x(h,Ge(b),2);c=h.yieldResult;e=(d=c)==null?void 0:d.snapshot[0].hotlistId;if(!e||!c)return h.return();a.analytics.trackEvent("hotlistPicker","open","IDP");f=String(c.issueId);return x(h,qRc(a,
f,e),0)})},qRc=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h,k,q,u,A;return w(function(G){switch(G.nextAddress){case 1:return e=sRc(a,b),f=e.pipe(y(function(H){return H.map(function(N){var O;return(O=N.content)==null?void 0:O.recommendedHotlist}).filter(Tk)}),hg(function(H){H.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),h=new Map,h.set(b,new Set(c)),x(G,tRc(a,c,f),2);case 2:k=G.yieldResult;if(k==null||!k.hotlistDiff)return G.return();q=k.hotlistDiff;u=q.added.map(String);
A=q.removed.map(String);if(!d){G.jumpTo(3);break}return x(G,a.updateHotlists(b,u,A),4);case 4:return x(G,uRc(a,e,u),3);case 3:return G.return({addedIds:u,removedIds:A})}})},vRc=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na,Qa,gb,va,Ja,La,Lb,Eb,jc,nc,Jc,ec;return w(function(ye){switch(ye.nextAddress){case 1:d=new Map;e=l(b.values());for(f=e.next();!f.done;f=e.next())if(h=f.value)for(k=l(h),q=k.next();!q.done;q=k.next())u=q.value,d.has(u)?(A=void 0,G=(A=d.get(u))!=
null?A:0,G++,d.set(u,G)):d.set(u,1);H=b.size;N=[];O=[];U=l(d.entries());for(da=U.next();!da.done;da=U.next())ma=da.value,ra=l(ma),Ga=ra.next().value,Na=ra.next().value,Qa=Ga,gb=Na,gb<H?N.push(Qa):gb===H&&O.push(Qa);return x(ye,tRc(a,O,Ce([]),b,N),2);case 2:va=ye.yieldResult;if(va==null)return ye.return();if(!c){ye.jumpTo(3);break}Ja=l(va.issueMapDiffs.entries());La=Ja.next();case 4:if(La.done){ye.jumpTo(3);break}Lb=La.value;Eb=l(Lb);jc=Eb.next().value;nc=Eb.next().value;Jc=jc;ec=nc;return x(ye,a.updateHotlists(Jc,
ec.added.map(String),ec.removed.map(String)),5);case 5:La=Ja.next();ye.jumpTo(4);break;case 3:return ye.return(va)}})};AS.prototype.updateHotlists=function(a,b,c){var d=this,e;return w(function(f){if(f.nextAddress==1)return te(f,2,3),x(f,d.issueFullFridge.updateHotlists(a,b,c),3);if(f.nextAddress!=2)return ue(f),d.eventsForIssueFridge.poke(a),we(f,0);e=xe(f);FK(d.errorHandler,e);return f.jumpTo(3)})};
var tRc=function(a,b,c,d,e){var f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na,Qa,gb,va;return w(function(Ja){if(Ja.nextAddress==1)return f={selectedHotlistIds:b,recommendedHotlists$:c,selectedHotlistIdsMap:d,partiallySelectedHotlistIds:e},h={panelClass:"no-jitter",data:f,ariaLabel:"Search for Hotlists"},k=a.dialog.open(zS,h),x(Ja,Ge(nK(k)),2);q=Ja.yieldResult;if(!q)return Ja.return(Promise.resolve());u=q.selectedHotlistIds;A=q.selectedHotlistIdsMap;G=Oj(new Set(b),new Set(u));H=new Map;if(d&&A)for(N=l(A.entries()),
O=N.next();!O.done;O=N.next())U=O.value,da=l(U),ma=da.next().value,ra=da.next().value,Ga=ma,Na=ra,Qa=void 0,gb=Oj((Qa=d.get(Ga))!=null?Qa:new Set,Na),va=void 0,H.set(Ga,(va=gb)!=null?va:{added:[],removed:[]});return Ja.return(Promise.resolve({hotlistDiff:G,issueMapDiffs:H}))})},sRc=function(a,b){return b&&a.activeSession.isInternalSession()?a.hotlistRecommendationFridge.watch(b).pipe(y(function(c){return(c==null?void 0:c.recommendations)||[]})):Ce([])},uRc=function(a,b,c){var d,e;return w(function(f){if(f.nextAddress==
1)return x(f,Ge(b),2);d=f.yieldResult;e=d.filter(function(h){var k,q;return(h=(k=h.content)==null?void 0:(q=k.recommendedHotlist)==null?void 0:q.hotlistId)&&c.includes(String(h))}).map(function(h){return{parent:h.name,userEngagement:{type:"ACCEPTED"}}});if(e.length===0)return f.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return x(f,a.recommendationsApi.createUserEngagements(e),0)})};AS.\u0275fac=function(a){return new (a||AS)};
AS.\u0275prov=Sc({token:AS,factory:AS.\u0275fac,providedIn:"root"});var wRc={ASSIGNEE:"ASSIGNEE",CC_LIST:"CC_LIST",CODE_CHANGES:"CODE_CHANGES",COLLABORATORS:"COLLABORATORS",COMMENT:"COMMENT",COMPONENT:"COMPONENT",CUSTOM_FIELDS:"CUSTOM_FIELDS",HOTLISTS:"HOTLISTS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",STATUS:"STATUS",TYPE:"TYPE"},BS=function(){Z.apply(this,arguments);var a=this;this.butterBar=n(iK);this.componentTemplatesFridge=n(oD);this.errorHandler=n(DK);this.triageService=n(TG);this.issueApi=n(BE);this.issueFullFridge=n(EF);this.editIssueService=n(oL);this.hotlistPickerService=
n(AS);this.issueCommentDialogsService=n(pS);this.issueLimits=n(uS);this.issuePermissionService=n(lL);this.jspbPrincipalTypes=n(jG);this.statusMessages=n(JK);this.constants=n(GK);this.activeSession=n(Es);this.issueEditComponentService=n(DN);this.IssueFieldKey=wRc;this.HOTKEYS=xp;this.FieldType=WL;this.ListFieldType=aJc;this.IssueType=slc;this.IssueSeverity=llc;this.IssuePriority=alc;this.IssueStatus=olc;this.codeChangesValidator=Fxa;this.overlayPositionList=[{originX:"start",originY:"top",overlayX:"start",
overlayY:"bottom",offsetY:-8},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:-8}];this.componentId$=new tj(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(Ve(Tk),Xf());this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.defaultAssigneeForComponent$=this.componentId$.pipe(fg(function(b){return b?a.componentTemplatesFridge.defaultTemplate$(String(b)):Ce(void 0)}),y(function(b){return b&&Dk(b.snapshot.assigneeUser)}));this.issueIds$=Je([this.triageService.currentIssueIds$,
this.triageService.selectedIssueIds$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(fg(function(b){return a.issueFullFridge.watchSet(b)}));this.editableIssues$=this.issueIds$.pipe(y(function(b){return b.map(function(c){return a.editIssueService.editableIssue(c)})}));this.editableIssue$=this.editableIssues$.pipe(y(function(b){return b[0]}));this.areEditableIssuesLoaded$=this.editableIssues$.pipe(y(function(b){return b.every(function(c){return c.issueId!==
""})}));this.fieldMultipleValueMap$=Je([this.editableIssues$,this.areEditableIssuesLoaded$]).pipe(y(function(b){var c=l(b);b=c.next().value;if(!c.next().value)return new Map;lr(a,b);return a.doesFieldHaveMultipleValues}));this.isCurrentUserCollaborator=this.isCurrentUserCcd=!1;this.hotlistIds=[];this.hotlistIdsMap=new Map;this.MULTIPLE_FIELD_VALUES_LABEL="Multiple values";this.MULTIPLE_COMPONENT_SELECTED_LABEL="Multiple components selected";this.customFieldMap={};this.doesFieldHaveMultipleValues=
new Map([["ASSIGNEE",!1],["COLLABORATORS",!1],["CC_LIST",!1],["COMPONENT",!1],["SEVERITY",!1],["PRIORITY",!1],["STATUS",!1],["TYPE",!1]]);this.customFieldBulkEditOps=[];this.fields=[];this.automaticChanges=[];this.showAssignToSelf=!1;this.showAssignToDefault=!0;this.expandCommentBox=!1;this.subphase=this.phase=void 0;this.cancelAction=new LA;this.completeAction=new LA;this.typeChoices=this.constants.editIssueTypeChoices;this.severityChoices=this.constants.severities.map(function(b){return{value:b,
displayText:b}});this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b,hotkey:OIa(b)}});this.statusChoices=lmc.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:PIa(b.value)})});this.showAssigneeChips$=Je([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.sessionIsInternal&&b&&(a.showAssignToDefault||
a.showAssignToSelf)?a.showAssignToDefault&&d||a.showAssignToSelf&&c.assignee!==a.currentUserEmail?!0:!1:!1}));this.currentUserEmail=this.activeSession.getUserEmail();this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.isSaving$=new tj(!1);this.showCommentInput=!1;this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return w(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(h){return h.trim()}).filter(Boolean);
return x(f,Psc(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(h){var k;return((k=d[h])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})}};Y(BS,Z);BS.\u0275dir=Z.\u0275dir;g=BS.prototype;
g.ngOnInit=function(){for(var a=l(this.automaticChanges),b=a.next();!b.done;b=a.next()){b=b.value;var c=np(this.editableIssue$),d=b.field;switch(d){case "STATUS":c.setStatus(b.value);break;case "ASSIGNEE":c.setAssignee(b.value);break;case "COMMENT":this.setComment(b.value);break;default:Gb(d)}}this.showCommentInput=this.expandCommentBox;a=np(this.editableIssue$);this.componentId=a.componentId;this.componentId$.next(a.componentId);kr(this,a);mr(this,a)};
g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a=np(this.issueId$);a&&this.editIssueService.clear(a)};g.setSeverity=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);lr(this,a)};g.setPriority=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);lr(this,a)};g.setAssignee=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);lr(this,a)};
g.setType=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setType(b);lr(this,a)};g.setStatus=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);lr(this,a)};g.setComponent=function(a,b){this.componentId=b;this.componentId$.next(b);for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.componentId=b;lr(this,a)};g.setCodeChanges=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};
g.setCcs=function(a,b){b=[].concat(p(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.cc=b;mr(this,a[0])};g.setCollaborators=function(a,b){b=[].concat(p(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);kr(this,a[0])};
var g1a=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(h){return h!==c});e.cc=f}mr(a,b[0]);lr(a,b)},b1a=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(h){return h!==c});e.setCollaborators(f)}kr(a,b[0]);lr(a,b)},c1a=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(h){return!c.includes(h)});
e.setCollaborators(f)}kr(a,b[0]);lr(a,b)},h1a=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(h){return!c.includes(h)});e.cc=f}mr(a,b[0]);lr(a,b)},j1a=function(a,b){for(var c=l(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.cc;a.isCurrentUserCcd?(e=e.filter(function(f){return!kL(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}mr(a,b[0])};
BS.prototype.toggleCollaborators=function(a){for(var b=this,c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.collaborators;this.isCurrentUserCollaborator?(e=e.filter(function(f){return!kL(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}kr(this,a[0])};
var mr=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},kr=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},n1a=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},xRc=function(a,b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.componentId&&a.componentId!==d.componentId&&c.push({issueIds:[d.issueId],actions:[{fieldName:"componentId",value:String(a.componentId)}]});return c};
BS.prototype.save=function(a){var b=this,c,d,e,f,h,k,q,u,A,G;return w(function(H){if(H.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(N){return MDc(N)}).flat().filter(function(N){return N!==null});e=d.map(function(N){return{issueIds:[N.issueId],actions:N.actions}});f=xRc(b,a);e.push.apply(e,p(f));h=a.map(function(N){return N.issueId});(k=yRc(b,c.issueId)?{fieldName:"comment",value:b.editIssueService.issueCommentDraft(c.issueId).comment().value}:null)&&e.push({issueIds:h,actions:[k]});
b.customFieldBulkEditOps.length&&e.push.apply(e,p(b.customFieldBulkEditOps));q=l(a);for(u=q.next();!u.done;u=q.next())A=u.value,G=A.customFieldMap,Object.assign(b.customFieldMap,G);return x(H,b.sendBulkEditRequest(e),2)}if(H.nextAddress!=3)return x(H,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(h);ze(H)})};BS.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var lr=function(a,b){var c=b[0],d=b.some(function(e){return e.severity!==c.severity});a.doesFieldHaveMultipleValues.set("SEVERITY",d);d=b.some(function(e){return e.priority!==c.priority});a.doesFieldHaveMultipleValues.set("PRIORITY",d);d=b.some(function(e){return e.status!==c.status});a.doesFieldHaveMultipleValues.set("STATUS",d);d=b.some(function(e){return e.type!==c.type});a.doesFieldHaveMultipleValues.set("TYPE",d);d=b.some(function(e){return e.assignee!==c.assignee});a.doesFieldHaveMultipleValues.set("ASSIGNEE",
d);d=b.some(function(e){return e.componentId!==c.componentId});a.doesFieldHaveMultipleValues.set("COMPONENT",d);d=b.some(function(e){return!kk(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!kk(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},yRc=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},Z0a=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,x(d,Zi(0),2);(c=b)==null||c.focus();ze(d)})};BS.prototype.setComment=function(a){var b=this,c=np(this.triageService.currentIssueId$);if(c){var d=this.editIssueService.issueCommentDraft(c).comment();if(!d.value){var e=d.value;d.value=a;this.destroyed$.subscribe(function(){var f=b.editIssueService.issueCommentDraft(c).comment();f.value===a&&(f.value=e)})}}};
BS.prototype.updateHotlists=function(){var a=this,b,c,d,e,f;return w(function(h){if(h.nextAddress==1){b=a.fields.includes("HOTLISTS");if(!b)return h.return();c=np(a.issues$);if(!c||!c.length)return h.return();d=l(c);e=d.next()}if(h.nextAddress!=3){if(e.done)return h.jumpTo(0);f=e.value;return x(h,zRc(a,f),3)}e=d.next();return h.jumpTo(2)})};
var zRc=function(a,b){var c,d,e,f;return w(function(h){e=(c=b.snapshot[0])==null?void 0:(d=c.hotlistId)==null?void 0:d.map(String);return e?(f=a.hotlistIdsMap.get(b.issueId))?x(h,a.hotlistPickerService.updateHotlists(b.issueId,f.added.map(function(k){return k.toString()}),f.removed.map(function(k){return k.toString()})),0):h.return():h.return()})};
BS.prototype.sendBulkEditRequest=function(a){var b=this,c;return w(function(d){c={bulkEditOps:a};Mq(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=Iya(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=FEc(b.statusMessages,c,b.customFieldMap))?Mq(b.butterBar,e):Mq(b.butterBar,"Saved "+QMa(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
BS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(BS)))(b||BS)}}();
BS.\u0275cmp=B({type:BS,selectors:[["verify-fields"]],inputs:{fields:"fields",automaticChanges:"automaticChanges",showAssignToSelf:"showAssignToSelf",showAssignToDefault:"showAssignToDefault",expandCommentBox:"expandCommentBox",phase:"phase",subphase:"subphase"},outputs:{cancelAction:"cancelAction",completeAction:"completeAction"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["priorityField",""],["assigneeField",""],["typeField",""],["statusField",""],["postCommentComponent",""],["addCommentButton",
""],[1,"bv2-issue-metadata","overflow"],[1,"full-width","padded-s-top","flex-kids-x","gap"],[1,"flex-kids-x","gap","margin-top"],["type","button","mat-flat-button","",1,"gmat-button",3,"click","disabled"],["type","button","mat-button","",1,"gmat-button",3,"click"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"name","title","type","tooltip","value","choices","hotkey","readonly","displayValueOverride"],[3,"phase","subphase"],[1,"flex-1",
3,"editableIssue","hasMultipleIssues","phase","subphase"],[1,"flex-kids-y","full-width"],[1,"flex-1",3,"name","title","type","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"name","title","type","value","choices","showHotkeyHint","hotkey","readonly","displayValueOverride"],[1,"bv2-issue-metadata-field","bv2-issue-metadata-field-inner","flex-1"],[1,"flex-1"],[3,"issueId","automaticChange"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","displayValueOverride"],
[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","displayValueOverride"],[3,"hotlistIdsChange","hotlistIdsMapChange","phase","subphase"],[1,"flex-1",3,"onCustomFieldBulkEdit","editableIssue","hasMultipleIssues","phase","subphase"],[1,"flex-1","flex-kids-x","align-items-center","gap"],[1,"flex-1",3,"onHotkey","valueChange","emailChange","name","title","hotkey","displayValueOverride","value"],[1,"assign-chips"],["type","button","mat-stroked-button",
"","aria-label","Assign to me",1,"small","add-assignee-btn",3,"matTooltip"],["type","button","mat-stroked-button","",1,"small","add-assignee-btn",3,"disabled","hotkey","matTooltip"],["type","button","mat-stroked-button","",1,"small","add-assignee-btn",3,"click","onHotkey","disabled","hotkey","matTooltip"],[1,"icon-xs","margin-xs-right",3,"svgIcon"],["type","button","mat-stroked-button","","aria-label","Assign to me",1,"small","add-assignee-btn",3,"click","onHotkey","matTooltip"],["svgIcon","add",
1,"icon-xs","margin-xs-right"],[1,"flex-1",3,"valueChange","name","title","type","value","choices","readonly","displayValueOverride"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey","readonly","displayValueOverride"],[1,"flex-1",3,"readonly","defaultLineCount","title","inputValidator","type","values"],[1,"flex-1",3,"valuesChange","readonly","defaultLineCount","title","inputValidator","type","values"],[1,"bv2-editable-title"],[3,"componentChanged",
"issueId","componentId","compactMode","handleSave","showPickerOverlayAbove","displayValueOverride"],[3,"commentSubmitted","issueId","showActionsAfterPreview","showCommentButton"],[1,"flex-1",3,"title","subtitle","inputValidator","isAllowedToEditCollection"],[1,"flex-1",3,"title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection",
"isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[1,"flex-1",3,"addCurrentUser","removeCurrentUser","onAddUsers","onRemoveUsers","title","subtitle","inputValidator","isAllowedToEditCollection"],[1,"flex-1",3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection",
"isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[1,"flex-1",3,"title","subtitle","isAllowedToEditCollection"],[1,"flex-1",3,"title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection","isAllowedToEditCollection","iconName"],[1,"flex-1",3,"addCurrentUser","removeCurrentUser","onAddUsers","onRemoveUsers",
"title","subtitle","isAllowedToEditCollection"],[1,"flex-1",3,"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","overlayPosition","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isCurrentUserInCollection","isAllowedToEditCollection","iconName"]],template:function(a,b){a&1&&(E(0,r1a,2,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issues$))?0:-1,c)}},styles:["[_nghost-%COMP%]     .bv2-issue-metadata{padding:0}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-field.bv2-issue-metadata-field{margin:0}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field{margin:0!important}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-field-label{width:unset;min-width:75px}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-user-picker button{padding-left:9px}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-list-field .no-value{display:none}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-editable-title{width:unset}[_nghost-%COMP%]     b-post-comment{margin-bottom:0}[_nghost-%COMP%]     b-post-comment .bv2-comment-box-container .bv2-comment-toolbar{margin:0}[_nghost-%COMP%]     b-post-comment .md-preview{margin-top:0}[_nghost-%COMP%]     b-post-comment .bv2-edit-issue-add-comment{padding-top:0}.hotlist-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:2px;line-height:20px;max-height:72px;overflow-y:auto}.add-assignee-btn[_ngcontent-%COMP%], .add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px;margin-right:4px}.add-hotlists-btn.mat-mdc-outlined-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-issue-metadata[_ngcontent-%COMP%]{max-height:50vh;padding-right:10px}"]});var CS=function(){Z.apply(this,arguments);this.TriageActionKey=Jtc;this.TriagePhase=qlc;this.TriageSubphase=rlc;this.CONFIRM_ACTION=Ltc;this.SET_IN_PROGRESS=Ntc;this.SET_FIXED=Ttc;this.CHANGE_COMPONENT=Utc;this.NEEDS_MORE_INFO=Ktc;this.SET_WONT_FIX=Rtc;this.SET_NEW=Stc;this.SET_PENDING_OWNER=Mtc;this.SET_EXPECTED=Otc;this.SET_PLANNED=Ptc;this.SET_COMMITTED=Qtc;this.needsInfoAutomaticChanges=[];this.cancelAction=new LA;this.finalizeAction=new LA};Y(CS,Z);CS.\u0275dir=Z.\u0275dir;
CS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(CS)))(b||CS)}}();
CS.\u0275cmp=B({type:CS,selectors:[["secondary-footer"]],inputs:{needsInfoAutomaticChanges:"needsInfoAutomaticChanges",selectedTriageAction:"selectedTriageAction"},outputs:{cancelAction:"cancelAction",finalizeAction:"finalizeAction"},standalone:!1,features:[kg],decls:33,vars:1,consts:[["setNeedsInfo",""],["setConfirmed",""],["setPendingOwner",""],["changeComponent",""],["setInProgress",""],["setExpected",""],["setPlanned",""],["setCommitted",""],["setFixed",""],["setNew",""],["setWontFix",""],[4,
"ngTemplateOutlet"],[1,"flex-kids-y","full-width"],[1,"heading-s"],[3,"cancelAction","completeAction","fields","phase","subphase","automaticChanges","expandCommentBox","showAssignToDefault","showAssignToSelf"],[3,"cancelAction","completeAction","fields","phase"],[3,"cancelAction","completeAction","fields","phase","showAssignToSelf"],[3,"cancelAction","completeAction","fields","phase","automaticChanges"],[3,"cancelAction","completeAction","fields","automaticChanges"]],template:function(a,b){a&1&&(E(0,
t1a,1,1,"ng-container")(1,v1a,1,1,"ng-container")(2,x1a,1,1,"ng-container")(3,z1a,1,1,"ng-container")(4,B1a,1,1,"ng-container")(5,D1a,1,1,"ng-container")(6,F1a,1,1,"ng-container")(7,H1a,1,1,"ng-container")(8,J1a,1,1,"ng-container")(9,L1a,1,1,"ng-container")(10,N1a,1,1,"ng-container"),C(11,O1a,4,7,"ng-template",null,0,nh)(13,P1a,4,2,"ng-template",null,1,nh)(15,Q1a,4,2,"ng-template",null,2,nh)(17,R1a,4,2,"ng-template",null,3,nh)(19,S1a,4,3,"ng-template",null,4,nh)(21,T1a,4,3,"ng-template",null,5,nh)(23,
U1a,4,3,"ng-template",null,6,nh)(25,V1a,4,3,"ng-template",null,7,nh)(27,W1a,4,3,"ng-template",null,8,nh)(29,X1a,4,3,"ng-template",null,9,nh)(31,Y1a,4,2,"ng-template",null,10,nh));if(a&2){var c;F((c=b.selectedTriageAction)===b.TriageActionKey.SET_NEEDS_INFO?0:c===b.TriageActionKey.SET_CONFIRMED?1:c===b.TriageActionKey.SET_PENDING_OWNER?2:c===b.TriageActionKey.SET_WONT_FIX?3:c===b.TriageActionKey.SET_IN_PROGRESS?4:c===b.TriageActionKey.SET_EXPECTED?5:c===b.TriageActionKey.SET_PLANNED?6:c===b.TriageActionKey.SET_COMMITTED?
7:c===b.TriageActionKey.SET_FIXED?8:c===b.TriageActionKey.CHANGE_COMPONENT?9:c===b.TriageActionKey.SET_NEW?10:-1)}},dependencies:[Pv,BS],encapsulation:2,changeDetection:0});var DS=function(){this.issueExperimentalFieldsFridge=n(WE)},ARc=function(a,b,c){var d;return w(function(e){switch(e.nextAddress){case 1:switch(c){case "SET_NEEDS_INFO":return e.jumpTo(2);case "SET_CONFIRMED":return e.jumpTo(3);case "SET_PENDING_OWNER":return e.jumpTo(4);case "SET_NEW":return e.jumpTo(5);case "SET_IN_PROGRESS":return e.jumpTo(6);case "SET_EXPECTED":return e.jumpTo(7);case "SET_PLANNED":return e.jumpTo(8);case "SET_COMMITTED":return e.jumpTo(9);case "SET_FIXED":return e.jumpTo(10);
case "CHANGE_COMPONENT":return e.jumpTo(11);case "SET_WONT_FIX":return e.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("Ce");default:Gb(c)}e.jumpTo(13);break;case 2:return x(e,a.setNeedsInfo(b),14);case 14:d=e.yieldResult;e.jumpTo(13);break;case 3:return x(e,a.setConfirmed(b),15);case 15:d=e.yieldResult;e.jumpTo(13);break;case 4:return x(e,a.setPendingOwner(b),16);case 16:d=e.yieldResult;e.jumpTo(13);break;case 5:return x(e,a.setNew(b),17);case 17:d=e.yieldResult;e.jumpTo(13);break;case 6:return x(e,
a.setInProgress(b),18);case 18:d=e.yieldResult;e.jumpTo(13);break;case 7:return x(e,a.setExpected(b),19);case 19:d=e.yieldResult;e.jumpTo(13);break;case 8:return x(e,a.setPlanned(b),20);case 20:d=e.yieldResult;e.jumpTo(13);break;case 9:return x(e,a.setCommitted(b),21);case 21:d=e.yieldResult;e.jumpTo(13);break;case 10:return x(e,a.setFixed(b),22);case 22:d=e.yieldResult;e.jumpTo(13);break;case 11:return x(e,a.setNew(b),23);case 23:d=e.yieldResult;e.jumpTo(13);break;case 12:return x(e,a.setWontFix(b),
24);case 24:d=e.yieldResult;e.jumpTo(13);break;case 13:return e.return(d)}})};g=DS.prototype;g.setNeedsInfo=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="NEW";f.triage.subphase="NEEDS_INFO"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setConfirmed=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setPendingOwner=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="PENDING_OWNER"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setInProgress=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setExpected=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="EXPECTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setPlanned=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="PLANNED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setCommitted=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="COMMITTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setFixed=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="FIXED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setNew=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="NEW";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setWontFix=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,Promise.all(a.map(function(d){return w(function(e){return e.nextAddress==1?x(e,XE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="WONT_FIX";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275prov=Sc({token:DS,factory:DS.\u0275fac,providedIn:"root"});var ES=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ES,V);ES.prototype.getDataCase=function(){return vm(this,BRc)};ES.prototype.getText=function(){return xm(this,2,BRc)};ES.prototype.setText=function(a){return Am(this,2,BRc,a)};var BRc=[2,3,4,5,6,7,9,10];var FS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FS,V);FS.prototype.getPartsList=function(){return Wk(this,ES,1,Fk())};FS.prototype.addParts=function(a){return Eu(this,1,ES,a)};FS.prototype.getRole=function(){return Oh(this,2)};FS.prototype.setRole=function(a){return Lk(this,2,a)};var CRc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CRc,V);CRc.prototype.setModel=function(a){return Lk(this,1,a)};var $1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($1a,V);g=$1a.prototype;g.getIndex=function(){return Ik(this,3)};g.setIndex=function(a){Pl(this,3,a)};g.getContent=function(){return X(this,FS,1)};g.setContent=function(a){return W(this,FS,1,a)};g.hasContent=function(){return nk(this,FS,1)};var Z1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Z1a,V);Z1a.prototype.setCandidates=function(a,b){return Bu(this,1,$1a,a,b)};Z1a.prototype.getModelVersion=function(){return Oh(this,4)};Z1a.prototype.setModelVersion=function(a){return Lk(this,4,a)};var DRc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,DRc.messageId)};Y(DRc,V);DRc.messageId="b.GenerateContentResponse";var GS=function(){this.executor=n(zC)};GS.prototype.generate=function(a){var b;var c=(new CRc).setModel((b=a.model)!=null?b:"models/gemini-1.5-flash");a=(new FS).addParts((new ES).setText(a.prompt));c=Eu(c,2,FS,a);return this.executor.post({url:"/action/gemini/generate",body:c,responseConstructor:DRc}).then(a2a)};GS.\u0275fac=function(a){return new (a||GS)};GS.\u0275prov=Sc({token:GS,factory:GS.\u0275fac,providedIn:"root"});var HS=function(){var a=this;this.geminiApi=n(GS);this.issueFridge=n($E);this.issueFullFridge=n(EF);this.getLlmResponse=Kua(function(b){var c,d;return w(function(e){if(e.nextAddress==1)return c={prompt:b},x(e,a.geminiApi.generate(c),2);d=e.yieldResult;return e.return(d.output)})})},ERc=function(a,b){return b.length<3?Ce("Unknown (cluster is too small)"):Oe(function(){return a.issueFridge.watchSet(b)}).pipe(fg(function(c){c="Analyze the following list of topics and summarize them into one common theme.Please respond in 2 to 3 words, plain text no markdown. Here's the list of topics: "+
c.map(function(d){return d.snapshot[0].title}).join("\n");return a.getLlmResponse(c)}))},GRc=function(a,b,c){return Oe(function(){return Je(b.map(function(d){return a.issueFridge.watchSet(d)})).pipe(fg(function(d){d=d.map(function(e){return e.map(function(f){return f.snapshot[0].title})});return FRc(a,d,c)}))})},FRc=function(a,b,c){var d="";b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d+=c?"{team name: "+c+", titles:["+e.join(",")+"]}\n":"titles:["+e.join(",")+"]\n";var f='You are a software engineer at Google. Your task is to summarize a cluster of bugs ,tasks,\n        alerts and feature requests into a theme so that the reader can decide if they need to investigate them deeper.\n        All the bugs, tasks, alerts and feature requests come from the same team.\n        Theme names follows these rules:\n        1. In two to three words\n        2. Title Case: Every word starts with a capital letter (e.g., "Foo Bar"). Acronyms are allowed, e.g. "SRE Frontend".\n        3. Do not include the team name in the result.\n        Example Input:\n        {team name: Buganizer, titles: [dark mode needs more contrast, it is very hard to read text in dark mode, Please increase the contract of dark mode}\n        Example output:  Dark mode readability\n\n        Please follow the above rules and output the theme names in a list, split by \',\'. Make sure the output is in the same order as the input.\n        '+
d;return Oe(function(){return a.getLlmResponse(f)}).pipe(y(function(h){return h.split(",")}))},HRc=function(a,b){return b.length<3?Ce("Unknown (cluster is too small)"):Oe(function(){return a.issueFullFridge.watchSet(b)}).pipe(fg(function(c){var d,e,f,h,k,q,u;return w(function(A){if(A.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(G){var H;return"Task b/"+G.issueId+' has title "'+G.snapshot[0].title+'" and has description "'+((H=G.description)==null?void 0:H.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),h="\nYou are a world-class technical lead and manager in software engineering, tasked with summarizing a set of issues using data from a issue tracking tool. You will receive a list of issues including titles and descriptions.\n\nGeneral Information:\n\nIssues: Issues are stored in a system called Buganizer and are usually referred as b/<id>. All b/<id> are references to the same issue. http://b/<id> can be used to refer to a issue in summary.\n\nSteps to Follow:\n\n1. Understand Issue Context: Use the issue title and description to understand the nature of the issue. DO NOT include the titles or specific names of issues in the summary.\n2. Generate Summary:\n  - Start with a high-level overview of the issues, in one small sentence, focusing on the key accomplishments and outcomes. Summarize the issues and their impact, using concise and informative language. Don't include introductory phrases and additional formatting. Skip this if you don't find a common theme. Don't hallucinate.\n  - Use the format "+
d+" and "+e+" tags for the summary without additional headers.\n  - If you need to reference issues in the summary, you may do so by their IDs as http://b/<id>\n\nImportant: Ensure the summary is concise, informative, and does not include any issue titles or names.\n\nIssues, title and description:\n\n"+f+"\n\nOutput:\n",x(A,a.getLlmResponse(h),2);k=A.yieldResult;q=k.indexOf(d);u=k.indexOf(e);return A.return(k.substring(q+d.length,u).trim())})}))};HS.\u0275fac=function(a){return new (a||HS)};
HS.\u0275prov=Sc({token:HS,factory:HS.\u0275fac,providedIn:"root"});var IRc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),JRc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),KRc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),LRc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),IS=function(){var a=this;this.dialogRef=n(mK);this.darkmodeService=n(VO);this.data=
n(sK);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(y(function(b){switch(a.data.type){case "HOMEPAGE":return b?Ri(IRc):Ri(JRc);default:return b?Ri(KRc):Ri(LRc)}}))};IS.\u0275fac=function(a){return new (a||IS)};
IS.\u0275cmp=B({type:IS,selectors:[["b-feedback-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-content",""],["frameborder","0","allowtransparency","true",3,"loading","src"],["diameter","60"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"load","src"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,b2a,1,
3,"iframe",1),S(2,"async"),E(3,c2a,1,0,"mat-spinner",2),J(),I(4,"div",3)(5,"button",4),M("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),J(),I(7,"button",5),M("click",function(){return b.dialogRef.close(!0)}),Q(8," File a new issue "),J()());if(a&2){var c;z();F((c=T(2,2,b.docUrl$))?1:-1,c);z(2);F(b.contentLoaded?-1:3)}},dependencies:[yK,xK,PA,Tx,NN,LN,Qv],styles:["iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:0}.loading[_ngcontent-%COMP%]{display:none}.mat-mdc-dialog-content[_ngcontent-%COMP%]{display:flex;flex-grow:1;position:relative;justify-content:center;align-items:center}"],
changeDetection:0});var pr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pr,V);g=pr.prototype;g.getEnableSsEngine=function(){return kl(this,2)};g.getEnableAwr=function(){return kl(this,3)};g.getAlohaAutoGaRollout=function(){return kl(this,5)};g.getEnableConfigurator=function(){return kl(this,6)};g.getEnableMweb=function(){return kl(this,7)};var NRc=function(){var a=MRc();return Xm(a,7,!0)};pr.prototype.getEnableCtlConsentCheckbox=function(){return kl(this,8)};
pr.prototype.getEnableIframe=function(){return kl(this,9)};var MRc=function(){var a=new pr;a=Xm(a,5,!0);a=Xm(a,2,!0);a=Xm(a,4,!1);a=Xm(a,8,!0);return Xm(a,9,!0)};pr.prototype.getEnableScreenshotNudge=function(){return kl(this,10)};var ORc=function(){var a=NRc();return Xm(a,10,!0)};pr.prototype.getEnableWebStartupConfigEndpoint=function(){return kl(this,11)};pr.prototype.getEnableJunkNudge=function(){return kl(this,12)};var t2a=function(){var a=ORc();return Xm(a,12,!0)};g=pr.prototype;
g.getEnableConfiguratorLocale=function(){return kl(this,13)};g.getEnableTinyNoPointer=function(){return kl(this,14)};g.getEnableSupportSessionLogging=function(){return kl(this,15)};g.getEnableFileUploadForScreenshot=function(){return kl(this,16)};g.getEnableDirectDeflectionForSingleCategory=function(){return kl(this,17)};g.getEnableImageSanitization=function(){return kl(this,18)};g.getEnableAlohaBinarySplit=function(){return kl(this,19)};g.getEnableDbFeedbackIntents=function(){return kl(this,20)};
g.getEnableMarkMandatoryFieldsWithRequired=function(){return kl(this,21)};g.getEnableFeedbackCategoryCustomUi=function(){return kl(this,22)};g.getEnableRealtimeCtl=function(){return kl(this,23)};var s2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(s2a,V);var d2a=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var f2a="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var g2a=ru(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),h2a=ru(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var j2a,l2a;var PRc=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ya,e=d.document,f=a.nonce||qna(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var h=Cp("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=k.length<=1200)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,
b);else{d=c+"/load.js?";for(var q in a)b=a[q],b==null||cb(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=Kp(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);gi(a,Uh(d));e.body.appendChild(a)}},QRc=function(a,b,c,d){var e,f;w(function(h){e=c||ya;var k=a.serverEnvironment==="DEV",q=c||ya;q=a.nonce||qna(q.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,
disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:q,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,
submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(q=new Map(Object.entries(b)),k.extraData.productSpecificData=q);f=k;return x(h,p2a(f,d,e),0)})},RRc=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,
"");fi(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?PRc(a,b,c):u2a(a.productId,a.feedbackServerUri).then(function(e){e=X(e,pr,1);var f=!r8b||(e==null?void 0:e.getEnableMweb()),h=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&h?QRc(a,b,c,e):PRc(a,b,c)},function(e){e&&e.name!=="DuplicateFormError"&&PRc(a,b,c)})}catch(e){QRc(a,b,c,null)}};S7b("userfeedback.api.startFeedback",RRc);var SRc={width:"500px",maxHeight:"80vh",autoFocus:!1},TRc=new Date,JS=function(){this.activeSession=n(Es);this.matDialog=n(tK);this.reportStartTime=new Date};JS.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?nK(this.matDialog.open(IS,Object.assign({},SRc,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&URc(a)}):URc(this)};
var VRc=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?nK(a.matDialog.open(IS,Object.assign({},SRc,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&URc(a)}):URc(a)},URc=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20250323.15_p0"};b.bucket=Gq(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";for(var c=[],d=c.concat,e=p([]),f=[],h=l(a.activeSession.session.config.enabledFlags),
k=h.next();!k.done;k=h.next()){var q=l(k.value);k=q.next().value;(q=q.next().value)&&f.push(k)}c=d.call(c,e,p(f)).join(", ");c={userType:a.activeSession.getUserTypeLabel(),flags:c};if(Gq(a.activeSession)){var u,A;c.trackerId=(A=(u=a.activeSession.getTracker())==null?void 0:u.trackerId)!=null?A:""}c.initialLoadTime=v2a(TRc);c.reportStartTime=v2a(a.reportStartTime);RRc(b,c)};JS.\u0275fac=function(a){return new (a||JS)};JS.\u0275prov=Sc({token:JS,factory:JS.\u0275fac,providedIn:"root"});var WRc=["actionsMenuIconButton"],KS=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.menuClass="actions-menu"};KS.prototype.onAction=function(a,b){return w(function(c){if(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)return c.return();b.type!=="action"&&b.type!=="select"||b.action(a);ze(c)})};KS.prototype.ngOnInit=function(){};KS.\u0275fac=function(a){return new (a||KS)};
KS.\u0275cmp=B({type:KS,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&Wg(WRc,5);if(a&2){var c;$g(c=ah())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",header:"header",menuClass:"menuClass"},standalone:!1,decls:7,vars:5,consts:[["menu","matMenu"],["actionsMenuIconButton",""],["submenu","matMenu"],["type","button","mat-icon-button","","aria-haspopup","true",1,"medium",3,"matTooltip","matMenuTriggerFor"],[1,"b-actions-menu-panel"],
[1,"bv2-menu-header"],[1,"icon-s",3,"svgIcon"],["type","button","mat-menu-item","",3,"matMenuTriggerFor"],[1,"hint"],["type","button","mat-menu-item","",3,"disabled","ngClass"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","ngClass"],["type","button","mat-menu-item","",3,"click","mouseup","disabled","ngClass"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click","mouseup","disabled","ngClass"],[1,"b-menu-item-check-mark"],["svgIcon",
"done",1,"icon-s"]],template:function(a,b){a&1&&(E(0,w2a,3,4,"button",3),I(1,"mat-menu",null,0)(3,"div",4),E(4,x2a,2,1,"div",5),Dg(5,L2a,2,2,null,null,Bg),J()());a&2&&(F(b.menuItems.length>0?0:-1),z(),zg("",b.menuClass,"-menu"),z(3),F(b.header?4:-1),z(),Eg(b.menuItems))},dependencies:[UG,XG,VG,YG,Mv,aB,PA,Ux,YA,cB],styles:["[_nghost-%COMP%]{display:inline-block}.mat-mdc-menu-item[_ngcontent-%COMP%]{align-items:center;display:flex}.mat-mdc-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:8px}.mat-mdc-menu-item[_ngcontent-%COMP%]   .hint[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin-left:auto;padding-left:16px}  .b-actions-menu-panel .mat-mdc-menu-item[disabled]{pointer-events:auto}/*# sourceMappingURL=actions_menu.css.map */"],
changeDetection:0});var XRc={type:"action",label:"Report illegal content"},YRc={type:"submenu",label:"View as"},ZRc={type:"action",label:"Restriction settings..."},$Rc={type:"action",label:"Show editing history"};var aSc=function(a){return{"has-reacted-icon":a}},LS=function(){Z.apply(this,arguments);var a=this;this.triageService=n(TG);this.llmService=n(HS);this.issueFridge=n($E);this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.issuePicker=n(vR);this.issueApi=n(BE);this.errorHandler=n(DK);this.butterBar=n(iK);this.domSafe=n(rL);this.analytics=n(CF);this.triagePhaseService=n(DS);this.userFeedback=n(JS);this.isClosed=fya;this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1;this.trackBy=
function(b,c){return c.id};this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.issue$=this.issueIds$.pipe(fg(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(y(tm));this.title$=this.issueIds$.pipe(fg(function(b){return ERc(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(fg(function(b){return HRc(a.llmService,b)}));this.rows$=this.issueIds$.pipe(y(function(b){return b.map(function(c){return{id:c,
issue$:a.issueFridge.watch(c)}})}));this.searchUrl$=this.issueIds$.pipe(y(function(b){return{path:"/issues",params:{q:"id:("+b.join("|")+")"}}}));this.refreshTable=new LA;this.checkedIssueIds=new uC;this.areAllChecked$=Je([this.issueIds$,this.checkedIssueIds.value$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return b.every(function(e){return d.has(e)})}));this.tableColumns=["checkbox","title","phase","relativeModifiedTime","menu"];this.displaySecondaryFooter=!1};Y(LS,Z);
LS.\u0275dir=Z.\u0275dir;g=LS.prototype;g.ngOnInit=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.issueIds$),2);b=c.yieldResult;a.checkedIssueIds.reset(b);ze(c)})};g.toggleAll=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(b.issueIds$),2);c=d.yieldResult;a.checked?b.checkedIssueIds.reset(c):b.checkedIssueIds.reset([]);ze(d)})};
g.openDupeDialog=function(){var a=this,b,c,d,e,f,h,k;return w(function(q){if(q.nextAddress==1){b=[].concat(p(a.checkedIssueIds));if(!b||!b.length)return q.return();c=Hya;return x(q,Ge(a.issueFridge.watchSet(b)),2)}if(q.nextAddress!=3)return d=c(q.yieldResult),e=l,x(q,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(q.yieldResult);return(k=h=f.next().value)?x(q,a.markAsDuplicate(k,b),0):q.return()})};
g.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(Fq.viewIssue.makeHref(a.id))},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"Mark selected issues as duplicate of this one",action:function(){var c=[].concat(p(b.checkedIssueIds));b.markAsDuplicate(a.id,c.filter(function(d){return d!==a.id}))},title:"Mark selected issues as duplicate of this one",icon:"issue-status-duplicate"}]};
g.markAsDuplicate=function(a,b){var c=this,d,e,f;return w(function(h){switch(h.nextAddress){case 1:d=b.filter(function(k){return k!==a});if(!d.length)return h.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};te(h,2,3);Mq(c.butterBar,"Saving...");return x(h,c.issueApi.issueBulkEdit(e),5);case 5:Mq(c.butterBar,"Marked "+b.length+" issues as duplicate.");case 3:return ue(h),x(h,Promise.all([].concat(p(b.map(function(k){return c.issueFridge.poke(k)})),[c.issueFridge.poke(a)])),
6);case 6:we(h,0);break;case 2:f=xe(h),FK(c.errorHandler,f),h.jumpTo(3)}})};g.cancelAction=function(){this.displaySecondaryFooter=!1};g.finalizeSecondaryAction=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1)return b.displaySecondaryFooter=!1,(c=b.selectedTriageAction)?x(e,ARc(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ze(e)})};g.sendFeedback=function(){URc(this.userFeedback)};
g.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","accept","trendingThemes")};g.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","reject","trendingThemes")};
g.openSecondaryActionFooter=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return c=[].concat(p(b.checkedIssueIds)),b.triageService.internalSelectedIssueIds$.next(c),a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):x(d,b.openDupeDialog(),3);if(d.nextAddress!=2)return d.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ze(d)})};g.announceUpdate=function(a,b){if(b&&b.length)for(a=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};
LS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(LS)))(b||LS)}}();
LS.\u0275cmp=B({type:LS,selectors:[["cluster-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[kg],decls:48,vars:27,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"flex-kids-x","space-between","border-bottom","bg-main","align-items-center"],["chipColor","purple","displayText","Trending themes","icon","issue-status-new","tooltip","Trending theme identified by AI",1,"margin-s-left"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label",
"Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y","margin-s"],[1,"flex-kids-x","space-between","full-width"],[1,"heading-m"],[1,"type-s"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Send feedback for the trending themes","aria-label","send feedback for the trending themes",1,"feedback-button",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Trending themes are helpful",
"aria-label","thumb up",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s",3,"ngClass"],["type","button","mat-icon-button","","matTooltip","Trending themes are not helpful","aria-label","thumb down",1,"feedback-button",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s",3,"ngClass"],[1,"bg-main","rounded","bordered","flex-kids-y","margin-s-y","gap-xs"],[1,"description","border-bottom","padded"],[1,"padded"],[1,"muted"],["mat-table","",1,"full-width",3,"dataSource",
"trackBy"],["matColumnDef","checkbox"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","phase"],["matColumnDef","relativeModifiedTime"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc","class","nowrap",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"closed",4,"matRowDef","matRowDefColumns"],["mat-button",
"","color","primary",1,"small","width-fit-content","margin-s-top",3,"routerLink","queryParams"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted","uppercase"],[1,"margin-s-top"],["mat-header-cell",""],["gmat-checkbox","",3,"change","checked","indeterminate"],["mat-cell",""],["gmat-checkbox","",3,"change","checked"],["anchorTarget","_blank",3,"issue","enableHovercard"],[1,"chippy"],["mat-header-cell","","mat-sort-header","relativeModifiedTime","start","desc",1,"nowrap"],
["mat-cell","",1,"nowrap"],[3,"timestamp","mode","paddingLeftPx"],["buttonLabel","More options","buttonIcon","more-settings-vertical","menuClass","issue-cluster-options",3,"click","menuItems"],["mat-header-row",""],["mat-row",""],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","","matTooltip","Mark selected issues as duplicate",1,"gmat-button",3,"click","disabled"]],template:function(a,
b){a&1&&(I(0,"div",0)(1,"div",1),K(2,"b-signal-chip",2),I(3,"button",3),M("click",function(){return b.triageService.closeSidebar()}),K(4,"mat-icon",4),J()(),I(5,"div",5)(6,"div",6)(7,"h3",7),Q(8),S(9,"async"),S(10,"async"),J(),K(11,"span",8),I(12,"div",9)(13,"button",10),M("click",function(){return b.sendFeedback()}),K(14,"mat-icon",11),J(),I(15,"button",12),M("click",function(){return b.trackThumbsUp()}),K(16,"mat-icon",13),J(),I(17,"button",14),M("click",function(){return b.trackThumbsDown()}),
K(18,"mat-icon",15),J()()(),I(19,"div",16),E(20,O2a,5,1,"div",17),S(21,"async"),I(22,"div",18)(23,"span",19),Q(24,"Select issues to take action"),J(),I(25,"table",20),Fg(26,21),C(27,P2a,4,6,"th",22)(28,Q2a,3,3,"td",23),Gg(),Fg(29,24),C(30,R2a,2,0,"th",22)(31,S2a,3,4,"td",23),Gg(),Fg(32,25),C(33,T2a,2,0,"th",22)(34,W2a,3,3,"td",23),Gg(),Fg(35,26),C(36,X2a,2,0,"th",27)(37,$2a,3,3,"td",28),Gg(),Fg(38,29),C(39,a3a,1,0,"th",22)(40,b3a,2,1,"td",23),Gg(),C(41,c3a,1,0,"tr",30)(42,d3a,2,4,"tr",31),J(),E(43,
e3a,2,2,"a",32),S(44,"async"),J()()(),I(45,"div",33),E(46,h3a,2,1),S(47,"async"),J()());if(a&2){var c,d,e,f;z(8);dh("",T(9,13,b.title$)," (",(c=T(10,15,b.issueIds$))==null?null:c.length," issues)");z(7);D("disabled",b.hasReacted);z();D("ngClass",jh(23,aSc,b.thumbsUpClicked));z();D("disabled",b.hasReacted);z();D("ngClass",jh(25,aSc,b.thumbsDownClicked));z(2);F((d=T(21,17,b.clusterDescription$))?20:-1,d);z(5);D("dataSource",b.rows$)("trackBy",b.trackBy);z(16);D("matHeaderRowDef",b.tableColumns);z();
D("matRowDefColumns",b.tableColumns);z();F((e=T(44,19,b.searchUrl$))?43:-1,e);z(3);F((f=T(47,21,b.issuePhase$))?46:-1,f)}},dependencies:[KS,Mv,aB,FA,ZL,PA,Tx,Ux,yM,CM,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,YA,cB,kP,qQ,CS,$G,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}  div.mat-mdc-menu-panel.issue-cluster-options-menu{max-width:350px}  div.mat-mdc-menu-panel.issue-cluster-options-menu .mat-mdc-menu-content button.mat-mdc-menu-item{width:350px}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"]});var MS=function(){var a=this;this.data=n(sK);this.cdr=n(NA,{self:!0});this.codefont=n(zO);this.location=n(dw);this.paths=n(EN);this.userFeedback=n(JS);this.errorHandler=n(DK);this.issueId=this.data.issueId;this.commentNumber=this.data.commentNumber;this.commentVersion=this.data.commentVersion;this.history=[];this.diffView=this.isLoading=!0;this.data.commentHistory.then(function(b){a.history=b}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
MS.prototype.updateUrl=function(a,b){a.stopPropagation();a=Hq(this.issueId)+("#comment"+this.commentNumber+"version"+b);this.location.replaceState(a)};MS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};MS.\u0275fac=function(a){return new (a||MS)};
MS.\u0275cmp=B({type:MS,selectors:[["comment-history-dialog"]],standalone:!1,features:[hh([NA])],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],[3,"change","checked"],[1,"dialog-feedback",3,"click"],[1,"float-clear"],[1,"bv2-view-loading"],[1,"comment-history-list"],"type button mat-button  mat-dialog-close ".split(" "),[1,"comment-version",3,"comment-version-open"],[1,"comment-version"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"comment-version-header",
3,"click"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs",3,"innerHtml"],[1,"type-xs"],[1,"comment-version-email"],[3,"email"],[3,"click","id"],[1,"comment-version-preview"],[1,"comment-version-preview","deleted"],[1,"comment-version-restricted"],[1,"comment-version-content","deleted"],[1,"comment-version-content",3,"codefont","innerHtml"],[1,"comment-version-content",3,"innerHtml"]],template:function(a,b){a&1&&(I(0,"h2",
0),Q(1),J(),I(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),M("change",function(c){return b.diffView=c.checked}),Q(5," Show Diff "),J()(),I(6,"a",3),M("click",function(){return b.startFeedback()}),Q(7,"Feedback"),J(),K(8,"br",4),E(9,i3a,2,0,"div",5)(10,x3a,3,0,"ul",6),J(),I(11,"mat-dialog-actions")(12,"button",7),Q(13,"Close"),J()());a&2&&(z(),R("History for Comment #",b.commentNumber),z(3),D("checked",b.diffView),z(5),F(b.isLoading?9:10))},dependencies:[ZL,yM,CM,PA,Tx,uK,wK,yK,xK,IJ,ON,
AL,zL,Qv,aJ,vL],styles:[".comment-history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);padding:8px 5px}.comment-version-open[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);color:#202124;color:var(--text)}.comment-version[_ngcontent-%COMP%] > .bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px}.comment-version-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-preview[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.comment-version-restricted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version-header[_ngcontent-%COMP%]{cursor:pointer;margin-left:40px}.comment-version-content[_ngcontent-%COMP%]{cursor:auto;margin:20px 0 10px 40px;white-space:pre-wrap}.comment-version[_ngcontent-%COMP%]   .deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.comment-version[_ngcontent-%COMP%] + .comment-version[_ngcontent-%COMP%]{border-top:0}.comment-version[_ngcontent-%COMP%]   .bv2-event-user-image-cell[_ngcontent-%COMP%]{margin:0}.dialog-feedback[_ngcontent-%COMP%]{float:right}.diff-checkbox[_ngcontent-%COMP%]{float:right;margin-right:10px;margin-left:10px}b-formatted-date-time[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%]     .diff-added{background-color:#ceead6;background-color:var(--good-bg)}[_nghost-%COMP%]     .diff-removed{background-color:#fce8e6;background-color:var(--bad-bg);text-decoration:line-through}/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});var y3a=function(){},rr=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("Ge");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=bSc(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=cSc(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=dSc(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);eSc(a,b);return b},dSc=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,h=b.length>c.length?c:b,k=f.indexOf(h);if(k!=-1)return a=[[1,f.substring(0,k)],[0,h],[1,f.substring(k+h.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(h.length==1)return[[-1,b],[1,c]];if(f=fSc(b,c))return c=f[1],h=f[3],b=f[4],f=rr(a,f[0],f[2],d,e),a=rr(a,c,h,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=gSc(b,c);c=b.lineArray;b=rr(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];h=[];for(k=0;k<f.length;k++)h[k]=c[f.charCodeAt(k)];b[d][1]=h.join("")}z3a(a,
b);b.push([0,""]);f=d=c=0;for(k=h="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;h+=b[c][1];break;case 0:if(d>=1&&f>=1){b.splice(c-d-f,d+f);c=c-d-f;d=rr(a,h,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),u=Array(k),A=0;A<k;A++)q[A]=-1,u[A]=-1;q[h+1]=0;u[h+1]=0;A=d-f;for(var G=A%2!=0,H=0,N=0,O=0,U=0,da=0;da<h&&!((new Date).getTime()>e);da++){for(var ma=
-da+H;ma<=da-N;ma+=2){var ra=h+ma;var Ga=ma==-da||ma!=da&&q[ra-1]<q[ra+1]?q[ra+1]:q[ra-1]+1;for(var Na=Ga-ma;Ga<d&&Na<f&&b.charAt(Ga)==c.charAt(Na);)Ga++,Na++;q[ra]=Ga;if(Ga>d)N+=2;else if(Na>f)H+=2;else if(G&&(ra=h+A-ma,ra>=0&&ra<k&&u[ra]!=-1)){var Qa=d-u[ra];if(Ga>=Qa){a=hSc(a,b,c,Ga,Na,e);break a}}}for(ma=-da+O;ma<=da-U;ma+=2){ra=h+ma;Qa=ma==-da||ma!=da&&u[ra-1]<u[ra+1]?u[ra+1]:u[ra-1]+1;for(Ga=Qa-ma;Qa<d&&Ga<f&&b.charAt(d-Qa-1)==c.charAt(f-Ga-1);)Qa++,Ga++;u[ra]=Qa;if(Qa>d)U+=2;else if(Ga>f)O+=
2;else if(!G&&(ra=h+A-ma,ra>=0&&ra<k&&q[ra]!=-1&&(Ga=q[ra],Na=h+Ga-ra,Qa=d-Qa,Ga>=Qa))){a=hSc(a,b,c,Ga,Na,e);break a}}}a=[[-1,b],[1,c]]}return a},hSc=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=rr(a,b.substring(0,d),c.substring(0,e),!1,f);a=rr(a,h,k,!1,f);return b.concat(a)},gSc=function(a,b){function c(h){for(var k="",q=0,u=-1,A=d.length;u<h.length-1;){u=h.indexOf("\n",q);u==-1&&(u=h.length-1);var G=h.substring(q,u+1);(e.hasOwnProperty?e.hasOwnProperty(G):e[G]!==void 0)?k+=String.fromCharCode(e[G]):
(A==f&&(G=h.substring(q),u=h.length),k+=String.fromCharCode(A),e[G]=A,d[A++]=G);q=u+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},bSc=function(a,b){if(!a||!b||a.charAt(0)!=b.charAt(0))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},cSc=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),
e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e},iSc=function(a,b){var c=a.length,d=b.length;if(c==0||d==0)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=b.indexOf(a.substring(c-e));if(f==-1)return d;e+=f;if(f==0||a.substring(c-e)==b.substring(0,e))d=e,e++}},fSc=function(a,b){function c(k,q,u){for(var A=k.substring(u,u+Math.floor(k.length/4)),G=-1,H="",
N,O,U,da;(G=q.indexOf(A,G+1))!=-1;){var ma=bSc(k.substring(u),q.substring(G)),ra=cSc(k.substring(0,u),q.substring(0,G));H.length<ra+ma&&(H=q.substring(G-ra,G)+q.substring(G,G+ma),N=k.substring(0,u-ra),O=k.substring(u+ma),U=q.substring(0,G-ra),da=q.substring(G+ma))}return H.length*2>=k.length?[N,O,U,da,H]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(d.length<4||e.length*2<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var h;if(f||d)d?h=f?f[4].length>
d[4].length?f:d:d:h=f;else return null;a.length>b.length?(a=h[0],b=h[1],f=h[2],d=h[3]):(f=h[0],d=h[1],a=h[2],b=h[3]);return[a,b,f,d,h[4]]},z3a=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,u=0,A=0;h<b.length;)b[h][0]==0?(d[e++]=h,k=u,q=A,A=u=0,f=b[h][1]):(b[h][0]==1?u+=b[h][1].length:A+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(u,A)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=e>0?d[e-1]:-1,A=u=q=k=0,f=null,c=!0)),h++;c&&eSc(a,b);jSc(b);for(h=1;h<b.length;){if(b[h-
1][0]==-1&&b[h][0]==1){a=b[h-1][1];c=b[h][1];d=iSc(a,c);e=iSc(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(h,0,[0,c.substring(0,d)]),b[h-1][1]=a.substring(0,a.length-d),b[h+1][1]=c.substring(d),h++}else if(e>=a.length/2||e>=c.length/2)b.splice(h,0,[0,a.substring(0,e)]),b[h-1][0]=1,b[h-1][1]=c.substring(0,c.length-e),b[h+1][0]=-1,b[h+1][1]=a.substring(e),h++;h++}h++}},jSc=function(a){function b(G,H){if(!G||!H)return 6;var N=G.charAt(G.length-1),O=H.charAt(0),U=N.match(kSc),da=O.match(kSc),
ma=U&&N.match(lSc),ra=da&&O.match(lSc);N=ma&&N.match(mSc);O=ra&&O.match(mSc);G=N&&G.match(nSc);H=O&&H.match(oSc);return G||H?5:N||O?4:U&&!ma&&ra?3:ma||ra?2:U||da?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==0&&a[c+1][0]==0){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],h=cSc(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,u=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var A=
b(d,e)+b(e,f);A>=u&&(u=A,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},kSc=/[^a-zA-Z0-9]/,lSc=/\s/,mSc=/[\r\n]/,nSc=/\n\r?\n$/,oSc=/^\r?\n\r?\n/,eSc=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",h="",k;c<b.length;)switch(b[c][0]){case 1:e++;h+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:d+e>1?(d!==0&&e!==0&&(k=bSc(h,f),k!==0&&(c-d-e>0&&b[c-d-e-1][0]==0?b[c-d-e-1][1]+=h.substring(0,k):(b.splice(0,0,[0,h.substring(0,
k)]),c++),h=h.substring(k),f=f.substring(k)),k=cSc(h,f),k!==0&&(b[c][1]=h.substring(h.length-k)+b[c][1],h=h.substring(0,h.length-k),f=f.substring(0,f.length-k))),d===0?b.splice(c-e,d+e,[1,h]):e===0?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,h]),c=c-d-e+(d?1:0)+(e?1:0)+1):c!==0&&b[c-1][0]==0?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,h=f=""}b[b.length-1][1]===""&&b.pop();d=!1;for(c=1;c<b.length-1;)b[c-1][0]==0&&b[c+1][0]==0&&(b[c][1].substring(b[c][1].length-b[c-1][1].length)==b[c-1][1]?
(b[c][1]=b[c-1][1]+b[c][1].substring(0,b[c][1].length-b[c-1][1].length),b[c+1][1]=b[c-1][1]+b[c+1][1],b.splice(c-1,1),d=!0):b[c][1].substring(0,b[c+1][1].length)==b[c+1][1]&&(b[c-1][1]+=b[c+1][1],b[c][1]=b[c][1].substring(b[c+1][1].length)+b[c+1][1],b.splice(c+1,1),d=!0)),c++;d&&eSc(a,b)};var NS=function(){this.analytics=n(CF);this.issueComments=n(VK);this.dialogManager=n(tK)};NS.prototype.show=function(a,b,c){var d=this,e;return w(function(f){if(d.dialog&&d.dialog.getState()!==2)return f.return();d.analytics.trackEvent("commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:pSc(d,a,b,c)};d.dialog=d.dialogManager.open(MS,{data:e,width:"50vw"});return f.return(Ge(nK(d.dialog)))})};
var pSc=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",h=e.length>0?e[0].formattingMode:"",k=!1,q=[];e=l(e);for(var u=e.next();!u.done;u=e.next()){u=u.value;var A=B3a(u);A||k?(f=qSc(u.unlinkifiedComment),h=qSc(u.formattingMode)):(f=A3a(f,u.unlinkifiedComment),k=u.formattingMode,h=h===k?qSc(k):Pi([qSc(h,"diff-removed"),qSc(k,"diff-added")]));k=u.unlinkifiedComment===void 0?"":u.unlinkifiedComment;var G=u.version,H=u.commentContentVerdict;
q.push({unlinkifiedComment:k,lastEditorUser:u.lastEditorUser,version:G,formattingMode:u.formattingMode,formattingModeDiff:h,lastModified:Number(u.lastModified)/1E3,open:G<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:H&&H.piiVerdict&&H.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:B3a(u)});f=u.unlinkifiedComment;h=u.formattingMode;k=A}d>-1?q[d].open=!0:q[0].open=!0;return q})},qSc=function(a,b){return Qi("span",b?{"class":b}:void 0,a)};
NS.\u0275fac=function(a){return new (a||NS)};NS.\u0275prov=Sc({token:NS,factory:NS.\u0275fac,providedIn:"root"});var OS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,OS.messageId)};Y(OS,V);OS.prototype.getUrl=function(){return Oh(this,1)};OS.prototype.setUrl=function(a){return Rl(this,1,a)};OS.prototype.hasUrl=function(){return ml(this,1)};OS.messageId="b.AttachmentUrlResponse";var PS=function(){this.executor=n(zC)};PS.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("Ie"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(iBa(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:OS}).then(function(f){return f.getUrl()})};PS.\u0275fac=function(a){return new (a||PS)};PS.\u0275prov=Sc({token:PS,factory:PS.\u0275fac,providedIn:"root"});var QS=function(){this.templateRef=n(Tg);this.viewContainer=n(Ug);this.activeSession=n(Es);this.isInternal=this.activeSession.isInternalSession()};QS.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};QS.\u0275fac=function(a){return new (a||QS)};QS.\u0275dir=Kf({type:QS,selectors:[["","internalOnly",""]],standalone:!1});var RS=function(){this.dialogRef=n(mK);this.data=n(sK);this.userAccess=n(jE);this.attachmentsUrl=n(PS);this.butterBar=n(iK);this.domSafe=n(rL);this.documentationLinks=n(lK);this.changeDetectorRef=n(NA,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};RS.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
RS.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;D3a(this)?(this.hasViewAccess=!1,kE(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b}).finally(function(){a.isLoading=!1})):(this.hasViewAccess=!0,this.isLoading=!1)};RS.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var D3a=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},rSc=function(a){var b=a.download&&fua(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?sL(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};RS.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
RS.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};RS.\u0275fac=function(a){return new (a||RS)};
RS.\u0275cmp=B({type:RS,selectors:[["b-attachment-download-dialog"]],standalone:!1,features:[hh([NA])],decls:20,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"gmat-body-2"],[1,"gmat-body-1"],[1,"download-attachment-icon"],["svgIcon","file-present","size","icon-l"],[1,"download-attachment-filename"],[4,"internalOnly"],["diameter","60",1,"centered-spinner"],["mat-dialog-actions",""],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",1,"dialog-primary-action",
3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access in Buganizer.",3,"href"],[1,"no-access-warning"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Access Attachment"),J(),I(2,"div",1)(3,"div",2),Q(4," Are you sure you would like to access the following attachment? "),J(),K(5,"br"),I(6,"div",3)(7,"div",4),K(8,"mat-icon",5),J(),I(9,"div",6),Q(10),J()(),K(11,"br"),C(12,E3a,2,1,"ng-container",7),E(13,F3a,3,0,"div",2),J(),E(14,G3a,1,0,"mat-spinner",8),I(15,"div",
9)(16,"button",10),M("click",function(){return b.close()}),Q(17," Cancel "),J(),I(18,"button",11),M("click",function(){return rSc(b)}),Q(19," Continue "),J()());a&2&&(z(10),R(" ",b.attachment.filename," "),z(3),F(b.isLoading||b.hasViewAccess?-1:13),z(),F(b.isLoading?14:-1),z(4),D("disabled",!b.hasViewAccess))},dependencies:[aB,PA,Tx,wK,yK,xK,NN,LN,QS],styles:[".centered-spinner[_ngcontent-%COMP%]{margin:0 auto}.download-attachment-icon[_ngcontent-%COMP%]{float:left;margin-right:5px}.download-attachment-filename[_ngcontent-%COMP%]{font-weight:bold}.no-access-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}"]});var sSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sSc,V);g=sSc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Fm(this,1,a)};g.getAttachmentId_asLegacyNumberOrString=function(){return zl(this,2)};g.getAttachmentId_asString=function(){return Gl(this,2)};g.setAttachmentId=function(a){return Fm(this,2,a)};
g.getRestrictedRetention=function(){return pl(this,3)};g.setRestrictedRetention=function(a){return Nk(this,3,a)};var tSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tSc,V);tSc.prototype.getIt=function(){return X(this,sSc,4)};tSc.prototype.setIt=function(a){return W(this,sSc,4,a)};var SS=function(){this.executor=n(yC)};SS.prototype.updateRetention=function(a,b,c){c=(new tSc).setIt((new sSc).setIssueId(a).setAttachmentId(b).setRestrictedRetention(rza(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:MK}).pipe(y(UMa))};SS.\u0275fac=function(a){return new (a||SS)};SS.\u0275prov=Sc({token:SS,factory:SS.\u0275fac,providedIn:"root"});var uSc=Symbol("Je"),vSc=/^[a-z0-9-_]{6,30}$/,wSc="productID must match the expression: "+vSc;zu(sr,H3a);for(var xSc=[],ySc=0;ySc<63;ySc++)xSc[ySc]=0;var zSc=[].concat(128,xSc);sr.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ya.Int32Array?new Int32Array(this.initHashBlocks_):ab(this.initHashBlocks_)};
var ASc=function(a){for(var b=a.chunk_,c=a.w_,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.hash_[0]|0;d=a.hash_[1]|0;e=a.hash_[2]|0;for(var f=a.hash_[3]|0,h=a.hash_[4]|0,k=a.hash_[5]|0,q=a.hash_[6]|0,u=a.hash_[7]|0,A=0;A<64;A++){var G=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,H=(u+((h>>>6|h<<26)^
(h>>>11|h<<21)^(h>>>25|h<<7))|0)+(((h&k^~h&q)+(I3a[A]|0)|0)+(c[A]|0)|0)|0;u=q;q=k;k=h;h=f+H|0;f=e;e=d;d=b;b=H+G|0}a.hash_[0]=a.hash_[0]+b|0;a.hash_[1]=a.hash_[1]+d|0;a.hash_[2]=a.hash_[2]+e|0;a.hash_[3]=a.hash_[3]+f|0;a.hash_[4]=a.hash_[4]+h|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+q|0;a.hash_[7]=a.hash_[7]+u|0};
sr.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.inChunk_;if(typeof a==="string")for(;c<b;)this.chunk_[d++]=a.charCodeAt(c++),d==this.blockSize&&(ASc(this),d=0);else if(bb(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("Ke");this.chunk_[d++]=e;d==this.blockSize&&(ASc(this),d=0)}else throw Error("Le");this.inChunk_=d;this.total_+=b};
sr.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(zSc,56-this.inChunk_):this.update(zSc,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;ASc(this);for(c=b=0;c<this.numHashBlocks_;c++)for(var d=24;d>=0;d-=8)a[b++]=this.hash_[c]>>d&255;return a};
var J3a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],I3a;zu(L3a,sr);var K3a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var N3a=new TextEncoder,O3a=N3a.encode("$@#|").buffer;var BSc=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],CSc=new TextEncoder,DSc={},ESc=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!vSc.test("buganizer"))throw Error(wSc);if(!V3a())throw Error("Ne");DSc.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=DSc.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",function(){b()},{once:!0});
a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},FSc=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Oe");var d=new MessageChannel;a.shimIframe.contentWindow.postMessage(b,c,[d.port2]);return new Promise(function(e){d.port1.onmessage=function(f){f=f.data;if(f.type==="msg")f.message==="Reloading iframe"&&e();else if(f.type==="error")throw Error(f.message);}})},GSc=function(a,b,c,d){var e,f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na,Qa,gb;w(function(va){switch(va.nextAddress){case 1:if(a.renderCalled)throw Error("Pe");
a.renderCalled=!0;h=(f=(e=a.shimOptions)==null?void 0:e.sandbox)!=null?f:BSc;c.toLowerCase()!=="application/pdf"&&(a.shimIframe.sandbox.add.apply(a.shimIframe.sandbox,p(h)),a.shimIframe.sandbox.add("allow-scripts"),a.shimIframe.sandbox.add("allow-same-origin"));q=(k=a.shimOptions)==null?void 0:k.useSubtleCrypto;G=(A=a.shimOptions)==null?void 0:A.enableBrowserCaching;N=(H=a.shimOptions)==null?void 0:H.urlFragment;if(!G){u=R3a().buffer;va.jumpTo(2);break}if(G===!0)return x(va,Q3a({useSubtleCrypto:q,
parts:[b,location.pathname]}),7);if(typeof G!=="object"||!G[uSc])throw Error("Qe");return x(va,M3a(CSc.encode(G[uSc]).buffer,q),6);case 6:u=va.yieldResult;va.jumpTo(2);break;case 7:u=va.yieldResult;case 2:return O=window.origin,x(va,T3a({product:a.productID,salt:u,useSubtleCrypto:q,trustedOrigin:O,version:Number("738029893")}),8);case 8:return U=va.yieldResult,da=U3a({trustedOrigin:O,fileHash:U,version:"738029893",product:a.productID,cache:!!G}),ma=(new URL(da)).origin,a.shimBlobUrlFactory!==void 0?
(ra=a.shimBlobUrlFactory(da),Ga=URL.createObjectURL(ra),a.shimIframe.src=Ga,ma=(new URL(Ga)).origin):a.shimIframe.src=da,d.appendChild(a.shimIframe),x(va,a.attachedPromise,9);case 9:return Na=!1,gb=new Promise(function(Ja){a.shimIframe.addEventListener("load",function(){Na=!0;Ja(Qa)},{once:!0})}),Qa={sendMessage:function(Ja,La){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("Oe");a.shimIframe.contentWindow.postMessage(Ja,ma,La)},origin:ma,fullyLoadedPromise:gb,fullyLoadedPromiseWithTimeout:function(Ja){var La=
new Promise(function(Lb,Eb){setTimeout(function(){Na?Lb(Qa):Eb(Error("Re"))},Ja)});return Promise.race([gb,La])}},x(va,FSc(a,{body:b,mimeType:c,salt:u,urlFragment:N},ma),10);case 10:return va.return(Qa)}})};var HSc=["attachmentContent"],TS=function(){Z.apply(this,arguments);this.attachmentsApi=n(PK)};Y(TS,Z);TS.\u0275dir=Z.\u0275dir;TS.prototype.ngOnInit=function(){ISc(this)};var ISc=function(a){a.subscriptions.add(MEc(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&GSc(new ESc,b,a.mimeType,a.container.nativeElement)}))};TS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(TS)))(b||TS)}}();
TS.\u0275cmp=B({type:TS,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&Wg(HSc,5);if(a&2){var c;$g(c=ah())&&(b.container=c.first)}},inputs:{issueId:"issueId",attachmentId:"attachmentId",mimeType:"mimeType"},standalone:!1,features:[kg],decls:2,vars:0,consts:[["attachmentContent",""],[1,"full-width","full-height"]],template:function(a){a&1&&K(0,"div",1,0)},styles:["[_nghost-%COMP%]     iframe{border:0;height:100%;width:100%}/*# sourceMappingURL=attachment_preview.css.map */"]});var US=function(){this.inlinedAttachmentSet=new Set};US.prototype.getCount=function(){return this.inlinedAttachmentSet.size};US.\u0275fac=function(a){return new (a||US)};US.\u0275prov=Sc({token:US,factory:US.\u0275fac,providedIn:"root"});var VS=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new LA};VS.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};VS.\u0275fac=function(a){return new (a||VS)};
VS.\u0275cmp=B({type:VS,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},standalone:!1,decls:2,vars:2,consts:[[3,"muted"],["target","_blank",1,"normal-link",3,"href","rel"],["target","_blank",1,"normal-link",3,"click","href","rel"]],template:function(a,b){a&1&&(E(0,W3a,2,3,"span",0),E(1,X3a,2,3,"a",1));a&2&&(F(b.isGreyedOut||!b.linkEnabled?
0:-1),z(),F(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var WS=function(){this.tooltipRegistry={}};WS.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};WS.\u0275fac=function(a){return new (a||WS)};WS.\u0275prov=Sc({token:WS,factory:WS.\u0275fac,providedIn:"root"});var XS=function(){sx.apply(this,arguments)};Y(XS,sx);XS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(XS)))(b||XS)}}();XS.\u0275dir=Kf({type:XS,selectors:[["","expandable-tab-content",""]],standalone:!1,features:[kg]});var YS=function(){sx.apply(this,arguments)};Y(YS,sx);YS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(YS)))(b||YS)}}();YS.\u0275dir=Kf({type:YS,selectors:[["","expandable-tab-header",""]],standalone:!1,features:[kg]});
var ZS=function(){sx.apply(this,arguments)};Y(ZS,sx);ZS.\u0275fac=function(){var a;return function(b){return(a||(a=fe(ZS)))(b||ZS)}}();ZS.\u0275dir=Kf({type:ZS,selectors:[["","expandable-tab-icon",""]],standalone:!1,features:[kg]});var $S=function(){};$S.prototype.ngOnInit=function(){};$S.\u0275fac=function(a){return new (a||$S)};
$S.\u0275cmp=B({type:$S,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(Xg(c,YS,5,Tg),Xg(c,XS,5,Tg),Xg(c,ZS,5,Tg));if(a&2){var d;$g(d=ah())&&(b.tabHeaderTemplate=d.first);$g(d=ah())&&(b.tabContentTemplate=d.first);$g(d=ah())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var JSc=function(a){return{allTabsExpanded:a}},$3a=function(a){return{tab:a}},r4a=function(){return[]},KSc=function(a,b){return b.key},aT=function(){Z.apply(this,arguments);this.internalTabKeys$=new tj([]);this.ariaLabel="";this.openTabCallback=function(){return w(function(a){return a.return(!0)})};this.openAllTabsCallback=function(){return w(function(a){return a.return(!0)})};this.expandableTabsTitle="";this.internalExpandedTabs=new uC;this.visibleExpandedTabs$=Je([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(y(function(a){var b=
l(a);a=b.next().value;var c=b.next().value;return a.filter(function(d){return c.has(d)})}));this.expandedTabsChanged=new LA;this.contentShownChanged=new LA;this.tabs$=new tj([]);this.allTabsExpanded$=Je([this.tabs$,this.internalExpandedTabs.value$]).pipe(y(function(a){var b=l(a);a=b.next().value;var c=b.next().value;return a.every(function(d){return c.has(d.key)})}))};Y(aT,Z);aT.\u0275dir=Z.\u0275dir;
aT.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(eg(void 0),y(function(){return a.internalTabs.toArray()}),y(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),fg(function(b){return Je([Ce(b),a.internalTabKeys$])}),y(function(b){b=l(b);var c=b.next().value;return b.next().value.map(function(d){return Object.assign({},{key:d},c.get(d))})})).subscribe(this.tabs$));this.subscriptions.add(Je([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(y(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return Uta(new Set(b),new Set(c))}),Xf(Pj)).subscribe(function(b){a.contentShownChanged.emit(b)}))};aT.prototype.ngOnInit=function(){};
var f4a=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return(c=a.internalExpandedTabs.has(b))?(a.internalExpandedTabs.delete(b),d.jumpTo(2)):x(d,a.openTabCallback(b),3);if(d.nextAddress!=2){if(!d.yieldResult)return d.return();a.internalExpandedTabs.add(b)}a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ze(d)})};
aT.prototype.showAll=function(){var a=this;return w(function(b){if(b.nextAddress==1)return x(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,p(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));ze(b)})};aT.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
aT.prototype.toggleAll=function(){var a=this,b;return w(function(c){return c.nextAddress==1?x(c,Ge(a.allTabsExpanded$),2):(b=c.yieldResult)?(a.hideAll(),c.jumpTo(0)):x(c,a.showAll(),0)})};ea.Object.defineProperties(aT.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(p(a)))},get:function(){return this.internalTabKeys$.value}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){this.internalExpandedTabs.reset(a)},get:function(){return[].concat(p(this.internalExpandedTabs))}}});
aT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(aT)))(b||aT)}}();
aT.\u0275cmp=B({type:aT,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&Xg(c,$S,5);if(a&2){var d;$g(d=ah())&&(b.internalTabs=d)}},inputs:{tabKeys:"tabKeys",ariaLabel:"ariaLabel",openTabCallback:"openTabCallback",openAllTabsCallback:"openAllTabsCallback",expandableTabsTitle:"expandableTabsTitle",expandedTabs:"expandedTabs"},outputs:{expandedTabsChanged:"expandedTabsChanged",contentShownChanged:"contentShownChanged"},standalone:!1,features:[kg],decls:14,vars:11,consts:[["headerText",
""],["spacer",""],[1,"tabs-row","flex-kids-x","centered-inside"],[1,"expandable-tabs-title"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x","centered-inside"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"expanded"],["type","button","mat-button","",1,"small",3,"expandable-tabs-hide-all","expandable-tabs-show-all"],[1,"expandable-tabs-contents"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",
3,"click"],["svgIcon","done",1,"icon-s"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"small",3,"click"],["role","tabpanel",3,"class","id"],["role","tabpanel",3,"id"],[1,"spacer"]],template:function(a,b){a&1&&(I(0,"div",2),E(1,Y3a,2,2,"span",3),I(2,"div",4),Dg(3,g4a,9,19,"button",5,KSc),S(5,"async"),J(),E(6,h4a,2,6,"button",6),S(7,"async"),J(),I(8,"div",7),Dg(9,t4a,2,3,null,null,KSc),S(11,"async"),J(),C(12,y4a,2,1,"ng-template",null,0,
nh));if(a&2){var c;z();F(b.expandableTabsTitle?1:-1);z();ng("aria-label",b.ariaLabel);z();Eg(T(5,3,b.tabs$));z(3);F((c=jh(9,JSc,T(7,5,b.allTabsExpanded$)))?6:-1,c);z(3);Eg(T(11,7,b.tabs$))}},dependencies:[Pv,aB,PA,Tx,Qv],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px 4px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.expanded[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);border-color:transparent}.expandable-tab[_ngcontent-%COMP%]:hover{-webkit-filter:brightness(95%);filter:brightness(95%)}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button{line-height:unset;height:auto}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button .mat-icon{margin-right:4px}.expandable-tabs.flex-kids-x[_ngcontent-%COMP%]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.expandable-tabs-title[_ngcontent-%COMP%]{margin-right:8px}.expandable-tabs-hide-all[_ngcontent-%COMP%], .expandable-tabs-show-all[_ngcontent-%COMP%]{margin-left:auto}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.expandable-tab-content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;color:#202124;color:var(--c900);margin:16px 0}.expandable-tab-content[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{margin-top:8px}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});var LSc={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3,LEFT_TOP:4,LEFT_BOTTOM:5,RIGHT_TOP:6,RIGHT_BOTTOM:7,0:"TOP_LEFT",1:"TOP_RIGHT",2:"BOTTOM_LEFT",3:"BOTTOM_RIGHT",4:"LEFT_TOP",5:"LEFT_BOTTOM",6:"RIGHT_TOP",7:"RIGHT_BOTTOM"};var bT=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new hv;this.action=new hv;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=LSc;this.width=272;this.previouslyFocusedElement=null;this.dismissIfEscape=function(e){e.key==="Escape"&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;e!=null&&e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=
d.document.activeElement)};this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};bT.prototype.ngAfterContentInit=function(){nw(this.focusTrap);this.setPreviouslyFocusedElement();fcc(this.focusTrap)};
bT.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
bT.prototype.dismissTooltip=function(){this.dismiss.next();this.previouslyFocusedElement&&"focus"in this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0});this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement)};ea.Object.defineProperties(bT.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
bT.\u0275fac=function(a){return new (a||bT)(zf(Ei),zf(Fw),zf(ff))};
bT.\u0275cmp=B({type:bT,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&wg("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",action:"action"},standalone:!1,features:[hh([{provide:occ,useValue:{preventFocus:function(){},allowFocus:function(){}}},Fw])],ngContentSelectors:["*"],decls:8,vars:5,consts:[["cdkTrapFocus","","role","dialog","aria-modal",
"true","aria-label","Feature Tooltip",1,"tooltip-body","gmat-body-2",3,"ngClass"],[1,"pointer-container"],[1,"pointer"],[1,"button-row"],["class","action-button","mat-button","",3,"click",4,"ngIf"],["cdkFocusInitial","","mat-flat-button","",1,"close-button",3,"click","color"],["mat-button","",1,"action-button",3,"click"],[1,"action-button-wrapper"],["class","action-button-icon",4,"ngIf"],[1,"action-button-icon"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"div",1),K(2,"div",2),J(),Og(3),I(4,
"div",3),C(5,A4a,4,2,"button",4),I(6,"button",5),M("click",function(){return b.dismissTooltip()}),Q(7," Got it "),J()()());a&2&&(vg("width",b.width,"px"),D("ngClass",b.color),z(5),D("ngIf",b.actionBtnText),z(),D("color",b.color==="white"?"primary":""))},dependencies:[qw,Mv,Ov,TJ,aB],styles:[".overlay-container{overflow:hidden}.dark-mode,:root{--tooltip-white-bg:var(--surface-default,#fff);--tooltip-blue-bg:var(--blue-700,#1967d2);--tooltip-white-text:var(--grey-800,#3c4043);--tooltip-blue-text:var(--text-inverse,#fff);--tooltip-shadow-color:rgba(0,0,0,.2)}.dark-mode{--tooltip-white-bg:var(--surface-default,#28292c);--tooltip-blue-bg:var(--blue-300,#8ab4f8);--tooltip-white-text:var(--grey-300,#dadce0);--tooltip-blue-text:var(--text-inverse,#000);--tooltip-shadow-color:rgba(0,0,0,.5)}.tooltip-body{padding:24px;border-radius:8px;color:var(--tooltip-text);background-color:var(--tooltip-bg);position:relative;--pointer-edge-offset:24px;--pointer-width:18px;--pointer-height:12px;--pointer-container-height:30px;--pointer-container-width:calc(var(--pointer-edge-offset)*2 + var(--pointer-width));--pointer-adjustment:-9px;box-shadow:0 1px 3px 0 var(--tooltip-shadow-color),0 4px 8px 3px var(--tooltip-shadow-color)}.tooltip-body.blue{--tooltip-text:var(--tooltip-blue-text);--tooltip-bg:var(--tooltip-blue-bg)}.tooltip-body.white{--tooltip-text:var(--tooltip-white-text);--tooltip-bg:var(--tooltip-white-bg)}.tooltip-body .button-row{margin-top:16px;text-align:right}.tooltip-body .button-row>button{height:36px}.tooltip-body .button-row .close-button{color:var(--tooltip-bg);margin-left:16px;width:88px}.tooltip-body .button-row .action-button{padding-left:8px;padding-right:8px}.tooltip-body .button-row .action-button .action-button-wrapper{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.tooltip-body .button-row .action-button .action-button-wrapper .action-button-icon{font-size:18px;height:18px;padding-left:8px;width:18px}.tooltip-body .pointer-container{position:absolute;overflow:hidden;pointer-events:none}.tooltip-body .pointer-container .pointer{width:16px;height:16px;position:absolute;background-color:var(--tooltip-bg)}.tooltip-body .tooltip-title{margin:0 4px 0 0}.pointer-bottom-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-left .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-left .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-left .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-left .pointer-container{left:0}.pointer-bottom-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-right .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-right .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-right .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-right .pointer-container{right:0}.pointer-top-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-left .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-left .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-left .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-left .pointer-container{left:0}.pointer-top-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-right .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-right .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-right .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-right .pointer-container{right:0}.pointer-left-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-top .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-top .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-top .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-top .pointer-container{top:0}.pointer-left-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-bottom .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-bottom .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-bottom .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-bottom .pointer-container{bottom:0}.pointer-right-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-top .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-top .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-top .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-top .pointer-container{top:0}.pointer-right-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-bottom .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-bottom .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-bottom .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-bottom .pointer-container{bottom:0}"],
encapsulation:2,changeDetection:0});var cT=function(){};cT.\u0275fac=function(a){return new (a||cT)};cT.\u0275mod=Jf({type:cT});cT.\u0275inj=Tc({});var dT=function(){this.anchorMap=new Map},MSc=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new ag(1),destroyed$:new bg,dismissTooltip$:new bg};a.anchorMap.set(b,c);return c},NSc=function(a,b,c){MSc(a,b).created$.next(c)},OSc=function(a,b){MSc(a,b).destroyed$.next();MSc(a,b).created$.next(void 0)};dT.prototype.dismissTooltip=function(){MSc(this).dismissTooltip$.next()};dT.\u0275fac=function(a){return new (a||dT)};dT.\u0275prov=Sc({token:dT,factory:dT.\u0275fac,providedIn:cT});var eT={TOP_LEFT:{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},TOP_CENTER_RIGHT:{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},TOP_CENTER_LEFT:{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},TOP_RIGHT:{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",
offsetX:12}},RIGHT_TOP:{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},RIGHT_CENTER_BOTTOM:{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},RIGHT_CENTER_TOP:{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}},RIGHT_BOTTOM:{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",
overlayY:"bottom",offsetY:12}},LEFT_BOTTOM:{pointerPosition:7,connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},LEFT_CENTER_BOTTOM:{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"top",offsetY:-33}},LEFT_CENTER_TOP:{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},LEFT_TOP:{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",
overlayX:"end",overlayY:"top",offsetY:-12}},BOTTOM_LEFT:{pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},BOTTOM_CENTER_RIGHT:{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},BOTTOM_CENTER_LEFT:{pointerPosition:1,connectedPosition:{originX:"center",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}},BOTTOM_RIGHT:{pointerPosition:1,connectedPosition:{originX:"end",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}},PSc=[eT.TOP_CENTER_RIGHT,eT.TOP_CENTER_LEFT,eT.BOTTOM_CENTER_RIGHT,eT.BOTTOM_CENTER_LEFT],QSc=[eT.TOP_LEFT,eT.TOP_RIGHT,eT.BOTTOM_LEFT,eT.BOTTOM_RIGHT],RSc=[eT.LEFT_CENTER_BOTTOM,eT.LEFT_CENTER_TOP,eT.RIGHT_CENTER_BOTTOM,eT.RIGHT_CENTER_TOP],SSc=[eT.LEFT_TOP,eT.LEFT_BOTTOM,eT.RIGHT_TOP,eT.RIGHT_BOTTOM];var fT=function(){};fT.\u0275fac=function(a){return new (a||fT)};fT.\u0275mod=Jf({type:fT});fT.\u0275inj=Tc({});var gT=function(){},USc=function(a,b){return TSc(a,b).map(function(c){return c.connectedPosition})},VSc=function(a,b,c){a=TSc(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("Se`"+JSON.stringify(c));return a.pointerPosition},TSc=function(a,b){b=WSc(b).filter(function(c){return!a.includes(c)});return a.concat(b)},WSc=function(a){var b,c=a==null?void 0:(b=a.nativeElement)==null?void 0:b.clientWidth,d;a=a==null?void 0:(d=a.nativeElement)==null?void 0:d.clientHeight;return(c!==
void 0&&c<60?PSc:QSc).concat(a!==void 0&&a<60?RSc:SSc)};gT.\u0275fac=function(a){return new (a||gT)};gT.\u0275prov=Sc({token:gT,factory:gT.\u0275fac,providedIn:fT});var XSc=["template"],hT=function(a,b,c,d,e){var f=this;this.anchorService=a;this.overlay=b;this.containerRef=c;this.ngZone=d;this.changeDetectorRef=e;this.open$=new bg;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new hv;this.beforeShown=new hv;this.action=new hv;this.pointerPosition=0;this.destroyed$=new ag;this.init$=new ag;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=function(){f.overlayRef&&
f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var h;(h=f.overlayRef)==null||h.dispose();f.overlayRef=void 0}};hT.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||Lcc(b,YSc(this))}};
hT.prototype.ngOnInit=function(){var a=MSc(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;ZSc(this,a.created$);b.pipe(gg(this.destroyed$)).subscribe(this.hideFeatureTooltip);$Sc(this,c)};hT.prototype.ngAfterViewInit=function(){this.init$.next()};hT.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var ZSc=function(a,b){a.open$.pipe(aka(a.init$),hg(function(){a.beforeShown.emit()}),fg(function(){return b.pipe(gg(a.dismiss))}),gg(a.destroyed$),Ve(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.showFeatureTooltip(c)})},$Sc=function(a,b){b.pipe(gg(a.destroyed$),Ve(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
hT.prototype.showFeatureTooltip=function(a){this.anchor=a;a=a.nativeElement;if(this.hasBackdrop){var b=a.style,c=b.position;this.savedAnchorStyles={zIndex:b.zIndex,position:c};if(c==="static"||c==="")a.style.position="relative";a.style.zIndex="1001"}this.overlayRef=this.overlay.create({positionStrategy:YSc(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new px(this.templateRef,this.containerRef))};
hT.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};hT.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("Te");return hx(mx(this.overlay.position(),this.anchor),USc(this.customPositions,this.anchor))};
var YSc=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=VSc(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};hT.prototype.isVisible=function(){return!!this.overlayRef};hT.\u0275fac=function(a){return new (a||hT)(zf(dT),zf(vx),zf(Ug),zf(ph),zf(qv),zf(gT))};
hT.\u0275cmp=B({type:hT,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&Wg(XSc,5);if(a&2){var c;$g(c=ah())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},standalone:!1,features:[Uu],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(Ng(),C(0,B4a,2,5,"ng-template",null,0,nh))},dependencies:[bT],encapsulation:2,changeDetection:0});var iT=function(){};iT.\u0275fac=function(a){return new (a||iT)};iT.\u0275mod=Jf({type:iT});iT.\u0275inj=Tc({});var jT=function(){};jT.prototype.getValue=function(a){a=window.localStorage.getItem(a);return Ce(a?JSON.parse(a):null)};jT.prototype.getValues=function(a){return Ce(a.reduce(function(b,c){var d=b.set;var e=(e=window.localStorage.getItem(c))?JSON.parse(e):null;return d.call(b,c,e)},new Map))};jT.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return Ce(void 0)};jT.\u0275fac=function(a){return new (a||jT)};jT.\u0275prov=Sc({token:jT,factory:jT.\u0275fac,providedIn:"root"});var aTc=new yd("Feature Tooltip Controller Config"),kT=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(kJ):void 0;this.lastTooltipKey="onedev.lastTooltipTime."+this.config.productName;var d;this.config.shownMetricName=(d=this.config.shownMetricName)!=null?d:"tooltipShown";var e;this.config.hiddenMetricName=(e=this.config.hiddenMetricName)!=null?e:"tooltipHidden"},bTc=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(y(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};kT.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||MBc(b,this.config.hiddenMetricName,!0);Pe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(lT(this,a),"HIDDEN")]).pipe(Tf())};
var cTc=function(a,b){a.keyValueStore.getValue(lT(a,b)).pipe(Ve(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(lT(a,b),"HIDDEN")})},eTc=function(a,b,c){var d=c.map(function(e){return lT(a,e)});return a.keyValueStore.getValues(d).pipe(y(function(e){return dTc(a,b,c,e)}))};
kT.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||MBc(b,this.config.shownMetricName,!0);return Pe([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(lT(this,a),"SHOWING")]).pipe(Tf())};var dTc=function(a,b,c,d){return c.filter(function(e){e=d.get(lT(a,e));return e===b||b==="UNSEEN"&&e===null})},lT=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
kT.\u0275fac=function(a){return new (a||kT)(nd(aTc),nd(jT),nd(Ze))};kT.\u0275prov=Sc({token:kT,factory:kT.\u0275fac,providedIn:iT});var mT=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=Ce(void 0);this.destroyed$=new ag;this.getCurrentlyShowingTooltips=function(){return eTc(b.featureTooltipService,"SHOWING",fTc(b))}};
mT.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(fg(this.getCurrentlyShowingTooltips),fg(function(c){return c.length>0?Ce(c[0]):Ce(void 0).pipe(gTc(a),hTc(a))}),y(function(c){return iTc(a,c)}),Ve(function(c){return!!c}),y(function(c){return c}),cg({bufferSize:1,refCount:!0}));jTc(this,b);b.pipe(gg(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};mT.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var gTc=function(a){return oe(fg(function(){return bTc(a.featureTooltipService)}),Ve(ne))},hTc=function(a){return oe(fg(function(){return eTc(a.featureTooltipService,"UNSEEN",fTc(a))}),Ve(function(b){return b.length>0}),y(function(b){return b[0]}))},jTc=function(a,b){b.pipe(fg(function(c){return c.dismiss.pipe(Tf(c.tooltipId))}),gg(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},fTc=function(a){return a.tooltips.map(function(b){return b.tooltipId})},iTc=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};mT.\u0275fac=function(a){return new (a||mT)(zf(kT))};mT.\u0275cmp=B({type:mT,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&Xg(c,hT,4);if(a&2){var d;$g(d=ah())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var nT=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};nT.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){l(b).next().value.isIntersecting?NSc(a.anchorService,a.tooltipId,a.element):OSc(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):NSc(this.anchorService,this.tooltipId,this.element)};
nT.prototype.ngOnDestroy=function(){OSc(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};nT.\u0275fac=function(a){return new (a||nT)(zf(dT),zf(ff))};nT.\u0275dir=Kf({type:nT,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var oT=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){cTc(d.featureTooltipService,d.tooltipId)}};oT.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};oT.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
ea.Object.defineProperties(oT.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;(b=this.unsubscribeFromEvent)==null||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});oT.\u0275fac=function(a){return new (a||oT)(zf(kT),zf(jv),zf(ff))};
oT.\u0275dir=Kf({type:oT,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var kTc=new yd("TooltipAnchor"),lTc=new yd("TooltipPeventer"),pT=function(a,b,c,d,e,f){this.featureTooltipService=a;this.anchorService=b;this.elementRef=c;this.renderer=d;this.anchorClass=e;this.preventerClass=f;this.tooltipPreventer=new this.preventerClass(this.featureTooltipService,this.renderer,this.elementRef);this.tooltipAnchor=new this.anchorClass(this.anchorService,this.elementRef)};pT.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
pT.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};ea.Object.defineProperties(pT.prototype,{tooltipId:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.tooltipId=a;this.tooltipAnchor.tooltipId=a}},hideTooltipWhenAnchorNotVisible:{configurable:!0,enumerable:!0,set:function(a){this.tooltipAnchor.hideTooltipWhenAnchorNotVisible=a}},event:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.event=a}}});
pT.\u0275fac=function(a){return new (a||pT)(zf(kT),zf(dT),zf(ff),zf(jv),zf(kTc),zf(lTc))};pT.\u0275dir=Kf({type:pT,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[hh([{provide:kTc,useValue:nT},{provide:lTc,useValue:oT}])]});var mTc=function(){this.className="gmat-subtitle-1 tooltip-title"};mTc.\u0275fac=function(a){return new (a||mTc)};mTc.\u0275dir=Kf({type:mTc,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&xg(b.className)},standalone:!1});var C4a=function(a,b){return[a,b]},O4a=function(a){return{"has-reacted-icon":a}},qT=function(){Z.apply(this,arguments);this.analytics=n(CF);this.enrichmentApi=n(MC);this.enrichmentCategoryFridge=n(VD);this.attachmentEnrichmentFridge=n(NC);this.confirmationDialogService=n(AK);this.destroyRef=n(df);this.issuePermissionService=n(lL);this.documentationLinks=n(lK);this.canDeleteEnrichments$=new tj(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=
Oi("You are about to access enrichments for an attachment\n    marked as restricted. Access will be logged and audited.\n    You must delete any data used locally when finished with\n    business use. ");this.requiredDialogLearnMoreHtml=Qi("a",{href:$h(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Pi([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=
n(NA);this.featureTooltipRegistry=n(WS);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=eT;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new iJ,{position:[ABc]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment=
{}};Y(qT,Z);qT.\u0275dir=Z.\u0275dir;g=qT.prototype;
g.ngOnInit=function(){var a=this;this.enrichmentCategoryToContent.clear();this.attachmentEnrichments.forEach(function(b){var c,d,e;a.categoryToRestriction.set(b.category,(e=(c=b.contentVerdict)==null?void 0:(d=c.piiVerdict)==null?void 0:d.severity)!=null?e:"NONE_DETECTED");var f,h;((f=b.contentVerdict)==null?void 0:(h=f.piiVerdict)==null?void 0:h.severity)!=="NONE_DETECTED"?a.someEnrichmentsRestricted=!0:a.enrichmentCategoryToContent.set(b.category,{content:b.content,formattedContent:b.formattedContent})});
this.issuePermissionService.hasAclToAdmin$.pipe(Gh(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};g.initializeMenuItems=function(){var a=this;this.attachmentEnrichments.forEach(function(b){var c=[];a.canDeleteEnrichments$.value&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(b.category)},label:"Delete enrichment..."});a.categoryToActionMenuItems.set(b.category,c)})};
g.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Oi("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){Cnc(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(Gh(b.destroyRef)).subscribe(function(){b.enrichmentApi.submitEnrichmentFeedback({issueId:b.issueId,attachmentId:b.attachmentId,category:a,feedbackType:"DELETE"}).subscribe();b.attachmentEnrichmentFridge.poke(b.issueId)})}})};
g.openAllTabsCallback=function(a){var b=this,c;return w(function(d){if(!b.someEnrichmentsRestricted||a.every(function(e){return b.enrichmentCategoryToContent.has(e)}))return d.return(!0);c=gk();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&nTc(b,e)});c.resolve(!0)},onDismiss:function(){c.resolve(!1)}});return d.return(c.promise)})};
g.openTabCallback=function(a){var b=this;return w(function(c){return b.categoryToRestriction.get(a)==="NONE_DETECTED"?c.return(!0):c.return(b.openAllTabsCallback([a]))})};
var nTc=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);Anc(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(Gh(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},oTc=function(a,b){[].concat(p(b)).filter(function(c){return!a.openTabs.has(c)}).forEach(function(c){a.openTabs.add(c);a.trackEvent("open",a.issueId+"_"+a.attachmentId+
"_"+c);a.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:c,feedbackType:"OPEN"}).subscribe()});[].concat(p(a.openTabs)).filter(function(c){return!b.has(c)}).forEach(function(c){a.openTabs.delete(c);a.trackEvent("close",a.issueId+"_"+a.attachmentId+"_"+c);a.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:c,feedbackType:"CLOSE"}).subscribe()})};g=qT.prototype;
g.isLoading=function(a){var b;return(b=this.enrichmentCategoryToLoading.get(a))!=null?b:!1};g.hasReacted=function(a){return this.hasReactedToEnrichment[a.category]?this.hasReactedToEnrichment[a.category]:!1};g.thumbsUpClicked=function(a){return this.thumbsUpClickedForEnrichment[a.category]?this.thumbsUpClickedForEnrichment[a.category]:!1};g.thumbsDownClicked=function(a){return this.thumbsDownClickedForEnrichment[a.category]?this.thumbsDownClickedForEnrichment[a.category]:!1};
g.trackThumbsUp=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsUpClickedForEnrichment[a.category]=!0;this.trackEvent("accept",M4a(a));this.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:a.category,feedbackType:"THUMBS_UP"}).subscribe()};
g.trackThumbsDown=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsDownClickedForEnrichment[a.category]=!0;this.trackEvent("reject",M4a(a));this.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:a.category,feedbackType:"THUMBS_DOWN"}).subscribe()};g.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var pTc=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},E4a=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(y(function(c){var d;return(d=c==null?void 0:c.displayName)!=null?d:b}),eg(b))},N4a=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(y(function(c){var d;return(d=c==null?void 0:c.description)!=null?d:""}),eg(""))};qT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(qT)))(b||qT)}}();
qT.\u0275cmp=B({type:qT,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},standalone:!1,features:[hh([NA]),kg],decls:5,vars:7,consts:[["categoryInfoCard","onedevHovercard"],[3,"onedevFeatureTooltip","hideTooltipWhenAnchorNotVisible"],["expandableTabsTitle","Agent Findings",3,"expandedTabsChanged","tabKeys","ariaLabel","openTabCallback","openAllTabsCallback"],[3,"key","ariaLabel"],[3,"customPositions","tooltipId"],
["onedevTooltipTitle",""],["expandable-tab-header",""],["expandable-tab-content",""],[1,"attachment-enrichment-table"],[1,"attachment-enrichment-headers"],[1,"attachment-enrichment-header-email"],[3,"model"],["svgIcon","info",1,"icon-xs",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],[1,"attachment-enrichment-header-date-icons"],[1,"attachment-enrichment-header-date"],["mode","datetime",3,"timestamp"],
["type","button","mat-icon-button","","matTooltip","Copy","aria-label","copy attachment enrichment content",1,"feedback-button","copy-attachment-enrichment",3,"click"],["svgIcon","copy",1,"icon-xs"],["type","button","mat-icon-button","","aria-label","thumb up",1,"feedback-button","thumbs-up-attachment-enrichment",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-xs",3,"ngClass"],["type","button","mat-icon-button","","aria-label","thumb down",1,"feedback-button","thumbs-down-attachment-enrichment",
3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-xs",3,"ngClass"],[1,"bv2-issue-attachment-overflow-menu"],[1,"attachment-enrichment-content"],["colspan","2"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"content"]],template:function(a,b){a&1&&(E(0,D4a,5,5,"onedev-feature-tooltip-controller"),I(1,"div",1)(2,"expandable-tabs",2),M("expandedTabsChanged",function(c){return oTc(b,c)}),Dg(3,Q4a,3,2,"expandable-tab",3,Cg),J()());a&2&&(F(b.showFeatureTooltip?0:-1),z(),
D("onedevFeatureTooltip",b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),z(),D("tabKeys",pTc(b))("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId)("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),z(),Eg(b.attachmentEnrichments))},dependencies:[Mv,aB,KS,AO,JO,KO,ZL,$S,XS,YS,aT,PA,Ux,YA,cB,fJ,lJ,hT,mT,pT,mTc,zL,ON,Qv],styles:[".attachment-enrichment-table[_ngcontent-%COMP%]{border:1px solid var(--hairline);border-collapse:collapse;border-radius:4px}tr.attachment-enrichment-headers[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:1px solid var(--hairline);padding:0px 10px;color:var(--muted);font-size:95%}tr.attachment-enrichment-headers[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .attachment-enrichment-header-email[_ngcontent-%COMP%]{text-align:left}.attachment-enrichment-header-date-icons[_ngcontent-%COMP%]{text-align:right}.attachment-enrichment-header-date-icons[_ngcontent-%COMP%]   .attachment-enrichment-header-date[_ngcontent-%COMP%]{padding-right:4px}tr.attachment-enrichment-content[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:var(--c100);padding:10px}.feedback-button[_ngcontent-%COMP%]{width:fit-content}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}mat-icon[_ngcontent-%COMP%]{vertical-align:middle;padding:0px 4px}[_nghost-%COMP%]     mat-icon{color:var(--muted)}"]});var rT=function(){this.documentationLinks=n(lK);this.dateFormatter=n(YL);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=hlc;this.label="Restricted";this.contentType="item"};rT.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?Sxa(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var S4a=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(lm(a.retentionState.scheduledDeletionTime)||b):b},qTc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?lm(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};rT.\u0275fac=function(a){return new (a||rT)};
rT.\u0275cmp=B({type:rT,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},standalone:!1,decls:7,vars:5,consts:[["bubble",""],["popup",""],[1,"bubble",3,"panelTemplate"],["tabindex","0","aria-label","Display retention information","aria-haspopup","dialog","role","button",1,"chip","nowrap",3,"focus","blur"],[1,"icon-s",3,"svgIcon"],[1,"popup"],["target","_blank",3,"rel"]],template:function(a,b){if(a&1){var c=r();
I(0,"xap-bubble",2,0)(2,"div",3);M("focus",function(){t(c);var d=L(1);return v(d.toggle(!0))})("blur",function(){t(c);var d=L(1);return v(d.toggle(!1))});K(3,"mat-icon",4);Q(4);J();C(5,Z4a,8,4,"ng-template",null,1,nh);J()}a&2&&(a=L(6),D("panelTemplate",a),z(2),wg("warning",qTc(b)),z(),D("svgIcon",qTc(b)?"delete-alert":"delete-clock"),z(),R(" ",b.label," "))},dependencies:[aB,jN,Tv],styles:[".chip[_ngcontent-%COMP%]{display:inline-block;border-radius:1em;font-size:.8125rem;font-weight:400;line-height:1.8em;padding:0 .6em;margin:0 .6em;background-color:#e8eaed;background-color:var(--chip-bg);color:#202124;color:var(--text-high-contrast)}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-top}.chip.warning[_ngcontent-%COMP%]{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.5em !important}.popup[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});var a5a=Uh(""),rTc=function(){this.port=this.iframe=null;this.deferredMessages=[]};rTc.prototype.load=function(){var a=this,b=sTc();this.iframe=b5a(b);tTc().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return $4a(this.iframe,b).then(function(c){for(a.port=c.ports[0];a.deferredMessages.length>0;)c=a.deferredMessages.shift(),a.port.postMessage(c.data,c.transferables)})};
rTc.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(G){f.port1.onmessage=null;G=G.data;G.error!=null?e(new EvalError(G.error)):d(G.result)};for(var h=[],k=[],q=[],u=l(b!=null?b:[]),A=u.next();!A.done;A=u.next())A=A.value,h.push(A.name),k.push(A.value),A.transfer&&q.push(A.value);h={code:a,paramNames:h,values:k};c.port?c.port.postMessage(h,[f.port2].concat(p(q))):c.deferredMessages.push({data:h,transferables:[f.port2].concat(p(q))})})};
rTc.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var sTc=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},tTc=function(){return new Promise(function(a){document.readyState!="loading"?a():qF(document,"DOMContentLoaded",function(){a()})})};var uTc={useFilePicker:!1},vTc,sT=function(a){this.options=a=a===void 0?uTc:a;wTc(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new rTc)};sT.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?uTc:d;return w(function(e){if(e.nextAddress==1)return x(e,xTc(a,b,c,d),2);if(e.yieldResult)return e.return();vTc||(vTc=new sT,vTc.init());return x(e,yTc(vTc,a,b,c),0)})};
sT.prototype.init=function(){var a=this;return w(function(b){return a.sandbox==null?b.return():x(b,a.sandbox.load(),0)})};sT.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return w(function(e){return e.nextAddress==1?x(e,xTc(a,b,c,d.options),2):e.yieldResult?e.return():x(e,yTc(d,a,b,c),0)})};
var yTc=function(a,b,c,d){d=d===void 0?"":d;var e,f;return w(function(h){switch(h.nextAddress){case 1:e=b instanceof Blob?b:new Blob([b],{type:d});if(typeof navigator.msSaveOrOpenBlob!=="function"){h.jumpTo(2);break}navigator.msSaveOrOpenBlob(e,c);return x(h,c5a(),3);case 3:return h.return();case 2:if(!Ta()||rba(Eba(),16)>=0||!Ra()&&(!Ma("iPad")&&!Ma("iPhone")||vba()||Ra()||(Oa()?0:Ma("Coast"))||Pa()||!Ma("AppleWebKit"))){h.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=or(document,"A"),
q=$h(String(f.result));ona(k,q);k.download=c;k.click()};f.readAsDataURL(e);return x(h,c5a(),5);case 5:return h.return();case 4:return a.sandbox==null&&(a.sandbox=new rTc,a.sandbox.load()),x(h,a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',
[{name:"blob",value:e,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return x(h,c5a(),0)}})},xTc=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?uTc:d;var e;return w(function(f){switch(f.nextAddress){case 1:if(!wTc(d))return f.return(!1);te(f,2);return x(f,zTc(a,b,c),4);case 4:uu(f,3);break;case 2:e=xe(f);if(e instanceof DOMException&&e.name==="SecurityError")return f.return(!1);throw e;case 3:return f.return(!0)}})},wTc=function(a){a=a===void 0?uTc:a;return a.useFilePicker&&!!window.showSaveFilePicker},
zTc=function(a,b,c){c=c===void 0?"":c;var d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:var q={suggestedName:b},u;(u=b.match(/\..+$/))?(u=u[0],u=u.length>16?null:u):u=null;if(u){var A={},G=c;G=G.replace(/;[^]*/,"");q.types=[{description:"*"+u,accept:(A[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(G)?G:"*/*"]=[u],A)}]}d=q;te(k,2);return x(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;uu(k,3);break;case 2:f=xe(k);if(f instanceof DOMException&&f.name==="AbortError")return k.return();
throw f;case 3:return x(k,e.createWritable(),5);case 5:return h=k.yieldResult,ve(k,6),x(k,h.write(a),6);case 6:return ue(k),x(k,h.close(),9);case 9:we(k,7);break;case 7:return k.return()}})};sT.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};S7b("SafeDownloader",sT);var tT=function(){Z.apply(this,arguments);var a=this;this.activeSession=n(Es);this.documentationLinks=n(lK);this.domSafe=n(rL);this.matDialogService=n(tK);this.attachmentService=n(SS);this.cdr=n(NA,{self:!0});this.differs=n(tv);this.paths=n(EN);this.userAccess=n(jE);this.butterBar=n(iK);this.errorHandler=n(DK);this.analytics=n(CF);this.clipboard=n(rO);this.issueCommentDialogsService=n(pS);this.issuePermissionService=n(lL);this.editIssueService=n(oL);this.snackBar=n(fK);this.trackerHelpers=n(LK);this.attachmentCountService=
n(US);this.attachmentsApi=n(PK);this.attachmentEnrichmentFridge=n(NC);this.routeParams=n(bL);this.attachmentEnrichments$=Oe(function(){return Yr(a.activeSession,"enableAttachmentEnrichments")?a.attachmentEnrichmentFridge.watch(a.issueId):Ce()}).pipe(y(function(b){return(b==null?void 0:b.enrichments.filter(function(c){var d,e;return c.attachmentId===((d=a.attachment)==null?void 0:(e=d.attachmentId)==null?void 0:e.toString())}))||[]}));this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1;this.enableInactiveUserContent=Yr(this.activeSession,"enableInactiveUserContent");this.enableInlineImageAttachments=Yr(this.activeSession,"enableInlineImageAttachments");this.canDeleteAttachment$=new tj(!1);this.canUndeleteAttachment$=new tj(!1)};Y(tT,Z);tT.\u0275dir=Z.\u0275dir;g=tT.prototype;
g.ngOnInit=function(){var a=this;this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var b;this.attachmentRetentionOverride=(b=this.attachment)==null?void 0:b.piiRetention;this.initializeMenuItems();ATc(this);this.issuePermissionService.canDeleteAttachment$(this.attachment,this.attachmentUploader).pipe(gg(this.destroyed$)).subscribe(function(c){a.canDeleteAttachment$.next(c);a.initializeMenuItems()});this.issuePermissionService.canUndeleteAttachment$(this.attachment,
this.attachmentUploader).pipe(gg(this.destroyed$)).subscribe(function(c){a.canUndeleteAttachment$.next(c);a.initializeMenuItems()});this.destroyed$.subscribe(function(){var c;((c=a.attachment)==null?0:c.attachmentId)&&a.attachmentCountService.inlinedAttachmentSet.delete(a.attachment.attachmentId)})};g.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&this.initializeMenuItems()};
g.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
g.initializeMenuItems=function(){var a=this;this.actionMenuItems=[];var b;if((b=this.attachment)==null?0:b.attachmentId)this.canDeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."}),this.canUndeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){TFc(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){aRc(a.issueCommentDialogsService,
a.issueId,a.attachmentUploader===a.activeSession.getUserEmail(),a.attachment)},label:"Restriction settings..."});if(this.isRestricted()&&this.isActive()&&this.activeSession.isInternalSession()){var c=this.attachmentRetentionOverride==="COMPONENT_DEFAULT";this.actionMenuItems.push({type:"action",action:function(){var d=c?"INDEFINITE":"COMPONENT_DEFAULT";$Qc(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&BTc(a,d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.cdr.markForCheck()};
g.setHasViewAccess=function(){var a=this;this.isRestricted()?this.attachment==null?this.hasViewAccess=!1:(this.hasViewAccess=!1,kE(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};g.getFilename=function(){var a;return((a=this.attachment)==null?void 0:a.filename)||""};g.getSize=function(){var a;return((a=this.attachment)==null?void 0:a.length)||0};
var g5a=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("Ve");if(a.enableInactiveUserContent){if(b)return LEc(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return Fq.viewAttachment.makeHref(a.issueId,a.attachment.attachmentId,(d=a.attachment.contentType)!=null?d:"")}c="action/issues/"+a.issueId.toString()+"/attachments/"+a.attachment.attachmentId.toString();a=a.paths.getBaseUrl()+"/"+c;return Puc(a,
"download",b)};tT.prototype.isActive=function(){var a;if((a=this.attachment)==null||!a.attachmentId)return!1;var b;return((b=this.attachment.entityStatus)==null?void 0:b.status)==="ACTIVE"};tT.prototype.viewAttachment=function(){this.isRestricted()?CTc(this,!1):this.domSafe.openInNewTab(g5a(this,!1))};
var i5a=function(a){var b,c=(b=a.attachment)==null?void 0:b.attachmentId,d,e=(d=a.attachment)==null?void 0:d.filename,f,h=(f=a.attachment)==null?void 0:f.contentType;a.isRestricted()?CTc(a,!0):a.enableInactiveUserContent?a.subscriptions.add(MEc(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&sT.download(k,e,h)})):a.domSafe.openInNewTab(g5a(a,!0))};tT.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
tT.prototype.getRestrictionSeverity=function(){var a;return Bn((a=this.attachment)==null?void 0:a.contentVerdict)};tT.prototype.getRestrictedLabel=function(){return jBa(this.getRestrictionSeverity())};var f5a=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+iBa(a):""},CTc=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(RS,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
tT.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var BTc=function(a,b){var c;(c=a.attachment)!=null&&c.attachmentId?(a.analytics.trackEvent("restrictedContent","updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(gg(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);Mq(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;EK(a.errorHandler,"Attachment retention update failed")}})):EK(a.errorHandler,"Attachment id is missing")},ATc=function(a){var b,c,d;w(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===((c=a.attachment)==null?void 0:c.attachmentId)&&(d=a.routeParams.download==="true",CTc(a,d));ze(e)})};
tT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(tT)))(b||tT)}}();
tT.\u0275cmp=B({type:tT,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},standalone:!1,features:[hh([NA]),kg,Uu],decls:19,vars:12,consts:[["restrictedAccessHelp",""],[1,"bv2-issue-attachment-image"],["name","file-present","size","large",1,"bv2-issue-attachment-icon"],[1,"flex-kids-y"],[1,"bv2-issue-attachment-filename"],[1,"bv2-issue-event-attachment-info","flex-kids-x","align-items-center"],[3,"label","retentionState",
"contentType"],[1,"bv2-issue-attachment-overflow-menu"],[1,"flex-kids-x","align-items-center"],[3,"class"],[3,"panelTemplate"],[1,"bv2-restricted-access-help-icon","help-icon"],[2,"display","none",3,"issueId","attachmentId","mimeType"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[3,"customHandler","isGreyedOut","displayName","linkUrl","linkEnabled","useCustomHandler"],[1,"bv2-issue-attachment-link","icon-button-container"],["type","button","aria-label","Copy link to attachment",
"color","primary","mat-icon-button","","matTooltip","Copy link to attachment","matTooltipPosition","above",1,"bv2-issue-copy-attachment-link",3,"click"],["name","link","size","small"],["aria-label","Restricted Access Help","mat-icon-button","","target","_blank",1,"help","small",3,"href","disableRipple"],[3,"svgIcon"],[1,"implicit-access-help-bubble"],["target","_blank",3,"href"],[3,"issueId","attachmentId","attachmentEnrichments"]],template:function(a,b){a&1&&(I(0,"div",1),K(1,"b-icon",2),J(),I(2,
"div",3)(3,"div",4),Q(4),I(5,"span",5),E(6,d5a,1,3,"b-restricted-chip",6),E(7,e5a,2,3,"span",7),J()(),I(8,"div",8),Q(9),E(10,h5a,2,8,"span",9),E(11,j5a,5,8),I(12,"xap-bubble",10),E(13,k5a,3,3,"span",11),C(14,l5a,4,1,"ng-template",null,0,nh),J(),E(16,m5a,1,3,"attachment-preview",12),J(),E(17,o5a,1,1),S(18,"async"),J());if(a&2){var c;a=L(15);z(4);R(" ",b.getFilename()," ");z(2);F(b.isRestricted()?6:-1);z();F(b.actionMenuItems.length>0?7:-1);z(2);R(" ",zua(b.getSize())," ");z();var d;var e=b.isActive()&&
fua((d=b.attachment)==null?void 0:d.contentType);F(e?10:-1);z();F(b.isActive()?11:-1);z();D("panelTemplate",a);z();F(b.isRestricted()&&!b.hasViewAccess?13:-1);z(3);var f,h,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((h=b.attachment)==null?0:h.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var q;((q=b.attachment)==null?0:q.attachmentId)?(f=b.attachmentCountService,h=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(h)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(h),f=!0):f=!1):f=!1;d=f}F(d?16:-1);z();F((c=T(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[qT,TS,aB,KS,VS,CL,PA,Ux,YA,cB,rT,jN,Qv],styles:[".icon-button-container[_ngcontent-%COMP%]{margin-bottom:2px}.icon-button-container[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display:none}.icon-button-container[_ngcontent-%COMP%]   .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 36px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:6px}"],
changeDetection:0});var DTc={ISSUE_CATEGORY_UNSPECIFIED:0,ISSUE_CATEGORY_UNSUPPORTED:1,ISSUE_CATEGORY_STACK_TRACES:2,ISSUE_CATEGORY_ADS:3,ISSUE_CATEGORY_GAR:4,ISSUE_CATEGORY_PIXEL:5,ISSUE_CATEGORY_BORG_SRE:6,ISSUE_CATEGORY_CLOUD_SRE:7,ISSUE_CATEGORY_GCP:8,ISSUE_CATEGORY_DIALER:9,ISSUE_CATEGORY_EDSENSE:10,ISSUE_CATEGORY_VERTEX_AI_SUPPORT:11,ISSUE_CATEGORY_CLOUD_AI_RETAIL_SUPPORT:12,ISSUE_CATEGORY_ANDROID_BLUE_SIGHT:13,ISSUE_CATEGORY_ANDROID_COASTGUARD:14};var ETc={LLM_RESPONSE:0,RELATED_FIXED_ISSUES:1,SIMILAR_FIXED_ISSUES:2,LOADING_AND_FOOTER:3,BUG_2_CODE:4,0:"LLM_RESPONSE",1:"RELATED_FIXED_ISSUES",2:"SIMILAR_FIXED_ISSUES",3:"LOADING_AND_FOOTER",4:"BUG_2_CODE"},FTc={issueCategory:void 0,customBranding:"Suggest fixes",displayedModules:[4]},GTc={issueCategory:2,displayedModules:[0,1,3],llmApi:"gemini",llmPromptPrefix:"You are a troubleshoot engineer specializing in fixing\n      programming exceptions. Explain how to fix the following stack trace\n      exception: ",
regexMatcher:new RegExp(/^(at [\w\.]{2,}\.[\w]+\([\w]+\.[\w]+:?[\d]*\)+|[\w\.]{2,}[\w]*Exception)+/m)},HTc={issueCategory:3,displayedModules:[0,2,3],llmPromptPrefix:"You are an engineer specializing in implementing simple fixes for software systems.\nYour tasks are presented in the form of a ticket.\n",llmPromptSuffix:"Suggest a possible fix for the current ticket. Explain in concise terms the following:\n# Issue Summary\n* What is the issue observed?\n# Possible Solution\n* What are the specific changes that need to be made to fix the issue?\n* Is it clear what files need to be changed? If so, what are the specific lines that need to be changed?\nUse no more than 15 lines for your explanation.\n",
includeSimilarIssuesInPrompt:!0,allowedRollupComponentIds:[102460,685828,44716,126250,329389,44737,106267,746,33779]},r5a={issueCategory:4,displayedModules:[0,3],llmPromptPrefix:"You are an engineer specializing in implementing simple fixes for software systems.\nYour tasks are presented in the form of a ticket.\n",llmPromptSuffix:"Suggest a possible fix for the current ticket. Explain in concise terms the following:\n# Issue Summary\n* What is the issue observed?\n# Possible Solution\n* What are the specific changes that need to be made to fix the issue?\n* Is it clear what files need to be changed? If so, what are the specific lines that need to be changed?\nUse no more than 15 lines for your explanation.\n",
includeSimilarIssuesInPrompt:!0,restrictedIssueTypes:["BUG"],allowedHotlistIds:[3636212,5303709,6184694],allowedSpecificComponentIds:[1262069]},ITc={issueCategory:5,displayedModules:[0,3],llmApi:"gemini",llmPromptPrefix:"# Root Cause Analysis with Given Android Bug:",llmPromptSuffix:'\n  ### In section "Summary"\n  * **Summarize the information in the bug to provide a short narrative of what happened.**\n  * **Extract insights from logs that are helpful for debugging or testing.**\n  * **Extract insights from comments that are helpful for debugging or testing and cite them with comment id.**\n\n  ### In section "Hypothesis"\n  * **List the most possible issues and your hypotheses.**\n\n  ### In section "Debugging strategy"\n  * **List debugging strategies to help developers efficiently debug and test for hypotheses verification.**\n  * **Strategies should be as detailed as possible, point to component / related code / related comments, make the strategy more actionable.**\n\n  ## Response Format\n  Respond in markdown format including sections:\n  * **Summary**\n  * **Hypothesis**\n  * **Debugging strategy**\n\n  Answer with following manners:\n  * Reduce the size of sentences.\n  * Keep your documentation as short as possible.\n  * Prefer active voice than passive voice\n  * Create a great first sentence in your paragraphs.\n  * Create parallel, useful lists.',
includeIssueCommentsInPrompt:!0,allowedRollupComponentIds:[1182803,37123,190923,1454447,92090,34810,78005,172317]},JTc={issueCategory:6,displayedModules:[0,3],llmPromptSuffix:'\n  Please make brief summary of the ticket, fill all the necessary data (e.g. values, percentages) from the ticket itself and a playbook.\n  A link to the playbook should be available in the ticket; please refer to information from this playbook.\n  There is no PII data, it is just a summary of the ticket. Assume that I am a current oncaller and have no idea about this ticket.\n  Then suggest an investigation step-by-step, do not just copy and paste everything from the playbook, make it shorter please.\n  Do not say "Playbook says that". Please do not stuck looping, regenerate your output if you find out that you output the same thing twice.\n  When you are done, please add two newlines and trim your response there.\n\n  ',
includeSimilarIssuesInPrompt:!0,allowedSpecificComponentIds:[126840,40639,137293,137338,915541,986564,881885,881886,881959,967590,1169875,1348521,126786,49955,1117958,1124104,38750,806247,1115456,1192944,1185287,1260470,1192583,110072,77871,104191,41103,77155,76928,38011,1134134,1559962,1346497,1135261,1495275,550709,1578853]},KTc={issueCategory:7,displayedModules:[0,1,3],llmPromptPrefix:"You are an engineer specializing in implementing simple fixes for software systems.\nYour tasks are presented in the form of a ticket.\n",
llmPromptSuffix:"Suggest a possible fix for the current ticket. Explain in concise terms the following:\n# Issue Summary\n* What is the issue observed?\n# Possible Solution\n* What are the specific changes that need to be made to fix the issue?\n* Is it clear what files need to be changed? If so, what are the specific lines that need to be changed?\nUse no more than 15 lines for your explanation.\n",includeIssueCommentsInPrompt:!0,allowedSpecificComponentIds:[1288927,1528390,1288779,1528779,1290211,
1290239]},LTc={issueCategory:8,displayedModules:[0,3],llmPromptPrefix:"You are an engineer specializing in implementing simple fixes for software systems.\nYour tasks are presented in the form of a ticket.\n",llmPromptSuffix:"Suggest a possible fix for the current ticket. Explain in concise terms the following:\n# Issue Summary\n* What is the issue observed?\n# Possible Solution\n* What are the specific changes that need to be made to fix the issue?\n* Is it clear what files need to be changed? If so, what are the specific lines that need to be changed?\nUse no more than 15 lines for your explanation.\n",
includeSimilarIssuesInPrompt:!0,includeIssueCommentsInPrompt:!0,allowedSpecificComponentIds:[891867,926800,891615,941780,949763,892258,1195250,996259,891614,934603,931084,977470,941538,996461,891686,891822,891694]},MTc={issueCategory:9,displayedModules:[0,3],llmPromptPrefix:"You are an engineer specializing in implementing simple fixes for software systems.\nYour tasks are presented in the form of a ticket.\n",llmPromptSuffix:"Suggest a possible fix for the current ticket. Explain in concise terms the following:\n# Issue Summary\n* What is the issue observed?\n# Possible Solution\n* What are the specific changes that need to be made to fix the issue?\n* Is it clear what files need to be changed? If so, what are the specific lines that need to be changed?\nUse no more than 15 lines for your explanation.\n",
includeSimilarIssuesInPrompt:!0,includeIssueCommentsInPrompt:!0,allowedSpecificComponentIds:[1010727,1010620,1010726]};var NTc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NTc,V);var OTc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,OTc.messageId)};Y(OTc,V);g=OTc.prototype;g.getIssueCategory=function(){return pl(this,1)};g.getIssueId=function(){return Dl(this,2)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,2)};g.getIssueId_asString=function(){return Gl(this,2)};g.setIssueId=function(a){return Hl(this,2,a)};OTc.messageId="hmf.GetIssueEligibilityResponse";var PTc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,PTc.messageId)};Y(PTc,V);g=PTc.prototype;g.getResponse=function(){return Oh(this,1)};g.setResponse=function(a){return Rl(this,1,a)};g.getIssueCategory=function(){return pl(this,2)};g.setResponseId=function(a){return Rl(this,3,a)};g.getIssueId=function(){return Dl(this,4)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,4)};g.getIssueId_asString=function(){return Gl(this,4)};
g.setIssueId=function(a){return Hl(this,4,a)};PTc.messageId="hmf.GetIssueHelpResponse";var QTc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QTc.messageId)};Y(QTc,V);g=QTc.prototype;g.getIssueId=function(){return Dl(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};g.getIssueId_asString=function(){return Gl(this,1)};g.setIssueId=function(a){return Hl(this,1,a)};g.setResponseId=function(a){return Rl(this,2,a)};QTc.messageId="hmf.SendFeedbackRequest";var uT=function(){this.executor=n(yC)},RTc=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:PTc}).pipe(y(p5a),Pf(function(){return Ce({response:"",issueCategory:1})}))},STc=function(a,b){return a.executor.get({url:"action/helpmefix/"+b+"/eligibility",responseConstructor:OTc}).pipe(y(q5a),Pf(function(){return Ce({issueCategory:1})}))};
uT.prototype.sendFeedback=function(){var a=this.executor,b=a.post;var c=(new QTc).setIssueId((void 0).issueId).setResponseId((void 0).responseId);var d=new NTc;d=Sl(d,1,(void 0).userFeedback.sentiment);c=W(c,NTc,3,d);return b.call(a,{url:"action/helpmefix/undefined/feedback",body:c,responseConstructor:null})};uT.\u0275fac=function(a){return new (a||uT)};uT.\u0275prov=Sc({token:uT,factory:uT.\u0275fac,providedIn:"root"});var vT=function(a,b,c,d){this.creatorEmail=a;this.reporterEmail=b;this.matchingDescriptionSubstring=c;this.metricTag=d};var TTc=[new vT(null,null,"Visit Upkeep to monitor tech debt of your","isUpkeepIssue"),new vT("cloud-control2-frontend-onboarding-automation@prod.google.com","cloud-control2-frontend-onboarding-automation@prod.google.com",null,"isCloudControl2FrontendOnboardingAutomationIssue"),new vT("flagbuster-prod@prod.google.com","flagbuster@prod.google.com",null,"isFlagBusterIssue"),new vT("corpeng-compliance-checker@prod.google.com","corpeng-compliance-checker@prod.google.com",null,"isCorpEngComplianceCheckerIssue"),
new vT("gce-fleet-deployment-autocleanup-jobs@prod.google.com","gce-fleet-deployment-autocleanup-jobs@google.com",null,"isGCEFleetDeploymentAutoCleanupIssue"),new vT("identity-metrics@prod.google.com","identity-metrics@prod.google.com",null,"isIdentityMetricsIssue"),new vT("dirt-federated-docs@prod.google.com","dirt-federated-docs@prod.google.com",null,"isDirtFederatedDocsIssue"),new vT("rtc-bugle-mapreduce@prod.google.com","rtc-bugle-mapreduce@prod.google.com",null,"isRtcBugleMapreduceIssue"),new vT("assistant-server-dev@prod.google.com",
"assistant-server-dev@prod.google.com",null,"isAssistantServerDevIssue"),new vT("gce-turnup-smi-runner@prod.google.com","gce-turnup-smi-runner@prod.google.com",null,"isGCETurnupSmiRunnerIssue"),new vT("cloud-sdk-testing@prod.google.com","cloud-sdk-testing@prod.google.com",null,"isCloudSdkTestingIssue")];var wT=function(){this.eventsForIssueFridge=n(CE);this.issueFullFridge=n(EF);this.activeSession=n(Es);this.analytics=n(CF)},WTc=function(a,b){return Je([UTc(a,b),VTc(a,b)]).pipe(y(function(c){var d=l(c);c=d.next().value;d=d.next().value;a:{var e=Yr(a.activeSession,"enableGoosePromptingSupportedIssues");if(c!=null&&d!=null&&pm(c)&&e){e=l(TTc);for(var f=e.next();!f.done;f=e.next()){f=f.value;var h=void 0,k=void 0,q=void 0;var u=f.creatorEmail&&(d==null?void 0:(q=d.userPerformingActionUser)==null?void 0:
q.emailAddress)!==f.creatorEmail?!1:f.reporterEmail&&((k=c.snapshot[0].reporterUser)==null?void 0:k.emailAddress)!==f.reporterEmail?!1:f.matchingDescriptionSubstring&&!(d==null?0:(h=d.unlinkifiedComment)==null?0:h.includes(f.matchingDescriptionSubstring))?!1:!0;if(u){a.analytics.trackEvent("bug2Code","display",f.metricTag);c=!0;break a}}}c=!1}return c}))},UTc=function(a,b){return a.issueFullFridge.watch(b,{trustUncertainMemory:!0}).pipe(y(function(c){return c?c:null}))},VTc=function(a,b){return a.eventsForIssueFridge.watch(b,
{trustUncertainMemory:!0}).pipe(y(function(c){if(!c)return null;c=[].concat(p(c.events.slice(0,1)));return c.length>0?c[0]:null}))};wT.\u0275fac=function(a){return new (a||wT)};wT.\u0275prov=Sc({token:wT,factory:wT.\u0275fac,providedIn:"root"});var xT=function(){var a=this;this.appEvents=n(nD);this.activeSession=n(Es);this.contextSensitiveRegistry=n(iL);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.componentFridge=n(jD);this.similarIssuesApi=n(jO);this.llmSuggestedBugFixService=n(wT);this.helpMeFixApi=n(uT);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(Xf());this.issue$=this.issueId$.pipe(Ve(Tk),fg(function(b){return a.issueFullFridge.watch(b)}),Xf(function(b,c){return(b==null?void 0:b.issueId)===(c==null?
void 0:c.issueId)}));this.events$=this.issueId$.pipe(Ve(Tk),fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){var c;return(c=b&&b.events)!=null?c:[]}),Xf());this.description$=this.events$.pipe(y(function(b){return b.length?b[0]:void 0}),y(function(b){var c;return(c=b==null?void 0:b.unlinkifiedComment)!=null?c:void 0}),Xf());this.component$=this.issue$.pipe(fg(function(b){var c,d;b=b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.componentId;return a.componentFridge.watch(b)}),
Xf());this.similarFixedIssues$=this.issue$.pipe(fg(function(b){if(!b)return Ce({similarIssues:[],scores:[]});var c,d,e=b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.componentId;return kO(a.similarIssuesApi,{issueId:Number(b.issueId),scope:tp(sp("-id",b.issueId),sp("modified","365d"),sp("status","fixed"),sp("cl","any"),e?sp("componentId",e+"+"):void 0),scopeSortOrder:"modified_time desc",maxResults:5})}),y(function(b){for(var c=[],d=0;d<b.scores.length;d++)b.scores[d]>=.85&&c.push(b.similarIssues[d]);
return c}),cg({bufferSize:1,refCount:!0}));this.hasSimilarFixedIssues$=this.similarFixedIssues$.pipe(y(function(b){return b.length>0}));this.isFlagEnabledAndInternal$=Ce(Yr(this.activeSession,"enableHelpMeFixSidebar")&&this.activeSession.isInternalSession());this.isExceptionIssueCategory$=Je([this.issue$,this.description$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;b=l([b,c]);var e=b.next().value;b=b.next().value;if(e&&b){c=Yr(a.activeSession,"enableHelpMeFixSidebarOnAllComponents");
var f,h;e=e==null?void 0:(f=e.snapshot)==null?void 0:(h=f[0])==null?void 0:h.componentId;f=a.activeSession.getHelpMeFixSidebarComponentAllowlist();f=e&&f.has(e);c||f?f=GTc.regexMatcher?((d=b.match(GTc.regexMatcher))!=null?d:[]).length>0:!1:f=!1;d=f}else d=!1;return d}));this.meetsAdsPreconditions$=Je([this.description$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return XTc(a,[b,c])}));this.isAdsIssueCategory$=this.meetsAdsPreconditions$.pipe(fg(function(b){return b?
a.hasSimilarFixedIssues$:Ce(!1)}));this.meetsGarPreconditions$=Je([this.issue$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;c=l([b,c]);b=c.next().value;var e=c.next().value;if(b&&e){c=Yr(a.activeSession,"enableHelpMeFixOnGarIssues")&&Yr(a.activeSession,"enableHelpMeFixOnGarIssuesOptIn");var f;var h,k=(f=b.snapshot)==null?void 0:(h=f[0])==null?void 0:h.type;if(k){var q;f=((q=r5a.restrictedIssueTypes)!=null?q:[]).includes(k)}else f=!1;q=f;f=((d=r5a.allowedSpecificComponentIds)!=
null?d:[]).includes(e.componentId);d=s5a(b);d=c&&q&&(f||d)}else d=!1;return d}));this.isGarIssueCategory$=this.meetsGarPreconditions$.pipe(fg(function(b){return b?a.hasSimilarFixedIssues$:Ce(!1)}));this.isBug2CodeIssueCategory$=this.issueId$.pipe(fg(function(b){return b?WTc(a.llmSuggestedBugFixService,b):Ce(!1)}));this.isPixelIssueCategory$=this.component$.pipe(y(function(b){return YTc(a,b)}));this.meetsBorgSrePreconditions$=Je([this.issue$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;
c=c.next().value;c=l([b,c]);b=c.next().value;c=c.next().value;if(b&&c&&Yr(a.activeSession,"enableHelpMeFixOnBorgSreIssues")){var d;b=((d=JTc.allowedSpecificComponentIds)!=null?d:[]).includes(c.componentId)}else b=!1;return b}));this.isBorgSreIssueCategory$=this.meetsBorgSrePreconditions$.pipe(fg(function(b){return b?a.hasSimilarFixedIssues$:Ce(!1)}));this.meetsGcpPreconditions$=Je([this.issue$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;c=l([b,c]);b=c.next().value;
c=c.next().value;if(b&&c&&Yr(a.activeSession,"enableHelpMeFixOnGcpIssues")){var d;b=((d=LTc.allowedSpecificComponentIds)!=null?d:[]).includes(c.componentId)}else b=!1;return b}));this.isGcpIssueCategory$=this.meetsGcpPreconditions$.pipe(fg(function(b){return b?a.hasSimilarFixedIssues$:Ce(!1)}));this.meetsDialerPreconditions$=Je([this.issue$,this.component$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;c=l([b,c]);b=c.next().value;c=c.next().value;if(b&&c&&Yr(a.activeSession,"enableHelpMeFixOnDialerIssues")){var d;
b=((d=MTc.allowedSpecificComponentIds)!=null?d:[]).includes(c.componentId)}else b=!1;return b}));this.isDialerIssueCategory$=this.meetsDialerPreconditions$.pipe(fg(function(b){return b?a.hasSimilarFixedIssues$:Ce(!1)}));this.isCloudSreIssueCategory$=Je([this.component$]).pipe(y(function(b){b=l(b).next().value;var c=l([b]).next().value;if(c&&Yr(a.activeSession,"enableHelpMeFixOnCloudSreIssues")){var d;b=((d=KTc.allowedSpecificComponentIds)!=null?d:[]).includes(c.componentId)}else b=!1;return b}));
this.isBackendHelpMeFixEnabled$=Je([this.isFlagEnabledAndInternal$,this.issueId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return Yr(a.activeSession,"enableBackendHelpMeFixService")?b&&!!c:!1}));this.doesBackendSupportIssue$=this.isBackendHelpMeFixEnabled$.pipe(fg(function(b){return b?a.issueId$.pipe(Uf(),fg(function(c){return STc(a.helpMeFixApi,Number(c)).pipe(y(function(d){return d.issueCategory!==1}))})):Ce(!1)}),cg({bufferSize:1,refCount:!0}));this.backendHelpMeFixConfig$=
this.doesBackendSupportIssue$.pipe(fg(function(b){return b?a.issueId$.pipe(Uf(),fg(function(c){return RTc(a.helpMeFixApi,Number(c))}),y(function(c){if(c.issueCategory!==1)return{backendHelpMeFixResponse:c.response,issueCategory:c.issueCategory,displayedModules:[0,3]}})):Ce(void 0)}),cg({bufferSize:1,refCount:!0}));this.nonBackendHelpMeFixConfig$=Je([this.isFlagEnabledAndInternal$,this.isExceptionIssueCategory$,this.isGarIssueCategory$,this.isAdsIssueCategory$,this.isBug2CodeIssueCategory$,this.isPixelIssueCategory$,
this.isBorgSreIssueCategory$,this.isCloudSreIssueCategory$,this.isGcpIssueCategory$,this.isDialerIssueCategory$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var h=c.next().value;var k=c.next().value;var q=c.next().value;var u=c.next().value;var A=c.next().value;c=c.next().value;if(h)return FTc;if(b){if(d)return GTc;if(e)return r5a;if(f)return HTc;if(k)return ITc;if(q)return JTc;if(u)return KTc;if(A)return LTc;if(c)return MTc}}),cg({bufferSize:1,
refCount:!0}));this.currentConfig$=this.backendHelpMeFixConfig$.pipe(fg(function(b){return b?Ce(b):a.nonBackendHelpMeFixConfig$}));this.isHelpMeFixSidebarOpen$=Ue(this.appEvents.openHelpMeFixSidebar.pipe(Tf(!0)),this.appEvents.closeHelpMeFixSidebar.pipe(Tf(!1))).pipe(eg(!1))},XTc=function(a,b){var c=l(b);b=c.next().value;c=c.next().value;if(!c||!b||!Yr(a.activeSession,"enableHelpMeFixForAds"))return!1;var d,e,f=(e=(d=c.componentPathInfo)==null?void 0:d.componentPathId)!=null?e:[],h;return((h=HTc.allowedRollupComponentIds)!=
null?h:[]).some(function(k){return f.includes(k)})},YTc=function(a,b){if(!b||!Yr(a.activeSession,"enableHelpMeFixOnPixelIssues"))return!1;var c,d,e=(d=(c=b.componentPathInfo)==null?void 0:c.componentPathId)!=null?d:[],f;return((f=ITc.allowedRollupComponentIds)!=null?f:[]).some(function(h){return e.includes(h)})};xT.\u0275fac=function(a){return new (a||xT)};xT.\u0275prov=Sc({token:xT,factory:xT.\u0275fac,providedIn:"root"});var yT=function(){var a=this;this.contextSensitiveRegistry=n(iL);this.helpMeFixService=n(xT);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(Xf());this.isEligibleForHelpMeFix$=this.helpMeFixService.doesBackendSupportIssue$.pipe(fg(function(b){return b?Ce(!0):a.helpMeFixService.currentConfig$.pipe(y(function(c){return!!c&&c!==FTc}))}),Xf(),cg({bufferSize:1,refCount:!0}));this.requestTogglePreviewVisible=new ag(1);this.isPreviewVisible$=Je([this.requestTogglePreviewVisible.pipe(eg(void 0)),
this.issueId$]).pipe(y(function(b){b=l(b);b.next();b=b.next().value;if(!b)return!0;b=dva("isHmfPreviewVisibleForIssue"+b)();return b===void 0?!0:b==="VISIBLE"}),cg({bufferSize:1,refCount:!0}))},ZTc=function(a){var b,c,d;w(function(e){if(e.nextAddress==1)return x(e,Ge(a.issueId$),2);if(e.nextAddress!=3)return(b=e.yieldResult)?x(e,Ge(a.isPreviewVisible$),3):e.return();d=(c=e.yieldResult)?"HIDDEN":"VISIBLE";cmc("isHmfPreviewVisibleForIssue"+b)(d);a.requestTogglePreviewVisible.next();ze(e)})};
yT.\u0275fac=function(a){return new (a||yT)};yT.\u0275prov=Sc({token:yT,factory:yT.\u0275fac,providedIn:"root"});var $Tc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};$Tc.prototype.getMetadata=function(){return this.metadata};var aUc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};aUc.prototype.getMetadata=function(){return this.metadata};aUc.prototype.getStatus=function(){return this.status};var zT=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},bUc=function(a,b,c){c=c===void 0?{}:c;return new $Tc(b,a,c)};zT.prototype.getName=function(){return this.name};var AT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(AT,V);AT.prototype.setFeedbackType=function(a){return Sl(this,2,a)};AT.prototype.getIsDeleted=function(){return kl(this,6)};AT.prototype.setIsDeleted=function(a){Ol(this,6,a)};AT.prototype.getMessageId=function(){return Oh(this,7)};var F5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(F5a,V);g=F5a.prototype;g.getTitle=function(){return Oh(this,1)};g.setTitle=function(a){return Rl(this,1,a)};g.clearTitle=function(){return tq(this,1)};g.getUrl=function(){return Oh(this,2)};g.setUrl=function(a){return Rl(this,2,a)};g.hasUrl=function(){return ml(this,2)};g.getIconUrl=function(){return Oh(this,3)};g.setIconUrl=function(a){return Rl(this,3,a)};var D5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(D5a,V);var C5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(C5a,V);var E5a=[3,4,5,6,7];var BT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BT,V);g=BT.prototype;g.getMessageId=function(){return Oh(this,1)};g.getText=function(){return Oh(this,3)};g.setText=function(a){return Rl(this,3,a)};g.setModelId=function(a){Rl(this,4,a)};g.getClient=function(){return pl(this,7)};g.setClient=function(a){return Sl(this,7,a)};g.hasClient=function(){return nl(this,7)};g.setFeedback=function(a){return W(this,AT,9,a)};var cUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cUc,V);var CT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CT,V);CT.prototype.setModelId=function(a){Rl(this,2,a)};CT.prototype.getText=function(){return Oh(this,3)};CT.prototype.setText=function(a){return Rl(this,3,a)};CT.prototype.setConversationHistory=function(a){return W(this,cUc,11,a)};var dUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dUc,V);g=dUc.prototype;g.getResponse=function(){return X(this,BT,1)};g.getReadonlyResponse=function(){return nr(this,BT,1)};g.getMutableResponse=function(){return Du(this,BT,1)};g.setResponse=function(a){return W(this,BT,1,a)};g.setConversationHistory=function(a){return W(this,cUc,5,a)};g.getQuery=function(){return X(this,BT,2)};g.setQuery=function(a){return W(this,BT,2,a)};g.clearQuery=function(){tq(this,2)};
g.hasQuery=function(){return nk(this,BT,2)};var eUc=new zT("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",CT,dUc,function(a){return a.serialize()},Rh(dUc));var fUc=new Set(["SAPISIDHASH","APISIDHASH"]);var DT=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};Y(DT,Error);DT.prototype.toString=function(){var a="RpcError("+(tna(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var ET=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.xhrNodeReadableStream_&&gUc(this)},nUc=function(a,b){var c=new hUc;Ip(a.xhr_,"complete",function(){if(a.xhr_.isSuccess()){var d=a.xhr_.getResponseText();if(b&&a.xhr_.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("We");d=
atob(d)}try{var e=a.grpcResponseDeserializeFn_(d)}catch(k){iUc(a,t5a(new DT(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=sna(a.xhr_.getStatus());jUc(a,kUc(a));d==0?lUc(a,e):iUc(a,t5a(new DT(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr_.getResponseText();e=kUc(a);if(d){var f=mUc(a,d);d=f.code;var h=f.details;f=f.metadata}else d=2,h="Rpc failed due to xhr error. uri: "+a.xhr_.getLastUri()+", error code: "+a.xhr_.getLastErrorCode()+", error: "+
a.xhr_.getLastError(),f=e;jUc(a,e);iUc(a,t5a(new DT(d,h,f),c))}})},gUc=function(a){a.xhrNodeReadableStream_.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){iUc(a,new DT(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&lUc(a,d)}if("2"in b)for(b=mUc(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){jUc(a,kUc(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});
a.xhrNodeReadableStream_.on("error",function(){if(a.onErrorCallbacks_.length!=0){var b=a.xhr_.getLastErrorCode();b!==0||a.xhr_.isSuccess()||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.xhr_.getStatus();d=sna(c);break;default:d=14}jUc(a,kUc(a));b=BOc(b)+", error: "+a.xhr_.getLastError();c!=-1&&(b+=", http status code: "+c);iUc(a,new DT(d,b))}})},kUc=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
mUc=function(a,b){var c=2,d={};try{var e=WNc(b);c=e.getCode();var f=e.getMessage();Wk(e,Go,3,Fk()).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.xhr_&&a.xhr_.getStatus()===404?(c=5,f="Not Found: "+a.xhr_.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
ET.prototype.on=function(a,b){a=="data"?this.onDataCallbacks_.push(b):a=="metadata"?this.onMetadataCallbacks_.push(b):a=="status"?this.onStatusCallbacks_.push(b):a=="end"?this.onEndCallbacks_.push(b):a=="error"&&this.onErrorCallbacks_.push(b);return this};var oUc=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
ET.prototype.removeListener=function(a,b){a=="data"?oUc(this.onDataCallbacks_,b):a=="metadata"?oUc(this.onMetadataCallbacks_,b):a=="status"?oUc(this.onStatusCallbacks_,b):a=="end"?oUc(this.onEndCallbacks_,b):a=="error"&&oUc(this.onErrorCallbacks_,b);return this};ET.prototype.cancel=function(){this.xhr_.abort()};
var lUc=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},jUc=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},iUc=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};ET.prototype.cancel=ET.prototype.cancel;ET.prototype.removeListener=ET.prototype.removeListener;ET.prototype.on=ET.prototype.on;
var hUc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};Y(hUc,Error);var pUc=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};pUc.prototype.isInputValid=function(){return this.isInputValid_};pUc.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("Xe`"+this.streamPos_+"`"+b+"`"+a);};
pUc.prototype.decode=function(a){this.isInputValid_||this.error_(a,"stream already broken");this.leftoverInput_+=a;a=Math.floor(this.leftoverInput_.length/4);if(a==0)return null;try{var b=R8b(this.leftoverInput_.slice(0,a*4))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=a*4;this.leftoverInput_=this.leftoverInput_.slice(a*4);return b};var x5a=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};g=x5a.prototype;g.isInputValid=function(){return this.state_!=3};g.getErrorMessage=function(){return this.errorMessage_};g.error_=function(a,b,c){this.state_=3;this.errorMessage_="The stream is broken @"+this.streamPos_+"/"+b+". Error: "+c+". With input:\n"+a;throw Error(this.errorMessage_);};
g.acceptsBinaryInput=function(){return!0};
g.parse=function(a){function b(q){q&128&&f.error_(h,k,"invalid tag");(q&7)!=2&&f.error_(h,k,"invalid wire type");f.tag_=q>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(h,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(q){f.countLengthBytes_++;f.countLengthBytes_==5&&q&240&&f.error_(h,k,"message length too long");f.length_|=(q&127)<<(f.countLengthBytes_-1)*7;q&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),f.length_==0&&e())}function d(q){f.messageBuffer_[f.countMessageBytes_++]=q;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var q={};q[f.tag_]=f.messageBuffer_;f.result_.push(q)}f.state_=0}for(var f=this,h=a instanceof Array?a:new Uint8Array(a),k=0;k<h.length;){switch(f.state_){case 3:f.error_(h,k,"stream already broken");break;case 0:b(h[k]);break;case 1:c(h[k]);break;case 2:d(h[k]);break;default:throw Error("Ye`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var y5a=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new pUc;this.pbParser_=new x5a};g=y5a.prototype;g.isInputValid=function(){return this.errorMessage_===null};g.getErrorMessage=function(){return this.errorMessage_};g.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){this.errorMessage_!==null&&this.error_(a,"stream already broken");var b=null;try{var c=this.base64Decoder_.decode(a);b=c===null?null:this.pbParser_.parse(c)}catch(d){this.error_(a,d.message)}this.streamPos_+=a.length;return b};var FT=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var w5a=function(a){this.errorMessage_=null;this.result_=[];this.buffer_="";this.stack_=[];this.pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)},qUc={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,
NUM_DIGIT:20};g=w5a.prototype;g.isInputValid=function(){return this.streamState_!=3};g.getErrorMessage=function(){return this.errorMessage_};g.done=function(){return this.streamState_===2};g.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){function b(){for(;H<a.length;)if(FT(a[H]))H++,f.pos_++;else break;return H<u}function c(){for(var O;;){O=a[H++];if(!O)break;f.pos_++;switch(f.state_){case q.INIT:O==="{"?f.state_=q.OBJECT_OPEN:O==="["?f.state_=q.ARRAY_OPEN:FT(O)||f.error_(a,H);continue;case q.KEY_START:case q.OBJECT_OPEN:if(FT(O))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if(O==="}"){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);O==='"'?f.state_=q.STRING:f.error_(a,H);continue;case q.KEY_END:case q.OBJECT_END:if(FT(O))continue;
O===":"?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):O==="}"?(f.depth_--,e(),f.state_=d()):O===","?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,H);continue;case q.ARRAY_OPEN:case q.VALUE:if(FT(O))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,O==="]"){f.depth_--;if(f.depth_===0){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);O==='"'?f.state_=q.STRING:O==="{"?f.state_=q.OBJECT_OPEN:
O==="["?f.state_=q.ARRAY_OPEN:O==="t"?f.state_=q.TRUE1:O==="f"?f.state_=q.FALSE1:O==="n"?f.state_=q.NULL1:O!=="-"&&("0123456789".indexOf(O)!==-1?f.state_=q.NUM_DIGIT:f.error_(a,H));continue;case q.ARRAY_END:if(O===",")h.push(q.ARRAY_END),f.state_=q.VALUE,f.depth_===1&&(G=H);else if(O==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(FT(O))continue;else f.error_(a,H);continue;case q.STRING:var U=H;a:for(;;){for(;f.unicodeCount_>0;)if(O=a[H++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,
!O)break a;if(O==='"'&&!f.slashed_){f.state_=d();break}if(O==="\\"&&!f.slashed_&&(f.slashed_=!0,O=a[H++],!O))break;if(f.slashed_)if(f.slashed_=!1,O==="u"&&(f.unicodeCount_=1),O=a[H++])continue;else break;k.lastIndex=H;O=k.exec(a);if(!O){H=a.length+1;break}H=O.index+1;O=a[O.index];if(!O)break}f.pos_+=H-U;continue;case q.TRUE1:if(!O)continue;O==="r"?f.state_=q.TRUE2:f.error_(a,H);continue;case q.TRUE2:if(!O)continue;O==="u"?f.state_=q.TRUE3:f.error_(a,H);continue;case q.TRUE3:if(!O)continue;O==="e"?
f.state_=d():f.error_(a,H);continue;case q.FALSE1:if(!O)continue;O==="a"?f.state_=q.FALSE2:f.error_(a,H);continue;case q.FALSE2:if(!O)continue;O==="l"?f.state_=q.FALSE3:f.error_(a,H);continue;case q.FALSE3:if(!O)continue;O==="s"?f.state_=q.FALSE4:f.error_(a,H);continue;case q.FALSE4:if(!O)continue;O==="e"?f.state_=d():f.error_(a,H);continue;case q.NULL1:if(!O)continue;O==="u"?f.state_=q.NULL2:f.error_(a,H);continue;case q.NULL2:if(!O)continue;O==="l"?f.state_=q.NULL3:f.error_(a,H);continue;case q.NULL3:if(!O)continue;
O==="l"?f.state_=d():f.error_(a,H);continue;case q.NUM_DECIMAL_POINT:O==="."?f.state_=q.NUM_DIGIT:f.error_(a,H);continue;case q.NUM_DIGIT:if("0123456789.eE+-".indexOf(O)!==-1)continue;else H--,f.pos_--,f.state_=d();continue;default:f.error_(a,H)}}}function d(){var O=h.pop();return O!=null?O:q.VALUE}function e(O){f.depth_>1||(O||(O=G===-1?f.buffer_+a.substring(A,H):a.substring(G,H)),f.deliverMessageAsRawString_?f.result_.push(O):f.result_.push(JSON.parse(O)),G=H)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=qUc,u=a.length,A=0,G=-1,H=0;H<u;)switch(f.streamState_){case 3:return f.error_(a,H),null;case 2:return b()&&f.error_(a,H),null;case 0:if(b()){var N=a[H++];f.pos_++;if(N==="["){f.streamState_=1;A=H;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,H)}return null;case 1:return c(),f.depth_===0&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(H)):f.buffer_=G===-1?f.buffer_+a.substring(A):a.substring(G),f.result_.length>0?(N=f.result_,f.result_=[],N):null}return null};var v5a=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};v5a.prototype.isInputValid=function(){return this.errorMessage_===null};v5a.prototype.getErrorMessage=function(){return this.errorMessage_};v5a.prototype.acceptsBinaryInput=function(){return!1};
v5a.prototype.parse=function(a){function b(q){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+h+". Error: "+q+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new w5a({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var u=0;u<q.length;u++){var A={};A[1]=q[u];f.result_.push(A)}}function e(q){if(q){(f.statusParsed_||q.length>1)&&b("extra status: "+q);f.statusParsed_=!0;var u={};u[2]=q[0];f.result_.push(u)}}for(var f=
this,h=0;h<a.length;){var k;if(k=f.state_!==2){a:{for(;h<a.length;){if(!FT(a[h])){k=!0;break a}h++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:a[h]==="["?(f.state_=1,h++,f.streamPos_++):b("unexpected input token");break;case 1:a[h]==="["?(f.state_=2,c()):a[h]===","||a.slice(h,h+5)=="null,"?f.state_=3:a[h]==="]"?(f.state_=5,h++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(h));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);break;case 3:a[h]===","||a.slice(h,h+5)=="null,"?(f.state_=4,c(),f.jsonStreamParser_.parse("["),h+=a[h]===","?1:5,f.streamPos_++):a[h]==="]"&&(f.state_=5,h++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(h));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);
break;case 5:b("extra input after stream end")}}return f.result_.length>0?(a=f.result_,f.result_=[],a):null};var rUc=function(a){this.xhr_=a;this.parser_=null;this.status_=this.pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.textDecoder_=null;this.eventHandler_=new Is(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};rUc.prototype.getXhr=function(){return this.xhr_};
var GT=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},sUc=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};rUc.prototype.getStatus=function(){return this.status_};
rUc.prototype.readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.xhr_)a:{var b=this.xhr_.getReadyState(),c=this.xhr_.getLastErrorCode(),d=this.xhr_.getStatus(),e=this.xhr_.getResponseText();a=[];if(this.xhr_.getResponse()instanceof Array){var f=this.xhr_.getResponse();f.length>0&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?GT(this,7):c==7?GT(this,8):d||GT(this,3)),this.parser_||(this.parser_=z5a(this.xhr_),
this.parser_==null&&GT(this,5)),this.status_>2)sUc(this);else{if(a.length>this.pos_){var h=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<h;k++){var q=this.parser_.parse(Array.from(a[k]));q&&(c=c.concat(q))}else{q="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Ze");this.textDecoder_=new TextDecoder}for(k=0;k<h;k++)q+=this.textDecoder_.decode(a[k],{stream:b==4&&k==h-1});c=this.parser_.parse(q)}a.splice(0,h);c&&this.dataHandler_(c)}catch(A){GT(this,
5);sUc(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var u=this.parser_.parse(k);u!=null&&this.dataHandler_&&this.dataHandler_(u)}catch(A){GT(this,5);sUc(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?GT(this,2):GT(this,4),sUc(this)):GT(this,1)}}}catch(A){GT(this,6),sUc(this)}};var tUc=function(a){a=this.xhrReader_=a;var b=mt(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=mt(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};g=tUc.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&Za(c,b);(a=this.callbackOnceMap_[a])&&Za(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&uUc(this,a,b);(b=this.callbackOnceMap_.data)&&uUc(this,a,b);this.callbackOnceMap_.data=[]};
var uUc=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$899:void 0},e++)d.message$jscomp$899=b[e],c.forEach(function(f){return function(h){try{h(f.message$jscomp$899)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};tUc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:vUc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:vUc(this,"error");break;case 8:vUc(this,"close");break;case 2:vUc(this,"end")}};
var vUc=function(a,b){var c=a.callbackMap_[b];c&&c.forEach(function(d){try{d()}catch(e){a.handleError_("status-callback exception (ignored) "+e)}});(c=a.callbackOnceMap_[b])&&c.forEach(function(d){d()});a.callbackOnceMap_[b]=[]};tUc.prototype.handleError_=function(){};var wUc=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Cp("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Cp("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},zUc=function(a,b,c,d,e,f){f=f===void 0?{}:f;var h=b.substring(0,b.length-e.name.length),k,q=(k=f)==null?void 0:k.signal;
return xUc(function(u){return new Promise(function(A,G){if(q==null?0:q.aborted){var H=new DT(1,"Aborted");H.cause=q.reason;G(H)}else{var N={},O=yUc(a,u,h);O.on("error",function(U){return G(U)});O.on("metadata",function(U){N=U});O.on("data",function(U){var da=N;da=da===void 0?{}:da;A(new aUc(U,da))});q&&q.addEventListener("abort",function(){O.cancel();var U=new DT(1,"Aborted");U.cause=q.reason;G(U)})}})},a.unaryInterceptors_).call(a,bUc(e,c,d)).then(function(u){return u.responseMessage})},HT=function(a,
b,c,d,e){var f=f===void 0?{}:f;return zUc(a,b,c,d,e,f)};wUc.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return xUc(function(h){var k=h.methodDescriptor,q=h.getMetadata(),u=AUc(e,!1);q=BUc(e,q,u,f+k.getName());var A=CUc(u,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage);u.send(q,"POST",h);return A},this.streamInterceptors_).call(this,bUc(d,b,c))};
var yUc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=AUc(a,!0);a=BUc(a,e,f,c+d.getName());c=CUc(f,d.responseDeserializeFn,!1);nUc(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},AUc=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new Xq(new ZR({worker:a.workerScope_,streamBinaryChunks:b})):new Xq},BUc=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]=
"grpc-web-javascript/0.1";var e=b.Authorization;if(e&&fUc.has(e.split(" ")[0])||a.withCredentials_)c.withCredentials_=!0;if(a.suppressCorsPreflight_)d=cvc(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d},CUc=function(a,b,c){if(c){c=new rUc(a);var d=new tUc(c)}return new ET({xhr:a,nodeReadableStream:d},b)},xUc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)};var DUc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new wUc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};DUc.prototype.generateAnswers=function(a){return HT(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",a,{},eUc)};var JT=function(){this.activeSession=n(Es);this.clientFactory=n(IT);this.client=this.clientFactory.create(this.getServiceEndpoint())};JT.prototype.generateAnswers=function(a){var b=this;return this.activeSession.isExternalSession()?Ce({response:"",citationResources:[]}):Oe(function(){var c=b.client,d=c.generateAnswers,e=new CT;e=Sl(e,5,9).setText(a);var f=e.setConversationHistory;var h=new cUc;h=Sl(h,1,2);return d.call(c,f.call(e,h))}).pipe(y(B5a()),Pf(function(){return Ce({response:"",citationResources:[]})}))};
JT.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":return"https://autopush-ml4answers-googleapis.corp.google.com";case "PROD":return"https://ml4answers-googleapis.corp.google.com";default:return"https://staging-ml4answers-googleapis.corp.google.com"}};JT.\u0275fac=function(a){return new (a||JT)};JT.\u0275prov=Sc({token:JT,factory:JT.\u0275fac,providedIn:"root"});var IT=function(){};IT.prototype.create=function(a){return new DUc(a)};
IT.\u0275fac=function(a){return new (a||IT)};IT.\u0275prov=Sc({token:IT,factory:IT.\u0275fac,providedIn:"root"});var KT=function(){this.changelistApi=n(VC)},EUc=function(a,b){return w(function(c){return c.nextAddress==1?x(c,Promise.all(b.map(function(d){var e,f,h;return w(function(k){if(k.nextAddress==1)return x(k,Promise.all(((f=(e=d.snapshot)==null?void 0:e[0].changelist)!=null?f:[]).map(function(q){return w(function(u){return u.nextAddress==1?x(u,a.changelistApi.getChangelistDetails(q).then(G5a),2):u.return(u.yieldResult)})})),2);h=k.yieldResult;return k.return({issue:d,changelists:h})})})),2):c.return(c.yieldResult)})};
KT.\u0275fac=function(a){return new (a||KT)};KT.\u0275prov=Sc({token:KT,factory:KT.\u0275fac,providedIn:"root"});var LT=function(){var a=this;this.helpMeFixService=n(xT);this.duckieService=n(JT);this.geminiApi=n(GS);this.issueAndChangelistDetailsService=n(KT);this.activeSession=n(Es);this.formatter=n(IN);this.contextSensitiveRegistry=n(iL);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(Xf());this.similarIssuesPrompt$=this.helpMeFixService.similarFixedIssues$.pipe(fg(function(c){return EUc(a.issueAndChangelistDetailsService,c)}),y(function(c){if(c.length===0)return null;var d="Here are some similar tickets and details on their fixes:\n";
c=l(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;e=f.issue;var h=f.changelists,k=void 0;f=(k=e.snapshot)==null?void 0:k[0];if(h=h.find(function(q){return q.isInteresting}))k=void 0,d+="Ticket b/"+e.issueId+" title:\n"+((k=f)==null?void 0:k.title)+"\nTicket b/"+e.issueId+" change summary:\n"+h.firstInterestingLine+"\nTicket b/"+e.issueId+" changed files:\n"+h.changelist.affectedFiles.join("\n")+"\n\n"}return d}));this.currentIssuePrompt$=Je([this.helpMeFixService.issue$,this.helpMeFixService.description$]).pipe(y(function(c){var d=
l(c);c=d.next().value;d=d.next().value;if(!c||!d)return null;var e,f=(e=c.snapshot)==null?void 0:e[0];return"You are given the following ticket:\nTicket b/"+c.issueId+" title:\n"+(f==null?void 0:f.title)+"\nTicket b/"+c.issueId+" description:\n"+d+"\n\n"}));this.commentsPrompt$=this.helpMeFixService.events$.pipe(y(function(c){if(c.length===0)return null;var d="";c=l(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.commentNumber!==1&&pua(e.userPerformingAction)&&e.isMajorEvent){var f=void 0;
(f=e.unlinkifiedComment)!=null&&f.trim()&&(d+=e.userPerformingAction+"  comment #"+e.commentNumber+" : "+e.unlinkifiedComment+"\n")}return d?"\nThe following is a list of user comments on the ticket.\nThese comments provide context for the ticket, but only reference this information if it is relevant to helping the user fix the ticket.\n\n"+d:null}));this.prompt$=Je([this.helpMeFixService.currentConfig$,this.similarIssuesPrompt$,this.currentIssuePrompt$,this.commentsPrompt$]).pipe(y(function(c){var d=
l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;if(!c||!f)return null;var h="";c.llmPromptPrefix&&(h+=c.llmPromptPrefix);c.includeSimilarIssuesInPrompt&&e&&(h+=e);h+=f;c.includeIssueCommentsInPrompt&&d&&(h+=d);c.llmPromptSuffix&&(h+=c.llmPromptSuffix);return h}));this.backendLlmResponse$=this.helpMeFixService.currentConfig$.pipe(fg(function(c){return c!=null&&c.backendHelpMeFixResponse?Ce({response:c.backendHelpMeFixResponse,citationResources:[]}):Ce(null)}));this.nonBackendLlmResponse$=
Je([this.prompt$,this.helpMeFixService.currentConfig$]).pipe(fg(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c&&d?d.llmApi==="gemini"&&Yr(a.activeSession,"enableGeminiApiForHelpMeFix")?a.geminiApi.generate({prompt:c}).then(function(e){return{response:e.output,citationResources:[]}}):a.duckieService.generateAnswers(c):Ce(null)}),cg({bufferSize:1,refCount:!0}));this.llmResponse$=this.backendLlmResponse$.pipe(fg(function(c){return c?Ce(c):a.nonBackendLlmResponse$}),cg({bufferSize:1,
refCount:!0}));this.llmResponseMarkdown$=this.llmResponse$.pipe(Tja(this.issueId$.pipe(Tf(null))),fg(function(c){return c?a.formatter.format({comment:c.response,formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"help_me_fix"}):Ce(null)}),y(function(c){var d;return c?{content:(d=c.markdownFormat)==null?void 0:d.content}:null}),cg({bufferSize:1,refCount:!0}));this.llmCitations$=this.llmResponse$.pipe(y(function(c){return c?c.citationResources:[]}));var b=n(df);this.llmResponseMarkdown$.pipe(Gh(b)).subscribe()};
LT.\u0275fac=function(a){return new (a||LT)};LT.\u0275prov=Sc({token:LT,factory:LT.\u0275fac,providedIn:"root"});var MT=function(){Z.apply(this,arguments);var a=this;this.llmResponseService=n(LT);this.appEvents=n(nD);this.analytics=n(CF);this.helpMeFixPreviewService=n(yT);this.helpMeFixService=n(xT);this.llmResponseMarkdown$=this.llmResponseService.llmResponseMarkdown$;this.shouldDisplayPreview$=Je([this.helpMeFixService.isHelpMeFixSidebarOpen$,this.helpMeFixPreviewService.isEligibleForHelpMeFix$,this.helpMeFixPreviewService.isPreviewVisible$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;
c=c.next().value;return!b&&d&&c}),hg(function(b){b&&a.analytics.trackEvent("helpMeFix","display","previewShown")}))};Y(MT,Z);MT.\u0275dir=Z.\u0275dir;MT.prototype.ngOnInit=function(){var a=this;Je([this.shouldDisplayPreview$,this.helpMeFixService.currentConfig$]).pipe(gg(this.destroyed$),hg(function(b){var c=l(b);b=c.next().value;c=c.next().value;b&&a.analytics.trackEvent("helpMeFix","expandButtonShown",String(c==null?void 0:c.issueCategory))})).subscribe()};
MT.prototype.openHelpMeFixSidebar=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1)return a.appEvents.openHelpMeFixSidebar.next(),x(d,Ge(a.helpMeFixService.currentConfig$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","openSidebarFromPreview",String((c=b)==null?void 0:c.issueCategory));ze(d)})};
var H5a=function(a){var b,c;return w(function(d){if(d.nextAddress==1)return ZTc(a.helpMeFixPreviewService),x(d,Ge(a.helpMeFixService.currentConfig$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","hidePreview",String((c=b)==null?void 0:c.issueCategory));ze(d)})};MT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(MT)))(b||MT)}}();
MT.\u0275cmp=B({type:MT,selectors:[["help-me-fix-preview"]],standalone:!1,features:[kg],decls:2,vars:3,consts:[[1,"container","carded","padded-s"],[1,"flex-kids-x","align-items-center","margin-s-bottom"],["svgIcon","spark_24px",1,"logo","margin-xs-right"],[1,"uppercase"],[1,"flex-kids-y","space-between"],[1,"margined"],[1,"preview","margin-s-bottom"],[1,"line-clamp-2",3,"content"],[1,"flex-kids-x"],["type","button","mat-button","",1,"small",3,"click"],["type","button","mat-button","",1,"small","margin-xs-left",
3,"click"]],template:function(a,b){a&1&&(E(0,K5a,8,3,"div",0),S(1,"async"));a&2&&F(T(1,1,b.shouldDisplayPreview$)?0:-1)},dependencies:[aB,JO,PA,Tx,ON,Qv],styles:[".container[_ngcontent-%COMP%]{min-height:50px;max-height:150px;overflow-y:hidden;background-color:#edfbf1;background-color:var(--green-bg)}.preview[_ngcontent-%COMP%]{max-height:48px;overflow-y:hidden}header[_ngcontent-%COMP%]   mat-icon.logo[_ngcontent-%COMP%]{color:#137333;color:var(--green-text);height:16px;width:16px}header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:2px}"]});var NT=function(){this.helpMeFixPreviewService=n(yT);this.helpMeFixService=n(xT);this.appEvents=n(nD);this.analytics=n(CF);this.shouldDisplayButton$=Je([this.helpMeFixService.isHelpMeFixSidebarOpen$,this.helpMeFixPreviewService.isEligibleForHelpMeFix$,this.helpMeFixPreviewService.isPreviewVisible$]).pipe(y(function(a){var b=l(a);a=b.next().value;var c=b.next().value;b=b.next().value;return!a&&c&&!b}))};
NT.prototype.openHelpMeFixSidebar=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1)return a.appEvents.openHelpMeFixSidebar.next(),ZTc(a.helpMeFixPreviewService),x(d,Ge(a.helpMeFixService.currentConfig$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","openSidebarFromSmallPreviewButton",String((c=b)==null?void 0:c.issueCategory));ze(d)})};NT.\u0275fac=function(a){return new (a||NT)};
NT.\u0275cmp=B({type:NT,selectors:[["help-me-fix-preview-button"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-stroked-button","",1,"gmat-button","small"],["type","button","mat-stroked-button","",1,"gmat-button","small",3,"click"],["svgIcon","spark_24px",1,"margin-xs-right"]],template:function(a,b){a&1&&(E(0,L5a,3,0,"button",0),S(1,"async"));a&2&&F(T(1,1,b.shouldDisplayButton$)?0:-1)},dependencies:[aB,PA,Tx,Qv],styles:["[_nghost-%COMP%]   button[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);color:#137333;color:var(--green-text)}"]});var OT=function(){this.dialogRef=n(mK);this.documentationLinks=n(lK);this.data=n(sK);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};OT.prototype.onNoClick=function(){this.dialogRef.close(!1)};OT.\u0275fac=function(a){return new (a||OT)};
OT.\u0275cmp=B({type:OT,selectors:[["b-restricted-confirmation-dialog"]],standalone:!1,decls:12,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about restricted access",3,"rel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","restricted-confirmation-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action","restricted-confirmation-dialog-confirm",
3,"mat-dialog-close"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"div",1)(3,"p"),Q(4),I(5,"a",2),Q(6," Learn More "),J()()(),I(7,"div",3)(8,"button",4),M("click",function(){return b.onNoClick()}),Q(9," Cancel "),J(),I(10,"button",5),Q(11," Confirm "),J()());a&2&&(z(),ch(b.data.title),z(3),R(" ",b.data.content," "),z(),D("rel",b.EXTERNAL_LINK_REL),ng("href",b.documentationLinks.getRestrictedAccessHelpLink(),uf),z(5),D("mat-dialog-close",!0))},dependencies:[PA,Tx,uK,wK,yK,xK],encapsulation:2});var PT=function(){this.dialog=n(tK);this.documentationLinks=n(lK);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new LA};
PT.prototype.openDialog=function(){var a=this;nK(this.dialog.open(OT,{width:"500px",data:{title:"Access Restricted Content",content:"You are about to access a comment marked as restricted.\n                    Access will be logged and audited. You must delete any\n                    data used locally when finished with business use."}})).subscribe(function(b){b&&a.onConfirm.emit()})};PT.\u0275fac=function(a){return new (a||PT)};
PT.\u0275cmp=B({type:PT,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},standalone:!1,decls:5,vars:3,consts:[["type","button","mat-stroked-button","","color","primary",1,"small","restricted-comment-load",3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access",3,"rel"]],template:function(a,b){a&1&&(I(0,"span")(1,"button",0),M("click",function(){return b.openDialog()}),Q(2," Show Restricted Content "),J(),
I(3,"a",1),Q(4," Learn More "),J()());a&2&&(z(),D("disabled",b.disabled),z(2),D("rel",b.EXTERNAL_LINK_REL),ng("href",b.documentationLinks.getRestrictedAccessHelpLink(),uf))},dependencies:[PA,Tx],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var QT=function(){};QT.\u0275fac=function(a){return new (a||QT)};QT.\u0275mod=Jf({type:QT});QT.\u0275inj=Tc({imports:[LH,ZB,$B,cC]});var FUc=["commentActionsMenu"],GUc=["editDescription"],h6a=function(){return[]},RT=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=n(CE);this.userPreferencesManager=n(OG);this.issueFullFridge=n(EF);this.issueReferenceResolver=n(EO);this.activeSession=n(Es);this.commentService=n(UK);this.errorHandler=n(DK);this.analytics=n(CF);this.butterBar=n(iK);this.userAccess=n(jE);this.issueCommentDialogsService=n(pS);this.issuePermissionService=n(lL);this.commentHistoryDialogService=n(NS);this.dateFormatter=
n(YL);this.domSafe=n(rL);this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.id$=new ag(1);this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}),cg({bufferSize:1,refCount:!0}));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.firstEventOverride$=new tj(void 0);this.firstEvent$=this.firstEventOverride$.pipe(fg(function(b){return b?Ce(b):a.issue$.pipe(Ve(Tk),y(function(c){if(c.description)var d=
uEa(c.description,c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:Sva(el((f=(e=c.aggregatedData)==null?void 0:e.createdTimeMicros)!=null?f:0)),userPerformingActionUser:void 0,userPerformingAction:"<none>",commentVersion:void 0,version:void 0,commentLastModifiedAtDate:void 0,commentRedacted:void 0,commentContentVerdict:void 0,commentRetentionState:void 0,commentDeletionStatus:void 0,commentRetention:void 0,lastCommentEditorUser:void 0,commentEtag:void 0,commentNumber:void 0,
isCommentEvent:!0,unlinkifiedComment:"",formattingMode:void 0,isMajorEvent:!0,statusUpdate:void 0,taggedSummary:void 0,formattedComment:void 0,commentReactions:void 0,issueId:c.issueId}}return d}))})).pipe(cg({bufferSize:1,refCount:!0}));this.firstNote$=this.firstEvent$.pipe(y(function(b){return b}));this.hasDescription$=this.firstEvent$.pipe(y(function(b){return!!b&&Xxa(b)}));this.commentActionMenuItems$=new tj([]);this.isFormattingOverrideEnabled=this.isDisplayCommentFormatLiteral=!1;this.formattingMode=
"PLAIN";this.formattingModeOverride$=new tj(void 0);this.formattingMode$=this.formattingModeOverride$.pipe(fg(function(b){return b?Ce(b):a.firstEvent$.pipe(Ve(Tk),y(function(c){var d;return(d=c.formattingMode)!=null?d:"PLAIN"}),Xf())}));this.isRedacted$=this.firstEvent$.pipe(y(function(b){var c;return(c=b==null?void 0:b.commentRedacted)!=null?c:!1}));this.isDeleted$=this.firstEvent$.pipe(y(function(b){return(b==null?void 0:b.commentDeletionStatus)==="DELETED"}));this.shouldShowRestrictedPlaceholder$=
Je([this.isRedacted$,this.isDeleted$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(y(function(b){return Bn(b==null?void 0:b.commentContentVerdict)}),y(function(b){if(b==null)return!1;switch(b){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:Gb(b)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(y(function(b){return b==null?void 0:b.commentRetention}));
this.commentHistoryEnabled=Yr(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=Je([this.firstEvent$,this.isRedacted$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!(Yr(a.activeSession,"enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(fg(function(b){return b?a.issuePermissionService.canEditComment$(b):Ce(!1)}),cg({refCount:!0,bufferSize:1}));this.mayReadPii$=this.isRestricted$.pipe(fg(function(b){return b?
a.mayReadPii():Ce(void 0)}));this.reporterUser$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.currentReporterEmail$=this.reporterUser$.pipe(y(function(b){return Dk(b)||""}));this.allEvents$=this.id$.pipe(fg(function(b){return a.eventsForIssue.watch(b)}));this.attachments$=this.allEvents$.pipe(y(function(b){var c,d;return(d=b==null?void 0:(c=b.events[0])==null?void 0:c.attachments)!=null?d:[]}));this.initialReporterEmail$=this.allEvents$.pipe(y(function(b){return b==
null?void 0:b.events[0]}),y(function(b){b=l((b==null?void 0:b.postDiffs)||[]);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.name==="reporter")return c.newValue||"";return""}));this.onBehalfOfEmail$=Je([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(y(function(b){return b==null?void 0:b.events[0]}),y(function(b){return b==null?void 0:b.userPerformingActionUser}));
this.originalAuthorEmail$=this.originalAuthor$.pipe(y(Dk));this.isAuthorNotReporter$=Je([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=Je([this.firstEvent$.pipe(Ve(Tk)),this.onBehalfOfEmail$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d;if(c.next().value!==((d=b.lastCommentEditorUser)==null?void 0:d.emailAddress)){var e;return(e=b.lastCommentEditorUser)!=null?e:void 0}}));
this.editedTooltipText$=this.firstEvent$.pipe(Ve(Tk),fg(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+Ak(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?fHc(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).pipe(y(function(d){return c+" on "+d})):Ce(c)}))};Y(RT,Z);RT.\u0275dir=Z.\u0275dir;
RT.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(fg(function(b){return Oe(function(){return kE(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Nj("error: ",c);return!1})})}))};
RT.prototype.ngOnInit=function(){var a=this;HUc(this,"PLAIN");this.canEditComment$.pipe(gg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(gg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=b.commentDisplayOverride!=null;a.initializeActionsMenu()});this.userPreferencesManager.commentFormattingPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.isDisplayCommentFormatLiteral=b.commentDisplayOverride===
"LITERAL_FORMATTING_MODE";a.initializeActionsMenu()});this.formattingMode$.pipe(gg(this.destroyed$)).subscribe(function(b){a.formattingMode=b!=null?b:"PLAIN";HUc(a,b!=null?b:"PLAIN");a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(gg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
RT.prototype.initializeActionsMenu=function(){var a=this,b,c,d,e,f,h,k,q,u,A,G,H;return w(function(N){switch(N.nextAddress){case 1:return b=[],c=!1,(c=a.enableLiteralModeRevisions?a.activeSession.isInternalSession()&&!a.isDisplayCommentFormatLiteral:!a.isFormattingOverrideEnabled)&&b.push(Object.assign({},YRc,{items:[a.formattingModeMenuItems.PLAIN,a.formattingModeMenuItems.MARKDOWN,a.formattingModeMenuItems.LITERAL]})),x(N,Ge(a.firstEvent$),2);case 2:return d=N.yieldResult,x(N,Ge(a.canEditComment$),
3);case 3:return e=N.yieldResult,x(N,Ge(a.isRedacted$),4);case 4:return f=N.yieldResult,x(N,Ge(a.isRestricted$),5);case 5:return h=N.yieldResult,x(N,Ge(a.isDeleted$),6);case 6:return k=N.yieldResult,x(N,Ge(a.accessLevel$),7);case 7:return q=N.yieldResult,e&&d&&b.push({type:"action",action:function(){e8a(a.issueCommentDialogsService,a.id,d).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:f}),x(N,Ge(a.isShowCommentHistoryActionInMenu$),8);case 8:return(u=
N.yieldResult)&&d&&b.push(Object.assign({},$Rc,{action:function(){d.commentNumber&&a.showCommentHistoryDialog(d.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),d&&rFc(a.issuePermissionService,d)&&b.push({type:"action",action:function(){d.commentEtag&&YQc(a.issueCommentDialogsService,a.id,1,d.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"}),d&&qFc(a.issuePermissionService,d)&&b.push({type:"action",
action:function(){VQc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"}),x(N,Ge(a.issuePermissionService.hasAclToView$),9);case 9:A=N.yieldResult;d&&A&&b.push(Object.assign({},ZRc,{action:function(){ZQc(a.issueCommentDialogsService,a.id,d).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(!h||!a.issuePermissionService.canChangeCommentRetention()||k||!a.activeSession.isInternalSession()){N.jumpTo(10);
break}return x(N,Ge(a.commentRetentionOverride$),11);case 11:G=N.yieldResult,H=G==="COMPONENT_DEFAULT",b.push({type:"action",action:function(){var O=H?"INDEFINITE":"COMPONENT_DEFAULT";$Qc(a.issueCommentDialogsService,"comment",O).then(function(U){a.commentActionsMenu.actionsMenuIconButton.focus();U&&a.updateCommentRetention(O)})},label:H?"Match issue retention...":"Revert to component retention..."});case 10:M2a({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:q!=="INTERNAL"})&&
b.push(Object.assign({},XRc,{action:function(){var O=N2a({bugId:a.id,comment:1});a.domSafe.openInNewTab(O)}})),a.commentActionMenuItems$.next(b),ze(N)}})};
var HUc=function(a,b){var c={};a.formattingModeMenuItems=(c.PLAIN={type:"select",action:function(){a.formattingModeOverride$.next("PLAIN")},label:"Classic",selected:b==="PLAIN"},c.MARKDOWN={type:"select",action:function(){a.formattingModeOverride$.next("MARKDOWN")},label:"Markdown",selected:b==="MARKDOWN"},c.LITERAL={type:"select",action:function(){a.formattingModeOverride$.next("LITERAL")},label:"Source",selected:b==="LITERAL"},c)};
RT.prototype.updateCommentRetention=function(a){var b=this,c,d;w(function(e){if(e.nextAddress==1)return x(e,Ge(b.firstEvent$),2);if(e.nextAddress!=3)return c=e.yieldResult,x(e,Ge(b.id$),3);d=e.yieldResult;c&&!c.commentNumber&&EK(b.errorHandler,"Comment number is missing");b.analytics.trackEvent("restrictedContent","updateRetention","comment");d&&c&&b.commentService.updateRetention(d,c.commentNumber||0,a).pipe(gg(b.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);Mq(b.butterBar,"Comment retention updated",
4E3);b.initializeActionsMenu()},error:function(){EK(b.errorHandler,"Comment retention update failed")}});ze(e)})};
RT.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=Bn(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(Uf(),gg(this.destroyed$)).subscribe(function(f){f=Zxa(b,f);c.firstEventOverride$.next(f);c.initializeActionsMenu()},function(f){var h;c.butterBar.showWarning("Error showing comment "+d+": "+((h=f.error)==null?void 0:h.message))})};
RT.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var M5a=function(a){var b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.firstEvent$),2);if(c.nextAddress!=3)return(b=c.yieldResult)?x(c,e8a(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();ze(c)})};ea.Object.defineProperties(RT.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return op(this.id$)}}});
RT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(RT)))(b||RT)}}();
RT.\u0275cmp=B({type:RT,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(Wg(FUc,5),Wg(GUc,5));if(a&2){var c;$g(c=ah())&&(b.commentActionsMenu=c.first);$g(c=ah())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},standalone:!1,features:[kg],decls:3,vars:3,consts:[["commentActionsMenu",""],["editDescription",""],["card",""],["lastEditorCard",""],["id","comment1",1,"flex-kids-x","comment1"],["svgIcon","description_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-1-hemmed"],
[1,"b-description-heading","flex-kids-x"],[1,"flex-1"],[1,"uppercase","inline-block","margin-xs-right"],["type","button","mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right"],[1,"keep-focus-ring","first-comment",3,"routerLinkObj"],[1,"muted",3,"matTooltip"],[1,"margin-s-right"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"description-deleted"],["type","button","mat-stroked-button",
"","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right",3,"click"],[3,"onedevHovercardTrigger","model"],[3,"email"],[3,"email","showEmail"],[1,"keep-focus-ring","first-comment",3,"click","routerLinkObj"],[1,"critical-feature",3,"disabled"],[1,"critical-feature",3,"onConfirm","disabled"],[1,"muted","critical-feature"],[1,"critical-feature",3,"issueId","issueAccessLevel","note","formattingMode","canEditComment"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],
[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(E(0,i6a,28,27,"div",4),S(1,"async"),Ag(2,j6a,1,0,"b-spinner"));if(a&2){var c;F((c=T(1,1,b.firstEvent$))?0:2,c)}},dependencies:[KS,tT,RO,aB,WB,ZL,MT,NT,fJ,lJ,tL,PA,Tx,YA,cB,PT,ON,yL,zL,Qv],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.first-comment[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});var ST=function(){this.reactionState$=new ag(1);this.issueId="";this.emails$=this.reactionState$.pipe(Ve(Tk),y(function(a){return a.recentResponders.map(Dk).filter(function(b){return b!==""}).slice(0,5)}))};ea.Object.defineProperties(ST.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});ST.\u0275fac=function(a){return new (a||ST)};
ST.\u0275cmp=B({type:ST,selectors:[["b-comment-reaction-responders-card"]],inputs:{reactionState:"reactionState",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,decls:5,vars:2,consts:[["role","dialog","tabindex","0","aria-label","Comment Reactions Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),Dg(2,m6a,5,2,"div",null,Cg),S(4,"async"),J()());a&2&&(z(2),Eg(T(4,0,b.emails$)))},dependencies:[Qv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var IUc=function(){};IUc.\u0275fac=function(a){return new (a||IUc)};IUc.\u0275cmp=B({type:IUc,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},standalone:!1,decls:1,vars:1,consts:[["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&E(0,o6a,6,2);a&2&&F(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[ZL],encapsulation:2,changeDetection:0});var TT=function(){this.texts=[]};TT.prototype.getIssueId=function(a){return a.text};TT.\u0275fac=function(a){return new (a||TT)};TT.\u0275cmp=B({type:TT,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},standalone:!1,decls:2,vars:0,consts:[[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&Dg(0,s6a,3,1,null,null,Bg);a&2&&Eg(b.texts)},dependencies:[GO,BL],encapsulation:2,changeDetection:0});var JUc=function(){this.hotlists=n(JD);this.ROUTES=Fq};JUc.\u0275fac=function(a){return new (a||JUc)};JUc.\u0275cmp=B({type:JUc,selectors:[["hotlist-link"]],inputs:{id:"id"},standalone:!1,decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(I(0,"a",0),Q(1),S(2,"async"),J());if(a&2){var c;D("href",b.ROUTES.viewHotlist.makeHref(b.id),uf);z();ch(((c=T(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[Qv],encapsulation:2,changeDetection:0});var UT=function(){var a=this;this.componentFridge=n(jD);this.id$=new ag(1);this.name$=this.id$.pipe(Xf(),fg(function(b){return a.componentFridge.watch(b).pipe(y(function(c){var d;return c?u6a((d=c.componentPathInfo)==null?void 0:d.componentPathName,b):b}))}))};UT.prototype.ngOnChanges=function(){this.id$.next(this.id)};UT.\u0275fac=function(a){return new (a||UT)};
UT.\u0275cmp=B({type:UT,selectors:[["plain-component-path"]],inputs:{id:"id"},standalone:!1,features:[Uu],decls:6,vars:4,consts:[["thisHovercard","onedevHovercard"],["cardBody",""],[3,"onedevHovercardTrigger"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(I(0,"span",2),Q(1),S(2,"async"),J(),I(3,"onedev-hovercard",null,0),C(5,w6a,3,2,"ng-container",3),J());a&2&&(a=L(4),D("onedevHovercardTrigger",a),z(),ch(T(2,2,b.name$)||b.id))},dependencies:[fJ,
gJ,lJ,hJ,lN,Qv],encapsulation:2,changeDetection:0});var V6a=function(a){return{"bv2-diff-newvalue-nextline":a}},o7a=function(a,b,c){return{diff:a,change:b,isLast:c}},VT=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.preferences=n(OG);this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=Sj;this.isLinkedItemArray=Kxa;this.isIssueDiff=Hxa;this.isHotlistDiff=Ixa;this.DiffType=Flc};Y(VT,Z);VT.\u0275dir=Z.\u0275dir;
var KUc=function(a){if(a.internalDiffs.length<2)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp&&e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return((c=b.timestamp)!=null?c:0)<=((d=a.timestamp)!=null?d:0)},LUc=function(a){if(a.internalDiffs.length<2)return!1;var b=a.internalDiffs[0];a=a.internalDiffs.slice(1).find(function(e){return e.timestamp&&e.timestamp!==b.timestamp});if(!a)return!1;var c,d;return((c=b.timestamp)!=null?c:0)>=((d=a.timestamp)!=
null?d:0)};VT.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(Ve(Tk),gg(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&KUc(a)||!b&&LUc(a))&&a.internalDiffs.reverse()})};
var A7a=function(a,b,c){return Tqa(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},B7a=function(a,b,c){return Tqa(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};VT.prototype.asNumber=function(a){return Number(a)};
VT.prototype.customFieldName=function(a){if(a.customFieldId){var b;return((b=this.customFieldMap[a.customFieldId])==null?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};ea.Object.defineProperties(VT.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(p(a))}}});VT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(VT)))(b||VT)}}();
VT.\u0275cmp=B({type:VT,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},standalone:!1,features:[kg],decls:5,vars:0,consts:[["changeCollection",""],[1,"bv2-event-details"],[1,"bv2-diff-row"],["mode","time",1,"float-right",3,"timestamp"],[1,"bv2-diff-detail"],[3,"id"],[1,"bv2-diff-arrow"],[3,"email","showEmail"],["mode","date",3,"timestamp"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],
["title","For more detail, click on the three-dot menu near status update"],[1,"muted","inline-block","margin-none","unhandled-diff-type"],[3,"href","issueId"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(I(0,"div",1),Dg(1,R7a,2,1,"div",2,Bg),J(),C(3,X7a,1,1,"ng-template",null,0,nh));a&2&&(z(),Eg(b.internalDiffs))},dependencies:[Mv,Pv,ZL,yL,GO,JUc,UT,Uv],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var WT=function(){var a=n(OG);Z.call(this);var b=this;a.textDisplayPreferencesSubject$.pipe(gg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:Gb(c.commentDisplayOverride)}})};
Y(WT,Z);WT.\u0275dir=Z.\u0275dir;WT.prototype.ngOnInit=function(){};WT.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?MUc(this):this.summaryType==="GERRIT"&&NUc(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var MUc=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=wJa(a.rawComment,250);else{var b=a.rawComment.split("\n").filter(function(c){c=c.trim();return c!==""&&c!=="BEGIN_PUBLIC"&&c!=="END_PUBLIC"}).slice(0,2);a.rawComment=OUc(a,b)}},NUc=function(a){var b=a.rawComment.split("\n");if(b.length>9){var c=b.slice(0,8).filter(Boolean).map(function(h){return h.trim()}),d=c[0],e=c[1],f=c[3];c=c[5];b=b.at(-2);a.rawComment=OUc(a,[d,e,f,"Gerrit change: "+b,"",c])}},OUc=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};WT.\u0275fac=function(a){return new (a||WT)};
WT.\u0275cmp=B({type:WT,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},standalone:!1,features:[kg,Uu],decls:1,vars:5,consts:[[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&K(0,"b-live-preview",0);a&2&&D("comment",b.rawComment)("issueId",b.issueId)("audience",b.audience)("formattingMode",b.formattingModeOverride||b.formattingMode)("idPrefix",
b.idPrefix)},dependencies:[PO],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var PUc=["commentActionsMenu"],QUc=["commentReactionButton"],h8a=function(){return[]},x8a=function(a){return{"no-upvote-reactions":a}},RUc=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],XT=function(){Z.apply(this,arguments);var a=this;this.documentationLinks=n(lK);this.activeSession=n(Es);this.issueReferenceResolver=n(EO);this.commentService=n(UK);this.el=n(ff);this.userAccess=n(jE);this.butterBar=n(iK);this.errorHandler=n(DK);this.analytics=n(CF);
this.userPreferencesManager=n(OG);this.issueDetailsBrain=n(jL);this.editIssueService=n(oL);this.issuePermissionService=n(lL);this.commentHistoryDialogService=n(NS);this.issueCommentDialogsService=n(pS);this.dateFormatter=n(YL);this.paths=n(EN);this.domSafe=n(rL);this.eventsForIssueFridge=n(CE);this.isSummarized=!1;this.issueId$=new ag(1);this.distinctIssueId$=this.issueId$.pipe(Xf());this.event$=new ag(1);this.isCommentEvent=mm;this.isNonObfuscatedEmail=Zj;this.commentActionMenuItems$=new tj([]);
this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingMode$=new tj("PLAIN");this.commentRetentionOverride=null;this.wasSummarized=!1;this.formattingModeMenuItems$=this.formattingMode$.pipe(y(function(b){return RUc.map(function(c){return{type:"select",action:function(){a.formattingMode$.next(c.mode);a.initializeActionsMenu()},label:c.label,selected:b===c.mode}})}));this.isFormattingOverrideEnabled=this.isDisplayCommentFormatLiteral=
!1;this.canEditComment$=this.event$.pipe(fg(function(b){return a.issuePermissionService.canEditComment$(b)}),cg({refCount:!0,bufferSize:1}));this.commentHistoryEnabled=Yr(this.activeSession,"enableCommentHistoryUi");this.commentReactionsEnabled=Yr(this.activeSession,"enableCommentReaction");this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=
this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(fg(function(b){return a.editIssueService.editableIssue$(b)}));this.modifiedDateDisplay$=this.event$.pipe(y(function(b){return new Date(b.modifiedDate)}),fg(function(b){return fHc(a.dateFormatter,b)}));this.ariaLabelHeading$=Je([this.event$,this.modifiedDateDisplay$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b==null)b="";else{var d=[];b.commentNumber&&d.push("Comment #"+b.commentNumber);b.userPerformingActionUser&&
d.push(Ak(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=blc;this.upvoteReactionCount$=this.event$.pipe(y(function(b){var c,d,e;return(e=(c=b.commentReactions)==null?void 0:(d=c.get("UPVOTE"))==null?void 0:d.count)!=null?e:0}));this.upvoteReactionCountDisplayString$=this.upvoteReactionCount$.pipe(y(function(b){return b&&b!==0?b>999?"999+":String(b):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(y(function(b){return b===0}));this.commentReactionsHovercardConfig=
Object.assign({},new iJ,{position:[ABc]});this.commentReactionIsSaving=!1;this.FormattingMode=Yk;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(y(function(b){var c;return(c=b.commentFilter)!=null?c:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(y(function(b){return b==="FULL_HISTORY"}));this.preEventDiffs$=Je([this.event$,this.showRecentEventsFirst$]).pipe(y(function(b){var c=
l(b);b=c.next().value;return c.next().value?b.postDiffs:b.preDiffs}));this.postEventDiffs$=Je([this.event$,this.showRecentEventsFirst$]).pipe(y(function(b){var c=l(b);b=c.next().value;return c.next().value?b.preDiffs:b.postDiffs}));this.hasAclToUpvoteReact$=Je([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d,e;return((d=b.commentReactions)==null?void 0:(e=d.get("UPVOTE"))==null?void 0:e.hasReacted)||c}));this.showCommentReactionHovercard$=
Je([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c>0&&c<=5}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(y(function(b){return b&&F8a(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return cNa(a.issueId,{comment:b})};this.initializeActionsMenu.bind(this)};Y(XT,Z);XT.\u0275dir=Z.\u0275dir;g=XT.prototype;
g.ngOnInit=function(){var a=this;this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);this.commentRetentionOverride=this.event.commentRetention;this.event$.pipe(gg(this.destroyed$)).subscribe(function(){mm(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=Ce(void 0)});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(gg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=b.commentDisplayOverride!=
null;a.initializeActionsMenu()});this.userPreferencesManager.commentFormattingPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.isDisplayCommentFormatLiteral=b.commentDisplayOverride==="LITERAL_FORMATTING_MODE";a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(gg(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(gg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(gg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||EK(this.errorHandler,"Comment number is missing");this.analytics.trackEvent("restrictedContent","updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(gg(this.destroyed$)).subscribe({next:function(c){var d;b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:(d=c.piiRetentionState)!=null?d:null});Mq(b.butterBar,"Comment retention updated",
4E3);b.commentRetentionOverride=a==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){EK(b.errorHandler,"Comment retention update failed")}})};
g.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent)b=a.previousValue,a=a.currentValue,b=(b==null?void 0:b.commentVersion)!==(a==null?void 0:a.commentVersion)||(b==null?void 0:b.commentContentVerdict)!==(a==null?void 0:a.commentContentVerdict);b&&(this.deobfuscatedEvent=void 0);this.event.formattingMode&&(this.event.formattingMode==="UNSPECIFIED_FORMATTING_MODE"?this.formattingMode$.next("PLAIN"):this.formattingMode$.next(this.event.formattingMode));
this.initializeActionsMenu()};g.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};g.getRestrictedLabel=function(){return jBa(Bn(this.event.commentContentVerdict))};g.isRestricted=function(){var a=Bn(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:Gb(a)}};
g.isDeleted=function(){return this.event.commentDeletionStatus==="DELETED"};var wr=function(a){var b;return((b=a.event)==null?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};
XT.prototype.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,Bn(this.event.commentContentVerdict)).pipe(Uf()).subscribe(function(c){a.deobfuscatedEvent=Zxa(a.event,c);a.initializeActionsMenu()},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+((d=c.error)==null?void 0:d.message))})};
XT.prototype.initializeActionsMenu=function(){var a=this,b,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:b=[];if(!a.isCommentEvent(a.event))return a.commentActionMenuItems$.next(b),k.return();c=!1;c=a.enableLiteralModeRevisions?a.activeSession.isInternalSession()&&!a.isDisplayCommentFormatLiteral:!a.isFormattingOverrideEnabled;if(!c){k.jumpTo(2);break}return x(k,Ge(a.formattingModeMenuItems$),3);case 3:(d=k.yieldResult)&&b.push(Object.assign({},YRc,{items:d}));case 2:return x(k,Ge(a.canEditComment$),
4);case 4:return(e=k.yieldResult)&&b.push({type:"action",action:function(){e8a(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:wr(a)}),a.commentHistoryEnabled&&(a.event.commentVersion||0)>0&&!wr(a)&&b.push(Object.assign({},$Rc,{action:function(){a.event.commentNumber&&a.showCommentHistoryDialog(a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),
!a.canonicalIssueId||a.isDeleted()||a.activeSession.isAnonymous()||b.push({type:"action",action:function(){var q=Hq(a.canonicalIssueId,{template_issue:a.issueId,template_comment:a.event.commentNumber,do_attribution:!0});a.domSafe.openInNewTab(q);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:wr(a)}),a.isDeleted()||a.activeSession.isAnonymous()||b.push({type:"action",action:function(){TQc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Copy comment to",disabled:wr(a)}),rFc(a.issuePermissionService,a.event)&&b.push({type:"action",action:function(){YQc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),qFc(a.issuePermissionService,a.event)&&b.push({type:"action",action:function(){VQc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Restore comment"}),x(k,Ge(a.issuePermissionService.hasAclToView$),5);case 5:(f=k.yieldResult)&&b.push(Object.assign({},ZRc,{action:function(){ZQc(a.issueCommentDialogsService,String(a.issueId),a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),a.isRestricted()&&a.issuePermissionService.canChangeCommentRetention()&&!a.isDeleted()&&(h=a.commentRetentionOverride==="COMPONENT_DEFAULT",b.push({type:"action",action:function(){var q=h?"INDEFINITE":"COMPONENT_DEFAULT";
$Qc(a.issueCommentDialogsService,"comment",q).then(function(u){a.commentActionsMenu.actionsMenuIconButton.focus();u&&a.updateCommentRetention(q)})},label:h?"Match issue retention":"Revert to component retention"})),M2a({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&b.push(Object.assign({},XRc,{action:function(){a.event.commentNumber==null&&Nj("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var q,u=N2a({bugId:a.event.issueId,comment:(q=
a.event.commentNumber)!=null?q:0});a.domSafe.openInNewTab(u)}})),a.commentActionMenuItems$.next(b),ze(k)}})};var F8a=function(a){return mm(a.event)&&a.event.isCommentEvent};XT.prototype.getSummaryType=function(){return sm(this.event)?"GERRIT":"CRITIQUE"};XT.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
XT.prototype.mayReadPii=function(){var a=kE(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Nj("error: ",b);return!1});return se(a)};
var v8a=function(a){var b,c,d,e,f;return w(function(h){if(h.nextAddress==1)return x(h,Ge(a.hasAclToUpvoteReact$),2);if(h.nextAddress!=3){b=h.yieldResult;if(!b)return h.return();a.commentReactionIsSaving=!0;c=y8a(a,"UPVOTE");return x(h,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=h.yieldResult;a.commentReactionIsSaving=!1;if(!e)return h.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var q;k.events=$xa(k.events,(q=a.event.commentNumber)!=null?q:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");ze(h)})},y8a=function(a,b){var c,d,e;return(e=(c=a.event.commentReactions)==null?void 0:(d=c.get(b))==null?void 0:d.hasReacted)!=null?e:!1},w8a=function(a,b){var c;a=(c=a.event.commentReactions)==null?void 0:c.get(b);if(!a)return"Comment reaction button";b=b==="UPVOTE"?
"Thumbs up":"";a.count===1?b+=", "+a.count+" reaction":a.count>1&&(b+=", "+a.count+" reactions");a.hasReacted&&(b+=", reacted");return b};ea.Object.defineProperties(XT.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});XT.\u0275fac=function(){var a;return function(b){return(a||(a=fe(XT)))(b||XT)}}();
XT.\u0275cmp=B({type:XT,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(Wg(PUc,5),Wg(QUc,5));if(a&2){var c;$g(c=ah())&&(b.commentActionsMenu=c.first);$g(c=ah())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},standalone:!1,features:[kg,Uu],decls:2,vars:3,consts:[["emailDisplay",""],["card",""],["commentActionsMenu",""],["commentReactionButton",""],["commentReactionCard","onedevHovercard"],[1,
"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user"],[3,"user","email","teamId"],[1,"bv2-event-user-name",3,"model"],[1,"bv2-event-user-id"],["type","button","matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button"],[1,"bv2-event-info"],["content-type","comment",3,"label","retention","retentionState"],["mode","datetime",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"float-clear"],[1,
"bv2-event-major-status"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],[1,"bv2-event-note-container","critical-feature"],[1,"flex-kids-x","space-between"],[1,"muted","italic"],[3,"disabled"],[1,"flex-kids-y","flex-1-hemmed"],[3,"issueId","issueAccessLevel","note","formattingMode","canEditComment"],["type","button","mat-button","",1,"summarized-note-button"],[1,"flex-kids-y","justify-space-between"],[1,"comment-timestamp"],["mode","time",1,"muted","type-s",3,"timestamp"],[1,"align-self-flex-end"],
[1,"bv2-event-note-edit-timestamp"],[1,"margin-s-y","border-top","bv2-issue-event-attachments"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"keep-focus-ring","vertical-centered","comment-number",3,"click","routerLinkObj"],["type","button","matTooltip","Edit Comment","aria-label","Edit Comment",1,"bv2-edit-comment-button",3,"click"],[3,"texts"],[3,"onConfirm","disabled"],[3,"issueId","issueAccessLevel","note","summaryType","formattingMode"],["type","button","mat-button",
"",1,"summarized-note-button",3,"click"],["svgIcon","arrow-down",1,"icon-m"],["svgIcon","arrow-up",1,"icon-m"],["type","button","mat-stroked-button","","disabledInteractive","",1,"comment-reaction-button",3,"click","ariaLabel","ngClass","aria-disabled","disabled","onedevHovercardTrigger","onedevHovercardConfig","onedevHovercardActive"],["svgIcon","thumb_up_filled_24px",1,"icon-s","has-reacted-icon"],["svgIcon","thumb_up_24px",1,"icon-s"],[3,"reactionState","issueId","commentNumber"],[3,"event"],[3,
"click"],[1,"margin-s-y","bv2-issue-event-attachment",3,"id"],[3,"issueId","attachment","attachmentUploader"]],template:function(a,b){a&1&&(E(0,G8a,41,28),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issue$))?0:-1,c)}},dependencies:[KS,tT,RO,Mv,Pv,aB,WB,ZL,fJ,lJ,VT,tL,rT,PT,AL,zL,DL,YA,cB,WT,PA,Tx,ST,IUc,TT,Qv],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0;margin-bottom:12px}.bv2-event-user[_ngcontent-%COMP%]   b-user-membership-chip[_ngcontent-%COMP%]{margin-left:-8px}.bv2-event-user   .d-cozy[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:10px}.bv2-event-user   .d-compact[_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .bv2-event-user[_ngcontent-%COMP%]{margin-bottom:8px}.summarized-note-button[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-top:8px;margin-left:-22px}.summarized-note-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:8px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px;margin-right:6px}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:4px;margin-left:0}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):focus:enabled:not(.comment-reaction-button[aria-disabled=true]), .gmat-mdc-button.comment-reaction-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix):hover:enabled:not(.comment-reaction-button[aria-disabled=true]){box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]{cursor:default;color:#bdc1c6;color:var(--text-disabled);--mdc-outlined-button-focus-label-text-color:var(--text-disabled);--mdc-outlined-button-hover-label-text-color:var(--text-disabled);--mat-outlined-button-hover-state-layer-opacity:0;--mat-outlined-button-focus-state-layer-opacity:0;--mat-outlined-button-pressed-state-layer-opacity:0}[_nghost-%COMP%]   .gmat-mdc-button.mat-mdc-outlined-button.comment-reaction-button[aria-disabled=true][_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:rgba(26,115,232,.4);color:var(--hover-btn)}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){border:0;margin-right:2px}.gmat-mdc-button.no-upvote-reactions.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix)   mat-icon[_ngcontent-%COMP%]{margin-right:0;--mat-outlined-button-icon-offset:0}.comment-timestamp[_ngcontent-%COMP%]{margin-top:14px;-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var YT=function(){};YT.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return Ne(Oe(function(){return Ce(document.getElementById(a))}),ZBa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(y(function(){return document.getElementById(a)}))).pipe(Ve(Tk),Uf())};YT.\u0275fac=function(a){return new (a||YT)};YT.\u0275prov=Sc({token:YT,factory:YT.\u0275fac,providedIn:"root"});var ZT=function(){this.idWatch=n(YT)},SUc=function(a,b){var c=b.elementId;var d=b.parentElement;var e=b.scrollableContainerId;var f=b.scrollPadding===void 0?0:b.scrollPadding;return a.idWatch.watch(c,d).pipe(Uf(),y(function(h){h.scrollIntoView();if(h=document.getElementById(e))h.scrollTop-=f}))};ZT.\u0275fac=function(a){return new (a||ZT)};ZT.\u0275prov=Sc({token:ZT,factory:ZT.\u0275fac,providedIn:"root"});var TUc={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},UUc=RegExp("(comment|attachment)([0-9]+)"),$T=function(){Z.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=n(GE);this.preferences=n(OG);this.eventsForIssue=n(CE);this.dynamicScrollIntoView=n(ZT);this.bLocation=n(cI);this.elementRef=n(ff);this.routerEvents=n(BF);this.analytics=n(CF);this.teamFridge=n(DG);this.issueFullFridge=n(EF);this.activeSession=n(Es);this.issueId$=new ag(1);this.internalIssueId=
"";this.eventDisplayModes=TUc;this.internalEvents=[];this.showRecentEventsFirst=null;this.currentFilterLevel="FULL_HISTORY";this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.events$=new ag(1);this.commentsToFormat$=new ag(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(fg(function(b){var c=new Set;return b.commentFilter!==
"TEAM_AND_ASSIGNEE"?Ce(c):a.issue$.pipe(fg(function(d){var e;if((d==null?void 0:(e=d.snapshot[0].assigneeUser)==null?void 0:e.emailAddress)!==void 0){var f;c.add(d==null?void 0:(f=d.snapshot[0].assigneeUser)==null?void 0:f.emailAddress)}var h;if((d==null?void 0:(h=d.snapshot[0].verifierUser)==null?void 0:h.emailAddress)!==void 0){var k;c.add(d==null?void 0:(k=d.snapshot[0].verifierUser)==null?void 0:k.emailAddress)}var q;if((d==null?void 0:(q=d.aggregatedData)==null?void 0:q.teamId)===void 0)return Ce(c);
var u;return VUc(a,String(d==null?void 0:(u=d.aggregatedData)==null?void 0:u.teamId)).pipe(fg(function(A){A=l(A);for(var G=A.next();!G.done;G=A.next())c.add(G.value);return Ce(c)}))}))}));this.isLoading$=Je([this.formattedCommentsForIssueFridge.thinking$,this.eventsForIssue.thinking$]).pipe(Wf(0),y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=bgc(function(){var b=[].concat(p(document.querySelectorAll(".bv2-event-note, .bv2-event-major-status"))).map(function(c){return c.innerText}).join("").length;
a.analytics.trackEvent("editIssue","updateCommentThread","visibleCharCount",b)},200);this.scrollToCommentOrAttachment=bgc(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=l((c=b.match(UUc))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=dya(a.internalEvents);if(d===-1)return;f=String(d);d="comment"}if(d&&f){c=a.internalEvents.findIndex(function(k){return k.commentNumber===Number(f)});e=c>-1;var h=a.internalEvents.flatMap(function(k){return k.attachments}).some(function(k){return k.attachmentId===
Number(f)});if(e||h)e&&a.eventDisplayMode.get(c)==="folded"&&(a.eventDisplayMode.set(c,"full"),WUc(a,c)),h&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(q){return q.attachmentId===Number(f)})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),WUc(a,c))),SUc(a.dynamicScrollIntoView,{elementId:d+f,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(hg(function(){a.lastHashScrolled=
b}),gg(a.destroyed$)).subscribe()}else SUc(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(hg(function(){a.lastHashScrolled=b}),gg(a.destroyed$)).subscribe()}},200)};Y($T,Z);$T.\u0275dir=Z.\u0275dir;
$T.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(gg(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(Ve(Tk),Xf(),gg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,XUc(a))});Je([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(gg(this.destroyed$)).subscribe(function(b){b=l(b);var c=b.next().value;var d=b.next().value;var e=
b.next().value;b=[];if(d.commentFilter)for(a.currentFilterLevel=d.commentFilter,YUc(a,c,d.commentFilter,e),ZUc(a),c=l(a.commentNumbersDisplayed.values()),d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=l(c),d=c.next();!d.done;d=c.next())(d=d.value)&&d.commentNumber&&b.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(b)});this.commentsToFormat$.pipe(Ve(Tk),fg(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),gg(this.destroyed$)).subscribe(function(b){$Uc(a,
b)});this.routerEvents.navigationEnd$.pipe(gg(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var $Uc=function(a,b){for(var c={i$jscomp$1150:0};c.i$jscomp$1150<a.internalEvents.length;c={i$jscomp$1150:c.i$jscomp$1150},c.i$jscomp$1150++)if(M8a(a.eventDisplayMode.get(c.i$jscomp$1150))&&mm(a.internalEvents[c.i$jscomp$1150])){var d=b.find(function(e){return function(f){return f.id.commentId===a.internalEvents[e.i$jscomp$1150].commentNumber}}(c));d&&(a.internalEvents[c.i$jscomp$1150]=Object.assign({},a.internalEvents[c.i$jscomp$1150],{formattedComment:d.formattedComment.formattedComment,formattingMode:d.formattedComment.formattingMode}))}XUc(a)},
YUc=function(a,b,c,d){a.eventDisplayMode.clear();a.commentNumbersDisplayed.clear();a.foldedCommentsCounts.clear();switch(c){case "FULL_HISTORY":for(c=0;c<b.length;c++){var e=aVc(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");mm(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}break;case "ALL_COMMENTS":for(c=0;c<b.length;c++)e=bVc(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),mm(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":cVc(a,b,function(f){var h;return(h=pua(f.userPerformingAction)&&f.isMajorEvent)!=null?h:!0});break;case "TEAM_AND_ASSIGNEE":cVc(a,b,function(f){var h;return(h=d.has(f.userPerformingAction)&&f.isMajorEvent)!=null?h:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),mm(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},ZUc=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];mm(c)&&(rm(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&sm(c))&&Yr(a.activeSession,"enableCLsInHumanFilterView")&&(a.eventDisplayMode.set(b,"summarized"),WUc(a,b))}},cVc=function(a,b,c){for(var d=0,e=0,f=0,h=0;h<b.length;h++){var k=c(b[h]);a.eventDisplayMode.set(h,k?"full":"folded");if(k){if(d>0||e>0)a.foldedCommentsCounts.has(f)||a.foldedCommentsCounts.set(f,{commentFoldedCount:d,eventFoldedCount:e});
e=d=0;mm(b[h])&&b[h].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[h].commentNumber)!=null?k:0))}else{if(mm(b[h])&&b[h].commentNumber||Yxa(b[h]))d++,f=h;e++}}if(d>0||e>0)b=dya(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:dVc(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},dVc=function(a){return Gba(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=null?c:!1})},aVc=function(a){return mm(a)&&a.isCommentEvent||Yxa(a)||a.preDiffs.length>
0||a.postDiffs.length>0},bVc=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(mm(a)&&a.isCommentEvent||Yxa(a)||a.preDiffs.length>0||a.postDiffs.length>0)},XUc=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=eVc(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=eVc(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();var b;YUc(a,a.internalEvents,(b=a.currentFilterLevel)!=null?b:"FULL_HISTORY",
a.authoritativeEmails);ZUc(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},eVc=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};$T.prototype.trackEventByVersion=function(a,b){return b.version};
var WUc=function(a,b){if(a.foldedCommentsCounts.has(b)){var c,d,e=(d=(c=a.foldedCommentsCounts.get(b))==null?void 0:c.commentFoldedCount)!=null?d:0,f,h;c=(h=(f=a.foldedCommentsCounts.get(b))==null?void 0:f.eventFoldedCount)!=null?h:0;e>1&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(p(a.foldedCommentsCounts.entries())).sort(function(k,q){return k[0]-q[0]})),e=l(e.entries()),f=e.next();!f.done;f=e.next())if(h=
l(f.value),f=h.next().value,h=h.next().value,f>b){if(h.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:h.commentFoldedCount-1,eventFoldedCount:h.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(mm(a.internalEvents[c])||Yxa(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:h.commentFoldedCount-e-1,eventFoldedCount:h.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
M8a=function(a){return a==="summarized"||a==="full"},VUc=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(y(function(d){if(d!==void 0){d=l(d.members.map(function(f){return f.user.emailAddress}).filter(Tk));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
ea.Object.defineProperties($T.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a&&(this.internalIssueId=a,this.issueId$.next(a))}},events:{configurable:!0,enumerable:!0,set:function(a){if(a&&a.length>0){var b=a;a=[].concat(p(b));b=Object.assign({},b[0],{attachments:[],commentNumber:null,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!kk(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
$T.\u0275fac=function(){var a;return function(b){return(a||(a=fe($T)))(b||$T)}}();
$T.\u0275cmp=B({type:$T,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},standalone:!1,features:[kg],decls:7,vars:6,consts:[[1,"padded","margined"],[1,"bv2-edit-issue-history-stream"],[1,"fold-indication"],[1,"bv2-event"],["type","button","mat-stroked-button","","color","primary",3,"click"],[1,"horizontal-divider"],[3,"issueId","issueAccessLevel","event","isSummarized"]],template:function(a,b){a&1&&(E(0,
H8a,2,0,"aside",0),S(1,"async"),I(2,"div",1),Dg(3,N8a,2,2,null,null,b.trackEventByVersion,!0),J(),E(5,O8a,2,0,"aside",0),S(6,"async"));a&2&&(F(b.showRecentEventsFirst&&T(1,2,b.isLoading$)?0:-1),z(3),Eg(b.internalEvents),z(2),F(!b.showRecentEventsFirst&&T(6,4,b.isLoading$)?5:-1))},dependencies:[XT,PA,Tx,ON,Qv],styles:[".sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px;vertical-align:middle}[_nghost-%COMP%]     .initial-diffs .bv2-event-details{margin-top:16px}.bv2-event[_ngcontent-%COMP%]:last-of-type{border-bottom:none}.bv2-edit-issue-history-stream[_ngcontent-%COMP%] > .fold-indication[_ngcontent-%COMP%]:first-child{margin-top:16px}.fold-indication[_ngcontent-%COMP%]{margin-top:-12px;position:relative;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fold-indication[_ngcontent-%COMP%]   .horizontal-divider[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-webkit-box-flex:1;-webkit-flex:auto;-moz-box-flex:1;-ms-flex:auto;flex:auto}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:1px solid;border-color:#1a73e8;border-color:var(--primary);background-color:#fff;background-color:var(--background);line-height:16px;height:24px;padding:0 8px}.fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus, .fold-indication[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{border:1px solid;border-color:#1a73e8;border-color:var(--primary)}"]});var bU=function(){var a=this;this.issueFullFridge=n(EF);this.issueApi=n(AE);this.prompts=n(aU);this.contextSensitiveRegistry=n(iL);this.analytics=n(CF);this.activeSession=n(Es);this.enableNoButton=Yr(this.activeSession,"enableIssueSummarizationNoButton")&&this.activeSession.isInternalSession();this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(Ve(Tk),Xf());this.issue$=this.issueId$.pipe(fg(function(c){return a.issueFullFridge.watch(c)}),Ve(Tk),Xf(function(c,d){return c.issueId===d.issueId&&
c.version===d.version}));this.summarizable$=this.issue$.pipe(fg(function(c){return fVc(a.prompts,c.issueId).pipe(y(function(d){return{issue:c,isSummarizable:d}}))}),cg({refCount:!0,bufferSize:1}));this.pregeneratedSummary$=this.summarizable$.pipe(Ve(function(c){return c.isSummarizable}),fg(function(c){return a.getIssueSummary(c.issue,"COMMENTS_LONG")}),cg({refCount:!0,bufferSize:1}));this.generateSummaryRequested$=new ag(1);this.generatedSummary$=this.generateSummaryRequested$.pipe(fg(function(c){return gVc(a,
c)}),cg({refCount:!0,bufferSize:1}));this.summary$=Ue(this.pregeneratedSummary$,this.generatedSummary$).pipe(cg({refCount:!0,bufferSize:1}));this.stage$=Je([this.issueId$.pipe(eg(void 0)),this.issue$.pipe(eg(void 0)),this.pregeneratedSummary$.pipe(eg(void 0)),this.generateSummaryRequested$.pipe(eg(void 0)),this.generatedSummary$.pipe(eg(void 0))]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var h=d.next().value;d=d.next().value;return c&&e&&f&&f.issueId===
c?f.summary?"SUMMARY_VISIBLE":h&&h.issueId===c&&h.version===e.version?!d||d.issueId!==c||d.issueVersion<e.version?"GENERATING":"SUMMARY_VISIBLE":"BUTTON":"HIDDEN"}),cg({refCount:!0,bufferSize:1}));var b=n(df);this.stage$.pipe(Gh(b)).subscribe()},Q8a=function(a){a.issue$.pipe(Uf()).subscribe(function(b){a.generateSummaryRequested$.next(b)})};
bU.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(y(function(c){return a.version>c.issueVersion?{issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""}:c}),Pf(function(c){c.status!==404&&Nj("Error to get an issue summary: error: ",c);return Ce({issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""})}))};
var gVc=function(a,b){return a.issueApi.generateIssueSummary(b.issueId,"COMMENTS_LONG").pipe(Pf(function(c){Nj("Error to generate an issue summary: error: ",c);return Ce({issueId:b.issueId,summaryType:"COMMENTS_LONG",issueVersion:b.version,summary:""})}))};bU.prototype.trackThumbsUp=function(a,b){this.trackEvent("accept",b);cU(this,a,"THUMBS_UP")};bU.prototype.trackThumbsDown=function(a,b){this.trackEvent("reject",b);cU(this,a,"THUMBS_DOWN")};
bU.prototype.trackEvent=function(a,b){this.analytics.trackEvent("llmSummarize",a,b)};var cU=function(a,b,c){if(b.modelVersion&&b.issueVersion){a=a.issueApi;var d=b.issueId,e=b.summaryType,f=b.modelVersion,h=b.issueVersion;b=new Woc;var k=b.setFeedback;c=(new zoc).setIssueId(d).setSummaryType(Ykc[e]).setModelVersion(f).setIssueVersion(h).setFeedbackType(Wkc[c]);c=k.call(b,c);c=(new zE).setIt(c);a.executor.post({url:"action/issues/"+d+"/submitSummaryFeedback",body:c,responseConstructor:null}).subscribe()}};
bU.\u0275fac=function(a){return new (a||bU)};bU.\u0275prov=Sc({token:bU,factory:bU.\u0275fac,providedIn:"root"});
var aU=function(){this.eventsForIssueFridge=n(CE)},fVc=function(a,b){return hVc(a,b).pipe(y(function(c){return!!(c&&c.commentEvents.length>=3)}),Xf())},hVc=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(y(function(c){if(!c)return{commentEvents:[]};c=c.events;return{commentEvents:[].concat(p(c.slice(0,1).filter(function(d){var e;return(e=d.unlinkifiedComment)==null?void 0:e.trim()})),p(c.slice(1).filter(P8a).filter(function(d){var e;return(e=d.unlinkifiedComment)==
null?void 0:e.trim()})))}}))};aU.\u0275fac=function(a){return new (a||aU)};aU.\u0275prov=Sc({token:aU,factory:aU.\u0275fac,providedIn:"root"});var dU=function(){Z.apply(this,arguments);this.llmIssueSummaryService=n(bU);this.BUTTON="BUTTON";this.enableNoButton=this.llmIssueSummaryService.enableNoButton;this.stage$=this.llmIssueSummaryService.stage$};Y(dU,Z);dU.\u0275dir=Z.\u0275dir;dU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(dU)))(b||dU)}}();
dU.\u0275cmp=B({type:dU,selectors:[["summarize-button"]],standalone:!1,features:[kg],decls:1,vars:1,consts:[[1,"margin-right"],["svgIcon","chat_spark_24px","color","primary"],["type","button","mat-button","","color","secondary",1,"gmat-button","small","generate-summary",3,"click"]],template:function(a,b){a&1&&E(0,T8a,2,3);a&2&&F(b.enableNoButton?0:-1)},dependencies:[aB,PA,Tx,Qv],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}\n/*# sourceMappingURL=summarize_button.css.map */"]});var eU=function(){Z.apply(this,arguments);this.preferences=n(OG);this.activeSession=n(Es);this.clearcut=n(vF);this.analytics=n(CF);this.selectedFilter=null;var a=this.activeSession.isInternalSession();W8a.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=iVc;this.showRecentEventsFirst=!1};Y(eU,Z);eU.\u0275dir=Z.\u0275dir;
eU.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(Ve(Tk),gg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=Z8a(b.commentFilter):(a.selectedFilter=PG(a.preferences).showFullHistory?V8a:W8a,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(gg(a.destroyed$)).subscribe())})};
eU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(eU)))(b||eU)}}();
eU.\u0275cmp=B({type:eU,selectors:[["b-event-stream-header"]],standalone:!1,features:[kg],decls:14,vars:4,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[1,"flex-kids-x"],["appearance","outline","subscriptSizing","dynamic",1,"filter-select"],[3,"valueChange","selectionChange","value"],[1,"filter-option",3,"value"],["type","button","mat-stroked-button","","color","primary",1,"sort-order-button",3,"click"],["matButtonIcon","",1,"sort-order-arrow","icon-xs",3,"svgIcon"],[1,"filter-option-name"],
[1,"filter-option-description"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"h4",1),Q(2,"Comments"),J(),I(3,"div",2),K(4,"summarize-button"),I(5,"mat-form-field",3)(6,"mat-select",4),gh("valueChange",function(c){fh(b.selectedFilter,c)||(b.selectedFilter=c);return c}),M("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(gg(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),I(7,"mat-select-trigger"),
Q(8),J(),Dg(9,U8a,5,3,"mat-option",5,Cg),J()(),I(11,"button",6),M("click",function(){uk("hasClickedCommentSortBtn")(!0);var c=!b.showRecentEventsFirst;Wqc(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(gg(b.destroyed$)).subscribe()}),K(12,"mat-icon",7),Q(13),J()()());a&2&&(z(6),eh("value",b.selectedFilter),z(2),ch(b.selectedFilter==null?null:b.selectedFilter.displayName),z(),Eg(b.filters),z(3),D("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),
z(),R(" ",b.showRecentEventsFirst?"Newest first":"Oldest first"," "))},dependencies:[aB,PA,Tx,YM,Xy,dU,rP,zP,AP,Lx],styles:[".gmat-mdc-button.mat-mdc-outlined-button.sort-order-button[_ngcontent-%COMP%]{height:24px;line-height:24px;padding-left:6px;padding-right:10px}.sort-order-arrow[_ngcontent-%COMP%]{--mat-outlined-button-icon-spacing:4px;--mat-outlined-button-icon-offset:0;height:16px;width:16px;line-height:16px}[_nghost-%COMP%]     .filter-select{max-width:175px;margin-right:8px}[_nghost-%COMP%]     .filter-select .mat-mdc-form-field{min-width:70px}[_nghost-%COMP%]     .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:auto;border-top-width:8px;padding:0}[_nghost-%COMP%]     mat-select-trigger{color:#1967d2;color:var(--primary-c700);font-size:.875rem;letter-spacing:.0107142857em;font-family:Google Sans,Roboto,Arial,sans-serif;font-weight:500}[_nghost-%COMP%]     .mat-mdc-select-arrow{color:#1967d2;color:var(--primary-c700)}  .mat-mdc-select-panel .mat-mdc-option.filter-option{height:48px}.filter-option[_ngcontent-%COMP%]   .filter-option-name[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-mdc-select-value .filter-option-name{line-height:20px;font-size:.94rem}.filter-option[_ngcontent-%COMP%]   .filter-option-description[_ngcontent-%COMP%], [_nghost-%COMP%]     .mat-mdc-select-value .filter-option-description{line-height:20px;color:#5f6368;color:var(--text-muted);font-size:.8125rem}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active{background-color:#e8f0fe;background-color:var(--selected-bg-muted)}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .filter-option-name{color:#174ea6;color:var(--primary-c900)}  .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .filter-option-description,   .mat-mdc-select-panel .mat-mdc-option.filter-option.mat-mdc-option-active .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked:after{color:#185abc;color:var(--primary-high-contrast)}"]});
var V8a={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},W8a={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},X8a={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},Y8a={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},iVc=[V8a,W8a,X8a,Y8a];var fU=function(){this.admins=[]};fU.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Bk(this.hotlist.adminUsers)};fU.\u0275fac=function(a){return new (a||fU)};
fU.\u0275cmp=B({type:fU,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},standalone:!1,decls:14,vars:6,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hotlist-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),J()(),I(6,"ul")(7,"li"),Q(8),J(),I(9,"li"),Q(10),J()(),I(11,"div")(12,"p"),Q(13),J()()()()());a&2&&(z(4),D("href",b.url,uf),z(),ch(b.hotlist.name),z(3),R("ID: ",b.hotlist.hotlistId),z(2),
dh("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),z(3),ch(b.hotlist.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-card[_ngcontent-%COMP%]{max-width:450px}.hotlist-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.hotlist-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var gU=function(){this.ROUTES=Fq;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new LA};gU.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};gU.\u0275fac=function(a){return new (a||gU)};
gU.\u0275cmp=B({type:gU,selectors:[["b-hotlist-chip"]],inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","","type","button",3,"invisible"],[3,"hotlist"],["mat-icon-button","","type","button",3,"click"],["svgIcon","close"]],template:function(a,
b){a&1&&E(0,a9a,8,11);a&2&&F(b.hotlist?0:-1)},dependencies:[aB,fJ,lJ,fU,PA,Ux],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%]     mat-icon svg{width:50%}.chip.muted[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);color:#5f6368;color:var(--text-muted)}.chip[_ngcontent-%COMP%]{background-color:#e4f7fb;background-color:var(--hotlist-chip-bg);border-radius:10px;display:inline-flex;align-items:center;height:20px;font-size:.75rem;font-weight:normal;padding:0 10px}.chip[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px;--mdc-icon-button-icon-size:24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});var hU=function(){var a=this;this.hotlists=n(JD);this.userAccess=n(jE);this.id$=new ag(1);this.removeHotlist=new LA;this.removable=!0;this.removable$=this.id$.pipe(fg(function(b){return a.removable!=="check-acl"?Ce(a.removable):kE(a.userAccess,"appender","hotlists/"+b)}));this.hotlist$=this.id$.pipe(fg(function(b){return a.hotlists.watch(b)}));this.isDisabled$=Je([this.id$,this.id$.pipe(fg(this.hotlists.isSaving$))]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};ea.Object.defineProperties(hU.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});hU.\u0275fac=function(a){return new (a||hU)};
hU.\u0275cmp=B({type:hU,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:4,vars:9,consts:[[3,"removeHotlist","hotlist","disabled","removable"]],template:function(a,b){a&1&&(I(0,"b-hotlist-chip",0),S(1,"async"),S(2,"async"),S(3,"async"),M("removeHotlist",function(){b.idInternal==null?Nj("Missing id"):b.removeHotlist.emit()}),J());if(a&2){var c;D("hotlist",T(1,3,b.hotlist$))("disabled",T(2,5,b.isDisabled$)===!0)("removable",
(c=T(3,7,b.removable$))!=null?c:!1)}},dependencies:[gU,Qv],encapsulation:2,changeDetection:0});var jVc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],kVc=new yd("MAT_CARD_CONFIG"),lVc=function(){var a;this.appearance=((a=n(kVc,{optional:!0}))==null?void 0:a.appearance)||"raised"};lVc.\u0275fac=function(a){return new (a||lVc)};
lVc.\u0275cmp=B({type:lVc,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mat-mdc-card-outlined",b.appearance==="outlined")("mdc-card--outlined",b.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],
encapsulation:2,changeDetection:0});var iU=function(){};iU.\u0275fac=function(a){return new (a||iU)};iU.\u0275dir=Kf({type:iU,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var mVc=function(){this.align="start"};mVc.\u0275fac=function(a){return new (a||mVc)};
mVc.\u0275dir=Kf({type:mVc,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var jU=function(){};jU.\u0275fac=function(a){return new (a||jU)};
jU.\u0275cmp=B({type:jU,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(a){a&1&&(Ng(jVc),Og(0),I(1,"div",0),Og(2,1),J(),Og(3,2))},encapsulation:2,changeDetection:0});var kU=function(){Z.apply(this,arguments);this.onAccept=new LA;this.onDismiss=new LA};Y(kU,Z);kU.\u0275dir=Z.\u0275dir;kU.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};kU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(kU)))(b||kU)}}();
kU.\u0275cmp=B({type:kU,selectors:[["b-hotlist-recommendation-card"]],inputs:{hotlist:"hotlist"},outputs:{onAccept:"onAccept",onDismiss:"onDismiss"},standalone:!1,features:[kg],decls:16,vars:3,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","hotlist-recommendation-card"],[1,"title"],[1,"name"],["target","_blank",3,"href"],[1,"description"],[1,"actions"],["type","button","mat-button","","color","primary",1,"medium","accept-button",3,"click"],["type","button","mat-button","","color",
"basic",1,"medium","dismiss-button",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"mat-card-header",2),Q(3," Suggested hotlist"),J(),I(4,"mat-card-content")(5,"h3",3)(6,"a",4),Q(7),J()(),I(8,"div",5)(9,"p"),Q(10),J()()(),I(11,"mat-card-actions",6)(12,"button",7),M("click",function(){return b.onAccept.emit(b.hotlist.hotlistId)}),Q(13,"Accept"),J(),I(14,"button",8),M("click",function(){return b.onDismiss.emit()}),Q(15,"Dismiss"),J()()()());a&2&&(z(6),D("href",b.url,uf),z(),ch(b.hotlist.name),
z(3),ch(b.hotlist.description))},dependencies:[PA,Tx,mVc,iU,jU],styles:['.onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.hotlist-recommendation-card[_ngcontent-%COMP%]{display:flex;width:200px;flex-direction:column;align-items:flex-start;border-radius:8px}.hotlist-recommendation-card[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;font-weight:500;font-size:.875rem;line-height:1.25rem;letter-spacing:.8px;text-transform:uppercase}.hotlist-recommendation-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{width:190px}.hotlist-recommendation-card[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{margin:5px 0;font-family:"Google Sans",Roboto,Arial,sans-serif;font-weight:500;font-size:1rem;line-height:1.5rem}.hotlist-recommendation-card[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-size:.75rem;font-weight:400;letter-spacing:.025em;line-height:1rem;max-height:40px;overflow:hidden scroll}.hotlist-recommendation-card[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;align-items:center;margin:10px 0 0;justify-content:space-evenly;width:inherit}']});var lU=function(){this.issueFullFridge=n(EF);this.recommendationsApi=n(LE);this.analytics=n(CF);this.hotlistRecommendationFridge=n(ME);this.ROUTES=Fq;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new LA;this.hovercardConfig={showDelay:250,hideDelay:250,position:[yBc],triggerKey:[]}};lU.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
lU.prototype.addHotlist=function(a){var b=this;return w(function(c){if(c.nextAddress==1)return b.issueId==null?c.return():b.updateHotlistsInstantly?x(c,b.issueFullFridge.updateHotlists(b.issueId,[a.toString()],[]),2):c.jumpTo(2);b.onAccept.emit();b.analytics.trackEvent("hotlistRecommendation","accept",b.analyticsLabel);return x(c,b.recommendationsApi.createUserEngagements([{parent:b.recommendationId,userEngagement:{type:"ACCEPTED"}}]),0)})};
var b9a=function(a){return w(function(b){if(b.nextAddress==1){if(a.issueId==null)return b.return();a.analytics.trackEvent("hotlistRecommendation","dismiss",a.analyticsLabel);return x(b,a.recommendationsApi.createUserEngagements([{parent:a.recommendationId,userEngagement:{type:"REJECTED"}}]),2)}return x(b,a.hotlistRecommendationFridge.poke(a.issueId),0)})};lU.\u0275fac=function(a){return new (a||lU)};
lU.\u0275cmp=B({type:lU,selectors:[["b-hotlist-recommendation-chip"]],inputs:{hotlist:"hotlist",recommendationId:"recommendationId",issueId:"issueId",analyticsLabel:"analyticsLabel",showHovercard:"showHovercard",updateHotlistsInstantly:"updateHotlistsInstantly"},outputs:{onAccept:"onAccept"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["type","button","mat-icon-button","",1,"add-button","vertical-centered",
3,"click"],["svgIcon","add"],["svgIcon","issue-status-new",1,"vertical-centered"],[1,"name"],[1,"keep-focus-ring",3,"href"],[3,"onAccept","onDismiss","hotlist"]],template:function(a,b){a&1&&E(0,c9a,11,10);a&2&&F(b.hotlist?0:-1)},dependencies:[aB,PA,Ux,fJ,lJ,kU],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%]     mat-icon svg{width:50%}.chip[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);display:inline-flex;align-items:center;height:18px;font-size:.75rem;font-weight:normal;border-style:dashed;border-width:.5px;border-color:var(--border-color);border-radius:100px}.chip[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px;--mdc-icon-button-icon-size:24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});var nVc=[[["","before",""]]],j9a=function(a){return{"icon-only":a}},g9a=function(a,b){return b.name},mU=function(){var a=this;this.activeSession=n(Es);this.issueFullFridge=n(EF);this.issueInteractionsTracking=n(hL);this.errorHandler=n(DK);this.eventsForIssueFridge=n(CE);this.liveAnnouncer=n(zw);this.hotlistPickerService=n(AS);this.hotlistRecommendationFridge=n(ME);this.analytics=n(CF);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=xp;this.issueId$=new ag(1);this.issue$=
this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.hotlistIds$=this.issue$.pipe(hg(function(b){a.isInternalSession&&a.hotlistRecommendationFridge.poke(b==null?void 0:b.issueId)}),y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.recommendations$=this.issueId$.pipe(fg(function(b){return a.hotlistRecommendationFridge.watch(b)}),y(function(b){return((b==null?void 0:b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Tk).slice(0,
2)}),hg(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(y(function(b){return b.length}),y(function(b){return b<=5?"Add Hotlist":""}))};mU.prototype.ngOnInit=function(){};mU.prototype.openHotlistModal=function(){var a=this;return w(function(b){return x(b,rRc(a.hotlistPickerService,a.issue$),0)})};
var d9a=function(a,b){var c,d;return w(function(e){switch(e.nextAddress){case 1:return x(e,Ge(a.issueId$),2);case 2:return c=e.yieldResult,Oq(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1}),te(e,3,4),x(e,a.issueFullFridge.removeHotlists(c,[String(b)]),6);case 6:return x(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:ue(e);a.eventsForIssueFridge.poke(c);we(e,0);break;case 3:d=xe(e),FK(a.errorHandler,d),e.jumpTo(4)}})};
ea.Object.defineProperties(mU.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});mU.\u0275fac=function(a){return new (a||mU)};
mU.\u0275cmp=B({type:mU,selectors:[["b-issue-hotlists"]],inputs:{issueId:"issueId"},standalone:!1,ngContentSelectors:["[before]"],decls:2,vars:3,consts:[[1,"hotlist-container","chip-container"],["type","button","mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",1,"small","add-hotlists-btn",3,"onHotkey","click","hotkey","ngClass"],["svgIcon","add",1,"icon-xs"],["removable","check-acl",3,"id"],["removable","check-acl",3,"removeHotlist","id"],["analyticsLabel","IDP",3,"hotlist",
"recommendationId","issueId"]],template:function(a,b){a&1&&(Ng(nVc),E(0,k9a,11,12,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[Mv,aB,hU,lU,pH,PA,Tx,Qv],styles:[".add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn.icon-only[_ngcontent-%COMP%]{--mat-outlined-button-icon-spacing:0px;--mat-outlined-button-icon-offset:0px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);--mat-outlined-button-icon-spacing:2px;width:16px;height:16px;line-height:16px}.hotlist-container[_ngcontent-%COMP%]{max-height:72px;overflow-y:auto;padding-bottom:5px;align-items:center;align-self:start;display:flex;flex-wrap:wrap;gap:8px;line-height:22px}[_nghost-%COMP%]     .chip-container b-hotlist-chip, [_nghost-%COMP%]     .chip-container b-hotlist-recommendation-chip, [_nghost-%COMP%]     .chip-container .b-chip{margin-right:0}"]});var oVc=["issueTitleEl"],pVc=["issueTitleInputEl"],nU=function(){this.issuePermissionService=n(lL);this.issueFullFridge=n(EF);this.bannedWordsChecker=n(jP);this.disabled=!1;this.titleChanged=new LA;this.isEditMode=!1;this.editModeWidth=0;this.isSaving=!1};nU.prototype.ngDoCheck=function(){qVc(this)};var o9a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
nU.prototype.saveTitle=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return a&&b.isModified(a)?x(d,b.bannedWordsChecker.check(a,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",b.componentId),3):d.jumpTo(2);if(d.nextAddress!=2){c=d.yieldResult;if(!c)return b.issueTitleInputEl.nativeElement.focus(),d.return();rVc(b,a.trim());b.bannedWordsChecker.reset()}b.isEditMode=!1;qVc(b);ze(d)})};
var rVc=function(a,b){w(function(c){a.isSaving=!0;return x(c,Ge(jrc(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};nU.prototype.isModified=function(a){return a!==this.titlePlain};
var l9a=function(a,b){if(b)b.key==="Enter"?a.saveTitle(b.target.value):b.key==="Escape"||b.key==="Esc"?o9a(a):a.bannedWordsChecker.reset();else{var c;b=(c=a.issueTitleInputEl)==null?void 0:c.nativeElement.value;a.saveTitle(b)}},qVc=function(a){var b=a.editModeWidth,c,d;a.editModeWidth=(d=Number((c=a.issueTitleEl)==null?void 0:c.nativeElement.offsetWidth)+50)!=null?d:b};nU.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||l9a(this)};
ea.Object.defineProperties(nU.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=wJa(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});nU.\u0275fac=function(a){return new (a||nU)};
nU.\u0275cmp=B({type:nU,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(Wg(oVc,5),Wg(pVc,5));if(a&2){var c;$g(c=ah())&&(b.issueTitleEl=c.first);$g(c=ah())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},standalone:!1,features:[hh([jP])],decls:6,vars:5,consts:[["issueTitleInputEl",""],["issueTitleEl",""],[1,"issue-title-container"],["subscriptSizing","dynamic",
3,"width","banned-words-warning"],[1,"heading-m"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"disabled"],[1,"banned-words-warning","break-word"],["subscriptSizing","dynamic"],["matInput","","aria-label","Enter a new title",1,"heading-m",3,"keyup","blur","value"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"click","disabled"],
["svgIcon","edit-outline",1,"icon-xxs"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"]],template:function(a,b){a&1&&(I(0,"div",2),E(1,m9a,4,7,"mat-form-field",3)(2,n9a,3,2,"h3",4),E(3,p9a,2,1,"button",5),J(),E(4,q9a,4,1,"p",6),S(5,"async"));a&2&&(z(),F(b.isEditMode?1:2),z(2),F(b.hasAclToEdit?3:-1),z(),F(T(5,3,b.bannedWordsChecker.showWarning$)?4:-1))},dependencies:[aB,PA,Ux,YA,cB,YM,Xy,$M,
ez,Qv],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}[_nghost-%COMP%]     mat-form-field{min-width:200px;max-width:100%}[_nghost-%COMP%]     mat-form-field .mat-mdc-text-field-wrapper{padding-left:0}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix{min-height:initial;padding:0;height:22px}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix .mat-mdc-form-field-input-control{font-size:1.125rem}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled){background-color:rgba(0,0,0,0)}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--text-high-contrast)}.issue-title-container[_ngcontent-%COMP%]{display:inline-flex}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}"]});var sVc={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},tVc={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},uVc={ALL:"ALL",NONE:"NONE"},vVc=new Map([["SEVEN_DAY_VIEW_COUNT","7d Views"],["ALERTS","Alerts"],["ASSIGNEE","Assignee"],["CHANGELIST","CLs"],["COMPONENT_PATH","Component"],["CREATED_TIME","Created"],["DUPLICATE_COUNT","Dupes"],["ENRICHMENT_CATEGORIES","Source"],["ISSUE_ID","ID"],["MODIFIED_TIME","Last Modified"],["PRIORITY","P"],["PROGRESS","Progress"],
["RELATIVE_MODIFIED_TIME","Modified"],["REPORTER","Reporter"],["STATUS","Status"],["TEAM","Team"],["TIMEFRAME","Timeframe"],["TITLE","Title"],["TRIAGER","Triager"],["TYPE","Type"],["VOTE_COUNT","+1s"]]),wVc=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],xVc=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],yVc=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
zVc=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],AVc=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],BVc={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},CVc={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var oU=function(){this.liveAnnouncer=n(zw);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new LA;this.hasChanges=new LA(!1);this.items=[];this.grabbed=!1};oU.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=Qj(this.originalItems)};var DVc=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
oU.prototype.drop=function(a){Aq(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var s9a=function(a,b){return b>0?(Aq(a.items,b,b-1),a.detectChanges(),!0):!1},t9a=function(a,b){return b<a.items.length-1?(Aq(a.items,b,b+1),a.detectChanges(),!0):!1};oU.prototype.trackByFn=function(){return-1};oU.prototype.onFocus=function(a){this.liveAnnouncer.announce(this.items[a].name+" focused at position "+(a+1)+" of "+this.items.length+". Press space to grab the item.")};
oU.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();EVc(this,b);break;case "Tab":this.grabbed&&EVc(this,b);break;case "ArrowUp":FVc(this,a);break;case "ArrowDown":FVc(this,a)}};
var EVc=function(a,b){a.grabbed?(a.grabbed=!1,a.grabbedIndex=void 0,a.liveAnnouncer.announce(a.items[b].name+" dropped at position "+(b+1)+" of "+a.items.length+".")):(a.grabbed=!0,a.grabbedIndex=b,a.liveAnnouncer.announce(a.items[b].name+" grabbed at position "+(b+1)+" of "+a.items.length+". Press up and down arrow to move the item."))},FVc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(s9a(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else t9a(a,a.grabbedIndex)&&(d=c.nextElementSibling,a.grabbedIndex++);d&&(d.focus(),a.liveAnnouncer.announce(a.items[a.grabbedIndex].name+" moved to position "+(a.grabbedIndex+1)+" of "+a.items.length+". Press space to drop the item."))}}};oU.prototype.detectChanges=function(){var a=!Pj(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};oU.\u0275fac=function(a){return new (a||oU)};
oU.\u0275cmp=B({type:oU,selectors:[["b-reorder-items"]],inputs:{originalItems:"originalItems",allowRemoval:"allowRemoval"},outputs:{itemsOutput:"items",hasChanges:"hasChanges"},standalone:!1,decls:3,vars:0,consts:[["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0"],["cdkDrag","","tabindex","0",3,"keydown","focus"],[3,"checked","aria-label"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["type","button","mat-icon-button","","aria-label","Move the item up",
3,"click"],["svgIcon","arrow-up"],["type","button","mat-icon-button","","aria-label","Move the item down",3,"click"],["svgIcon","arrow-down"],[3,"change","checked","aria-label"]],template:function(a,b){a&1&&(I(0,"ol",0),M("cdkDropListDropped",function(c){return b.drop(c)}),Dg(1,u9a,10,8,"li",1,b.trackByFn,!0),J());a&2&&(z(),Eg(b.items))},dependencies:[aB,fN,eN,cN,PA,Ux,CM],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);font-size:.8125rem;padding:10px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:5px;opacity:.2}li[_ngcontent-%COMP%]   .arrows[_ngcontent-%COMP%]{margin-left:auto}li[aria-grabbed=true][_ngcontent-%COMP%]:focus   span[_ngcontent-%COMP%]{font-style:italic}li[_ngcontent-%COMP%]:focus{border-radius:3px;box-shadow:0 0 0 3px rgba(0,0,0,.1)}li[_ngcontent-%COMP%]:focus   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:focus   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:focus   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{opacity:1}li[_ngcontent-%COMP%]:hover   .arrows[_ngcontent-%COMP%]{visibility:visible}li[_ngcontent-%COMP%]:hover   .arrows.invisible[_ngcontent-%COMP%]{visibility:hidden}li[_ngcontent-%COMP%]:last-of-type{border-bottom:none;margin-bottom:3px}li[_ngcontent-%COMP%]:first-of-type{margin-top:3px}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drag-preview[_ngcontent-%COMP%]{opacity:.3;border-bottom:0}.cdk-drag-animating[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.2,1);transition:-webkit-transform .25s cubic-bezier(0,0,.2,1);transition:transform .25s cubic-bezier(0,0,.2,1);transition:transform .25s cubic-bezier(0,0,.2,1),-webkit-transform .25s cubic-bezier(0,0,.2,1)}"],
changeDetection:0});var pU=function(){this.data=n(sK);this.dialogRef=n(mK);this.originalColumns=this.data.columnItems;this.columns=[].concat(p(this.originalColumns));this.hasChanges=!1};pU.prototype.onClose=function(){this.dialogRef.close(this.columns)};pU.\u0275fac=function(a){return new (a||pU)};
pU.\u0275cmp=B({type:pU,selectors:[["b-configure-columns-dialog"]],standalone:!1,decls:12,vars:3,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems","allowRemoval"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,
"click","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Customize columns for triage view ");J()()();I(4,"div",4)(5,"b-reorder-items",5,0);M("items",function(d){t(c);return v(b.columns=d)})("hasChanges",function(d){t(c);return v(b.hasChanges=d)});J()();I(7,"div",6)(8,"button",7);M("click",function(){t(c);return v(b.dialogRef.close())});Q(9," Cancel ");J();I(10,"button",8);M("click",function(){t(c);return v(b.onClose())});Q(11," Save ");J()()}a&2&&(z(5),
D("originalItems",b.originalColumns)("allowRemoval",!0),z(5),D("disabled",!b.hasChanges))},dependencies:[oU,PA,Tx,wK,yK,xK],encapsulation:2,changeDetection:0});var qU=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};ea.Object.defineProperties(qU.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=Aya(1049928)(a);this.startDate=Uxa(b==null?void 0:b.dateValue);a=Aya(1049953)(a);this.endDate=Uxa(a==null?void 0:a.dateValue);this.startDateShortStr=Vxa(this.startDate);this.endDateShortStr=Vxa(this.endDate)}}}});qU.\u0275fac=function(a){return new (a||qU)};
qU.\u0275cmp=B({type:qU,selectors:[["issue-timeframe"]],inputs:{issue:"issue",showIcon:"showIcon"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","calendar_month_24px","title","Start date and/or end date for this project",1,"icon-m","margin-xs-right"],[1,"margin-xs-right","date",3,"title"],[1,"date",3,"title"],[1,"muted"]],template:function(a,b){a&1&&E(0,z9a,5,3,"div",0);a&2&&F(b.startDate||b.endDate?0:-1)},dependencies:[aB,Tv],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var rU=function(){this.makePie=B9a;this.total=this.closed=0;this.useXofYLabel=!1};ea.Object.defineProperties(rU.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});rU.\u0275fac=function(a){return new (a||rU)};
rU.\u0275cmp=B({type:rU,selectors:[["progress-pie"]],inputs:{issue:"issue",closed:"closed",total:"total"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center",3,"title"],[1,"flex-kids-x","align-items-center",3,"click","title"],[1,"pie","margin-s-right"]],template:function(a,b){a&1&&E(0,K9a,7,14,"div",0);a&2&&F(b.total>0?0:-1)},dependencies:[Wv],encapsulation:2,changeDetection:0});var GVc=em().user.email,zr={ASSIGNED_TO_ME_AND_OPEN:{key:"ASSIGNED_TO_ME_AND_OPEN",displayAs:"Assigned to me",check:function(a){var b,c=(b=a.snapshot[0].assigneeUser)==null?void 0:b.emailAddress;return c?c===GVc&&pm(a):!1},queryFragment:"assignee:me status:open",tooltip:"Open issues with me as the assignee"},ASSIGNED_TO_ME:{key:"ASSIGNED_TO_ME",displayAs:"Assigned to me",check:function(a){var b;return(a=(b=a.snapshot[0].assigneeUser)==null?void 0:b.emailAddress)?a===GVc:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return pm(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:hya,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return gya(a,"ASSIGNED")||gya(a,"ACCEPTED")},queryFragment:"status:(assigned | accepted)",tooltip:"Issues that are either in progress or assigned to someone"},NEWLY_FILED:{key:"NEWLY_FILED",
displayAs:"Newly filed",check:function(a){var b=b===void 0?6048E5:b;var c=Date.now(),d,e,f=((e=(d=a.aggregatedData)==null?void 0:d.createdTimeMicros)!=null?e:0)/1E3;return c-f<b&&!(a.version>0)&&pm(a)},queryFragment:"created:7d commentcount<2 status:open",tooltip:"Open issues created in the last seven days that have not been modified"},RECENTLY_ACTIVE:{key:"RECENTLY_ACTIVE",displayAs:"Recently active",check:function(a){var b=b===void 0?6048E5:b;var c=Date.now(),d,e=((d=a.majorModifiedTimeMicros)!=
null?d:0)/1E3;return c-e<b&&a.version>0&&pm(a)},queryFragment:"modified:7d commentcount>1 status:open",tooltip:'Open issues with edits or comments in the last seven days (excluding "creation")'},HIGH_PRIORITY:{key:"HIGH_PRIORITY",displayAs:"High Priority",check:function(a){var b=["P0","P1"];b=b===void 0?[]:b;return b.includes(tya(a))&&pm(a)},queryFragment:"priority:(p0 | p1) status:open",tooltip:"Open issues that are P0 or P1"},TRENDING:{key:"TRENDING",displayAs:"Trending",check:function(a,b,c){return Eya(b,
c)},queryFragment:'(no server query available for "is trending")',tooltip:"Issues with unusually high view activity"},PROGRESS:{key:"PROGRESS",displayAs:"Progress",check:function(a){return a.descendantCount>0},queryFragment:"descendantcount>0",tooltip:"Issues with child subtasks"}};var sU=function(){this.changes=new bg};sU.\u0275fac=function(a){return new (a||sU)};sU.\u0275prov=Sc({token:sU,factory:sU.\u0275fac,providedIn:"root"});var HVc={provide:sU,deps:[[new Wu,new Xu,sU]],useFactory:function(a){return a||new sU}};var IVc=new yd("MAT_SORT_DEFAULT_OPTIONS"),tU=function(a){this._defaultOptions=a;this._initializedStream=new ag(1);this.sortables=new Map;this._stateChanges=new bg;this.start="asc";this._direction="";this.disabled=!1;this.sortChange=new hv;this.initialized=this._initializedStream};g=tU.prototype;g.register=function(a){this.sortables.set(a.id,a)};g.deregister=function(a){this.sortables.delete(a.id)};
g.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=(d=(c=a==null?void 0:a.disableClear)!=null?c:this.disableClear)!=null?d:!((b=this._defaultOptions)==null||!b.disableClear);b=["asc","desc"];(a.start||this.start)=="desc"&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};g.ngOnInit=function(){this._initializedStream.next()};
g.ngOnChanges=function(){this._stateChanges.next()};g.ngOnDestroy=function(){this._stateChanges.complete();this._initializedStream.complete()};ea.Object.defineProperties(tU.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});tU.\u0275fac=function(a){return new (a||tU)(zf(IVc,8))};
tU.\u0275dir=Kf({type:tU,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Dh],disabled:[2,"matSortDisabled","disabled",Dh]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Uu]});var uU=function(){this._intl=n(sU);this._sort=n(tU,{optional:!0});this._columnDef=n("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=n(qv);this._focusMonitor=n(gw);this._elementRef=n(ff);this._ariaDescriber=n(Bw,{optional:!0});this._animationsDisabled=Hi();this._recentlyCleared=bh(null);this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";n(kw).load(Gx);var a=n(IVc,{optional:!0});if(a==null?0:a.arrowPosition)this.arrowPosition=a==null?void 0:a.arrowPosition};
g=uU.prototype;g.ngOnInit=function(){var a=this;!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._sort.register(this);this._renderChanges=Ue(this._sort._stateChanges,this._sort.sortChange).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(){return a._recentlyCleared.set(null)})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);var a;(a=this._renderChanges)==null||a.unsubscribe();if(this._sortButton){var b;(b=this._ariaDescriber)==null||Cw(b,this._sortButton,this._sortActionDescription)}};
g._toggleOnInteraction=function(){if(!this._isDisabled()){var a=this._isSorted(),b=this._sort.direction;this._sort.sort(this);this._recentlyCleared.set(a&&!this._isSorted()?b:null)}};g._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)a.preventDefault(),this._toggleOnInteraction()};g._isSorted=function(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")};g._isDisabled=function(){return this._sort.disabled||this.disabled};
g._getAriaSortAttribute=function(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"};g._renderArrow=function(){return!this._isDisabled()||this._isSorted()};g._updateSortActionDescription=function(a){if(this._sortButton){var b;(b=this._ariaDescriber)==null||Cw(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||mcc(c,this._sortButton,a)}this._sortActionDescription=a};
ea.Object.defineProperties(uU.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});uU.\u0275fac=function(a){return new (a||uU)};
uU.\u0275cmp=B({type:uU,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&M("click",function(){return b._toggleOnInteraction()})("keydown",function(c){return b._handleKeydown(c)})("mouseleave",function(){return b._recentlyCleared.set(null)});a&2&&(ng("aria-sort",b._getAriaSortAttribute()),wg("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",Dh],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Dh]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],"viewBox;0 -960 960 960;focusable;false;aria-hidden;true".split(";"),["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(a,b){a&1&&
(Ng(),I(0,"div",0)(1,"div",1),Og(2),J(),E(3,N9a,3,0,"div",2),J());a&2&&(wg("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before",b.arrowPosition==="before")("mat-sort-header-descending",b._sort.direction==="desc")("mat-sort-header-ascending",b._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",b._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",b._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",b._animationsDisabled),
ng("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),z(3),F(b._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}\n"],
encapsulation:2,changeDetection:0});var JVc={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},vU=function(){Z.call(this);var a=this;this.issueFridge=n($E);this.router=n(DA);this.domSafe=n(rL);this.llmService=n(HS);this.matDialog=n(tK);this.isOpen=function(b){return pm(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=fya;this.isUnread=jya;this.getAssigneeString=function(b){var c,
d;b=Dk(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return Zj(b)?b:void 0};this.userToString=Dk;this.toMatSortDirection=Uva;this.idsToString=Fab;this.ClickTargetsForNavigation=uVc;this.SortMode=tVc;this.ActiveRowMode=sVc;this.IssueFieldType=Ukc;this.selection=new Zw(!0,[]);this.issueIds$=new tj([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=JVc;this.activeIssueChange=
new LA;this.rowClick=new LA;this.sortChange=new LA;this.columnsChange=new LA;this.selectedIssuesChange=new LA;this.issueNavigated=new LA;this.rowLimit$=new tj(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new uC;this.goToIssueItemFactory=function(b){return{type:"action",label:"Go to issue",action:function(c){a.navigateToIssue(c,b)},title:"Go to issue",icon:"arrow-forward"}};
this.customFieldIds=[];this.customFieldNames=new Map;this.dataColumns=[];this.tableColumns=[];this.columnItems=[];this.editableColumns=!1;this.activeSort$=new tj(void 0);this.allRows$=this.issueIds$.pipe(pp(),y(function(b){return b.map(function(c){return{issueIds:c,issue$:c.length===1?Ue(a.issueFridge.watch(c[0]),a.issueFridge.watchOneError(c[0]).pipe(y(function(){}))):Ce(void 0),summaryTitle$:Oe(function(){return ERc(a.llmService,c)})}})}),cg({refCount:!0,bufferSize:1}));this.allIssuesAreLoaded$=
this.allRows$.pipe(fg(function(b){return Je(b.map(function(c){return c.issue$.pipe(eg(null))}))}),y(function(b){return b.every(function(c){return c!==null})}),Xf(),cg({bufferSize:1,refCount:!0}));this.unarchivedRows$=this.allRows$.pipe(Qf(this.allIssuesAreLoaded$),y(function(b){var c=l(b);b=c.next().value;return c.next().value?b.filter(function(d){var e;return!((e=qm(d))==null?0:e.isArchived)}):b}));this.unarchivedRows$.pipe(y(function(b){return b.length}));this.sortRows=oe(Qf(this.activeSort$,this.allIssuesAreLoaded$),
y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?Gab(b,d):b}));this.filterRows=oe(Qf(this.internalFilters.value$),fg(function(b){b=l(b);var c=b.next().value;var d=b.next().value;return d.size===0?Ce(c):Je(c.map(function(e){return e.issue$})).pipe(y(function(e){return c.filter(function(f,h){return e[h]?L9a(d,h,e):!0})}))}));this.limitRows=oe(Qf(this.rowLimit$),y(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)?
b.slice(0,c):b}));this.filteredRows$=this.unarchivedRows$.pipe(this.filterRows);this.trendingChipsById$=this.unarchivedRows$.pipe(Qf(this.allIssuesAreLoaded$),y(function(b){b=l(b);var c=b.next().value;if(b.next().value){b=c.map(qm).map(function(h){return h==null?void 0:h.userActivityStats});b={views24h:b.map(function(h){var k;return(k=h==null?void 0:h.oneDayViewCount)!=null?k:0}),views7d:b.map(function(h){var k;return(k=h==null?void 0:h.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(h){var k;
return(k=h==null?void 0:h.thirtyDayViewCount)!=null?k:0})};var d={};c=l(c.entries());for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value.issueIds;(e=Hab(b,e))&&(d[f[0]]=e)}return d}}));this.rows$=this.filteredRows$.pipe(this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,y(function(b){return b.length}));this.hiddenRowCount$=Je([this.unarchivedRows$,this.rows$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return b.length-c.length}),Xf());this.trackBy=function(b,c){return Fab(c.issueIds)};this.correctedDisplayedRows=new Vg;this.correctedRows$=Oe(function(){return Je([a.rows$,a.displayedRows.changes.pipe(eg(void 0))])}).pipe(Sf(0),y(function(b){b=l(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[Fab(d.row.issueIds),d]}));return b.map(function(d){return c.get(Fab(d.issueIds))}).filter(Tk)}));this.dataColumns=[].concat(p(wVc));this.tableColumns=this.getRenderableColumns(this.dataColumns);
this.columnItems=KVc(this,this.dataColumns)};Y(vU,Z);vU.\u0275dir=Z.\u0275dir;vU.prototype.getMenuItems=function(a){var b=[],c;((c=this.options.menu)==null?0:c.includeGoToIssueItem)&&b.push(this.goToIssueItemFactory(a));b.push.apply(b,p(this.menuItemFactory(a)));return b};
var LVc=function(a,b){b=b.filter(function(c){return c.type==="CUSTOM_FIELD"});a.customFieldIds=b.map(function(c){return c.customFieldId});a.customFieldNames=new Map(b.map(function(c){var d;return[c.customFieldId,(d=c.customFieldName)!=null?d:""+c.customFieldId]}))};
vU.prototype.getRenderableColumns=function(a){var b=[];this.options.showActiveIndicator&&b.push("active-indicator");this.options.enableSelection&&b.push("selection");this.options.enableDragging&&b.push("drag-handle");a=a.map(function(c){return c.type==="CUSTOM_FIELD"?"CUSTOM_FIELD-"+c.customFieldId:c.type});b.push.apply(b,p(a));this.options.showMenu&&b.push("menu");return b};
var KVc=function(a,b){var c=function(f,h){if(f.type==="CUSTOM_FIELD"){var k;var q=(k=f.customFieldName)!=null?k:""+f.customFieldId}else{var u;q=(u=vVc.get(f.type))!=null?u:f.type}return{name:q,data:f,enabled:h}};b=b.map(function(f){return c(f,!0)});var d,e;a=(e=(d=a.options.optionalColumns)==null?void 0:d.map(function(f){return c(f,!1)}))!=null?e:[];d=[].concat(p(b),p(a));return ik(d,function(f){return f.name})};vU.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
vU.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(gg(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);Zg(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&Mw(a.focusManager,a.focusManager.activeItem)});this.focusManager=Lw(new pMc(this.correctedDisplayedRows,Eab));this.focusManager.change.pipe(gg(this.destroyed$)).subscribe(function(){var b,c,d,e=(b=a.focusManager)==null?void 0:(c=b.activeItem)==null?void 0:(d=c.row)==null?
void 0:d.issueIds;e&&a.activeIssueChange.emit(e)})};var sab=function(a,b,c){var d;(d=a.focusManager)==null||d.setActiveItem(c);var e;a.rowClick.emit((e=c.row)==null?void 0:e.issueIds);var f;d=(f=a.options.navigationOptions)==null?void 0:f.clickTargets;switch(d){case void 0:case "ALL":var h;a.navigateToIssue(b,(h=c.row)==null?void 0:h.issueIds[0]);break;case "NONE":break;default:Gb(d)}};g=vU.prototype;g.getDisplayName=function(a){var b;return(b=vVc.get(a))!=null?b:a};
g.navigateToIssue=function(a,b){if(b&&!a.defaultPrevented&&!(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)&&(this.issueNavigated.emit(b),a.target.tagName!=="A")){b=this.getIssueUrl(b);var c;((c=this.options.navigationOptions)==null?0:c.alwaysOpenNewTab)||Pn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Lq(this.domSafe,b):Nr(this.router,b)}};g.onRowKeydown=function(a,b){var c;(c=this.focusManager)==null||c.onKeydown(b)};
g.onSortChange=function(a){var b=a.direction;b=b!==""?b==="asc"?"ASCENDING":"DESCENDING":void 0;a=b&&a.active?{column:a.active,direction:b}:void 0;this.activeSort$.next(a);this.sortChange.emit(a)};g.toggleAllRows=function(a){if(V9a(this,a))this.selection.clear();else{a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.isSingleIssue(0,b)&&this.selection.select(b.issueIds[0])}this.selectedIssuesChange.emit(this.selection)};
var vab=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"multi-issue-title":b==="PRIORITY"?"multi-issue-icon":b==="selection"?"multi-issue-selection":b})},V9a=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};vU.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Fq.viewIssue.makeHref(a)};
var O9a=function(a){var b,c;return w(function(d){if(d.nextAddress==1)return b=a.matDialog.open(pU,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),x(d,Ge(nK(b)),2);c=d.yieldResult;if(!c)return d.return();a.columnItems=c;a.dataColumns=a.columnItems.filter(function(e){return e.enabled}).map(function(e){return e.data});LVc(a,a.dataColumns);a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);ze(d)})};
vU.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};vU.prototype.getCustomFieldValue=function(a,b){a=a.snapshot[0];if(!a)return"--";var c;return(a=(c=a.customField)==null?void 0:c.find(function(d){return d.customFieldId===b}))?aFa(a):"--"};
ea.Object.defineProperties(vU.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a.map(function(b){return Array.isArray(b)?b:[b]}))}},options:{configurable:!0,enumerable:!0,set:function(a){this.optionsInternal=Object.assign({},JVc,a);this.rowLimit$.next(a.rowLimit);this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=KVc(this,this.dataColumns)},get:function(){return this.optionsInternal}},filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(a!=
null?a:[])}},tableColumnsInput:{configurable:!0,enumerable:!0,set:function(a){this.dataColumns=a;LVc(this,this.dataColumns);this.tableColumns=this.getRenderableColumns(a);this.columnItems=KVc(this,a)}}});vU.\u0275fac=function(a){return new (a||vU)};
vU.\u0275cmp=B({type:vU,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&Wg(oP,5);if(a&2){var c;$g(c=ah())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",teamId:"teamId",showReadStatus:"showReadStatus",alerts:"alerts",enrichmentCategoriesFunction:"enrichmentCategoriesFunction",options:"options",issueUrlFactory:"issueUrlFactory",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],editableColumns:"editableColumns"},
outputs:{activeIssueChange:"activeIssueChange",rowClick:"rowClick",sortChange:"sortChange",columnsChange:"columnsChange",selectedIssuesChange:"selectedIssuesChange",issueNavigated:"issueNavigated"},standalone:!1,features:[kg],decls:3,vars:4,consts:[["directive","tableRowDirective"],[1,"muted","margin-s-top","flex-kids-x","align-items-center"],["type","button","color","neutral","mat-button","","matTooltip","Edit table columns",1,"edit-columns","small"],["mat-table","","matSort","",1,"full-width",3,
"matSortChange","dataSource","trackBy","matSortDisabled","matSortActive","matSortDirection"],["matColumnDef","active-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],[3,"matColumnDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","selection"],["matColumnDef","multi-issue-selection"],["matColumnDef","multi-issue-title"],["mat-header-cell","",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-header-cell","","title","Priority",3,"mat-sort-header",
4,"matHeaderCellDef"],["matColumnDef","multi-issue-icon"],["mat-header-cell","","title","",4,"matHeaderCellDef"],["mat-header-cell","","start","desc",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-header-cell","","start","desc","class","nowrap",3,"mat-sort-header",4,"matHeaderCellDef"],["mat-cell","","class","nowrap",4,"matCellDef"],["mat-header-cell","","class","nowrap",4,"matHeaderCellDef"],["mat-header-cell","","title","Timeframe is populated by the 'Start Date' and 'End Date' fields",3,"mat-sort-header",
4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","closed","active","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","active","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["type","button","color","neutral","mat-button","","matTooltip","Edit table columns",
1,"edit-columns","small",3,"click"],["color","secondary","svgIcon","add_column_left_24px",1,"edit-columns","icon-m"],["mat-header-cell",""],["tabindex","-1","mat-cell",""],["mat-cell",""],[3,"id"],["aria-label","Select all issues",3,"change","checked","indeterminate"],[3,"click","change","checked"],[3,"issueNavigated","issue","issueUrlFactory","enableHovercard","useButtonToNavigate","trailingChip","anchorTarget"],["mat-header-cell","",3,"mat-sort-header"],[3,"issue"],["size","medium",3,"email"],["mat-header-cell",
"","title","Priority",3,"mat-sort-header"],[3,"issuePriority"],["mat-header-cell","","title",""],["matTooltip","Trending theme identified by AI","svgIcon","auto_tab_group_24px",1,"icon-s","display-block"],[3,"title"],["mat-header-cell","","start","desc",3,"mat-sort-header"],[3,"issue","mode"],[3,"timestamp","mode","paddingLeftPx"],["mat-header-cell","","start","desc",1,"nowrap",3,"mat-sort-header"],["mat-cell","",1,"nowrap"],["mat-header-cell","",1,"nowrap"],"chipColor;purple;displayText;Trending themes;icon;issue-status-new;tooltip;Trending theme identified by AI".split(";"),
[3,"alerts","issue"],["mat-header-cell","","title","Timeframe is populated by the 'Start Date' and 'End Date' fields",3,"mat-sort-header"],[3,"issue","showIcon"],[3,"click","buttonLabel","buttonIcon","menuItems"],[3,"enrichmentCategoryNames"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"click","mouseup","focusin","keydown","row"],["type","button",1,"link-button"],["type","button",1,"link-button",3,"click"]],template:function(a,b){a&1&&(E(0,wab,87,37),S(1,"async"),
E(2,Dab,3,3,"div",1));if(a&2){var c;F((c=T(1,2,b.rows$))?0:-1,c);z(2);F(b.options.rowLimit?2:-1)}},dependencies:[KS,aB,ZL,PA,Tx,yM,CM,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,YA,cB,uO,lNc,sQ,rQ,bR,nO,tO,cR,wO,tQ,kP,uQ,vQ,tU,uU,rU,qU,VH,qQ,oP,AL,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}[_nghost-%COMP%]     .hide-header thead{display:none}[_nghost-%COMP%]     .mat-mdc-row:hover .dismiss-icon, [_nghost-%COMP%]     .mat-mdc-row:focus-visible .dismiss-icon, [_nghost-%COMP%]     .dismiss-btn.cdk-keyboard-focused .dismiss-icon{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}.display-block[_ngcontent-%COMP%]{display:block}.edit-columns[_ngcontent-%COMP%]{position:absolute;right:0;padding-right:8px;margin-right:4px}"],
changeDetection:0});var wU=function(){Z.call(this);var a=this;this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.snackBar=n(hK);this.analytics=n(CF);this.hostElement=n(ff);this.appEvents=n(nD);this.issueDetailsBrain=n(jL);this.trackerHelpers=n(LK);this.enrichmentApi=n(MC);this.activeSession=n(Es);this.similarIssueIds$=new ag(1);this.similarIssuesEnrichments$=new ag(1);this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession()&&Yr(this.activeSession,"enableSimilarIssuesEnrichments");this.enableSimilarIssuesEnrichmentFeedback=
this.activeSession.isInternalSession()&&(this.enableSimilarIssuesEnrichments||Yr(this.activeSession,"enableSimilarIssuesEnrichmentFeedback"));this.limit=3;this.issueIds$=Je([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[].concat(p(c.map(function(d){var e,f;return(f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]}).flat()),p(b))}),y(function(b){return b.slice(0,a.limit)}),hg(function(b){a.mostRecentIssueIds=b}));
this.mostRecentIssueIds=[];this.tableColumns$=this.similarIssuesEnrichments$.pipe(y(function(b){var c=[{type:"TITLE"},{type:"DUPLICATE_COUNT"},{type:"VOTE_COUNT"},{type:"CREATED_TIME"}];b.some(function(d){var e,f;return(e=d.similarIssues)==null?void 0:(f=e.issueIds)==null?void 0:f.length})&&c.push({type:"ENRICHMENT_CATEGORIES"});return c}));this.issueIdToCategories$=Je([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(y(function(b){b=l(b);var c=b.next().value;var d=b.next().value;b=new Map;
d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,h=void 0,k=l((h=(f=e.similarIssues)==null?void 0:f.issueIds)!=null?h:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;h=void 0;var q=(h=b.get(f))!=null?h:[];q.push(e.category);b.set(f,q)}}c=l(c);for(d=c.next();!d.done;d=c.next())d=d.value,e=void 0,k=(e=b.get(d))!=null?e:[],k.push("Buganizer"),b.set(d,k);return b}));this.issueTableData$=Je([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(y(function(b){var c=l(b);
b=c.next().value;var d=c.next().value;c=c.next().value;return{issueIds:b,tableColumns:c,categoriesFunction:function(e){var f;return(f=d.get(e))!=null?f:[]}}}));this.EnrichmentFeedbackType=Jkc;this.tableOptions={showActiveIndicator:!1,modes:{createdTime:"date"},enableIssueHovercard:!0,showMenu:!0,menu:{includeGoToIssueItem:!1}};this.menuItemFactory=function(b){return[{type:"action",label:"Close current issue as duplicate of this row",action:function(){MVc(a,b)}}]};this.component$=this.issueDetailsBrain.component$;
this.gotErr=function(b){a.snackBar.open({message:Xo(b)||"Error with network request",snackbarType:"ERROR"})};this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(b){if(a.mostRecentIssueIds.includes(b)){var c;(c=a.analytics)==null||c.trackEvent("similar-issues-idp","hovercard");a.submitEnrichmentFeedback(b,"ISSUE_HOVERCARD")}}))};Y(wU,Z);wU.\u0275dir=Z.\u0275dir;wU.prototype.ngOnInit=function(){this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0)};
wU.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var MVc=function(a,b){var c=String(a.issueIdInternal);c&&krc(a.issueFullFridge,b,c).then(function(){var d,e,f,h,k;return w(function(q){if(q.nextAddress==1)return NVc(a,b),NVc(a,c),a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(u){u.dismissedByAction&&OVc(a,b,c)}),a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget"),a.submitEnrichmentFeedback(b,"CLOSE_AS_DUPLICATE"),x(q,Ge(a.component$),2);d=q.yieldResult;
f=(e=d)==null?void 0:e.componentPathInfo;h=rs(a.trackerHelpers,f);k="";h&&h.componentPathName&&(k=h.componentPathName[0].toString().trim());a.analytics.trackEvent("similar-issues-idp-by-component","closeAsDuplicate","fromSummaryWidget,"+k);ze(q)})}).catch(a.gotErr)},OVc=function(a,b,c){a.issueFullFridge.removeDuplicate(b,c).then(function(){NVc(a,b);NVc(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate",
"fromSummaryWidget")},NVc=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};wU.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};
wU.prototype.submitEnrichmentFeedback=function(a,b){var c=this,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return c.enableSimilarIssuesEnrichmentFeedback?x(u,Ge(c.issueIdToCategories$),2):u.return();d=u.yieldResult;f=(e=d.get(a))!=null?e:[];h=l(f);for(k=h.next();!k.done;k=h.next())q=k.value,c.enrichmentApi.submitEnrichmentFeedback({issueId:String(c.issueIdInternal),category:q,feedbackType:b}).subscribe();ze(u)})};
ea.Object.defineProperties(wU.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=Number(a)}},similarIssueIds:{configurable:!0,enumerable:!0,set:function(a){this.similarIssueIds$.next(a.map(function(b){return String(b)}))},get:function(){throw Error("$e");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("af");}}});wU.\u0275fac=function(a){return new (a||wU)};
wU.\u0275cmp=B({type:wU,selectors:[["suggested-similar-issues"]],inputs:{issueId:"issueId",similarIssueIds:"similarIssueIds",similarIssuesEnrichments:"similarIssuesEnrichments",limit:"limit"},standalone:!1,features:[kg],decls:3,vars:3,consts:[[3,"issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"],[3,"issueNavigated","issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"]],template:function(a,b){a&1&&(E(0,Iab,1,5,"b-issues-table",0),S(1,
"async"),Ag(2,Jab,2,0,"div"));if(a&2){var c;F((c=T(1,1,b.issueTableData$))?0:2,c)}},dependencies:[vU,ON,Qv],encapsulation:2});var xU=function(){};var PVc=["popOverContent"],yU=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.minWidth=null;this.saveDisabled=!1;this.closedWithAction=new hv;this.isOpen=!1;this.destroyed$=new ag(1);this.backdropClickSubscription=ke.EMPTY};yU.prototype.ngOnInit=function(){};yU.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
yU.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(gg(this.destroyed$)).subscribe(function(){Mab(a)}))};yU.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var Lab=function(a){a.closedWithAction.emit(0);a.close()},Mab=function(a){a.closedWithAction.emit(1);a.close()};g=yU.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":Mab(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)Lab(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(Lab(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:8+Math.max((c=this.minWidth)!=null?c:0,this.anchor.offsetWidth)});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new px(this.contentTemplateRef,this.viewContainerRef),b;(b=this.overlayRef)==null||b.attach(a);var c;(c=this.overlayRef)==null||c.updatePosition()};g.getPositionStrategy=function(){var a=Rcc(jx(mx(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return hx(a,QVc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
yU.\u0275fac=function(a){return new (a||yU)(zf(vx),zf(Ug))};
yU.\u0275cmp=B({type:yU,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&Wg(PVc,7);if(a&2){var c;$g(c=ah())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",saveDisabled:"saveDisabled"},outputs:{closedWithAction:"closedWithAction"},exportAs:["onedevPopOverEditPanel"],standalone:!1,decls:2,vars:0,
consts:[["popOverContent",""],["cdkTrapFocus","",1,"pop-over-edit-panel-content","content","gmat-elevation-z2",3,"keydown","cdkTrapFocusAutoCapture"],[1,"edit-field"],[4,"ngTemplateOutlet"],[1,"actions"],["mat-button","","color","primary",1,"save",3,"click","disabled"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&C(0,Nab,8,3,"ng-template",null,0,nh)},dependencies:[Pv,qw,TJ],styles:[".content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;background-color:var(--surface-default,#fff);border-radius:4px;overflow:auto;padding:4px}.actions[_ngcontent-%COMP%]{margin-top:4px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:24px;line-height:24px;min-width:auto;padding-left:8px;padding-right:8px;font-size:13px}"]});
var QVc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}];var RVc=["popOver"],SVc=["inputBox"],zU=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new hv;this.inputValue="";this.sessionOptions=TVc;this.mergedAutocompleteConfig=Object.assign({},UVc,this.defaultAutocompleteConfig)};g=zU.prototype;g.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
g.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},UVc,this.defaultAutocompleteConfig,this.autocompleteConfig))};g.selectAutocomplete=function(a){a.length>0&&(this.inputValue=a[0].result().getPrimaryTarget().getValue())};g.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;(c=b.inputBox)==null||c.nativeElement.select()})};
g.onPopOverClose=function(a){this.closed.emit(a===0?this.inputValue:void 0);this.inputValue=""};zU.\u0275fac=function(a){return new (a||zU)(zf(VVc,8))};
zU.\u0275cmp=B({type:zU,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(Wg(RVc,7),Wg(SVc,5));if(a&2){var c;$g(c=ah())&&(b.popOver=c.first);$g(c=ah())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},standalone:!1,features:[Uu],attrs:["anchor",""],decls:4,vars:3,consts:[["popOver","onedevPopOverEditPanel"],
["autocompleteTemplate",""],["inputBox",""],[3,"closedWithAction","anchor","displayUnder","editorTemplate"],["peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","ngModelChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel"]],template:function(a,b){if(a&1){var c=r();I(0,"onedev-pop-over-edit-panel",3,0);M("closedWithAction",function(d){t(c);return v(b.onPopOverClose(d))});J();C(2,Oab,2,3,"ng-template",null,1,nh)}a&2&&(a=L(3),D("anchor",b.anchor)("displayUnder",
b.displayUnder)("editorTemplate",a))},dependencies:[Li,oy,vy,yU,OQ],styles:["input[_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}  .peoplekit-autocomplete-anchor{z-index:1001}"]});
var VVc=new yd("user-picker-autocomplete-config"),UVc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},TVc=(new pt).setFilter(rWa(Qq(1),new ALc(function(a){return a.indexOf("-pager")>=0||a.indexOf("+pager")>=0||a.indexOf("-oncall")>=0||a.indexOf("+oncall")>=0||a.indexOf("lifeguard-ng")>=0})));var Rab=function(a){return{$implicit:a}},WVc=0,AU=function(){this.val="";this.disabled=!1;this.emailChange=new hv;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+WVc;this.onChange=function(){};this.onTouched=function(){};WVc++};Y(AU,xU);g=AU.prototype;g.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
g.onPopOverClose=function(a){a!=null&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.writeValue=function(a){a!=null&&(this.val=a)};g.isActive=function(){return this.active||this.popOverOpen};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};
ea.Object.defineProperties(AU.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});AU.\u0275fac=function(a){return new (a||AU)};
AU.\u0275cmp=B({type:AU,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&Wg(zU,7);if(a&2){var c;$g(c=ah())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,features:[hh([{provide:xU,useExisting:ld(function(){return AU}),
multi:!0},{provide:iy,useExisting:ld(function(){return AU}),multi:!0}]),kg],decls:7,vars:9,consts:[["button",""],[1,"unstyled-button",3,"focus","blur","click"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closed","displayUnder","anchor","autocompleteConfig"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"]],
template:function(a,b){if(a&1){var c=r();I(0,"button",1,0);M("focus",function(){t(c);return v(b.active=!0)})("blur",function(){t(c);return v(b.active=!1)})("click",function(){t(c);return v(b.openPopOver())});E(2,Pab,1,1)(3,Sab,1,4,"ng-container")(4,Uab,1,1);C(5,Vab,2,0,"svg",2);J();I(6,"onedev-user-picker-panel",3);M("closed",function(d){t(c);return v(b.onPopOverClose(d))});J()}a&2&&(a=L(1),wg("active",b.isActive()),ng("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy()),z(2),F(b.displayValueOverride?
2:b.selectedUserTemplate?3:4),z(3),D("ngIf",!b.disabled),z(),D("displayUnder",b.displayUnder)("anchor",b.anchor||a)("autocompleteConfig",b.autocompleteConfig))},dependencies:[Ov,Pv,zU],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}"]});var XVc=["picker"],BU=function(){this.autocompleteConfigService=n(WO);this.disabled=!1;this.emailChange=new LA;this.userEmail=this.displayValueOverride=""};Y(BU,xU);BU.prototype.openPopOver=function(){this.picker.openPopOver()};BU.prototype.isActive=function(){return this.picker.isActive()};ea.Object.defineProperties(BU.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=Dk(a)||""},get:function(){return this.userJs}}});
BU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(BU)))(b||BU)}}();
BU.\u0275cmp=B({type:BU,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&Wg(XVc,7);if(a&2){var c;$g(c=ah())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById",anchor:"anchor",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],standalone:!1,features:[hh([{provide:xU,useExisting:ld(function(){return BU}),multi:!0}]),kg],decls:4,vars:8,consts:[["picker","onedevUserPicker"],["userChip",
""],[3,"emailChange","anchor","displayUnder","email","disabled","labelledById","selectedUserTemplate","autocompleteConfig","displayValueOverride"],[3,"user","email","teamId","enableSmallChip"]],template:function(a,b){if(a&1){var c=r();I(0,"onedev-user-picker",2,0);M("emailChange",function(d){t(c);b.userJs=Hk(d);b.userEmail=d;b.emailChange.emit(d);return v()});J();C(2,Xab,1,1,"ng-template",null,1,nh)}a&2&&(a=L(3),D("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",b.disabled)("labelledById",
b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",zWa(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride))},dependencies:[DL,AU],styles:["[_nghost-%COMP%]     .user-chip-small, [_nghost-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}  .pop-over-edit-panel-content{min-width:180px}/*# sourceMappingURL=user_picker.css.map */"]});var CU=function(){this.isReady=!1};CU.\u0275fac=function(a){return new (a||CU)};CU.\u0275cmp=B({type:CU,selectors:[["onedev-async-data-placeholder"]],inputs:{isReady:"isReady"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:2,consts:[["class","loading-indicator",4,"ngIf"],[4,"ngIf"],[1,"loading-indicator"]],template:function(a,b){a&1&&(Ng(),C(0,Yab,1,0,"div",0)(1,Zab,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),z(),D("ngIf",b.isReady))},dependencies:[Ov],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.loading-indicator[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;animation:_ngcontent-%COMP%_opacity-gradient .5s linear 0s infinite alternate;background-image:-webkit-gradient(linear,left top,right top,from(#f1f3f4),to(#dadce0));background-image:-webkit-linear-gradient(left,#f1f3f4,#dadce0);background-image:linear-gradient(90deg,#f1f3f4,#dadce0);border-radius:3px;height:10px;width:80px;display:inline-block}@-webkit-keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_opacity-gradient{0%{opacity:0}to{opacity:1}}"]});var YVc=function(){this.warning=""};YVc.\u0275fac=function(a){return new (a||YVc)};
YVc.\u0275cmp=B({type:YVc,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("is-present",b.warning)},inputs:{warning:"warning"},standalone:!1,decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"matTooltip"],["d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"]],template:function(a,b){a&1&&C(0,$ab,2,
1,"svg",0);a&2&&D("ngIf",b.warning)},dependencies:[Ov,YQ],styles:[".is-present[_nghost-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:16px;line-height:16px;width:16px}svg[_ngcontent-%COMP%]{color:var(--icon-warn,#e37400);fill:currentColor;width:16px;height:16px}"]});var ZVc=["*",[["","actions",""]]],$Vc=[[["onedev-field-label"]],[["onedev-field-value"]]],aWc=0,DU=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+aWc;aWc++};DU.\u0275fac=function(a){return new (a||DU)};
DU.\u0275cmp=B({type:DU,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&ng("id",b.id)},inputs:{thinking:"thinking",labelTooltip:"labelTooltip",warning:"warning"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:3,consts:[[3,"isReady"],[1,"label",3,"matTooltip"],[3,"warning"]],template:function(a,b){a&1&&(Ng(),I(0,"onedev-async-data-placeholder",0)(1,"span",1),Og(2),J(),K(3,"onedev-warning-icon",2),J());a&2&&(D("isReady",!b.thinking),z(),D("matTooltip",b.labelTooltip),
z(2),D("warning",b.warning))},dependencies:[CU,YQ,YVc],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var EU=function(){this.thinking=!1};EU.\u0275fac=function(a){return new (a||EU)};
EU.\u0275cmp=B({type:EU,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(Ng(ZVc),I(0,"onedev-async-data-placeholder",0),Og(1),Og(2,1),J());a&2&&D("isReady",!b.thinking)},dependencies:[CU],encapsulation:2});var FU=function(){this.labelPosition="left"};FU.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
FU.\u0275fac=function(a){return new (a||FU)};
FU.\u0275cmp=B({type:FU,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(Xg(c,xU,5),Xg(c,DU,7));if(a&2){var d;$g(d=ah())&&(b.field=d.first);$g(d=ah())&&(b.label=d.first)}},inputs:{labelPosition:"labelPosition"},standalone:!1,ngContentSelectors:["onedev-field-label","onedev-field-value"],decls:3,vars:4,consts:[[1,"wrapper"]],template:function(a,b){a&1&&(Ng($Vc),I(0,"div",0),Og(1),Og(2,1),J());a&2&&wg("active",b.field==null?null:b.field.isActive())("top-label",b.labelPosition===
"top")},styles:[".wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:2px}.wrapper.top-label[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%]     onedev-field-label{margin-right:5px}[_nghost-%COMP%]     onedev-field-value{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;min-height:29px}[_nghost-%COMP%]     onedev-field-value>*{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;width:100%}[_nghost-%COMP%]     onedev-field-value onedev-async-data-placeholder{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start}[_nghost-%COMP%]     onedev-field-value [actions]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     onedev-field-value:not(.content-overflow){overflow:hidden;text-overflow:ellipsis}.active[_ngcontent-%COMP%]     onedev-field-label{color:var(--primary-default,#1a73e8)}"]});var bWc=["traditionalEditorField"],cWc=["peopleKitUserPicker"],GU=function(){this.activeSession=n(Es);this.issuePermissionService=n(lL);this.issueDetailsBrain=n(jL);this.elementRef=n(ff);this.cdr=n(qv);this.title=this.name="";this.value=null;this.valueChange=new LA;this.emailChange=new LA;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.enablePeoplekitAc=
Yr(this.activeSession,"enablePeoplekitUserAc");this.FieldType=WL};GU.prototype.emailToUser=function(a){return Sk(Hk(a))};GU.prototype.openEditor=function(){if(this.enablePeoplekitAc){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()}else{var b;(b=this.traditionalEditorField)==null||wq(b,null,!0,!1)}};GU.\u0275fac=function(a){return new (a||GU)};
GU.\u0275cmp=B({type:GU,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(Wg(bWc,5),Wg(cWc,5));if(a&2){var c;$g(c=ah())&&(b.traditionalEditorField=c.first);$g(c=ah())&&(b.peopleKitUserPicker=c.first)}},inputs:{name:"name",title:"title",value:"value",user:"user",anchor:"anchor",isSaving:"isSaving",displayValueOverride:"displayValueOverride"},outputs:{valueChange:"valueChange",emailChange:"emailChange"},standalone:!1,decls:2,vars:1,consts:[["traditionalEditorField",""],["peopleKitUserPicker",
""],[1,"flex-1",3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","displayValueOverride"],[1,"flex-1",3,"valueChange","name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","displayValueOverride"],[3,"thinking"],[3,"emailChange","anchor","user","teamId","disabled","displayValueOverride"]],template:function(a,b){a&1&&E(0,abb,4,15,"b-edit-field",2)(1,bbb,8,11,"onedev-edit-field");a&2&&F(b.enablePeoplekitAc?1:0)},
dependencies:[VL,DU,EU,FU,BU,Qv],encapsulation:2});var dWc=[[["","expansion-panel-header",""]],"*"],HU=function(){this.instance=eWc;this.expanded=!1};HU.prototype.ngOnInit=function(){eWc++};HU.prototype.toggle=function(){this.expanded=!this.expanded};var eWc=0;HU.\u0275fac=function(a){return new (a||HU)};
HU.\u0275cmp=B({type:HU,selectors:[["b-expansion-panel"]],inputs:{expanded:"expanded"},exportAs:["expansionPanel"],standalone:!1,ngContentSelectors:["[expansion-panel-header]","*"],decls:6,vars:7,consts:[[1,"flex-kids-y"],["role","button","tabindex","0","aria-disabled","false",1,"header","flex-kids-x","padded-s","clickable-row",3,"click","keydown.enter","keydown.space","keyup.space","id"],["type","button","mat-icon-button","","aria-label","Toggle expansion state",1,"small","margin-left-auto",3,"click"],
["svgIcon","arrow-down",1,"icon-m"],["role","region",1,"content",3,"id"]],template:function(a,b){a&1&&(Ng(dWc),I(0,"div",0)(1,"div",1),M("click",function(){return b.toggle()})("keydown.enter",function(){return b.toggle()})("keydown.space",function(c){return c.preventDefault()})("keyup.space",function(){return b.toggle()}),Og(2),I(3,"button",2),M("click",function(c){b.toggle();return c.stopPropagation()}),K(4,"mat-icon",3),J()(),E(5,cbb,2,3,"div",4),J());a&2&&(wg("expanded",b.expanded),z(),Pg("id",
"expansion-panel-header-",b.instance),ng("aria-controls","expansion-panel-content-"+b.instance)("aria-expanded",b.expanded),z(4),F(b.expanded?5:-1))},dependencies:[aB,PA,Ux],styles:[".header[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.header[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.expanded[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.content[_ngcontent-%COMP%]{padding:4px 12px 12px}\n/*# sourceMappingURL=expansion_panel.css.map */"]});var obb=function(){return[]},ubb=function(a,b){return b.key},IU=function(){Z.apply(this,arguments);var a=this;this.issueFridge=n($E);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.paramsService=n(aL);this.issueExperimentalFieldsFridge=n(WE);this.issuePermissionService=n(lL);this.triageService=n(TG);this.activeSession=n(Es);this.errorHandler=n(DK);this.preferences=n(OG);this.similarIssuesApi=n(jO);this.issueMarkAsDuplicateDialogService=n(qS);this.analytics=n(CF);this.issueId$=this.triageService.currentIssueId$.pipe(Ve(Tk),
Xf());this.PHASE_TO_ACTIONS=Vtc;this.TriagePhase=qlc;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new LA;this.teamId$=eFc(this.paramsService,"teamId").pipe(Xf(),Ve(Tk));this.triageViewId=this.paramsService.params.triageId;this.phaseUrlSlug=this.paramsService.params.phase;this.data$=this.teamId$.pipe(y(function(b){return a.triageService.triageDataFactory.get(b,a.triageViewId)}));this.triageScope$=this.data$.pipe(fg(function(b){return b.triageScope$}));this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFridge.watch(b)}));
this.canonicalIssueId$=this.issue$.pipe(y(function(b){var c,d;return(d=b==null?void 0:(c=b.snapshot[0])==null?void 0:c.duplicateOfIssueId)!=null?d:void 0}));this.experimentalFields$=this.issueId$.pipe(fg(function(b){return a.issueExperimentalFieldsFridge.watch(b)}));this.reporterUser$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.reporterEmail$=this.reporterUser$.pipe(y(function(b){return Dk(b)||""}));this.triagerEmail$=this.experimentalFields$.pipe(y(function(b){var c;
return b==null?void 0:(c=b.triage)==null?void 0:c.triagerEmail}));this.triager$=this.triagerEmail$.pipe(y(function(b){return Hk(b)}));this.issuePhase$=this.issue$.pipe(y(tm));this.issuePhaseDisplay$=this.issuePhase$.pipe(y(function(b){var c;return(c=b&&qr.get(b))!=null?c:""}));this.issueSubphase$=this.issue$.pipe(y(um));this.issueSubphaseDisplay$=this.issueSubphase$.pipe(y(function(b){var c;return(c=b&&Slc[b])!=null?c:""}));this.events$=this.issueId$.pipe(fg(function(b){return a.eventsForIssueFridge.watch(b)}),
y(function(b){return(b==null?void 0:b.events)||[]}));this.comments$=this.events$.pipe(y(function(b){return b.filter(mm).slice(1)}));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(y(Boolean),eg(!0));this.similarIssueIds$=Je([this.issueId$,this.triageScope$]).pipe(fg(function(b){var c=l(b);b=c.next().value;
c=c.next().value;return kO(a.similarIssuesApi,{issueId:Number(b),scope:c})}),y(function(b){return b.similarIssues}),hg(function(b){b.forEach(function(c){a.issueFullFridge.announce(c)})}),y(function(b){return b.map(function(c){return c.issueId})}),y(function(b){return b.slice(0,10)}),cg({bufferSize:1,refCount:!0}));this.needsInfoAutomaticChanges$=this.reporterEmail$.pipe(y(function(b){return[{field:"ASSIGNEE",value:b},{field:"COMMENT",value:"Hi @"+b+", "}]}));this.teamId$.pipe(fg(function(b){return Ztc(a.triageService.triageDataFactory.get(b,
a.triageViewId),"NEW")}),y(function(b){var c=[].concat(p(Stc.fieldsToShow));if(b==null?0:b.length)b=c.findIndex(function(d){return d==="STATUS"}),c.splice(b+1,0,"HOTLISTS");return c}))};Y(IU,Z);IU.\u0275dir=Z.\u0275dir;g=IU.prototype;g.setNeedsInfo=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};
g.setConfirmed=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setPendingOwner=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};
g.setInProgress=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setExpected=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};
g.setPlanned=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};g.setCommitted=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};
g.setFixed=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setNew=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
g.setWontFix=function(a){var b=this;return w(function(c){return c.nextAddress==1?x(c,XE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
g.openSecondaryActionFooter=function(a,b){var c=this;return w(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):x(d,dRc(c.issueMarkAsDuplicateDialogService,b),3);if(d.nextAddress!=2)return c.analytics.trackEvent("triageIssue","changePhase",c.phaseUrlSlug+"_"+a),d.return();c.selectedTriageAction=a;c.displaySecondaryFooter=!0;c.announceUpdate(void 0,b);ze(d)})};
g.finalizeSecondaryAction=function(a){var b=this,c,d,e;return w(function(f){switch(f.nextAddress){case 1:if(!b.selectedTriageAction)return f.return();c=b.selectedTriageAction;d=a[0];switch(c){case "SET_NEEDS_INFO":return f.jumpTo(2);case "SET_CONFIRMED":return f.jumpTo(3);case "SET_PENDING_OWNER":return f.jumpTo(4);case "SET_NEW":return f.jumpTo(5);case "SET_IN_PROGRESS":return f.jumpTo(6);case "SET_EXPECTED":return f.jumpTo(7);case "SET_PLANNED":return f.jumpTo(8);case "SET_COMMITTED":return f.jumpTo(9);
case "SET_FIXED":return f.jumpTo(10);case "CHANGE_COMPONENT":return f.jumpTo(11);case "SET_WONT_FIX":return f.jumpTo(12);case "MARK_AS_DUPLICATE":throw Error("Ce");default:Gb(c)}f.jumpTo(13);break;case 2:return x(f,b.setNeedsInfo(d),14);case 14:e=f.yieldResult;f.jumpTo(13);break;case 3:return x(f,b.setConfirmed(d),15);case 15:e=f.yieldResult;f.jumpTo(13);break;case 4:return x(f,b.setPendingOwner(d),16);case 16:e=f.yieldResult;f.jumpTo(13);break;case 5:return x(f,b.setNew(d),17);case 17:e=f.yieldResult;
f.jumpTo(13);break;case 6:return x(f,b.setInProgress(d),18);case 18:e=f.yieldResult;f.jumpTo(13);break;case 7:return x(f,b.setExpected(d),19);case 19:e=f.yieldResult;f.jumpTo(13);break;case 8:return x(f,b.setPlanned(d),20);case 20:e=f.yieldResult;f.jumpTo(13);break;case 9:return x(f,b.setCommitted(d),21);case 21:e=f.yieldResult;f.jumpTo(13);break;case 10:return x(f,b.setFixed(d),22);case 22:e=f.yieldResult;f.jumpTo(13);break;case 11:return x(f,b.setNew(d),23);case 23:e=f.yieldResult;f.jumpTo(13);
break;case 12:return x(f,b.setWontFix(d),24);case 24:e=f.yieldResult;f.jumpTo(13);break;case 13:b.displaySecondaryFooter=!1,b.announceUpdate(e,d),b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+c),ze(f)}})};g.announceUpdate=function(a,b){a&&(this.issueFullFridge.poke(b),this.refreshTable.emit())};g.cancelAction=function(){this.selectedTriageAction=void 0;this.displaySecondaryFooter=!1};
var hbb=function(a,b){if(b!=null&&b.endsWith("@google.com")){var c=np(a.issueId$);XE(a.issueExperimentalFieldsFridge,c,function(d){d.triage.triagerEmail=b})}else EK(a.errorHandler,"Only Googlers can be triagers.")};IU.prototype.claim=function(){hbb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};IU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(IU)))(b||IU)}}();
IU.\u0275cmp=B({type:IU,selectors:[["issue-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],["triagerFieldAnchor",""],["triagerField",""],["expansionPanel",""],["card",""],[1,"container","bg-secondary","flex-kids-y"],[1,"top-bar","flex-kids-x","space-between","border-bottom","bg-main"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[3,"issueId","showCopyOptions"],
[1,"flex-kids-x","align-items-center"],[1,"actions"],["mat-icon-button","","tabindex","0","target","_blank","matTooltip","Open issue in a new tab","aria-label","Open issue",1,"small","hover-link",3,"href"],["svgIcon","pop-out",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label","Close sidebar",1,"gmat-button",3,"click"],["svgIcon","close"],[1,"muted"],[1,"chippy"],[1,"chippy",3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],
[3,"onedevIsHovercardReady","issueId"],["type","button","mat-button","","matTooltip","Set myself as the triager",1,"gmat-button","small"],["size","small",3,"email"],[1,"flex-1","triagerField",3,"valueChange","emailChange","name","anchor","title","value","user"],["type","button","mat-icon-button","","matTooltip","Edit triager","aria-label","Edit triager",1,"small","align-self-center",3,"click"],["svgIcon","edit-outline",1,"icon-xxs"],["type","button","mat-button","","matTooltip","Set myself as the triager",
1,"gmat-button","small",3,"click"],[1,"content","flex-kids-y"],[1,"title","margin-s"],[3,"title","issueId","componentId","hasAclToEdit"],[1,"margin-s-top","flex-kids-x","gap-s"],[1,"b-chip","issue-type","nowrap"],[1,"priority"],[3,"issuePriority"],[3,"vertical"],[3,"issueId"],[1,"rounded","bordered","margin-s","margin-top-none","bg-main",3,"expanded"],["expansion-panel-header",""],[1,"flex-kids-x","align-items-center","gap-xs","full-width"],["svgIcon","description_24px","color","primary",1,"margin-xs-right",
"shrink-0"],[1,"uppercase","margin-xs-right","muted"],[3,"id"],[1,"flex-kids-x","align-items-center","grow-1","margin-s-right"],["svgIcon","chat_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"uppercase","margin-xs-right","muted","nowrap"],[1,"margin-left-auto"],[3,"issueId","events","issueAccessLevel","showFullHistory"],["svgIcon","spark_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"uppercase","muted"],["svgIcon","info",1,"margin-left-auto","icon-s",3,"matTooltip"],[1,"triage-actions",
"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[3,"onedevHovercardTrigger","model"],[3,"email"],[1,"margin-left-auto",3,"click"],[3,"issueId","similarIssueIds","similarIssuesEnrichments","limit"],[1,"full-width",3,"needsInfoAutomaticChanges","selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","needsInfoAutomaticChanges","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","",1,"gmat-button",3,"disabled"],["type","button","mat-button",
"",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(E(0,ybb,19,19,"div",6),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issueId$))?0:-1,c)}},dependencies:[aB,eU,$T,HU,PA,Tx,Ux,YA,cB,fJ,gJ,lJ,hJ,eP,RT,mU,sO,tL,uO,nU,HL,GU,wU,CS,AL,zL,$G,PB,Qv],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}[_nghost-%COMP%]     .triagerField onedev-field-label{min-width:unset}[_nghost-%COMP%]     .triagerField onedev-edit-field{margin:0}.triagerField[_ngcontent-%COMP%]{visibility:hidden;width:0}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .issue-type[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:1px solid;border-color:#5f6368;border-color:var(--icon);font-family:Google Sans,Roboto,Arial,sans-serif;margin-right:0}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .priority[_ngcontent-%COMP%]{margin-top:1px}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .hotlist-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:2px;line-height:18px;max-height:64px;overflow-y:auto}[_nghost-%COMP%]     .comment1>mat-icon{display:none}[_nghost-%COMP%]     .comment1 .b-description-heading{display:none}[_nghost-%COMP%]     .comment1 .bv2-event-note{margin-top:4px}[_nghost-%COMP%]     b-event-stream-header h4{display:none}[_nghost-%COMP%]     .bv2-edit-issue-history-stream{padding-left:0}[_nghost-%COMP%]     .bv2-event-content-cell{padding-top:8px;padding-left:4px;padding-right:0}"]});var fWc=function(){var a=this;this.activeSession=n(Es);this.issueExperimentalFieldsFridge=n(WE);this.triageService=n(TG);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new tj(void 0);this.hasUserClaimedIssues$=Je([this.issueIds$,this.onToggleClaim$]).pipe(y(function(b){var c=l(b);b=c.next().value;c.next();return b}),fg(function(b){return a.issueExperimentalFieldsFridge.watchSet(b)}),y(function(b){return b.every(function(c){var d;
return((d=c.triage)==null?void 0:d.triagerEmail)===a.currentUserEmail})}));this.buttonText$=Je([this.hasUserClaimedIssues$]).pipe(y(function(b){return l(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},zbb=function(a,b,c){var d,e,f;return w(function(h){switch(h.nextAddress){case 1:a.isSaving=!0,d=l(b),e=d.next();case 2:if(e.done){h.jumpTo(4);break}f=e.value;return x(h,XE(a.issueExperimentalFieldsFridge,f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=d.next();h.jumpTo(2);
break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),ze(h)}})};fWc.\u0275fac=function(a){return new (a||fWc)};
fWc.\u0275cmp=B({type:fWc,selectors:[["claim-issues-button"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-button","",1,"gmat-button",3,"ariaLabel","disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","ariaLabel","disabled"]],template:function(a,b){a&1&&(E(0,Abb,6,8,"button",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issueIds$))?0:-1,c)}},dependencies:[PA,Tx,Qv],encapsulation:2,changeDetection:0});var Ibb=function(a,b){return b.key},JU=function(){Z.apply(this,arguments);var a=this;this.triageService=n(TG);this.analytics=n(CF);this.butterBar=n(iK);this.errorHandler=n(DK);this.issueApi=n(BE);this.issueFridge=n($E);this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.issuePicker=n(vR);this.paramsService=n(aL);this.triagePhaseService=n(DS);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=Vtc;this.TriagePhase=qlc;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(fg(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(y(tm));this.issuePhaseDisplay$=this.issuePhase$.pipe(y(function(b){var c;return(c=b&&qr.get(b))!=null?c:""}));this.issues$=this.issueIds$.pipe(fg(function(b){return a.issueFridge.watchSet(b)}));this.issueSubphases$=this.issues$.pipe(y(function(b){return b.map(function(c){return um(c)}).filter(function(c){return c!==
void 0})}));this.issueSubphasesDisplay$=this.issueSubphases$.pipe(y(function(b){b=b.map(function(c){var d;return(d=Slc[c])!=null?d:""});return jk(b)}));this.refreshTable=new LA};Y(JU,Z);JU.\u0275dir=Z.\u0275dir;g=JU.prototype;
g.openDupeDialog=function(){var a=this,b,c,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:return x(q,Ge(a.issueIds$),2);case 2:b=q.yieldResult;if(!b||!b.length)return q.return();c=Hya;return x(q,Ge(a.issueFridge.watchSet(b)),3);case 3:return d=c(q.yieldResult),e=l,x(q,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(q.yieldResult),(k=h=f.next().value)?x(q,a.markAsDuplicate(k,
b),0):q.return()}})};g.openSecondaryActionFooter=function(a){var b=this;return w(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):x(c,b.openDupeDialog(),3);if(c.nextAddress!=2)return b.analytics.trackEvent("triageIssue","changePhase",b.phaseUrlSlug+"_"+a),c.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;ze(c)})};g.cancelAction=function(){this.displaySecondaryFooter=!1};g.closeSidebar=function(){this.triageService.closeSidebar();this.triageService.setMode(0)};
g.finalizeSecondaryAction=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1){if(!b.selectedTriageAction)return e.return();c=b.selectedTriageAction;return x(e,ARc(b.triagePhaseService,a,c),2)}d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);ze(e)})};
g.markAsDuplicate=function(a,b){var c=this,d,e,f;return w(function(h){if(h.nextAddress==1){d=b.filter(function(k){return k!==a});if(!d.length)return h.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};te(h,2);Mq(c.butterBar,"Saving...");return x(h,c.issueApi.issueBulkEdit(e),4)}if(h.nextAddress!=2)return Mq(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),uu(h,0);f=xe(h);FK(c.errorHandler,f);return x(h,Promise.all([].concat(p(b.map(function(k){return c.issueFridge.poke(k)})),
[c.issueFridge.poke(a)])),0)})};g.announceUpdate=function(a,b){if(b&&b.length)for(a=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};JU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(JU)))(b||JU)}}();
JU.\u0275cmp=B({type:JU,selectors:[["selection-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[kg],decls:15,vars:12,consts:[[1,"container","bg-secondary","flex-kids-y"],[1,"border-bottom","bg-main","align-items-center","flex-kids-x"],[1,"margin-s-left","margin-s-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","aria-label","Close sidebar",1,"gmat-button","margin-left-auto",3,"click"],["svgIcon","close"],[1,"content","flex-kids-y"],[1,"heading-m",
"margin-s"],[1,"bg-main","carded","flex-kids-x","align-items-center","margin-s"],[1,"muted"],[1,"chippy"],[1,"chippy","margin-s-right"],[1,"full-width",3,"selectedTriageAction"],[1,"full-width",3,"cancelAction","finalizeAction","selectedTriageAction"],[3,"onSelect","phase"],["type","button","mat-button","",1,"gmat-button",3,"disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),E(2,Bbb,5,1,"div",2),S(3,"async"),E(4,
Ebb,1,1),S(5,"async"),I(6,"button",3),M("click",function(){return b.closeSidebar()}),K(7,"mat-icon",4),J()(),I(8,"div",5)(9,"h3",6),Q(10),S(11,"async"),J(),I(12,"div",7),E(13,Lbb,2,3),S(14,"async"),J()()());if(a&2){var c,d,e,f;z(2);F((c=T(3,4,b.issuePhaseDisplay$))?2:-1,c);z(2);F((d=T(5,6,b.issueSubphasesDisplay$))?4:-1,d);z(6);R("",(e=T(11,8,b.issueIds$))==null?null:e.length," issues");z(3);F((f=T(14,10,b.issueIds$))?13:-1,f)}},dependencies:[aB,PA,Tx,Ux,YA,cB,fWc,CS,$G,Qv],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;position:absolute}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden auto}\n/*# sourceMappingURL=selection_triage_sidebar.css.map */"],
changeDetection:0});var KU=function(){var a=this;this.editIssueService=n(oL);this.issueFridge=n($E);this.IssueFieldKey=wRc;this.issueId$=new ag(1);this.automaticChange$=new ag(1);this.editableIssue$=this.issueId$.pipe(fg(function(b){return a.editIssueService.editableIssue$(b)}),cg({refCount:!0,bufferSize:1}));this.undone=!1;this.text$=Je([this.editableIssue$,this.automaticChange$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;a:{var d=c.field;switch(d){case "STATUS":b="Auto changed status";break a;
case "ASSIGNEE":b=c.value===b.reporter?"Auto assigned to reporter":"Auto assigned";break a;case "COMMENT":b="";break a;default:Gb(d)}b=void 0}return b}))};KU.prototype.ngOnInit=function(){};
KU.prototype.undo=function(){var a=this,b,c,d;return w(function(e){if(e.nextAddress==1)return b=a.automaticChange.field,x(e,Ge(a.editableIssue$),2);if(e.nextAddress!=3)return c=e.yieldResult,x(e,Ge(a.issueFridge.watch(a.issueId)),3);d=e.yieldResult;if(!d)return e.return();switch(b){case "STATUS":c.setStatus(d.snapshot[0].status);break;case "ASSIGNEE":c.setAssignee(Ak(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("bf");default:Gb(b)}a.undone=!0;ze(e)})};
ea.Object.defineProperties(KU.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return np(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return np(this.automaticChange$)}}});KU.\u0275fac=function(a){return new (a||KU)};
KU.\u0275cmp=B({type:KU,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&vg("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},standalone:!1,decls:7,vars:3,consts:[[1,"b-chip","blue","flex-kids-x","align-items-center","gap-xs"],["matTooltip","System suggestion","svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right","color-text"],[1,"color-text"],["type","button","mat-button",
"",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"mat-icon",1),I(2,"span",2),Q(3),S(4,"async"),J(),I(5,"button",3),M("click",function(){return b.undo()}),Q(6,"Undo"),J()());a&2&&(z(3),ch(T(4,1,b.text$)))},dependencies:[aB,PA,Tx,YA,cB,Qv],encapsulation:2,changeDetection:0});var gWc=["pickerToggle"],LU=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new LA};LU.\u0275fac=function(a){return new (a||LU)};
LU.\u0275cmp=B({type:LU,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&Wg(gWc,7);if(a&2){var c;$g(c=ah())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],standalone:!1,decls:4,vars:6,consts:[["pickerToggle","bDateTimePickerToggle"],["mat-stroked-button","","type","button","bDateTimePickerToggle","",3,"bDateTimePickerToggleSelectedChange",
"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected","bDateTimePickerToggleFocusTrapHost"],["mode","date",3,"date"]],template:function(a,b){if(a&1){var c=r();I(0,"button",1,0);M("bDateTimePickerToggleSelectedChange",function(d){t(c);b.value=d;b.valueChange.emit(d);return v()});E(2,Mbb,1,1,"b-formatted-date-time",2)(3,Nbb,2,0,"ng-container");J()}a&2&&(D("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),ng("aria-labelledby",b.customAriaLabelledBy),z(2),F(b.value?2:3))},dependencies:[KL,ZL,PA,Tx],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var hWc=["filterInput"],MU=function(){Z.apply(this,arguments);this.dateFormatter=n(HK);this.enumChoices=[];this.onSave=new LA;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Y(MU,Z);MU.\u0275dir=Z.\u0275dir;g=MU.prototype;g.ngOnInit=function(){this.initValues()};g.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};g.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(fg(function(){return Se(0)}),gg(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){this.trigger.openMenu()};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;(a=this.filterElement)==null||a.nativeElement.focus()};var iWc=function(a){return a.filterValue&&a.type!=="REPEATED_DATE"?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
MU.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),jWc(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};MU.prototype.changeSelection=function(a){this.focusFilterBox();var b=this.valueMap.get(a);b?this.valueMap.set(a,!1):b===!1?(b=this.originalValueMap.get(a)===null,this.valueMap.set(a,b?null:!0)):this.valueMap.set(a,!0);this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()})};
MU.prototype.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||b!==void 0?c!==b:!1})};MU.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=l(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);jWc(this)};
var jWc=function(a){a.sortedValues=Array.from(a.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:c===!1?-1:0)-(b?1:b===!1?-1:0)})},Pbb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};MU.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(Wj(a)):a};MU.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
MU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(MU)))(b||MU)}}();
MU.\u0275cmp=B({type:MU,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(Wg(YG,5),Wg(hWc,5));if(a&2){var c;$g(c=ah())&&(b.trigger=c.first);$g(c=ah())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},standalone:!1,features:[kg,Uu],decls:14,vars:6,consts:[["customFieldMenu","matMenu"],["filterInput",""],["mat-button","","type","button",1,"medium","primary",3,"matMenuTriggerFor"],["name",
"arrow-dropdown","size","small"],["role","option",1,"multi-edit-menuitem",3,"title"],[1,"filter"],["mat-input","","step","any",3,"type","ngModel","placeholder"],["mat-menu-item",""],[3,"change","click","checked","indeterminate"],["mat-input","","step","any",3,"keydown","click","ngModelChange","type","ngModel","placeholder"],["mat-menu-item","",3,"click"],[3,"valueChange","value"],["mat-menu-item","","aria-label","Add a date value","tabindex","0","aria-haspopup","true",3,"click"]],template:function(a,
b){a&1&&(I(0,"button",2)(1,"span"),Q(2),J(),K(3,"b-icon",3),J(),I(4,"mat-menu",null,0),Dg(6,Obb,3,4,"div",4,Cg),K(8,"mat-divider"),I(9,"div",5),E(10,Qbb,2,3,"input",6),J(),E(11,Rbb,1,0,"mat-divider"),E(12,Sbb,2,0,"div",7),E(13,Tbb,4,1,"div"),J());a&2&&(a=L(5),D("matMenuTriggerFor",a),z(2),ch(b.getLabel()),z(4),Eg(iWc(b)),z(4),F(b.type!=="REPEATED_DATE"?10:-1),z(),F(Pbb(b)?11:-1),z(),F(Pbb(b)?12:-1),z(),F(b.type==="REPEATED_DATE"?13:-1))},dependencies:[UG,XG,VG,YG,HL,CL,PA,Tx,yM,CM,Li,oy,vy,LU],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var kWc=0,NU=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+kWc;kWc+=1};NU.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};NU.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};NU.\u0275fac=function(a){return new (a||NU)(zf(qv))};
NU.\u0275dir=Kf({type:NU,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Ig("id",b.id),wg("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var OU=function(){};OU.\u0275fac=function(a){return new (a||OU)};OU.\u0275mod=Jf({type:OU});OU.\u0275inj=Tc({});var Wbb=function(a){return{$implicit:a}},PU=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new tj([]);this.filterText$=new tj("");this.filteredOptions$=Je([this.options$,this.filterText$]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;return b.filterFunction!==void 0&&b.filterFunction!==null?c.filter(function(f){return b.filterFunction(e,f)}):c}));this.valueChange=new hv;this.selected=new hv;this.destroyed$=
new ag(1);a&&this.handleKeydown(a.keydown$)};g=PU.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=Jw(Iw(new Nw(this.viewOptions)))};g.ngOnChanges=function(a){a.value&&lWc(this);a.options&&this.options$.next(this.options)};g.isSelected=function(a){return this.value===a};g.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};
var lWc=function(a){if(a.keyManager)if(a.includeEmptyOption&&a.isSelected(a.emptyOptionValue))a.keyManager.setActiveItem(0);else{var b=a.options.findIndex(function(c){return a.isSelected(c)});b!==-1&&(a.keyManager.setActiveItem(a.includeEmptyOption?b+1:b),mWc(a))}};PU.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
PU.prototype.handleKeydown=function(a){var b=this;a.pipe(gg(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;d==="ArrowUp"||d==="ArrowDown"?(c.preventDefault(),b.keyManager.onKeydown(c),mWc(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):ucc(b.keyManager),mWc(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var mWc=function(a){var b,c;if(a=(b=a.keyManager)==null?void 0:(c=b.activeItem)==null?void 0:c.id){var d;(d=document.getElementById(a))==null||d.scrollIntoView({block:"nearest"})}};PU.\u0275fac=function(a){return new (a||PU)(zf(oO,8))};
PU.\u0275cmp=B({type:PU,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&Wg(NU,5);if(a&2){var c;$g(c=ah())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&M("focus",function(){return lWc(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,ng("aria-activedescendant",a)("aria-disabled",b.disabled)("aria-label",b.label))},inputs:{value:"value",options:"options",
optionTemplate:"optionTemplate",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",label:"label",showFilterBar:"showFilterBar",filterFunction:"filterFunction"},outputs:{valueChange:"valueChange",selected:"selected"},standalone:!1,features:[Uu],decls:3,vars:4,consts:[["filterEl",""],["optionDisplay",""],["customOptionDisplay",""],["emptyOption",""],["class","filter-bar","onedevListOption","",4,"ngIf"],[4,"ngIf"],["onedevListOption","",1,"filter-bar"],["xmlns",
"http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"],["placeholder","Type to filter","spellcheck","false",3,"input"],["role","option","onedevListOption","",3,"option","click",4,"ngIf"],[4,"ngFor","ngForOf"],["role","option","onedevListOption","",3,"click","option"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],["aria-label","empty"]],template:function(a,b){a&1&&(C(0,Ubb,5,0,"div",4)(1,gcb,5,2,"ng-container",5),S(2,"async"));
a&2&&(D("ngIf",b.showFilterBar),z(),D("ngIf",T(2,2,b.filteredOptions$)))},dependencies:[Nv,Ov,Pv,NU,Qv],styles:["[role=option][_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;color:var(--text-default)}[role=option][_ngcontent-%COMP%]:hover{cursor:pointer}[role=option].active[_ngcontent-%COMP%], [role=option][_ngcontent-%COMP%]:active{background-color:var(--option-active-bg,#e8f0fe)}[role=option][aria-selected=true][_ngcontent-%COMP%]{background-color:var(--option-selected-bg,#d2e3fc)}.filter-bar[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;color:var(--text-default);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;border-bottom:1px solid var(--hairline,#dadce0)}.filter-bar[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{height:18px;width:18px;color:var(--icon,#5f6368);fill:currentColor}.filter-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;background-color:var(--surface-default,#fff);color:var(--text-default,#202124);outline:none;width:100%;padding-left:4px}"],
changeDetection:0});var nWc=["trigger"],icb=function(a){return{$implicit:a}},oWc=0,QU=function(a){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.label="";this.valueChange=new hv;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+oWc;this.onChange=function(){};this.onTouched=function(){};if(a===""||a==="true"||a==="required")this.required=!0;oWc++};Y(QU,xU);g=QU.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};g.writeValue=function(a){this.val=a};g.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};g.isActive=function(){return this.popupTrigger.isOpen||this.focused};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};var pWc=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};QU.prototype.setDisabledState=function(a){this.disabled=a};ea.Object.defineProperties(QU.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});QU.\u0275fac=function(a){return new (a||QU)(ae("required"))};
QU.\u0275cmp=B({type:QU,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&Wg(nWc,7);if(a&2){var c;$g(c=ah())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",showFilterBar:"showFilterBar",filterFunction:"filterFunction",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",openPopupOnInit:"openPopupOnInit"},
outputs:{valueChange:"valueChange"},standalone:!1,features:[hh([{provide:iy,useExisting:ld(function(){return QU}),multi:!0},{provide:xU,useExisting:ld(function(){return QU}),multi:!0}]),kg],decls:13,vars:20,consts:[["trigger","onedevPopupPanelTrigger"],["optionTemplateOrTextLabel",""],["textLabel",""],["panel","onedevPopupPanel"],["emptyValue",""],["onedevPopupPanelTrigger","",3,"focus","blur","click","closed","onedevPopupPanelTriggerDisabled","disabled","onedevPopupPanelTriggerFor"],[1,"cdk-visually-hidden"],
[4,"ngIf","ngIfElse"],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],["tabindex","0",1,"single-select-panel",3,"valueChange","selected","value","includeEmptyOption","emptyOptionValue","options","optionTemplate","label","showFilterBar","filterFunction"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label","empty"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"arrow-icon"],["d","M7 10l5 5 5-5H7z"]],
template:function(a,b){if(a&1){var c=r();I(0,"button",5,0);M("focus",function(){t(c);return v(b.focused=!0)})("blur",function(){t(c);return v(b.focused=!1)})("click",function(){t(c);var e=L(1);return v(e.open())})("closed",function(){t(c);b.onTouched();return v()});I(2,"span",6);Q(3);J();C(4,jcb,2,4,"ng-container",7)(5,mcb,1,2,"ng-template",null,1,nh)(7,pcb,3,2,"ng-template",null,2,nh)(9,qcb,2,0,"svg",8);J();I(10,"onedev-popup-panel",9,3)(12,"onedev-selectable-list",10);M("valueChange",function(e){t(c);
return v(b.onSelectionChange(e))})("selected",function(){t(c);var e=L(1);return v(e.close())});J()()}if(a&2){a=L(6);var d=L(11);wg("active",b.isActive());D("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);ng("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());z(3);ch(pWc(b));z();D("ngIf",b.valueTemplate)("ngIfElse",a);z(5);D("ngIf",b.displayArrowIcon);z();D("relayOnly",!0);z(2);D("value",b.value)("includeEmptyOption",b.includeEmptyOption)("emptyOptionValue",
b.emptyOptionValue)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)("showFilterBar",b.showFilterBar)("filterFunction",b.filterFunction)}},dependencies:[Ov,Pv,oO,PU,pO,qO],styles:["[_nghost-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;font-size:13px;padding:4px 4px 4px 6px;text-align:start}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.arrow-icon[_ngcontent-%COMP%]{margin-left:auto;width:18px;height:18px;color:var(--icon,#5f6368);fill:currentColor}.single-select-panel[_ngcontent-%COMP%]{display:block;min-width:85px;max-height:300px}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});var ycb=function(){return[]},RU=function(){this.data=n(sK);this.dialogRef=n(mK);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};g=RU.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=l(this.issues),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.customFieldMap;e=e.customFieldValueMap;if(!b){b=new Map;for(var f=l(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(Vj(h),e[h]||void 0)}f=l(b);for(h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;k=k.next().value;var q=d[h],u=e[h],A=void 0,G=(A=q)==null?void 0:A.type;if(q)if(G==="REPEATED_DATE"||G==="REPEATED_ENUM"||G==="REPEATED_NUMERIC"||G==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(h)||new Map;q=k.size===0;u=qWc(u);A=Array.from(k.keys()).concat(u);A=l(A);for(G=A.next();!G.done;G=A.next())G=G.value,u.includes(G)?k.has(G)||k.set(G,q||null):k.set(G,null);this.repeatedCustomFieldsMap.set(h,k)}else(!u&&k!==void 0||u&&!Pj(u,k))&&b.set(h,null);else b.delete(h)}d=l(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Qj(f))}this.customFields=Array.from(b.keys()).map(function(H){return a.get(H)}).filter(function(H){return H});
this.customFields=this.customFields.map(function(H){var N=b.get(H.customFieldId);H.hasMultipleValues=N===null;N?H=Object.assign(N,H):H.hasMultipleValues||H.type!=="ENUM"||(H.enumValue="");return H});c=l(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Qj(d))};
g.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};g.getCustomFieldName=function(a){return a.name};g.isCustomFieldRequired=function(a){return a.required};g.getCustomFieldAllowedValues=function(a){return a.allowedValue};g.getCustomFieldType=function(a){return a.type};
var tcb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},qWc=function(a){if(!a)return[];var b=a.repeatedTextValue||a.repeatedDateValue||a.repeatedEnumValue||a.repeatedNumericValue;return b?b.values.map(function(c){return a.repeatedDateValue?c.month+"/"+c.day+"/"+c.year:c.toString()}):[]},wcb=function(a){return a?Ho(a):null},Acb=function(a,b,c){for(var d=l(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(A){return A.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(A){return A.actions.length});if(c.valueChanged){d=l(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:void 0,action$jscomp$96:void 0},f=d.next()){f=f.value;var h=Qqa(f.customFieldValueMap,function(A){return A.customFieldId===b});e.issueValues$jscomp$1=qWc(h);c.valueMap.forEach(function(A){return function(G,H){G&&!A.issueValues$jscomp$1.includes(H)?A.issueValues$jscomp$1.push(H):G===!1&&(A.issueValues$jscomp$1=A.issueValues$jscomp$1.filter(function(N){return N!==
H}))}}(e));h=a.originalCustomFields.get(b).type;var k=[],q=[];h=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(A){return UEa(Wj(A))}):h=="REPEATED_NUMERIC"&&(q=e.issueValues$jscomp$1.map(function(A){return Number(A)}));var u={customFieldId:b};switch(h){case "REPEATED_TEXT":u.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":u.repeatedDateValue={values:k};break;case "REPEATED_ENUM":u.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":u.repeatedNumericValue=
{values:q}}e.action$jscomp$96={fieldName:"customField",customFieldValue:u,actionType:Jo(u)?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(A){return function(G){return G.actions.some(function(H){return Pj(A.action$jscomp$96,H)})}}(e));h!==-1?a.bulkEditOps[h].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$96],issueIds:[f.issueId]})}}},rWc=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!Pj(k,a.originalCustomFields.get(k.customFieldId))}),
c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d={customFieldId:e.customFieldId};switch(e.type){case "TEXT":d.textValue=e.textValue;break;case "DATE":d.dateValue=e.dateValue||void 0;break;case "ENUM":d.enumValue=e.enumValue;break;case "NUMERIC":var f=void 0;d.numericValue=(f=e.numericValue)!=null?f:void 0}if(e=Jo(d))d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var h=a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){a:if(k=
k.issueIds,bb(h)&&bb(k)&&h.length==k.length){for(var q=h.length,u=0;u<q;u++)if(h[u]!==k[u]){k=!1;break a}k=!0}else k=!1;return k});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:h})}};RU.\u0275fac=function(a){return new (a||RU)};
RU.\u0275cmp=B({type:RU,selectors:[["b-bulk-custom-field-dialog"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[1,"bv2-create-adv-field"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"medium","dialog-primary-action","save",3,"click"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],["name","customInput","placeholder","no value","type","text",3,"ngModel"],["step","any","name","customInput",
"type","number",3,"ngModel"],[3,"value","options","labelledById"],[3,"type","originalValueMap","enumChoices"],["name","customInput","placeholder","no value","type","text",3,"ngModelChange","ngModel"],["step","any","name","customInput","type","number",3,"ngModelChange","ngModel"],[3,"valueChange","value","required","customAriaLabelledBy","customFormId"],[3,"valueChange","value","options","labelledById"],[3,"onSave","type","originalValueMap","enumChoices"],["title","Clear values",3,"click"]],template:function(a,
b){a&1&&(I(0,"h2",0),Q(1,"Update custom fields"),J(),I(2,"mat-dialog-content"),E(3,rcb,2,0,"div"),Dg(4,Ecb,7,5,"div",1,Cg),J(),I(6,"mat-dialog-actions")(7,"button",2),M("class",function(){return b.dialogRef.close()}),Q(8,"Cancel"),J(),I(9,"button",3),M("click",function(){rWc(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),Q(10," Save "),J()());a&2&&(z(3),F(b.customFields.length===0?3:-1),z(),Eg(b.customFields))},dependencies:[uK,wK,yK,xK,QU,MU,Li,xy,oy,vy,LU,PA,Tx,YA,
cB],encapsulation:2});var Icb=function(){return[]},SU=function(){this.disabled=this.readonly=!1;this.save=new LA},sWc=function(a){return a.issue.customFieldMap[a.field.customFieldId]};SU.prototype.getDisplayValue=function(){var a,b,c=(b=(a=sWc(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};SU.prototype.getTooltip=function(){var a=this.field.customFieldId;a=this.field.shared?"(Shared Field "+a+". see go/b-scf)":"[ID: "+a+"]";var b;return((b=this.field.description)!=null?b:"")+" "+a};
var Hcb=function(a){return(a=Io(sWc(a)))&&a.values===void 0?a:null},Fcb=function(a){return(a=Io(sWc(a)))&&a.values!==void 0?a.values:null};ea.Object.defineProperties(SU.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});SU.\u0275fac=function(a){return new (a||SU)};
SU.\u0275cmp=B({type:SU,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&Wg(VL,5);if(a&2){var c;$g(c=ah())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},standalone:!1,decls:1,vars:1,consts:[[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],
[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"],[3,"valuesChange","readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],[3,"valueChange","readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"]],template:function(a,b){a&1&&E(0,Kcb,2,1);if(a&
2){var c;F((c=sWc(b))?0:-1,c)}},dependencies:[hN,VL],encapsulation:2});var TU=function(){};TU.\u0275fac=function(a){return new (a||TU)};TU.\u0275mod=Jf({type:TU});TU.\u0275inj=Tc({imports:[ZB,iN,XL]});var Lcb=function(){this.assignee=this.reporter=this.team=null;this.assigneeEmail=void 0;this.verifier=null;this.verifierEmail=void 0;this.duplicateOfIssueId=this.inProd=this.verifiedInVersion=this.targetedToVersion=this.foundInVersion=this.lastViewedTime=this.verifiedTime=this.resolvedTime=this.blockedByIssueId=this.blockingIssueId=this.hotlistId=this.postmortem=this.changelist=this.collaborator=this.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.lastModifier=
this.ccCount=this.collaboratorCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.escalationOwner=this.issueAccessLevel=this.sloEndTime=this.sloStartTime=this.sloStatus=this.position=this.effort=null};var UU=function(){Z.apply(this,arguments);var a=this;this.componentFridge=n(jD);this.editIssueService=n(oL);this.issueFridge=n($E);this.matDialog=n(tK);this.paramsService=n(aL);this.triageService=n(TG);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new LA;this.issueId$=this.triageService.currentIssueId$;this.issueIds$=this.triageService.currentIssueIds$;this.teamId=this.paramsService.params.teamId;this.triageViewId=this.paramsService.params.triageId;this.issues$=
this.issueIds$.pipe(fg(function(b){return a.issueFridge.watchSet(b)}));this.components$=this.issues$.pipe(fg(function(b){b=b.map(function(c){return c.snapshot[0].componentId}).filter(function(c){return c!==null});return a.componentFridge.watchSet(b)}));this.bulkEditUpdate$=new tj([]);this.issueRows$=Je([this.issues$,this.components$]).pipe(y(function(b){b=l(b);var c=b.next().value;b=b.next().value;var d=[];c=l(c);for(var e=c.next(),f={};!e.done;f={issue$jscomp$244:void 0},e=c.next())f.issue$jscomp$244=
e.value,e=b.find(function(h){return function(k){return k.componentId===h.issue$jscomp$244.snapshot[0].componentId}}(f)),d.push(Ncb(f.issue$jscomp$244,e));return d}));this.updatedIssueRows$=Je([this.issueRows$,this.bulkEditUpdate$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?tWc(b,c):b}));this.customFieldConfigs$=Ytc(this.triageService.triageDataFactory.get(this.teamId,this.triageViewId),this.phase,this.subphase);this.visibleCustomFields$=this.issueId$.pipe(fg(function(b){return b?
a.editIssueService.issueFields(b).visibleCustomFields$:Ce(void 0)}));this.customFields$=Je([this.visibleCustomFields$,this.customFieldConfigs$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=(c==null?void 0:c.map(function(e){return e.customFieldId}))||[];if(b=b==null?void 0:b.filter(function(e){return d.includes(String(e.customFieldId))}))return b}),cg({refCount:!0,bufferSize:1}))};Y(UU,Z);UU.\u0275dir=Z.\u0275dir;
UU.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.customFieldConfigs$.subscribe(function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.editableIssue.setCustomFieldValue(Number(c.customFieldId),c.defaultValues[0].value)}}))};
var Ocb=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return c=a.matDialog.open(RU,{data:b,width:"500px"}),x(e,Ge(nK(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);ze(e)})};UU.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var tWc=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issueIds;d=l(d.actions);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.fieldName==="customField"&&(e=e.customFieldValue))for(var f=e.customFieldId,h=l(c),k=h.next(),q={};!k.done;q={issueId$jscomp$296:void 0},k=h.next())q.issueId$jscomp$296=k.value,(k=a.find(function(u){return function(A){return A.issueId===u.issueId$jscomp$296}}(q)))&&(k.customFieldValueMap[f]=e)}return a};
UU.\u0275fac=function(){var a;return function(b){return(a||(a=fe(UU)))(b||UU)}}();
UU.\u0275cmp=B({type:UU,selectors:[["triage-custom-fields-editor"]],inputs:{editableIssue:"editableIssue",hasMultipleIssues:"hasMultipleIssues",phase:"phase",subphase:"subphase"},outputs:{onCustomFieldBulkEdit:"onCustomFieldBulkEdit"},standalone:!1,features:[kg],decls:2,vars:1,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner","align-items-center"],[1,"bv2-editable-title"],["type","button","mat-button","",1,"gmat-button",3,"click"],[3,"issue",
"field"],[3,"save","issue","field"]],template:function(a,b){a&1&&E(0,Qcb,2,3)(1,Scb,3,2);a&2&&F(b.hasMultipleIssues?0:1)},dependencies:[SU,PA,Tx,Qv],encapsulation:2,changeDetection:0});var uWc=new yd("SearchBarClientConfig");var VU=function(a){var b=new JLc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new Xxc(b.getPeopleApiEnv(),new Yxc(""))};VU.\u0275fac=function(a){return new (a||VU)(nd(uWc))};VU.\u0275prov=Sc({token:VU,factory:VU.\u0275fac});var WU=function(a,b,c){this.clientConfig=a;this.searchBarService=b;this.searchBarEl=c;this.selectionChange=new hv;this.enterKeyDown=new hv;this.sessionOptions=(new pt).setFilter(vWc);this.destroyed$=new ag(1)};WU.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.searchBar.dispose()};WU.prototype.select=function(a){return this.searchBar.select(a)};WU.prototype.deselect=function(a){this.searchBar.deselect(a)};
WU.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.searchBarFactory.createConfig(this.searchBarService.environmentConfig);Tcb(b,this.config);var c;this.searchBar=(c=this.clientConfig.searchBarFactory)==null?void 0:c.create(this.searchBarEl.nativeElement,this.searchBarService.peopleStore,b,this.sessionOptions);this.searchBar.subscribeToSelectionChanged(function(e){a.selectionChange.emit(e)});this.searchBar.subscribeToEnterKeyDown(function(e){a.enterKeyDown.emit(e)});var d;((d=this.config)==
null?void 0:d.preselectedIds)!=null&&this.searchBar.select(this.config.preselectedIds)};WU.\u0275fac=function(a){return new (a||WU)(zf(uWc),zf(VU),zf(ff))};
WU.\u0275dir=Kf({type:WU,selectors:[["div","peoplekitSearchBar",""]],hostAttrs:[1,"peoplekit-searchbar-anchor"],inputs:{config:[0,"peoplekitSearchBarConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"]},outputs:{selectionChange:"peoplekitSearchBarSelectionChange",enterKeyDown:"peoplekitSearchBarEnterKeyDown"},exportAs:["peoplekitSearchBar"],standalone:!1});var vWc=Qq(1);var wWc=["peopleKitDiv"],XU=function(){this.currEmails=void 0;this.autocompleteConfigService=n(WO);this.darkmodeService=n(VO);this.emails$=new tj(void 0);this.refresh$=Ue(this.emails$,this.darkmodeService.clientDarkmode$).pipe(y(function(){}));this.ariaLabel="";this.singleUserMode=this.shouldHighlight=!1;this.selectionChange=new LA;this.singleUserSelectionChange=new LA;this.searchBarEnterKeyDown=new LA};
XU.prototype.singleUserChange=function(a){var b,c=((b=this.currEmails)==null?0:b.length)?this.currEmails[0]:"";b=CLc(c,a);if(b!==void 0){var d;(d=this.peopleKitDiv)==null||d.deselect([Ht(c)]);this.currEmails=[b];a=a.filter(function(e){return e.result().getPrimaryTarget().getValue()!==c});this.selectionChange.emit(a);this.singleUserSelectionChange.emit(b)}};
ea.Object.defineProperties(XU.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.emails=a?[a]:[]}},emails:{configurable:!0,enumerable:!0,set:function(a){if(this.currEmails!==void 0||a!==void 0)this.currEmails!==void 0&&a!==void 0&&Pua(this.currEmails,a)||(this.currEmails=a,this.emails$.next(a))}}});XU.\u0275fac=function(a){return new (a||XU)};
XU.\u0275cmp=B({type:XU,selectors:[["b-peoplekit-searchbar"]],viewQuery:function(a,b){a&1&&(Wg(wWc,5,WU),Wg(wWc,5));if(a&2){var c;$g(c=ah())&&(b.peopleKitDiv=c.first);$g(c=ah())&&(b.peopleKitRawDiv=c)}},inputs:{ariaLabel:"ariaLabel",shouldHighlight:"shouldHighlight",singleUserMode:"singleUserMode",email:"email",emails:"emails"},outputs:{selectionChange:"selectionChange",singleUserSelectionChange:"singleUserSelectionChange",searchBarEnterKeyDown:"searchBarEnterKeyDown"},standalone:!1,decls:1,vars:1,
consts:[["peopleKitDiv",""],[3,"refreshable"],["type","text","aria-expanded","true","peoplekitSearchBar","",3,"peoplekitSearchBarSelectionChange","peoplekitSearchBarEnterKeyDown","peoplekitSearchBarConfig"]],template:function(a,b){a&1&&C(0,Vcb,3,6,"ng-template",1);a&2&&D("refreshable",b.refresh$)},dependencies:[rH,WU,Qv],encapsulation:2});var xWc=["peopleKitDiv"],YU=function(){this.cdr=n(NA,{self:!0});this.activeSession=n(Es);this.autocompleteConfigService=n(WO);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new LA;this.onCancel=new LA;this.newlySelectedUsersString=this.invalidMessage="";this.enablePeoplekitAc=Yr(this.activeSession,"enablePeoplekitUserAc")};
YU.prototype.textPopupSubmit=function(a,b){var c=this,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return c.enablePeoplekitAc?(h=[c.newlySelectedUsersString,(f=(e=c.peopleKitDiv)==null?void 0:e.peopleKitRawDiv.get(0).nativeElement.querySelector("input").value)!=null?f:""].filter(Boolean),d=PKa(h.join(","))):d=a.value.input,c.inputValidator?x(u,c.inputValidator(d),3):u.jumpTo(2);u.nextAddress!=2&&(c.invalidMessage=u.yieldResult,c.cdr.detectChanges());if(!a.valid||c.invalidMessage)return u.return();
(k=a)==null||k.reset();(q=b.querySelector("input"))==null||q.focus();c.onAddItems.emit(d);c.newlySelectedUsersString="";ze(u)})};YU.\u0275fac=function(a){return new (a||YU)};
YU.\u0275cmp=B({type:YU,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&Wg(xWc,5,XU);if(a&2){var c;$g(c=ah())&&(b.peopleKitDiv=c.first)}},inputs:{actionName:"actionName",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",title:"title"},outputs:{onAddItems:"onAddItems",onCancel:"onCancel"},standalone:!1,features:[hh([NA])],decls:11,vars:9,consts:[["textPopupForm","ngForm","formEl",""],["peopleKitDiv",""],[3,"ngSubmit"],["type","text","name","input",
"ngModel","","required","","aria-expanded","true","autofocus","",3,"bContactAutocomplete"],["aria-expanded","true"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],["aria-expanded","true",3,"selectionChange","searchBarEnterKeyDown"]],template:function(a,b){if(a&1){var c=r();I(0,"form",2,0);M("ngSubmit",
function(){t(c);var d=L(1),e=L(2);return v(b.textPopupSubmit(d,e))});E(3,Wcb,1,4,"input",3)(4,Ycb,2,3,"b-peoplekit-searchbar",4);I(5,"div",5)(6,"button",6);K(7,"mat-icon",7);J();I(8,"button",8);M("click",function(){t(c);return v(b.onCancel.emit())});K(9,"mat-icon",9);J()();E(10,Zcb,2,4,"mat-error");J()}a&2&&(a=L(1),z(3),F(b.enablePeoplekitAc?4:3),z(3),qg("aria-label","Apply ",b.actionName," to ",b.title),D("disabled",!a.valid||!b.isAllowedToEditCollection),z(2),qg("aria-label","Discard ",b.actionName,
" to ",b.title),z(2),F(b.invalidMessage?10:-1))},dependencies:[aB,bJ,wy,Li,oy,py,Gy,vy,ty,PA,Tx,Oy,XU],encapsulation:2,changeDetection:0});var yWc=["addButton"],zWc=["removeButton"],ZU=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new LA;this.removeCurrentUser=new LA;this.onAddUsers=new LA;this.onRemoveUsers=new LA};ZU.prototype.closeAddPopup=function(){var a,b=l((a=this.popupTriggers)!=null?a:[]);for(a=b.next();!a.done;a=b.next())this.closeInlineDialog(a.value)};var bdb=function(a){var b,c=l((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
ZU.prototype.handleAddItems=function(a){adb(a,this.onAddUsers);this.closeAddPopup()};ZU.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var adb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275cmp=B({type:ZU,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(Wg(yWc,5),Wg(zWc,5),Wg(TM,5));if(a&2){var c;$g(c=ah())&&(b.addButtonEl=c.first);$g(c=ah())&&(b.removeButtonEl=c.first);$g(c=ah())&&(b.popupTriggers=c)}},inputs:{inputValidator:"inputValidator",isAllowedToEditCollection:"isAllowedToEditCollection",subtitle:"subtitle",title:"title"},outputs:{addCurrentUser:"addCurrentUser",removeCurrentUser:"removeCurrentUser",onAddUsers:"onAddUsers",onRemoveUsers:"onRemoveUsers"},
standalone:!1,decls:22,vars:12,consts:[["addButton",""],["removeButton",""],["addUsersPopup",""],["removeUsersPopup",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner","align-items-center"],[1,"bv2-editable-title"],[1,"subtitle"],[1,"flex-kids-x","gap"],["type","button","mat-button","",1,"small",3,"xapInlineDialogClick","dialogLabel"],["type","button","mat-button","",1,"gmat-button","small",3,"click","disabled"],[3,"onAddItems","onCancel","actionName",
"inputValidator","isAllowedToEditCollection","title"]],template:function(a,b){if(a&1){var c=r();I(0,"div",4)(1,"div",5)(2,"div",6)(3,"label");Q(4);J()();I(5,"div",7);Q(6);J();I(7,"div",8)(8,"button",9,0);Q(10," Add ");J();I(11,"button",9,1);Q(13," Remove ");J();I(14,"button",10);M("click",function(){t(c);return v(b.addCurrentUser.emit())});Q(15," Add me ");J();I(16,"button",10);M("click",function(){t(c);return v(b.removeCurrentUser.emit())});Q(17," Remove me ");J()()()();C(18,$cb,3,4,"ng-template",
null,2,nh)(20,cdb,3,4,"ng-template",null,3,nh)}if(a&2){a=L(19);var d=L(21);z(4);R(" ",b.title," ");z(2);ch(b.subtitle);z(2);Pg("dialogLabel","Add users to ",b.title);D("xapInlineDialogClick",a);z(3);Pg("dialogLabel","Remove users from ",b.title);D("xapInlineDialogClick",d);z(3);D("disabled",!b.isAllowedToEditCollection);ng("aria-label","Add me to "+b.title);z(2);D("disabled",!b.isAllowedToEditCollection);ng("aria-label","Remove me from "+b.title)}},dependencies:[PA,Tx,YU,PM,OM,TM],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var jdb=function(a,b){return b.name},$U=function(){Z.apply(this,arguments);var a=this;this.hotlistPickerService=n(AS);this.issueFullFridge=n(EF);this.paramsService=n(aL);this.triageService=n(TG);this.hotlistRecommendationFridge=n(ME);this.analytics=n(CF);this.hotlistIdsChange=new LA;this.hotlistIdsMapChange=new LA;this.areAllHotlistsEqual=!0;this.hasMultipleIssues=!1;this.hotlistIdSet=new Set;this.selectedHotlistIdsMap=new Map;this.subphase=this.phase=void 0;this.triageViewId=this.paramsService.params.triageId;
this.teamId=this.paramsService.params.teamId;this.issueId$=this.triageService.currentIssueId$.pipe(Ve(Tk),Xf());this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(Ve(Tk),Xf());this.issues$=this.issueIds$.pipe(fg(function(b){return a.issueFullFridge.watchSet(b)}));this.recommendations$=this.issueId$.pipe(fg(function(b){return a.hotlistRecommendationFridge.watch(b)}),y(function(b){return((b==null?void 0:b.recommendations)||
[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Tk).slice(0,2)}))};Y($U,Z);$U.\u0275dir=Z.\u0275dir;
$U.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,h,k,q,u,A,G,H,N,O,U;return w(function(da){if(da.nextAddress==1)return x(da,Ge(a.issue$),2);if(da.nextAddress!=3)return b=da.yieldResult,x(da,Ge(a.issues$),3);d=(c=da.yieldResult)!=null?c:[];a.hasMultipleIssues=d.length>1;q=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(h=f.hotlistId)==null?void 0:h.map(String))!=null?k:[];a.hotlistIdSet=new Set(q);a.hotlistIdsChange.emit([].concat(p(a.hotlistIdSet)));u=l(d);for(A=u.next();!A.done;A=u.next())G=
A.value,O=N=H=void 0,U=(O=(H=G)==null?void 0:(N=H.snapshot[0])==null?void 0:N.hotlistId)!=null?O:[],a.selectedHotlistIdsMap.set(G.issueId.toString(),new Set(U.map(String)));a.areAllHotlistsEqual=AWc(a);a.subscriptions.add(Ztc(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(ma){var ra=[],Ga=[];ma=l(ma);for(var Na=ma.next();!Na.done;Na=ma.next())Na=Na.value,Na.operation==="ADD"&&ra.push.apply(ra,p(Na.hotlistIds)),Na.operation==="REMOVE"&&Ga.push.apply(Ga,
p(Na.hotlistIds));ra.length&&a.addHotlists(ra);Ga.length&&a.removeHotlists(Ga)}));a.subscriptions.add(a.recommendations$.pipe(Uf()).subscribe(function(ma){ma.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","Triage")}));ze(da)})};$U.prototype.openHotlistModal=function(){this.hasMultipleIssues?ldb(this):BWc(this)};
var BWc=function(a){var b,c,d,e,f;w(function(h){if(h.nextAddress==1)return x(h,Ge(a.issueId$),2);if(h.nextAddress!=3)return b=h.yieldResult,x(h,qRc(a.hotlistPickerService,b,[].concat(p(a.hotlistIdSet)).map(Number),!1),3);c=h.yieldResult;if(!c)return h.return();d=c;e=d.addedIds;f=d.removedIds;e.length>0&&a.addHotlists(e);f.length>0&&a.removeHotlists(f);ze(h)})},ldb=function(a){var b,c,d,e,f,h,k,q,u,A,G,H,N;return w(function(O){if(O.nextAddress==1)return x(O,Ge(a.issueIds$),2);if(O.nextAddress!=3){b=
O.yieldResult;c=new Map;d=l(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,h=l(f),k=h.next().value,q=h.next().value,u=k,A=q,c.set(u,new Set([].concat(p(A)).map(Number)));return x(O,vRc(a.hotlistPickerService,c),3)}G=O.yieldResult;if(!G)return O.return();CWc(a,G);a.areAllHotlistsEqual=AWc(a);a.areAllHotlistsEqual&&((H=a.selectedHotlistIdsMap.get(b[0]))?(N=[].concat(p(H)).map(String),a.hotlistIdSet=new Set(N)):a.hotlistIdSet.clear());ze(O)})};
$U.prototype.addHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.add(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.add(f.value)});this.hotlistIdsChange.emit([].concat(p(this.hotlistIdSet)))};$U.prototype.removeHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.delete(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.delete(f.value)});this.hotlistIdsChange.emit([].concat(p(this.hotlistIdSet)))};
var gdb=function(a,b){var c,d,e,f=b==null?void 0:(c=b.content)==null?void 0:(d=c.recommendedHotlist)==null?void 0:(e=d.hotlistId)==null?void 0:e.toString();f&&!a.hotlistIdSet.has(f)&&a.hotlistIdSet.add(f);a.updateSelectedHotlists(function(h){f&&h.add(f)});a.hotlistIdsChange.emit([].concat(p(a.hotlistIdSet)))},AWc=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(p(a.selectedHotlistIdsMap.values()));a=b[0];b=l(b);for(var c=b.next();!c.done;c=b.next())if(!Sta(a,c.value))return!1;
return!0},CWc=function(a,b){b=b.issueMapDiffs;for(var c=l(b.values()),d=c.next(),e={};!d.done;e={added$jscomp$10:void 0,removed$jscomp$7:void 0},d=c.next())d=d.value,e.added$jscomp$10=d.added,e.removed$jscomp$7=d.removed,a.updateSelectedHotlists(function(f){return function(h){for(var k=l(f.added$jscomp$10),q=k.next();!q.done;q=k.next())h.add(q.value.toString());k=l(f.removed$jscomp$7);for(q=k.next();!q.done;q=k.next())h.delete(q.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
$U.prototype.updateSelectedHotlists=function(a){var b=[].concat(p(this.selectedHotlistIdsMap.values()));b=l(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};$U.\u0275fac=function(){var a;return function(b){return(a||(a=fe($U)))(b||$U)}}();
$U.\u0275cmp=B({type:$U,selectors:[["triage-hotlists-editor"]],inputs:{phase:"phase",subphase:"subphase"},outputs:{hotlistIdsChange:"hotlistIdsChange",hotlistIdsMapChange:"hotlistIdsMapChange"},standalone:!1,features:[kg],decls:2,vars:3,consts:[[1,"bv2-issue-metadata-field","bv2-issue-metadata-field-inner","flex-1"],[1,"bv2-editable-title"],[1,"flex-1","hotlist-container","bv2-editable-value","align-items-center"],["type","button","mat-stroked-button","","aria-label","Add Hotlist","matTooltip","Add Hotlist",
1,"small","add-hotlists-btn",3,"click"],["svgIcon","add",1,"icon-xs","margin-xs-right"],[1,"multiple-values"],[3,"id"],[3,"removeHotlist","id"],["analyticsLabel","Triage",3,"hotlist","recommendationId","issueId","updateHotlistsInstantly"],["analyticsLabel","Triage",3,"onAccept","hotlist","recommendationId","issueId","updateHotlistsInstantly"]],template:function(a,b){a&1&&(E(0,mdb,12,4,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issue$))?0:-1,c)}},dependencies:[aB,PA,Tx,YA,cB,hU,lU,Qv],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var aV=function(){var a=this;this.elementRef=n(ff);this.eventType="click";this.clickOutside=new LA;this.clickHandler=function(b){var c=b.target instanceof Element?b.target:b.target instanceof Node?b.target.parentElement:null;c&&(c.closest(".cdk-overlay-container")||a.elementRef.nativeElement.contains(c)||a.clickOutside.emit(b))}};aV.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
aV.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};aV.\u0275fac=function(a){return new (a||aV)};aV.\u0275dir=Kf({type:aV,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var bV=function(){};bV.\u0275fac=function(a){return new (a||bV)};bV.\u0275mod=Jf({type:bV});bV.\u0275inj=Tc({});var cV=function(){};cV.\u0275fac=function(a){return new (a||cV)};cV.\u0275mod=Jf({type:cV});cV.\u0275inj=Tc({imports:[GM,ZB,cJ,Ly,yx,bV,XH,yQ,fO,$B,cC,EL]});var dV=function(){};dV.\u0275fac=function(a){return new (a||dV)};dV.\u0275mod=Jf({type:dV});dV.\u0275inj=Tc({imports:[ZB,$B,HQ]});var eV=function(){};eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275mod=Jf({type:eV});eV.\u0275inj=Tc({imports:[fR,ZB,$B,jR,WJ,cC,dV]});var fV=function(){};fV.\u0275fac=function(a){return new (a||fV)};fV.\u0275mod=Jf({type:fV});fV.\u0275inj=Tc({imports:[zx,zx]});var gV=function(){};gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275mod=Jf({type:gV});gV.\u0275inj=Tc({imports:[ZB,$B,fV]});var hV=function(){};hV.\u0275fac=function(a){return new (a||hV)};hV.\u0275mod=Jf({type:hV});hV.\u0275inj=Tc({imports:[ZB,$B,WJ,gV]});var iV=function(){};iV.\u0275fac=function(a){return new (a||iV)};iV.\u0275mod=Jf({type:iV});iV.\u0275inj=Tc({imports:[ZB]});var jV=function(){};jV.\u0275fac=function(a){return new (a||jV)};jV.\u0275mod=Jf({type:jV});jV.\u0275inj=Tc({imports:[ZB,WJ,iV,hV,$B]});var kV=function(){};kV.\u0275fac=function(a){return new (a||kV)};kV.\u0275mod=Jf({type:kV});kV.\u0275inj=Tc({imports:[Yv,Aw,yx,ux,VJ]});var lV=function(){};lV.\u0275fac=function(a){return new (a||lV)};lV.\u0275mod=Jf({type:lV});lV.\u0275inj=Tc({imports:[Yv,Ly,kV,PQ]});var mV=function(){};mV.\u0275fac=function(a){return new (a||mV)};mV.\u0275mod=Jf({type:mV});mV.\u0275inj=Tc({imports:[ZB,FL,lV]});var nV=function(){};nV.\u0275fac=function(a){return new (a||nV)};nV.\u0275mod=Jf({type:nV});nV.\u0275inj=Tc({imports:[Yv]});var oV=function(){};oV.\u0275fac=function(a){return new (a||oV)};oV.\u0275mod=Jf({type:oV});oV.\u0275inj=Tc({imports:[ZB,XH,PQ,nV]});var pV=function(){};pV.\u0275fac=function(a){return new (a||pV)};pV.\u0275mod=Jf({type:pV});pV.\u0275inj=Tc({imports:[ZB,cJ,Ly,$B,ZM,EL,nV,mV,oV]});var DWc=function(a){this.uploadUrl_=a};var EWc=function(){Hp.call(this)};zu(EWc,Hp);var qV=function(a){oF.call(this,a)};zu(qV,oF);var rV=function(a){oF.call(this,a)};zu(rV,oF);var FWc=function(a,b){this.name_=a;this.inputElement_=b};FWc.prototype.getName=function(){return this.name_};var GWc=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var sV=function(){Hp.call(this);this.name_="closure_frame"+HWc++;this.iframesForDisposal_=[];IWc[this.name_]=this},tV;zu(sV,Hp);var IWc={},HWc=0,JWc=function(a,b){var c=Kp(a);Huc(b,function(d,e){Array.isArray(d)||(d=[d]);Va(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=sV.prototype;g.form_=null;g.iframe_=null;g.iframeName_=null;g.nextIframeId_=0;g.active_=!1;g.complete_=!1;g.success_=!1;g.lastUri_=null;g.lastContent_=null;g.lastErrorCode_=0;
g.iframeDisposalTimer_=null;
g.send=function(a,b,c,d){if(this.active_)throw Error("cf");this.lastUri_=a=new Qp(a);b=b?b.toUpperCase():"GET";c&&Zuc(a);tV||(tV=Gfc("FORM"),tV.acceptCharset="utf-8",c=tV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(tV));this.form_=tV;b=="GET"&&JWc(this.form_,a.queryData_);d&&JWc(this.form_,d);c=a.toString();d=this.form_;c=ai(new Wh(c===null?"null":c===void 0?"undefined":c));c!==void 0&&(d.action=c);this.form_.method=
b;KWc(this);LWc(this)};g.abort=function(a){if(this.active_){var b=MWc(this);if(b)if(pF(b))b.removeAllListeners();else if(b=Jqc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)sF(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");NWc(this)}};
g.disposeInternal=function(){this.active_&&this.abort();sV.superClass_.disposeInternal.call(this);this.iframe_&&OWc(this);LWc(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete IWc[this.name_]};g.isComplete=function(){return this.complete_};g.isSuccess=function(){return this.success_};g.isActive=function(){return this.active_};g.getResponseText=function(){return this.lastContent_};g.getResponseJson=function(){return Swc(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return BOc(this.lastErrorCode_)};
var KWc=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=Kp(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";Np?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");Kp(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=Jfc(a.iframe_);if(document.baseURI){var d=Sr(b);
d=ci('<head><base href="'+Sr(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Sr(b),d=ci('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(ei(d));Ip(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=xz("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];Nfc(d[e],k,!1);k.join("")!=h&&(Ez(d[e],h),d[e].value=h)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=xz("SELECT",a.form_);f=xz("SELECT",
d);h=0;for(k=e.length;h<k;h++)for(var q=xz("OPTION",e[h]),u=xz("OPTION",f[h]),A=0,G=q.length;A<G;A++)u[A].selected=q[A].selected;e=xz("INPUT",a.form_);f=xz("INPUT",d);h=0;for(k=e.length;h<k;h++)if(e[h].type=="file"&&e[h].value!=f[h].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),Op&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(H){rF(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
sV.prototype.onIframeLoaded_=function(){rF(MWc(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?Jfc(MWc(this)):null;this.complete_=!0;this.active_=!1;try{var b=a.body;this.lastContent_=b.textContent||b.innerText}catch(e){var c=1}var d;c||typeof this.errorChecker_!="function"||(d=this.errorChecker_(a))&&(c=4);c?this.handleError_(c):(this.success_=!0,this.lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),NWc(this))}catch(e){this.handleError_(1)}};
sV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),NWc(this),this.errorHandled_=!0)};
var NWc=function(a){OWc(a);LWc(a);a.form_=null;a.dispatchEvent("ready")},OWc=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);Op?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
sV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();Cz(a)}};var LWc=function(a){a.form_&&a.form_==tV&&Bz(a.form_)},MWc=function(a){return a.iframe_?Jfc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
sV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?Jfc(MWc(this)):null;a&&!o8b(a,"documentUri")?(rF(MWc(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var PWc=function(a,b,c,d,e){Hp.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.form_=c;a=new Qp(a);Jr(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new sV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new Is(this);Fr(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Y(PWc,EWc);g=PWc.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("cf");var c=new Qp(this.url_||b.action);a.lastUri_=c;a.form_=b;b=a.form_;c=ai(c.toString());c!==void 0&&(b.action=c);KWc(a)};g.getBytesTransferred=function(){return null};
g.getResponseCode=function(){return null};g.getErrorType=function(){return null};g.getResponseHeaders=function(){return null};g.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new qV("q"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new qV("n"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new qV("p"))};var SWc=function(a,b){a.name!==void 0?(this.name=a.name,this.code=QWc[a.name]):(this.code=a=a.code,this.name=RWc(a));wa.call(this,obc("%s %s",this.name,b))};zu(SWc,wa);
var RWc=function(a){var b=Pqa(QWc,function(c){return a==c});if(b===void 0)throw Error("df`"+a);return b},uV={},QWc=(uV.AbortError=3,uV.EncodingError=5,uV.InvalidModificationError=9,uV.InvalidStateError=7,uV.NotFoundError=1,uV.NotReadableError=4,uV.NoModificationAllowedError=6,uV.PathExistsError=12,uV.QuotaExceededError=10,uV.SecurityError=2,uV.SyntaxError=8,uV.TypeMismatchError=11,uV);var TWc=function(a,b){oF.call(this,a.type,b);this.event_=a};zu(TWc,oF);var UWc=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};Fp(function(){if(!ya.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return b.size!=100?!1:!0});var VWc=Fp(function(){if(!ya.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return UWc(b,0,1)===null?!1:!0});var WWc=function(){Hp.call(this);this.reader_=new FileReader;this.reader_.onloadstart=mt(this.dispatchProgressEvent_,this);this.reader_.onprogress=mt(this.dispatchProgressEvent_,this);this.reader_.onload=mt(this.dispatchProgressEvent_,this);this.reader_.onabort=mt(this.dispatchProgressEvent_,this);this.reader_.onerror=mt(this.dispatchProgressEvent_,this);this.reader_.onloadend=mt(this.dispatchProgressEvent_,this)};zu(WWc,Hp);g=WWc.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new SWc(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new SWc(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new TWc(a,this))};g.disposeInternal=function(){WWc.superClass_.disposeInternal.call(this);delete this.reader_};g.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};g.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
g.readAsText=function(a,b){this.reader_.readAsText(a,b)};var XWc=function(a){var b=new YH;a.listen("loadend",yu(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?(Zvc(c),ZH(c,!1,f)):c.callback(e);d.dispose()},b,a));return b};var vV=function(){Xq.call(this)};Y(vV,Xq);vV.prototype.createXhr=function(){var a=Xq.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=mt(this.onProgress_,this));return a};vV.prototype.onProgress_=function(a){this.dispatchEvent(a)};var YWc=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},$Wc=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Yq(function(){a.delayCallId_=null;b()},ZWc(a),a);a.attempt_=c;return!0};YWc.prototype.reset=function(){this.delayCallId_&&Zq(this.delayCallId_);this.attempt_=-1};var ZWc=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var odb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var aXc=function(a){Hp.call(this);a=a||new GWc;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new YWc;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new Is(this);Fr(this,this.eventHandler_);this.url_=this.blob_=null;this.method_=void 0;this.metadata_=this.headers_=null;this.maxChunkSize_=a.maxChunkSize_;this.chunkSize_=
null;this.retryOnHttpClientErrorEnabled_=a.retryOnHttpClientErrorEnabled_;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.responseText_=this.responseHeaders_=this.responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};zu(aXc,EWc);g=aXc.prototype;g.run=function(){wV(this)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.getErrorType=function(){return this.errorType_};
g.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new vV,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new qV("q"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,bXc(this))};
var wV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):$Wc(a.retryIterator_,function(){return bXc(a)})||xV(a,1,"Transfer encountered too many consecutive failures.")},bXc=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(VWc()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=UWc(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new vV;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=mt(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new rV("s"));e=Object.assign({},a.headers_||{},{"X-Goog-Upload-Command":"upload"+(e?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.request_.send(b,"POST",c,e);break;case "Query":a.query_();break;default:throw Error("ef");}},xV=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new qV("p"))};g=aXc.prototype;
g.start_=function(){this.request_=new vV;var a=Wi(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=pdb(a);a["X-Goog-Upload-Protocol"]="resumable";a["X-Goog-Upload-Command"]="start";this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onStartComplete_);this.request_.withCredentials_=this.withCredentials_;this.request_.send(this.url_,this.method_,this.metadata_,a);this.lastCommandResponseCode_=null;this.dispatchEvent(new rV("s"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new rV("t"));cXc(b)?dXc(this,b):eXc(b)?(b=Ar(a.target.getAllResponseHeaders()),this.dispatchEvent(new qV("o")),a=Br(b,"X-Goog-Upload-URL"),b=(b=Br(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?xV(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new DWc(a),this.dispatchEvent(new qV("r")),this.state_=
"Upload",this.retryIterator_.reset(),wV(this))):wV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new qV("m"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return w(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new rV("t"));if(d.retryOnHttpClientErrorEnabled_?fXc(e)||e.getStatus()==404:cXc(e))return d.bytesTransferred_=a,dXc(d,e),h.return();if(eXc(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return x(h,gXc(d),4);case 4:f=h.yieldResult;case 3:if(f)return xV(d,3,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";wV(d);return h.return();case 2:if(b)return xV(d,4,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();wV(d);return h.return()}})};
g.query_=function(){this.request_=new vV;this.eventHandler_.removeAll();this.eventHandler_.listen(this.request_,"complete",this.onQueryComplete_);var a=Object.assign({},this.headers_||{},{"X-Goog-Upload-Command":"query"});this.request_.send(this.transferHandle_.uploadUrl_,"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new rV("s"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new rV("t"));cXc(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),dXc(this,b)):eXc(b)?(a=Ar(a.target.getAllResponseHeaders()),a=parseInt(Br(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?xV(this,5,"Server did not respond with current offset."):a<this.offset_?xV(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?xV(this,7,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.bytesTransferred_=a,this.state_="Upload",wV(this))):wV(this)};
var dXc=function(a,b){a.responseCode_=b.getStatus();var c=Ar(b.getAllResponseHeaders());a.responseHeaders_=qdb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new qV("n"))},eXc=function(a){var b=a.getStatus();a=Ar(a.getAllResponseHeaders());a=Br(a,"X-Goog-Upload-Status");return b===200&&a==="active"},fXc=function(a){a=Ar(a.getAllResponseHeaders());return Br(a,"X-Goog-Upload-Status")==="final"},cXc=function(a){if(fXc(a))return!0;a=a.getStatus();return a>=400&&a<
500},gXc=function(a){var b;return w(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);te(c,2);if(b=UWc(a.blob_,0,1)){var d=new WWc,e=XWc(d);d.readAsBinaryString(b);c=x(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);xe(c);return c.return(!0)})};var hXc=function(a,b,c,d,e,f){Hp.call(this);this.payload_=d;this.url_=a;this.method_=b;this.headers_=c;this.metadata_=e;this.metadataOverhead_=0;this.encoding_=f||"binary";a=new Uj;this.boundary_="uploader-"+Pdb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new Is(this);Fr(this,this.eventHandler_)};Y(hXc,EWc);g=hXc.prototype;
g.run=function(){var a=Wi(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=pdb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new vV;this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=this.transferRequest_,
c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.getErrorType=function(){return null};g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new qV("q")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new qV("m"))};g.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new qV("p"))):(this.responseCode_=b,a=a.target,b=Ar(a.getAllResponseHeaders()),this.responseHeaders_=qdb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new qV("n")))};var iXc=function(){},jXc=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof FWc)return new PWc(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new hXc(a,"POST",b,c,d);var f=new aXc(void 0);f.url_=a;f.method_="POST";f.headers_=b;f.blob_=c;f.originalBlobSize_=c.size;f.metadata_=d;e&&(f.withCredentials_=e);f.state_="Start";return f};var kXc=new yd("ScottyUploaderConfigFactory"),lXc=new yd("ScottyUploader",{factory:function(){return new iXc}}),yV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new bg;this.transferStatus=av(this.internalTransferStatus)};
yV.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=jXc(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=Ue(Qe(a,"o"),Qe(a,"m"),Qe(a,"r"),Qe(a,"p"),Qe(a,"n"),Qe(a,"q")).pipe(gg(Qe(a,"n").pipe(Wf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});a.run()};yV.\u0275fac=function(a){return new (a||yV)(nd(lXc),nd(kXc))};
yV.\u0275prov=Sc({token:yV,factory:yV.\u0275fac});var mXc=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};mXc.prototype.getDirectory=function(a){return this.directoryMap_[a]};mXc.prototype.getName=function(){return this.name_};var oXc=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;Hp.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:or(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=nXc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Y(oXc,Hp);
var nXc=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Ip(e,"change",a.onFilesSelected_,!1,a);c==="multiple_file"&&(e.multiple="true");c==="single_directory"&&(e.webkitdirectory="true");d.length>0&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(a.overlayTarget_!=
null)return e.style.height=b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),b.parentNode&&b.parentNode.insertBefore(e,b.nextSibling),Ns(e,new Ls(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};oXc.prototype.click=function(){this.overlay_.click()};
oXc.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(u){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(Np||q8b||Op)){c=new mXc("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,h=0;h<e.length;h++){var k=e[h];if(h==e.length-1){k!="."&&f.files_.push(d);break}var q=f.getDirectory(k);q==void 0&&(k=q=
new mXc(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=q}c=c.directories_}this.dispatchEvent(new pXc(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new pXc([],[],new FWc(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=nXc(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var qXc={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},pXc=function(a,b){oF.call(this,"y");this.files=a;this.directories=b};Y(pXc,oF);var zV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new ag(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new hv;this.maxFileSize=null;this.fileSizeRejected=new hv;this.fileSelected=new hv;this.fileNameLengthRejected=new hv};
zV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(fg(function(b){return Ue(Qe(b,"u"),Qe(b,"y"))}),gg(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=l(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(e!==-1?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=l(b.files),d=c.next();!d.done;d=c.next())if(d.value.size>
a.maxFileSize){c=!1;break a}c=!0}if(c){a:{if(a.maxFileNameLength)for(c=l(b.files),d=c.next();!d.done;d=c.next())if(d.value.name.length>a.maxFileNameLength){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileNameLengthRejected.emit(b)}else a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})});this.getOverlay().subscribe(function(b){Qe(b,"w").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){Qe(b,"x").subscribe(function(){a.ngZone.run(function(){})})})};
zV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};zV.\u0275fac=function(a){return new (a||zV)(zf(ff),zf(ph))};zV.\u0275dir=Kf({type:zV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var AV=function(a,b){zV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Y(AV,zV);
AV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return Ue(Qe(a.elementRef.nativeElement,"mouseover"),Qe(a.elementRef.nativeElement,"focus")).pipe(Zf(),gg(a.destroyed),y(function(){a.fileSelectorOverlay=new oXc(a.elementRef.nativeElement,a.selectorType,rXc(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),cg(1))}));return this.overlay};AV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var rXc=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};AV.\u0275fac=function(a){return new (a||AV)(zf(ff),zf(ph))};AV.\u0275dir=Kf({type:AV,hostBindings:function(a,b){a&1&&M("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},standalone:!1,features:[kg]});var BV=function(a,b,c){AV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Y(BV,AV);
BV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(gg(this.destroyed),Ve(function(){return!a.disableAutoUpload})).subscribe(function(b){b=l(b.files);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(d=a.uploader)==null||d.upload(c)}})};ea.Object.defineProperties(BV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=zi(a)}}});
BV.\u0275fac=function(a){return new (a||BV)(zf(ff),zf(ph),zf(yV,8))};BV.\u0275dir=Kf({type:BV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},standalone:!1,features:[kg]});var CV=function(){this.SelectorType=qXc;this.includeTextLabel=this.disabled=!1;this.onSelect=new LA},rdb=function(a,b){if(b=b.files){b=l(b);for(var c=b.next();!c.done;c=b.next())a.onSelect.emit(c.value)}};CV.\u0275fac=function(a){return new (a||CV)};
CV.\u0275cmp=B({type:CV,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled",includeTextLabel:"includeTextLabel"},outputs:{onSelect:"onSelect"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments",
"aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"],["svgIcon","attachment"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"]],template:function(a,
b){a&1&&(I(0,"div",0),E(1,sdb,2,3,"button",1)(2,tdb,3,3,"button",2),J());a&2&&(z(),F(b.includeTextLabel?2:1))},dependencies:[aB,PA,Tx,Ux,YA,cB,BV],encapsulation:2});var sXc=function(a,b){YEc.call(this,a.size,a.name);var c=this;this.destroyed$=new bg;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "m":case "o":case "r":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "p":c.handleError(e);break;case "n":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&d!=200?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();break;
case "q":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(gg(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};Y(sXc,YEc);
sXc.prototype.handleError=function(a){this.transferredBytes=a.getBytesTransferred()||0;this.state=3;var b=a.getResponseText();if(b)try{this.errorMessage=JSON.parse(b).errorMessage}catch(d){Nj("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};sXc.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
sXc.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var DV=function(){this.activeSession=n(Es)};
DV.prototype.create=function(a){for(var b=a.name,c=[],d=0,e=0;e<b.length;e++){var f=b.charCodeAt(e);f<128?c[d++]=f:(f<2048?c[d++]=f>>6|192:((f&64512)==55296&&e+1<b.length&&(b.charCodeAt(e+1)&64512)==56320?(f=65536+((f&1023)<<10)+(b.charCodeAt(++e)&1023),c[d++]=f>>18|240,c[d++]=f>>12&63|128):c[d++]=f>>12|224,c[d++]=f>>6&63|128),c[d++]=f&63|128)}b=P8b(c);a=yJa(a.name)?a.name:b;return{url:Jr($uc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a},withCredentials:!0}};DV.\u0275fac=function(a){return new (a||DV)};DV.\u0275prov=Sc({token:DV,factory:DV.\u0275fac,providedIn:"root"});var EV=function(){this.uploader=n(lXc);this.uploaderConfigFactory=n(DV)};EV.prototype.create=function(){return new yV(this.uploader,this.uploaderConfigFactory)};EV.\u0275fac=function(a){return new (a||EV)};EV.\u0275prov=Sc({token:EV,factory:EV.\u0275fac,providedIn:"root"});var xdb=function(a){return{"attachment-error":a}},FV=function(){Z.apply(this,arguments);this.scottyUploaderFactory=n(EV);this.uploads=[];this.onUploadCancel=new LA;this.onUploadComplete=new LA;this.uploadStates=ZEc};Y(FV,Z);FV.\u0275dir=Z.\u0275dir;FV.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);for(var a=l(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
FV.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new sXc(a,c.transferStatus);c.transferStatus.pipe(gg(this.destroyed$)).subscribe(function(d){d.type==="n"&&b.onUploadComplete.emit()});return a};FV.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};FV.\u0275fac=function(){var a;return function(b){return(a||(a=fe(FV)))(b||FV)}}();
FV.\u0275cmp=B({type:FV,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},standalone:!1,features:[kg],decls:1,vars:1,consts:[[1,"attachments"],[1,"attachment",3,"ngClass"],[1,"attachment-title"],["svgIcon","file-present"],[1,"issue-attachment-filename",3,"matTooltip"],[1,"attachment-filesize"],["role","alert","aria-live","assertive"],["type","button",1,"bv2-remove-icon","keep-focus-ring","attachment-cancel-button",
3,"click","matTooltip"]],template:function(a,b){a&1&&E(0,zdb,3,0,"div",0);a&2&&F(b.uploads.length>0?0:-1)},dependencies:[Mv,aB,YA,cB,Llc],styles:[".attachments[_ngcontent-%COMP%]{margin:10px 10px 0}.attachments[_ngcontent-%COMP%]   .attachment[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border-radius:4px;box-sizing:border-box;display:inline-flex;align-items:center;margin-bottom:10px;overflow-y:hidden;padding:5px;position:relative;width:100%;min-height:36px}.attachments[_ngcontent-%COMP%]   .attachment.attachment-error[_ngcontent-%COMP%]{background-color:#fce8e6;background-color:var(--bad-bg)}.attachments[_ngcontent-%COMP%]   .attachment-title[_ngcontent-%COMP%]{flex-grow:1}.attachments[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-filename[_ngcontent-%COMP%]{display:inline-block;font-weight:bold;margin-right:5px;max-width:50%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.attachments[_ngcontent-%COMP%]   .attachment-filesize[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.attachments[_ngcontent-%COMP%]   .issue-attachment-link[_ngcontent-%COMP%]{margin-left:8px}.attachments[_ngcontent-%COMP%]   .attachment-cancel-button[_ngcontent-%COMP%]{padding:12px;margin-left:4px}"]});var tXc=function(a){this.size=a.sizeBytes;this.name=a.name;this.mimeType=a.mimeType;this.encryptedBlobId=a.blobId;this.url=a.url;this.docId=a.id};var uXc=function(a){YEc.call(this,a.size,a.name);this.attachment=a};Y(uXc,YEc);var vXc=function(a,b){a.state=1;KEc(b,{filename:a.attachment.name,mimeType:a.attachment.mimeType,encryptedBlobId:a.attachment.encryptedBlobId?a.attachment.encryptedBlobId:null,docId:a.attachment.docId,size:a.attachment.size}).then(function(c){a.attachment.size&&(a.transferredBytes=a.attachment.size);a.blobRef=c.encryptedMedia;a.state=2}).catch(function(c){a.state=3;a.errorMessage=Wo(c)?Xo(c):"Error while uploading."})};var Cr=function(a){this.id_=a;this.opts={}};g=Cr.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setOptions=function(a){this.opts=a;return this};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a;return this};g.toArray=function(){var a=Ti(this.opts,function(c){return c!==null});a=Ui(a)?null:a;a=[this.id_,this.label_,a];var b=Gba(a,$fc);return a=a.slice(0,b+1)};
g.toString=function(){var a=this.toArray();return"("+l8b(a,function(b){return JSON.stringify(b)}).join(",")+")"};g.getId=function(){return this.id_};g.getLabel=function(){return this.label_};g.getOptions=function(){return Wi(this.opts)};g.getQuery=function(){return this.opts.query};zu(Dr,Cr);var wXc=["dr","fileIds","parent"],xXc=function(){var a=(new Dr("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=Dr.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){a!==void 0?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setLabel=function(a){Dr.superClass_.setLabel.call(this,a);return this};g.setQuery=function(a){Dr.superClass_.setQuery.call(this,a);return this};
g.setParent=function(a){for(var b=l(wXc),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];Dr.superClass_.setParent.call(this,a);return this};g.setItems=function(a){this.opts.items=a};var yXc=function(){Cr.call(this,"image-search")};Y(yXc,Cr);g=yXc.prototype;g.setType=function(a){this.opts.type=a;return this};g.setSize=function(a){this.opts.imgsz=a;return this};g.setColor=function(a){this.opts.imgcolor=a;return this};g.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};g.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};var zXc=function(){Cr.call(this,"maps")};Y(zXc,Cr);g=zXc.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setZoom=function(a){this.opts.zoom=a;return this};g.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};g.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};var AXc=function(){Cr.call(this,"photos")};Y(AXc,Cr);g=AXc.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setType=function(a){this.opts.type=a;return this};g.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};g.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};g.removeDuplicates=function(){this.opts.rdv=!0;return this};var GV=function(){Cr.call(this,"url")};Y(GV,Cr);GV.prototype.setType=function(a){this.opts.type=a;return this};GV.prototype.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};GV.prototype.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};GV.prototype.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};var BXc=function(){Cr.call(this,"video-search")};Y(BXc,Cr);BXc.prototype.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};BXc.prototype.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};BXc.prototype.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};var CXc=function(){Cr.call(this,"web")};Y(CXc,Cr);CXc.prototype.setLabel=function(a){Cr.prototype.setLabel.call(this,a);return this};CXc.prototype.setQuery=function(a){Cr.prototype.setQuery.call(this,a);return this};CXc.prototype.setParent=function(a){Cr.prototype.setParent.call(this,a);return this};var HV=function(){this.root_=void 0;this.items_=[];this.opts={}},DXc=function(a){switch(a){case "image-search":return new yXc;case "maps":return new zXc;case "photos":return new AXc;case "url":return new GV;case "video-search":return new BXc;case "web":return new CXc}return new Cr(a)};HV.prototype.addView=function(a){this.items_.push(typeof a==="string"?DXc(a):a);return this};
var EXc=function(a){return"("+l8b(a.items_,function(b){return b.toString()}).join(",")+")"},FXc=function(a){a=Ti(a.opts,function(b){return b!==null});return(a=Ui(a)?null:a)?JSON.stringify(Lqa(a,function(b){return b.toString()})):""};HV.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",EXc(this)],b=FXc(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return EXc(this)};
HV.prototype.getViews=function(a,b){b=b===void 0?[]:b;for(var c=this.items_,d=0;d<c.length;d++){var e=c[d];e instanceof HV?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};HV.prototype.getOptions=function(){return Wi(this.opts)};HV.prototype.setCollapsible=function(a){this.opts.collapsible=a};var Adb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new HV};g=Adb.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getAppId=function(){return this.appId_};g.getBaseUrl=function(){return this.basePickerUrl_};g.getDomHelper=function(){return this.domHelper_};g.getViews=function(a){return this.nav_.getViews(a)};g.setAppId=function(a){this.appId_=a};g.setCallback=function(a){this.callback_=a;return this};zu(Bdb,Adb);var IV=function(a){Hp.call(this);this.dom_=a||Kp();this.rightToLeft_=GXc;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};zu(IV,Hp);IV.prototype.idGenerator_=Vs.getInstance();var GXc=!1;g=IV.prototype;g.getId=function(){return this.id_||(this.id_=Hs(this.idGenerator_))};
g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(Vi(this.parent_.childIndex_,this.id_),Sqa(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new Is(this));return this.googUiComponentHandler_};
g.setParent=function(a){if(this==a)throw Error("ff");if(a&&this.parent_&&this.id_&&HXc(this.parent_,this.id_)&&this.parent_!=a)throw Error("ff");this.parent_=a;IV.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("gf");IV.superClass_.setParentEventTarget.call(this,a)};g.getDomHelper=function(){return this.dom_};g.createDom=function(){this.element_=this.dom_.createElement("DIV")};
g.render=function(a){if(this.inDocument_)throw Error("hf");this.element_||this.createDom();a?a.insertBefore(this.element_,null):this.dom_.document_.body.appendChild(this.element_);this.parent_&&!this.parent_.inDocument_||this.enterDocument()};g.decorate=function(a){if(this.inDocument_)throw Error("hf");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=wz(a);this.dom_&&this.dom_.document_==b||(this.dom_=Kp(a));this.decorateInternal(a);this.enterDocument()}else throw Error("jf");};
g.canDecorate=function(){return!0};g.decorateInternal=function(a){this.element_=a};g.enterDocument=function(){this.inDocument_=!0;IXc(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){IXc(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);IXc(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&Cz(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;IV.superClass_.disposeInternal.call(this)};g.setModel=function(){};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("hf");if(a<0||a>(this.children_?this.children_.length:0))throw Error("kf");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;Za(this.children_)}else Sqa(this.childIndex_,(void 0).getId());(void 0).setParent(this);Kba(this.children_,a,0,void 0);(void 0).inDocument_&&this.inDocument_&&
(void 0).getParent()==this?(b=this.getContentElement(),(b.childNodes[a]||null)!=(void 0).getElement()&&((void 0).getElement().parentElement==b&&b.removeChild((void 0).getElement()),a=b.childNodes[a]||null,b.insertBefore((void 0).getElement(),a))):this.inDocument_&&!(void 0).inDocument_&&(void 0).element_&&(void 0).element_.parentNode&&(void 0).element_.parentNode.nodeType==1&&(void 0).enterDocument()};g.getContentElement=function(){return this.element_};
g.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=Ct(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};g.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var HXc=function(a,b){return a.childIndex_&&b?Tqa(a.childIndex_,b)||null:null},IXc=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
IV.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=HXc(this,c);c&&a&&(Vi(this.childIndex_,c),Za(this.children_,a),b&&(a.exitDocument(),a.element_&&Cz(a.element_)),a.setParent(null))}if(!a)throw Error("lf");return a};IV.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();){var c=b,d=c.push;var e=this.removeChild(this.children_?this.children_[0]||null:null,a);d.call(c,e)}return b};zu(Ddb,Cdb);zu(Edb,Cdb);var JXc=ru(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),KXc=ru(["//apis.google.com/js/rpc.js"]),Sdb=Ri(JXc),Rdb=Ri(KXc),Gdb=null;var LXc=function(a){Hp.call(this);this.element_=a;this.listenKeyIn_=Ip(this.element_,"focus",this,!0);this.listenKeyOut_=Ip(this.element_,"blur",this,!0)};zu(LXc,Hp);LXc.prototype.handleEvent=function(a){var b=new Mp(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};LXc.prototype.disposeInternal=function(){LXc.superClass_.disposeInternal.call(this);sF(this.listenKeyIn_);sF(this.listenKeyOut_);delete this.element_};var MXc=new Map;MXc.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");MXc.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");MXc.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var NXc=new Set;NXc.add("application/vnd.google-apps.kix");NXc.add("application/vnd.google-apps.ritz");NXc.add("application/vnd.google-apps.punch");var ZXc=function(a,b,c){var d=c&&Oh(c,1);c=OXc(c);switch(a[0].getId().getSourceId()){case 13:return PXc(a,b,d,c);case 3:return QXc(a,b,d,c);case 10:return RXc(a,b,d,c);case 27:return RXc(a,b,d,c);case 12:return SXc(a,b);case 2:return TXc(a,b,d,c);case 5:return UXc(a,b,d,c);case 9:return VXc(a,b,d,c);case 6:return WXc(a,b,d,c);case 25:return XXc(a,b,d,c);case 1:return nk(a[0],Xec,26)?YXc(a,b,d,c):RXc(a,b,d,c);default:return{}}},WXc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:JV(e),lastEditedUtc:X(e,bl,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:Oh(e,13),thumbnails:KV(oz(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},TXc=function(a,b,c,d){var e=a.map(function(f){var h={id:f.getId().getId(),serviceId:"docs",mimeType:f.getMimeType(),name:f.getName(),type:JV(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),
url:f.getUrl(),sizeBytes:t9b(f),description:f.getDescription(),iconUrl:f.getIconUrl(),thumbnails:KV(oz(f)),isShared:X(f,pz,21).getShared(),downloadUrl:X(f,pz,21).getDownloadUrl(),embedUrl:Oh(f,13),copyable:kl(X(f,pz,21),9),resourceKey:Oh(X(f,pz,21),11)};kl(X(f,pz,21),12)&&(h.uploadState="success",h.isNew=!0);if(X(f,pz,21).hasVideoMetadata()){f=X(f,pz,21).getVideoMetadata();if(nk(f,dl,2)){var k=f.getDuration().getSeconds_asLegacyNumberOrString()+f.getDuration().getNanos()/1E9;h.duration=k}h.aspectRatio=
Pm(f,1)}return h});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:$Xc(a),v2Translated:!0}},UXc=function(a,b,c,d){a=a.map(function(e){var f=X(X(e,gfc,15),Wec,1);Eu(e,10,Wec,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:JV(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},
VXc=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:oz(e)[0].getUrl().split("/").pop(),type:JV(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},YXc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"picasa",name:e.getName(),type:JV(e),description:e.getDescription(),
iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},RXc=function(a,b,c,d){return{action:b,docs:a.map(aYc),viewToken:d,view:bYc(c||"upload",a),extraUserInputs:$Xc(a),v2Translated:!0}},bYc=function(a,b){return b.some(function(c){var d;return((d=X(c,ffc,30))==null?void 0:pl(d,3))===9})?a+"/gmailphotos":a},QXc=function(a,b,c,d){var e=a.map(function(f){var h={id:f.getId().getId(),serviceId:"picasa",
mimeType:f.getMimeType(),name:f.getName(),type:JV(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:t9b(f),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,q=(k=X(f,$ec,18))==null?void 0:X(k,Zec,3);q&&(h.latitude=Pm(q,1),h.longitude=Pm(q,2));var u;(f=(u=X(f,$ec,18))==null?void 0:zl(u,6))&&(h.version=f);return h});return{action:b,
docs:e,viewToken:d,view:c||"photos",extraUserInputs:$Xc(a),v2Translated:!0}},PXc=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:oz(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(e),"etjpg")}});return{action:b,docs:a,viewToken:d,view:c||"et",v2Translated:!0}},XXc=function(a,b,c,d){a=a.map(function(e){var f=e.getId().getId(),h=d["2"];return{id:f,
serviceId:h.type!=="gmail_themes"&&h.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:JV(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:KV(oz(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},SXc=function(a,b){a=a.map(function(c){var d=X(c,Yec,27).getEmailList()[0];return{id:c.getId().getId(),serviceId:"contacts",
mimeType:c.getMimeType(),name:c.getName(),description:c.getDescription(),url:"mailto:"+d,thumbnail:[{url:c.getIconUrl()}],email:d}});return{action:b,docs:a,view:"contacts",v2Translated:!0}},OXc=function(a){if(!a)return{};var b=Oh(a,3);b=b&&JSON.parse(b)||{};return{0:Oh(a,1),1:a.getLabel(),2:b}},KV=function(a,b){b=b===void 0?"":b;if(!a.length)return null;b=="etjpg"&&(a=a.filter(function(c){return c.getUrl().includes("w1200-h300")}));return a.map(function(c){return{url:c.getUrl(),height:c.getHeight(),
width:c.getWidth(),type:b}})},$Xc=function(a){return{isAttachment:a.some(function(b){return kl(b,31)})}},aYc=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:cYc(a),mimeType:a.getMimeType(),name:a.getName(),type:JV(a),sizeBytes:t9b(a),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:KV(oz(a)),isNew:!0};if(b=X(a,ffc,30)){c.dataUrl=Oh(b,1)||null;a:{var d=X(a,ffc,30);switch(pl(d,3)){case 9:d=Qm(d,dfc,2,mz);
d={remoteRefs:d&&Oh(d,1)};break a;case 10:case 15:d=Qm(d,cfc,4,mz);var e=oz(a);d={photo_id:d&&d.getPhotoId(),media_key:a.getId().getId(),media_type:a.getType()===1?1:2,image_url:e&&e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}d=null}c.uploadMetadata=d;c.uploadId=Oh(b,9)||null;c.uploadState=dYc(b)||null}(d=b&&Qm(b,cfc,4,mz))&&(c.id=d.getPhotoId());(d=b&&Qm(b,efc,5,mz))&&(c.contentId=Oh(d,1));(d=b&&Qm(b,afc,7,mz))&&(c.contentId=Oh(d,1));(d=b&&Qm(b,bfc,6,
mz))&&(c.contentId=Oh(d,1));(b==null?void 0:pl(b,3))===1&&(c.mediaKey=a.getId().getId());return c},cYc=function(a){var b;switch(((b=X(a,ffc,30))==null?void 0:pl(b,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},JV=function(a){switch(a.getType()){case 1:case 21:return"photo";case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";
case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return a.getMimeType().startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},dYc=function(a){switch(a==null?void 0:pl(a,8)){case 0:return"default";case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var eYc=function(a){this.obj_=a};g=eYc.prototype;g.value=function(){return this.obj_};g.setWidth=function(a){this.obj_.width=a;return this};g.getWidth=function(){return this.obj_.width};g.setHeight=function(a){this.obj_.height=a;return this};g.getHeight=function(){return this.obj_.height};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};var fYc=function(a){this.obj_=a||{}};g=fYc.prototype;g.value=function(){return this.obj_};g.setUrl=function(a){this.obj_.url=a;return this};g.getUrl=function(){return this.obj_.url};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};g.setId=function(a){this.obj_.id=a;return this};g.getId=function(){return this.obj_.id};g.getContext=function(){return this.obj_.context};
var gYc=function(a){a.obj_.attributes=a.obj_.attributes||{};return new eYc(a.obj_.attributes)},Pzc=function(a){return(a=a.obj_.timeout)?a:null};var hYc=function(){fYc.apply(this,arguments)};Y(hYc,fYc);var iYc=ru(["https://apis.google.com/js/api.js"]),jYc=Ri(iYc),nYc=function(a,b){var c=!1,d=kYc(a,b).then(function(f){c=!0;return f}),e=Oqc(5E3).then(function(){return c?kYc(a,b):lYc(b).then(function(f){return mYc(f,a)})});return ogc([d,e])},kYc=function(a,b){return oYc(b).then(function(c){return mYc(c,a)})},mYc=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?igc(a[c]):new Kz(function(d,e){var f=Yq(function(){e(Error("mf"))},3E4);a.load(b,{callback:function(){Zq(f);d(a[c])},
onerror:function(h){Zq(f);e(h)}})})},oYc=function(a){return a.gapi&&a.gapi.load?igc(a.gapi):lYc(a)},lYc=function(a){return OJa(jYc,{document:a.document}).then(function(){return a.gapi})},pYc=function(){};pYc.prototype.load=function(a,b){b=b===void 0?window:b;var c=Date.now();return nYc(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));})};var Odb=function(){aF.call(this);this.gapiLoader_=new pYc;this.origin_=null;this.gapiPickerIframeResolver_=qgc();this.gapiIframesResolver_=qgc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Y(Odb,aF);
var qYc=function(a,b){var c=Cp("gapi.iframes",b);return c?(a=Date.now(),igc({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},rYc=function(a,b,c,d,e,f){var h=!0;h=h===void 0?!1:h;qYc(a,Az(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var u=k.resolve,A=h;A=A===void 0?!1:A;var G={};G["host-message-handler"]=c;a.hostMessageHandlerInternal_=G;var H=Hr(d);H=Hr(H);H=vH(uH(new Qp,H.scheme_),H.getDomain()).setPort(H.getPort()).toString();
a.origin_=H;H=(new hYc).setUrl(d);H.obj_.where=b;H.obj_.allowPost=A;H.obj_.messageHandlers=G;A=Cp("makeWhiteListIframesFilter",q)([a.origin_]);H.obj_.messageHandlersFilter=A;e!=null&&H.setId(e);f!=null&&(H.obj_.rpctoken=f);gYc(H).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");gYc(H).value().allow="camera 'src' "+a.origin_;q=q.getContext().openChild(H.value());u.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
sYc=function(a,b){return ngc([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=l(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Cp("makeWhiteListIframesFilter",c)([a.origin_])):jgc(Error("nf"))})};Odb.prototype.disposeInternal=function(){tYc(this);aF.prototype.disposeInternal.call(this)};var tYc=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var uYc=function(){this.nextId=0};uYc.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var wYc=function(a,b){switch(a.action){case "select-contacts":a=vYc(a.contacts);break;case "visibility":a=a.visible;a=(new kfc).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?sYc(b,a):igc()},vYc=function(a){if(!a||a.length==0)return null;var b=new kfc;b.setCommand(11);var c=new uYc;a.forEach(function(d){if(d.email){var e=(new nz).setName(d.name?d.name:d.email);d=(new Yec).addEmail(d.email);e=W(e,Yec,27,d).setId((new kz).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var LV=function(a,b,c){Hp.call(this);this.target=a;this.handle=b||a;this.limits=c||new RI(NaN,NaN,NaN,NaN);this.document_=wz(a);this.eventHandler_=new Is(this);Fr(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;Ip(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=xYc};zu(LV,Hp);
var xYc=ya.document&&ya.document.documentElement&&!!ya.document.documentElement.setCapture&&!!ya.document.releaseCapture;g=LV.prototype;g.getHandler=function(){return this.eventHandler_};g.setEnabled=function(a){this.enabled_=a};g.disposeInternal=function(){LV.superClass_.disposeInternal.call(this);rF(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
g.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||Us&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new MV("start",this,a.clientX,a.clientY,a))){this.dragging_=!0;b&&a.preventDefault();b=this.document_;var c=b.documentElement,d=!this.useSetCapture_;this.eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,{capture:d,passive:!1});this.eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?
(c.setCapture(!1),this.eventHandler_.listen(c,"losecapture",this.endDrag)):this.eventHandler_.listen(Az(b),"blur",this.endDrag);this.scrollTarget_&&this.eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop;this.pageScroll=Efc(Kp(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new MV("end",this,a.clientX,a.clientY,a,yYc(this,this.deltaX),zYc(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
g.handleMove_=function(a){if(this.enabled_){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(d*d+e*e>0)if(this.dispatchEvent(new MV("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=AYc(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new MV("beforedrag",this,
a.clientX,a.clientY,a,b,c))&&(BYc(this,a,b,c),a.preventDefault())}};var AYc=function(a,b,c){var d=Efc(Kp(a.document_).document_);b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Ls(yYc(a,a.deltaX),zYc(a,a.deltaY))};LV.prototype.onScroll_=function(a){var b=AYc(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;BYc(this,a,b.x,b.y)};
var BYc=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new MV("drag",a,b.clientX,b.clientY,b,c,d))},yYc=function(a,b){var c=a.limits;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))},zYc=function(a,b){var c=a.limits;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))};LV.prototype.isDragging=function(){return this.dragging_};
var MV=function(a,b,c,d,e,f,h){oF.call(this,a);this.clientX=c;this.clientY=d;this.left=f!==void 0?f:b.deltaX;this.top=h!==void 0?h:b.deltaY};zu(MV,oF);var NV=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("pb");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=NV.prototype;g.getCount=function(){return this.map_.size};g.getValues=function(){return Array.from(this.map_.values())};g.getKeys=function(){return Array.from(this.map_.keys())};g.containsKey=function(a){return this.map_.has(a)};g.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
g.equals=function(a){var b=this;var c=c===void 0?function(d,e){return d===e}:c;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return c(b.map_.get(d),a.get(d))})};g.isEmpty=function(){return this.map_.size==0};g.clear=function(){this.map_.clear()};g.remove=function(a){return this.map_.delete(a)};g.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};g.set=function(a,b){this.map_.set(a,b);return this};
g.addAll=function(a){if(a instanceof NV){a=l(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=l(Object.entries(a)),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};g.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};g.clone=function(){return new NV(this)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ya.requestAnimationFrame;++c)ya.requestAnimationFrame=ya[b+"RequestAnimationFrame"],ya.cancelAnimationFrame=ya[b+"CancelAnimationFrame"]||ya[b+"CancelRequestAnimationFrame"];if(!ya.requestAnimationFrame){var d=0;ya.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return ya.setTimeout(function(){e(f+h)},h)};ya.cancelAnimationFrame||(ya.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var CYc=[[],[]],DYc=0,EYc=!1,FYc=0,HYc=function(a,b){var c=FYc++,d={measureTask:{id:c,fn:a.measure,context:b},mutateTask:{id:c,fn:a.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&d.args.length!=0?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,CYc[DYc].push(d));EYc||(EYc=!0,window.requestAnimationFrame(GYc))}},GYc=
function(){EYc=!1;var a=CYc[DYc],b=a.length;DYc=(DYc+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};var IYc=ru(["about:blank"]),JYc=ru(["javascript:undefined"]),KYc=Ri(IYc);Vh(KYc);var LYc=Ri(JYc);Vh(LYc);var MYc=function(a,b){this.element_=a;this.dom_=b};var OV=function(a,b){IV.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=HYc({mutate:this.resizeBackground_},this);HYc({mutate:this.updateModalAndBackground_},this)};zu(OV,IV);g=OV.prototype;g.focusHandler_=null;g.visible_=!1;g.bgEl_=null;g.bgIframeEl_=null;g.tabCatcherElement_=null;g.backwardTabWrapInProgress_=!1;g.getCssClass=function(){return"goog-modalpopup"};g.getBackgroundElement=function(){return this.bgEl_};
g.createDom=function(){OV.superClass_.createDom.call(this);var a=this.getElement();QI(a,Fa(this.getCssClass()).split(" "));a.tabIndex=0;Lr(a,!1);NYc(this);OYc(this)};
var NYc=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});pna(b,KYc);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";Lr(a.bgIframeEl_,!1);XAc(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),Lr(a.bgEl_,!1))},OYc=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),Lr(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};g=OV.prototype;g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};g.canDecorate=function(a){return!!a&&a.tagName=="DIV"};g.decorateInternal=function(a){OV.superClass_.decorateInternal.call(this,a);a=Fa(this.getCssClass()).split(" ");QI(this.getElement(),a);NYc(this);OYc(this);this.getElement().tabIndex=0;Lr(this.getElement(),!1)};
g.enterDocument=function(){if(this.bgIframeEl_){var a=this.bgIframeEl_,b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b)}a=this.bgEl_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b);OV.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new LXc(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);PYc(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);To(this.focusHandler_);OV.superClass_.exitDocument.call(this);Cz(this.bgIframeEl_);Cz(this.bgEl_);Cz(this.tabCatcherElement_)};
g.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&PYc(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.updateModalAndBackground_();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);QYc(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)qF(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){this.getHandler().unlisten(this.getDomHelper().getWindow(),"resize",this.resizeBackground_).unlisten(this.getDomHelper().getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)qF(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.getDomHelper(),c=b.document_.body,d=b.document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(d==c||b.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=null}}};
var PYc=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new MYc(a.element_,a.dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.dom_.getChildren(a.dom_.document_.body);for(var c=0;c<b.length;c++){var d=b[c];d==a.element_||uuc(d,"hidden")||(lH(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(b=0;b<a.hiddenElements_.length;b++)a.hiddenElements_[b].removeAttribute("aria-hidden");a.hiddenElements_=null}};
OV.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var QYc=function(a,b){a.bgIframeEl_&&Lr(a.bgIframeEl_,b);a.bgEl_&&Lr(a.bgEl_,b);Lr(a.getElement(),b);Lr(a.tabCatcherElement_,b)};g=OV.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){QYc(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&Lr(this.bgIframeEl_,!1);this.bgEl_&&Lr(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=RYc(this);var c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(Lr(this.bgIframeEl_,!0),WAc(this.bgIframeEl_,c,a));this.bgEl_&&(Lr(this.bgEl_,!0),WAc(this.bgEl_,c,a))};
g.reposition=function(){var a;if(Gr(this.getElement(),"position")=="fixed")var b=a=0;else b=Efc(this.getDomHelper().document_),a=b.x,b=b.y;var c=Ms(this.getElement());var d=RYc(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Ns(this.getElement(),a,b);Ns(this.tabCatcherElement_,a,b)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Yq(this.focusElement_,0,this)};g.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var RYc=function(a){a=a.getDomHelper().document_;return zz(Az(a)||window)};OV.prototype.disposeInternal=function(){To(this.popupShowTransition_);this.popupShowTransition_=null;To(this.popupHideTransition_);this.popupHideTransition_=null;To(this.bgShowTransition_);this.bgShowTransition_=null;To(this.bgHideTransition_);this.bgHideTransition_=null;OV.superClass_.disposeInternal.call(this)};var Er=function(a,b,c){OV.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=PV(PV(new QV,SYc,!0),TYc,!1,!0)};zu(Er,OV);g=Er.prototype;g.escapeToCancel_=!0;g.hasTitleCloseButton_=!0;g.modal_=!0;g.backgroundElementOpacity_=.5;g.title_="";g.dragger_=null;g.disposeOnHide_=!1;g.titleEl_=null;g.titleTextEl_=null;g.titleTextId_=null;g.titleCloseEl_=null;g.contentEl_=null;g.buttonEl_=null;g.getCssClass=function(){return this.class_};
g.setTitle=function(a){this.title_=a;this.titleTextEl_&&Ez(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var UYc=function(a){a.getElement()||a.render();return a.getElement()};Er.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Er.superClass_.getBackgroundElement.call(this)};
var VYc=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&XAc(b,a.backgroundElementOpacity_)};Er.prototype.handleDrag=function(){};
var WYc=function(a,b){var c=Fa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?QI(a.titleEl_,c):SAc(a.titleEl_,c));b&&!a.dragger_?(b=new LV(a.getElement(),a.titleEl_),a.dragger_=b,QI(a.titleEl_,c),Ip(a.dragger_,"start",a.setDraggerLimits_,!1,a),Ip(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=Er.prototype;
g.createDom=function(){Er.superClass_.createDom.call(this);var a=this.getElement(),b=this.getDomHelper();this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=b.createDom("DIV",this.class_+"-title",this.titleTextEl_=b.createDom("SPAN",{className:this.class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.createDom("SPAN",this.class_+"-title-close"));Ifc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));kH(this.titleTextEl_,"heading");kH(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;vuc(this.titleCloseEl_,"Close");kH(a,"dialog");lH(a,"labelledby",this.titleTextId_||"");Lr(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());Lr(this.buttonEl_,!!this.buttons_);VYc(this,this.backgroundElementOpacity_)};
g.decorateInternal=function(a){Er.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=yz(document,null,b,a)[0];this.contentEl_||(this.contentEl_=this.getDomHelper().createDom("DIV",b),a.appendChild(this.contentEl_));b=this.class_+"-title";var c=this.class_+"-title-text",d=this.class_+"-title-close";(this.titleEl_=yz(document,null,b,a)[0])?(this.titleTextEl_=yz(document,null,c,this.titleEl_)[0],this.titleCloseEl_=yz(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Ofc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=Gfc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;lH(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
Lr(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=yz(document,null,b,a)[0])?(this.buttons_=new QV(this.getDomHelper()),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.getDomHelper().createDom("DIV",b),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render()),Lr(this.buttonEl_,!!this.buttons_));VYc(this,this.backgroundElementOpacity_)};
g.enterDocument=function(){Er.superClass_.enterDocument.call(this);this.getHandler().listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);this.getHandler().listen(this.buttonEl_,"click",this.onButtonClick_);WYc(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();kH(a,"dialog");this.titleTextEl_.id!==""&&lH(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=
this.getDomHelper();var b=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(b)}this.isVisible()&&PYc(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);WYc(this,!1);Er.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Er.superClass_.setVisible.call(this,a))};g.onShow=function(){Er.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){Er.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=zz(Az(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Ms(this.getElement());Gr(this.getElement(),"position")=="fixed"?this.dragger_.limits=new RI(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new RI(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){XYc(this)};var XYc=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new YYc(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},ZYc=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&Lr(a.titleCloseEl_,a.hasTitleCloseButton_)};Er.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};Er.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Er.superClass_.disposeInternal.call(this)};
Er.prototype.onButtonClick_=function(a){a:{for(a=a.target;a!=null&&a!=this.buttonEl_;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new YYc(a,b))&&this.setVisible(!1)}};
Er.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var f=d&&d.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new YYc(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(A){}Yq(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)XYc(this);else if(d){var h=d.defaultButton_,k;if(k=h)a:{k=xz("BUTTON",d.element_);for(var q,u=0;q=k[u];u++)if(q.name==h||q.id==h){k=q;break a}k=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new YYc(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||XYc(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var YYc=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};zu(YYc,oF);var QV=function(a){NV.call(this);this.dom_=a||Kp();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};zu(QV,NV);QV.prototype.clear=function(){NV.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};QV.prototype.set=function(a,b,c,d){NV.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var PV=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};QV.prototype.render=function(){if(this.element_){rna(this.element_,Kr);var a=Kp(this.element_);this.forEach(function(b,c){b=a.createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}};
QV.prototype.decorate=function(a){if(a&&a.nodeType==1){this.element_=a;a=xz("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=Ofc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&QAc(b,this.class_+"-default")}}};QV.prototype.getElement=function(){return this.element_};QV.prototype.getDomHelper=function(){return this.dom_};
var SYc={key:"ok",caption:"OK"},TYc={key:"cancel",caption:"Cancel"},$Yc={key:"yes",caption:"Yes"},aZc={key:"no",caption:"No"},bZc={key:"save",caption:"Save"},cZc={key:"continue",caption:"Continue"};typeof document!="undefined"&&(PV(new QV,SYc,!0,!0),PV(PV(new QV,SYc,!0),TYc,!1,!0),PV(PV(new QV,$Yc,!0),aZc,!1,!0),PV(PV(PV(new QV,$Yc),aZc,!0),TYc,!1,!0),PV(PV(PV(new QV,cZc),bZc),TYc,!0,!0));zu(Idb,Er);var Jdb=function(a,b){Hp.call(this);this.element_=a;a=Dz(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&Ct(a);this.listenKey_=Ip(this.element_,Op?"DOMMouseScroll":"mousewheel",this,b)};zu(Jdb,Hp);
Jdb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=dZc(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=dZc(-d.wheelDeltaX),c=dZc(-d.wheelDeltaY)):c=a):(a=d.detail,a>100?a=3:a<-100&&(a=-3),d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);typeof this.maxDeltaX_==="number"&&(b=Math.min(Math.max(b,-this.maxDeltaX_),this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=Math.min(Math.max(c,-this.maxDeltaY_),this.maxDeltaY_));this.isRtl_&&(b=-b);b=new eZc(a,d,b,c);this.dispatchEvent(b)};
var dZc=function(a){return Np&&(Us||t8b)&&a%40!=0?a:a/40};Jdb.prototype.disposeInternal=function(){Jdb.superClass_.disposeInternal.call(this);sF(this.listenKey_);this.listenKey_=null};var eZc=function(a,b,c,d){Mp.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};zu(eZc,Mp);var Qdb;var fZc=ru(["https://about:blank"]),gZc=ru(['javascript:""']),hZc=ru(["about:blank"]);zu(Mr,Idb);g=Mr.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){Mr.superClass_.enterDocument.call(this);Ldb(this.getBackgroundElement(),this.getHandler())};
g.render=function(a){var b=this;Mr.superClass_.render.call(this,a);this.useGapi_?qYc(this.iframeManager_,window).then(function(){return iZc(b)}).then(null,function(c){return void b.handleError_(c)}):jZc(this)};
var iZc=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);Lr(b,!1);a.getContentElement().appendChild(b);return rYc(a.iframeManager_,b,function(c){var d=mfc(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=X(d,ifc,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(Gk);d=f.length===0?{action:e}:ZXc(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:ZYc(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=X(d,ifc,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(Gk);if(d.length===0)d={action:e};else{var h=f.getInternalOnlyV1ViewInfo();f=h&&Oh(h,1);h=OXc(h);d=RXc(d,e,f,h)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();kZc(a);Lr(a.iframe_.parentElement,!0);QAc(a.getElement(),"picker-dialog");lZc(a);return c})},
jZc=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});pna(a.iframe_,mZc(a));QAc(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void kZc(a)});a.iframe_.src=a.url_;lZc(a)},oZc=function(a){nZc(a,mt(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},lZc=function(a){var b=Ir(Hr(a.url_),"title");b&&a.setTitle(b)},mZc=function(a){return yba()>=
7&&a.url_.lastIndexOf("https",0)==0?Ri(fZc):ct?Ri(gZc):Ri(hZc)},kZc=function(a){oZc(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};Mr.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var nZc=function(a,b){var c=a.gadgetsDomHelper_;Hdb(function(){b(c.getWindow().gadgets.rpc)},c)};
Mr.prototype.setUrl=function(a){a=Jr(new Qp(a),"rpcService",this.targetId_);Jr(a,"rpctoken",this.rpcToken_);Suc(a,"rpctoken="+this.rpcToken_);uH(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};Mr.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&pZc(this)};Mr.prototype.setCallback=function(a){this.callback_=a;nZc(this,mt(function(b){b.register(this.targetId_,mt(this.handlePickerAction_,this))},this))};
Mr.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new Edb(this.isVisible())),pZc(this),ZYc(this),this.getHandler().unlisten(this.getDomHelper().getWindow(),"keydown",this.handleKeydown_),this.iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(a)};var pZc=function(a){a.appId_&&a.sendCommand(new Ddb(a.appId_,window.location.protocol+"//"+window.location.host))};g=Mr.prototype;
g.setRelayUrl=function(a){nZc(this,mt(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&wYc(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});nZc(this,mt(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=Az(a)||window;if(Ir(Hr(this.url_),"ignoreLimits")=="true")a=new uz(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(Ir(Hr(this.url_),"shadeDialog")=="true"){var b=$Ac(UYc(this)),c=zz(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);a=new uz(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=zz(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=zz(a),c=b.width*.618,c=c<b.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(c/.618)),a=zz(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new uz(b,c);WAc(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if(Ir(Hr(this.url_),"shadeDialog")=="true"){var a=Ms(this.getElement()),b=zz(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=$Ac(UYc(this))){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=a>0?a:0;b=Efc(this.getDomHelper().document_).y;Ns(this.getElement(),a,b)}else Mr.superClass_.reposition.call(this)};
g.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}Mr.superClass_.setVisible.call(this,a);this.sendCommand(new Edb(a))};
g.focus=function(){Mr.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};var RV=function(a,b){b=b===void 0?Mr:b;Adb.call(this,a);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.setOrigin(a);this.postProcessors_=[];this.gadgetsDomHelper_=void 0};Y(RV,Bdb);RV.prototype.disposeOnHide_=!1;
RV.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(Suc(Ruc(Hr(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("of");var a=new this.pickerConstructor(qZc(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1);a.setDisposeOnHide(this.disposeOnHide_);
a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var rZc=function(a,b){a.urlParamMap_.set(b,"true");return a};g=RV.prototype;g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};
var sZc=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=RV.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var qZc=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",EXc(a.nav_));var b=new Qp(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){Jr(b,d,c)});return b};var SV=function(){this.activeSession=n(Es);this.attachmentsApi=n(PK);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new LA;this.onCloneBlob=new LA};
SV.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=sZc(rZc(rZc(rZc(rZc((new RV(this.onePickUrl)).addView(xXc().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&c.action==="picked")for(var d=l(c.docs),e=d.next();!e.done;e=d.next())e=new tXc(e.value),c.extraUserInputs.isAttachment?(e=new uXc(e),vXc(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};SV.\u0275fac=function(a){return new (a||SV)};
SV.\u0275cmp=B({type:SV,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"click","disabled"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"button",1),M("click",function(){return b.showDialog()}),K(2,"mat-icon",
2),J()());a&2&&(z(),D("disabled",b.disabled))},dependencies:[aB,PA,Ux,YA,cB],encapsulation:2});var TV=function(){Z.apply(this,arguments);this.issueDetailsBrain=n(jL);this.userResources=n(HD);this.analytics=n(CF);this.isPlusOneText=!1;this.onSubmitComment=new LA};Y(TV,Z);TV.\u0275dir=Z.\u0275dir;TV.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent("editIssue","view","commentAndVoteBanner")};
TV.prototype.onClick=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(b.issueDetailsBrain.id$),2);c=e.yieldResult;b.onSubmitComment.emit(a);if(c==null)return e.return();d={voted:!0,starred:null,notificationSubscription:null};poc(b.userResources,c,d).pipe(gg(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click","commentAndVote");ze(e)})};TV.\u0275fac=function(){var a;return function(b){return(a||(a=fe(TV)))(b||TV)}}();
TV.\u0275cmp=B({type:TV,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},standalone:!1,features:[kg,Uu],decls:1,vars:1,consts:[[1,"callout"],["svgIcon","info",1,"info-icon",3,"matTooltip"],["role","alert",1,"content"],[1,"actions"],["type","button","mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&E(0,Tdb,7,1,"div",0);a&2&&F(b.isPlusOneText?0:-1)},dependencies:[aB,PA,Tx,YA,cB],styles:[".callout[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;min-height:36px;padding:8px;background-color:#e8f0fe;background-color:var(--primary-c50)}.callout[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.info-icon[_ngcontent-%COMP%]{margin-left:8px;margin-right:16px}.content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]});var tZc=["commentBoxContainer"],uZc=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],vZc=function(a){return{focused:a}},wZc=function(a,b){return[a,b]},UV=function(){this.analytics=n(CF);this.hotkeys=n(nH);this.activeSession=n(Es);this.appEvents=n(nD);this.MARKDOWN="MARKDOWN";this.commentChange=new LA;this.warn=this.disabled=this.supportsPreview=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.showRestrictionOptions=!0;this.isLiteralModeSupported=this.canEditIssuesInComponent=
this.isPlusOneCalloutEnabled=!1;this.onPlusOneTextEntered=new LA;this.onChange=new LA;this.onFocusEvent=new LA;this.onSubmit=new LA;this.onRestrict=new LA;this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.focused=!1;this.commentRebound$=new ag(1);this.destroyed$=new ag(1);this.currentTracker=this.activeSession.getTracker()};g=UV.prototype;g.ngOnDestroy=function(){var a;(a=this.comment)==null||$Ec(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(gg(this.destroyed$)).subscribe(function(b){$0a(a,b)});this.appEvents.scrollToCommentBox.pipe(gg(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};g.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};g.getRestrictedLabel=function(){var a,b,c=(b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED";return jBa(c)};
g.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var $0a=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||OQc(c)})};g=UV.prototype;g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
g.removeUpload=function(a){this.comment&&Za(this.comment.uploads,a)};g.scrollIntoView=function(){var a;(a=this.commentBoxContainer)==null||a.nativeElement.scrollIntoView({behavior:"smooth"})};g.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};g.onBlur=function(){this.focused=!1};g.onKeydown=function(a){this.hotkeys.isEnabled()&&(a.key!=="Enter"||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};UV.\u0275fac=function(a){return new (a||UV)};
UV.\u0275cmp=B({type:UV,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(Wg(jS,5),Wg(tZc,5),Wg(FV,5));if(a&2){var c;$g(c=ah())&&(b.commentDraftComponent=c.first);$g(c=ah())&&(b.commentBoxContainer=c.first);$g(c=ah())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",componentId:"componentId",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",disabled:"disabled",warn:"warn",showToolbar:"showToolbar",
idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled",showRestrictionOptions:"showRestrictionOptions",isPlusOneCalloutEnabled:"isPlusOneCalloutEnabled",canEditIssuesInComponent:"canEditIssuesInComponent",isLiteralModeSupported:"isLiteralModeSupported"},outputs:{commentChange:"commentChange",onPlusOneTextEntered:"onPlusOneTextEntered",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},standalone:!1,features:[Uu],ngContentSelectors:["[warning]",
"[recaptchaContainer]","[additionalToolbarItems]"],decls:10,vars:20,consts:[["commentBoxContainer",""],[1,"bv2-comment-box-container",3,"ngClass"],[1,"bv2-comment-textarea-wrapper"],[3,"contentChange","focus","blur","keydown","paste","content","placeholder","disabled","textareaClass","audience","idForAriaLabel","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"],[3,"isPlusOneText"],[3,"onUploadCancel","onUploadComplete","uploads"],[1,"bv2-comment-toolbar"],
[3,"onSubmitComment","isPlusOneText"],[3,"onSelect","disabled"],[3,"disabled"],[1,"goog-inline-block","vertical-centered","restriction-button"],[3,"onPickDoc","onCloneBlob","disabled"],["type","button","mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"disabled"],["type","button","mat-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",1,"button-with-text"],["type","button",
"mat-icon-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",3,"click","disabled"],["svgIcon","restricted"],["type","button","mat-button","","matTooltip","Restrict this comment/attachment","aria-label","Restrict this comment/attachment",1,"button-with-text",3,"click"],[3,"comment","issueId","audience","formattingMode"]],template:function(a,b){if(a&1){var c=r();Ng(uZc);I(0,"div",1,0)(2,"div",2)(3,"b-comment-draft",3);M("contentChange",function(d){t(c);
if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&(b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit()),b.onPlusOneTextEntered&&b.onPlusOneTextEntered.emit(d.trim()==="+1"))}return v()})("focus",function(){t(c);return v(b.onFocus())})("blur",function(){t(c);return v(b.onBlur())})("keydown",function(d){t(c);return v(b.onKeydown(d))})("paste",function(d){t(c);if(d&&d.clipboardData!=null){var e=d.clipboardData;for(var f=!1,h=!1,k=0,q=0;q<e.items.length;q++)e.items[q].kind==="string"&&
e.items[q].type==="text/plain"?f=!0:e.items[q].kind==="file"&&(h=!0,k=q);h&&e.items&&e.files?(h=e.files[0],k=e.items[k].type.replace(/^.*[/]/,""),f?(e=e.getData("text/plain"),e=e.replace(/^.*[\\\/]/,"")):e=(new Date).toString()+"."+k,e={file:h,filename:e}):e=void 0;e&&(d.preventDefault(),d=new File([e.file],e.filename,{type:e.file.type}),b.uploadFile(d))}return v()});J();E(4,Udb,1,1,"b-plus-one-comment-callout",4);J();Og(5);I(6,"b-attachment-uploader",5);M("onUploadCancel",function(d){t(c);b.removeUpload(d);
return v(b.onChange.emit())})("onUploadComplete",function(){t(c);return v(b.onChange.emit())});J();Og(7,1);E(8,Zdb,5,3,"div",6);J();E(9,$db,2,4,"div")}a&2&&(D("ngClass",jh(15,vZc,b.focused)),z(3),D("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",kh(17,wZc,b.disabled?"bv2-disabled":"",b.warn?"banned-words-warning":""))("audience",b.audience)("idForAriaLabel",b.idForAriaLabel)("issueId",b.issueId)("canEditIssuesInComponent",b.canEditIssuesInComponent)("enableMentionsAutocomplete",
!0)("isLiteralModeSupported",b.isLiteralModeSupported),z(),F(b.isPlusOneCalloutEnabled?4:-1),z(2),D("uploads",b.comment.uploads),z(2),F(b.showToolbar?8:-1),z(),F(b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN?9:-1))},dependencies:[Mv,aB,jS,YA,cB,PO,SV,CV,FV,PA,Tx,Ux,TV],encapsulation:2});var VV=function(){this.documentationLinks=n(lK);this.issueLimits=n(uS);this.accessPolicyApi=n($C);this.implicitAccessEnabled=!1};VV.prototype.ngOnInit=function(){var a=this;this.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(this.componentId)).then(function(b){return a.implicitAccessEnabled=b})};VV.prototype.toggleAccessLimits=function(){var a=this;return w(function(b){a.issueLimits.open({componentId:Number(a.componentId),issueId:a.issueId});ze(b)})};
VV.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};VV.prototype.getAccessLimitLevelDisplay=function(a){return a==="LIMIT_APPEND"?"Commenting":a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"?"Visibility":""};
var xZc=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===eRc.accessLevel)b=a?"Only added users + Googlers may access. The assignee, verifier and collaborators may edit. CCs can comment. Googler access is according to their component-level permissions.":"Only added users + Googlers may access. They have their normal access as defined by the component-level permissions.";else{for(var c=l(U_a),d=c.next();!d.done;d=c.next())if(d=d.value,d.accessLevel===b){b=a?d.descriptionWithExpandedAccess:d.descriptionNoExpandedAccess;
break a}b=a?V_a.descriptionWithExpandedAccess:V_a.descriptionNoExpandedAccess}else b="";return b};VV.\u0275fac=function(a){return new (a||VV)};
VV.\u0275cmp=B({type:VV,selectors:[["b-access-limits-chip"]],inputs:{issueId:"issueId",componentId:"componentId",accessLimitLevel:"accessLimitLevel"},standalone:!1,decls:12,vars:4,consts:[["card","onedevHovercard"],["type","button","role","button","matTooltip","Press Alt + Right arrow for more details",1,"chippy","rounded","nowrap","access-limited",3,"click","keydown.enter","keydown.space","onedevHovercardTrigger"],["svgIcon","encrypted_24px",1,"icon-s","valign-middle"],[1,"access-limit-display-name"],
[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"]],template:function(a,b){if(a&1){var c=r();I(0,"button",1);M("click",function(){t(c);return v(b.toggleAccessLimits())})("keydown.enter",function(d){t(c);return v(b.toggleAccessLimitsWithKeystroke(d))})("keydown.space",function(d){t(c);return v(b.toggleAccessLimitsWithKeystroke(d))});K(1,"mat-icon",2);I(2,"span",3);Q(3);J()();I(4,"onedev-hovercard",
null,0)(6,"div",4)(7,"div",5)(8,"span",6);Q(9);I(10,"a",7);Q(11," Learn more");J()()()()()}a&2&&(a=L(5),D("onedevHovercardTrigger",a),z(3),ch(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),z(6),R(" Issue access is limited. ",xZc(b,b.accessLimitLevel)," "),z(),D("href",b.documentationLinks.getIssueAccessLimit(),uf))},dependencies:[aB,YA,cB,fJ,lJ],styles:[".chippy[_ngcontent-%COMP%]{margin-right:8px;cursor:pointer}.chippy[_ngcontent-%COMP%]:hover, .chippy[_ngcontent-%COMP%]:focus, .chippy[_ngcontent-%COMP%]:focus-visible, .chippy[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color;outline-offset:2px}.chippy.access-limited[_ngcontent-%COMP%]{background-color:#d2e3fc;background-color:var(--selected-bg);border:1px solid;border-color:#185abc;border-color:var(--primary-c800);box-shadow:none}.chippy[_ngcontent-%COMP%]   .access-limit-display-name[_ngcontent-%COMP%]{padding-right:2px;font-weight:500}.bubble[_ngcontent-%COMP%]{width:300px}"],
changeDetection:0});var yZc=[[["","additionalToolbarItems",""]]],neb=function(a,b){return{empty:a,"never-focused":b}},WV=function(){var a=this;this.issuePermissionService=n(lL);this.userPreferencesManager=n(OG);this.editIssueService=n(oL);this.analytics=n(CF);this.draftStore=n(kK);this.activeSession=n(Es);this.issueDetailsBrain=n(jL);this.issueCommentDialogsService=n(pS);this.appEvents=n(nD);this.bannedWordsChecker=n(jP);this.componentFridge=n(jD);this.butterBar=n(iK);this.destroyRef=n(df);this.issueId$=new ag(1);this.distinctIssueId$=
this.issueId$.pipe(Xf());this.issue$=this.distinctIssueId$.pipe(fg(function(b){return a.editIssueService.editableIssue$(b)}));this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.recaptchaResponse$=new tj("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new LA;this.issueComponent$=this.issue$.pipe(fg(function(b){return a.componentFridge.watch(b==null?
void 0:b.componentId)}));this.issueAccessLimitLevel$=this.issuePermissionService.accessLimitLevel$.pipe(y(function(b){return b!=null?b:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(y(function(b){return b==="LIMIT_VIEW"||b==="LIMIT_APPEND"||b==="LIMIT_VIEW_TRUSTED"}));this.HOTKEYS=xp;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;
this.accessLevel$=this.issuePermissionService.accessLevel$;this.audience$=this.issuePermissionService.audience$;this.autoCcOnComment$=this.userPreferencesManager.preferences$.pipe(y(function(b){return b.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(y(function(b){return a.editIssueService.issueCommentDraft(b)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(fg(function(b){return b.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(fg(function(b){return b.comment$}));
this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(y(function(b){return a.editIssueService.savingState(b)}));this.isSaving$=this.savingState$.pipe(fg(function(b){return Tq(b.fields,VNa("comment"))}));this.commentLimitReached$=this.events$.pipe(y(function(b){var c=a.activeSession.getCommentNumberLimit();return dya(b)>=c}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(y(function(b){return b?"The comment limit has been reached and no additional comments are permitted.":
a.activeSession.isAnonymous()?"Sign in to use full features.":a.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=Je([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return b&&!d&&!c}));this.showRecaptcha$=Je([this.hasAclToComment$,this.commentLimitReached$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return b&&!c&&a.enableRecaptcha}));this.isPlusOneCalloutEnabled$=this.issueDetailsBrain.voted$.pipe(y(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new tj(!1);this.commentButtonStyle$=Je([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new tj(!0);this.commentButtonEnabled$=Je([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,
this.commentDraftUpdated$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;return b&&bFc(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=Je([this.comment$,this.commentDraftUpdated$]).pipe(y(function(b){var c,d;return(d=(c=l(b).next().value)==null?void 0:c.value)!=null?d:""}),y(function(b){return b.length===0}));this.doAutoRestrictComment$=Je([this.issueComponent$,this.comment$,this.commentDraftUpdated$,this.judgementForNewContent$]).pipe(y(function(b){b=
l(b);var c=b.next().value;var d=b.next().value;b.next();b=b.next().value;c=c!=null?c:null;d=d.uploads.length>0;var e=!(c==null||!c.trackerId);b=(b==null?void 0:b.severity)!=="RESTRICTED"&&(b==null?void 0:b.severity)!=="RESTRICTED_PLUS";return vr(c)&&e&&!Gq(a.activeSession)&&d&&b}))};WV.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
WV.prototype.autoRestrictComment=function(a){var b=this,c;return w(function(d){a&&(c={severity:"RESTRICTED",judgementReason:"Auto-restricted for issue on public tracker being edited from outside of a tracker",resourcePath:void 0,contentJudgementId:void 0},b.setJudgementForNewContent(b.issueId,c),Mq(b.butterBar,"Because this issue is displayed on a public tracker, this comment will be Restricted. You may modify the restriction level before submitting the comment."));ze(d)})};
WV.prototype.ngOnInit=function(){this.doAutoRestrictComment$.pipe(Gh(this.destroyRef)).subscribe(this.autoRestrictComment.bind(this))};var eeb=function(a){var b;return w(function(c){b=!PG(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent("editIssue","toggleAutoCcOnComment",String(b));return x(c,Ge(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
WV.prototype.saveCommentDraft=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return a.bannedWordsChecker.reset(),x(c,Ge(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(rq(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);ze(c)})};
WV.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return(c=a)==null||c.stopPropagation(),d=b.enableRecaptcha?b.recaptchaResponse$.getValue():void 0,e=b.editIssueService.issueCommentDraft(b.internalIssueId).comment(),f=b.editIssueService.editableIssue(b.internalIssueId),x(u,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);if(u.nextAddress!=3)return h=u.yieldResult,h?x(u,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(q=b.commentBox)==null||$0a(q),u.return());b.commentSubmitted.emit();b.enableLiteralModeRevisions&&ztc(b.userPreferencesManager,e.formattingMode).subscribe();b.bannedWordsChecker.reset();b.appEvents.recaptchaSubmitted.next();ze(u)})};WV.prototype.showNewContentJudgementDialog=function(){var a=this;return w(function(b){return x(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
ea.Object.defineProperties(WV.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});WV.\u0275fac=function(a){return new (a||WV)};
WV.\u0275cmp=B({type:WV,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&Wg(UV,5);if(a&2){var c;$g(c=ah())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton"},outputs:{commentSubmitted:"commentSubmitted"},standalone:!1,features:[hh([jP])],ngContentSelectors:["[additionalToolbarItems]"],decls:4,vars:3,consts:[["actionButtons",""],["commentBox",""],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment",3,"ngClass"],
["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled","warn","isLiteralModeSupported"],["id","AddCommentBox",3,"onHotkey","onChange","onFocusEvent","onSubmit","onRestrict","onPlusOneTextEntered","hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled","warn","isLiteralModeSupported"],["warning",
"",1,"banned-words-warning","break-word"],["recaptchaContainer",""],["additionalToolbarItems","",1,"goog-inline-block"],[1,"goog-inline-block"],[1,"goog-inline-block","vertical-centered"],[3,"initialValue"],[3,"issueId","componentId","accessLimitLevel"],[3,"issueId"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"onUpdate"],[4,"ngTemplateOutlet"],[3,"change","checked","disabled"],["matTooltip",
"(issuePermissionService.addMeToCcDisabledReason$ | async) || ''",3,"checked","disabled"],[3,"change","initialValue"],[3,"format","disabled","color"],[3,"onAction","click","format","disabled","color"]],template:function(a,b){a&1&&(Ng(yZc),E(0,peb,1,1),S(1,"async"),C(2,reb,1,1,"ng-template",null,0,nh));if(a&2){var c;F((c=T(1,1,b.issue$))?0:-1,c)}},dependencies:[aH,UV,wQ,Mv,Pv,pH,yM,CM,kS,VV,cP,Qv],styles:["[_nghost-%COMP%]{display:block;margin-bottom:8px}[_nghost-%COMP%]     .bv2-edit-issue-add-comment{padding-left:0;padding-right:0}textarea[_ngcontent-%COMP%]{display:block;margin:0;margin-bottom:8px;max-height:40vh;min-height:130px;resize:none;width:100%}@media(forced-colors: active){[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-mdc-button.mat-mdc-unelevated-button{border:1px solid;border-color:#dadce0;border-color:var(--divider)}}[_nghost-%COMP%]     .bv2-comment-toolbar .goog-inline-block b-button .gmat-mdc-button.mat-mdc-unelevated-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}button[_ngcontent-%COMP%], mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea{min-height:32px;height:32px !important}.recent-first   [_nghost-%COMP%]     .empty.never-focused textarea:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.recent-first   [_nghost-%COMP%]     .empty.never-focused b-live-preview{display:none}.banned-words-warning[_ngcontent-%COMP%]{margin-bottom:16px;color:#c5221f;color:var(--bad-text)}/*# sourceMappingURL=post_comment.css.map */"]});var XV=function(){};XV.\u0275fac=function(a){return new (a||XV)};XV.\u0275mod=Jf({type:XV});XV.\u0275inj=Tc({providers:[{provide:lXc,useFactory:function(){return new iXc}}]});var $V=function(){};$V.\u0275fac=function(a){return new (a||$V)};$V.\u0275mod=Jf({type:$V});$V.\u0275inj=Tc({imports:[Yv,XV]});var aW=function(){};aW.\u0275fac=function(a){return new (a||aW)};aW.\u0275mod=Jf({type:aW});aW.\u0275inj=Tc({providers:[{provide:kXc,useFactory:DV}],imports:[ZB,$B,cC,$V,VB]});var bW=function(){};bW.\u0275fac=function(a){return new (a||bW)};bW.\u0275mod=Jf({type:bW});bW.\u0275inj=Tc({imports:[ZB,$B,cC]});var cW=function(){};cW.\u0275fac=function(a){return new (a||cW)};cW.\u0275mod=Jf({type:cW});cW.\u0275inj=Tc({imports:[ZB,cV,EL,cC,bH,BQ,aW,$B,bW]});var dW=function(){};dW.\u0275fac=function(a){return new (a||dW)};dW.\u0275mod=Jf({type:dW});dW.\u0275inj=Tc({imports:[ZB,$B,LH,cC,EL]});var eW=function(){};eW.\u0275fac=function(a){return new (a||eW)};eW.\u0275mod=Jf({type:eW});eW.\u0275inj=Tc({imports:[dW,ZB,eV,EL,$B,$K,LH,cC,QQ,GM]});var fW=function(){};fW.\u0275fac=function(a){return new (a||fW)};fW.\u0275mod=Jf({type:fW});fW.\u0275inj=Tc({imports:[ZB,FQ,cC,WJ,eW]});var gW=function(){};gW.\u0275fac=function(a){return new (a||gW)};gW.\u0275mod=Jf({type:gW});gW.\u0275inj=Tc({});var hW=function(){};hW.\u0275fac=function(a){return new (a||hW)};hW.\u0275mod=Jf({type:hW});hW.\u0275inj=Tc({imports:[bH,cW,BQ,ZB,HQ,Ly,qH,$B,GM,gW,fW,RQ]});var zZc=["addLink"],AZc=["peopleKitDiv"],Aeb=function(a){return{"disabled-icon":a}},BZc=[Object.assign({},Heb("start","bottom"),Ieb("start","top"),{offsetY:8}),Object.assign({},Heb("center","bottom"),Ieb("center","top"),{offsetY:8}),Object.assign({},Heb("end","bottom"),Ieb("end","top"),{offsetY:8}),Object.assign({},Heb("start","top"),Ieb("start","bottom"),{offsetY:-8}),Object.assign({},Heb("end","top"),Ieb("end","bottom"),{offsetY:-8})],iW=function(){var a=this;this.activeSession=n(Es);this.principalTypesFridge=
n(mG);this.issuePermissionService=n(lL);this.issueDetailsBrain=n(jL);this.autocompleteConfigService=n(WO);this.title=this.name="";this.values=null;this.collectionHovercardDescription=this.removeSelfActionLongDescription=this.removeSelfActionDescription=this.includeSelfActionLongDescription=this.includeSelfActionDescription="";this.valueChange=new LA;this.userInclusionToggle=new LA;this.enablePeoplekitAc=Yr(this.activeSession,"enablePeoplekitUserAc");this.iconName="";this.teamId$=this.issueDetailsBrain.teamId$;
this.ListFieldType=aJc;this.providedValues$=new ag(1);this.groups$=this.providedValues$.pipe(fg(function(b){return a.extractGroups(b)}),eg(new Set));this.OVERLAY_POSITION_LIST=BZc;this.newlySelectedUsersString="";this.inputValidator=null;this.checkAccessLimits=!1;this.overlayPosition=BZc;this.toggleAccessLimits=new LA;this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new iJ,{position:[zBc]});this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.enableTeamAnnotations=this.activeSession.isInternalSession()};
g=iW.prototype;g.extractGroups=function(a){var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(y(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};g.removeItem=function(a){if(this.values){var b=[].concat(p(this.values));b.splice(a,1);this.valueChange.emit({editField:null,newUsers:b})}};g.getUser=function(a){if(!this.users||!this.values)return{emailAddress:""};a=this.values.indexOf(a);return a===-1?{emailAddress:""}:this.users[a]};
g.closeAddPopup=function(a){var b,c=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};g.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};g.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
g.addItems=function(a){if(a){var b=[];this.values=this.values||[];a=l(a.split(/[,; ]/));for(var c=a.next();!c.done;c=a.next())(c=c.value)&&!this.values.includes(c)&&b.push(c);b.length!==0&&(this.values=[].concat(p(this.values),p(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};iW.\u0275fac=function(a){return new (a||iW)};
iW.\u0275cmp=B({type:iW,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(Wg(zZc,5),Wg(YG,5),Wg(TM,5),Wg(AZc,5));if(a&2){var c;$g(c=ah())&&(b.addLinkEl=c.first);$g(c=ah())&&(b.menuTriggers=c);$g(c=ah())&&(b.popupTriggers=c);$g(c=ah())&&(b.peopleKitDiv=c)}},inputs:{name:"name",title:"title",values:"values",includeSelfActionDescription:"includeSelfActionDescription",includeSelfActionLongDescription:"includeSelfActionLongDescription",removeSelfActionDescription:"removeSelfActionDescription",
removeSelfActionLongDescription:"removeSelfActionLongDescription",collectionHovercardDescription:"collectionHovercardDescription",users:"users",isSaving:"isSaving",iconName:"iconName",isCurrentUserInCollection:"isCurrentUserInCollection",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",overlayPosition:"overlayPosition"},outputs:{valueChange:"valueChange",userInclusionToggle:"userInclusionToggle",toggleAccessLimits:"toggleAccessLimits"},
standalone:!1,decls:25,vars:13,consts:[["listActions",""],["textPopup",""],["addLink",""],["hovercard","onedevHovercard"],["removeButton",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-issue-metadata-field-inner"],[1,"bv2-editable-title"],[1,"list-field-content"],[3,"isExpanded","iconName","hasCompactTitleBar","title"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-field-user-action-footer"],
["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[4,"ngTemplateOutlet"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","href","https://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank",1,"primary"],[1,"value-action"],["tabindex","0","role","button",1,"bv2-metadata-tool",
"bv2-metadata-link",3,"disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[3,"onAddItems","onCancel","actionName","inputValidator","isAllowedToEditCollection","title"],[1,"bv2-issue-metadata-list-item","list-field-user-container"],[3,"user","email","teamId","enableSmallChip","enableGroupIcon"],["name","group_24px","size","small",1,"group-icon"],[3,"email"],["type","button","aria-label","Open issue access dialog.",
1,"unstyled","keep-focus-ring",3,"disabled"],["type","button","aria-label","Open issue access dialog.",1,"unstyled","keep-focus-ring",3,"click","disabled"],["size","small","name","edit_24px",1,"issue-metadata-field-edit-icon",3,"ngClass"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","matTooltip"]],template:function(a,b){a&1&&(C(0,veb,2,1,"ng-template",null,0,nh)(2,web,3,4,
"ng-template",null,1,nh),I(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),Q(8),J()(),I(9,"div",8)(10,"collapsible-panel",9),Dg(11,Eeb,9,8,"div",10,Bg),J(),I(13,"div",11,2),E(15,Feb,2,8,"button",12),C(16,Geb,1,0,"ng-container",13),J()()()(),I(17,"onedev-hovercard",null,3)(19,"div",14)(20,"div",15)(21,"span",16),Q(22),I(23,"a",17),Q(24,"Learn more."),J()()()()());if(a&2){a=L(1);var c=L(18);z(4);D("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",b.USER_FIELD_HOVERCARD_CONFIG);
z(4);R(" ",b.title," ");z(2);Rg("title","",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users");D("isExpanded",!0)("iconName",b.iconName)("hasCompactTitleBar",!0);z();Eg(b.values);z(4);F(b.isAllowedToEditCollection?15:-1);z();D("ngTemplateOutlet",a);z(6);R(" ",b.collectionHovercardDescription," ")}},dependencies:[Mv,Pv,fJ,lJ,IJ,YA,cB,PA,Tx,MM,DL,CL,TM,PM,OM,YU,Qv],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.bv2-field-user-action-footer[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});var jW=function(){};jW.\u0275fac=function(a){return new (a||jW)};jW.\u0275mod=Jf({type:jW});jW.\u0275inj=Tc({imports:[Yv]});var kW=function(){};kW.\u0275fac=function(a){return new (a||kW)};kW.\u0275mod=Jf({type:kW});kW.\u0275inj=Tc({imports:[Yv,ZQ]});var lW=function(){};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275mod=Jf({type:lW});lW.\u0275inj=Tc({imports:[jW,Yv,ZQ,kW]});var mW=function(){};mW.\u0275fac=function(a){return new (a||mW)};mW.\u0275mod=Jf({type:mW});mW.\u0275inj=Tc({});var nW=function(){};nW.\u0275fac=function(a){return new (a||nW)};nW.\u0275mod=Jf({type:nW});nW.\u0275inj=Tc({imports:[Yv,VJ,ZQ,gN,Aw,mW]});var oW=function(){};oW.\u0275fac=function(a){return new (a||oW)};oW.\u0275mod=Jf({type:oW});oW.\u0275inj=Tc({imports:[bI,ZB,iN,lW,WJ,XJ,VB,cC,$B,NM,nW,FL,EL,XM,QM,pV]});var pW=function(){};pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275mod=Jf({type:pW});pW.\u0275inj=Tc({imports:[bI,ZB,cJ,XL,lW,qH,XJ,VB,FL,mV]});var qW=function(){};qW.\u0275fac=function(a){return new (a||qW)};qW.\u0275mod=Jf({type:qW});qW.\u0275inj=Tc({imports:[ZB,cV,eV,TU,XL,Ly,$B,GM,LH,yQ,cC,qH,jV,hV,WJ,uL,UQ,iN,gO,oW,pV,hW,pW,QN,FL,PM]});Qla(BS,[aB,rS,VL,PA,Tx,YA,cB,pH,hN,iW,WV,GU,KU,UU,$U,ZU],[Qv]);var rW=function(){};rW.\u0275fac=function(a){return new (a||rW)};rW.\u0275mod=Jf({type:rW});rW.\u0275inj=Tc({});var sW=function(){};sW.\u0275fac=function(a){return new (a||sW)};sW.\u0275mod=Jf({type:sW});sW.\u0275inj=Tc({imports:[ZB]});var tW=function(){};tW.\u0275fac=function(a){return new (a||tW)};tW.\u0275mod=Jf({type:tW});tW.\u0275inj=Tc({imports:[ZB,$B,ux]});var uW=function(){};uW.\u0275fac=function(a){return new (a||uW)};uW.\u0275mod=Jf({type:uW});uW.\u0275inj=Tc({imports:[Aw,cT,Yv,iT,VJ,YB,yx,fT]});var vW=function(){};vW.\u0275fac=function(a){return new (a||vW)};vW.\u0275mod=Jf({type:vW});vW.\u0275inj=Tc({imports:[ZB,QT,BQ,dM,tW,EL,$B,$K,cC,WJ,uW,FL,QN,GQ]});var wW=function(){};wW.\u0275fac=function(a){return new (a||wW)};wW.\u0275mod=Jf({type:wW});wW.\u0275inj=Tc({imports:[ZB,LH,$B,$K,RL,ZM,vM,cC,oR,gO,GM,Ly,GQ]});var xW=function(){};xW.\u0275fac=function(a){return new (a||xW)};xW.\u0275mod=Jf({type:xW});xW.\u0275inj=Tc({imports:[vW,rW,ZB,QT,sW,EL,$B,cC,wW,GQ]});var yW=function(){};yW.\u0275fac=function(a){return new (a||yW)};yW.\u0275mod=Jf({type:yW});yW.\u0275inj=Tc({imports:[ZB,BQ,$B,QN]});var zW=function(){};zW.\u0275fac=function(a){return new (a||zW)};zW.\u0275mod=Jf({type:zW});zW.\u0275inj=Tc({imports:[QT,xW,BQ,ZB,dM,yW,WJ,uL,$B,cC,wW,QN,FL]});var AW=function(){};AW.\u0275fac=function(a){return new (a||AW)};AW.\u0275mod=Jf({type:AW});AW.\u0275inj=Tc({imports:[ZB]});var BW=function(){};BW.\u0275fac=function(a){return new (a||BW)};BW.\u0275mod=Jf({type:BW});BW.\u0275inj=Tc({imports:[ZB,HQ]});var CW=function(){};CW.\u0275fac=function(a){return new (a||CW)};CW.\u0275mod=Jf({type:CW});CW.\u0275inj=Tc({imports:[ZB,WJ,TQ,dM,FL,BW,BQ]});var DW=function(){};DW.\u0275fac=function(a){return new (a||DW)};DW.\u0275mod=Jf({type:DW});DW.\u0275inj=Tc({imports:[ZB,BQ]});var EW=function(){};EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275mod=Jf({type:EW});EW.\u0275inj=Tc({imports:[QT,xW,BQ,ZB,dM,WJ,CW,uL,wW,FL,cC,DW,$B,AW]});var FW=function(){};FW.\u0275fac=function(a){return new (a||FW)};FW.\u0275mod=Jf({type:FW});FW.\u0275inj=Tc({imports:[ZB,EW,CW,$B,QN]});var Jeb=function(a){return{stage:a}},Seb=function(a){return{summary:a}},Zeb=function(a){return{"has-reacted-icon":a}},GW=function(){Z.apply(this,arguments);var a=this;this.llmIssueSummaryService=n(bU);this.userFeedback=n(JS);this.GENERATING="GENERATING";this.SUMMARY_VISIBLE="SUMMARY_VISIBLE";this.isIssueSummaryExpanded=!0;this.stage$=this.llmIssueSummaryService.stage$;this.summary$=this.llmIssueSummaryService.summary$.pipe(hg(function(b){b&&b.summary&&a.llmIssueSummaryService.trackEvent("display",
"issueDetailsPage")}),cg({refCount:!0,bufferSize:1}));this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1};Y(GW,Z);GW.\u0275dir=Z.\u0275dir;g=GW.prototype;g.ngOnInit=function(){var a=this;this.llmIssueSummaryService.summarizable$.pipe(gg(this.destroyed$)).subscribe(function(b){b.isSummarizable&&a.llmIssueSummaryService.trackEvent("viewSummarizableIssue","issueDetailsPage")})};
g.trackThumbsUp=function(a){Mj("thumbsup");this.thumbsUpClicked=this.hasReacted=!0;this.llmIssueSummaryService.trackThumbsUp(a,"issueDetailsPage")};g.trackThumbsDown=function(a){Mj("thumbsdown");this.thumbsDownClicked=this.hasReacted=!0;this.llmIssueSummaryService.trackThumbsDown(a,"issueDetailsPage")};g.openFeedbackDialog=function(a){this.userFeedback.startFeedback();a&&cU(this.llmIssueSummaryService,a,"FEEDBACK")};
g.copySummary=function(a){navigator.clipboard.writeText(a.summary);var b=this.llmIssueSummaryService;b.trackEvent("copy","issueDetailsPage");cU(b,a,"COPY")};GW.\u0275fac=function(){var a;return function(b){return(a||(a=fe(GW)))(b||GW)}}();
GW.\u0275cmp=B({type:GW,selectors:[["llm-summary"]],standalone:!1,features:[kg],decls:10,vars:3,consts:[["showHeader",""],["showBody",""],["renderedSummary",""],["showingSummary",""],["aiHelp",""],[1,"summary","main-div","carded","margin-s-sides","margin-s-bottom","flex-kids-x","padded-sides"],["svgIcon","chat_spark_24px","color","primary",1,"margin-s-right","shrink-0"],[1,"flex-kids-y","gap-s","full-width"],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"summary-header"],
[1,"uppercase"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click","matTooltipShowDelay"],["svgIcon","arrow-up",1,"icon-s"],["svgIcon","arrow-down",1,"icon-s"],[3,"content"],[1,"white-space-pre-wrap","overflow"],[1,"flex-kids-x","space-between","full-width"],[1,"type-s",
"instructional"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Copy","aria-label","copy summary",1,"feedback-button","copy-issue-summary",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button","summary-feedback",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb up",1,"feedback-button","summary-thumbs-up",
3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s",3,"ngClass"],["type","button","mat-icon-button","","aria-label","thumb down",1,"feedback-button","summary-thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s",3,"ngClass"],[1,"instructional"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button",3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(E(0,Meb,1,1),S(1,"async"),C(2,Qeb,11,4,
"ng-template",null,0,nh)(4,Veb,2,1,"ng-template",null,1,nh)(6,Yeb,2,1,"ng-template",null,2,nh)(8,bfb,2,1,"ng-template",null,3,nh));if(a&2){var c;F((c=T(1,1,b.stage$))?0:-1,c)}},dependencies:[Mv,Pv,aB,ON,PA,Ux,YA,cB,jN,WM,JO,Qv],styles:[".main-div[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.summary-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.instructional[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}\n/*# sourceMappingURL=llm_summary.css.map */"]});var HW=function(){};HW.\u0275fac=function(a){return new (a||HW)};HW.\u0275mod=Jf({type:HW});HW.\u0275inj=Tc({imports:[ZB,QN,$B,$K,cC,GQ,XM,BQ]});var IW=function(){};IW.\u0275fac=function(a){return new (a||IW)};IW.\u0275mod=Jf({type:IW});IW.\u0275inj=Tc({imports:[ZB,$B,ZM,HW,yQ]});var JW=function(){};JW.\u0275fac=function(a){return new (a||JW)};JW.\u0275mod=Jf({type:JW});JW.\u0275inj=Tc({imports:[ZB,jV,hV,qH,$B]});var KW=function(){};KW.\u0275fac=function(a){return new (a||KW)};KW.\u0275mod=Jf({type:KW});KW.\u0275inj=Tc({imports:[ZB,$B,cC,ZM,aN]});var LW=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};LW.\u0275fac=function(a){return new (a||LW)};
LW.\u0275cmp=B({type:LW,selectors:[["avatar-bunch"]],inputs:{emails:"emails"},standalone:!1,decls:4,vars:5,consts:[["size","medium",3,"email"],["type","button",1,"link-button","subtle-link",3,"title"],["type","button",1,"link-button","subtle-link",3,"click","title"]],template:function(a,b){a&1&&(Dg(0,cfb,1,1,"b-user-image",0,Cg),S(2,"slice"),E(3,efb,1,1));a&2&&(Eg(Pla(2,1,b.emails,b.limit)),z(3),F(b.emails.length-b.limit>0?3:-1))},dependencies:[AL,Xv],styles:["[_nghost-%COMP%]{display:block;margin-bottom:-8px}b-user-image[_ngcontent-%COMP%]{margin-right:8px;margin-bottom:8px}b-user-image.medium[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=avatar_bunch.css.map */"]});var ffb=function(){return[]},MW=function(){this.makeCritiqueUrl=A9a;this.submitted=[];this.pending=[]};MW.\u0275fac=function(a){return new (a||MW)};
MW.\u0275cmp=B({type:MW,selectors:[["cl-counts"]],inputs:{submitted:"submitted",pending:"pending"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","","src","https://static.corp.google.com/devtools/codereview/new_logo_only.svg",1,"logo"],["target","_blank","title","Number of total CLs and pending CLs associated with all of these issues",1,"subtle-link",3,"href"],["target","_blank","title","Number of pending CLs associated with all of these issues",
1,"subtle-link",3,"href"]],template:function(a,b){a&1&&E(0,hfb,7,3,"div",0);if(a&2){var c;F((c=b.submitted.length+b.pending.length)?0:-1,c)}},styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .logo[_ngcontent-%COMP%] {\n      width: 20px;\n    }\n    a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good)\n    }"],changeDetection:0});var CZc=function(){this.changes=[]};CZc.\u0275fac=function(a){return new (a||CZc)};CZc.\u0275cmp=B({type:CZc,selectors:[["gerrit-changes-count"]],inputs:{changes:"changes"},standalone:!1,decls:5,vars:2,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","gerrit-logo",1,"icon-xs"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"mat-icon",1),Q(2," \u00a0 "),I(3,"p"),Q(4),J()());a&2&&(z(4),dh("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[aB],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var NW=function(){this.imageUrls=n(qN);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};ea.Object.defineProperties(NW.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?G9a(a):void 0}}});NW.\u0275fac=function(a){return new (a||NW)};
NW.\u0275cmp=B({type:NW,selectors:[["issue-count"]],inputs:{ref:"ref",count:"count"},standalone:!1,decls:5,vars:2,consts:[["title","Total issues in this area, in any status",1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","",1,"logo",3,"src"],[1,"subtle-link",3,"routerLink"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"img",1),Q(2," \u00a0 "),E(3,jfb,1,1)(4,kfb,1,1),J());a&2&&(z(),D("src",b.LOGO_LIGHT,uf),z(2),F(b.searchPageUrl?3:4))},dependencies:[FA],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .logo[_ngcontent-%COMP%] {\n      width: 20px; \n\n      max-width: 20px; \n\n    }"],
changeDetection:0});var OW=function(){};OW.\u0275fac=function(a){return new (a||OW)};OW.\u0275mod=Jf({type:OW});OW.\u0275inj=Tc({imports:[ZB,fO,YB,$B,FL]});var PW=function(){};PW.\u0275fac=function(a){return new (a||PW)};PW.\u0275mod=Jf({type:PW});PW.\u0275inj=Tc({providers:[HVc],imports:[zx]});var QW=function(){};QW.\u0275fac=function(a){return new (a||QW)};QW.\u0275mod=Jf({type:QW});QW.\u0275inj=Tc({imports:[Aw,QT,fR,SJ,sA,ZB,dM,Ly,$B,GM,oR,fO,cC,UQ,gR,PW,My,OW,XH,qQ,QN,pP,FL]});var RW=function(){};RW.\u0275fac=function(a){return new (a||RW)};RW.\u0275mod=Jf({type:RW});RW.\u0275inj=Tc({imports:[ZB,QW,QN]});var SW=function(){};SW.\u0275fac=function(a){return new (a||SW)};SW.\u0275mod=Jf({type:SW});SW.\u0275inj=Tc({imports:[ZB,$B]});var TW=function(){};TW.\u0275fac=function(a){return new (a||TW)};TW.\u0275mod=Jf({type:TW});TW.\u0275inj=Tc({imports:[QT,VB,ZB,BQ,dM,IW,FW,SW,$B,GM,LH,oR,cC,jV,WJ,TQ,zW,JW,aR,uL,UQ,gR,KW,RL,qQ,pW,RW,qW,FL]});var UW=function(){this.matDialog=n(tK)};UW.prototype.show=function(a){this.dialog=this.matDialog.open(VW,{width:"500px",data:a});return Ge(nK(this.dialog))};UW.\u0275fac=function(a){return new (a||UW)};UW.\u0275prov=Sc({token:UW,factory:UW.\u0275fac,providedIn:"root"});
var VW=function(){this.butterBar=n(iK);this.data=n(sK);this.dialogRef=n(mK);this.teamsService=n(yG);this.dialogTitle="Create Triage View";this.triageForm=new sy({displayName:new uy("",ky),scope:new uy("",ky),showComponentColumn:new uy(!1)});this.data.triage?(this.triage=Qj(this.data.triage),this.triage.displayName=rp(this.data.teamName,this.triage)):this.triage={id:Math.max.apply(Math,p(this.data.teamExperiments.triage.map(function(a){return a.id})))+1,displayName:"",scope:"",showComponentColumn:!1,
config:[]};this.triageForm.patchValue({displayName:this.triage.displayName,scope:this.triage.scope,showComponentColumn:this.triage.showComponentColumn});this.dialogTitle=this.data.triage?"Edit triage view":"Create new triage view"};
VW.prototype.save=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1)return a.triage.displayName=a.triageForm.value.displayName,a.triage.scope=a.triageForm.value.scope,a.triage.showComponentColumn=a.triageForm.value.showComponentColumn,a.data.triage?(b=a.data.teamExperiments.triage.findIndex(function(e){return e.id===a.triage.id}),a.data.teamExperiments.triage.splice(b,1,a.triage)):a.data.teamExperiments.triage.push(a.triage),Mq(a.butterBar,"Saving changes...",0),te(d,2),x(d,Ge(jtc(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return Mq(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),uu(d,0);c=xe(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);ze(d)})};VW.\u0275fac=function(a){return new (a||VW)};
VW.\u0275cmp=B({type:VW,selectors:[["b-triage-view-config-dialog"]],standalone:!1,decls:22,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-material","flex-kids-x"],[3,"formGroup"],[1,"dialog-row"],[1,"bv2-top-field-label"],["for","triage-title",1,"required"],"type text id triage-title formControlName displayName required  aria-required true".split(" "),["for","triage-scope",1,"required"],"type text id triage-scope formControlName scope placeholder componentid:123+ required  aria-required true".split(" "),
"gmat-checkbox  id triage-component-name-toggle formControlName showComponentColumn".split(" "),["mat-dialog-actions",""],"type button gmat-button  mat-stroked-button  mat-dialog-close ".split(" "),["type","button","gmat-button","","mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"div",4)(6,"label",5),Q(7,"Title"),J()(),K(8,"input",6),J(),I(9,"div",3)(10,"div",4)(11,"label",7),Q(12,
"Search Scope"),J()(),K(13,"textarea",8),J(),I(14,"div",3)(15,"mat-checkbox",9),Q(16," Show component name column in triage view "),J()()()(),I(17,"footer",10)(18,"button",11),Q(19,"Cancel"),J(),I(20,"button",12),M("click",function(){return b.save()}),Q(21,"Save"),J()());a&2&&(z(),ch(b.dialogTitle),z(2),D("formGroup",b.triageForm),z(17),D("disabled",!b.triageForm.valid))},dependencies:[wy,Li,oy,py,Gy,PA,Tx,yM,CM,uK,wK,yK,xK,By,Cy],styles:[".dialog-row[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:24px}input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast);-moz-box-sizing:border-box;box-sizing:border-box;height:29px;line-height:16px;padding-left:9px;vertical-align:top}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%}"],
changeDetection:0});var WW=function(){};WW.\u0275fac=function(a){return new (a||WW)};WW.\u0275mod=Jf({type:WW});WW.\u0275inj=Tc({imports:[Ly,$B,GM,$K,aN,My]});var DZc=new yd("CdkAccordion");var XW=function(){this.accordion=n(DZc,{optional:!0,skipSelf:!0});this._changeDetectorRef=n(qv);this._expansionDispatcher=n($w);this._openCloseAllSubscription=ke.EMPTY;this.closed=new hv;this.opened=new hv;this.destroyed=new hv;this.expandedChange=new hv;this.id=n(Gw).getId("cdk-accordion-child-");this.disabled=this._expanded=!1;this._removeUniqueSelectionListener=function(){}};g=XW.prototype;
g.ngOnInit=function(){var a=this;this._removeUniqueSelectionListener=this._expansionDispatcher.listen(function(b,c){a.accordion&&!a.accordion.multi&&a.accordion.id===c&&a.id!==b&&(a.expanded=!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};g.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};
g.toggle=function(){this.disabled||(this.expanded=!this.expanded)};g.close=function(){this.disabled||(this.expanded=!1)};g.open=function(){this.disabled||(this.expanded=!0)};g._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
ea.Object.defineProperties(XW.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){this._expanded!==a&&(this._expanded=a,this.expandedChange.emit(a),a?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}}});XW.\u0275fac=function(a){return new (a||XW)};
XW.\u0275dir=Kf({type:XW,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",Dh],disabled:[2,"disabled","disabled",Dh]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[hh([{provide:DZc,useValue:void 0}])]});var YW=function(){};YW.\u0275fac=function(a){return new (a||YW)};YW.\u0275mod=Jf({type:YW});YW.\u0275inj=Tc({});var EZc=new yd("MAT_ACCORDION");var FZc=new yd("MAT_EXPANSION_PANEL");var ZW=function(){this._template=n(Tg);this._expansionPanel=n(FZc,{optional:!0})};ZW.\u0275fac=function(a){return new (a||ZW)};ZW.\u0275dir=Kf({type:ZW,selectors:[["ng-template","matExpansionPanelContent",""]]});var GZc=["body"],HZc=["bodyWrapper"],IZc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],JZc=new yd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),$W=function(){XW.call(this);var a=this;this._viewContainerRef=n(Ug);this._animationsDisabled=Hi();this._document=n(Ei);this._ngZone=n(ph);this._elementRef=n(ff);this._renderer=n(jv);this._hideToggle=!1;this.afterExpand=new hv;this.afterCollapse=new hv;this._inputChanges=new bg;this.accordion=n(EZc,{optional:!0,skipSelf:!0});this._headerId=n(Gw).getId("mat-expansion-panel-header-");
this._transitionEndListener=function(c){var d=c.target;c=c.propertyName;var e;d===((e=a._bodyWrapper)==null?void 0:e.nativeElement)&&c==="grid-template-rows"&&a._ngZone.run(function(){a.expanded?a.afterExpand.emit():a.afterCollapse.emit()})};var b=n(JZc,{optional:!0});this._expansionDispatcher=n($w);b&&(this.hideToggle=b.hideToggle)};Y($W,XW);$W.\u0275dir=XW.\u0275dir;g=$W.prototype;g._hasSpacing=function(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1};
g._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};g.toggle=function(){this.expanded=!this.expanded};g.close=function(){this.expanded=!1};g.open=function(){this.expanded=!0};g.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(eg(null),Ve(function(){return a.expanded&&!a._portal}),Uf()).subscribe(function(){a._portal=new px(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
g.ngOnChanges=function(a){this._inputChanges.next(a)};g.ngOnDestroy=function(){XW.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransitionEnd)==null||a.call(this);this._inputChanges.complete()};g._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
g._setupAnimationEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._animationsDisabled?(a.opened.subscribe(function(){return a._ngZone.run(function(){return a.afterExpand.emit()})}),a.closed.subscribe(function(){return a._ngZone.run(function(){return a.afterCollapse.emit()})})):setTimeout(function(){var b=a._elementRef.nativeElement;a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a._transitionEndListener);b.classList.add("mat-expansion-panel-animations-enabled")},
200)})};ea.Object.defineProperties($W.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=a}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});$W.\u0275fac=function(a){return new (a||$W)};
$W.\u0275cmp=B({type:$W,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&Xg(c,ZW,5);if(a&2){var d;$g(d=ah())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(Wg(GZc,5),Wg(HZc,5));if(a&2){var c;$g(c=ah())&&(b._body=c.first);$g(c=ah())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&wg("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",Dh],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[hh([{provide:EZc,useValue:void 0},{provide:FZc,useExisting:$W}]),kg,Uu],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(a,
b){a&1&&(Ng(IZc),Og(0),I(1,"div",2,0)(3,"div",3,1)(5,"div",4),Og(6,1),C(7,lfb,0,0,"ng-template",5),J(),Og(8,2),J()());a&2&&(z(),ng("inert",b.expanded?null:""),z(2),D("id",b.id),ng("aria-labelledby",b._headerId),z(4),D("cdkPortalOutlet",b._portal))},dependencies:[tx],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],
encapsulation:2,changeDetection:0});var KZc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],aX=function(){var a=this;this.panel=n($W,{host:!0});this._element=n(ff);this._focusMonitor=n(gw);this._changeDetectorRef=n(qv);this._parentChangeSubscription=ke.EMPTY;this.tabIndex=0;n(kw).load(Gx);var b=this.panel,c=n(JZc,{optional:!0}),d=n(new Vu("tabindex"),{optional:!0}),e=b.accordion?b.accordion._stateChanges.pipe(Ve(function(f){return!(!f.hideToggle&&!f.togglePosition)})):Te;this.tabIndex=parseInt(d||"")||0;this._parentChangeSubscription=
Ue(b.opened,b.closed,e,b._inputChanges.pipe(Ve(function(f){return!!(f.hideToggle||f.disabled||f.togglePosition)}))).subscribe(function(){return a._changeDetectorRef.markForCheck()});b.closed.pipe(Ve(function(){return b._containsFocus()})).subscribe(function(){return hw(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};g=aX.prototype;g._toggle=function(){this.disabled||this.panel.toggle()};g._isExpanded=function(){return this.panel.expanded};
g._getExpandedState=function(){return this.panel._getExpandedState()};g._getPanelId=function(){return this.panel.id};g._getTogglePosition=function(){return this.panel.togglePosition};g._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};g._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};
g._keydown=function(a){switch(a.keyCode){case 32:case 13:ri(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};g.focus=function(a,b){a?hw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};
g.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};ea.Object.defineProperties(aX.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});aX.\u0275fac=function(a){return new (a||aX)};
aX.\u0275cmp=B({type:aX,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(a,b){a&1&&M("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(ng("id",b.panel._headerId)("tabindex",b.disabled?-1:b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),vg("height",b._getHeaderHeight()),wg("mat-expanded",b.panel.expanded)("mat-expansion-toggle-indicator-after",
b._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",b._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:Eh(a)}]},ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],"xmlns;http://www.w3.org/2000/svg;viewBox;0 -960 960 960;aria-hidden;true;focusable;false".split(";"),["d",
"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(a,b){a&1&&(Ng(KZc),I(0,"span",0),Og(1),Og(2,1),Og(3,2),J(),E(4,mfb,3,0,"span",1));a&2&&(wg("mat-content-hide-toggle",!b._showToggle()),z(4),F(b._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],
encapsulation:2,changeDetection:0});var LZc=function(){};LZc.\u0275fac=function(a){return new (a||LZc)};LZc.\u0275dir=Kf({type:LZc,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var bX=function(){};bX.\u0275fac=function(a){return new (a||bX)};bX.\u0275dir=Kf({type:bX,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var cX=function(){Z.apply(this,arguments);var a=this;this.llmService=n(HS);this.imageUrls=n(qN);this.clusters$=new tj([]);this.tableColumns=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"COMPONENT_PATH"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}];this.SPACE_EMPTY_STATE=this.imageUrls.SPACE_EMPTY_STATE;this.tableOptions=Object.assign({},BVc,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(fg(function(b){return GRc(a.llmService,b,a.teamName)}))};
Y(cX,Z);cX.\u0275dir=Z.\u0275dir;ea.Object.defineProperties(cX.prototype,{clusters:{configurable:!0,enumerable:!0,set:function(a){a&&this.clusters$.next(a)}}});cX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(cX)))(b||cX)}}();
cX.\u0275cmp=B({type:cX,selectors:[["b-issue-themes"]],inputs:{clusters:"clusters",teamName:"teamName"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["tabindex","-1",1,"layout-centered-column","gap"],[1,"flex-kids-y","margin-s","gap-s"],["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],[1,"animated-loading-bar"],[3,"issueIds","tableColumns","options"]],template:function(a,b){a&1&&(E(0,sfb,2,1),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.clusters$))?0:-1,c)}},dependencies:[vU,$W,aX,bX,
LZc,Qv],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],changeDetection:0});var MZc=new yd("GMAT_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var NZc=function(a){this.options=a};NZc.\u0275fac=function(a){return new (a||NZc)(zf(MZc))};NZc.\u0275dir=Kf({type:NZc,selectors:[["mat-slider"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-slider",!b.options.disableGmatStyle)},standalone:!1});var OZc=new yd("_MatSlider"),PZc=new yd("_MatSliderThumb"),QZc=new yd("_MatSliderRangeThumb"),RZc=new yd("_MatSliderVisualThumb");var SZc={provide:iy,useExisting:ld(function(){return dX}),multi:!0},dX=function(){var a=this;this._ngZone=n(ph);this._elementRef=n(ff);this._cdr=n(qv);this._slider=n(OZc);this._platform=n(ew);this.valueChange=new hv;this.dragStart=new hv;this.dragEnd=new hv;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=bh("");this._knobRadius=8;this._tickMarkOffset=3;this._hasSetInitialValue=this._isFocused=this._isActive=!1;this._destroyed=new bg;this._skipUIUpdate=!1;this._onTouchedFn=
function(){};this._isControlInitialized=!1;var b=n(jv);this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[b.listen(a._hostElement,"pointerdown",a._onPointerDown.bind(a)),b.listen(a._hostElement,"pointermove",a._onPointerMove.bind(a)),b.listen(a._hostElement,"pointerup",a._onPointerUp.bind(a))]})};dX.prototype._setValue=function(a){this._hostElement.value=a;this._updateThumbUIByValue();this._slider._onValueChange(this);this._cdr.detectChanges();this._slider._cdr.markForCheck()};
dX.prototype._setIsFocused=function(a){this._isFocused=a};dX.prototype.ngOnDestroy=function(){this._listenerCleanups.forEach(function(a){return a()});this._destroyed.next();this._destroyed.complete();this.dragStart.complete();this.dragEnd.complete()};var TZc=function(a){a._updateWidthInactive();a.disabled!==a._slider.disabled&&(a._slider.disabled=!0);a.step=a._slider.step;a.min=a._slider.min;a.max=a._slider.max;a._initValue()};g=dX.prototype;
g._initValue=function(){this._hasSetInitialValue=!0;this._initialValue===void 0?this.value=this.min:(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())};g._getDefaultValue=function(){return this.min};g._onBlur=function(){this._setIsFocused(!1);this._onTouchedFn()};g._onFocus=function(){this._slider._setTransition(!1);this._slider._updateTrackUI(this);this._setIsFocused(!0)};
g._onChange=function(){this.valueChange.emit(this.value);this._isActive&&this._updateThumbUIByValue({withAnimation:!0})};g._onInput=function(){var a;(a=this._onChangeFn)==null||a.call(this,this.value);!this._slider.step&&this._isActive||this._updateThumbUIByValue({withAnimation:!0});this._slider._onValueChange(this)};g._onNgControlValueChange=function(){this._isActive&&this._isFocused||(this._slider._onValueChange(this),this._updateThumbUIByValue());this._slider.disabled=this._formControl.disabled};
g._onPointerDown=function(a){this.disabled||a.button!==0||(this._platform.IOS?(this._isActive=this._slider._isCursorOnSliderThumb(a,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect()),this._slider._updateDimensions()):(this._isActive=!0,this._setIsFocused(!0),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(a,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(a),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))))};
g._handleValueCorrection=function(a){var b=this;this._skipUIUpdate=!0;setTimeout(function(){b._skipUIUpdate=!1;b._fixValue(a)},0)};
g._fixValue=function(a){var b=a.clientX-this._slider._cachedLeft,c=this._slider._cachedWidth,d=this._slider.step===0?1:this._slider.step,e=Math.floor((this._slider.max-this._slider.min)/d);b=Math.round((Math.round((this._slider._isRtl?1-b/c:b/c)*e)/e*(this._slider.max-this._slider.min)+this._slider.min)/d)*d;if(b!==this.value){this.value=b;this.valueChange.emit(this.value);var f;(f=this._onChangeFn)==null||f.call(this,this.value)}this._slider._onValueChange(this);this._slider.step>0?this._updateThumbUIByValue():
this._updateThumbUIByPointerEvent(a,{withAnimation:this._slider._hasAnimation})};g._onPointerMove=function(a){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(a)};g._onPointerUp=function(){var a=this;this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(function(){return a._updateWidthInactive()},this._platform.IOS?10:0))};
g._clamp=function(a){return Math.max(Math.min(a,this._slider._cachedWidth-this._tickMarkOffset),this._tickMarkOffset)};g._calcTranslateXByValue=function(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset};g._calcTranslateXByPointerEvent=function(a){return a.clientX-this._slider._cachedLeft};g._updateWidthActive=function(){};
g._updateWidthInactive=function(){this._hostElement.style.padding="0 "+this._slider._inputPadding+"px";this._hostElement.style.width="calc(100% + "+(this._slider._inputPadding-this._tickMarkOffset*2)+"px)";this._hostElement.style.left="-"+(this._slider._rippleRadius-this._tickMarkOffset)+"px"};g._updateThumbUIByValue=function(a){this.translateX=this._clamp(this._calcTranslateXByValue());this._updateThumbUI(a)};
g._updateThumbUIByPointerEvent=function(a,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(a));this._updateThumbUI(b)};g._updateThumbUI=function(a){this._slider._setTransition(!(a==null||!a.withAnimation));this._slider._onTranslateXChange(this)};g.writeValue=function(a){if(this._isControlInitialized||a!==null)this.value=a};g.registerOnChange=function(a){this._onChangeFn=a;this._isControlInitialized=!0};g.registerOnTouched=function(a){this._onTouchedFn=a};
g.setDisabledState=function(a){this.disabled=a};g.focus=function(){this._hostElement.focus()};g.blur=function(){this._hostElement.blur()};
ea.Object.defineProperties(dX.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return Eh(this._hostElement.value,0)},set:function(a){a===null&&(a=this.min);a=isNaN(a)?0:a;a+="";this._hasSetInitialValue?this._isActive||this._setValue(a):this._initialValue=a}},translateX:{configurable:!0,enumerable:!0,get:function(){if(this._slider.min>=this._slider.max)return this._translateX=this._tickMarkOffset;this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue());return this._translateX},
set:function(a){this._translateX=a}},min:{configurable:!0,enumerable:!0,get:function(){return Eh(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return Eh(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return Eh(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return Dh(this._hostElement.disabled)},set:function(a){this._hostElement.disabled=a;this._cdr.detectChanges();this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}},percentage:{configurable:!0,enumerable:!0,get:function(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}},fillPercentage:{configurable:!0,enumerable:!0,get:function(){return this._slider._cachedWidth?
this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}}});dX.\u0275fac=function(a){return new (a||dX)};
dX.\u0275dir=Kf({type:dX,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(a,b){a&1&&M("change",function(){return b._onChange()})("input",function(){return b._onInput()})("blur",function(){return b._onBlur()})("focus",function(){return b._onFocus()});a&2&&ng("aria-valuetext",b._valuetext())},inputs:{value:[2,"value","value",Eh]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[hh([SZc,{provide:PZc,useExisting:dX}])]});var UZc=["knob"],VZc=["valueIndicatorContainer"],eX=function(){var a=this;this._cdr=n(qv);this._ngZone=n(ph);this._slider=n(OZc);this._renderer=n(jv);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=n(ff).nativeElement;this._platform=n(ew);this._onPointerMove=function(b){if(!a._sliderInput._isFocused){var c=a._hostElement.getBoundingClientRect();b=a._slider._isCursorOnSliderThumb(b,c);(a._isHovered=b)?a._showHoverRipple():a._hideRipple(a._hoverRippleRef)}};this._onMouseLeave=
function(){a._isHovered=!1;a._hideRipple(a._hoverRippleRef)};this._onFocus=function(){a._hideRipple(a._hoverRippleRef);a._showFocusRipple();a._hostElement.classList.add("mdc-slider__thumb--focused")};this._onBlur=function(){a._isActive||a._hideRipple(a._focusRippleRef);a._isHovered&&a._showHoverRipple();a._hostElement.classList.remove("mdc-slider__thumb--focused")};this._onDragStart=function(b){b.button===0&&(a._isActive=!0,a._showActiveRipple())};this._onDragEnd=function(){a._isActive=!1;a._hideRipple(a._activeRippleRef);
a._sliderInput._isFocused||a._hideRipple(a._focusRippleRef);a._platform.SAFARI&&a._showHoverRipple()}};g=eX.prototype;
g.ngAfterViewInit=function(){var a=this,b=this._slider._getInput(this.thumbPosition);b&&(this._ripple.radius=24,this._sliderInput=b,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(function(){var c=a._sliderInputEl,d=a._renderer;a._listenerCleanups=[d.listen(c,"pointermove",a._onPointerMove),d.listen(c,"pointerdown",a._onDragStart),d.listen(c,"pointerup",a._onDragEnd),d.listen(c,"pointerleave",a._onMouseLeave),d.listen(c,"focus",a._onFocus),d.listen(c,"blur",a._onBlur)]}))};
g.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};g._showHoverRipple=function(){if(!this._isShowingRipple(this._hoverRippleRef)){this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0});var a;(a=this._hoverRippleRef)==null||a.element.classList.add("mat-mdc-slider-hover-ripple")}};
g._showFocusRipple=function(){if(!this._isShowingRipple(this._focusRippleRef)){this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0);var a;(a=this._focusRippleRef)==null||a.element.classList.add("mat-mdc-slider-focus-ripple")}};g._showActiveRipple=function(){if(!this._isShowingRipple(this._activeRippleRef)){this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400});var a;(a=this._activeRippleRef)==null||a.element.classList.add("mat-mdc-slider-active-ripple")}};
g._isShowingRipple=function(a){return(a==null?void 0:a.state)===0||(a==null?void 0:a.state)===1};g._showRipple=function(a,b){if(!this._slider.disabled){this._showValueIndicator();this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator();var c;if((c=this._slider._globalRippleOptions)==null||!c.disabled||b)return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:a,centered:!0,persistent:!0})}};
g._hideRipple=function(a){a!=null&&qdc(a._renderer,a);this._isShowingAnyRipple()||(this._slider._isRange||this._hideValueIndicator(),a=this._getSibling(),a._isShowingAnyRipple()||(this._hideValueIndicator(),a._hideValueIndicator()))};g._showValueIndicator=function(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")};g._hideValueIndicator=function(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")};
g._getSibling=function(){return this._slider._getThumb(this.thumbPosition===1?2:1)};g._getValueIndicatorContainer=function(){var a;return(a=this._valueIndicatorContainer)==null?void 0:a.nativeElement};g._getKnob=function(){return this._knob.nativeElement};g._isShowingAnyRipple=function(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)};eX.\u0275fac=function(a){return new (a||eX)};
eX.\u0275cmp=B({type:eX,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(Wg(Jx,5),Wg(UZc,5),Wg(VZc,5));if(a&2){var c;$g(c=ah())&&(b._ripple=c.first);$g(c=ah())&&(b._knob=c.first);$g(c=ah())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[hh([{provide:RZc,useExisting:eX}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",
""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(a,b){a&1&&(E(0,tfb,5,1,"div",2),K(1,"div",3,0)(3,"div",4));a&2&&(F(b.discrete?0:-1),z(3),D("matRippleDisabled",!0))},dependencies:[Jx],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}\n"],
encapsulation:2,changeDetection:0});var WZc=["trackActive"],fX=function(){var a=this;this._ngZone=n(ph);this._cdr=n(qv);this._elementRef=n(ff);this._dir=n(Qw,{optional:!0});this._globalRippleOptions=n(Ix,{optional:!0});this.showTickMarks=this._discrete=this._disabled=!1;this._min=0;this.disableRipple=!1;this._max=100;this._step=1;this.displayWith=function(b){return""+b};this._noopAnimations=Hi();this._rippleRadius=24;this.endValueIndicatorText=this.startValueIndicatorText="";this._hasViewInitialized=this._isRtl=this._isRange=!1;this._tickMarkTrackWidth=
0;this._hasAnimation=!1;this._resizeTimer=null;this._platform=n(ew);this._knobRadius=8;this._thumbsOverlap=!1;n(kw).load(Gx);this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){return a._onDirChange()}),this._isRtl=this._dir.value==="rtl")};g=fX.prototype;g._updateMin=function(a){var b=this._min;this._min=a;this._isRange?this._updateMinRange({old:b,new:a}):this._updateMinNonRange(a);this._onMinMaxOrStepChange()};
g._updateMinRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;c.min=a.new;b.min=Math.max(a.new,c.value);c.max=Math.min(b.max,b.value);c._updateWidthInactive();b._updateWidthInactive();a.new<a.old?this._onTranslateXChangeBySideEffect(b,c):this._onTranslateXChangeBySideEffect(c,b);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
g._updateMinNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.min=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};g._updateMax=function(a){var b=this._max;this._max=a;this._isRange?this._updateMaxRange({old:b,new:a}):this._updateMaxNonRange(a);this._onMinMaxOrStepChange()};
g._updateMaxRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;b.max=a.new;c.max=Math.min(a.new,b.value);b.min=c.value;b._updateWidthInactive();c._updateWidthInactive();a.new>a.old?this._onTranslateXChangeBySideEffect(c,b):this._onTranslateXChangeBySideEffect(b,c);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
g._updateMaxNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.max=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};g._updateStep=function(a){this._step=a;this._isRange?this._updateStepRange():this._updateStepNonRange();this._onMinMaxOrStepChange()};
g._updateStepRange=function(){var a=this._getInput(2),b=this._getInput(1),c=a.value,d=b.value,e=b.value;a.min=this._min;b.max=this._max;a.step=this._step;b.step=this._step;this._platform.SAFARI&&(a.value=a.value,b.value=b.value);a.min=Math.max(this._min,b.value);b.max=Math.min(this._max,a.value);b._updateWidthInactive();a._updateWidthInactive();a.value<e?this._onTranslateXChangeBySideEffect(b,a):this._onTranslateXChangeBySideEffect(a,b);c!==a.value&&this._onValueChange(a);d!==b.value&&this._onValueChange(b)};
g._updateStepNonRange=function(){var a=this._getInput(2);if(a){var b=a.value;a.step=this._step;this._platform.SAFARI&&(a.value=a.value);a._updateThumbUIByValue();b!==a.value&&this._onValueChange(a)}};
g.ngAfterViewInit=function(){this._platform.isBrowser&&this._updateDimensions();var a=this._getInput(2),b=this._getInput(1);this._isRange=!!a&&!!b;this._cdr.detectChanges();this._rippleRadius=this._getThumb(2)._ripple.radius;this._inputPadding=this._rippleRadius-this._knobRadius;this._isRange?this._initUIRange(a,b):this._initUINonRange(a);this._updateTrackUI(a);this._updateTickMarkUI();this._updateTickMarkTrackUI();this._observeHostResize();this._cdr.detectChanges()};
g._initUINonRange=function(a){TZc(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};g._initUIRange=function(a,b){TZc(a);a._updateThumbUIByValue();TZc(b);b._updateThumbUIByValue();a._updateMinMax();b._updateMinMax();a._updateStaticStyles();b._updateStaticStyles();this._updateValueIndicatorUIs();this._hasViewInitialized=!0;a._updateThumbUIByValue();b._updateThumbUIByValue()};
g.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();var a;(a=this._resizeObserver)==null||a.disconnect();this._resizeObserver=null};g._onDirChange=function(){var a;this._isRtl=((a=this._dir)==null?void 0:a.value)==="rtl";this._isRange?this._onDirChangeRange():this._onDirChangeNonRange();this._updateTickMarkUI()};
g._onDirChangeRange=function(){var a=this._getInput(2),b=this._getInput(1);a._setIsLeftThumb();b._setIsLeftThumb();a.translateX=a._calcTranslateXByValue();b.translateX=b._calcTranslateXByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateWidthInactive();b._updateWidthInactive();a._updateThumbUIByValue();b._updateThumbUIByValue()};g._onDirChangeNonRange=function(){this._getInput(2)._updateThumbUIByValue()};
g._observeHostResize=function(){var a=this;typeof ResizeObserver!=="undefined"&&ResizeObserver&&this._ngZone.runOutsideAngular(function(){a._resizeObserver=new ResizeObserver(function(){a._isActive()||a._onResize()});a._resizeObserver.observe(a._elementRef.nativeElement)})};g._isActive=function(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive};g._getValue=function(a){return(a=this._getInput(a===void 0?2:a))?a.value:this.min};
g._skipUpdate=function(){var a,b;return!!(((a=this._getInput(1))==null?0:a._skipUIUpdate)||((b=this._getInput(2))==null?0:b._skipUIUpdate))};g._updateDimensions=function(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth;this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left};g._setTrackActiveStyles=function(a){var b=this._trackActive.nativeElement.style;b.left=a.left;b.right=a.right;b.transformOrigin=a.transformOrigin;b.transform=a.transform};
g._calcTickMarkTransform=function(a){a*=this._tickMarkTrackWidth/(this._tickMarks.length-1);return"translateX("+(this._isRtl?this._cachedWidth-6-a:a)+"px"};g._onTranslateXChange=function(a){this._hasViewInitialized&&(this._updateThumbUI(a),this._updateTrackUI(a),this._updateOverlappingThumbUI(a))};g._onTranslateXChangeBySideEffect=function(a,b){this._hasViewInitialized&&(a._updateThumbUIByValue(),b._updateThumbUIByValue())};
g._onValueChange=function(a){this._hasViewInitialized&&(this._updateValueIndicatorUI(a),this._updateTickMarkUI(),this._cdr.detectChanges())};g._onMinMaxOrStepChange=function(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())};
g._onResize=function(){if(this._hasViewInitialized){this._updateDimensions();if(this._isRange){var a=this._getInput(2),b=this._getInput(1);a._updateThumbUIByValue();b._updateThumbUIByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateMinMax();b._updateMinMax();a._updateWidthInactive();b._updateWidthInactive()}else(a=this._getInput(2))&&a._updateThumbUIByValue();this._updateTickMarkUI();this._updateTickMarkTrackUI();this._cdr.detectChanges()}};
g._areThumbsOverlapping=function(){var a=this._getInput(1),b=this._getInput(2);return a&&b?b.translateX-a.translateX<20:!1};g._updateOverlappingThumbClassNames=function(a){var b=a.getSibling();a=this._getThumb(a.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top");a._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)};
g._updateOverlappingThumbUI=function(a){this._isRange&&!this._skipUpdate()&&this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(a))};g._updateThumbUI=function(a){this._skipUpdate()||(this._getThumb(a.thumbPosition===2?2:1)._hostElement.style.transform="translateX("+a.translateX+"px)")};
g._updateValueIndicatorUI=function(a){if(!this._skipUpdate()){var b=this.displayWith(a.value);this._hasViewInitialized?a._valuetext.set(b):a._hostElement.setAttribute("aria-valuetext",b);this.discrete&&(a.thumbPosition===1?this.startValueIndicatorText=b:this.endValueIndicatorText=b,a=this._getThumb(a.thumbPosition),b.length<3?a._hostElement.classList.add("mdc-slider__thumb--short-value"):a._hostElement.classList.remove("mdc-slider__thumb--short-value"))}};
g._updateValueIndicatorUIs=function(){var a=this._getInput(2),b=this._getInput(1);a&&this._updateValueIndicatorUI(a);b&&this._updateValueIndicatorUI(b)};g._updateTickMarkTrackUI=function(){if(this.showTickMarks&&!this._skipUpdate()){var a=this._step&&this._step>0?this._step:1;this._tickMarkTrackWidth=(Math.floor(this.max/a)*a-this.min)/(this.max-this.min)*(this._cachedWidth-6)}};g._updateTrackUI=function(a){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(a):this._updateTrackUINonRange(a))};
g._updateTrackUIRange=function(a){var b=a.getSibling();if(b&&this._cachedWidth){var c=Math.abs(b.translateX-a.translateX)/this._cachedWidth;a._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:"scaleX("+c+")"}):this._setTrackActiveStyles({left:b.translateX+"px",right:"auto",transformOrigin:"left",transform:"scaleX("+c+")"})}};
g._updateTrackUINonRange=function(a){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:"scaleX("+(1-a.fillPercentage)+")"}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:"scaleX("+a.fillPercentage+")"})};g._updateTickMarkUI=function(){if(this.showTickMarks&&this.step!==void 0&&this.min!==void 0&&this.max!==void 0){var a=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(a):this._updateTickMarkUINonRange(a)}};
g._updateTickMarkUINonRange=function(a){var b=this._getValue(),c=Math.max(Math.round((b-this.min)/a),0)+1;a=Math.max(Math.round((this.max-b)/a),0)-1;this._isRtl?c++:a++;this._tickMarks=Array(c).fill(0).concat(Array(a).fill(1))};g._updateTickMarkUIRange=function(a){var b=this._getValue(),c=this._getValue(1),d=Math.max(Math.round((b-c)/a)+1,0);b=Math.max(Math.round((this.max-b)/a),0);this._tickMarks=Array(Math.max(Math.round((c-this.min)/a),0)).fill(1).concat(Array(d).fill(0),Array(b).fill(1))};
g._getInput=function(a){if(a===2&&this._input)return this._input;var b;if((b=this._inputs)==null?0:b.length)return a===1?this._inputs.first:this._inputs.last};g._getThumb=function(a){var b,c;return a===2?(b=this._thumbs)==null?void 0:b.last:(c=this._thumbs)==null?void 0:c.first};g._setTransition=function(a){this._hasAnimation=!this._platform.IOS&&a&&!this._noopAnimations;this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)};
g._isCursorOnSliderThumb=function(a,b){var c=b.width/2;return Math.pow(a.clientX-(b.x+c),2)+Math.pow(a.clientY-(b.y+c),2)<Math.pow(c,2)};
ea.Object.defineProperties(fX.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;a=this._getInput(2);var b=this._getInput(1);a&&(a.disabled=this._disabled);b&&(b.disabled=this._disabled)}},discrete:{configurable:!0,enumerable:!0,get:function(){return this._discrete},set:function(a){this._discrete=a;this._updateValueIndicatorUIs()}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=a===void 0||
a===null||isNaN(a)?this._min:a;this._min!==a&&this._updateMin(a)}},max:{configurable:!0,enumerable:!0,get:function(){return this._max},set:function(a){a=a===void 0||a===null||isNaN(a)?this._max:a;this._max!==a&&this._updateMax(a)}},step:{configurable:!0,enumerable:!0,get:function(){return this._step},set:function(a){a=isNaN(a)?this._step:a;this._step!==a&&this._updateStep(a)}}});fX.\u0275fac=function(a){return new (a||fX)};
fX.\u0275cmp=B({type:fX,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(Xg(c,PZc,5),Xg(c,QZc,4));if(a&2){var d;$g(d=ah())&&(b._input=d.first);$g(d=ah())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(Wg(WZc,5),Wg(RZc,5));if(a&2){var c;$g(c=ah())&&(b._trackActive=c.first);$g(c=ah())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(xg("mat-"+(b.color||"primary")),wg("mdc-slider--range",b._isRange)("mdc-slider--disabled",b.disabled)("mdc-slider--discrete",
b.discrete)("mdc-slider--tick-marks",b.showTickMarks)("_mat-animation-noopable",b._noopAnimations))},inputs:{disabled:[2,"disabled","disabled",Dh],discrete:[2,"discrete","discrete",Dh],showTickMarks:[2,"showTickMarks","showTickMarks",Dh],min:[2,"min","min",Eh],color:"color",disableRipple:[2,"disableRipple","disableRipple",Dh],max:[2,"max","max",Eh],step:[2,"step","step",Eh],displayWith:"displayWith"},exportAs:["matSlider"],features:[hh([{provide:OZc,useExisting:fX}])],ngContentSelectors:["*"],decls:9,
vars:5,consts:[["trackActive",""],["tickMarkContainer",""],[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],[1,"mdc-slider__tick-marks"],[3,"discrete","thumbPosition","valueIndicatorText"],[3,"class","transform"]],template:function(a,b){a&1&&(Ng(),Og(0),I(1,"div",2),K(2,"div",3),I(3,"div",4),K(4,"div",5,0),J(),E(6,wfb,3,1,"div",6),J(),E(7,xfb,1,3,"mat-slider-visual-thumb",7),K(8,"mat-slider-visual-thumb",7));a&2&&(z(6),
F(b.showTickMarks?6:-1),z(),F(b._isRange?7:-1),z(),D("discrete",b.discrete)("thumbPosition",2)("valueIndicatorText",b.endValueIndicatorText))},dependencies:[eX],styles:['.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mdc-slider-inactive-track-height, 4px)}.mdc-slider__track--active,.mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider__track--active{overflow:hidden;border-radius:var(--mdc-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mdc-slider-active-track-height, 4px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-slider-active-track-height, 4px))/2)}.mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;transform-origin:left;transition:transform 80ms ease;border-color:var(--mdc-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mdc-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color, var(--mat-sys-on-surface))}[dir=rtl] .mdc-slider__track--active_fill{-webkit-transform-origin:right;transform-origin:right}.mdc-slider__track--inactive{left:0;top:0;opacity:.24;background-color:var(--mdc-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mdc-slider-inactive-track-height, 4px);border-radius:var(--mdc-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color, var(--mat-sys-on-surface));opacity:.24}.mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%);transform:var(--mat-slider-value-indicator-container-transform, translateX(-50%) rotate(-45deg))}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider__value-indicator{display:flex;align-items:center;border-radius:4px;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom;opacity:1;transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mdc-slider-label-container-color, var(--mat-sys-primary));color:var(--mdc-slider-label-label-text-color, var(--mat-sys-on-primary));width:var(--mat-slider-value-indicator-width, 28px);height:var(--mat-slider-value-indicator-height, 28px);padding:var(--mat-slider-value-indicator-padding, 0);opacity:var(--mat-slider-value-indicator-opacity, 1);border-radius:var(--mat-slider-value-indicator-border-radius, 50% 50% 50% 0)}.mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}.mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;display:var(--mat-slider-value-indicator-caret-display, none);border-top-color:var(--mdc-slider-label-container-color, var(--mat-sys-primary))}.mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media(forced-colors: active){.mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider__value-indicator-text{text-align:center;width:var(--mat-slider-value-indicator-width, 28px);transform:var(--mat-slider-value-indicator-text-transform, rotate(45deg));font-family:var(--mdc-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mdc-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mdc-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mdc-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mdc-slider-label-label-text-tracking, var(--mat-sys-label-medium-tracking))}.mdc-slider__thumb{-webkit-user-select:none;user-select:none;display:flex;left:-24px;outline:none;position:absolute;height:48px;width:48px;pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb{transition:transform 80ms ease}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__thumb--top{z-index:1}.mdc-slider__thumb-knob{position:absolute;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%, -50%);border-style:solid;width:var(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-width:calc(var(--mdc-slider-handle-height, 20px)/2) calc(var(--mdc-slider-handle-width, 20px)/2);box-shadow:var(--mdc-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mdc-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mdc-slider-disabled-handle-color, var(--mat-sys-on-surface))}.mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:solid 1px #fff;box-sizing:content-box;border-color:var(--mdc-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mdc-slider-with-overlap-handle-outline-width, 1px)}.mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider__tick-mark--active,.mdc-slider__tick-mark--inactive{width:var(--mdc-slider-with-tick-marks-container-size, 2px);height:var(--mdc-slider-with-tick-marks-container-size, 2px);border-radius:var(--mdc-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mat-sys-on-primary))}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;position:absolute;top:2px;width:44px;box-sizing:content-box}.mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;cursor:pointer;height:48px;margin:0 8px;position:relative;touch-action:pan-y;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider.mdc-slider--disabled{cursor:auto;opacity:.38}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-slider-ripple-color, var(--mat-sys-primary))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-slider-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 5%, transparent))}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-slider-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-primary) 20%, transparent))}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var XZc=function(a,b){return b.componentId},YZc=function(a,b){return b.displayAs},gX=function(){Z.apply(this,arguments);var a=this;this.activatedRoute=n(sj);this.teamFridge=n(DG);this.issueFridge=n($E);this.componentActions=n(oN);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=RG;this.selectedOpenFilter$=new uC;this.selectComponents$=new uC;this.dateRangeFilters=[{displayAs:"Last 1 Year",queryAtom:"modified:365d",tooltip:"Issues modified within 1 Year"},{displayAs:"Last 6 Months",
queryAtom:"modified:180d",tooltip:"Issues modified within 6 Months"},{displayAs:"Last 30 Days",queryAtom:"modified:30d",tooltip:"Issues modified within 30 Days"},{displayAs:"Last 7 Days",queryAtom:"modified:7d",tooltip:"Issues modified within 7 Days"}];this.selectedDateRangeFilter$=new tj(this.dateRangeFilters[0]);this.clusterGranularity$=new tj(1);this.query$=Je([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(Sf(0,qp),y(function(b){var c=l(b);b=
c.next().value;var d=c.next().value;c=c.next().value;return ZZc(a)?tp.apply(null,[sp("teamid",a.teamId)].concat(p(Array.from(b).map(function(e){return e.queryAtom})),[c.queryAtom])):tp.apply(null,[].concat(p(Array.from(b).map(function(e){return e.queryAtom})),[sp("componentId",[].concat(p(d)).map(function(e){return e.componentId}),!1),c.queryAtom]))}));this.issues$=this.query$.pipe(fg(function(b){return a.issueFridge.watchMany({filter:b,pageSize:500})}),y(function(b){return b.results.filter(function(c){var d;
return(d=c.experimentalFields)==null?void 0:d.clusterIds.length})}));this.clusters$=Je([this.issues$,this.clusterGranularity$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return $Zc(b,c)}))};Y(gX,Z);gX.\u0275dir=Z.\u0275dir;
gX.prototype.ngOnInit=function(){var a=this;this.componentActions.search("teamid:"+this.teamId).then(function(b){b.sort(function(c,d){return c.name.localeCompare(d.name)});a.components=b;a.selectComponents$.add.apply(a.selectComponents$,p(a.components))});Ge(this.teamFridge.watch(this.teamId)).then(function(b){a.teamName=b==null?void 0:b.name})};gX.prototype.openFilterChanged=function(a){a?this.selectedOpenFilter$.add(RG):this.selectedOpenFilter$.delete(RG)};
var ZZc=function(a){return a.selectComponents$.size===a.components.length};gX.prototype.onCheckboxChange=function(a){this.selectComponents$.has(a)?this.selectComponents$.delete(a):this.selectComponents$.add(a)};
var $Zc=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.experimentalFields.clusterIds[b],f=void 0,h=(f=c.get(e))!=null?f:new Set;h.add(d.issueId);c.set(e,h)}b=[].concat(p(c.values())).map(function(k){return[].concat(p(k))});return ik(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,q){return q.length-k.length}).slice(0,10).map(function(k){return[].concat(p(k))})};
gX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(gX)))(b||gX)}}();
gX.\u0275cmp=B({type:gX,selectors:[["b-issue-themes-dashboard"]],standalone:!1,features:[kg],decls:46,vars:16,consts:[["componentMenuTrigger","matMenuTrigger"],["ComponentMultiSelect","matMenu"],["dateMenuTrigger","matMenuTrigger"],["DateRangeMenu","matMenu"],["slider",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium"],["color","primary","svgIcon",
"refresh",1,"icon-m"],[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"overflow","overflow-on-print-media"],[1,"flex-kids-x","align-items-center","margin-s","gap-s"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select component search scope","color","primary","role","button",3,"keydown.enter","keyup.space",
"matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["mat-menu-item","",3,"click"],[3,"change","checked"],["mat-menu-item",""],["aria-label","Select date range",3,"selectable"],["appearance","hairline-filter","aria-label","Select date range","color","primary","role","button",3,"keydown.enter","keyup.space","matMenuTriggerFor"],"max;3;min;1;step;1;showTickMarks;;matTooltip;Move slider to the right to see more general clusters.".split(";"),["aria-label","cluster granularity",
"matSliderThumb","",3,"valueChange"],[3,"clusters","teamName"],[3,"checked"]],template:function(a,b){if(a&1){var c=r();I(0,"div",5)(1,"header",6)(2,"button",7);K(3,"mat-icon",8);J();I(4,"h2",9);Q(5);J();K(6,"mat-icon",10);I(7,"h2",9);Q(8,"Explore issue themes");J()();I(9,"div",11)(10,"div",12)(11,"mat-chip-listbox",13);M("change",function(e){t(c);return v(b.openFilterChanged(e.value))});I(12,"mat-chip-option",14)(13,"span",15);Q(14);J()()();I(15,"mat-chip-listbox",16)(16,"mat-chip-option",17,0);M("keydown.enter",
function(){t(c);var e=L(17);return v(e.openMenu())})("keyup.space",function(){t(c);var e=L(17);return v(e.openMenu())});E(18,yfb,2,0,"span")(19,zfb,2,0,"span");K(20,"mat-icon",18);J()();I(21,"mat-menu",null,1)(23,"button",19);M("click",function(e){t(c);return v(e.stopPropagation())});I(24,"mat-checkbox",20);M("change",function(){t(c);ZZc(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,p(b.components));return v()});Q(25," Select all ");J()();K(26,"mat-divider");Dg(27,
Afb,3,2,"button",21,XZc);J();I(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);M("keydown.enter",function(){t(c);var e=L(31);return v(e.openMenu())})("keyup.space",function(){t(c);var e=L(31);return v(e.openMenu())});I(32,"span");Q(33);J();K(34,"mat-icon",18);J()();I(35,"mat-menu",null,3);Dg(37,Bfb,2,1,"button",21,YZc);J();I(39,"span");Q(40," Granularity");J();I(41,"mat-slider",24)(42,"input",25,4);M("valueChange",function(e){t(c);b.clusterGranularity$.next(e);return v()});J()()();K(44,"b-issue-themes",
26);S(45,"async");J()()}if(a&2){a=L(22);var d=L(36);z(5);ch(b.teamName);z(7);D("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));z();D("matTooltip",b.openFilter.tooltip||"");z();R(" ",b.openFilter.displayAs," ");z();D("selectable",!1);z();D("matMenuTriggerFor",a);z(2);F(ZZc(b)?18:19);z(6);D("checked",ZZc(b));z(3);Eg(b.components);z(2);D("selectable",!1);z();D("matMenuTriggerFor",d);z(3);ch(b.selectedDateRangeFilter$.value.displayAs);z(4);Eg(b.dateRangeFilters);z(7);D("clusters",
T(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[aB,PA,Ux,UG,XG,VG,YG,qP,yP,wP,uP,YA,cB,yM,CM,HL,NZc,fX,dX,cX,Qv],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var hX=function(){};hX.\u0275fac=function(a){return new (a||hX)};hX.\u0275mod=Jf({type:hX});hX.\u0275inj=Tc({imports:[zx,Mx]});var iX=function(){};iX.\u0275fac=function(a){return new (a||iX)};iX.\u0275mod=Jf({type:iX});iX.\u0275inj=Tc({imports:[hX]});var jX=function(){};jX.\u0275fac=function(a){return new (a||jX)};jX.\u0275mod=Jf({type:jX});jX.\u0275inj=Tc({imports:[zx,YW,ux]});var kX=function(){};kX.\u0275fac=function(a){return new (a||kX)};kX.\u0275mod=Jf({type:kX});kX.\u0275inj=Tc({imports:[ZB,QW,jX,$B,LH,yQ,mR,cC,GM,RL,iX]});var Jfb=Date.now(),lX=function(){var a=this;this.issueFridge=n($E);this.router=n(DA);this.ROUTES=Fq;this.phaseToUrlSlug=Or;this.FETCH_SIZE=500;this.teamId$=new ag(1);this.triageId$=new ag(1);this.phase$=new tj("NEW");this.heading$=this.phase$.pipe(y(function(b){return qr.get(b)}));this.searchFilter$=Je([this.teamId$,this.phase$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+Wlc[c]}));this.issues$=this.searchFilter$.pipe(fg(function(b){return a.issueFridge.watchMany({filter:b,
pageSize:500})}),y(function(b){return b.results}));this.daysOld$=this.issues$.pipe(y(function(b){return b.map(function(c){var d,e;return(e=(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0})}),y(function(b){return b.map(Kfb)}));this.avgAge$=this.daysOld$.pipe(y(ara),y(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(y(function(b){var c=b.map(function(e){return Math.floor(e)});b=[];c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b[d]=~~b[d]+
1;return Array.from(b,function(e){return e!=null?e:0}).reverse()}));this.ratioDaysOld$=this.countsByDaysOld$.pipe(y(function(b){var c=Math.max.apply(Math,p(b));return b.map(function(d){return d/c})}))};ea.Object.defineProperties(lX.prototype,{teamId:{configurable:!0,enumerable:!0,set:function(a){this.teamId$.next(a)}},triageId:{configurable:!0,enumerable:!0,set:function(a){this.triageId$.next(a)}},phase:{configurable:!0,enumerable:!0,set:function(a){this.phase$.next(a)}}});
lX.\u0275fac=function(a){return new (a||lX)};
lX.\u0275cmp=B({type:lX,selectors:[["phase-card-contents"]],inputs:{teamId:"teamId",triageId:"triageId",phase:"phase"},standalone:!1,decls:19,vars:12,consts:[[1,"flex-kids-x","margin-s-bottom"],[1,"padded-s-y","padded-right","border-right"],[1,"type-s","muted"],[1,"type-l"],[1,"padded-s-y","padded-sides"],[1,"bar-chart"],[1,"flex-kids-x"],[1,"heading-s","subtle-link","align-self-center",3,"href"],["type","button","mat-button","","color","primary margin-left-auto","title","View issues",3,"click"],
["svgIcon","arrow-forward","iconPositionEnd",""],[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(E(0,Dfb,2,3),S(1,"async"),I(2,"div",0)(3,"div",1)(4,"p",2),Q(5,"Total Issues"),J(),I(6,"p",3),E(7,Efb,1,2),S(8,"async"),Ag(9,Ffb,1,0),J()(),I(10,"div",4)(11,"p",2),Q(12,"Avg Last Modified"),J(),I(13,"p",3),Q(14),S(15,"async"),J()()(),I(16,"div",5),E(17,Ifb,2,3),S(18,"async"),J());if(a&2){var c,d,e;F((c=T(1,4,b.teamId$))?0:-1,c);z(7);F((d=T(8,6,b.issues$))?7:9,d);z(7);R(" ",T(15,8,b.avgAge$),
" days ");z(3);F((e=T(18,10,b.countsByDaysOld$))?17:-1,e)}},dependencies:[aB,PA,Tx,Qv],styles:["[_nghost-%COMP%]{overflow:auto}.bar-chart[_ngcontent-%COMP%]{margin:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-moz-box-align:end;-ms-flex-align:end;align-items:flex-end;gap:1px;height:96px}.bar-chart[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary);min-height:1px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}\n/*# sourceMappingURL=phase_card_contents.css.map */"]});var a_c=/^\s*(?:hotlistid|h):(\d+)\s*$/i,b_c=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,c_c=/^\s*savedsearchid:(\d+)\s*$/i,mX=function(){Z.call(this);var a=this;this.$log=n(MA);this.activeSession=n(Es);this.contextSensitiveRegistry=n(iL);this.analytics=n(CF);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new tj({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=Oe(function(){var b;return Ce((b=a.activeSession.getTracker())==null?void 0:b.trackerId)}).pipe(y(function(b){return b?
[b]:[]}));this.selectedTrackerIds$=new bg;this.trackerScope$=Ue(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new bg;this.subscriptions.add(this.queryState$.pipe(gg(this.destroyed$)).subscribe(function(b){a.currentQuery=b.query;(b=a.currentQuery.match(b_c))?a.contextSensitiveRegistry.componentIdOverride$.next(Number(b[1])):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(a_c))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Number(b[1])):
a.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(gg(this.destroyed$)).subscribe(function(b){a.currentTrackerScope=b}))};Y(mX,Z);mX.\u0275dir=Z.\u0275dir;mX.prototype.clear=function(){nX(this,"")};var nX=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},d_c=function(a){return"assignee:"+a+" status:open"},e_c=function(a,b){return a.currentQuery===d_c("me")||a.currentQuery===d_c(b===void 0?"":b)};
mX.prototype.getStarred=function(){return"star:true"};mX.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var f_c=function(a){return"verifier:"+a+" status:open | status:fixed"},g_c=function(a){return(a=a.currentQuery.match(a_c))?Number(a[1]):0},h_c=function(a){return(a=a.currentQuery.match(c_c))?Number(a[1]):0},i_c=function(a){return(a=a.currentQuery.match(b_c))?Number(a[1]):0};mX.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var j_c=function(a,b){a.searchHandlerStack.push(b);return function(){Za(a.searchHandlerStack,b)}};mX.\u0275fac=function(a){return new (a||mX)};mX.\u0275prov=Sc({token:mX,factory:mX.\u0275fac,providedIn:"root"});var oX=function(){var a=this;this.activatedRoute=n(sj);this.appSearchState=n(mX);this.teamFridge=n(DG);this.ROUTES=Fq;this.TriagePhase=qlc;this.activatedRoute.params.pipe(y(function(b){return{teamId:b.teamId,triageId:b.triageId}}));this.id$=this.activatedRoute.params.pipe(y(function(b){return b.teamId}));this.triageId$=this.activatedRoute.params.pipe(y(function(b){return b.triageId}));Je([this.id$,this.triageId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b||!c&&c!==
"0")}));this.team$=this.id$.pipe(fg(function(b){return a.teamFridge.watch(b)}));this.query$=this.id$.pipe(y(function(b){return"teamid:"+b+"+"}))};oX.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};oX.\u0275fac=function(a){return new (a||oX)};
oX.\u0275cmp=B({type:oX,selectors:[["triage-dashboard"]],standalone:!1,decls:14,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-s-sides"],[1,"left","flex-kids-x","align-items-center","gap-s"],["mat-icon-button","","aria-label","Back to Triage",1,"medium",3,"href"],["color","primary","svgIcon","arrow-backward",1,"icon-m","back-btn"],[3,"title"],[1,"muted"],[1,"main-content","padded","grid"],[1,"carded","bg-off-main",3,"phase","teamId","triageId"]],template:function(a,
b){a&1&&(I(0,"div",0)(1,"header",1)(2,"div",2)(3,"a",3),S(4,"async"),S(5,"async"),K(6,"mat-icon",4),J(),I(7,"h2"),Q(8," Dashboard: "),E(9,Pfb,2,2,"span",5),S(10,"async"),Ag(11,Qfb,3,3,"code",6),J()()(),E(12,Sfb,2,3),S(13,"async"),J());if(a&2){var c,d;z(3);D("href",b.ROUTES.viewTriage.makeHref(T(4,3,b.id$),T(5,5,b.triageId$)),uf);z(6);F((c=T(10,7,b.team$))?9:11,c);z(3);F((d=T(13,9,b.id$))?12:-1,d)}},dependencies:[aB,PA,Ux,lX,Qv],styles:["[_nghost-%COMP%]{display:block;padding:16px}.grid[_ngcontent-%COMP%]{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}@media (min-width:1100px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1500px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:2200px){.grid[_ngcontent-%COMP%]{grid-template-columns:repeat(5,minmax(0,1fr))}}.screen-logo-icon[_ngcontent-%COMP%]{width:40px}.phase-card[_ngcontent-%COMP%]{min-height:200px}a.mat-mdc-icon-button[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}\n/*# sourceMappingURL=triage_dashboard.css.map */"]});var k_c="comment priority status assignee self-assign self-unassign unassign".split(" "),l_c=["create"],pX=function(){this.paths=n(EN);this.activeSession=n(Es);this.issueFullFridge=n(EF);this.toIssuePriority=lk;this.getResponsibleEmailAddress=Yfb;this.getChangelistNumber=Ufb;this.getLink=Vfb;this.getPreviousDiffValue=Zfb;this.getNewDiffValue=Xfb;this.shorthandAllDiffs=Wfb;this.getClMetadata=Tfb;this.isCritiqueComment=rm;this.isFullGerritComment=sm;this.STATUS_CODE_FROM_DISPLAY_STRING=gmc;this.type=
"default"};pX.prototype.ngOnInit=function(){this.type=$fb(this.event)};pX.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?xxa(this.event.formattedComment):""};pX.\u0275fac=function(a){return new (a||pX)};
pX.\u0275cmp=B({type:pX,selectors:[["recent-event-row"]],inputs:{event:"event"},standalone:!1,decls:15,vars:5,consts:[[3,"ldapOnly","email"],[3,"href","issueId"],["mode","relativepast",3,"timestamp"],[3,"id"],["target","_blank",3,"href"],[1,"cl-title","muted",3,"title"],[3,"issuePriority"],[1,"status-update","muted",3,"title"],[3,"title"],[1,"comment-text","muted",3,"title"],[1,"issue-title","muted",3,"title"]],template:function(a,b){a&1&&(K(0,"b-user-email",0),E(1,agb,4,4)(2,egb,5,4)(3,fgb,4,4)(4,
ggb,6,5)(5,jgb,4,5)(6,lgb,5,5)(7,mgb,6,6)(8,ngb,4,4)(9,ogb,4,4)(10,pgb,6,6)(11,qgb,5,4)(12,rgb,5,5),E(13,tgb,1,1),E(14,vgb,1,1));if(a&2){var c;D("ldapOnly",!0)("email",b.getResponsibleEmailAddress(b.event));z();F((c=b.type)==="create"?1:c==="changelist"?2:c==="comment"?3:c==="priority"?4:c==="status"?5:c==="statusUpdate"?6:c==="assignee"?7:c==="self-assign"?8:c==="self-unassign"?9:c==="unassign"?10:c==="component"?11:12);z(12);F(k_c.includes(b.type)?13:-1);z();F(l_c.includes(b.type)?14:-1)}},dependencies:[BL,
ZL,GO,uO,lHc],styles:["[_nghost-%COMP%]{display:block;min-height:20px;padding:2px 0;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}b-user-email[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%]     .cl-link{color:#1e8e3e;color:var(--good-link)}"],changeDetection:0});var qX=function(){Z.apply(this,arguments);var a=this;this.recentEventsForIssuesFridge=n(nG);this.activeSession=n(Es);this.quickFilter=new uy("");this.printStats=Jgb;this.defaultNumEvents=6;this.numDisplayed$=new tj(this.defaultNumEvents);this.query$=new ag(1);this.renderDelay$=Ce(!0).pipe(Wf(1E3));this.allEvents$=this.query$.pipe(Ve(Tk),gg(this.destroyed$),y(function(b){return[b,100].join("___")}),fg(function(b){return a.recentEventsForIssuesFridge.watch(b)}),y(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.events$=Je([this.allEvents$,this.quickFilter.valueChanges.pipe(eg(""))]).pipe(y(function(b){var c=l(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(Igb(c))}));this.bucketedEvents$=Je([this.events$,this.numDisplayed$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),y(Kgb));this.allBucketedEvents$=this.events$.pipe(y(Kgb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(y(function(b){return{"<24h":Lgb("<24h",
b),"24h-7d":Lgb("24h-7d",b),"7d-30d":Lgb("7d-30d",b),">30d":Lgb(">30d",b)}}))};Y(qX,Z);qX.\u0275dir=Z.\u0275dir;ea.Object.defineProperties(qX.prototype,{numEvents:{configurable:!0,enumerable:!0,set:function(a){var b;a=(b=a)!=null?b:6;this.numDisplayed$.next(a);this.defaultNumEvents=a}},query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});qX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(qX)))(b||qX)}}();
qX.\u0275cmp=B({type:qX,selectors:[["recent-events"]],inputs:{numEvents:"numEvents",query:"query"},standalone:!1,features:[kg],decls:2,vars:3,consts:[[1,"heading-xs","margin-bottom"],["type","search","placeholder","filter","aria-label","filter recent activity",1,"margin-s-left","subtle","b-input-style",3,"formControl"],["type","button",1,"link-button","margin-s-top"],[1,"muted","bold","margin-s-bottom"],[3,"event"],[1,"muted","bold","margin-s-bottom","margin-top"],["type","button",1,"link-button",
"margin-s-top",3,"click"]],template:function(a,b){a&1&&(E(0,Hgb,5,4),S(1,"async"));a&2&&F(T(1,1,b.renderDelay$)?0:-1)},dependencies:[Li,oy,Ay,pX,Qv],styles:["[_nghost-%COMP%]{display:block}input[type=search].subtle[_ngcontent-%COMP%]{vertical-align:baseline;width:80px;-webkit-transition:width .2s ease-out;transition:width .2s ease-out}input[type=search].subtle[_ngcontent-%COMP%]:focus{width:140px}.ai-summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:0}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   .muted[_ngcontent-%COMP%]{font-weight:400}.ai-summary[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}"],
changeDetection:0});var rX=function(){};rX.\u0275fac=function(a){return new (a||rX)};rX.\u0275mod=Jf({type:rX});rX.\u0275inj=Tc({imports:[My,Ly,ZB,FL,dM,BQ,UQ,eM]});var Pgb=function(a,b){return b.searchId},sX=function(){Z.apply(this,arguments);this.dialogRef=n(mK);this.currentUserBookmarksFridge=n(OD);this.selectedIds=new Set;this.savedSearches$=uoc(this.currentUserBookmarksFridge)};Y(sX,Z);sX.\u0275dir=Z.\u0275dir;var Ogb=function(a,b){b.options.forEach(function(c){c.selected?a.selectedIds.add(c.value):a.selectedIds.delete(c.value)})};sX.prototype.onSave=function(){var a=[].concat(p(this.selectedIds)).map(String);this.dialogRef.close(a)};
sX.prototype.onCancel=function(){this.dialogRef.close()};sX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(sX)))(b||sX)}}();
sX.\u0275cmp=B({type:sX,selectors:[["saved-search-picker-dialog"]],standalone:!1,features:[kg],decls:10,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["aria-label","Add a Saved Search"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary","data-test","save",1,"medium",3,"click","disabled"],["aria-label","Add a Saved Search",3,"selectionChange"],["checkboxPosition","before",3,"selected",
"value","height"],["checkboxPosition","before",3,"selected","value"],[1,"savedsearch-name","type-m","flex-kids-x","align-items-center"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&(I(0,"header",0),Q(1," Add a Saved Search "),J(),I(2,"div",1),E(3,Qgb,3,0,"mat-selection-list",2),S(4,"async"),J(),I(5,"div",3)(6,"button",4),M("click",function(){return b.onCancel()}),Q(7," Cancel "),J(),I(8,"button",5),M("click",function(){return b.onSave()}),Q(9),J()());if(a&
2){var c;z(3);F((c=T(4,3,b.savedSearches$))?3:-1,c);z(5);D("disabled",b.selectedIds.size===0);z();R(" Save ",b.selectedIds.size>1?"("+b.selectedIds.size+")":""," ")}},dependencies:[PA,Tx,wK,yK,xK,gM,pM,oM,Qv],styles:["[_nghost-%COMP%]     .mat-mdc-dialog-title{margin-bottom:8px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{width:500px;padding:0}\n/*# sourceMappingURL=saved_search_picker_dialog.css.map */"]});var tX=function(){};tX.\u0275fac=function(a){return new (a||tX)};tX.\u0275mod=Jf({type:tX});tX.\u0275inj=Tc({imports:[ZB,$B,$K,cC,GM,vM,Ly,My,VB,$B,EM,TQ,WJ]});var uX=function(){this.dialog=n(tK)};uX.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){nK(b.dialog.open(sX,c)).subscribe(function(e){e=e===void 0?[]:e;a==null||a(e);d(e)})})};uX.\u0275fac=function(a){return new (a||uX)};uX.\u0275prov=Sc({token:uX,factory:uX.\u0275fac,providedIn:"root"});var m_c=function(){return[]},vX=function(){Z.apply(this,arguments);var a=this;this.issueFridge=n($E);this.changelistFridge=n(WC);this.activeSession=n(Es);this.query$=new ag(1);this.issues$=this.query$.pipe(fg(function(b){return a.issueFridge.watchMany(b).pipe(y(function(c){if(yr(a.ref)==="issue")return c.results;var d;return JEc(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(y(function(b){return b.map(aya).filter(Tk)}),y(Uua));this.submittedClLinks$=
this.issues$.pipe(y(function(b){return b.flatMap(function(c){var d,e,f;return(f=(d=c.snapshot)==null?void 0:(e=d[0])==null?void 0:e.changelist)!=null?f:[]})}));this.pendingCls$=this.issues$.pipe(y(function(b){return b.map(function(c){return c.issueId})}),fg(function(b){return a.changelistFridge.watchMany({pendingForIssues:b})}),y(function(b){return b.results}))};Y(vX,Z);vX.\u0275dir=Z.\u0275dir;vX.prototype.getHotlistId=function(){if(yr(this.ref)==="hotlist")return xr(this.ref)};
ea.Object.defineProperties(vX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});vX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(vX)))(b||vX)}}();
vX.\u0275cmp=B({type:vX,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},standalone:!1,features:[kg],decls:11,vars:16,consts:[[1,"flex-kids-x","align-items-center"],[1,"flex-kids-x","align-items-center","dividers-between"],[3,"ref","count"],[3,"submitted","pending"],[3,"emails"],[1,"shrink-0","margin-left-auto"],["mat-stroked-button","","target","_blank",1,"small","pop-out-link",3,"href"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){a&1&&(I(0,"section",0)(1,"div",1),K(2,
"issue-count",2),S(3,"async"),K(4,"cl-counts",3),S(5,"async"),S(6,"async"),E(7,Rgb,1,1,"avatar-bunch",4),S(8,"async"),J(),I(9,"div",5),E(10,Sgb,3,1,"a",6),J()());if(a&2){var c,d,e;z(2);D("ref",b.ref)("count",(c=T(3,6,b.issues$))==null?null:c.length);z(2);var f,h;D("submitted",(f=T(5,8,b.submittedClLinks$))!=null?f:ih(14,m_c))("pending",(h=T(6,10,b.pendingCls$))!=null?h:ih(15,m_c));z(3);F((d=T(8,12,b.emails$))?7:-1,d);z(3);a:{if(fm(b.activeSession.session)&&(a=b.getHotlistId(),a!=null)){a="https://taskflow.corp.google.com/hotlists/"+
a;break a}a=void 0}F((e=a)?10:-1,e)}},dependencies:[aB,PA,Tx,LW,MW,NW,Qv],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_list.css.map */"],
changeDetection:0});var Ugb=function(){return[]},wX=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=n(QF);this.metadataFridge=n(HC);this.issueFullFridge=n(EF);this.changelistFridge=n(WC);this.id$=new ag(1);this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.metadata$=this.id$.pipe(fg(function(b){return a.metadataFridge.watch(b)}));this.closedAndTotal$=this.metadata$.pipe(y(Jya));this.metadata$.pipe(y(Lya));this.gerritChanges$=this.metadata$.pipe(y(Mya));this.emails$=this.metadata$.pipe(y(Nya));
this.pendingCls$=Je([this.id$,this.metadata$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;c=(d=c==null?void 0:c.issueIds)!=null?d:[];d=[b].concat(p(c));return a.changelistFridge.watchMany({pendingForIssues:d})}),y(function(b){return b.results}));this.subscriptions.add(Ue(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFullFridge.memoryWasSet$,this.issueFullFridge.collectiveMemoryWasSet$).pipe(Qf(this.id$),Sf(2E3)).subscribe(function(b){return void a.metadataFridge.poke(b[1])}))};
Y(wX,Z);wX.\u0275dir=Z.\u0275dir;ea.Object.defineProperties(wX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});wX.\u0275fac=function(a){return new (a||wX)};
wX.\u0275cmp=B({type:wX,selectors:[["rollups-project"]],inputs:{id:"id"},standalone:!1,features:[kg],decls:11,vars:15,consts:[[1,"flex-kids-x","align-items-center","dividers-between"],[3,"closed","total"],[3,"issue"],[3,"submitted","pending"],[3,"changes"],[3,"emails"]],template:function(a,b){a&1&&(I(0,"section",0),E(1,Tgb,1,2,"progress-pie",1),S(2,"async"),K(3,"issue-timeframe",2),S(4,"async"),E(5,Vgb,2,5,"cl-counts",3),S(6,"async"),E(7,Xgb,1,1),S(8,"async"),E(9,Zgb,1,1),S(10,"async"),J());if(a&
2){var c,d,e,f;z();F((c=T(2,5,b.closedAndTotal$))?1:-1,c);z(2);D("issue",T(4,7,b.issue$));z(2);F((d=T(6,9,b.metadata$))?5:-1,d);z(2);F((e=T(8,11,b.gerritChanges$))?7:-1,e);z(2);F((f=T(10,13,b.emails$))?9:-1,f)}},dependencies:[LW,MW,rU,qU,CZc,Qv],styles:["[_nghost-%COMP%]{display:block}.dividers-between[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding-right:16px;margin-right:16px;border-right:1px solid;border-right-color:#dadce0;border-right-color:var(--divider)}.dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:empty, .dividers-between[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{border-right:none;padding-right:0;margin-right:0}\n/*# sourceMappingURL=rollups_project.css.map */"],
changeDetection:0});var xX=function(){this.activeSession=n(Es)},n_c=function(a){var b=Qj(a.activeSession.isInternalSession()?Jsc:Ksc);return Yr(a.activeSession,"enableConfigurableAlertsMissionControl")?b:Object.assign({},b,{buganizerSignals:b.buganizerSignals.filter(function(c){return c!=="CONFIGURABLE_ALERT"})})};xX.\u0275fac=function(a){return new (a||xX)};xX.\u0275prov=Sc({token:xX,factory:xX.\u0275fac,providedIn:"root"});var o_c=(new UB).transform,yX=function(){var a=this;this.kansasPrefsManager=n(OG);this.activeSession=n(Es);this.filteredSignalsSource=n(xX);this.filteredSignalsOptions=n_c(this.filteredSignalsSource);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?Fsc:Gsc;this.destroyed$=new ag(1);this.prefs$=this.kansasPrefsManager.preferences$.pipe(y(function(b){var c;return(c=b==null?void 0:b.missionControlPreferences)!=null?c:{}}));this.prefsSubject$=mp(this.prefs$.pipe(gg(this.destroyed$)),
{});this.myTasksSources$=this.prefs$.pipe(y(function(b){var c,d=(c=b==null?void 0:b.myTasksSources)!=null?c:[];b=b==null?void 0:b.isMyTasksSourcesConfigured;return d.length!==0||b?d.map(ahb):[].concat(p(Hsc))}));this.needsAttentionSources$=this.prefs$.pipe(y(function(b){var c,d=(c=b==null?void 0:b.needsAttentionSources)!=null?c:[];b=b==null?void 0:b.isNeedsAttentionSourcesConfigured;c=a.needsAttentionSourceFilters;return d.length!==0||b?d.map(ahb):[].concat(p(c))}));this.needsAttentionTimeBoundary$=
this.prefs$.pipe(y(function(b){var c;return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.needsAttentionFilteredSignals$=this.prefs$.pipe(y(function(b){return{buganizerSignals:chb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:ghb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:ihb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:ehb(b==null?void 0:
b.needsAttentionChangelistFilteredSignals,a.filteredSignalsOptions),googleTasksSignals:jhb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:khb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),cg({bufferSize:1,refCount:!0}))};yX.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var Rr=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},Ljb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=c;Rr(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;Rr(a,{workAreaTab:c});break;default:console.error("unhandled tab key, cannot save preference")}};
yX.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=(b=this.prefs.collapsed)!=null?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];Rr(this,{collapsed:this.prefs.collapsed})};var aWb=function(a,b){b=b.map($gb);a.prefs.needsAttentionSources=b;Rr(a,{needsAttentionSources:b,isNeedsAttentionSourcesConfigured:!0})};yX.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var p_c=function(a,b){switch(b){case "mc-my-tasks":return a.prefs.myTasksTab;case "work-areas-wrapper-card":return a.prefs.workAreaTab;default:console.error("unhandled tab key, cannot get preference")}};yX.prototype.getMyTasksSources=function(){var a,b=(a=this.prefs.myTasksSources)!=null?a:[];a=this.prefs.isMyTasksSourcesConfigured;return b.length!==0||a?b.map(ahb):[].concat(p(Hsc))};var q_c=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
yX.prototype.addHotlist=function(a){zX(this,C9a(a))};yX.prototype.hasHotlist=function(a){return a==null?!1:r_c(this,C9a(a))};yX.prototype.hasSavedSearch=function(a){return a==null?!1:r_c(this,D9a(a))};
var r_c=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},zX=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=Qua(b,d);Rr(a,{workAreaUrls:d})}},Hjb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();o_c(b,e,c)?console.info('Cannot move "'+b+'" by '+c+". peers: ["+e+"]"):(d=e.indexOf(b),e[d]=e[d+c],e[d+c]=b,Rr(a,{workAreaUrls:e}))};
ea.Object.defineProperties(yX.prototype,{prefs:{configurable:!0,enumerable:!0,get:function(){return this.prefsSubject$.value}}});yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275prov=Sc({token:yX,factory:yX.\u0275fac,providedIn:"root"});var AX=function(){this.issueFridge=n($E);this.candidateIssues$=this.issueFridge.watchMany(Lsc);this.suggestions$=this.candidateIssues$.pipe(y(J9a))};AX.\u0275fac=function(a){return new (a||AX)};AX.\u0275prov=Sc({token:AX,factory:AX.\u0275fac,providedIn:"root"});var s_c=function(){this.dataStore=new Map};s_c.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};var t_c=function(a,b){for(a.dataStore.has(b)&&a.dataStore.delete(b);a.dataStore.size>=50;)a.dataStore.delete(a.dataStore.keys().next().value);a.dataStore.set(b,void 0)},u_c=function(a,b){var c;b=(c=b==null?void 0:b.split(","))!=null?c:[];a.dataStore.clear();c=l(b);for(b=c.next();!b.done;b=c.next())a.dataStore.set(b.value,void 0)};var BX=function(){var a=this;this.prefsService=n(yX);this.isNumeric=Ofb;this.isActive=function(){return v_c(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(y(function(b){var c;return v_c(a,b,(c=a.filter)==null?void 0:c.key)}))};
BX.prototype.onClick=function(){var a=!this.isActive();if(this.prefKey!=null){var b=this.prefsService,c=this.prefKey;a=a?this.filter.key:void 0;var d;b.prefs.workAreaQuickFilters=(d=b.prefs.workAreaQuickFilters)!=null?d:{};a?b.prefs.workAreaQuickFilters[c]=a:delete b.prefs.workAreaQuickFilters[c];Rr(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};BX.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var v_c=function(a,b,c){if(b==null||a.prefKey==null)return!1;var d;return((d=b.workAreaQuickFilters)==null?void 0:d[a.prefKey])===c};
ea.Object.defineProperties(BX.prototype,{metadata:{configurable:!0,enumerable:!0,set:function(a){this.metadataInternal=a;if(a!=null)if(this.filter.key==="OPEN"){if(a==null)var b=0;else{b=0;a=l(a.aggregatedStatus);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.issueIds===void 0?[]:c.issueIds,e=void 0;if((e=om.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=Kya(a,"ASSIGNED"),a=Kya(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("pf`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=zr[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=zr[(b=this.filter)==null?void 0:b.key])==null?void 0:c.check;this.countDisplay=a.filter(d).length}}}});BX.\u0275fac=function(a){return new (a||BX)};
BX.\u0275cmp=B({type:BX,selectors:[["qif-stat"]],hostBindings:function(a,b){a&1&&M("click",function(){return b.onClick()})},inputs:{metadata:"metadata",key:"key",prefKey:"prefKey",computeCountFor:"computeCountFor"},standalone:!1,decls:5,vars:7,consts:[["type","button",1,"unstyled-button","stat-card",3,"title"],[1,"big-number",3,"muted"],[1,"big-number"]],template:function(a,b){a&1&&(I(0,"button",0),S(1,"async"),I(2,"label"),Q(3),J(),E(4,nhb,2,3,"div",1),J());if(a&2){var c;D("title",(c=b.filter.tooltip)!=
null?c:"");ng("aria-pressed",T(1,5,b.active$))("disabled",b.isDisabled()?"true":null);z(3);ch(b.filter.displayAs);z();F(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[Qv],styles:["[_nghost-%COMP%], label[_ngcontent-%COMP%]{display:block}.big-number[_ngcontent-%COMP%]{font-size:1.5rem;line-height:1;margin-top:4px;color:#1a73e8;color:var(--text-primary)}.big-number.muted[_ngcontent-%COMP%]{color:#80868b;color:var(--gfx-muted)}button.stat-card[_ngcontent-%COMP%]{border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);padding:8px 16px;cursor:pointer}button.stat-card[_ngcontent-%COMP%]:focus-visible, button.stat-card[_ngcontent-%COMP%]:hover{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50);border-color:#1a73e8;border-color:var(--primary)}button.stat-card[aria-pressed=true][_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}button.stat-card[disabled][_ngcontent-%COMP%]{cursor:default;background-color:#f8f9fa;background-color:var(--c50);border-color:transparent;box-shadow:none}button.stat-card[disabled][_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}\n/*# sourceMappingURL=qif_stat.css.map */"],
changeDetection:0});var CX=function(){};CX.\u0275fac=function(a){return new (a||CX)};CX.\u0275mod=Jf({type:CX});CX.\u0275inj=Tc({imports:[ZB,fO,YB,$B]});var DX=function(){var a=this;this.issueFridge=n($E);this.activeSession=n(Es);this.QuickFilterKey=Ilc;this.query$=new ag(1);this.issues$=this.query$.pipe(fg(function(b){return a.issueFridge.watchMany(b)}),y(function(b){if(a.entityType==="issue")return b.results;var c;return JEc(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};ea.Object.defineProperties(DX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
DX.\u0275fac=function(a){return new (a||DX)};
DX.\u0275cmp=B({type:DX,selectors:[["stat-cards-list"]],inputs:{prefKey:"prefKey",entityType:"entityType",query:"query"},standalone:!1,decls:17,vars:40,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","computeCountFor"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"qif-stat",1),S(2,"async"),K(3,"qif-stat",1),S(4,"async"),K(5,"qif-stat",1),S(6,"async"),K(7,"qif-stat",1),S(8,"async"),K(9,"qif-stat",1),S(10,"async"),K(11,"qif-stat",1),S(12,"async"),K(13,"qif-stat",1),S(14,"async"),K(15,"qif-stat",
1),S(16,"async"),J());a&2&&(z(),D("key",b.QuickFilterKey.OPEN)("prefKey",b.prefKey)("computeCountFor",T(2,24,b.issues$)),z(2),D("key",b.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",b.prefKey)("computeCountFor",T(4,26,b.issues$)),z(2),D("key",b.QuickFilterKey.ASSIGNED_TO_ME_AND_OPEN)("prefKey",b.prefKey)("computeCountFor",T(6,28,b.issues$)),z(2),D("key",b.QuickFilterKey.NEWLY_FILED)("prefKey",b.prefKey)("computeCountFor",T(8,30,b.issues$)),z(2),D("key",b.QuickFilterKey.RECENTLY_ACTIVE)("prefKey",b.prefKey)("computeCountFor",
T(10,32,b.issues$)),z(2),D("key",b.QuickFilterKey.HIGH_PRIORITY)("prefKey",b.prefKey)("computeCountFor",T(12,34,b.issues$)),z(2),D("key",b.QuickFilterKey.TRENDING)("prefKey",b.prefKey)("computeCountFor",T(14,36,b.issues$)),z(2),D("key",b.QuickFilterKey.PROGRESS)("prefKey",b.prefKey)("computeCountFor",T(16,38,b.issues$)))},dependencies:[BX,Qv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var EX=function(){var a=this;this.metadataFridge=n(HC);this.QuickFilterKey=Ilc;this.id$=new ag(1);this.metadata$=this.id$.pipe(fg(function(b){return a.metadataFridge.watch(b)}));this.hasDescendants$=this.metadata$.pipe(y(function(b){var c;return((c=b==null?void 0:b.descendantCount)!=null?c:0)>0}))};ea.Object.defineProperties(EX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
EX.\u0275fac=function(a){return new (a||EX)};EX.\u0275cmp=B({type:EX,selectors:[["stat-cards-project"]],inputs:{id:"id"},standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","metadata"]],template:function(a,b){a&1&&(E(0,ohb,5,10,"div",0),S(1,"async"));a&2&&F(T(1,1,b.hasDescendants$)?0:-1)},dependencies:[BX,Qv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],changeDetection:0});var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=Jf({type:FX});FX.\u0275inj=Tc({imports:[ZB,fO,YB,$B,OW,CX]});var w_c={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},x_c=function(){this.data=n(sK);this.paths=n(EN);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=w_c};x_c.\u0275fac=function(a){return new (a||x_c)};
x_c.\u0275cmp=B({type:x_c,selectors:[["b-issue-archive-dialog"]],standalone:!1,decls:18,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["href","http://go/b-issue-archive","target","_blank"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"matDialogClose"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"matDialogClose"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Archive with all descendant issues?"),
J(),I(2,"div",1),Q(3),K(4,"br")(5,"br"),I(6,"a",2),Q(7,"View all descendant issues"),J(),K(8,"br"),I(9,"a",3),Q(10,"Learn more"),J()(),I(11,"div",4)(12,"button",5),Q(13,"Cancel"),J(),I(14,"button",5),Q(15," Just this one "),J(),I(16,"button",6),Q(17," Archive all "),J()());a&2&&(z(3),R(" This issue has ",b.numberOfDescendants," descendant issues. Archiving only this issue may make it difficult to find them later. Do you want to archive this issue with all descendant issues? "),z(3),Qg("href",b.descendantIssuesUrl,
uf),z(6),D("matDialogClose",b.ActionType.CANCEL),z(2),D("matDialogClose",b.ActionType.ARCHIVE_ONE),z(2),D("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[PA,Tx,uK,wK,yK,xK],encapsulation:2});var GX=function(){this.issueApi=n(BE);this.dialog=n(tK);this.confirmationDialogService=n(AK);this.issueRelationshipsFridge=n(QF);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.paths=n(EN);this.butterBar=n(iK);this.editIssueService=n(oL)};
GX.prototype.submitArchivalState=function(a,b){var c=this;return w(function(d){if(d.nextAddress==1)return b?x(d,c.archive(a),5):x(d,c.editIssueService.unarchive(a),0);c.issueFullFridge.poke(a);c.eventsForIssueFridge.poke(a);ze(d)})};
GX.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,u,A,G;return w(function(H){if(H.nextAddress==1)return x(H,Promise.all([b.getDescendants(a),Ge(b.issueFullFridge.watch(a))]),2);c=H.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;u=q.childToParents;A=q.completeResult;G=[].concat(p(u.keys()));u.set(a,k.parentIssueIds||[]);return G.length===0?H.return(y_c(b,a,u)):A?H.return(z_c(b,a,G,u)):H.return(A_c(b,a,u))})};
var z_c=function(a,b,c,d){var e,f,h;return w(function(k){if(k.nextAddress==1)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},x(k,Ge(nK(a.dialog.open(x_c,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(B_c(a,[b].concat(p(c)),d));case "ARCHIVE_ONE":return k.return(y_c(a,b,d));case "CANCEL":return k.return();default:return k.return(Gb(h))}})},B_c=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];C_c(a,c);Mq(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){Mq(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);D_c(a,c)})},y_c=function(a,b,c){C_c(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){Mq(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);D_c(a,c)})},A_c=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Pi([Oi("This issue has more than 1000 descendant issues. Archiving only\n                      this issue may make it difficult to find them later. Go to\n                      issue list page and archive issues there."),Qi("br",{}),Qi("br",{}),Qi("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Qi("br",{}),Qi("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){y_c(a,b,c).then(d)},onDismiss:d})})},C_c=function(a,b){b=l(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;d=l(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},D_c=function(a,b){b=[].concat(p(b.values())).flat();b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
GX.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,u,A,G,H,N;return w(function(O){if(O.nextAddress==1)return x(O,Ge(Frc(b.issueRelationshipsFridge,a)),2);c=O.yieldResult;d=c.results;e=!0;f=new Map;h=l(d);for(k=h.next();!k.done;k=h.next()){q=k.value;u=l(q.relatedChildren);for(A=u.next();!A.done;A=u.next())G=A.value,H=void 0,N=(H=f.get(G.targetIssueId))!=null?H:[],N.push(q.issueId),f.set(G.targetIssueId,N);q.totalChildCount===q.relatedChildren.length||(e=!1)}return O.return({childToParents:f,
completeResult:e})})};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275prov=Sc({token:GX,factory:GX.\u0275fac,providedIn:"root"});var HX=function(a){this.pathToAncestor=a},Pr=function(a){return new HX(a.split(">"))},E_c=function(a,b){return new HX([].concat(p(a.pathToAncestor),[b]))};HX.prototype.hash=function(){return this.pathToAncestor.join(">")};HX.prototype.equals=function(a){return!!a&&Pj(this.pathToAncestor,a.pathToAncestor)};var F_c=function(a,b){a=l(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=l(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
HX.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};HX.prototype.some=function(a){return this.pathToAncestor.some(a)};HX.prototype.toString=function(){return this.hash()};
ea.Object.defineProperties(HX.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor.length}},nodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-1]}},parentNodeId:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[this.size-2]}},parentChain:{configurable:!0,enumerable:!0,get:function(){return new HX(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var IX=function(){var a=this;this.draftRows=new Map;this.changed$=new bg;this.counter=0;this.createId=function(){return String(a.counter++)}};IX.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:E_c(a,d),level:a.size-1,issue$:b,afterDraftId:c==null?void 0:c.afterDraftId,afterIssueId:c==null?void 0:c.afterIssueId,id:d,saving:!1,draftStartedAt:new Date};this.set(a,b);return b};
IX.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};IX.prototype.remove=function(a){var b=a.ancestorChain.parentChain,c=this.get(b),d=c.filter(function(f){return f.id!==a.id});if(c.length!==d.length){c=l(d);for(var e=c.next();!e.done;e=c.next())e=e.value,e.afterDraftId===a.id&&(e.afterDraftId=a.afterDraftId);this.draftRows.set(b.hash(),d);this.changed$.next(this.draftRows)}};
var G_c=function(a,b){return w(function(c){return c.return(Ge(a.changed$.pipe(eg(a.draftRows),y(function(d){return![].concat(p(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),Ve(Boolean),y(function(){}))))})};IX.prototype.isSaving=function(){return[].concat(p(this.draftRows.values())).flat().some(function(a){return a.saving})};IX.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(p(c),[b]));this.changed$.next(this.draftRows)};var H_c={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},I_c=function(a){var b=void 0;b=b===void 0?H_c:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new ag(1)},J_c=function(a,b){b=b.hash();return a.expansionState[b]},K_c=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},L_c=function(a,b,c){var d=!1;c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=E_c(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&J_c(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=l(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=l(k.value);var q=k.next().value;k=k.next().value;q=Pr(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new HX(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!J_c(a,b)){var u;a.expansionState[b.hash()]=
(u=a.config.defaultExpandedChildren)!=null?u:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var JX=function(){this.issueApi=n(BE);this.activeSession=n(Es);this.issueFullFridge=n(EF);this.componentFridge=n(jD);this.componentTemplatesFridge=n(oD);this.currentUser=Hk(this.activeSession.getUserEmail())},N_c=function(a,b){var c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,M_c(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(Oya(d,e))})},P_c=function(a,b){return O_c(a,b).pipe(y(function(c){return{snapshot:[c],issueId:"",version:0,userData:void 0,aggregatedData:void 0,
accessLimit:void 0,customFields:[],visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[],descendantCount:0,openDescendantCount:0}}))},Q_c=function(a,b,c){var d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(O_c(a,b)),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
JX.prototype.create=function(a){var b=this,c,d;return w(function(e){return e.nextAddress==1?x(e,b.issueApi.createIssue({snapshot:a}),2):e.nextAddress!=3?(c=e.yieldResult,d=c.issueId,x(e,b.issueFullFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var O_c=function(a,b){return a.issueFullFridge.watch(b).pipe(Ve(Tk),fg(function(c){var d,e;return w(function(f){if(f.nextAddress==1)return x(f,M_c(a,String(c.snapshot[0].componentId)),2);d=f.yieldResult;if(c){var h={};c.snapshot[0].priority&&(h.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(h.severity=c.snapshot[0].severity);c.snapshot[0].type&&(h.type=Brc[c.snapshot[0].type])}else h={};e=Object.assign({},{componentId:d.component.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",
isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},h,R_c(d.defaultTemplate),S_c(d.component,d.defaultTemplate));e.assigneeUser&&(e.status="ASSIGNED");return f.return(e)})}))},R_c=function(a){if(!a)return{};a=Ti(a.snapshot,function(b){return b==null||typeof b==="string"&&Ca(b)?!1:!0});delete a.componentId;return a},S_c=function(a,b){var c=[],d,e;a=l((e=(d=a.componentPathInfo)==null?void 0:d.allCustomField)!=null?e:[]);e=a.next();for(d={};!e.done;d=
{customField$jscomp$16:void 0},e=a.next())if(d.customField$jscomp$16=e.value,d.customField$jscomp$16.required){var f=void 0;e=(f=d.customField$jscomp$16.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$16.customFieldId};var h=f=void 0,k=void 0,q=(k=(f=b)==null?void 0:(h=f.snapshot.customField)==null?void 0:h.find(function(u){return function(A){return A.customFieldId===u.customField$jscomp$16.customFieldId}}(d)))!=null?k:e;q&&c.push(Object.assign({},q))}return c.length===0?{}:{customField:c}},
M_c=function(a,b){var c,d,e,f,h,k;return w(function(q){if(q.nextAddress==1)return x(q,Promise.all([Ge(a.componentTemplatesFridge.defaultTemplate$(b)),Ge(a.componentFridge.watch(b).pipe(Ve(Tk)))]),2);c=q.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275prov=Sc({token:JX,factory:JX.\u0275fac,providedIn:"root"});var KX=function(a,b,c,d,e,f,h,k,q,u,A,G,H,N,O){c=c===void 0?1:c;Z.call(this);var U=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFullFridge=h;this.issuePicker=k;this.issueRelationshipsFridge=q;this.paths=u;this.router=A;this.issueCreationService=G;this.clearcut=H;this.refreshMonitor=N;this.permissionsFridge=O;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return U.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?vk(this.saveExpansionAtKey):function(){};this.expansion=new I_c(T_c(this));this.draftRows=new IX;this.refetchingAll$=new tj(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(ig(Oe(function(){return U.rows$})),fg(function(da){da=l(da);da.next();var ma=da.next().value;U.refetchingAll$.next(!0);da=[];if(!ma)return Promise.resolve();da.push(Grc(U.issueRelationshipsFridge,U.rootIssueId,U.defaultApiRequestDepth));
ma=l(ma);for(var ra=ma.next();!ra.done;ra=ma.next())ra=ra.value,ra.type==="data"&&da.push(U.issueFullFridge.poke(ra.id)),ra.level>U.defaultExpansionLevel&&da.push(U.issueRelationshipsFridge.poke(ra.id));return Promise.all(da).then(function(){U.refetchingAll$.next(!1)})}));this.rows$=Ue(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,uga(Ce({}),qp)).pipe(fg(function(){return Frc(U.issueRelationshipsFridge,U.rootIssueId,U.defaultApiRequestDepth)}),fg(function(){for(var da=
new Map,ma=l(Object.entries(U.expansion.expansionState)),ra=ma.next();!ra.done;ra=ma.next()){ra=l(ra.value);var Ga=ra.next().value;ra=ra.next().value;Ga=Pr(Ga).nodeId;var Na=void 0;ra=Math.max(ra,(Na=da.get(Ga))!=null?Na:0);da.set(Ga,ra)}return U_c(U,da)}),Qf(this.quickFilters.value$),fg(function(da){da=l(da);var ma=da.next().value;var ra=da.next().value;return ra.size===0?(U.hiddenRowCount$.next(0),Ce(ma)):V_c(U,ma).pipe(y(function(Ga){return W_c(U,ma,ra,Ga)}))}),y(function(da){return X_c(U,da)}),
cg({refCount:!0,bufferSize:1}));this.hiddenRowCount$=new tj(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(Ve(Tk));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new HX([this.rootIssueId]),expandedCount:500,issue$:ev,hasChildren$:ev,isEditMode:!1,issuePermissions$:ev};this.supportsOneLineCreation=Ge(this.rootIssue$).then(function(da){return ck(da.snapshot[0].componentId)}).then(function(da){return N_c(U.issueCreationService,da)});this.saveExpansionAtKey&&
this.subscriptions.add(this.expansion.changed$.pipe(Sf(100)).subscribe(a))};Y(KX,Z);KX.\u0275dir=Z.\u0275dir;KX.\u0275fac=Z.\u0275fac;
var T_c=function(a){a=a.saveExpansionAtKey;if(a!=null){a=eva(a)();a:if(typeof a!=="object"||Object.getPrototypeOf(a)!==Object.prototype)var b=!1;else{b=l(Object.getOwnPropertyNames(a));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!c||typeof a[c]!=="number"){b=!1;break a}b=!0}return b?a:void 0}},Y_c=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k,q,u;w(function(A){switch(A.nextAddress){case 1:return d=b.nodeId,x(A,Ge(a.issueFullFridge.watch(d)),2);case 2:return(e=A.yieldResult)?
x(A,a.supportsOneLineCreation,3):A.return();case 3:if(f=A.yieldResult)return h=P_c(a.issueCreationService,d),A.return(a.draftRows.create(b,h,c));k=e.snapshot[0].componentId;u={};return x(A,Nr(a.router,a.paths.createIssue((u.component=k?String(k):void 0,u.parentIssueId=e.issueId,u.redirectUrl=Fq.issueDependencies.makeHref(a.rootIssueId),u.afterIssueId=(q=c)==null?void 0:q.afterIssueId,u))),4);case 4:return A.return()}})};
KX.prototype.addExistingChild=function(a){var b=this,c,d,e,f;w(function(h){if(h.nextAddress==1)return x(h,Ge((d=(c=a)==null?void 0:c.issue$)!=null?d:b.rootIssue$),2);e=h.yieldResult;if(!e)return h.return();f=String(e.issueId);return x(h,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return w(function(q){if(q.nextAddress==1){if(k.length===0)return q.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return x(q,Zi(0),2)}a&&K_c(b.expansion,a.ancestorChain,500);ze(q)})}),0)})};KX.prototype.saveDraft=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1){if(a.saving||!a.title)return d.return();a.saving=!0;return x(d,Z_c(b,a),2)}return(c=d.yieldResult)?d.return($_c(b,a,c)):d.return()})};
var Z_c=function(a,b){var c,d,e,f;return w(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,te(h,2),x(h,Q_c(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;uu(h,3);break;case 2:return f=xe(h),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),h.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(k>0){var q=Math.min(k,108E5);erc("createIssue",q,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",q);wF(a.clearcut,k,"createIssue-fromTree")}K_c(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var u=l(k.draftRows.values()),A=u.next();!A.done;A=u.next()){A=l(A.value);for(var G=A.next();!G.done;G=A.next())G=G.value,G.afterDraftId===b.id&&(G.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},$_c=function(a,b,c){var d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?u.jumpTo(2):x(u,G_c(a.draftRows,f),2);if(u.nextAddress!=4)return x(u,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=u.yieldResult;k=h.errors;((q=k)==null?0:q.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);ze(u)})},U_c=function(a,b,c){c=c===void 0?0:c;return Je([a.rootIssueId].concat(p(b.keys())).map(function(d){return a.refetchingAll$.pipe(Ve(function(e){return!e}),
fg(function(){return Erc(a.issueRelationshipsFridge,d)}))})).pipe(fg(function(d){var e=new Map;d=l(d);for(var f=d.next();!f.done;f=d.next())(f=f.value)&&e.set(f.issueId,f);if(c===a.defaultExpansionLevel)return Ce(e);d=a0c(a,e,c);d=new Map(d.map(function(h){return[h,a.defaultExpandedChildren]}));return U_c(a,d,c+1).pipe(y(function(h){var k=new Map(e);h=l(h.entries());for(var q=h.next();!q.done;q=h.next()){var u=l(q.value);q=u.next().value;u=u.next().value;k.set(q,u)}return k}))}))},a0c=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};a.length>0;e={current$jscomp$54:void 0})if(e.current$jscomp$54=a.pop(),e.current$jscomp$54.level===c&&d.push(e.current$jscomp$54.id),!(e.current$jscomp$54.level>c)){var f=void 0,h=void 0,k=(h=(f=b.get(e.current$jscomp$54.id))==null?void 0:f.relatedChildren)!=null?h:[];a.push.apply(a,p(k.map(function(q){return function(u){return{id:u.targetIssueId,level:q.current$jscomp$54.level+1}}}(e))))}return d},X_c=function(a,b){for(var c=[],d=[a.ROOT_ROW],
e={};d.length>0;e={parentRow$jscomp$1:void 0,childrenLevel:void 0})if(e.parentRow$jscomp$1=d.pop(),e.parentRow$jscomp$1.type==="load-more-children"||e.parentRow$jscomp$1.type==="draft-issue")c.push(e.parentRow$jscomp$1);else{e.parentRow$jscomp$1.id!==a.rootIssueId&&c.push(e.parentRow$jscomp$1);var f=void 0,h=void 0,k=(h=(f=b.get(e.parentRow$jscomp$1.id))==null?void 0:f.relatedChildren)!=null?h:[];f=k.slice(0,e.parentRow$jscomp$1.expandedCount);e.childrenLevel=e.parentRow$jscomp$1.level+1;e.parentRow$jscomp$1.expandedCount&&
f.length<k.length&&(h=E_c(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(u){var A=E_c(q.parentRow$jscomp$1.ancestorChain,u.targetIssueId);return{type:"data",id:u.targetIssueId,level:q.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(u.targetIssueId).pipe(y(CGa)),ancestorChain:A,
expandedCount:b0c(a,A,q.childrenLevel,b),issue$:a.issueFullFridge.watch(u.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(Qn(u.targetIssueId)).pipe(y(function(G){return G!=null?G:pFc}),eg(pFc))}}}(e));d.push.apply(d,p(c0c(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},c0c=function(a,b,c){var d=[].concat(p(b));a=a.draftRows.get(c);a=l(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$8:void 0},e=a.next())c.draft$jscomp$8=e.value,b.some(function(f){return function(h){return h.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(h){return h.id===f.draft$jscomp$8.afterDraftId||h.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},b0c=function(a,b,c,d){var e=b.nodeId;b=J_c(a.expansion,b);if(b!==void 0)return b;if(c<a.defaultExpansionLevel){var f,h;return Math.min(a.defaultExpandedChildren,(h=(f=d.get(e))==null?void 0:f.relatedChildren.length)!=null?h:0)}return 0};
KX.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return w(function(k){if(k.nextAddress==1)return b.length===0?k.return():x(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(q){return{issueId:q,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+((h=f)==null?void 0:h.map(function(q){return Xo(q)}))),k.return();ze(k)})};
var V_c=function(a,b){for(var c=new Set,d=l(b.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);b=l(b.values());for(d=b.next();!d.done;d=b.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=l(d),e=d.next();!e.done;e=d.next())c.add(e.value);return Je([].concat(p(c)).map(function(f){return a.issueFullFridge.watch(f)})).pipe(y(function(f){return f.filter(Tk)}))},W_c=function(a,b,c,d){function e(q){if(!q)return!1;var u=f.get(q),A=h.get(q);if(!u||u.relatedChildren.length===
0)return A;var G=u.relatedChildren.filter(function(H){return e(H.targetIssueId)});k+=u.relatedChildren.length-G.length;f.set(q,Object.assign({},u,{relatedChildren:G}));return G.length!==0||A}var f=new Map(b.entries()),h=new Map(d.map(function(q,u,A){return[q.issueId,L9a(c,u,A)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},LX=function(){this.analytics=n(CF);this.butterBar=n(iK);this.issueFullFridge=n(EF);this.issuePicker=n(vR);this.issueRelationshipsFridge=n(QF);this.paths=n(EN);this.router=
n(DA);this.issueCreationService=n(JX);this.clearcut=n(vF);this.refreshMonitor=n(YE);this.permissionsFridge=n(iG)};LX.prototype.create=function(a,b,c,d){b=b===void 0?new uC:b;return new KX(a,b,c,d,this.analytics,this.butterBar,this.issueFullFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor,this.permissionsFridge)};LX.\u0275fac=function(a){return new (a||LX)};LX.\u0275prov=Sc({token:LX,factory:LX.\u0275fac,providedIn:"root"});var MX=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new bg;this.onRowsMoved$=new bg;this.activeDrag=!1;this.placeholder=this.rootElement.querySelector(".placeholder");this.insertionBar=this.rootElement.querySelector(".insertion-bar");this.dragPreviewTemplate=this.rootElement.querySelector(".drag-preview");this.onDragOver=cgc(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;f=shb(k<=f*.25?
"top":k>=f*.75?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var u=(k=(u=f.querySelector(".title-location"))==null?void 0:u.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;u=f.offsetLeft+u;k=h==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=u+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-u+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};d0c(e,f,h)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var h,k=(h=f.target)==null?void 0:h.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var q;if(((q=e.currentReorderingGuide)==null?void 0:q.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){e0c(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,f0c(e.rowSelectionModel),"mouse",4);e0c(e)})})};
MX.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(thb(c));g0c(this.rowSelectionModel);h0c(this);this.dragPreview=this.dragPreviewTemplate.cloneNode(!0);document.body.appendChild(this.dragPreview);this.dragPreview.style.display="block";this.dragPreview.style.top="-1000px";this.dragPreview.innerText=this.rowSelectionModel.selectedCount===1?"Moving 1 issue":"Moving "+this.rowSelectionModel.selectedCount+" issues";a.dataTransfer.setDragImage(this.dragPreview,
0,0);a.dataTransfer.dropEffect="move";a=this.rows.toArray().filter(function(d){return b.rowSelectionModel.isSelected(d.row.ancestorChain)});a=l(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var i0c=function(a,b){var c=b.row.ancestorChain.parentChain,d=a.rows.toArray().find(function(e){return c.equals(e.row.ancestorChain)});d&&a.reorder({position:"after",rowElement:d.element},[b.row.ancestorChain],"keyboard",3)},j0c=function(a,b){var c=a.rows.toArray(),d=c.findIndex(function(f){return f.row.ancestorChain.equals(b.row.ancestorChain)});if(d!==-1&&d!==0){c=c.slice(0,d).reverse();c=l(c);for(d=c.next();!d.done;d=c.next()){d=d.value;if(d.row.type==="load-more-children"){d=d.element.previousElementSibling;
if(!d)continue;var e={position:"before",rowElement:d};break}if(d.row.ancestorChain.parentChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"after",rowElement:d.element};break}if(d.row.ancestorChain.parentChain.equals(b.row.ancestorChain.parentChain)){e={position:"current",rowElement:d.element};break}}a.reorder(e,[b.row.ancestorChain],"keyboard",2)}};
MX.prototype.moveUp=function(a){var b=a.element.previousElementSibling;if(b){if(b.dataset.type==="load-more-children"){b=b.previousElementSibling;if(!b)return;b={position:"before",rowElement:b}}else b={position:"before",rowElement:b};this.reorder(b,[a.row.ancestorChain],"keyboard",0)}};
MX.prototype.moveDown=function(a){var b=this.rows.toArray();if(b=b.slice(b.findIndex(function(d){return d.row.ancestorChain.equals(a.row.ancestorChain)})+1).find(function(d){return d.row.level<=a.row.level})){var c=b.element.nextElementSibling;b.row.type==="load-more-children"?i0c(this,a):(b=c&&b.row.level<rhb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
MX.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=thb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":i0c(this,b);break;case "ArrowRight":j0c(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
MX.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=thb(a.rowElement),h=void 0,k=f;switch(a.position){case "current":k=f;h={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,h={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&h&&e.onRowsMoved$.next({movedRows:b,insertAt:h,parentAncestorChain:k,origin:c,actionMessage:qhb(d)})})}};
var e0c=function(a){for(var b=l(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=l(a.rootElement.querySelectorAll("tr.nodrop"));for(c=b.next();!c.done;c=b.next())c.value.classList.remove("nodrop");a.rowSelectionModel.clear();a.placeholder.style.display="none";a.insertionBar.style.display="none";var d;(d=a.updatingNoDropRows)==null||d.unsubscribe();var e,f;(e=a.dragPreview)==null||(f=e.parentElement)==null||f.removeChild(a.dragPreview);
a.activeDrag=!1},d0c=function(a,b,c){if(c!=="current")a.longHoveredRow=void 0;else if(!b.classList.contains("dragging")&&!b.classList.contains("nodrop"))if(!a.longHoveredRow||a.longHoveredRow.row!==b)a.longHoveredRow={row:b,enterTime:Date.now()};else if(Date.now()-a.longHoveredRow.enterTime>=1E3&&!a.longHoveredRow.emitted){var d=a.rows.toArray().find(function(e){return thb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},h0c=function(a){var b;
(b=a.updatingNoDropRows)==null||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(eg(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.row.ancestorChain.some(function(f){return d.has(f)})&&e.element.classList.add("nodrop")})};var NX=function(){Z.call(this);var a=this;this.analytics=n(CF);this.dragStarted$=new bg;this.onRowsMoved$=new bg;Ue(this.dragStarted$,this.onRowsMoved$).pipe(iIa(),gg(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=jk(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);erc("reorderChildren",c,b)})};Y(NX,Z);NX.\u0275dir=Z.\u0275dir;NX.\u0275fac=function(a){return new (a||NX)};
NX.\u0275prov=Sc({token:NX,factory:NX.\u0275fac,providedIn:"root"});var OX=function(){this.changed$=new bg;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};OX.prototype.init=function(a){this.visibleRows=a};OX.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var iib=function(a,b){var c=b.hash(),d,e=(d=a.isSelectedObservableMap.get(c))!=null?d:a.changed$.pipe(eg(a.selectedRowHashes),y(function(f){return f.has(b.hash())}),Xf(),cg({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
OX.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};OX.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var g0c=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=l(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Pr(e.value);for(var f=l(b),h=f.next();!h.done;h=f.next())h=h.value,F_c(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},f0c=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return f.type==="data"}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(p(a.selectedRowHashes.values())).map(function(f){return Pr(f)}).map(function(f){return f.nodeId})),d=[];a=l(a.selectedRowHashes.values());for(var e=a.next();!e.done;e=a.next())(e=b.get(e.value))&&(e.ancestorChain.parentChain.some(function(f){return c.has(f)})||d.push(e.ancestorChain));return d};
ea.Object.defineProperties(OX.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.selectedRowHashes)).map(function(a){return Pr(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var k0c=function(){return["active-indicator","load-more-children"]},Uhb=function(){return[]},l0c=Fq.listIssues.makeHref,m0c={type:"data",id:"",issue$:ev,hasChildren$:ev,ancestorChain:new HX([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:ev},PX=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=n(QF);this.router=n(DA);this.butterBar=n(iK);this.analytics=n(CF);this.issueArchiveService=n(GX);this.ngZone=n(ph);this.elementRef=n(ff);this.domSafe=n(rL);this.reorderingSessionTracker=
n(NX);this.cdr=n(NA);this.relationsTableModelFactory=n(LX);this.liveAnnouncer=n(zw);this.clearcut=n(vF);this.paths=n(EN);this.checkBeforeExit=n(lS);this.activeSession=n(Es);this.enableRenameFeature=Yr(this.activeSession,"enableRenameChildBugsInDependenciesTab");this.IssueFieldType=Ukc;this.defaultExpansionLevel=1;this.internalFilters=new uC;this.isClosed=fya;this.dataColumns=[];this.tableColumns=[];this.options={showActiveIndicator:!0,enableDragging:!0,showMenu:!0};this.trackBy=function(b,c){return c.ancestorChain.hash()+
c.type};this.isLoadMoreRow=function(b,c){return c.type==="load-more-children"};this.isDataRow=function(b,c){return c.type==="data"};this.isDraftRow=function(b,c){return c.type==="draft-issue"};this.selectionModel=new OX;this.hasLogged=!1;this.correctedDisplayedRows=new Vg;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=np(a.rows$))!=null?c:[]).findIndex(function(d){return phb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+
". "+(Wo(c)?Xo(c):c))}};this.dataColumns=[].concat(p(xVc));this.tableColumns=this.getRenderableColumns(this.dataColumns)};Y(PX,Z);PX.\u0275dir=Z.\u0275dir;
PX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.tableModel.draftRows.isSaving()||a.issueRelationshipsFridge.isSaving()},!1));this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId,this.internalFilters,this.defaultExpansionLevel,this.saveExpansionAtKey);this.rows$=uga([this.tableModel.rows$,Ce([m0c])],Re).pipe(Me(1),cg({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(fg(function(c){return Je(c.filter(function(d){return d.type===
"data"}).map(function(d){return d.issue$}))}),Sf(0,qp));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();n0c(a,c)}));this.rowReorderingModel=new MX(this.elementRef.nativeElement,this.correctedDisplayedRows,this.ngZone,this.selectionModel);this.subscriptions.add(this.rowReorderingModel.onLongHover$.subscribe(function(c){var d=c.row;d.type==="load-more-children"?bib(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,J_c(c,d)||K_c(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return w(function(e){if(e.nextAddress==1)return Krc(a.issueRelationshipsFridge,c.insertAt,c.movedRows.map(function(f){return{issueId:f.nodeId,parentId:f.parentNodeId}})).then(function(){return a.liveAnnouncer.announce(c.actionMessage+" successfully.")}).catch(a.showError("Unable to reorder issues")),L_c(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),x(e,Ge(a.correctedDisplayedRows.changes.pipe(y(function(f){return f.find(function(h){return h.row.type==="data"&&h.row.ancestorChain.nodeId===
c.movedRows[0].nodeId&&h.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),Ve(Boolean),We(6E4))),2);d=e.yieldResult;d.focus();ze(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
PX.prototype.getRenderableColumns=function(a){var b=[];this.options.showActiveIndicator&&b.push("active-indicator");this.options.enableSelection&&b.push("selection");this.options.enableDragging&&b.push("drag-handle");a=a.map(function(c){return c.type});b.push.apply(b,p(a));this.options.showMenu&&b.push("menu");return b};
var n0c=function(a,b){if(!a.hasLogged&&b.length!==0){a.hasLogged=!0;var c=b.length,d=document.querySelectorAll("b-issue-relations-table b-expandable-issue-title-cell .collapsed").length+document.querySelectorAll('b-issue-relations-table [data-type="load-more-children"]').length===0;Wqc(a.clearcut,"view-relations-"+(d?"all-loaded":"some-loaded"));a.analytics.trackEvent("editIssue","view-relations","visible-count",c);d&&(b=b.filter(function(e){var f;return(e==null?void 0:(f=e.snapshot[0])==null?void 0:
f.effort)!=null}).length/c,c=b>.5?"most-estimated":"most-unestimated",Wqc(a.clearcut,"view-relations-"+c),a.analytics.trackEvent("editIssue","view-relations","ratio-estimated",b),a.analytics.trackEvent("editIssue","view-relations",c))}};
PX.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);Je([this.rows$,this.displayedRows.changes]).pipe(gg(this.destroyed$)).subscribe(function(b){b=l(b).next().value;a.rowDirectiveMap=new Map(a.displayedRows.map(function(c){return[c.row.ancestorChain.hash(),c]}));b=b.map(function(c){return a.rowDirectiveMap.get(c.ancestorChain.hash())}).filter(Boolean);a.correctedDisplayedRows.reset(b);Zg(a.correctedDisplayedRows)});this.focusManager=Lw(new pMc(this.correctedDisplayedRows,
phb))};PX.prototype.toggleExpansion=function(a){K_c(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};PX.prototype.navigateToIssue=function(a,b){b.isEditMode||!b.id||a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1||a.target.tagName==="A"||(this.analytics.trackEvent("editIssue","navigate","to-child-issue"),b=Fq.viewIssue.makeHref(b.id),Pn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Lq(this.domSafe,b):Nr(this.router,b))};
var bib=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),K_c(a.tableModel.expansion,b.ancestorChain.parentChain,500),x(d,Zi(0),2);a.focusManager.setActiveItem(c);ze(d)})},Xhb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return o0c(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
PX.prototype.getMenuItems=function(a){var b=this,c={type:"action",label:"Rename title",action:function(){a.isEditMode=!0},title:"Rename title",icon:"edit"};return a.issuePermissions$.pipe(y(function(d){d=!!d.writer;return[{type:"action",label:"Go to issue",action:function(e){b.navigateToIssue(e,a)},title:"Go to issue",icon:"arrow-forward"}].concat(p(b.enableRenameFeature&&d?[c]:[]),[{type:"action",label:"View Children",disabled:!np(a.hasChildren$),action:function(){var e=l0c({q:"parentid:"+a.id});
b.domSafe.openInNewTab(e)},title:"View the children of this issue on the main search page",icon:"pop-out"},{type:"action",label:"Create child",action:function(){return w(function(e){if(e.nextAddress==1)return x(e,Zi(0),2);qjb(b,a);ze(e)})},title:"Create child",icon:"add",hintText:"Shift+Enter"},{type:"action",label:"Add child",action:function(){b.addExistingChild(a)},title:"Add existing issue as child",icon:"add"},{type:"action",label:"Create sibling",action:function(){return w(function(e){if(e.nextAddress==
1)return x(e,Zi(0),2);p0c(b,a);ze(e)})},title:"Create sibling",icon:"add",hintText:"Enter"},{type:"submenu",label:"Reorder",icon:"reorder_24px",items:[{type:"action",label:"Move up",action:function(){b.rowReorderingModel.moveUp(b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Move up",icon:"arrow-up",hintText:"shift+ctrl+up"},{type:"action",label:"Move down",action:function(){b.rowReorderingModel.moveDown(b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Move down",icon:"arrow-down",hintText:"shift+ctrl+down"},
{type:"action",label:"Indent",action:function(){j0c(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){i0c(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Unindent",icon:"arrow-left",hintText:"shift+ctrl+left"}]},{type:"action",label:"Unlink from parent",action:function(){b.unlinkFromParent(a)},title:"Unlink from parent",icon:"link-off"},{type:"action",
label:"Archive",action:function(){q0c(b,a)},title:"Archive issue",icon:"archive_24px"}])}))};
PX.prototype.saveDraft=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return x(e,Ge(b.displayedRows.changes.pipe(y(function(f){return f.find(function(h){return h.row.type==="data"&&h.row.id===a.issueId})}),Ve(Boolean),We(6E4))),2)}c=e.yieldResult;phb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);ze(e)})};
var eib=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;phb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},qjb=function(a,b){Y_c(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},p0c=function(a,b){b.type==="data"?Y_c(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):Y_c(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};PX.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var r0c=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"editable-title":b==="menu"?"save":b==="ISSUE_ID"?"empty-id":b})};PX.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
PX.prototype.onRowKeydown=function(a,b){var c=this,d;return w(function(e){switch(e.nextAddress){case 1:switch(b.keyCode){case 39:case 37:if(b.ctrlKey)break;a.type==="data"&&(c.toggleExpansion(a),b.preventDefault());a.type==="load-more-children"&&(bib(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}e.jumpTo(3);break;case 2:return b.target.tagName!=="BUTTON"||b.shiftKey||b.metaKey?x(e,c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();a.type===
"data"&&(b.shiftKey?qjb(c,a):p0c(c,a));a.type==="draft-issue"&&a.saving&&p0c(c,a);b.preventDefault();e.jumpTo(3);break;case 3:if(b.target.tagName==="INPUT")return e.return();c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);ze(e)}})};
var o0c=function(a,b,c){var d,e,f,h,k,q,u,A;return w(function(G){if(G.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?G.return():x(G,Ge(c.issue$),2);d=G.yieldResult;u={};A=a.paths.createIssue((u.component=String((e=d)==null?void 0:e.snapshot[0].componentId),u.parentIssueId=c.ancestorChain.parentChain.nodeId,u.redirectUrl=Fq.issueDependencies.makeHref(a.rootIssueId),u.afterIssueId=c.afterIssueId,u.title=c.title,u.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,u.type=(q=(h=d)==null?void 0:h.snapshot[0].type)!=null?q:void 0,u));if(Pn(b))return eib(a,c),a.domSafe.openInNewTab(A),G.return();if(b&&b.shiftKey)return eib(a,c),Lq(a.domSafe,A),G.return();Nr(a.router,A);ze(G)})},q0c=function(a,b){var c,d;w(function(e){if(e.nextAddress==1)return a.analytics.trackEvent("editIssue","update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),x(e,Ge(a.rows$.pipe(y(function(f){return!f.find(function(h){return h.type==="data"&&
h.id===b.id})}),Ve(Boolean),We(6E4))),2);phb((d=a.focusManager.activeItem)==null?void 0:d.row,b)&&a.focusManager.setActiveItem(c);ze(e)})};
PX.prototype.unlinkFromParent=function(a){var b=this,c,d;return w(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent("editIssue","update","unlink-child-issue");return x(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){Mq(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};PX.prototype.isOpen=function(a){return pm(a)};
PX.prototype.getAssigneeString=function(a){var b,c;return Bua(Dk(a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.assigneeUser)||void 0)};
ea.Object.defineProperties(PX.prototype,{filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(a!=null?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.tableModel.hiddenRowCount$}},tableColumnsInput:{configurable:!0,enumerable:!0,set:function(a){this.dataColumns=[].concat(p(a));this.tableColumns=this.getRenderableColumns(this.dataColumns)}}});PX.\u0275fac=function(a){return new (a||PX)};
PX.\u0275cmp=B({type:PX,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&Wg(oP,5);if(a&2){var c;$g(c=ah())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},standalone:!1,features:[hh([NA]),kg],decls:46,vars:16,consts:[["focusIndicator",""],["dragHandle",""],["saving",""],["mat-table","","multiTemplateDataRows",
"",1,"full-width",3,"dataSource","trackBy"],["matColumnDef","active-indicator"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","drag-handle"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart",4,"matCellDef"],[3,"matColumnDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","empty-id"],["matColumnDef","menu"],["matColumnDef","save"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","load-more-children"],
["mat-cell","",3,"padding-left",4,"matCellDef"],["matColumnDef","editable-title"],["mat-header-row",""],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","selected","closed","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",3,"row","focusin","keydown",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","","class","draft","cdkTrapFocus","",3,"row","keydown","keydown.escape","keydown.backspace","focusin",4,"matRowDef",
"matRowDefColumns","matRowDefWhen"],[1,"drag-preview"],[1,"placeholder"],[1,"insertion-bar"],["mat-header-cell",""],["tabindex","-1","mat-cell","",3,"click"],["mat-cell","","draggable","true","tabindex","-1",3,"click","dragstart"],["svgIcon","drag-indicator",1,"icon-s"],["mat-cell",""],[3,"id"],[3,"expansionChange","onSaveOutput","onCancelOutput","isEditMode","issue","expandable","expanded","level"],[3,"issue"],["size","medium",3,"email"],[3,"issue","showPendingFix"],["buttonLabel","More options",
3,"click","menuItems"],["mat-cell","",1,"text-center"],["buttonLabel","More options",3,"menuItems"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],[1,"flex-kids-x","align-items-center","gap-s"],["placeholder","Start typing the title...",1,"grow-1",3,"valueChange","commit","value","readonly"],["color","primary","format","fill","size","small","title","Create issue","matTooltip","(Shortcut: Enter)",3,"onAction","disabled"],["format","flat","size","small","title","Cancel","matTooltip",
"(Shortcut: Esc)",3,"onAction","disabled"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","",1,"clickable",3,"click","mouseup","focusin","keydown","row"],["mat-row","",3,"focusin","keydown","row"],["mat-row","","cdkTrapFocus","",1,"draft",3,"keydown","keydown.escape","keydown.backspace","focusin","row"]],template:function(a,b){a&1&&(I(0,"table",3),Fg(1,4),C(2,uhb,1,0,"th",5)(3,vhb,2,0,"td",6),Gg(),Fg(4,7),C(5,whb,1,0,"th",5)(6,xhb,3,0,"td",8),Gg(),Fg(7,9),C(8,yhb,
2,0,"th",5)(9,zhb,2,1,"td",10),Gg(),Fg(10,11),C(11,Ahb,2,0,"th",5)(12,Bhb,2,0,"td",10),Gg(),Fg(13,9),C(14,Chb,2,0,"th",5)(15,Dhb,4,9,"td",10),Gg(),Fg(16,9),C(17,Ehb,2,0,"th",5)(18,Fhb,3,3,"td",10),Gg(),Fg(19,9),C(20,Ihb,3,1,"th",5)(21,Ohb,3,1,"td",10),Gg(),Fg(22,9),C(23,Phb,2,0,"th",5)(24,Qhb,3,4,"td",10),Gg(),Fg(25,9),C(26,Rhb,2,0,"th",5)(27,Shb,3,3,"td",10),Gg(),Fg(28,12),C(29,Thb,1,0,"th",5)(30,Vhb,3,4,"td",10),Gg(),Fg(31,13),C(32,Whb,1,0,"th",5)(33,aib,5,1,"td",14),Gg(),Fg(34,15),C(35,cib,6,7,
"td",16),Gg(),Fg(36,17),C(37,dib,2,0,"th",5)(38,fib,7,6,"td",16),Gg(),E(39,hib,1,1,"tr",18),C(40,jib,3,12,"tr",19)(41,kib,1,4,"tr",20)(42,lib,1,2,"tr",21),J(),K(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(D("dataSource",b.rows$)("trackBy",b.trackBy),z(7),D("matColumnDef",b.IssueFieldType.ISSUE_ID),z(6),D("matColumnDef",b.IssueFieldType.TITLE),z(3),D("matColumnDef",b.IssueFieldType.TYPE),z(3),D("matColumnDef",b.IssueFieldType.ASSIGNEE),z(3),D("matColumnDef",b.IssueFieldType.STATUS),z(3),D("matColumnDef",
b.IssueFieldType.TEAM),z(14),F(b.options.hideColumnHeaders?-1:39),z(),D("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),z(),D("matRowDefColumns",ih(15,k0c))("matRowDefWhen",b.isLoadMoreRow),z(),D("matRowDefColumns",r0c(b))("matRowDefWhen",b.isDraftRow))},dependencies:[qw,aB,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,YA,cB,KS,mO,aH,pQ,sQ,tO,wO,tQ,vQ,dR,VH,ON,oP,AL,Qv],styles:['.mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]{box-sizing:border-box;cursor:move;outline-width:0;padding:0px;width:18px}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-drag-handle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{line-height:32px;opacity:.2}.mat-mdc-header-cell.mat-column-title[_ngcontent-%COMP%]{padding-left:36px;min-width:250px}.insertion-bar[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);display:none;height:2px;pointer-events:none;position:absolute}.insertion-bar[_ngcontent-%COMP%]::before{content:"";border-bottom:5px solid rgba(0,0,0,0);border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid rgba(0,0,0,0);display:block;height:0;position:relative;top:-4px;width:0}.placeholder[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);border-radius:4px;box-sizing:border-box;display:none;opacity:.7;pointer-events:none;position:absolute;top:0;width:100%}.drag-preview[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--inverse-text);border-radius:4px;display:none;padding:7px 13px;position:absolute}tr.dragging[_ngcontent-%COMP%], tr.nodrop[_ngcontent-%COMP%]{opacity:.5}tr.closed[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--row-fixed-bg)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, tr.closed[_ngcontent-%COMP%]   td.mat-mdc-footer-cell[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{color:#1a73e8;color:var(--link)}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});var oib=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oib,V);g=oib.prototype;g.getFilename=function(){return Oh(this,1)};g.setFilename=function(a){Rl(this,1,a)};g.getLineNumber=function(a){return Ju(this,2,a)};g.getChangeNumber=function(){return Dl(this,3)};g.getChangeNumber_asLegacyNumberOrString=function(){return zl(this,3)};g.setChangeNumber=function(a){return Hl(this,3,a)};var qib=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qib,V);var s0c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,s0c.messageId)};Y(s0c,V);s0c.messageId="b.MentionSearchResult";var QX=function(){this.executor=n(zC)};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275prov=Sc({token:QX,factory:QX.\u0275fac,providedIn:"root"});var RX=function(){this.mentionsApi=n(QX);this.refreshMonitor=n(YE);this.analytics=n(CF)},t0c=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=Cpc(a.refreshMonitor,Oe(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:s0c}).then(rib).then(function(d){return{mentions:d,link:c}}).catch(function(){return{link:c}})}).pipe(eg({link:c}))).pipe(cg({refCount:!0,bufferSize:1})));return a.cachedEntry};
RX.prototype.displayPackageNames=function(a){var b;a=(b=a.mentions)==null?void 0:b.packageMentionSet;var c;return(a==null?void 0:a.length)>1||(a==null?void 0:(c=a[0])==null?void 0:c.packageName)!=="piper"};RX.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};RX.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};RX.\u0275fac=function(a){return new (a||RX)};RX.\u0275prov=Sc({token:RX,factory:RX.\u0275fac,providedIn:"root"});var TX=function(){var a=this;this.paramsService=n(aL);this.issueRelationshipsFridge=n(QF);this.issueFullFridge=n(EF);this.issueFridge=n($E);this.codeMentions=n(RX);this.eventsForIssue=n(CE);this.activeSession=n(Es);this.id$=this.paramsService.issueId$.pipe(Wf(1E3));this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.issueEvents$=this.id$.pipe(fg(function(b){return a.eventsForIssue.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.blockerIssueIds$=
this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}),Xf(Pj));this.blockedIssueIds$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),Xf(Pj));this.parentIds$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),Xf(Pj));this.childrenIds$=this.id$.pipe(fg(function(b){return a.issueRelationshipsFridge.watch(b)}),y(function(b){var c;return(c=b==null?void 0:
b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.duplicateIssueIds$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),Xf(Pj));this.blockersDualCount$=Je([this.id$,this.blockerIssueIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return SX(a,b,c,["BLOCKED_BY"])}),cg({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(y(tib),cg({bufferSize:1,refCount:!0}));this.blockedDualCount$=
Je([this.id$,this.blockedIssueIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return SX(a,b,c,["BLOCKING"])}),cg({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(y(tib),cg({bufferSize:1,refCount:!0}));this.childrenDualCount$=Je([this.id$,this.childrenIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return SX(a,b,c,["CHILDREN"])}),cg({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(y(tib),
cg({bufferSize:1,refCount:!0}));this.parentsDualCount$=Je([this.id$,this.parentIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return SX(a,b,c,["PARENT"])}),cg({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(y(tib),cg({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=Je([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return SX(a,b,[].concat(p(c),
p(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(y(tib),cg({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=Je([this.id$,this.duplicateIssueIds$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return SX(a,b,c,["DUPLICATE"])}),cg({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(y(function(b){return b.total}),y(uib),cg({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(y(function(b){var c;
return(c=b==null?void 0:b.relatedLinks)!=null?c:[]}),y(function(b){return a.activeSession.isInternalSession()?b:b.filter(function(c){return!qJa(c)})}),y(function(b){return Qr(b.length)}),y(uib),cg({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(Ve(Tk),fg(function(b){return t0c(a.codeMentions,b)}),y(function(b){var c,d;return Qr((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),y(uib),cg({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(y(function(b){return Qr(b.filter(mm).length)}),
y(uib),cg({bufferSize:1,refCount:!0}))},SX=function(a,b,c,d){d=d===void 0?[]:d;c=jk(c);if(!b||c.length===0)return Ce({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return vib(b,e)}).filter(Tk).map(function(e){return"("+e+")"}).join(" OR ");return c.length>99&&d?a.issueFridge.watchMany({filter:d,pageSize:100}).pipe(y(function(e){e=e.results.filter(pm).filter(iya).length;return{open:Qr(e),total:Qr(c.length)}})):Je(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(y(function(e){return{open:Qr(e.filter(Tk).filter(pm).filter(iya).length),
total:Qr(e.filter(function(f){return!f||iya(f)}).length)}}))};TX.\u0275fac=function(a){return new (a||TX)};TX.\u0275prov=Sc({token:TX,factory:TX.\u0275fac,providedIn:"root"});var UX=function(){Z.call(this);var a=this;this.issueFullFridge=n(EF);this.butterBar=n(iK);this.analytics=n(CF);this.refreshMonitor=n(YE);this.contextSensitiveRegistry=n(iL);this.issuePermissionService=n(lL);this.issuePicker=n(vR);this.errorHandler=n(DK);this.counts=n(TX);this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.filters=[];this.shouldResetFilters=new LA;this.tableColumns=[].concat(p(wVc));this.initialSort=
{column:"STATUS",direction:"ASCENDING"};this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0]}),y(function(b){var c,d;return(d=b==null?void 0:(c=b.blockedByIssueId)==null?void 0:c.map(String))!=null?d:[]}));this.blockersCount$=this.blockerIds$.pipe(fg(function(b){return b.length===0?Ce(0):a.counts.blockersDualCount$.pipe(y(function(c){return c.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(y(function(b){return b>
0}),eg(!0));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Remove blocker",action:function(){u0c(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(ig(this.blockerIds$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;if(b!=null){b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}}))};Y(UX,Z);UX.\u0275dir=Z.\u0275dir;
var Dib=function(a){var b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.issueId$),2);b=c.yieldResult;if(b==null)return c.return();a.analytics.trackEvent("editIssue","update","add-blocker");return x(c,a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){v0c(a,b,d)}),0)})},v0c=function(a,b,c){w(function(d){return c.length===0?d.return():x(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){FK(a.errorHandler,e)}),0)})},u0c=function(a,b){var c,
d;w(function(e){switch(e.nextAddress){case 1:return x(e,Ge(a.issueId$),2);case 2:c=e.yieldResult;if(c==null)return e.return();a.analytics.trackEvent("editIssue","update","remove-blocker");te(e,3);return x(e,a.issueFullFridge.removeBlockedBy(c,[b]),5);case 5:uu(e,0);break;case 3:d=xe(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(Wo(d)?Xo(d):d)),ze(e)}})};UX.\u0275fac=function(a){return new (a||UX)};
UX.\u0275cmp=B({type:UX,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&Wg(vU,5);if(a&2){var c;$g(c=ah())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},standalone:!1,features:[kg],decls:15,vars:12,consts:[["addBlocker",""],[1,"table-header","blockers-count","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use blockers for issues that are preventing this issue from being resolved.",
1,"b-chip","nowrap","bad","squared","xs","keep-focus-ring"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[1,"muted"],[4,"ngTemplateOutlet"],[3,"issueIds","tableColumns","menuItemFactory","filters","initialSort","options"],[1,"emoji"],["type","button",1,"subtle-link","unstyled",3,"click"],["size","small","title","Mark an existing issue as blocker",1,"add",3,"onAction","disabled"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"h4",2)(2,"div",3),K(3,"mat-icon",4),J(),Q(4),S(5,"async"),J(),E(6,xib,1,
1,"ng-container"),S(7,"async"),J(),E(8,zib,2,3),S(9,"async"),Ag(10,Bib,6,1,"div"),E(11,Cib,4,2,"p",5),S(12,"async"),C(13,Eib,3,3,"ng-template",null,0,nh));if(a&2){var c;z(4);R(" Blockers ",T(5,4,b.counts.countBlockersDisplay$)," ");z(2);F(T(7,6,b.showBlockersTable$)?6:-1);z(2);F(T(9,8,b.showBlockersTable$)?8:10);z(3);F((c=T(12,10,b.issuesTable==null?null:b.issuesTable.hiddenRowCount$))?11:-1,c)}},dependencies:[Pv,aB,YA,cB,aH,vU,Qv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],
changeDetection:0});var WX=function(){Z.apply(this,arguments);this.routerEvents=n(BF);this.documentVisibility=n(VX);this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1};Y(WX,Z);WX.\u0275dir=Z.\u0275dir;
WX.prototype.install=function(){var a=this;KFa()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){w0c(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){w0c(a);a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(Ve(function(b){return b!==
"visible"}),Uf()).subscribe(function(){a.tabWasHidden=!0})))};
var w0c=function(a){a.ignoringNextNav||(Dpc("appNavStart"),a.mostRecentlyMeasured="")},x0c=function(a,b){Dpc(b);if(b!==a.mostRecentlyMeasured){var c=a.validNavigations<=1?void 0:"appNavStart",d=c?"appNavStart-to-CF":"browserStart-to-CF",e=d+" -> "+b;a.mostRecentlyMeasured=b;if((d!=="browserStart-to-CF"||!a.tabWasHidden)&&KFa())if(b===null)console.warn("window.performance does not support endMark `null`");else try{window.performance.measure(e,c,b)}catch(f){console.warn("route_performance",f)}}};
WX.\u0275fac=function(){var a;return function(b){return(a||(a=fe(WX)))(b||WX)}}();WX.\u0275prov=Sc({token:WX,factory:WX.\u0275fac,providedIn:"root"});var VX=function(){var a=this;this.window=n(jK);this.visibilityState$=Qe(this.window.document,"visibilityChange").pipe(eg(void 0),y(function(){return a.currentVisibility}))};ea.Object.defineProperties(VX.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
VX.\u0275fac=function(a){return new (a||VX)};VX.\u0275prov=Sc({token:VX,factory:VX.\u0275fac,providedIn:"root"});var y0c=function(){this.imageUrls=n(qN);this.EMPTY_BLOCKER_LIGHT=this.imageUrls.EMPTY_BLOCKER_LIGHT;this.EMPTY_BLOCKER_DARK=this.imageUrls.EMPTY_BLOCKER_DARK;this.EMPTY_CHILD_LIGHT=this.imageUrls.EMPTY_CHILD_LIGHT;this.EMPTY_CHILD_DARK=this.imageUrls.EMPTY_CHILD_DARK};y0c.\u0275fac=function(a){return new (a||y0c)};
y0c.\u0275cmp=B({type:y0c,selectors:[["b-issue-dependencies-onboarding-dialog"]],standalone:!1,decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","https://developers.google.com/issue-tracker/concepts/parent-child-relationships","target","_blank",1,"nowrap"],
["mat-dialog-actions",""],"type button mat-flat-button  color primary matDialogClose  cdkFocusInitial ".split(" ")],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"About Dependencies"),J(),I(2,"div",1)(3,"div",2),K(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),J(),I(8,"article")(9,"p",5),Q(10," Children are used to separate a large work item (like a project) into smaller pieces. Blockers indicate that something prevents work from starting on this issue. "),I(11,"a",6),Q(12,"Learn more"),J()()()(),I(13,
"div",7)(14,"button",8),Q(15,"Ok"),J()());a&2&&(z(4),D("src",b.EMPTY_CHILD_LIGHT,uf),z(),D("src",b.EMPTY_BLOCKER_LIGHT,uf),z(),D("src",b.EMPTY_CHILD_DARK,uf),z(),D("src",b.EMPTY_BLOCKER_DARK,uf))},dependencies:[PA,Tx,uK,wK,yK,xK],styles:["[_nghost-%COMP%]{padding:24px;display:block}article[_ngcontent-%COMP%]{text-align:center;max-width:30rem}img[_ngcontent-%COMP%]{flex-grow:1;max-width:45%;height:35.9400998336%}a[_ngcontent-%COMP%]:visited{color:#1a73e8;color:var(--link)}.mat-mdc-dialog-content[_ngcontent-%COMP%], .mat-mdc-dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mat-dialog-actions[_ngcontent-%COMP%]{padding-top:8px;margin-bottom:8px}"],
changeDetection:0});var XX=function(){Z.call(this);var a=this;this.issueFullFridge=n(EF);this.butterBar=n(iK);this.analytics=n(CF);this.refreshMonitor=n(YE);this.issueRelationshipsFridge=n(QF);this.ROUTES=Fq;this.parentIssueIds$=new tj([]);this.filters=[];this.tableColumns=[].concat(p(wVc));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return z0c(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(Wo(c)?Xo(c):c))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var b=l(a.parentIssueIds$.value),c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}))};Y(XX,Z);XX.\u0275dir=Z.\u0275dir;XX.prototype.ngOnInit=function(){};
var z0c=function(a,b){var c;return w(function(d){a.analytics.trackEvent("editIssue","update","remove-parent");c=a.issueId;return x(d,a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};ea.Object.defineProperties(XX.prototype,{parentIds:{configurable:!0,enumerable:!0,set:function(a){this.parentIssueIds$.next(a!=null?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.issuesTable.hiddenRowCount$}}});
XX.\u0275fac=function(a){return new (a||XX)};
XX.\u0275cmp=B({type:XX,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&Wg(vU,5);if(a&2){var c;$g(c=ah())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},standalone:!1,features:[kg],decls:2,vars:3,consts:[[3,"issueIds","tableColumns","options","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(E(0,Fib,1,6,"b-issues-table",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.parentIssueIds$))?0:-1,c)}},dependencies:[vU,Qv],
encapsulation:2,changeDetection:0});var YX=function(){this.buttonSize="large";this.buttonTooltip=this.buttonSvgIcon="";this.showActiveState=!1;this.options=[];this.confirmButtonLabel="Apply";this.cancelButtonLabel="Cancel";this.showActionButtons=!0;this.onChange=new LA;this.onConfirm=new LA;this.onCancel=new LA;this.internalSelectedOptions=new uC};YX.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};YX.prototype.cancel=function(a){this.onCancel.emit();a.close()};
ea.Object.defineProperties(YX.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});YX.\u0275fac=function(a){return new (a||YX)};
YX.\u0275cmp=B({type:YX,selectors:[["select-menu"]],inputs:{buttonSize:"buttonSize",buttonAriaLabel:"buttonAriaLabel",buttonSvgIcon:"buttonSvgIcon",buttonTooltip:"buttonTooltip",showActiveState:"showActiveState",overlayTitle:"overlayTitle",options:"options",selectedOptions:"selectedOptions",confirmButtonLabel:"confirmButtonLabel",cancelButtonLabel:"cancelButtonLabel",showActionButtons:"showActionButtons"},outputs:{onChange:"onChange",onConfirm:"onConfirm",onCancel:"onCancel"},standalone:!1,decls:12,
vars:14,consts:[["trigger","onedevPopupPanelTrigger"],["optionsPanel","onedevPopupPanel"],["type","button","mat-icon-button","","onedevPopupPanelTrigger","","aria-haspopup","true",3,"click","onedevPopupPanelTriggerFor","color","matTooltip"],[3,"svgIcon"],["role","region","className","select-menu-popup"],[1,"padded-s","flex-kids-y"],[1,"title","margin-s-x","padded-s"],[1,"flex-kids-x"],[1,"badge",3,"title"],[1,"option","grow-1","flex-kids-x","align-items-center","padded-x","padded-s-y","gap"],[3,"change",
"checked"],[1,"flex-kids-x","justify-flex-end","padded-s","gap-s"],["type","button","mat-stroked-button","",1,"cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"confirm",3,"click"]],template:function(a,b){if(a&1){var c=r();I(0,"button",2,0);S(2,"async");M("click",function(){t(c);var d=L(1),e;(e=d.isOpen)!=null&&e?d.close():d.open();return v()});K(3,"mat-icon",3);E(4,Hib,2,3);J();I(5,"onedev-popup-panel",4,1)(7,"div",5);E(8,Iib,2,1,"h1",6);Dg(9,Lib,7,5,"div",7,Cg);E(11,
Mib,6,2);J()()}a&2&&(a=L(6),wg("large",b.buttonSize==="large")("small",b.buttonSize==="small"),D("onedevPopupPanelTriggerFor",a)("color",b.showActiveState&&T(2,12,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip),ng("aria-label",b.buttonAriaLabel),z(3),D("svgIcon",b.buttonSvgIcon),z(),F(b.showActiveState?4:-1),z(4),F(b.overlayTitle?8:-1),z(),Eg(b.options),z(2),F(b.showActionButtons?11:-1))},dependencies:[aB,PA,Tx,Ux,yM,CM,HL,YA,cB,pO,qO,Qv],styles:[".select-menu-popup{flex-direction:column;max-width:18rem;max-height:calc(100vh - 100px);overflow-y:auto;margin-top:10px}.select-menu-popup .title{font-weight:500}.select-menu-popup .option:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}select-menu button:not(.mat-primary) mat-icon{color:#5f6368;color:var(--icon)}select-menu button[aria-expanded=true]{background-color:#d2e3fc;background-color:var(--selected-bg)}select-menu button span.badge{font-size:.6875rem;display:inline-block;bottom:-4px;right:-9px;position:absolute;padding:0px 6px;border-radius:30px;margin-top:0px;box-sizing:border-box;height:16px;line-height:16px;color:#fff;color:var(--text-inverse);background-color:#1a73e8;background-color:var(--primary-btn-bg)}/*# sourceMappingURL=select_menu.css.map */\n"],
encapsulation:2,changeDetection:0});var A0c=function(){return[]},Uib=function(a){return{filteredCount:a}},ZX=function(){Z.call(this);var a=this;this.brain=n(jL);this.issuePicker=n(vR);this.issueRelationshipsFridge=n(QF);this.issueFullFridge=n(EF);this.router=n(DA);this.routePerformance=n(WX);this.element=n(ff);this.analytics=n(CF);this.issuePermissionService=n(lL);this.activeSession=n(Es);this.counts=n(TX);this.matDialog=n(tK);this.butterBar=n(iK);this.makeIlpUrlForParentIssue=H9a;this.recallFilters=eva("deps-filters");this.saveFilters=
vk("deps-filters");this.isThinking$=Je([this.issueFullFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(y(function(b){return b.some(Boolean)}));this.issueId$=this.brain.id$.pipe(Ve(Tk),y(ck));this.issue$=this.brain.issueJs$.pipe(Ve(Tk));this.parentIds$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}));this.parentIssues$=this.parentIds$.pipe(fg(function(b){return a.issueFullFridge.watchSet(b)}));this.parentsCount$=this.parentIssues$.pipe(y(function(b){return b.filter(iya).length}));
this.childrenIds$=this.issueId$.pipe(fg(function(b){return a.issueRelationshipsFridge.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.relatedChildren.map(function(d){return d.targetIssueId}))!=null?c:[]}));this.totalDaysOpen$=this.issue$.pipe(y(function(b){var c,d;return((c=nm(b))==null?void 0:(d=c.effort)==null?void 0:d.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(y(function(b){var c,d;return((c=nm(b))==null?void 0:(d=c.effort)==null?void 0:d.totalComplete)||0}));this.unarchivedChildIssueCount$=
this.childrenIds$.pipe(y(function(b){return b.length}));this.isTotalEstimatesEnabled=Yr(this.activeSession,"enableAggregationRules");this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.enableRollupStatsUi=Yr(this.activeSession,"enableRollupStatsUi");this.totalDaysCount$=Je([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=
mjb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=Je([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return njb(Math.round(b*100)/100)+" completed | "+njb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new bg;this.issueFilters=new uC;this.ISSUE_FILTER_OPTIONS=[{key:zr.OPEN.key,
title:zr.OPEN.displayAs,description:"Hides closed issues"},{key:zr.ASSIGNED_TO_ME.key,title:zr.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];Ge($Ba("b-issue-relations-table tr .mat-column-title a",this.element.nativeElement).pipe(gg(Ue(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){x0c(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(M9a))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(p(b)))}))};
Y(ZX,Z);ZX.\u0275dir=Z.\u0275dir;
var ijb=function(a){var b,c;return w(function(d){if(d.nextAddress==1)return a.analytics.trackEvent("editIssue","update","add-parent"),x(d,Ge(a.issue$),2);b=d.yieldResult;c=b.issueId;return x(d,a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){B0c(a,c,e)}),0)})},B0c=function(a,b,c){var d=l(c).next().value;var e,f,h,k;w(function(q){if(q.nextAddress==1)return(e=d)?x(q,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):q.return();f=q.yieldResult;
h=f.errors;return((k=h)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),q.return()):x(q,a.issueFullFridge.poke(b),0)})};ZX.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};ZX.prototype.addChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||a.addExistingChild()};ZX.prototype.createChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||qjb(a)};
ZX.prototype.openLearnMore=function(){this.matDialog.open(y0c,{maxWidth:"1300px",width:"90%"})};ZX.\u0275fac=function(a){return new (a||ZX)};
ZX.\u0275cmp=B({type:ZX,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(Wg(PX,5),Wg(UX,5),Wg(XX,5));if(a&2){var c;$g(c=ah())&&(b.relationsTable=c.first);$g(c=ah())&&(b.blockersTable=c.first);$g(c=ah())&&(b.parentsTable=c.first)}},standalone:!1,features:[kg],decls:15,vars:13,consts:[["filterInfo",""],["addParent",""],["addChildren",""],["progressHovercard","onedevHovercard"],["effortHovercard","onedevHovercard"],[1,"status","flex-kids-x","gap-s","align-items-center","justify-flex-end"],
["buttonSize","small","buttonSvgIcon","filter-alt","buttonTooltip","Filter issues","buttonAriaLabel","Filter issues","overlayTitle","Only show issues that are",3,"onChange","options","selectedOptions","showActionButtons","showActiveState"],["type","button","mat-icon-button","","matTooltip","Learn more","aria-label","Open dialog to learn more about the Dependencies tab",1,"small",3,"click"],["svgIcon","info",1,"icon-s"],[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],
[1,"table-header","flex-kids-x","align-items-center"],[1,"muted","margin-s-y","flex-kids-x","align-items-center"],["role","status",1,"b-chip","nowrap","squared","xs","keep-focus-ring"],["svgIcon","arrow_upward_24px",1,"icon-xxs"],[3,"issueId","parentIds","filters"],[3,"shouldResetFilters","filters"],[1,"table-header","child-issue-header","flex-kids-x","align-items-center"],["role","status","tabindex","0","matTooltip","Use child issues to break down this issue into smaller units of work.",1,"b-chip",
"nowrap","squared","xs","keep-focus-ring"],["svgIcon","account_tree_24px",1,"icon-xxs"],[1,"progress-header"],[1,"margin-s-bottom",3,"id"],[3,"rootIssueId","filters","saveExpansionAtKey"],[4,"ngTemplateOutlet"],[1,"muted"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-x","align-items-center"],[1,"margin-s-right"],[1,"label"],[1,"progress","margin-s-right",3,"onedevHovercardTrigger"],[1,"completion"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","progress-hover-card"],
["svgIcon","info","aria-hidden","false","aria-label","The progress of child issues takes into consideration all child issues and descendant issues\n                  which have estimation data. If a child issue doesn\u2019t have an estimate, their progress is\n                  not reflected in the progress bar.",1,"icon-s",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-body"],[1,"margin-s-top"],["title","View the search results page for this issue and all descendants",3,"href"],["type","button",
1,"subtle-link","unstyled",3,"click"],["size","small","title","Add a parent of the current issue",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"disabled"],["size","small","title","Add an existing issue as a child",1,"add",3,"onAction","disabled"],["size","small","title","Create an issue as a child",1,"add",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"div",5);E(1,Nib,1,0,"b-spinner");S(2,"async");I(3,"select-menu",6);S(4,
"async");M("onChange",function(f){t(c);return v(b.issueFilters.reset(f))});J();I(5,"button",7);M("click",function(){t(c);return v(b.openLearnMore())});K(6,"mat-icon",8);J()();E(7,fjb,40,47,"div",9);S(8,"async");C(9,hjb,1,1,"ng-template",null,0,nh)(11,jjb,3,3,"ng-template",null,1,nh)(13,ljb,4,4,"ng-template",null,2,nh)}if(a&2){var d;z();F(T(2,6,b.isThinking$)?1:-1);z(2);var e;D("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",(e=T(4,8,b.issueFilters.value$))!=null?e:ih(12,A0c))("showActionButtons",
!1)("showActiveState",!0);z(4);F((d=T(8,10,b.issueId$))?7:-1,d)}},dependencies:[Pv,aB,fJ,lJ,PA,Ux,YA,cB,aH,YX,ON,wX,UX,PX,XX,Qv,Wv],styles:["b-issue-dependencies h4 button{margin:-8px 0}b-issue-dependencies h4 button.gmat-mdc-button.mat-mdc-outlined-button.small{line-height:21px}b-issue-dependencies .carded{padding-top:0;margin-top:0}b-issue-dependencies .table-header{margin-top:0;margin-bottom:4px}b-issue-dependencies .status{padding:4px 16px}b-issue-dependencies .status b-spinner{margin-top:4px}b-issue-dependencies .status mat-icon{margin-top:-1px}b-issue-dependencies b-issue-relations-table{display:block;overflow-x:auto}b-issue-dependencies b-button.add{margin-left:16px}b-issue-dependencies .emoji{font-size:1rem;padding:0 4px}b-issue-dependencies .progress-header{padding-top:12px;font-size:.75rem;padding-bottom:16px}b-issue-dependencies .progress{border-radius:6px;border:1px solid;border-color:#137333;border-color:var(--good-text);height:8px;width:132px;position:relative}b-issue-dependencies .progress>.completion{background-color:#137333;background-color:var(--good-text);height:100%;border-radius:9px}b-issue-dependencies .progress-hover-card{font-weight:bold}b-issue-dependencies button.subtle-link.unstyled{color:#1a73e8;color:var(--link)}\n"],
encapsulation:2,changeDetection:0});var $X=function(){};$X.\u0275fac=function(a){return new (a||$X)};$X.\u0275mod=Jf({type:$X});$X.\u0275inj=Tc({imports:[ZB,$B,GM,RL,cC,$Q]});var aY=function(){};aY.\u0275fac=function(a){return new (a||aY)};aY.\u0275mod=Jf({type:aY});aY.\u0275inj=Tc({imports:[Aw,SJ,sA,ZB,Ly,WJ,$B,$K,PW,oR,fO,cC,My,QT,fR,bH,TQ,QW,gR,$X,XH,QN,FX,pP,FL]});var bY=function(){Z.apply(this,arguments);var a=this;this.prefsService=n(yX);this.issueFullFridge=n(EF);this.savedSearchFridge=n(ND);this.analytics=n(CF);this.activeSession=n(Es);this.TREE_COLUMNS=[].concat(p(AVc));this.TREE_OPTIONS=Object.assign({},CVc);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new bg;this.hideRecentActivity=!1;this.typeAndId$=new tj([void 0,void 0]);this.typeAndId$.pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b===
"savedsearch"?a.savedSearchFridge.watch(c):Ce(void 0)}));this.issue$=this.typeAndId$.pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="issue"?a.issueFullFridge.watch(c):Ce(void 0)}));this.issueFilter$=this.typeAndId$.pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b==="issue")return"parentid:"+c+"+ | id:"+c;if(b==="savedsearch")return"savedsearchid:"+c;if(b==="hotlist")return"hotlistid:"+c}),y(function(b){if(b!==void 0){var c;if((c=a.activeSession.getTracker())==
null?0:c.trackerId){var d;b+=" trackerid:"+((d=a.activeSession.getTracker())==null?void 0:d.trackerId)}return b}}))};Y(bY,Z);bY.\u0275dir=Z.\u0275dir;bY.prototype.ngOnInit=function(){var a=this;this.refreshWorkArea.pipe(gg(this.destroyed$)).subscribe(function(){a.typeAndId$.next([a.entityType,a.referencedId])})};bY.prototype.getFilters=function(){return q_c(this.prefsService,this.entityReference)};bY.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
ea.Object.defineProperties(bY.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=xr(a);this.entityType=yr(a);this.analytics.trackEvent("missionControl","view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});bY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(bY)))(b||bY)}}();
bY.\u0275cmp=B({type:bY,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&Wg(PX,5);if(a&2){var c;$g(c=ah())&&(b.relationsTable=c.first)}},inputs:{reference:"reference",refreshWorkArea:"refreshWorkArea",hideRecentActivity:"hideRecentActivity",numRecentActivityEvents:"numRecentActivityEvents",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,features:[kg],decls:1,vars:1,consts:[[3,"searchString","prefKey","reference","onlyShowTableWhenFiltered","entityType"],[1,"margin-top",
3,"query","numEvents"],[1,"margin-bottom",3,"id"],[3,"saveExpansionAtKey","rootIssueId","filters","tableColumns","options","defaultExpansionLevel"],[1,"bg-off-main","margin-bottom","rounded","padded"],[1,"muted","margin-s-bottom"],["type","button","mat-flat-button","","color","primary","title","Create an issue as a child in this work area",1,"small","gmat-button",3,"click"],["type","button","mat-button","","title","Add an existing issue as a child in this work area",1,"small","gmat-button",3,"click"]],
template:function(a,b){a&1&&E(0,xjb,4,2);if(a&2){var c;F((c=b.referencedId)?0:-1,c)}},styles:["[_nghost-%COMP%] { display: block; }"]});var C0c=Object.assign({},BVc,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),D0c={column:"MODIFIED_TIME",direction:"DESCENDING"},cY=function(){var a=this;this.prefsService=n(yX);this.activeSession=n(Es);this.issueFridge=n($E);this.DEFAULT_COLUMNS=[].concat(p(yVc));this.PROGRESS_COLUMNS=[].concat(p(zVc));this.TABLE_OPTIONS=Object.assign({},C0c);this.INITIAL_SORT=D0c;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new tj(void 0);this.issueQuery$=this.searchString$.pipe(y(yjb));
this.issueIds$=this.issueQuery$.pipe(fg(function(b){return a.issueFridge.watchMany(b)}),y(function(b){if(a.entityType==="issue")return b.results;var c;return JEc(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}),y(function(b){return b.map(function(c){return c.issueId})}))};cY.prototype.getFilters=function(){return this.prefKey==null?[]:q_c(this.prefsService,this.prefKey)};cY.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
ea.Object.defineProperties(cY.prototype,{searchString:{configurable:!0,enumerable:!0,set:function(a){this.searchString$.next(a!=null?a:void 0)}}});cY.\u0275fac=function(a){return new (a||cY)};
cY.\u0275cmp=B({type:cY,selectors:[["one-work-area-list"]],inputs:{searchString:"searchString",prefKey:"prefKey",entityType:"entityType",reference:"reference",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,decls:2,vars:2,consts:[[1,"margin-bottom",3,"ref","query"],[1,"margin-bottom",3,"prefKey","query","entityType"],[3,"issueIds","options","filters","tableColumns","initialSort"]],template:function(a,b){a&1&&(E(0,zjb,4,9),E(1,Bjb,2,3));a&2&&(F(b.isInternalSession?0:-1),z(),F(b.showTable()?
1:-1))},dependencies:[vX,DX,vU,Qv],styles:["[_nghost-%COMP%] { display: block; }"]});var Mjb=function(a,b){return b.workAreaUrl},dY=function(){Z.call(this);var a=this;this.prefsService=n(yX);this.issueFullFridge=n(EF);this.hotlistFridge=n(JD);this.savedSearchFridge=n(ND);this.hotlistPicker=n(AS);this.issuePicker=n(vR);this.savedSearchPicker=n(uX);this.analytics=n(CF);this.clipboard=n(rO);this.butterBar=n(iK);this.parentIssueSuggestions=n(AX);this.imageUrls=n(qN);this.activeSession=n(Es);this.refreshData=new bg;this.SECTION_SLUG="work-areas-wrapper-card";this.EMPTY_STATE_IMG=this.imageUrls.WORK_AREA_EXAMPLE_ILLUSTRATION;
this.inferEntityType=yr;this.makeBuganizerUrl=G9a;this.makeIlpUrlForParentIssue=H9a;this.getEntityTypeName=F9a;this.extractLastDigits=xr;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=p_c(this.prefsService,"work-areas-wrapper-card");this.workAreaReferences$=this.prefsService.prefs$.pipe(y(function(d){var e;return(e=d==null?void 0:d.workAreaUrls)!=null?e:[]}));this.issues$=this.workAreaReferences$.pipe(y(function(d){return d.filter(function(e){return yr(e)===
"issue"})}),y(function(d){return d.map(xr)}),Xf(Pj),y(function(d){return d.filter(Tk)}),fg(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(y(function(d){return d.filter(function(e){return yr(e)==="hotlist"})}),y(function(d){return d.map(xr)}),Xf(Pj),y(function(d){return d.filter(Tk)}),fg(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(y(function(d){return d.filter(function(e){return yr(e)==="savedsearch"})}),
y(function(d){return d.map(xr)}),Xf(Pj),y(function(d){return d.filter(Tk)}),fg(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(Qf(this.issues$),gg(this.destroyed$),y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;return d.map(function(h){var k=f.find(function(q){return q.issueId===h});return{workAreaUrl:h,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(gg(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));
this.hotlists$.pipe(gg(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(gg(this.destroyed$)).subscribe(this.updateTitlesForSavedSearches.bind(this));b=this.workAreaReferences.length;this.analytics.trackEvent("missionControl","display","num-work-areas-"+b,b);var c;b=Object.values((c=this.prefsService.prefs.workAreaQuickFilters)!=null?c:{}).flat();b.length>0&&this.analytics.trackEvent("missionControl","view","workAreas-filters-"+b.join(","));Se(2E3).pipe(fg(function(){return a.parentIssueSuggestions.suggestions$}),
gg(this.destroyed$),Uf()).subscribe(function(d){var e=3;e=e===void 0?3:e;if(d.length!==0){var f=d.slice(0,e*2),h=[].concat(p(f));if(!(f.length<=1))for(f=h.length-1;f>0;--f){var k=Math.floor(Math.random()*(f+1)),q=h[f];h[f]=h[k];h[k]=q}e=h.slice(0,e);d=d[0];e.includes(d)||(e.pop(),e.unshift(d));d=e}a.suggestions=d;a.workAreaReferences.length===0&&(d=d.length,a.analytics.trackEvent("missionControl","suggestions-shown",String(d),d))})};Y(dY,Z);dY.\u0275dir=Z.\u0275dir;dY.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};
dY.prototype.updateTitlesForIssues=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.titles[b.issueId]=(c=b.snapshot[0])==null?void 0:c.title}};dY.prototype.updateTitlesForHotlists=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[C9a(b.hotlistId)]=b.name};dY.prototype.updateTitlesForSavedSearches=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[D9a(b.searchId)]=b.name};
var E0c=function(a){var b,c,d,e,f,h,k,q,u;return w(function(A){if(A.nextAddress==1)return b=a.workAreaReferences.filter(function(G){return yr(G)==="hotlist"}).map(xr).map(Number),x(A,tRc(a.hotlistPicker,b,Ce([])),2);c=A.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(C9a);q=((k=(h=c)==null?void 0:h.hotlistDiff.removed)!=null?k:[]).map(C9a);u=a.workAreaReferences.slice();u=Oua(q,u);u=Qua(f,u);Rr(a.prefsService,{workAreaUrls:u});ze(A)})},F0c=function(a){var b;return w(function(c){if(c.nextAddress==
1)return x(c,a.issuePicker.open({title:"Choose a parent issue",allowMultipleIds:!0}),2);b=c.yieldResult;b!=null&&zX(a.prefsService,b);ze(c)})},Pjb=function(a,b){var c=a.suggestions.map(function(d){return d.ref}).indexOf(b);a.analytics.trackEvent("missionControl","suggestion-chosen",String(c));b!=null&&zX(a.prefsService,b)},G0c=function(a){var b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,a.savedSearchPicker.open(),2);b=f.yieldResult;d=(c=b)!=null?c:[];if(d.length===0)return f.return();
e=d.map(D9a);zX(a.prefsService,e);ze(f)})};ea.Object.defineProperties(dY.prototype,{workAreaReferences:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.prefsService.prefs.workAreaUrls)!=null?a:[]}},isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.workAreaReferences.length===0}},isCollapsed:{configurable:!0,enumerable:!0,get:function(){return this.prefsService.isCollapsed("work-areas-wrapper-card")}}});dY.\u0275fac=function(a){return new (a||dY)};
dY.\u0275cmp=B({type:dY,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},inputs:{refreshData:"refreshData"},standalone:!1,features:[kg],decls:18,vars:2,consts:[["addMenu","matMenu"],["editMenu","matMenu"],["issueHovercard","onedevHovercard"],[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",
"matTooltip","Keeping a close eye on the projects, hotlists, or saved searches that you are focusing on",1,"info","margin-s-left"],["type","button","mat-icon-button","","aria-label","Toggle expansion state",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],["type","button","mat-stroked-button","","title","Add a work area",1,"small","add-work-area","margin-s-left",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["gmat-tabs","",1,"main-content",
"margin-s-top",3,"selectedIndex"],[1,"flex-kids-y","align-items-center","text-align-center","empty-state","main-content"],["svgIcon","add",1,"icon-s"],["gmat-tabs","",1,"main-content","margin-s-top",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["matTabContent",""],[3,"trackerId","compactMode"],["type","button","mat-icon-button","","aria-label","More options","aria-haspopup","true",1,"small","muted","menu-trigger",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical",
1,"icon-xs"],["data-test","edit-menu",1,"foo"],["mat-menu-item","","title","View the work area full screen",3,"routerLink"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click","disabled"],["svgIcon","arrow-backward",1,"icon-s"],["svgIcon","arrow-forward",1,"icon-s"],["type","button","mat-menu-item","",3,"click","title"],["svgIcon","close",1,"icon-s"],["mat-menu-item","","title","View the issue details page",3,"routerLink"],["svgIcon","link",1,"icon-s"],["mat-menu-item",
"","title","View the search results page for this issue and all descendants",3,"href"],["svgIcon","copy",1,"icon-s"],[1,"margin-top",3,"reference","refreshWorkArea"],[1,"inline-block","pos-rel"],["aria-hidden","true","alt","",3,"src"],[1,"pos-abs","work-area-suggestions"],[1,"type-l","muted","margin-y","match-image-width"],["type","button","mat-flat-button","","color","primary","title","Add a work area",3,"matMenuTriggerFor"],["svgIcon","add"],[1,"unstyled"],["tabindex","0",1,"elevated","rounded",
"padded-s","margined-s","slide-in",3,"title"],["tabindex","0",1,"elevated","rounded","padded-s","margined-s","slide-in",3,"click","title"],[1,"line-clamp-2"],[1,"muted","type-s",3,"onedevHovercardTrigger"],[3,"issueId"]],template:function(a,b){if(a&1){var c=r();I(0,"div",3)(1,"header",4)(2,"h3",5);Q(3," Work areas ");J();K(4,"mat-icon",6);I(5,"button",7);M("click",function(){t(c);return v(b.toggleCollapsed())});K(6,"mat-icon",8);J();E(7,Cjb,3,1,"button",9);I(8,"mat-menu",null,0)(10,"button",10);M("click",
function(){t(c);return v(F0c(b))});Q(11,"Issue (parent/child project)");J();I(12,"button",10);M("click",function(){t(c);return v(E0c(b))});Q(13,"Hotlist");J();I(14,"button",10);M("click",function(){t(c);return v(G0c(b))});Q(15,"Saved Search");J()()();E(16,Njb,4,3,"mat-tab-group",11)(17,Sjb,9,3,"section",12);J()}a&2&&(z(7),F(b.workAreaReferences.length>0?7:-1),z(9),F(b.workAreaReferences.length>0?16:17))},dependencies:[aB,FA,UG,XG,VG,YG,PA,Tx,Ux,HL,dO,SN,YN,ZN,$N,YA,cB,eP,fJ,lJ,sN,bY,Qv],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     issue-as-project-card>.carded{border:none;padding-left:0}.add-work-area[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--mat-outlined-button-icon-spacing:4px;--mat-outlined-button-icon-offset:0}.add-work-area.gmat-mdc-button[_ngcontent-%COMP%], .add-work-area.gmat-mdc-button.gmat-mdc-button.gmat-mdc-button[_ngcontent-%COMP%]{padding-left:4px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.empty-state[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:32px}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:320px;box-shadow:0 0 0 10px var(--background),0 0 0 20px var(--primary-c50);margin:20px 0;border-radius:8px}[_nghost-%COMP%]     .mat-mdc-tab-label .mat-mdc-tab-label-content{padding-left:4px;margin-right:-4px}[_nghost-%COMP%]     .mat-mdc-tab-label .menu-trigger{visibility:hidden}[_nghost-%COMP%]     .mat-mdc-tab-label.mat-mdc-tab-label-active .menu-trigger, [_nghost-%COMP%]     .mat-mdc-tab-label:hover .menu-trigger{visibility:visible}.collapsed[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   .stats[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   footer[_ngcontent-%COMP%], .collapsed[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .add-work-area[_ngcontent-%COMP%]{display:none}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_nghost-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}[_nghost-%COMP%] > .carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.collapsed[_nghost-%COMP%] > .carded[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}[_nghost-%COMP%]{min-height:800px}.collapsed[_nghost-%COMP%], .is-empty[_nghost-%COMP%]{min-height:0}.match-image-width[_ngcontent-%COMP%]{max-width:360px}.work-area-suggestions[_ngcontent-%COMP%]{position:absolute;top:0;left:100%;width:200px;margin-left:48px;overflow-x:hidden;overflow-y:visible}.work-area-suggestions[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:0}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;text-align:center;cursor:pointer}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:focus-visible{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{-webkit-transform:translateX(120%);transform:translateX(120%)}.work-area-suggestions[_ngcontent-%COMP%]   li.slide-in[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_slide-in .5s forwards;animation:_ngcontent-%COMP%_slide-in .5s forwards}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0ms;animation-delay:0ms}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:.3s;animation-delay:.3s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.4s;animation-delay:.4s}.work-area-suggestions[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes _ngcontent-%COMP%_slide-in{to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes _ngcontent-%COMP%_slide-in{to{-webkit-transform:translateX(0);transform:translateX(0)}}"]});var eY=function(){};eY.\u0275fac=function(a){return new (a||eY)};eY.\u0275mod=Jf({type:eY});eY.\u0275inj=Tc({imports:[ZB,LH,YB,$B,RL,fO,cC,FX,QW,tX,aY,rX,TQ,WJ,eR]});Qla(bY,[PA,Tx,wX,EX,PX,qX,cY],[Qv]);var H0c=["*"],I0c=["content"],J0c=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],K0c=new yd("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Vjb}),L0c=new yd("MAT_DRAWER_CONTAINER"),gY=function(){var a=n(ff),b=n(Xw),c=n(ph);Yw.call(this,a,b,c);this._platform=n(ew);this._changeDetectorRef=n(qv);this._container=n(fY)};Y(gY,Yw);gY.\u0275dir=Yw.\u0275dir;gY.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
gY.prototype._shouldBeHidden=function(){if(this._platform.isBrowser)return!1;var a=this._container,b=a.start;a=a.end;return b!=null&&b.mode!=="over"&&b.opened||a!=null&&a.mode!=="over"&&a.opened};gY.\u0275fac=function(a){return new (a||gY)};
gY.\u0275cmp=B({type:gY,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(vg("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),wg("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[hh([{provide:Yw,useExisting:gY}]),kg],ngContentSelectors:H0c,decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},encapsulation:2,changeDetection:0});
var hY=function(){var a=this;this._elementRef=n(ff);this._focusTrapFactory=n(pw);this._focusMonitor=n(gw);this._platform=n(ew);this._ngZone=n(ph);this._renderer=n(jv);this._interactivityChecker=n(jw);this._doc=n(Ei,{optional:!0});this._container=n(L0c,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._opened=this._disableClose=!1;this._animationStarted=new bg;this._animationEnd=new bg;this.openedChange=new hv(!0);this._openedStream=
this.openedChange.pipe(Ve(function(b){return b}),y(function(){}));this.openedStart=this._animationStarted.pipe(Ve(function(){return a.opened}),Tf());this._closedStream=this.openedChange.pipe(Ve(function(b){return!b}),y(function(){}));this.closedStart=this._animationStarted.pipe(Ve(function(){return!a.opened}),Tf());this._destroyed=new bg;this.onPositionChanged=new hv;this._modeChanged=new bg;this._injector=n(Ze);this._changeDetectorRef=n(qv);this._handleTransitionEvent=function(b){b.target===a._elementRef.nativeElement&&
a._ngZone.run(function(){b.type==="transitionrun"?a._animationStarted.next(b):(b.type==="transitionend"&&a._setIsAnimating(!1),a._animationEnd.next(b))})};this.openedChange.pipe(gg(this._destroyed)).subscribe(function(b){b?(a._doc&&(a._elementFocusedBeforeDrawerWasOpened=a._doc.activeElement),a._takeFocus()):a._isFocusWithinDrawer()&&a._restoreFocus(a._openedVia||"program")});this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement;Qe(b,"keydown").pipe(Ve(function(c){return c.keyCode===
27&&!a.disableClose&&!ri(c)}),gg(a._destroyed)).subscribe(function(c){return a._ngZone.run(function(){a.close();c.stopPropagation();c.preventDefault()})});a._eventCleanups=[a._renderer.listen(b,"transitionrun",a._handleTransitionEvent),a._renderer.listen(b,"transitionend",a._handleTransitionEvent),a._renderer.listen(b,"transitioncancel",a._handleTransitionEvent)]});this._animationEnd.subscribe(function(){a.openedChange.emit(a._opened)})};g=hY.prototype;
g._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._takeFocus=function(){var a=this;if(this._focusTrap){var b=this._elementRef.nativeElement;switch(this.autoFocus){case !1:case "dialog":break;case !0:case "first-tabbable":$e(function(){a._focusTrap.focusInitialElement()||typeof b.focus!=="function"||b.focus()},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}};
g._restoreFocus=function(a){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?hw(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};g._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
g.ngAfterViewInit=function(){this._isAttached=!0;this._position==="end"&&this._updatePositionInParent("end");this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())};
g.ngOnDestroy=function(){this._eventCleanups.forEach(function(c){return c()});var a;(a=this._focusTrap)==null||a.destroy();var b;(b=this._anchor)==null||b.remove();this._anchor=null;this._animationStarted.complete();this._animationEnd.complete();this._modeChanged.complete();this._destroyed.next();this._destroyed.complete()};g.open=function(a){return this.toggle(!0,a)};g.close=function(){return this.toggle(!1)};g._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
g.toggle=function(a,b){(a=a===void 0?!this.opened:a)&&b&&(this._openedVia=b);b=this._setOpen(a,!a&&this._isFocusWithinDrawer(),this._openedVia||"program");a||(this._openedVia=null);return b};
g._setOpen=function(a,b,c){var d=this;if(a===this._opened)return Promise.resolve(a?"open":"close");this._opened=a;var e;((e=this._container)==null?0:e._transitionsEnabled)?this._setIsAnimating(!0):setTimeout(function(){d._animationStarted.next();d._animationEnd.next()});this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",a);!a&&b&&this._restoreFocus(c);this._changeDetectorRef.markForCheck();this._updateFocusTrapState();return new Promise(function(f){d.openedChange.pipe(Uf()).subscribe(function(h){return f(h?
"open":"close")})})};g._setIsAnimating=function(a){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",a)};g._getWidth=function(){return this._elementRef.nativeElement.offsetWidth||0};g._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!((a=this._container)==null||!a.hasBackdrop)&&this.opened}};
g._updatePositionInParent=function(a){if(this._platform.isBrowser){var b=this._elementRef.nativeElement,c=b.parentNode;a==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),c.insertBefore(this._anchor,b)),c.appendChild(b)):this._anchor&&this._anchor.parentNode.insertBefore(b,this._anchor)}};
ea.Object.defineProperties(hY.prototype,{position:{configurable:!0,enumerable:!0,get:function(){return this._position},set:function(a){a=a==="end"?"end":"start";a!==this._position&&(this._isAttached&&this._updatePositionInParent(a),this._position=a,this.onPositionChanged.emit())}},mode:{configurable:!0,enumerable:!0,get:function(){return this._mode},set:function(a){this._mode=a;this._updateFocusTrapState();this._modeChanged.next()}},disableClose:{configurable:!0,enumerable:!0,get:function(){return this._disableClose},
set:function(a){this._disableClose=zi(a)}},autoFocus:{configurable:!0,enumerable:!0,get:function(){var a=this._autoFocus;return a==null?this.mode==="side"?"dialog":"first-tabbable":a},set:function(a){if(a==="true"||a==="false"||a==null)a=zi(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened},set:function(a){this.toggle(zi(a))}}});hY.\u0275fac=function(a){return new (a||hY)};
hY.\u0275cmp=B({type:hY,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&Wg(I0c,5);if(a&2){var c;$g(c=ah())&&(b._content=c.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:11,hostBindings:function(a,b){a&2&&(ng("align",null),vg("visibility",b._container||b.opened?null:"hidden"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",
autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:H0c,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(Ng(),I(0,"div",1,0),Og(2),J())},dependencies:[Yw],encapsulation:2,changeDetection:0});
var fY=function(){var a=this;this._dir=n(Qw,{optional:!0});this._element=n(ff);this._ngZone=n(ph);this._changeDetectorRef=n(qv);this._animationDisabled=Hi();this._transitionsEnabled=!1;this._drawers=new Vg;this._autosize=n(K0c);this.backdropClick=new hv;this._destroyed=new bg;this._doCheckSubject=new bg;this._contentMargins={left:null,right:null};this._contentMarginChanges=new bg;this._injector=n(Ze);var b=n(ew),c=n(ax),d;(d=this._dir)==null||d.change.pipe(gg(this._destroyed)).subscribe(function(){a._validateDrawers();
iY(a)});c.change().pipe(gg(this._destroyed)).subscribe(function(){return iY(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
fY.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(eg(this._allDrawers),gg(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));Zg(a._drawers)});this._drawers.changes.pipe(eg(null)).subscribe(function(){a._validateDrawers();a._drawers.forEach(function(b){a._watchDrawerToggle(b);a._watchDrawerPosition(b);a._watchDrawerMode(b)});(!a._drawers.length||a._isDrawerOpen(a._start)||a._isDrawerOpen(a._end))&&
iY(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(Sf(10),gg(a._destroyed)).subscribe(function(){return iY(a)})})};fY.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};fY.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};fY.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var iY=function(a){var b=0,c=0;if(a._left&&a._left.opened)if(a._left.mode=="side")b+=a._left._getWidth();else if(a._left.mode=="push"){var d=a._left._getWidth();b+=d;c-=d}a._right&&a._right.opened&&(a._right.mode=="side"?c+=a._right._getWidth():a._right.mode=="push"&&(d=a._right._getWidth(),c+=d,b-=d));b=b||null;c=c||null;if(b!==a._contentMargins.left||c!==a._contentMargins.right)a._contentMargins={left:b,right:c},a._ngZone.run(function(){return a._contentMarginChanges.next(a._contentMargins)})};
g=fY.prototype;g.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};g._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(gg(this._drawers.changes)).subscribe(function(){iY(b);b._changeDetectorRef.markForCheck()});a.mode!=="side"&&a.openedChange.pipe(gg(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
g._watchDrawerPosition=function(a){var b=this;a.onPositionChanged.pipe(gg(this._drawers.changes)).subscribe(function(){$e({read:function(){return b._validateDrawers()}},{injector:b._injector})})};g._watchDrawerMode=function(a){var b=this;a._modeChanged.pipe(gg(Ue(this._drawers.changes,this._destroyed))).subscribe(function(){iY(b);b._changeDetectorRef.markForCheck()})};g._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};
g._validateDrawers=function(){var a=this;this._start=this._end=null;this._drawers.forEach(function(b){b.position=="end"?a._end=b:a._start=b});this._right=this._left=null;this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)};g._isPushed=function(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"};
g._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};g._closeModalDrawersViaBackdrop=function(){var a=this;[this._start,this._end].filter(function(b){return b&&!b.disableClose&&a._drawerHasBackdrop(b)}).forEach(function(b){return b._closeViaBackdropClick()})};g._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};
g._isDrawerOpen=function(a){return a!=null&&a.opened};g._drawerHasBackdrop=function(a){return this._backdropOverride==null?!!a&&a.mode!=="side":this._backdropOverride};
ea.Object.defineProperties(fY.prototype,{start:{configurable:!0,enumerable:!0,get:function(){return this._start}},end:{configurable:!0,enumerable:!0,get:function(){return this._end}},autosize:{configurable:!0,enumerable:!0,get:function(){return this._autosize},set:function(a){this._autosize=zi(a)}},hasBackdrop:{configurable:!0,enumerable:!0,get:function(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)},set:function(a){this._backdropOverride=a==null?null:zi(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});fY.\u0275fac=function(a){return new (a||fY)};
fY.\u0275cmp=B({type:fY,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(Xg(c,gY,5),Xg(c,hY,5));if(a&2){var d;$g(d=ah())&&(b._content=d.first);$g(d=ah())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&Wg(gY,5);if(a&2){var c;$g(c=ah())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[hh([{provide:L0c,useExisting:fY}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(Ng(J0c),E(0,Tjb,1,2,"div",0),Og(1),Og(2,1),E(3,Ujb,2,0,"mat-drawer-content"));a&2&&(F(b.hasBackdrop?0:-1),z(3),F(b._content?-1:3))},dependencies:[gY],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],
encapsulation:2,changeDetection:0});var M0c=["*"],N0c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jY=function(){gY.apply(this,arguments)};Y(jY,gY);jY.\u0275dir=gY.\u0275dir;jY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(jY)))(b||jY)}}();jY.\u0275cmp=B({type:jY,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[hh([{provide:Yw,useExisting:jY}]),kg],ngContentSelectors:M0c,decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},encapsulation:2,changeDetection:0});
var kY=function(){hY.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Y(kY,hY);
ea.Object.defineProperties(kY.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=zi(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Ci(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Ci(a)}}});
kY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(kY)))(b||kY)}}();
kY.\u0275cmp=B({type:kY,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:15,hostBindings:function(a,b){a&2&&(ng("align",null),vg("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),wg("mat-drawer-end",b.position==="end")("mat-drawer-over",b.mode==="over")("mat-drawer-push",b.mode==="push")("mat-drawer-side",b.mode==="side")("mat-sidenav-fixed",b.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",
fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[hh([{provide:hY,useExisting:kY}]),kg],ngContentSelectors:M0c,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(Ng(),I(0,"div",1,0),Og(2),J())},dependencies:[Yw],encapsulation:2,changeDetection:0});var lY=function(){fY.apply(this,arguments);this._content=this._allDrawers=void 0};Y(lY,fY);
lY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(lY)))(b||lY)}}();
lY.\u0275cmp=B({type:lY,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(Xg(c,jY,5),Xg(c,kY,5));if(a&2){var d;$g(d=ah())&&(b._content=d.first);$g(d=ah())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&wg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[hh([{provide:L0c,useExisting:lY},{provide:fY,useExisting:lY}]),kg],ngContentSelectors:["mat-sidenav",
"mat-sidenav-content","*"],decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(a,b){a&1&&(Ng(N0c),E(0,Wjb,1,2,"div",0),Og(1),Og(2,1),E(3,Xjb,2,0,"mat-sidenav-content"));a&2&&(F(b.hasBackdrop?0:-1),z(3),F(b._content?-1:3))},dependencies:[jY],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],
encapsulation:2,changeDetection:0});var mY=function(){};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275mod=Jf({type:mY});mY.\u0275inj=Tc({imports:[zx,bx,bx,zx]});var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=Jf({type:nY});nY.\u0275inj=Tc({imports:[ZB,Ly,AQ,fO,cC,$B,mY,My,rX,QN,eY]});var oY=function(){this.showPageSizeSelector=!1;this.pageSizeOptions=[10,25,50,100,250];this.pageSize=1;this.hasNextPage=this.hasPreviousPage=!1;this.previousPageLabel="Previous page";this.nextPageLabel="Next page";this.nextPage=new LA;this.prevPage=new LA;this.pageSizeChange=new LA};oY.prototype.ngOnInit=function(){};oY.\u0275fac=function(a){return new (a||oY)};
oY.\u0275cmp=B({type:oY,selectors:[["b-paginator"]],inputs:{showPageSizeSelector:"showPageSizeSelector",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",startIndex:"startIndex",endIndex:"endIndex",totalNumber:"totalNumber",hasPreviousPage:"hasPreviousPage",hasNextPage:"hasNextPage",previousPageLabel:"previousPageLabel",nextPageLabel:"nextPageLabel"},outputs:{nextPage:"nextPage",prevPage:"prevPage",pageSizeChange:"pageSizeChange"},standalone:!1,decls:13,vars:8,consts:[["pageSizeMenu","matMenu"],
[1,"page-number"],["type","button","mat-icon-button","","color","primary",3,"click","matTooltip","disabled"],["svgIcon","chevron-left"],["svgIcon","chevron-right"],["type","button","mat-icon-button","","matTooltip","Change page size",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon",
"done",1,"icon-s"]],template:function(a,b){a&1&&(E(0,Zjb,8,1),I(1,"span",1)(2,"strong"),Q(3),J(),E(4,$jb,4,1,"span"),I(5,"span"),Q(6," of "),I(7,"strong"),Q(8),J()(),I(9,"button",2),M("click",function(){return b.prevPage.emit()}),K(10,"mat-icon",3),J(),I(11,"button",2),M("click",function(){return b.nextPage.emit()}),K(12,"mat-icon",4),J()());a&2&&(F(b.showPageSizeSelector?0:-1),z(3),ch(b.startIndex),z(),F(b.endIndex!=null?4:-1),z(4),ch(b.totalNumber),z(),D("matTooltip",b.previousPageLabel)("disabled",
!b.hasPreviousPage),z(2),D("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[aB,PA,Ux,UG,XG,VG,YG,YA,cB],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var nkb=function(a,b){return{issueIds:a,teamId:b}},wkb=function(){return[]},xkb=function(){return{}},ikb=function(a,b){return b.key},pY=function(){Z.call(this);var a=this;this.activeSession=n(Es);this.paramsService=n(aL);this.appSearchState=n(mX);this.userPreferencesManager=n(OG);this.imageUrls=n(qN);this.teamExperimentalFieldsFridge=n(CG);this.triageService=n(TG);this.punctualService=n(eS);this.issueFridge=n($E);this.issueFullFridge=n(EF);this.bLocation=n(cI);this.issueExperimentalFieldsFridge=n(WE);
this.starredTeamsService=n(QG);this.ROUTES=Fq;this.TriageServiceMode=$tc;this.SUBPHASE_TO_DISPLAY_NAME=Slc;this.LAST_30_DAYS=Gmc.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=xp;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new uC;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=eFc(this.paramsService,"phase").pipe(y(function(d){var e;return(e=Vlc.get(d))!=null?e:"NEW"}),Xf());this.subphase$=eFc(this.paramsService,"subphase").pipe(y(function(d){var e;return(e=Ulc.get(d))!=null?e:void 0}),Xf());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new tj(1);this.activeSort$=new tj(void 0);this.data=this.triageService.triageDataFactory.get(this.teamId,this.triageId);this.phaseData$=this.phase$.pipe(y(function(d){return a.data.phase(d)}));this.allIssuesInPhase$=
this.phaseData$.pipe(fg(function(d){return d.issues$}));this.allIssuesInSubphase$=Je([this.allIssuesInPhase$,this.subphase$]).pipe(y(function(d){var e,f=l(d);d=f.next().value;return(e=f.next().value)?d.filter(function(h){return um(h)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(y(function(d){return[].concat(p(d)).map(function(e){return Gmc[e]})}));this.alerts$=this.phase$.pipe(y(function(d){return Ekb.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(y(function(d){return Vua(d)}));
this.filteredIssuesInPhase$=Je([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Bkb(d,f,e)}));this.filteredTotalRowCount$=Je([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(y(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d.length+e.length}),cg({refCount:!0,bufferSize:1}));this.startIndex$=Je([this.pageSize$,this.pageNumber$]).pipe(y(function(d){var e=l(d);d=e.next().value;
return(e.next().value-1)*d+1}),cg({refCount:!0,bufferSize:1}));this.endIndex$=Je([this.pageSize$,this.startIndex$,this.filteredTotalRowCount$]).pipe(y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Math.min(f+d-1,e)}),cg({refCount:!0,bufferSize:1}));this.sortedFilteredIssueIdsInPhase$=Je([this.filteredIssuesInPhase$,this.trendingThemes$,this.activeSort$,this.phase$]).pipe(y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;e=e.next().value;
return Dkb(d,f,h,e)}),cg({refCount:!0,bufferSize:1}));this.issueIdsToRender$=Je([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d.slice(f-1,e)}),Xf(Pj),cg({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=Je([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(y(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;var k;return((k=
Fmc.get(d))!=null?k:[]).map(function(q){var u=f.filter(q.check).length;q.key==="NEEDS_ATTENTION"&&(u+=h.length);return Object.assign({},q,{count:u})})}),y(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(y(function(d){return Ekb.get(d)}));this.issues$=this.issueIdsToRender$.pipe(fg(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=Ytc(this.data).pipe(Ve(Tk));this.tableOptions$=
Je([this.issues$,this.customFieldConfigs$]).pipe(y(function(d){d=l(d);var e=d.next().value;d=d.next().value;return{enableSelection:!0,showMenu:!1,modes:{createdTime:"relativepastshort"},navigationOptions:{clickTargets:"NONE",alwaysOpenNewTab:!0},sortMode:"EXTERNAL_SORT",activeRowMode:"REMAIN_ACTIVE",optionalColumns:jk(d.map(function(f){return kn(f.customFieldId)})).map(function(f){var h=Fkb(e,f);return{type:"CUSTOM_FIELD",customFieldId:f,customFieldName:h}})}}));this.tableColumns$=Je([this.teamExperimentalFieldsFridge.watch(this.teamId),
this.phase$]).pipe(y(function(d){var e=l(d);d=e.next().value;e=e.next().value;d=d==null?void 0:d.triage.find(function(k){return""+k.id===a.triageId});e=[].concat(p(Ylc[e]));var f,h=(f=d==null?void 0:d.displayColumns)!=null?f:[];(h==null?void 0:h.length)>0&&(e=h);return d!=null&&d.showComponentColumn?e:e.filter(function(k){return k.type!=="COMPONENT_PATH"})}));var b;this.sidebarWidthPreference$=new tj(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=amc("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
Je([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(y(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(y(function(d){return Rlc[d]}));this.subphaseDisplayName$=this.subphase$.pipe(y(function(d){return d?Slc[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(y(function(d){return d?"Showing issues in the "+Slc[d].toLowerCase()+" subphase.":"Showing issues in all subphases"}));this.starred$=this.starredTeamsService.starredTriageViews$.pipe(y(function(d){return d.some(function(e){return e.triageId===
a.triageId&&e.teamId===a.teamId})}));this.savingStar=!1;this.selectedIssues=new Zw(!0,[]);this.punctualSubscriptions=new ke;var c=n(CF);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([Gmc.LAST_30_DAYS.key])}));this.subscriptions.add(this.data.allIssues$.subscribe(function(d){for(var e=l(d.entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;Eya(f,d)&&rmc.add(h.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){O0c(a,
d)}));this.subscriptions.add(this.phaseData$.pipe(fg(function(d){return d.totalCount$.pipe(y(function(e){return[e,d.phase]}))}),Uf()).subscribe(function(d){var e=l(d);d=e.next().value;e=e.next().value;c.trackEvent("triageIssue","ISSUE_COUNT_"+e,a.teamId+":"+a.triageId,d)}))};Y(pY,Z);pY.\u0275dir=Z.\u0275dir;
var O0c=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new ke;b=l(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$322:void 0},c=b.next())d.issueId$jscomp$322=c.value,Array.isArray(d.issueId$jscomp$322)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$322).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$322,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$322).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$322,{trustMemory:!1})}}(d))))};pY.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};pY.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.punctualSubscriptions.unsubscribe()};
var vkb=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},P0c=function(a,b){return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.userPreferencesManager.saveResultsPerPage(b)),2);a.pageNumber$.next(1);ze(c)})};pY.prototype.onSortChange=function(a){this.activeSort$.next(a)};
pY.prototype.toggleStar=function(){var a=this;return w(function(b){if(b.nextAddress==1)return a.savingStar=!0,x(b,Itc(a.starredTeamsService,a.triageId,a.teamId),2);a.savingStar=!1;ze(b)})};pY.prototype.refreshTable=function(){this.data.reload();this.selectedIssues.clear()};var dkb=function(a,b){var c,d,e,f;return w(function(h){if(h.nextAddress==1)return x(h,Ge(a.phase$),2);c=h.yieldResult;d=Or[c];e=b&&Tlc[b];f=Fq.viewTriage.makeHref(a.teamId,a.triageId,d,e);return x(h,a.bLocation.setUrl(f,!0),0)})};
pY.\u0275fac=function(a){return new (a||pY)};
pY.\u0275cmp=B({type:pY,selectors:[["b-triage-phase"]],standalone:!1,features:[kg],decls:54,vars:63,consts:[["subphaseMenu","matMenu"],["issuesTable",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"medium",3,"onHotkey","click","hotkey"],["color","primary","svgIcon","refresh",1,"icon-m"],[3,"starClicked","starred","disabled","starMessage","unStarMessage"],
[1,"margin-none","nowrap"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"flex-kids-x","align-items-center","gap-s"],["type","button","mat-stroked-button","","color","neutral",1,"small","gmat-button",3,"matMenuTriggerFor","matTooltip"],[1,"margin-xs-right"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item",""],[1,"margin-left-auto",3,"pageSizeChange","prevPage","nextPage","showPageSizeSelector","startIndex","endIndex","totalNumber",
"hasPreviousPage","hasNextPage","pageSize"],[1,"flex-kids-x"],["href","http://go/b-triage-docs","target","_blank","mat-icon-button","","aria-label","More info about the new triage UI","matTooltip","More info about the new triage UI",1,"medium","gfx-muted","settings-btn"],["svgIcon","info",1,"icon-s"],["mat-icon-button","","aria-label","Configure triage for your team","matTooltip","Configure triage for your team",1,"medium","gfx-muted","settings-btn",3,"href"],["svgIcon","settings",1,"icon-s"],["mode",
"indeterminate"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],[1,"flex-1","pos-rel","overflow","overflow-on-print-media"],["direction","rtl",3,"widthChanged","minWidth","maxWidth","size"],[3,"refreshable"],[1,"type-xs","flex-kids-x","align-items-center"],[1,"b-chip","xs","alert-chip"],["aria-label","Select filter",1,"padded-s-sides",3,"multiple"],["aria-label","Select filter",1,"padded-s-sides",3,"change","multiple"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshTable"],[3,"issueIds","tableColumns","options","teamId","showReadStatus","alerts"],[1,"full-height","flex-kids-y","align-items-center","justify-content-center","gap"],[3,"activeIssueChange","rowClick","selectedIssuesChange","sortChange","issueIds","tableColumns","options","teamId","showReadStatus","alerts"],["aria-hidden","true","alt","","height","232","width","321",3,"src"]],template:function(a,b){if(a&1){var c=r();I(0,"div",2)(1,"header",
3)(2,"button",4);M("onHotkey",function(){t(c);return v(b.refreshTable())})("click",function(){t(c);return v(b.refreshTable())});K(3,"mat-icon",5);J();I(4,"b-star-toggle",6);S(5,"async");M("starClicked",function(){t(c);return v(b.toggleStar())});J();I(6,"h2",7);Q(7);S(8,"async");J();K(9,"mat-icon",8);E(10,ckb,9,7,"div",9);S(11,"async");K(12,"mat-icon",8);I(13,"button",10);S(14,"async");I(15,"span",11);Q(16);S(17,"async");J();K(18,"b-icon",12);J();I(19,"mat-menu",null,0)(21,"button",13);M("click",function(){t(c);
return v(dkb(b))});Q(22,"All subphases");J();K(23,"hr");Dg(24,ekb,2,1,"button",14,Cg);S(26,"async");J();I(27,"b-paginator",15);S(28,"async");S(29,"async");S(30,"async");S(31,"async");S(32,"async");S(33,"async");S(34,"async");S(35,"async");M("pageSizeChange",function(H){t(c);return v(P0c(b,H))})("prevPage",function(){t(c);b.pageNumber$.next(b.pageNumber$.value-1);return v()})("nextPage",function(){t(c);b.pageNumber$.next(b.pageNumber$.value+1);return v()});J();I(36,"div",16)(37,"a",17);K(38,"mat-icon",
18);J();I(39,"a",19);K(40,"mat-icon",20);J()()();E(41,fkb,1,0,"mat-progress-bar",21);S(42,"async");I(43,"div",22)(44,"div",23);E(45,lkb,2,3);S(46,"async");E(47,okb,1,5,"ng-container");S(48,"async");J();I(49,"b-resizable-sidebar",24);S(50,"async");M("widthChanged",function(H){t(c);H<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(H),bmc("triage-sidebar-width")(H));return v()});C(51,ukb,2,3,"ng-template",25);J()()();C(52,Akb,2,1,"ng-template",null,1,nh)}if(a&2){var d,e,f,h;a=L(20);z(2);D("hotkey",
b.HOTKEYS.REFRESH_ISSUE);z(2);D("starred",T(5,27,b.starred$))("disabled",b.savingStar)("starMessage","Star this team to add it to the Triage section on the left sidebar")("unStarMessage","Unstar this team to remove it from the Triage section on the left sidebar");z(3);R(" ",T(8,29,b.data.triageName$)," ");z(3);F((d=T(11,31,b.phaseData$))?10:-1,d);z(3);Qg("matTooltip",T(14,33,b.subphaseSelectorTooltip$));D("matMenuTriggerFor",a);z(3);ch(T(17,35,b.subphaseDisplayName$));z(8);Eg(T(26,37,b.subphases$));
z(3);wg("invisible",!((e=T(28,39,b.issueIdsToRender$))==null?0:e.length));var k,q,u,A;D("showPageSizeSelector",!0)("startIndex",(k=T(29,41,b.startIndex$))!=null?k:1)("endIndex",(q=T(30,43,b.endIndex$))!=null?q:0)("totalNumber",(u=T(31,45,b.filteredTotalRowCount$))!=null?u:0)("hasPreviousPage",T(32,47,b.pageNumber$)>1)("hasNextPage",T(33,49,b.filteredTotalRowCount$)>T(34,51,b.endIndex$))("pageSize",(A=T(35,53,b.pageSize$))!=null?A:0);z(12);D("href",b.ROUTES.editTeam.makeHref(b.teamId,"triage"),uf);
z(2);F(T(42,55,b.data.isLoading$)?41:-1);z(4);F(((f=T(46,57,b.allIssuesInSubphase$))==null?0:f.length)?45:-1);z(2);F((h=T(48,59,b.issueIdsToRender$))?47:-1,h);z(2);var G;D("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("maxWidth",b.RIGHT_SIDEBAR_MAX_WIDTH)("size",(G=T(50,61,b.sidebarWidth$))!=null?G:0);z(2);D("refreshable",b.triageService.currentIssueIds$)}},dependencies:[Pv,aB,PA,Tx,Ux,qP,yP,wP,UG,XG,VG,YG,VA,TA,YA,cB,pH,CL,vU,IU,LS,JU,oY,PH,rH,wS,Qv],styles:[".settings-btn[_ngcontent-%COMP%]{line-height:38px}.left[_ngcontent-%COMP%]{height:100;overflow:hidden auto}.alert-chip[_ngcontent-%COMP%]{background-color:#c5221f;background-color:var(--text-bad);color:#fff;color:var(--text-inverse);margin-right:0;padding-top:2px;padding-left:5px;padding-bottom:2px;line-height:inherit}[_nghost-%COMP%]     .mat-column-title{width:100%;min-width:400px}[_nghost-%COMP%]     .mat-column-alerts.mat-mdc-cell, [_nghost-%COMP%]     .mat-column-alerts.mat-mdc-header-cell{padding:0}[_nghost-%COMP%]     .mat-column-componentName{max-width:150px}[_nghost-%COMP%]     .mat-column-title .pop-out-link{display:none}\n/*# sourceMappingURL=triage_phase.css.map */"],
changeDetection:0});var qY=function(){};qY.\u0275fac=function(a){return new (a||qY)};qY.\u0275mod=Jf({type:qY});qY.\u0275inj=Tc({});var rY=function(){};rY.\u0275fac=function(a){return new (a||rY)};rY.\u0275mod=Jf({type:rY});rY.\u0275inj=Tc({imports:[ZB,EL,$B,cC,qY]});var sY=function(){};sY.\u0275fac=function(a){return new (a||sY)};sY.\u0275mod=Jf({type:sY});sY.\u0275inj=Tc({imports:[ZB,$B,LH,cC]});var tY=function(){};tY.\u0275fac=function(a){return new (a||tY)};tY.\u0275mod=Jf({type:tY});tY.\u0275inj=Tc({imports:[ZB,Ly,$B,mR,LH,aC,AQ,cC,qH,EL,QW,TW,eH,sY,My,rX,XH,QN,rY]});var uY=function(){var a=this;this.teamsService=n(yG);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new LA;this.onEmptyQuery=new LA;this.searchQuery$=new bg;this.teamSuggestions$=this.searchQuery$.pipe(Sf(300),Xf(),fg(function(b){return AG(a.teamsService,b)}),y(function(b){return b.map(function(c){return new Hkb(c.pathIds,c.pathNames,c.description)})}))};uY.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
uY.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};uY.prototype.displayFn=function(a){return a?a.name:""};uY.prototype.ngAfterViewInit=function(){};uY.\u0275fac=function(a){return new (a||uY)};
uY.\u0275cmp=B({type:uY,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&Wg(AM,7);if(a&2){var c;$g(c=ah())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},standalone:!1,decls:8,vars:9,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"team-id-select"],["id","team-id","matInput","","type","text","autocomplete","off","aria-label",
"Team selection",3,"click","input","placeholder","ngModel","disabled","matAutocomplete"],[3,"optionSelected","panelWidth","displayWith"],[1,"team-search-result",3,"value"],[1,"description",3,"matTooltip"],[1,"path-names",3,"click","matTooltip"],[1,"path-names-separator"]],template:function(a,b){if(a&1){var c=r();I(0,"div",2)(1,"input",3,0);M("click",function(){t(c);var d=L(2);return v(b.search(d.value))})("input",function(){t(c);var d=L(2);return v(b.search(d.value))});J();I(3,"mat-autocomplete",
4,1);M("optionSelected",function(d){t(c);return v(b.updateSelectionOnChange(d))});Dg(5,Kkb,7,7,"mat-option",5,Cg);S(7,"async");J()()}a&2&&(a=L(4),z(),Qg("placeholder",b.placeholder),D("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",a),ng("aria-disabled",b.disabled),z(2),D("panelWidth",b.panelWidth)("displayWith",b.displayFn),z(2),Eg(T(7,7,b.teamSuggestions$)))},dependencies:[xM,zM,Lx,AM,YA,cB,Li,oy,vy,Qv,Xv],styles:["input[type=text][_ngcontent-%COMP%]{width:100%}.team-search-result[_ngcontent-%COMP%]{line-height:16px;border:1px solid;border-color:#dadce0;border-color:var(--divider);.path-names-separator-color:#202124;.path-names-separator-color:var(--text)}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;font-weight:500;overflow-wrap:break-word;white-space:pre-wrap}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.team-search-result[_ngcontent-%COMP%]   .path-names[_ngcontent-%COMP%]:first-of-type{margin-left:0}.team-search-result[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-size:.75rem;color:#5f6368;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"],
changeDetection:0});var Hkb=function(a,b,c){this.pathIds=a;this.pathNames=b;this.id=a[a.length-1];this.name=b[b.length-1];this.description=c||"";this.teamPath=b.map(function(d,e){return new Q0c(a.slice(0,e+1),b.slice(0,e+1))})},Q0c=function(a,b){this.pathIds=a;this.pathNames=b;this.name=b.length>0?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var vY=function(){Z.apply(this,arguments);var a=this;this.teamExperimentalFieldsFridge=n(CG);this.teamsService=n(yG);this.starredTeamsService=n(QG);this.teamUserActivity=n(LG);this.selectedTeam$=new tj(null);this.suggestedTeams$=this.teamUserActivity.mostActiveTeams$;this.starInProgress={};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.tableColumns=["starred","triageName","teamName","scope"];this.populateEmptyExperiments=oe(y(function(b){b=l(b);var c=b.next().value;b.next().value.forEach(function(d){c.has(d)||
c.set(d,{id:d,triage:[{id:0}]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(y(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=Je([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;c=new Set(c);b=l(b);for(var d=b.next();!d.done;d=b.next())c.add(d.value.teamId);return[].concat(p(c))}));this.teamIdToTeamExperiments$=this.starredAndSuggestedTeamIds$.pipe(fg(function(b){return a.teamExperimentalFieldsFridge.watchSet([].concat(p(b))).pipe(y(function(c){return new Map(c.map(function(d){return[d.id,
d]}))}))}),Qf(this.starredAndSuggestedTeamIds$),this.populateEmptyExperiments);this.teamIds$=this.teamIdToTeamExperiments$.pipe(y(function(b){return[].concat(p(b.keys()))}));this.teamIdToTriageViews$=this.teamIdToTeamExperiments$.pipe(y(function(b){return Eua(b,function(c){return fk(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(fg(function(b){return htc(a.teamsService,b).pipe(y(function(c){var d=new Map;c=l(c);for(var e=c.next();!e.done;e=c.next()){var f=
l(e.value);e=f.next().value;f=f.next().value;d.set(e,f.name)}return d}))}));this.starredTeamIdToTriageIds$=this.starredTriageViews$.pipe(y(function(b){var c=new Map;b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.teamId;e=e.triageId;var f=void 0,h=(f=c.get(d))!=null?f:new Set;h.add(e);c.set(d,h)}return c}));this.defaultTriageViewList$=Je([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(y(function(b){var c=l(b);var d=c.next().value;
b=c.next().value;var e=c.next().value;c=c.next().value;c=new Set(c);var f=[];d=l(d);for(var h=d.next();!h.done;h=d.next()){var k=l(h.value);h=k.next().value;var q=k=k.next().value;k=c.has(h);var u=void 0,A=(u=b.get(h))!=null?u:h;q=l(q);for(u=q.next();!u.done;u=q.next()){var G=l(u.value);u=G.next().value;G=G.next().value;var H=void 0,N=void 0,O=(N=(H=e.get(h))==null?void 0:H.has(u))!=null?N:!1;if(k||O)H=void 0,f.push({teamId:h,teamName:A,triageId:u,triageName:rp(A,G),scope:(H=G.scope)!=null?H:""})}}return f}));
this.selectedTeamExperiment$=this.selectedTeam$.pipe(fg(function(b){return b===null?Ce(void 0):a.teamExperimentalFieldsFridge.watch(b.id)}));this.selectedTeamTriageRows$=Je([this.selectedTeam$,this.selectedTeamExperiment$]).pipe(y(function(b){b=l(b);var c=b.next().value;b=b.next().value;return c===null?[]:b===void 0?[{teamId:c.id,teamName:c.name,triageId:"0",triageName:rp(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:rp(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=Je([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Y(vY,Z);vY.\u0275dir=Z.\u0275dir;vY.prototype.getTriageLink=function(a,b){return Fq.viewTriage.makeHref(b,a)};vY.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a&&d.teamId===b})};vY.prototype.onTeamSelect=function(a){this.selectedTeam$.next(a)};
vY.prototype.toggleStar=function(a,b){var c=this,d;return w(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return x(e,Itc(c.starredTeamsService,a,b),3)}c.starInProgress[d]=!1;ze(e)})};vY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(vY)))(b||vY)}}();
vY.\u0275cmp=B({type:vY,selectors:[["ng-component"]],standalone:!1,features:[kg],decls:15,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-sides"],[1,"main-content","padded"],[1,"margin-bottom","team-picker-container"],[3,"onTeamSelect","onEmptyQuery","teamSelected","panelWidth","placeholder"],[1,"margin-bottom"],["mat-table","",1,"full-width",3,"dataSource","fixedLayout"],["matColumnDef","starred"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell",
"",4,"matCellDef"],["matColumnDef","triageName"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","teamName"],["mat-cell","","class","team-name-2",4,"matCellDef"],["matColumnDef","scope"],["mat-cell","","class","scope",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","disabled","starred","starMessage","unStarMessage"],["mat-cell","",1,
"triage-name"],[1,"hover-link",3,"href"],["mat-cell","",1,"team-name-2"],["mat-cell","",1,"scope"],["mat-header-row",""],["mat-row",""]],template:function(a,b){a&1&&(I(0,"div",0)(1,"header",1)(2,"h2"),Q(3," Search triage view "),J()(),I(4,"div",2)(5,"div",3)(6,"b-team-picker",4),S(7,"async"),M("onTeamSelect",function(d){return b.onTeamSelect(d)})("onEmptyQuery",function(){b.selectedTeam$.next(null)}),J()(),I(8,"div",5)(9,"h3"),E(10,Lkb,1,0),S(11,"async"),Ag(12,Mkb,1,0),J(),E(13,Zkb,3,3),S(14,"async"),
J()()());if(a&2){var c;z(6);D("teamSelected",T(7,5,b.selectedTeam$))("panelWidth","400px")("placeholder","Search by team name or id");z(4);F(T(11,7,b.selectedTeam$)?10:12);z(3);F((c=T(14,9,b.starredTriageViews$))?13:-1,c)}},dependencies:[sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,ON,wS,uY,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}[_nghost-%COMP%]{display:block;padding:16px}.scope[_ngcontent-%COMP%]{width:50%}.team-picker-container[_ngcontent-%COMP%]{width:400px}\n/*# sourceMappingURL=triage_settings.css.map */"]});var wY=function(){};wY.\u0275fac=function(a){return new (a||wY)};wY.\u0275mod=Jf({type:wY});wY.\u0275inj=Tc({imports:[ZB,EM,GM,cC,Ly]});var xY=function(){};xY.\u0275fac=function(a){return new (a||xY)};xY.\u0275mod=Jf({type:xY});xY.\u0275inj=Tc({imports:[ZB,$B,oR,cC,QN,rY,pP,wY]});var yY=function(){};yY.\u0275fac=function(a){return new (a||yY)};yY.\u0275mod=Jf({type:yY});yY.\u0275inj=Tc({imports:[ZB,nY,tY,xY,kX]});var zY=function(){this.roundCorners=this.showDividers=!1};zY.\u0275fac=function(a){return new (a||zY)};
zY.\u0275cmp=B({type:zY,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),Og(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap}.show-dividers[_nghost-%COMP%]     button.gmat-mdc-button:not(:last-of-type), .show-dividers[_nghost-%COMP%]     :not(:last-child) button.gmat-button{border-right:1px solid #dadce0}.show-dividers[_nghost-%COMP%]     button.gmat-mdc-button:not(:first-of-type), .show-dividers[_nghost-%COMP%]     :not(:first-child) button.gmat-button{border-left:1px solid #dadce0}[_nghost-%COMP%]    >:not(:last-child){margin-right:0}[_nghost-%COMP%]    >:not(:first-child){margin-left:0}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:not(:last-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:last-child) button.gmat-mdc-button{margin-right:-1px;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:not(:first-of-type), [_nghost-%COMP%]:not(.round-corners)     :not(:first-child) button.gmat-mdc-button{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:hover{z-index:2}[_nghost-%COMP%]:not(.round-corners)     button.gmat-mdc-button:focus{z-index:3}/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});var AY=function(){this.constants=n(GK);this.activeSession=n(Es);this.ISSUE_TYPES=uEc;this.STATUS_JS_FULL_TEXT=yk;this.STATUSES=tEc;this.SEVERITIES_VALUES=xEc;this.PRIORITIES_VALUES=sEc;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new LA;this.onQuickBulkEdit=new LA;this.onBulkEditIssueRelation=new LA;this.onBulkMarkIssueRead=new LA;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};AY.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};
AY.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};AY.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:b===void 0?!0:b})};AY.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};var R0c=function(a){return a.ISSUE_TYPES.filter(function(b){return b!=="VULNERABILITY"})};AY.\u0275fac=function(a){return new (a||AY)};
AY.\u0275cmp=B({type:AY,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt",enableBulkEstimatedEffortOption:"enableBulkEstimatedEffortOption"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},standalone:!1,decls:96,vars:12,consts:[["editMenu","matMenu"],["prioritySubmenu","matMenu"],["severitySubmenu","matMenu"],["statusSubmenu","matMenu"],["typeSubmenu","matMenu"],
["ArchiveSubmenu","matMenu"],["inProdSubmenu","matMenu"],["linkMenu","matMenu"],["ccMenu","matMenu"],["type","button","mat-button","",1,"medium",3,"disabled","matMenuTriggerFor"],["type","button","mat-button","",1,"medium",3,"click","disabled"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"matMenuTriggerFor"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"matTooltip"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",
"",3,"click","matTooltip"]],template:function(a,b){if(a&1){var c=r();I(0,"b-button-group");E(1,$kb,4,2,"button",9);I(2,"button",10);M("click",function(){t(c);return v(b.bulkMarkIssueRead())});Q(3);J();E(4,alb,4,2,"button",9);E(5,blb,4,2,"button",9);J();I(6,"mat-menu",null,0)(8,"button",11);M("click",function(){t(c);return v(b.bulkEdit("ASSIGNEE"))});Q(9,"Assignee");J();I(10,"button",11);M("click",function(){t(c);return v(b.bulkEdit("COMPONENT"))});Q(11,"Component");J();I(12,"button",12);Q(13,"Priority");
J();I(14,"button",12);Q(15,"Severity");J();I(16,"button",12);Q(17,"Status");J();I(18,"button",12);Q(19,"Type");J();I(20,"button",11);M("click",function(){t(c);return v(b.bulkEdit("VERIFIER"))});Q(21,"Verifier");J();I(22,"button",11);M("click",function(){t(c);return v(b.bulkEdit("REPORTER"))});Q(23,"Reporter");J();I(24,"button",11);M("click",function(){t(c);return v(b.bulkEdit("CHANGELIST"))});Q(25,"Changelist");J();I(26,"button",11);M("click",function(){t(c);return v(b.bulkEdit("CUSTOM_FIELDS"))});
Q(27,"Custom Fields");J();I(28,"button",12);Q(29," Archival state ");J();I(30,"button",11);M("click",function(){t(c);return v(b.bulkEdit("FOUND_IN"))});Q(31,"Found In");J();I(32,"button",11);M("click",function(){t(c);return v(b.bulkEdit("SLO_START_TIME"))});Q(33,"SLO Start Time");J();E(34,clb,2,0,"button",13);I(35,"button",11);M("click",function(){t(c);return v(b.bulkEdit("VERIFIED_IN"))});Q(36,"Verified In");J();I(37,"button",11);M("click",function(){t(c);return v(b.bulkEdit("TARGETED_TO"))});Q(38,
"Targeted To");J();I(39,"button",12);Q(40,"In Prod");J();K(41,"mat-divider");I(42,"button",11);M("click",function(){t(c);return v(b.bulkEdit("COMMENT"))});Q(43,"Add Comment");J()();I(44,"mat-menu",null,1);Dg(46,dlb,2,1,"button",13,Cg);J();I(48,"mat-menu",null,2);Dg(50,elb,2,1,"button",13,Cg);J();I(52,"mat-menu",null,3);Dg(54,flb,2,1,"button",13,Cg);J();I(56,"mat-menu",null,4);Dg(58,glb,2,2,"button",14,Cg);J();I(60,"mat-menu",null,5)(62,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("IS_ARCHIVED",
!0))});Q(63,"Archive");J();I(64,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("IS_ARCHIVED",!1))});Q(65,"Unarchive");J()();I(66,"mat-menu",null,6)(68,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("IN_PROD",!0))});Q(69,"In Prod");J();I(70,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("IN_PROD",!1))});Q(71,"Not in Prod");J()();I(72,"mat-menu",null,7)(74,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!0))});Q(75,
"Mark as Blocked By");J();I(76,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("BLOCKING",!0))});Q(77,"Mark as Blocking");J();I(78,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("PARENT",!0))});Q(79,"Add Parent");J();I(80,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("DUPLICATE"))});Q(81,"Duplicate");J();I(82,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!1))});Q(83,"Unmark as Blocked By");
J();I(84,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("BLOCKING",!1))});Q(85,"Unmark as Blocking");J();I(86,"button",11);M("click",function(){t(c);return v(b.bulkEditIssueRelation("PARENT",!1))});Q(87,"Remove Parent");J()();I(88,"mat-menu",null,8)(90,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("CC",!0))});Q(91,"CC me");J();I(92,"button",11);M("click",function(){t(c);return v(b.quickBulkEdit("CC",!1))});Q(93,"Un-CC me");J();I(94,"button",11);M("click",
function(){t(c);return v(b.bulkEdit("CC"))});Q(95,"Edit CC");J()()}if(a&2){a=L(45);var d=L(49),e=L(53),f=L(57),h=L(61),k=L(67);z();F(b.enableBulkEditUi?1:-1);z();D("disabled",b.isAnonymous);z();R(" ",b.readStatePrompt," ");z();F(b.enableBulkEditUi?4:-1);z();F(b.enableBulkEditUi?5:-1);z(7);D("matMenuTriggerFor",a);z(2);D("matMenuTriggerFor",d);z(2);D("matMenuTriggerFor",e);z(2);D("matMenuTriggerFor",f);z(10);D("matMenuTriggerFor",h);z(6);F(b.enableBulkEstimatedEffortOption?34:-1);z(5);D("matMenuTriggerFor",
k);z(7);Eg(b.PRIORITIES_VALUES);z(4);Eg(b.SEVERITIES_VALUES);z(4);Eg(b.STATUSES);z(4);Eg(R0c(b))}},dependencies:[UG,XG,VG,YG,CL,zY,PA,Tx,HL,YA,cB],encapsulation:2,changeDetection:0});var BY=function(){this.activeSession=n(Es);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new LA;this.flagAsSpamClicked=new LA;this.isAnonymous=this.activeSession.isAnonymous()};BY.\u0275fac=function(a){return new (a||BY)};
BY.\u0275cmp=B({type:BY,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},standalone:!1,decls:1,vars:1,consts:[["moreMenu","matMenu"],["type","button","mat-button","",1,"medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,
b){a&1&&E(0,jlb,8,4);a&2&&F(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[UG,XG,VG,YG,CL,PA,Tx],encapsulation:2,changeDetection:0});var CY=function(){};CY.\u0275fac=function(a){return new (a||CY)};CY.\u0275mod=Jf({type:CY});CY.\u0275inj=Tc({imports:[ZB]});var DY=function(){};DY.\u0275fac=function(a){return new (a||DY)};DY.\u0275mod=Jf({type:DY});DY.\u0275inj=Tc({imports:[LH,ZB,EL,CY,$B,RL,cC]});var GY=function(){var a=this;this.activeSession=n(Es);this.connectionChecker=n(EY);this.ssoInterceptorState=n(FY);this.notifyUserAndWaitForGoodConnection$=new pe(function(b){a.ssoInterceptorState.showRefreshSso$.next(!0);var c=a.watchForRestoredConnection$.subscribe(b);a.watchForRestoredConnection$.subscribe(function(){a.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){c.unsubscribe()}});this.watchForRestoredConnection$=Qe(window,"focus").pipe(fg(function(){return a.connectionChecker.ok$}),
Ve(function(b){return b}),Uf(),y(function(){}),Zja())};GY.prototype.intercept=function(a,b){return Yr(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?S0c(this,b,a):b.handle(a)};
var S0c=function(a,b,c){return new pe(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){T0c(a,b,c,h).pipe(gg(f)).subscribe(d)}}),f=new ag(1);return function(){f.next();e.unsubscribe()}})},T0c=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?De(function(){return d}):a.connectionChecker.ok$.pipe(fg(function(e){return e?De(function(){return d}):a.notifyUserAndWaitForGoodConnection$.pipe(fg(function(){return b.handle(c)}))}))};
GY.\u0275fac=function(a){return new (a||GY)};GY.\u0275prov=Sc({token:GY,factory:GY.\u0275fac,providedIn:"root"});var FY=function(){this.showRefreshSso$=new tj(!1)};FY.\u0275fac=function(a){return new (a||FY)};FY.\u0275prov=Sc({token:FY,factory:FY.\u0275fac,providedIn:"root"});var EY=function(){var a=this;this.ngZone=n(ph);this.ok$=new pe(function(b){var c=r2a("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
EY.\u0275fac=function(a){return new (a||EY)};EY.\u0275prov=Sc({token:EY,factory:EY.\u0275fac,providedIn:"root"});var U0c={provide:Hic,useClass:GY,multi:!0};var V0c=function(){this.activeSession=n(Es);this.ssoInterceptorState=n(FY);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};V0c.\u0275fac=function(a){return new (a||V0c)};
V0c.\u0275cmp=B({type:V0c,selectors:[["b-sso-expired-callout-outlet"]],standalone:!1,decls:2,vars:3,consts:[["format","app",3,"messageType"],["type","button","mat-flat-button",""],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(E(0,nlb,6,3,"b-callout",0),S(1,"async"));a&2&&F(T(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[lP,mP,PA,Tx,Qv],encapsulation:2,changeDetection:0});var W0c=function(){var a=this;this.session=n(Es);this.principalTypes=n(kG);this.cdr=n(NA,{self:!0});this.showHiringBanner=!1;Yr(this.session,"weAreHiring")&&lG(this.principalTypes,this.session.getUserEmail(),!0).then(function(b){a.showHiringBanner=b.detailedUserType==="UNRESTRICTED_GOOGLER";a.cdr.detectChanges()}).catch(function(){})};W0c.\u0275fac=function(a){return new (a||W0c)};
W0c.\u0275cmp=B({type:W0c,selectors:[["b-hiring-banner"]],standalone:!1,features:[hh([NA])],decls:1,vars:1,consts:[["title","See jobs related to Buganizer","href","http://goto.google.com/buganizer-hiring","target","_blank",1,"hiring-banner"]],template:function(a,b){a&1&&E(0,olb,2,0,"a",0);a&2&&F(b.showHiringBanner?0:-1)},styles:[".hiring-banner[_ngcontent-%COMP%]{background:#a02160;color:#fff!important;display:block;font-size:.6875rem;left:50px;overflow:hidden;padding-bottom:3px;position:absolute;text-align:center;top:-76px;-webkit-transform:rotate(-45deg) translate(-100%);transform:rotate(-45deg) translate(-100%);-webkit-transform-origin:0 0;transform-origin:0 0;width:10em;z-index:1000}"],
changeDetection:0});var HY=function(){};HY.\u0275fac=function(a){return new (a||HY)};HY.\u0275mod=Jf({type:HY});HY.\u0275inj=Tc({imports:[ZB]});var IY=function(){this.hotkeys=n(nH)};IY.prototype.ngOnInit=function(){this.hotkeys.pause()};IY.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};IY.\u0275fac=function(a){return new (a||IY)};
IY.\u0275cmp=B({type:IY,selectors:[["b-hotkeys-dialog"]],standalone:!1,decls:9,vars:0,consts:[["mat-dialog-title",""],["mat-button","","mat-dialog-close","","type","button",1,"medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Keyboard shortcuts"),J(),I(2,"mat-dialog-content")(3,"table"),Dg(4,qlb,7,1,"thead",null,Cg),J()(),I(6,"mat-dialog-actions")(7,"button",1),Q(8,"Close"),J()());a&2&&(z(4),Eg(Buc(b.hotkeys)))},
dependencies:[PA,Tx,uK,wK,yK,xK],encapsulation:2});var JY=function(){};JY.\u0275fac=function(a){return new (a||JY)};JY.\u0275mod=Jf({type:JY});JY.\u0275inj=Tc({imports:[ZB,$B,$K]});var Tr=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Tr.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};Tr.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Tr.prototype.toString=function(){return this.toApiUrlParam()};var Wr=function(a,b){this.fieldId=a;this.direction=b};Wr.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};Wr.prototype.toString=function(){return this.toApiUrlParam()};var KY=function(a,b,c){this.internalIssues=a;this.params=b;this.responseMetadata=c;this.numResults=this.responseMetadata.numTotalResults;this.numPages=Math.ceil(this.numResults/b.resultsPerPage);this.startIndex=(b.page-1)*b.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+b.resultsPerPage-1,this.numResults);this.maySkipResults=this.responseMetadata.maySkipResults;this.totalText=this.responseMetadata.totalSizeAccurate?this.numResults.toString():"many";this.changed$=new tj(this)},X0c=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=Ncb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new KY(d,a,b)};KY.prototype.hasPreviousPage=function(){return this.params.page>1};KY.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var LY=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},Y0c=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=LY(a,c.issueId);e!==-1&&(e-=a.startIndex,Mcb(a.issues[e],c,d))}a.changed$.next(a)},Z0c=function(a,b,c,d){b=LY(a,b);b!==-1&&(b-=a.startIndex,d!==void 0&&(a.issues[b].lastViewedTime=d!=null?d:null),c!==void 0&&(a.issues[b].isRead=c),c===void 0&&d===void 0&&(a.issues[b].isRead=!!a.issues[b].lastViewedTime&&
a.issues[b].lastViewedTime>=a.issues[b].majorModifiedTime));a.changed$.next(a)};KY.prototype.clone=function(){var a=new KY(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};ea.Object.defineProperties(KY.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var MY=function(){this.issueApi=n(BE);this.hotlistApi=n(ED);this.paths=n(EN)};MY.prototype.create=function(a){return new $0c(this.issueApi,this.hotlistApi,this.paths,a)};MY.\u0275fac=function(a){return new (a||MY)};MY.\u0275prov=Sc({token:MY,factory:MY.\u0275fac,providedIn:"root"});
var $0c=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise=this.searchResultsPage=null},NY=function(a){if(a.params.page<1)return Promise.reject(Error("rf"));if(!a.resultPromise)if(a.params.hotlistId)a.resultPromise=a.hotlistApi.getPagedHotlistContent(a.params.hotlistId,a.params.page,a.params.resultsPerPage,a.params.sortColumns,a.params.trackerIds);else{var b={p:a.params.page,count:a.params.resultsPerPage,trackerIds:a.params.trackerIds},c=QUa(a.params.sortColumns);
c&&(b.s=c);var d;a.resultPromise=a.issueApi.listIssues((d=a.params.query)!=null?d:"",b)}return a.resultPromise.then(function(e){a.searchResultsPage||(a.searchResultsPage=X0c(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},a1c=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var OY=function(){this.$window=n(jK);this.searchResultsPageFetcherFactory=n(MY);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},c1c=function(a,b){var c=gk();b1c(b.page)?(a.setSearchParams(b),NY(a.currentResultsFetcher).then(function(d){d.numPages&&b.page>d.numPages?c.reject(d.numPages):c.resolve(d)},function(d){c.reject(d)})):c.reject(1);return c.promise},e1c=function(a){var b=gk(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=d1c(a);c?(a.setSearchParams(c),NY(a.currentResultsFetcher).then(function(d){b.resolve(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},f1c=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},g1c=function(a,b){var c=gk();a.focusedIssueIndex=-1;if(!a.currentResultsFetcher)return c.reject("No search results available."),c.promise;var d=Math.floor((b-1)/a.currentResultsFetcher.params.resultsPerPage)+
1;if(Math.abs(d-a.currentResultsFetcher.params.page)>1)return c.reject("Requested index is out of range."),c.promise;var e=Qj(a.currentResultsFetcher.params);e.page=d;a.setSearchParams(e);NY(a.currentResultsFetcher).then(function(f){a:{if(b>=f.startIndex&&b<=f.endIndex){var h=b-f.startIndex;if(h<f.issues.length){f=f.issues[h].issueId;break a}}f=void 0}f?(a.focusedIssueIndex=b,c.resolve(f)):c.reject("No issue available at index "+b)},function(f){c.reject(f)});return c.promise};
OY.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var h1c=function(a){a.currentResultsFetcher?NY(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){Nj("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},d1c=function(a){if(a=a.$window.sessionStorage.getItem("buganizer.searchParams")){a=JSON.parse(a);if(!a.query||!a.page||!a.resultsPerPage)return null;a.sortColumns&&(a.sortColumns=a.sortColumns.map(function(b){return new Wr(new Tr(b.fieldId),b.direction)}));return a}return null},
i1c=function(a,b,c){b=Qj(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},j1c=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=i1c(a,b,b.page),NY(a.currentResultsFetcher).catch(function(c){Nj("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=i1c(a,b,b.page-1),Zi(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:NY(c)}).catch(function(c){Nj("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
a1c(a.currentResultsFetcher)&&(a.nextResultsFetcher=i1c(a,b,b.page+1),Zi(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:NY(c)}).catch(function(c){Nj("unexpected error fetching:",c)}))};
OY.prototype.setSearchParams=function(a){a.page=Vj(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("sf");this.previousResultsFetcher&&a.page===this.previousResultsFetcher.params.page?(this.nextResultsFetcher=this.currentResultsFetcher,this.currentResultsFetcher=this.previousResultsFetcher,this.previousResultsFetcher=null):this.nextResultsFetcher&&a.page===this.nextResultsFetcher.params.page&&(this.previousResultsFetcher=this.currentResultsFetcher,this.currentResultsFetcher=this.nextResultsFetcher,
this.nextResultsFetcher=null);if(this.currentResultsFetcher){var b=this.currentResultsFetcher.params;a.page===b.page&&a.query===b.query&&Pj(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&Pj(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:f1c(this)}j1c(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var b1c=function(a){var b=Vj(""+a);return isNaN(b)||b!=Number(a)||b<1||b>2147483647?!1:!0};OY.\u0275fac=function(a){return new (a||OY)};OY.\u0275prov=Sc({token:OY,factory:OY.\u0275fac,providedIn:"root"});var PY=function(){this.$window=n(jK);this.activeSession=n(Es)};PY.prototype.setTitle=function(a){a=Xr(a,this.activeSession.session);this.$window.document.title=a};PY.\u0275fac=function(a){return new (a||PY)};PY.\u0275prov=Sc({token:PY,factory:PY.\u0275fac,providedIn:"root"});var QY=function(){Z.apply(this,arguments);var a=this;this.paramsService=n(aL);this.issueFullFridge=n(EF);this.pageTitle=n(PY);this.accessIndicatorService=n(bP);this.newTitle$=this.paramsService.routeParams$.pipe(Xf(Pj),fg(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=hk(this.init)};Y(QY,Z);QY.\u0275dir=Z.\u0275dir;
QY.prototype.onRouteParamsChanged=function(a){return a.issueId?k1c(this,a.issueId):Ce()};var k1c=function(a,b){return Je([a.issueFullFridge.watch(b),gMc(a.accessIndicatorService,b).pipe(eg(void 0),Pf(function(){return Ce(void 0)}))]).pipe(eg([void 0,void 0]),y(function(c){c=l(c);var d=c.next().value;c=c.next().value;d=d==null?void 0:d.snapshot[0].title;if(!d)return"View issue";d=d+" ["+b+"]";if(c==null?0:c.displayText)d=d+" - "+c.displayText;return d}))};
QY.\u0275fac=function(){var a;return function(b){return(a||(a=fe(QY)))(b||QY)}}();QY.\u0275prov=Sc({token:QY,factory:QY.\u0275fac,providedIn:"root"});var o1c=function(a){var b=this;this.parentElement=a;this.lastTimestamp=this.state=this.y=this.x=0;this.animate=function(c){b.state!==3&&requestAnimationFrame(b.animate);if(!(c-b.lastTimestamp<30)){b.lastTimestamp=c;if(b.state===2){if(l1c(b),b.x<-50||b.x>document.documentElement.clientWidth+50||b.y<-50||b.y>document.documentElement.clientHeight+50)b.element.remove(),b.state=3}else{b.moveFlipCounter--;b.moveFlipCounter<=0&&(b.state===0?b.state=1:b.state===1&&(b.state=0),b.moveFlipCounter=50+100*Math.random(),
m1c(b));if(b.state===1)return;b.turnCounter--;b.turnCounter<=0&&(b.direction=360*Math.random(),b.turnCounter=40*Math.random());b.x<0&&b.direction>90&&b.direction<270&&(b.direction=(180-b.direction)%360);b.x>document.documentElement.clientWidth&&(b.direction<90||b.direction>270)&&(b.direction=(180-b.direction)%360);b.y<0&&b.direction>180&&(b.direction=360-b.direction);b.y>document.documentElement.clientHeight&&b.direction<180&&(b.direction=360-b.direction);l1c(b)}b.transform()}};this.speed=2+3*Math.random();
this.size=14+16*Math.random();this.turnCounter=40*Math.random();this.moveFlipCounter=50+100*Math.random();this.direction=360*Math.random();this.flip=1;this.element=this.createElement();m1c(this);n1c(this)};o1c.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
o1c.prototype.stop=function(){this.state=2;m1c(this);this.direction=Math.atan2(this.y-document.documentElement.clientHeight/2,this.x-document.documentElement.clientWidth/2)*180/Math.PI+(Math.random()-.5)*90;this.speed=15+10*Math.random()};
var n1c=function(a){var b=Math.floor(Math.random()*4);switch(b){case 0:a.x=document.documentElement.clientWidth*Math.random();a.y=-50;break;case 1:a.x=document.documentElement.clientWidth*Math.random();a.y=document.documentElement.clientHeight+50;break;case 2:a.x=document.documentElement.clientWidth+50;a.y=document.documentElement.clientHeight*Math.random();break;case 3:a.x=-50;a.y=document.documentElement.clientHeight*Math.random();break;default:console.warn("Illegal mode: "+b)}};
o1c.prototype.createElement=function(){var a=document.createElement("img");a.style.height=this.size+"px";a.style.width=this.size+"px";a.style.backgroundColor="transparent";a.style.zIndex="9999";a.style.position="fixed";a.style.top="0px";a.style.left="0px";return a};
var m1c=function(a){a.element.src=a.state===1?"https://www.gstatic.com/buganizer/img/v0/logo.svg":"https://www.gstatic.com/buganizer/img/v0/bug-move.svg"},l1c=function(a){a.flip*=-1;var b=a.direction*Math.PI/180;a.x+=Math.cos(b)*a.speed;a.y+=Math.sin(b)*a.speed};o1c.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var p1c=function(a){this.element=a;this.bugs=[]};p1c.prototype.start=function(){for(var a=this,b=0;b<3;b++)q1c(this);this.intervalSubscription=Vga(1E4).subscribe(function(){q1c(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};p1c.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=l(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};var q1c=function(a){var b=new o1c(a.element);b.start();a.bugs.push(b)};var RY=function(){var a=this;this.ngZone=n(ph);this.userPreferencesManager=n(OG);this.snackBar=n(fK);this.elementRef=n(ff);this.bugAnimation=new p1c(this.elementRef.nativeElement);this.destroyed$=new ag(1);this.active$=new tj(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(Xf(),gg(this.destroyed$)).subscribe(function(b){b?r1c(a):s1c(a)})};RY.prototype.ngOnInit=function(){document.visibilityState==="visible"&&t1c(this)};RY.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var t1c=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};RY.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),t1c(this))};RY.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var s1c=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){var b=Object.assign({},a.userPreferencesManager.bugScreensaverSubject$.value,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:b}).subscribe()});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},r1c=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};
RY.\u0275fac=function(a){return new (a||RY)};
RY.\u0275cmp=B({type:RY,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&M("click",function(){return b.onUserEvent()},hf)("keydown",function(){return b.onUserEvent()},hf)("mousemove",function(){return b.onUserEvent()},hf)("wheel",function(){return b.onUserEvent()},hf)("touchstart",function(){return b.onUserEvent()},hf)("focus",function(){return b.onUserEvent()},hf)("visibilitychange",function(){return b.onVisibilityChange()},yha)},standalone:!1,decls:0,vars:0,template:function(){},
encapsulation:2});var u1c=function(){var a=this;this.userPreferencesManager=n(OG);this.activeSession=n(Es);this.isEnabled$=this.userPreferencesManager.bugScreensaverSubject$.pipe(y(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};u1c.\u0275fac=function(a){return new (a||u1c)};
u1c.\u0275cmp=B({type:u1c,selectors:[["bug-screensaver-manager"]],standalone:!1,decls:2,vars:3,template:function(a,b){a&1&&(E(0,ulb,1,0,"bug-screensaver"),S(1,"async"));a&2&&F(T(1,1,b.isEnabled$)?0:-1)},dependencies:[RY,Qv],encapsulation:2});var SY=function(){};SY.\u0275fac=function(a){return new (a||SY)};SY.\u0275mod=Jf({type:SY});SY.\u0275inj=Tc({imports:[ZB,AQ,bH,kR]});var v1c=function(){this.activeSession=n(Es);this.currentTracker=this.activeSession.getTracker();var a,b;this.trackerName=(b=(a=this.currentTracker)==null?void 0:a.name)!=null?b:"";var c,d,e;this.trackerLogo=(e=(c=this.currentTracker)==null?void 0:(d=c.branding)==null?void 0:d.logoUrl)!=null?e:"";var f,h,k;this.trackerCoc=(k=(f=this.currentTracker)==null?void 0:(h=f.branding)==null?void 0:h.cocUrl)!=null?k:""};v1c.\u0275fac=function(a){return new (a||v1c)};
v1c.\u0275cmp=B({type:v1c,selectors:[["b-footer"]],standalone:!1,decls:1,vars:1,consts:[["href","https://policies.google.com/privacy","target","_blank"],[1,"padded-s-sides"],["href","https://policies.google.com/terms","target","_blank"],["alt","",1,"logo",3,"src"],[1,"title"],["id","code-of-conduct","target","_blank",3,"href"]],template:function(a,b){a&1&&E(0,xlb,9,2,"footer");a&2&&F(b.currentTracker||b.activeSession.isExternalSession()?0:-1)},styles:["footer[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.logo[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}a[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}a[_ngcontent-%COMP%]:hover{text-decoration:underline}.title[_ngcontent-%COMP%]{margin-right:56px}"]});var TY=function(){};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275mod=Jf({type:TY});TY.\u0275inj=Tc({imports:[ZB]});var UY=function(){var a=this;this.paths=n(EN);this.context=n(iL);this.activeSession=n(Es);this.componentFridge=n(jD);this.createIssuePath=this.paths.createIssue();this.currentTracker=this.activeSession.getTracker();this.component$=this.context.getComponentId().pipe(fg(function(d){return d?a.componentFridge.watch(d):Ce(void 0)}),y(function(d){return d&&!d.archived?d:void 0}));this.visibleOptions$=Je([this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(Wf(0),y(function(d){var e=
l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return w1c(a,a.currentTracker,d,f,e)}));this.buttonLabel$=this.visibleOptions$.pipe(y(function(d){return d.length?"Create":"Create Issue"}));var b,c;this.buttonIcon=((b=this.currentTracker)==null?void 0:(c=b.branding)==null?void 0:c.theme)==="OPEN_SOURCE"?"create-open-source-36px":"create-color-36px"};UY.prototype.ngOnInit=function(){};UY.prototype.trackClick=function(a){Po("create","click",a)};
var w1c=function(a,b,c,d,e){var f=new Map;b=b&&c&&b.trackerId&&b.trackerId!==c.trackerId;c=(c==null?0:c.componentId)?String(c.componentId):void 0;if(e!==null){var h={};f.set("in_same_hotlist",a.paths.createIssue((h.hotlistIds=String(e),h)))}b||c===void 0||(e={},f.set("in_same_component",a.paths.createIssue((e.component=c,e))));b||d===null||(e={},f.set("similar_to_current_issue",a.paths.createIssue((e.template_issue=d,e))),e={},f.set("blocked_by_current_issue",a.paths.createIssue((e.blockedByIssueIds=
d,e.component=c,e))),e={},f.set("blocking_current_issue",a.paths.createIssue((e.blockingIssueIds=d,e.component=c,e))),e={},f.set("parent_of_current_issue",a.paths.createIssue((e.childrenIssueIds=d,e.component=c,e))),e={},f.set("child_of_current_issue",a.paths.createIssue((e.parentIssueId=d,e.component=c,e))));return[].concat(p(f.entries())).map(function(k){var q=l(k);k=q.next().value;q=q.next().value;return{name:uua(k),path:q}})};UY.\u0275fac=function(a){return new (a||UY)};
UY.\u0275cmp=B({type:UY,selectors:[["b-create-issue-button"]],standalone:!1,decls:2,vars:3,consts:[[3,"label","icon","href","segments"],[3,"clickMain","clickSegment","label","icon","href","segments"]],template:function(a,b){a&1&&(E(0,zlb,2,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[IH,Qv],encapsulation:2,changeDetection:0});var VY=function(){this.router=n(DA);this.location=n(cI)},x1c=function(a){var b=a.location.getUrl();Nr(a.router,"/",{skipLocationChange:!0}).then(function(){return Nr(a.router,b,{skipLocationChange:!0})})};VY.\u0275fac=function(a){return new (a||VY)};VY.\u0275prov=Sc({token:VY,factory:VY.\u0275fac,providedIn:"root"});var XY=function(){Z.call(this);var a=this;this.reloadService=n(VY);this.activeSession=n(Es);this.bLocation=n(cI);this.paths=n(EN);this.issuePagination=n(OY);this.sidebarItemFactory=n(WY);this.appEvents=n(nD);this.analytics=n(CF);this.currentUserBookmarksFridge=n(OD);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(toc(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
y1c(a,b.hotlists);a.sidebarData.bookmarkGroups=z1c(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=y1c(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=z1c(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(uoc(this.currentUserBookmarksFridge).subscribe(function(b){b=A1c(a,b);a.sidebarData.userSearches=b;Hba(a.userSavedSearches);Iba(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(PD(this.currentUserBookmarksFridge).subscribe(function(b){B1c(a,
b);a.appEvents.sidebarUpdated.next()}))};Y(XY,Z);XY.\u0275dir=Z.\u0275dir;
var y1c=function(a,b){return b.map(function(c){return C1c(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},z1c=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new D1c(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},A1c=function(a,b){return b.map(function(c){return{id:String(c.searchId),name:c.name,adminUsers:c.adminUsers,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return E1c(a.sidebarItemFactory,c)})},B1c=function(a,b){b=b.map(function(c){c={id:String(c.hotlistId),name:c.name,description:c.description,adminUsers:c.adminUsers,starred:c.adminUsers.every(function(d){return d.emailAddress!==a.activeSession.getUserEmail()}),resourceType:"HOTLIST"};return C1c(a.sidebarItemFactory,c)});Hba(a.userHotlists);Iba(a.userHotlists,b)};
XY.prototype.onAnchorClick=function(a,b){var c,d=(c=b.target)==null?void 0:c.innerText;d=(d===void 0?"":d).replace(/\b(\d+)\b/g,"");this.analytics.trackEvent("nav","click",d.trim());b.metaKey||b.ctrlKey||b.shiftKey||b.button!==0||(f1c(this.issuePagination),VJc(this.paths,a)&&x1c(this.reloadService),this.bLocation.setUrl(a),b.preventDefault(),b.stopPropagation())};XY.\u0275fac=function(a){return new (a||XY)};XY.\u0275prov=Sc({token:XY,factory:XY.\u0275fac,providedIn:"root"});
var YY=function(a,b,c,d,e,f,h,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=h;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.adminUsers=a.adminUsers;this.starred=a.starred;this.userEmail=b.getUserEmail()};YY.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?Yj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
YY.prototype.isEditable=function(){return F1c(this)};YY.prototype.isSelected=function(){var a=this.paths,b=this.href;b=b.charAt(0)!=="/"?"/"+b:b;return a.bLocation.path()===b};YY.prototype.isUnstarable=function(){return!F1c(this)&&this.starred};
var F1c=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},G1c=function(a,b){var c=PG(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},H1c=function(a,b){Mq(a.butterBar,"Updating homepage...",0);Atc(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(Uf()).subscribe(function(){Mq(a.butterBar,"Homepage updated")})},I1c=function(a,b,c,d,e,f,h,k,q,u,A,G){YY.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=
f;this.errorHandler=u;this.confirmationDialogService=A;this.appEvents=G;this.href=Fq.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Y(I1c,YY);g=I1c.prototype;g.isPreferredHomepage=function(){return G1c(this,"HOTLIST")};g.setAsPreferredHomepage=function(){H1c(this,"HOTLIST")};
g.archive=function(){var a=this;Mq(this.butterBar,'Archiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!0;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});Mq(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;Mq(this.butterBar,'Unarchiving hotlist "'+this.name+'"...');this.hotlistApi.get(this.id).then(function(b){b.archived=!1;return a.hotlistApi.archiveHotlist(a.id,b)}).then(function(){a.appEvents.hotlistChanged.next({hotlistId:a.id});Mq(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Oi("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;Mq(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){Mq(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var ZY=function(a,b,c,d,e,f,h,k){YY.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};Y(ZY,YY);ZY.prototype.isUnstarable=function(){return!1};
ZY.prototype.unstar=function(){};ZY.prototype.isPreferredHomepage=function(){return G1c(this,"SAVED_SEARCH")};ZY.prototype.setAsPreferredHomepage=function(){H1c(this,"SAVED_SEARCH")};
var D1c=function(a,b,c,d,e,f,h,k,q,u,A,G){YY.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=u;this.confirmationDialogService=A;this.appEvents=G;this.items=[];a=l(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(C1c(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(E1c(this.sidebarItemFactory,b))}this.items.sort(function(H,N){return H.name.localeCompare(N.name)})};Y(D1c,YY);g=D1c.prototype;
g.isPreferredHomepage=function(){return G1c(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){H1c(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;Mq(this.butterBar,'Archiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!0;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});Mq(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;Mq(this.butterBar,'Unarchiving bookmark group "'+this.name+'"...');this.bookmarkGroupsApi.get(this.id).then(function(b){b.archived=!1;return a.bookmarkGroupsApi.update(b)}).then(function(){a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.id});Mq(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Oi("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;Mq(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){Mq(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var WY=function(){this.activeSession=n(Es);this.userApi=n(ID);this.bookmarkGroupsApi=n(RC);this.hotlistApi=n(ED);this.errorHandler=n(DK);this.paths=n(EN);this.analytics=n(CF);this.butterBar=n(iK);this.userPreferencesManager=n(OG);this.confirmationDialogService=n(AK);this.appEvents=n(nD)},C1c=function(a,b){return new I1c(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},E1c=
function(a,b){return new ZY(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};WY.\u0275fac=function(a){return new (a||WY)};WY.\u0275prov=Sc({token:WY,factory:WY.\u0275fac,providedIn:"root"});var $Y=function(){this.prefs=n(OG);this.expanded=!0;this.content=this.header=null;this.onExpand=new LA};$Y.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!Ctc(this.prefs,this.prefKey))};$Y.prototype.onClick=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(2);c={};return x(d,Ge(Btc(a.prefs,(c[a.prefKey]=!b,c))),2)}a.expanded&&a.onExpand.next();ze(d)})};$Y.\u0275fac=function(a){return new (a||$Y)};
$Y.\u0275cmp=B({type:$Y,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content",prefKey:"prefKey"},outputs:{onExpand:"onExpand"},standalone:!1,decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(I(0,"div",0),M("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();
return c.preventDefault()}),C(1,Alb,1,0,"ng-container",1),J(),E(2,Clb,1,1,"ng-container"));a&2&&(wg("opened",b.expanded)("closed",!b.expanded),ng("aria-expanded",b.expanded),z(),D("ngTemplateOutlet",b.header),z(),F(b.expanded?2:-1))},dependencies:[Pv],encapsulation:2});var J1c=function(){return[]},aZ=function(){var a=this;this.location=n(dw);this.starredTeamsService=n(QG);this.bLocation=n(cI);this.triageService=n(TG);this.sidebar=n(XY);this.routeParamsService=n(aL);this.teamExperimentalFieldsFridge=n(CG);this.teamFridge=n(DG);this.ROUTES=Fq;this.ALL_PHASES=Qlc;this.phaseToUrlSlug=Or;this.triageTeamIdFromUrl$=this.routeParamsService.routeParams$.pipe(y(function(b){return b.phase&&b.teamId}));this.triageIdFromUrl$=this.routeParamsService.routeParams$.pipe(y(function(b){return b.phase&&
b.triageId}));this.triageViewFromUrl$=Je([this.triageTeamIdFromUrl$,this.triageIdFromUrl$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&c)return{teamId:b,triageId:c}}));this.sidebarTriagePreferences$=Je([this.starredTeamsService.starredTriageViews$,this.triageViewFromUrl$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[].concat(p(b),[c]).filter(Tk)}),y(function(b){return ik(b,function(c){return c.teamId+":"+c.triageId})}));this.teamExperiments$=this.sidebarTriagePreferences$.pipe(y(function(b){return b.map(function(c){return c.teamId})}),
y(function(b){return jk(b.filter(Tk))}),fg(function(b){return a.teamExperimentalFieldsFridge.watchSet(b)}),y(function(b){return new Map(b.map(function(c){return[c.id,c]}))}));this.teamIdToTriageViews$=this.teamExperiments$.pipe(y(function(b){return Eua(b,function(c){return fk(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=Je([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=[];d=l(d);for(var e=d.next();!e.done;e=
d.next()){e=e.value;var f=e.teamId,h=e.triageId,k=void 0,q=(k=b.get(f))==null?void 0:k.get(Number(h));q?(h=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:jIa(h,f,q)})):console.log("triage not found",f,h)}return c}))},Mlb=function(a,b,c){return a.routeParamsService.routeParams$.pipe(y(function(d){return!(d.teamId!==b||d.triageId!==c||!d.phase&&!a.location.path().endsWith("issue-themes"))}))};
aZ.prototype.isTriageUrlFor=function(a,b,c){return this.location.path().startsWith(Fq.viewTriage.makeHref(a,c,Or[b],""))};aZ.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(Fq.triageSettings.makeHref())};aZ.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};aZ.\u0275fac=function(a){return new (a||aZ)};
aZ.\u0275cmp=B({type:aZ,selectors:[["nav-sidebar-triage"]],standalone:!1,decls:2,vars:4,consts:[["mainZippyHeader",""],["mainZippyContent",""],["triageMenu",""],["triageZippyHeader",""],["triageZippyContent",""],[1,"canned-searches"],[3,"href"],["svgIcon","story-point-24px",1,"canned-search-icon"],["prefKey","nav-triage",3,"header","content"],[1,"chip-new"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Configure triage",1,"bv2-nav-item-menubutton",3,"click","matMenuTriggerFor"],
["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],[1,"triage-teams-list"],[3,"title"],[3,"onExpand","header","content","expanded"],[1,"bv2-nav-item","bv2-nav-triage-team","full-width"],[1,"bv2-nav-item-text","no-indent"],[1,"bv2-nav-links-no-indent","triage-team-phase-list"],[1,"bv2-nav-item",3,"selected-indented","title"],["title","Issue Themes",1,"bv2-nav-item"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",
3,"href"],["svgIcon","issue-status-new",1,"vertical-centered","icon-s"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",3,"click","href"],[1,"margin-left-auto"]],template:function(a,b){a&1&&(E(0,Qlb,2,1),S(1,"async"));if(a&2){var c,d;F((c=(d=T(1,1,b.triageSidebarEntries$))!=null?d:ih(3,J1c))?0:-1,c)}},dependencies:[aB,PA,Ux,UG,XG,VG,WG,YG,HL,$Y,Qv],styles:[".triage-teams-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.triage-teams-list[_ngcontent-%COMP%]   .bv2-nav-item-text[_ngcontent-%COMP%]{padding-right:0}.chip-new[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-size:.6875rem;line-height:1.2307692308;line-height:16px;border-radius:8px;margin-left:8px;padding:0 6px;background-color:#1a73e8;background-color:var(--primary-btn-bg);color:#fff;color:var(--text-inverse)}\n/*# sourceMappingURL=nav_sidebar_triage.css.map */"]});var bZ=function(){this.location=n(cI);this.analytics=n(CF);this.paths=n(EN);this.sidebar=n(XY);this.bookmarkGroups=[];this.hotlists=[]};g=bZ.prototype;g.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.setUrl(Iq(Fq.viewDashboard.routeDeclarationPath,{id:a}))};g.openEditHotlist=function(a){this.location.setUrl(Fq.editHotlist.makeHref(a))};
g.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};g.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};bZ.\u0275fac=function(a){return new (a||bZ)};
bZ.\u0275cmp=B({type:bZ,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},standalone:!1,decls:1,vars:1,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["groupMenu",""],["hotlistMenu",""],["prefKey","nav-archived",3,"header","content"],[1,"archived-list"],[3,"title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[3,"header","content"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,
"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],
["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click","href"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Hotlist actions",
1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&E(0,fmb,7,2,"div");a&2&&F(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[aB,PA,Ux,UG,XG,VG,WG,YG,$Y],encapsulation:2,changeDetection:0});var cZ=function(){this.admins=[]};cZ.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Bk(this.bookmarkGroup.adminUsers)};cZ.\u0275fac=function(a){return new (a||cZ)};
cZ.\u0275cmp=B({type:cZ,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},standalone:!1,decls:14,vars:6,consts:[["role","dialog","aria-label","Bookmark group hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bookmark-group-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),J()(),I(6,"ul")(7,"li"),Q(8),J(),I(9,"li"),Q(10),J()(),I(11,"div")(12,"p"),Q(13),J()()()()());a&2&&(z(4),
D("href",b.url,uf),z(),ch(b.bookmarkGroup.name),z(3),R("ID: ",b.bookmarkGroup.bookmarkGroupId),z(2),dh("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),z(3),ch(b.bookmarkGroup.description))},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bookmark-group-card[_ngcontent-%COMP%]{max-width:450px}.bookmark-group-card[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:5px 0}.bookmark-group-card[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;padding:0;margin:5px 0}"]});var K1c=["searchBox"],dZ=function(){this.cdr=n(NA,{self:!0});this.activeSession=n(Es);this.userApi=n(ID);this.bookmarkGroupsApi=n(RC);this.hotlistApi=n(ED);this.paths=n(EN);this.analytics=n(CF);this.errorHandler=n(DK);this.appEvents=n(nD);this.currentUserBookmarksFridge=n(OD);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new LA;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.currentUserEmail=
this.activeSession.getUserEmail();this.query="";this.matches=[]};dZ.prototype.ngOnInit=function(){this.allowStarring&&L1c(this)};dZ.prototype.onSpace=function(a){var b;if((b=this.autocomplete)==null?0:b.activeOption)this.toggleStar(this.autocomplete.activeOption.value),a.preventDefault(),a.stopPropagation()};
var L1c=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();Ge(toc(a.currentUserBookmarksFridge)).then(function(b){if(a.showGroups)for(var c=l(b.bookmarkGroups),d=c.next();!d.done;d=c.next()){d=d.value;d.starred&&a.favoriteBookmarkGroups.add(d.id);var e=void 0;d=l((e=d.sublinks)!=null?e:[]);for(e=d.next();!e.done;e=d.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}if(a.showHotlists)for(b=l(b.hotlists),c=b.next();!c.done;c=b.next())c=c.value,c.starred&&a.favoriteHotlists.add(c.id);
a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g=dZ.prototype;g.reset=function(){this.query="";this.matches=[]};g.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};g.onQueryChange=function(){this.matches=[];this.query&&typeof this.query!=="string"&&(this.query="");this.search()};
g.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=l(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=l(e),k=h.next();!k.done;k=h.next()){k=k.value;var q=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(q);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(q)}h=
l(f);for(k=h.next();!k.done;k=h.next())k=k.value,q=k.hotlistId,k.href=Fq.viewHotlist.makeHref(q),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(q);a.matches=[].concat(p(e),p(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!Bk(a.adminUsers).includes(this.currentUserEmail)};
g.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();L1c(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(this.analytics.trackEvent("hotlistSearch","starItem"),this.userApi.addUserBookmark(c).then(e)):(this.analytics.trackEvent("hotlistSearch","unstarItem"),this.userApi.removeUserBookmark(c).then(e))};
dZ.\u0275fac=function(a){return new (a||dZ)};
dZ.\u0275cmp=B({type:dZ,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(Wg(K1c,5),Wg(AM,5));if(a&2){var c;$g(c=ah())&&(b.searchBoxEl=c.first);$g(c=ah())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},standalone:!1,features:[hh([NA])],decls:14,vars:5,consts:[["searchBox",""],["auto","matAutocomplete"],["itemHovercard",
"onedevHovercard"],[1,"bv2-hotlist-search"],["id","hotlist-search-input-box","type","text","placeholder","Enter query","role","combobox",3,"ngModelChange","keydown.space","ngModel","matAutocomplete"],[1,"bv2-hotlist-search-dropdown",3,"optionSelected"],[1,"bv2-hotlist-search-dropdown-item",3,"value"],[1,"bv2-hotlist-search-subtext"],[1,"flex-kids-x","align-items-center","gap-xxs"],[3,"starMessage","unStarMessage","starred"],[3,"hotlist"],[3,"bookmarkGroup"],[1,"bv2-hotlist-name",3,"onedevHovercardTrigger"],
[3,"starClicked","starMessage","unStarMessage","starred"]],template:function(a,b){if(a&1){var c=r();I(0,"div",3)(1,"input",4,0);gh("ngModelChange",function(d){t(c);fh(b.query,d)||(b.query=d);return v(d)});M("ngModelChange",function(){t(c);return v(b.onQueryChange())})("keydown.space",function(d){t(c);return v(b.onSpace(d))});J();E(3,gmb,1,0,"b-spinner");I(4,"mat-autocomplete",5,1);M("optionSelected",function(d){t(c);b.itemSelect.emit(d.option.value);return v()});Dg(6,kmb,9,7,"mat-option",6,Cg);J();
I(8,"div",7);Q(9,' e.g., "foo bar admin:user@google.com" ');K(10,"br");Q(11,' or "foo bar admin:group@google.com" ');K(12,"br");Q(13," Only identities directly listed as Admins can be searched. ");J()()}a&2&&(a=L(5),z(),eh("ngModel",b.query),D("matAutocomplete",a),ng("autofocus",b.focusOnInit)("aria-label","Add query for searching "+(b.showGroups?"bookmark groups":"hotlists")),z(2),F(b.isLoading()?3:-1),z(3),Eg(b.matches))},dependencies:[cZ,fU,fJ,lJ,ON,wS,Li,oy,vy,xM,zM,Lx,AM],encapsulation:2});var eZ=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new LA};eZ.\u0275fac=function(a){return new (a||eZ)};
eZ.\u0275cmp=B({type:eZ,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&Wg(TM,5);if(a&2){var c;$g(c=ah())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:[0,"aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},standalone:!1,decls:4,vars:2,consts:[["popup",""],["matTooltip","Search","dialogLabel","Search",3,"xapInlineDialogClick"],["svgIcon","search"],[3,"itemSelect","showGroups","showHotlists","allowStarring",
"focusOnInit"]],template:function(a,b){a&1&&(I(0,"xap-icon-trigger",1),K(1,"mat-icon",2),J(),C(2,lmb,3,4,"ng-template",null,0,nh));a&2&&(a=L(3),D("xapInlineDialogClick",a),ng("aria-label",b.ariaLabel))},dependencies:[aB,PM,OM,YA,cB,TM,WM,dZ],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var fZ=function(){this.location=n(cI);this.analytics=n(CF);this.paths=n(EN);this.sidebar=n(XY);this.bookmarkGroups=[]};fZ.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};fZ.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.setUrl(Iq(Fq.viewDashboard.routeDeclarationPath,{id:a}))};
fZ.prototype.editBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};fZ.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};fZ.\u0275fac=function(a){return new (a||fZ)};
fZ.\u0275cmp=B({type:fZ,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},standalone:!1,decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["topMenu",""],["innerMenu",""],[1,"bv2-nav-section"],["prefKey","nav-bkg",3,"header","content"],["aria-label","Search for bookmark groups",3,"itemSelect","click","showHotlists"],[1,"bookmark-group-list"],[3,"title"],[3,"header","content","expanded"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,
"click"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&
1&&(I(0,"div",6),K(1,"hr"),I(2,"sidebar-zippy",7),C(3,mmb,3,1,"ng-template",null,0,nh)(5,Bmb,1,1,"ng-template",null,1,nh),J()());if(a&2){a=L(4);var b=L(6);z(2);D("header",a)("content",b)}},dependencies:[aB,eZ,PA,Ux,UG,XG,VG,WG,YG,$Y],encapsulation:2,changeDetection:0});var gZ=function(){Z.call(this);var a=this;this.location=n(cI);this.activeSession=n(Es);this.analytics=n(CF);this.sidebar=n(XY);this.paths=n(EN);this.routerEvents=n(BF);this.cdr=n(qv);this.mcPrefs=n(yX);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.userEmail=this.activeSession.getUserEmail();this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};Y(gZ,Z);gZ.\u0275dir=Z.\u0275dir;gZ.prototype.getUserEmail=function(){return this.userEmail};
gZ.prototype.openEditHotlist=function(a){this.location.setUrl(Fq.editHotlist.makeHref(a))};gZ.prototype.addToMissionControl=function(a){this.mcPrefs.addHotlist(a);this.location.setUrl(this.paths.home())};gZ.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};gZ.\u0275fac=function(a){return new (a||gZ)};
gZ.\u0275cmp=B({type:gZ,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[kg],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section"],["prefKey","nav-hotlists",3,"header","content"],["aria-label","Search for hotlists",3,"itemSelect","click","showGroups"],[1,"hotlist-list"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click",
"href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Hotlist actions keep-focus-ring",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"],["svgIcon","star-empty",1,"icon-s"]],template:function(a){a&1&&(I(0,"div",
3),K(1,"hr"),I(2,"sidebar-zippy",4),C(3,Cmb,3,1,"ng-template",null,0,nh)(5,Kmb,1,1,"ng-template",null,1,nh),J()());if(a&2){a=L(4);var b=L(6);z(2);D("header",a)("content",b)}},dependencies:[aB,eZ,PA,Ux,UG,XG,VG,WG,YG,$Y],encapsulation:2,changeDetection:0});var hZ=function(){Z.call(this);var a=this;this.cdr=n(NA,{self:!0});this.location=n(cI);this.savedSearchApi=n(MD);this.paths=n(EN);this.butterBar=n(iK);this.analytics=n(CF);this.sidebar=n(XY);this.errorHandler=n(DK);this.routerEvents=n(BF);this.confirmationDialogService=n(AK);this.appEvents=n(nD);this.mcPrefs=n(yX);this.activeSession=n(Es);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.searches=[];this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};
Y(hZ,Z);hZ.\u0275dir=Z.\u0275dir;hZ.prototype.openEditSavedSearch=function(a){this.location.setUrl(this.paths.editSavedSearch(a))};hZ.prototype.addToMissionControl=function(a){zX(this.mcPrefs,D9a(a));this.location.setUrl(this.paths.home())};
var Omb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Oi("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){M1c(a,b)}})},M1c=function(a,b){var c=b.id;Mq(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});Mq(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches",
"deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,d)})};hZ.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};hZ.\u0275fac=function(a){return new (a||hZ)};
hZ.\u0275cmp=B({type:hZ,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},standalone:!1,features:[hh([NA]),kg],decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["menu",""],[1,"bv2-nav-section","bv2-nav-section-savedsearches"],["prefKey","nav-ss",3,"header","content"],[1,"saved-search-list"],[1,"bv2-nav-item",3,"selected","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-item-link",3,"click","href"],[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple",
"true","aria-label","Saved search actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["svgIcon","settings",1,"icon-s"],["svgIcon","delete",1,"icon-s"],["svgIcon","home",1,"icon-s"],["svgIcon","save",1,"icon-s"]],template:function(a){a&1&&(I(0,"div",3),K(1,"hr"),I(2,"sidebar-zippy",4),C(3,Lmb,2,0,"ng-template",null,0,nh)(5,Smb,1,1,"ng-template",null,
1,nh),J()());if(a&2){a=L(4);var b=L(6);z(2);D("header",a)("content",b)}},dependencies:[aB,PA,Ux,UG,XG,VG,WG,YG,$Y],encapsulation:2,changeDetection:0});var N1c=function(){};N1c.\u0275fac=function(a){return new (a||N1c)};
N1c.\u0275cmp=B({type:N1c,selectors:[["ng-component"]],decls:0,vars:0,template:function(){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,
changeDetection:0});var iZ=function(){this._ngZone=n(ph);this._elementRef=n(ff);this._ariaDescriber=n(Bw);this._renderer=n(jv);this._animationsDisabled=Hi();this._idGenerator=n(Gw);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=n(jw);this._document=n(Ei);var a=n(kw);a.load(N1c);a.load(lw)};g=iZ.prototype;
g.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};g.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;(a=this._inlineBadgeDescription)==null||a.remove()}Cw(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
g._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
g._createBadgeElement=function(){var a=this._renderer.createElement("span");a.setAttribute("id",this._idGenerator.getId("mat-badge-content-"));a.setAttribute("aria-hidden","true");a.classList.add("mat-badge-content");this._animationsDisabled&&a.classList.add("_mat-animation-noopable");this._elementRef.nativeElement.appendChild(a);typeof requestAnimationFrame!=="function"||this._animationsDisabled?a.classList.add("mat-badge-active"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a.classList.add("mat-badge-active")})});
return a};g._updateRenderedContent=function(a){a=(""+(a!=null?a:"")).trim();this._isInitialized&&a&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement());this._badgeElement&&(this._badgeElement.textContent=a);this._content=a};
g._updateDescription=function(a){Cw(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?mcc(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
g._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;(a=this._badgeElement)==null||a.appendChild(this._inlineBadgeDescription)};g._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
g._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};g._clearExistingBadges=function(){for(var a=l(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
ea.Object.defineProperties(iZ.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(a){this._setColor(a);this._color=a}},content:{configurable:!0,enumerable:!0,get:function(){return this._content},set:function(a){this._updateRenderedContent(a)}},description:{configurable:!0,enumerable:!0,get:function(){return this._description},set:function(a){this._updateDescription(a)}}});iZ.\u0275fac=function(a){return new (a||iZ)};
iZ.\u0275dir=Kf({type:iZ,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&wg("mat-badge-overlap",b.overlap)("mat-badge-above",b.position.indexOf("below")===-1)("mat-badge-below",b.position.indexOf("below")!==-1)("mat-badge-before",b.position.indexOf("before")!==-1)("mat-badge-after",b.position.indexOf("before")===-1)("mat-badge-small",b.size==="small")("mat-badge-medium",b.size==="medium")("mat-badge-large",b.size==="large")("mat-badge-hidden",b.hidden||
!b.content)("mat-badge-disabled",b.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",Dh],disabled:[2,"matBadgeDisabled","disabled",Dh],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",Dh]}});var jZ=function(){var a=this;this.cdr=n(NA,{self:!0});this.activeSession=n(Es);this.butterBar=n(iK);this.appSearchState=n(mX);this.paths=n(EN);this.userPreferencesManager=n(OG);this.sidebar=n(XY);this.location=n(dw);this.appEvents=n(nD);this.missionControlPrefs=n(yX);this.needsAttentionTaskFridge=n(hG);this.bLocation=n(cI);this.ROUTES=Fq;this.appName=this.activeSession.getAppName();this.userEmail=this.activeSession.getUserEmail();this.environmentType=this.activeSession.getEnvironmentType();this.missionControlTaskCount$=
this.appEvents.missionControlTaskCount;this.assignedPath=this.paths.listIssues({q:d_c(this.userEmail)});this.starredPath=this.paths.listIssues({q:this.appSearchState.getStarred()});this.ccdPath=this.paths.listIssues({q:"cc:"+this.userEmail});this.collaborateOnPath=this.paths.listIssues({q:"collaborator:"+this.userEmail});this.verifiedPath=this.paths.listIssues({q:f_c(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=Fq.listComponents.makeHref();
this.createBookmarkGroupPath=this.paths.createBookmarkGroup();this.missionControlPath=this.paths.home();this.sidebarData=this.sidebar.sidebarData;this.enableTriageView=Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enableMissionControlInExternalEnvironments=Yr(this.activeSession,"enableMissionControlInExternalEnvironments");this.enableHomepage=!this.activeSession.isAnonymous()&&(this.activeSession.isInternalSession()||this.enableMissionControlInExternalEnvironments);
this.paths.listIssues({q:"vote:true"});this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(y(function(d){return(d||tC).homepagePreferences}));this.hasPreferredHomepage$=this.homepagePreferences$.pipe(y(function(d){return!(!d||!d.resourceType)}),Xf());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(y(function(d){return d.resourceType==="MISSION_CONTROL"}),Xf());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(y(function(d){return!a.enableHomepage&&!d.resourceType||
d.resourceType==="ASSIGNED_TO_ME"}),Xf());this.hideBadgeInNav$=this.userPreferencesManager.preferences$.pipe(y(function(d){var e;return d==null?void 0:(e=d.missionControlPreferences)==null?void 0:e.hideBadgeInNav}),y(Boolean));this.destroyed$=new LA;var b,c=!!this.location.path().match(/^\/home\b/)&&!((b=this.missionControlPrefs.prefs.collapsed)==null?0:b["needs-attention-wrapper"]);Yr(this.activeSession,"runQueryForSidebarIssueCount")&&setTimeout(function(){a.enableHomepage&&!c&&Je([a.missionControlPrefs.needsAttentionTimeBoundary$,
a.missionControlPrefs.needsAttentionSources$,a.missionControlPrefs.needsAttentionFilteredSignals$]).pipe(Xf(function(d,e){return Pj(d,e)}),fg(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;f=f.map(function(h){return ep(h)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:d,sources:f,signalFilter:0,filterSignals:e})}),y(function(d){return d.results.length}),gg(a.destroyed$)).subscribe(function(d){a.appEvents.missionControlTaskCount.next(d)})},1E3)};
jZ.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(gg(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};jZ.prototype.ngOnDestroy=function(){this.destroyed$.next()};var Wmb=function(a,b){Mq(a.butterBar,"Updating homepage...",0);Atc(a.userPreferencesManager,{resourceType:b}).subscribe(function(){Mq(a.butterBar,"Homepage updated")})};jZ.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};
jZ.prototype.isTriageUrlFor=function(a){if(!this.location.path().match(/^\/triage\b/))return!1;a=new RegExp("\\b"+a+"\\b");return!!this.location.path().match(a)};jZ.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(Fq.triageSettings.makeHref())};jZ.\u0275fac=function(a){return new (a||jZ)};
jZ.\u0275cmp=B({type:jZ,selectors:[["b-sidebar"]],standalone:!1,features:[hh([NA])],decls:50,vars:31,consts:[["menu",""],["homepageMenu",""],[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","mission-control-sidebar-link",1,"bv2-nav-item",3,"selected"],["id","assigned-to-me-sidebar-link",1,"bv2-nav-item"],[3,"click","href"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],["type","button","mat-icon-button",
"","disableRipple","true","aria-label","Assigned issues actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["matMenuContent",""],["svgIcon","star-filled",1,"canned-search-icon"],["svgIcon","person-add-18px",1,"canned-search-icon"],["svgIcon","user-attributes",1,"canned-search-icon"],["svgIcon","issue-status-fixed",1,"canned-search-icon"],[3,"bookmarkGroups"],[3,"searches"],[3,"hotlists"],[3,"hotlists","bookmarkGroups"],[1,"bv2-nav-manage-link"],[3,"href"],["id","mission-control-sidebar-link",
1,"bv2-nav-item"],["svgIcon","home","matBadgeColor","warn","matBadgeSize","small",1,"canned-search-icon",3,"matBadge","matBadgeHidden","matBadgeDescription"],["svgIcon","home",1,"canned-search-icon"],["type","button","mat-icon-button","","disableRipple","true","aria-label","More settings",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"]],template:function(a,b){if(a&1){var c=r();
I(0,"div",2);K(1,"b-create-issue-button");J();I(2,"div",3)(3,"div",4)(4,"ul",5);E(5,Ymb,12,11,"li",6);I(6,"li",7)(7,"a",8);M("click",function(d){t(c);return v(b.onAnchorClick(b.assignedPath,d))});K(8,"mat-icon",9);Q(9," Assigned to me ");J();E(10,Zmb,2,1,"button",10);S(11,"async");I(12,"mat-menu",null,0);C(14,$mb,2,0,"ng-template",11);J()();I(15,"li")(16,"a",8);M("click",function(d){t(c);return v(b.onAnchorClick(b.starredPath,d))});K(17,"mat-icon",12);Q(18," Starred by me ");J()();I(19,"li")(20,"a",
8);M("click",function(d){t(c);return v(b.onAnchorClick(b.ccdPath,d))});K(21,"mat-icon",13);Q(22," CC'd to me ");J()();I(23,"li")(24,"a",8);M("click",function(d){t(c);return v(b.onAnchorClick(b.collaborateOnPath,d))});K(25,"mat-icon",13);Q(26," Collaborating ");J()();I(27,"li")(28,"a",8);M("click",function(d){t(c);return v(b.onAnchorClick(b.reportedPath,d))});K(29,"mat-icon",14);Q(30," Reported by me ");J()();I(31,"li")(32,"a",8);M("click",function(d){t(c);return v(b.onAnchorClick(b.verifiedPath,d))});
K(33,"mat-icon",15);Q(34," To be verified ");J()()();E(35,anb,1,0,"nav-sidebar-triage");K(36,"sidebar-bookmark-groups",16)(37,"sidebar-saved-searches",17)(38,"sidebar-hotlists",18)(39,"sidebar-archived",19)(40,"hr");I(41,"div",20)(42,"a",21);Q(43," Create hotlist ");J()();I(44,"div",20)(45,"a",21);Q(46," Create bookmark group ");J()();I(47,"div",20)(48,"a",21);Q(49," Browse components ");J()()()()}a&2&&(z(5),F(b.enableHomepage?5:-1),z(),wg("selected",e_c(b.appSearchState,b.userEmail)),z(),D("href",
b.assignedPath,uf),z(3),F(T(11,29,b.isHomepageAssignedToMe$)?-1:10),z(5),wg("selected",b.appSearchState.isStarred()),z(),D("href",b.starredPath,uf),z(3),wg("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),z(),D("href",b.ccdPath,uf),z(3),wg("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),z(),D("href",b.collaborateOnPath,uf),z(3),wg("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),z(),D("href",b.reportedPath,uf),z(3),wg("selected",b.appSearchState.currentQuery===
f_c(b.userEmail)),z(),D("href",b.verifiedPath,uf),z(3),F(b.enableTriageView?35:-1),z(),D("bookmarkGroups",b.sidebarData.bookmarkGroups),z(),D("searches",b.sidebarData.userSearches),z(),D("hotlists",b.sidebarData.hotlists),z(),D("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),z(3),D("href",b.ROUTES.createHotlist.makeHref(),uf),z(3),D("href",b.createBookmarkGroupPath,uf),z(3),D("href",b.componentsPath,uf))},dependencies:[UY,aB,PA,Ux,UG,XG,VG,WG,YG,iZ,
aZ,bZ,fZ,gZ,hZ,Qv],encapsulation:2});var kZ=function(){};kZ.\u0275fac=function(a){return new (a||kZ)};kZ.\u0275mod=Jf({type:kZ});kZ.\u0275inj=Tc({imports:[ZB]});var lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=Jf({type:lZ});lZ.\u0275inj=Tc({imports:[ZB,kZ,iV,WJ,QN,rY,QM,cC,Ly,XM,EM]});var mZ=function(){};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275mod=Jf({type:mZ});mZ.\u0275inj=Tc({imports:[ZB,MH]});var nZ=function(){};nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275mod=Jf({type:nZ});nZ.\u0275inj=Tc({imports:[Aw,zx,zx]});var oZ=function(){};oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275mod=Jf({type:oZ});oZ.\u0275inj=Tc({imports:[mZ,ZB,lZ,$B,LH,nZ,uW,JA,RL]});var pZ=function(){this.executor=n(yC)};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275prov=Sc({token:pZ,factory:pZ.\u0275fac,providedIn:"root"});var qZ=function(){Z.apply(this,arguments);this.dialogRef=n(mK);this.tosApi=n(pZ);this.ackChecked=!1};Y(qZ,Z);qZ.\u0275dir=Z.\u0275dir;qZ.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(gg(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};qZ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(qZ)))(b||qZ)}}();
qZ.\u0275cmp=B({type:qZ,selectors:[["b-terms-of-service-dialog"]],standalone:!1,features:[kg],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"b-tos-content"],[3,"ngModelChange","ngModel"],["href","https://www.google.com/policies/terms/","target","_blank"],["href","/terms","target","_blank"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Google IssueTracker Terms of Service"),J(),I(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),
gh("ngModelChange",function(c){fh(b.ackChecked,c)||(b.ackChecked=c);return c}),J(),I(5,"span"),Q(6," I acknowledge and agree to the "),I(7,"a",3),Q(8,"Google Terms of Service"),J(),Q(9," and the "),I(10,"a",4),Q(11,"Google IssueTracker Conduct Policy"),J(),Q(12,". "),J()()(),I(13,"mat-dialog-actions")(14,"button",5),M("click",function(){return b.accept()}),Q(15," OK "),J()());a&2&&(z(4),eh("ngModel",b.ackChecked),z(10),D("disabled",!b.ackChecked))},dependencies:[oy,vy,PA,Tx,yM,CM,wK,yK,xK],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var rZ=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.matDialogService=n(tK)};Y(rZ,Z);rZ.\u0275dir=Z.\u0275dir;rZ.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&nK(this.matDialogService.open(qZ,{width:"400px",disableClose:!0})).pipe(gg(this.destroyed$))};rZ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(rZ)))(b||rZ)}}();
rZ.\u0275cmp=B({type:rZ,selectors:[["b-terms-of-service"]],standalone:!1,features:[kg],decls:0,vars:0,template:function(){},encapsulation:2});var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=Jf({type:sZ});sZ.\u0275inj=Tc({imports:[Ly,ZB,$B,GM,$K]});var tZ=function(){};tZ.\u0275fac=function(a){return new (a||tZ)};tZ.\u0275mod=Jf({type:tZ});tZ.\u0275inj=Tc({imports:[ZB,sZ]});var dnb=0;var O1c=uk("blinkers-activated"),P1c=tk("blinkers-activated"),Q1c=tk("log-xhrs-to-console"),R1c=uk("log-xhrs-to-console"),S1c=enb("debug-dom-mutation","var(--c400)"),T1c=enb("debug-ng-zone","var(--red-400)"),U1c=enb("debug-xhr","var(--green-500)",1200),V1c=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;dnb++;var d=156;d+=(dnb-1)*12;return function(e,f){f=f===void 0?b:f;var h,k=(h=document.getElementById(a))!=null?h:bnb(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=f;
k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),uZ=function(){var a=this;this.activityMonitor=n(KA);this.userActivity=n(OA);this.destroyed$=new bg;this.xhrLog=[];this.publicApi={isEnabled:this.isEnabled.bind(this),enable:this.enable.bind(this),disable:this.disable.bind(this)};this.onAnyClick=function(b){b.target.id==="debug-xhr"&&(b=!Q1c(),R1c(b),b?W1c(a):clearInterval(a.loggingInterval))};this.printXhrLog=function(){var b=a.xhrLog.length;if(b>0){var c=Array(b).fill("\u2588").join("");
console.log(window.location.pathname.padEnd(20)+" XHRs: "+c+" "+(b>0?"("+b+")":""))}a.xhrLog=[]};this.isEnabled()&&X1c(this)};uZ.prototype.ngOnDestroy=function(){Y1c(this)};uZ.prototype.isEnabled=function(){return P1c()};uZ.prototype.enable=function(){this.isEnabled()||(O1c(!0),X1c(this))};uZ.prototype.disable=function(){O1c(!1);Y1c(this)};
var X1c=function(a){a.activityMonitor.dom$.pipe(gg(a.destroyed$)).subscribe(function(){return void S1c()});Jjc(a.activityMonitor);a.activityMonitor.cdr$.pipe(gg(a.destroyed$)).subscribe(function(){return void T1c()});a.activityMonitor.xhr$.pipe(gg(a.destroyed$)).subscribe(function(){U1c();var b=a.xhrLog,c=Date.now();b.push(c);c=c===void 0?Date.now():c;var d=d===void 0?5E3:d;for(var e=0;e<b.length&&!(c-b[e]<=d);e++);b.splice(0,e)});a.userActivity.active$.pipe(gg(a.destroyed$)).subscribe(function(b){return void V1c(b)});
document.addEventListener("click",a.onAnyClick);Q1c()&&W1c(a)},Y1c=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},W1c=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275prov=Sc({token:uZ,factory:uZ.\u0275fac,providedIn:"root"});var vZ=function(){this.activeSession=n(Es);this.email=this.activeSession.getUserEmail();this.user=Hk(this.activeSession.getUserEmail())};vZ.\u0275fac=function(a){return new (a||vZ)};vZ.\u0275prov=Sc({token:vZ,factory:vZ.\u0275fac,providedIn:"root"});var wZ=function(){var a=this;this.activeSession=n(Es);this.appEvents=n(nD);this.ngZone=n(ph);this.window=n(jK);this.buganizerBlinkers=n(uZ);this.currentUser=n(vZ);this.routeParamsService=n(aL);this.componentPicker=n(iR);this.userPreferencesManager=n(OG);this.router=n(DA);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.starredTeamsService=n(QG);this.teamsService=n(yG);this.fridges=[n(HC),n(NC),n(SC),n(WC),n(aD),n(jD),n(oD),n(OD),n(UD),n(VD),n(CE),n(GE),n(HE),n(JD),n(ME),n(NE),n(WE),
n($E),n(EF),n(QF),n(gG),n(hG),n(iG),n(mG),n(nG),n(ND),n(sG),n(BG),n(CG),n(DG),n(IG)];this.getCurrentIssueId=function(){var b;return(b=a.routeParamsService.routeParams$.value)==null?void 0:b.issueId};this.getCurrentIssue=function(){return a.issueFullFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueEvents=function(){return a.eventsForIssueFridge.peek(a.getCurrentIssueId())};this.enableExternalMentionsFe=Yr(this.activeSession,"enableExternalMentionsFe");this.getCurrentIssueAsText=function(){var b=
a.getCurrentIssue();if(b==null)return"";var c,d=(c=a.eventsForIssueFridge.peek(b.issueId))==null?void 0:c.events;return qnb(a.enableExternalMentionsFe,b,d)}};
wZ.prototype.install=function(){var a=this;if(this.activeSession.isInternalSession()){var b=this;this.window.bedbug=Object.assign({},this,{ngZone:this.ngZone,appEvents:this.appEvents,router:this.router,requestKeeper:Ugc,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:dmc("debug-logging"),toggleOptOutExperiments:dmc("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,modals:{componentPicker:this.componentPicker},
setFlagOverrideForOneDay:iva,clearFlagOverride:jva,clearAllFlagOverrides:fva,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return em()},get initialPrefs(){return em().userPreferences},get currentPrefs(){return PG(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(em().config.enabledFlags)},
showFridgeGuts:function(){console.log("\ud83e\uddca Fridge: printing the values for each fridge. \nTo see details on cache age look for methods like debug() and debugTable() on each fridge instance.");console.log();b.fridges.forEach(function(c){var d=c.peekAllRecords();d!=null&&d.length!==0&&console.log(c.recordType,d)})},toggleVerboseFridge:function(){return knc=!knc},setTrackerOverride:function(c){tnb(String(c),1)},clearTrackerOverride:function(){tnb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},
getTeamExperiments:function(c){return itc(a.teamsService,c)},updateTeamExperiments:function(c){return jtc(a.teamsService,c)}})}};wZ.\u0275fac=function(a){return new (a||wZ)};wZ.\u0275prov=Sc({token:wZ,factory:wZ.\u0275fac,providedIn:"root"});var Z1c=function(a){this.delegate_=a};Z1c.prototype.getDelegate=function(){return this.delegate_};var $1c=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};Y($1c,Z1c);$1c.prototype.getTarget=function(){if(this.target_)return this.target_;for(var a=[],b=this.getDelegate().xb;b instanceof gbar.I&&b!=this.currentTarget_.getDelegate();)a.push(b.ic()),b=b.zb();for(b=this.currentTarget_;a.length>0;)b=HXc(b,a.pop());return this.target_=b};$1c.prototype.getType=function(){return this.getDelegate().xa};var a2c=function(a){this.delegate_=a};Y(a2c,Z1c);g=a2c.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ya,new $1c(f,e))},c)};g.listenOnce=function(){throw Error("tf");};g.unlisten=function(){throw Error("tf");};g.unlistenByKey=function(){throw Error("tf");};g.dispatchEvent=function(){throw Error("tf");};g.removeAllListeners=function(){throw Error("tf");};g.getParentEventTarget=function(){throw Error("tf");};
g.fireListeners=function(){throw Error("tf");};g.getListener=function(){throw Error("tf");};g.hasListener=function(){throw Error("tf");};a2c.prototype[yqc]=!0;var xZ=function(a){this.delegate_=a};Y(xZ,a2c);xZ.prototype.getHeight=function(){return this.getDelegate().pa()};xZ.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};xZ.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};xZ.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};var b2c=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Y(b2c,Z1c);b2c.prototype.then=function(a,b,c){var d;a&&(d=c2c(this,a));this.getDelegate().aa(d,b,c)};var c2c=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var yZ=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};Y(yZ,Z1c);yZ.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new b2c(this.getDelegate().bh()));return this.gapiPromise_};yZ.getInstance=function(){var a="instance_";yZ.instance_&&yZ.hasOwnProperty(a)?a=yZ.instance_:(a=new yZ,yZ.instance_=a);return a};
var d2c=function(){return new Promise(function(a){window.gbar||(window.gbar={});if(window.gbar.a)return a(yZ.getInstance());(new Promise(function(b){window.gbar.ap=b})).then(function(){return a(yZ.getInstance())})})};var zZ=function(){Z.apply(this,arguments);this.router=n(DA);this.window=n(jK)};Y(zZ,Z);zZ.\u0275dir=Z.\u0275dir;zZ.prototype.start=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return x(c,d2c(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new b2c(b.getDelegate().bf(),xZ));b.barPromise_.then(d,e)})).then(function(d){e2c(a,d)}))})};var e2c=function(a,b){a.router.events.pipe(Ve(Ij),gg(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
zZ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(zZ)))(b||zZ)}}();zZ.\u0275prov=Sc({token:zZ,factory:zZ.\u0275fac,providedIn:"root"});var AZ=function(){Z.apply(this,arguments);var a=this;this.paramsService=n(aL);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.handlers$=this.paramsService.routeParams$.pipe(Xf(Pj),fg(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=hk(this.init)};Y(AZ,Z);AZ.\u0275dir=Z.\u0275dir;
AZ.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return w(function(e){if(e.nextAddress==1){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return x(e,Promise.all([b.issueFullFridge.poke(d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};AZ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(AZ)))(b||AZ)}}();AZ.\u0275prov=Sc({token:AZ,factory:AZ.\u0275fac,providedIn:"root"});var BZ=function(){var a=n(BF);Z.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(gg(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};Y(BZ,Z);BZ.\u0275dir=Z.\u0275dir;BZ.prototype.start=function(){var a=this;document.addEventListener("scroll",function(b){b&&b.target&&(b=b.target.className,a.scrollTimingMap.has(b)?a.scrollTimingMap.get(b).push(Date.now()):a.scrollTimingMap.set(b,[Date.now()]))},!0)};BZ.\u0275fac=function(a){return new (a||BZ)};
BZ.\u0275prov=Sc({token:BZ,factory:BZ.\u0275fac,providedIn:"root"});var f2c=["leftSidebar"],CZ=function(){Z.call(this);var a=this;this.appSearchState=n(mX);this.appEvents=n(nD);this.performanceToClearcut=n(zF);this.window=n(jK);this.issueComments=n(VK);this.oneGoogleBar=n(zZ);this.scrollTiming=n(BZ);this.pageTitleUpdaterService=n(QY);this.pageLoadOptimizerService=n(AZ);this.bedbugService=n(wZ);this.userActivity=n(OA);this.activatedRoute=n(sj);this.router=n(DA);this.bLocation=n(cI);this.reloadService=n(VY);this.activeSession=n(Es);this.hotkeys=n(nH);this.paths=n(EN);
this.userPrefs=n(OG);this.issuePagination=n(OY);this.userFeedback=n(JS);this.matDialogService=n(tK);this.renderer=n(jv);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();this.navigationEnd$=this.router.events.pipe(Ve(Ij));this.hideAppChrome=!1;this.bedbugService.install();this.userActivity.install();wk("enableGapiRedirect")&&slb();arc(this.performanceToClearcut);this.subscriptions.add(this.appEvents.onClickAppMenuIcon.subscribe(function(){var u;
(u=a.leftSidebar)==null||u.toggle()}));this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(gg(this.destroyed$)).subscribe(function(u){u=Bnb(u.density);u!==a.densityClass&&(a.renderer.addClass(document.body,u),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=u)});this.subscriptions.add(j_c(this.appSearchState,function(u){a.doSearch(u)}));var b=[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var u=document.querySelector(".search-box-container .search-box");
u==null||u.focus();u==null||u.select()}},{keys:[vp("2"),KIa()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){a.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.bLocation.setUrl(c)}}];this.activeSession.isInternalSession()&&b.push({keys:[wp("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[wp("g","h")],displayAs:"g then h",description:'Go to "Home"',
onPress:function(){a.bLocation.setUrl(a.paths.home())}});var c=this.paths.createIssue(),d=this.paths.listIssues({q:d_c(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:f_c(this.activeSession.getUserEmail())}),h=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),q=this.paths.listIssues({q:"vote:true"});b.push({keys:[wp("g","a")],displayAs:"g then a",
description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},{keys:[wp("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[wp("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(h)}},{keys:[wp("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[wp("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',
onPress:function(){a.bLocation.setUrl(q)}},{keys:[wp("g","v")],displayAs:"g then v",description:'Go to "To be verified"',onPress:function(){a.bLocation.setUrl(f)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:[],displayAs:"Alt+Right",description:"Opens hovercard (if available)",onPress:function(){}},{keys:["?",JIa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(IY,
{minWidth:512})}});this.subscriptions.add(oH(this.hotkeys,{title:"General",hotkeys:b}));this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(Uf(),gg(this.destroyed$)).subscribe(function(u){a.dismissedMessageId=u.bannerMessageId||"";var A;a.sidebarWidth=((A=u.layoutPreferences)==null?void 0:A.leftSidebarWidth)||220});this.oneGoogleBar.start();KFa()&&(Epc!=null&&Epc.disconnect(),Epc=new UFa.PerformanceObserver(ZFa),Epc.observe({entryTypes:["measure"]}));setTimeout(rlb,
6E4);this.scrollTiming.start();this.pageTitleUpdaterService.initOnce();this.pageLoadOptimizerService.initOnce();this.window.emergencyBugjugglerWorkaround={session:this.activeSession,issueComments:this.issueComments};g2c(this);this.subscriptions.add(this.navigationEnd$.subscribe(function(){g2c(a)}))};Y(CZ,Z);CZ.\u0275dir=Z.\u0275dir;
var ynb=function(a,b){var c;return w(function(d){if(d.nextAddress==1){if(b===a.sidebarWidth)return d.return();a.sidebarWidth=b;return x(d,Ge(a.userPrefs.layoutPreferences$),2)}c=d.yieldResult;return x(d,Ge(a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})),0)})};CZ.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=VJc(this.paths,a);f1c(this.issuePagination);b&&x1c(this.reloadService);this.bLocation.setUrl(a)};
var vnb=function(a){a.announcement!==null&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(Uf(),gg(a.destroyed$)).subscribe())};CZ.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
var g2c=function(a){var b,c=(b=a.activatedRoute.snapshot.firstChild)==null?void 0:b.routeConfig;a.hideAppChrome=c&&c.hideAppChrome?!0:!1;a.hideAppChrome?a.renderer.addClass(document.body,"hide-topbar"):a.renderer.removeClass(document.body,"hide-topbar")};CZ.\u0275fac=function(a){return new (a||CZ)};
CZ.\u0275cmp=B({type:CZ,selectors:[["app-root"]],viewQuery:function(a,b){a&1&&Wg(f2c,5);if(a&2){var c;$g(c=ah())&&(b.leftSidebar=c.first)}},standalone:!1,features:[kg],decls:2,vars:1,consts:[["leftSidebar",""],["role","main",1,"full-width","full-height"],[1,"bv2-announce-bar"],[1,"bv2-content","flex-kids-x","border-top"],["id","main-app-nav",3,"size"],["id","skiplink-navigation-target","role","main",1,"flex","pos-rel"],"aria-live polite role status aria-atomic true".split(" "),[3,"innerHtml"],["role",
"button","tabindex","0",1,"announce-dismiss"],["role","button","tabindex","0",1,"announce-dismiss",3,"keydown.enter","keydown.space","click"],["id","main-app-nav",3,"widthChanged","size"]],template:function(a,b){a&1&&E(0,unb,2,0,"div",1)(1,Anb,10,2);a&2&&F(b.hideAppChrome?0:1)},dependencies:function(){return[Wz,u1c,v1c,W0c,PH,jZ,rZ,V0c]},encapsulation:2});var DZ=function(){};DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275mod=Jf({type:DZ});
DZ.\u0275inj=Tc({imports:[ZB,SY,kR,TY,$B,HY,JY,XH,oZ,tZ]});var EZ=function(){};EZ.\u0275fac=function(a){return new (a||EZ)};EZ.\u0275mod=Jf({type:EZ});EZ.\u0275inj=Tc({imports:[ZB]});var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=Jf({type:FZ});FZ.\u0275inj=Tc({imports:[ZB,$B,$K,PN,bH,EZ]});var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=Jf({type:GZ});GZ.\u0275inj=Tc({imports:[UL,dM,$B,ZB]});var HZ=function(){};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275mod=Jf({type:HZ});HZ.\u0275inj=Tc({imports:[ZB,LH,RL,vM,EL,$B,aN,GM,Ly,GZ]});var IZ=function(){};IZ.\u0275fac=function(a){return new (a||IZ)};IZ.\u0275mod=Jf({type:IZ});IZ.\u0275inj=Tc({imports:[Yv]});var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=Jf({type:JZ});JZ.\u0275inj=Tc({imports:[Yv,VJ,OU]});var KZ=function(){};KZ.\u0275fac=function(a){return new (a||KZ)};KZ.\u0275mod=Jf({type:KZ});KZ.\u0275inj=Tc({imports:[Yv,YB,VJ,Ly,IZ,JZ,$Q]});var LZ=function(){};LZ.\u0275fac=function(a){return new (a||LZ)};LZ.\u0275mod=Jf({type:LZ});LZ.\u0275inj=Tc({imports:[ZB,$K,KZ,HZ,Ly,GZ,$B,cC]});var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=Jf({type:MZ});MZ.\u0275inj=Tc({imports:[ZB,dM,GM,$B,$K,XJ,FQ,QN,FL]});var h2c=new Map([["name","Name"],["description","Description"],["parentComponentId","Parent component ID"],["slo","SLO"],["team","Team"],["commentEditState","Editable comments"],["isArchived","Archived"],["defaultTemplateId","Default template ID"],["retentionSettings","Retention Settings"]]),i2c=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),Enb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),Fnb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),NZ=function(){this.$log=n(MA);this.activeSession=n(Es);this.sessionIsInternal=this.activeSession.isInternalSession()};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275prov=Sc({token:NZ,factory:NZ.\u0275fac,providedIn:"root"});var Hnb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var j2c=new yd("GMAT_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var k2c=function(a){this.options=a};k2c.\u0275fac=function(a){return new (a||k2c)(zf(j2c))};k2c.\u0275dir=Kf({type:k2c,selectors:[["mat-paginator"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-paginator",!b.options.disableGmatStyle)},standalone:!1});var OZ=function(){this.changes=new bg;this.itemsPerPageLabel="Items per page:";this.nextPageLabel="Next page";this.previousPageLabel="Previous page";this.firstPageLabel="First page";this.lastPageLabel="Last page";this.getRangeLabel=function(a,b,c){if(c==0||b==0)return"0 of "+c;c=Math.max(c,0);a*=b;return a+1+" \u2013 "+(a<c?Math.min(a+b,c):a+b)+" of "+c}};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275prov=Sc({token:OZ,factory:OZ.\u0275fac,providedIn:"root"});
var l2c={provide:OZ,deps:[[new Wu,new Xu,OZ]],useFactory:function(a){return a||new OZ}};var m2c=new yd("MAT_PAGINATOR_DEFAULT_OPTIONS"),PZ=function(){var a=this;this._intl=n(OZ);this._changeDetectorRef=n(qv);this._pageSizeLabelId=n(Gw).getId("mat-paginator-page-size-label-");this._isInitialized=!1;this._initializedStream=new ag(1);this._length=this._pageIndex=0;this._pageSizeOptions=[];this.showFirstLastButtons=this.hidePageSize=!1;this.selectConfig={};this.disabled=!1;this.page=new hv;this.initialized=this._initializedStream;var b=this._intl,c=n(m2c,{optional:!0});this._intlChanges=
b.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()});if(c){var d=c.pageSize,e=c.pageSizeOptions,f=c.hidePageSize,h=c.showFirstLastButtons;d!=null&&(this._pageSize=d);e!=null&&(this._pageSizeOptions=e);f!=null&&(this.hidePageSize=f);h!=null&&(this.showFirstLastButtons=h)}this._formFieldAppearance=(c==null?void 0:c.formFieldAppearance)||"outline"};g=PZ.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._updateDisplayedPageSizeOptions();this._initializedStream.next()};
g.ngOnDestroy=function(){this._initializedStream.complete();this._intlChanges.unsubscribe()};g.nextPage=function(){this.hasNextPage()&&this._navigate(this.pageIndex+1)};g.hasPreviousPage=function(){return this.pageIndex>=1&&this.pageSize!=0};g.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&this.pageSize!=0};g._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};
g._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};g._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
g._updateDisplayedPageSizeOptions=function(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
g._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};g._navigate=function(a){var b=this.pageIndex;a!==b&&(this.pageIndex=a,this._emitPageEvent(b))};g._buttonClicked=function(a,b){b||this._navigate(a)};
ea.Object.defineProperties(PZ.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(a||0,0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=a||0;this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(a||0,0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return Eh(b,0)});this._updateDisplayedPageSizeOptions()}}});PZ.\u0275fac=function(a){return new (a||PZ)};
PZ.\u0275cmp=B({type:PZ,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Eh],length:[2,"length","length",Eh],pageSize:[2,"pageSize","pageSize",Eh],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Dh],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Dh],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Dh]},outputs:{page:"page"},exportAs:["matPaginator"],
decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive",
"",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],
["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",
3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],
template:function(a,b){a&1&&(I(0,"div",1)(1,"div",2),E(2,Nnb,5,4,"div",3),I(3,"div",4)(4,"div",5),Q(5),J(),E(6,Onb,3,5,"button",6),I(7,"button",7),M("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),Vd(),I(8,"svg",8),K(9,"path",9),J()(),Wd(),I(10,"button",10),M("click",function(){return b._buttonClicked(b.pageIndex+1,b._nextButtonsDisabled())}),Vd(),I(11,"svg",8),K(12,"path",11),J()(),E(13,Pnb,3,5,"button",12),J()()());a&2&&(z(2),F(b.hidePageSize?-1:2),z(3),
R(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),z(),F(b.showFirstLastButtons?6:-1),z(),D("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("disabled",b._previousButtonsDisabled())("tabindex",b._previousButtonsDisabled()?-1:null),ng("aria-label",b._intl.previousPageLabel),z(3),D("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("disabled",b._nextButtonsDisabled())("tabindex",b._nextButtonsDisabled()?-1:null),
ng("aria-label",b._intl.nextPageLabel),z(3),F(b.showFirstLastButtons?13:-1))},dependencies:[Xy,zP,Lx,Ux,cB],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],
encapsulation:2,changeDetection:0});var QZ=function(){this.paths=n(EN);this.ROUTES=Fq;this.children=[];this.onVisit=new LA;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};QZ.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=B({type:QZ,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},standalone:!1,decls:4,vars:1,consts:[["card","onedevHovercard"],[3,"length","pageSize","pageSizeOptions"],[1,"component-children"],[3,"page","length","pageSize","pageSizeOptions"],[1,"keep-underline","keep-focus-ring",3,"click","onedevHovercardTrigger","href"],[3,"componentId"]],template:function(a,b){a&1&&(E(0,Qnb,1,3,"mat-paginator",1),I(1,"ul",2),Dg(2,Rnb,6,4,"li",null,Cg),
J());a&2&&(F(b.children.length>b.pageSize?0:-1),z(2),Eg(b.childrenOnPage))},dependencies:[fJ,lJ,lN,k2c,PZ],encapsulation:2});var RZ=function(){};RZ.\u0275fac=function(a){return new (a||RZ)};RZ.\u0275mod=Jf({type:RZ});RZ.\u0275inj=Tc({providers:[l2c],imports:[Vx,xQ,bC,PZ]});var SZ=function(){};SZ.\u0275fac=function(a){return new (a||SZ)};SZ.\u0275mod=Jf({type:SZ});SZ.\u0275inj=Tc({providers:[mNc],imports:[RZ]});var TZ=function(){};TZ.\u0275fac=function(a){return new (a||TZ)};TZ.\u0275mod=Jf({type:TZ});TZ.\u0275inj=Tc({imports:[ZB,WJ,BW,SZ]});var UZ=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new LA;this.onClickCopyIssueShortLinks=new LA;this.onClickCopyAsIssueSearch=new LA};UZ.\u0275fac=function(a){return new (a||UZ)};
UZ.\u0275cmp=B({type:UZ,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},standalone:!1,decls:10,vars:2,consts:[["splitMenu","matMenu"],["type","button","mat-button","","aria-label","Copy selected issue IDs",1,"medium","icon-only",3,"click"],["name",
"copy","size","small"],["type","button","mat-button","","aria-label","More copy issue ID options",1,"medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,b){if(a&1){var c=r();I(0,"b-button-group")(1,"button",1);M("click",function(){t(c);return v(b.onClickCopyIssueIds.emit())});K(2,"b-icon",2);J();I(3,"button",3);K(4,"b-icon",4);J();I(5,"mat-menu",null,0);E(7,Snb,2,
1,"button",5);I(8,"button",6);M("click",function(){t(c);return v(b.onClickCopyAsIssueSearch.emit())});Q(9," Copy as issue search ");J()()()}a&2&&(a=L(6),z(3),D("matMenuTriggerFor",a),z(4),F(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[UG,XG,VG,YG,PA,Tx,zY,CL],encapsulation:2,changeDetection:0});yMa(AMa(zMa(function(a){this._elementRef=a})));p(["disabled","disableRipple","color","tabIndex"]);var n2c=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var o2c=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new bg;this._afterOpened=new bg;this._onAction=new bg;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};g=o2c.prototype;g.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
g.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterDismissed=function(){return this._afterDismissed};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};var p2c=tLa("state",[eq("void, hidden",dq({transform:"scale(0.8)",opacity:0})),eq("visible",dq({transform:"scale(1)",opacity:1})),fq("* => visible",cq("150ms cubic-bezier(0, 0, 0.2, 1)")),fq("* => void, * => hidden",cq("75ms cubic-bezier(0.4, 0.0, 1, 1)",dq({opacity:0})))]);var q2c=0,VZ=function(a,b,c,d,e){this._isDisposed=!1;this._ngZone=a;this._elementRef=b;this._changeDetectorRef=c;this._platform=d;this.snackBarConfig=e;this._document=n(Ei);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new bg;this._onExit=new bg;this._onEnter=new bg;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+q2c++;this._live=e.politeness!=="assertive"||e.announcementMessage?e.politeness==="off"?"off":"polite":"assertive";
this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))};Y(VZ,qx);g=VZ.prototype;g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
g.onAnimationEnd=function(a){var b=a.fromState;a=a.toState;(a==="void"&&b!=="void"||a==="hidden")&&this._completeExit();if(a==="visible"){var c=this._onEnter;this._ngZone.run(function(){c.next();c.complete()})}};g.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};g.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)})};
g.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(Uf()).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};g._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals()};
g._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
g._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;(e=d)==null||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},a._announceDelay)})};VZ.\u0275fac=function(a){return new (a||VZ)(zf(ph),zf(ff),zf(qv),zf(ew),zf(n2c))};VZ.\u0275dir=Kf({type:VZ,viewQuery:function(a,b){a&1&&Wg(tx,7);if(a&2){var c;$g(c=ah())&&(b._portalOutlet=c.first)}},standalone:!1,features:[kg]});var WZ=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};g=WZ.prototype;g.openFromComponent=function(a,b){return this._attach(a,b)};g.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};
g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};g._attachSnackBarContainer=function(a,b){var c=zh({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:n2c,useValue:b}]});a=a.attach(new ox(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new n2c,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new o2c(b,e);if(a instanceof Tg)f.instance=b.attachTemplatePortal(new px(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new ox(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(gg(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
g._createOverlay=function(a){var b=new ex;b.direction=a.direction;var c=this._overlay.position().global(),d=a.direction==="rtl";d=a.horizontalPosition==="left"||a.horizontalPosition==="start"&&!d||a.horizontalPosition==="end"&&d;var e=!d&&a.horizontalPosition!=="center";d?c.left("0"):e?c.right("0"):kx(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return zh({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:o2c,useValue:b},{provide:bK,useValue:a.data}]})};ea.Object.defineProperties(WZ.prototype,{_openedSnackBarRef:{configurable:!0,enumerable:!0,get:function(){var a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}}});
WZ.\u0275fac=function(a){return new (a||WZ)(nd(vx),nd(zw),nd(Ze),nd(tw),nd(WZ,12),nd(UDc))};WZ.\u0275prov=Sc({token:WZ,factory:WZ.\u0275fac});var XZ=function(a,b){this.snackBarRef=a;this.data=b};XZ.prototype.action=function(){this.snackBarRef.dismissWithAction()};ea.Object.defineProperties(XZ.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});XZ.\u0275fac=function(a){return new (a||XZ)(zf(o2c),zf(bK))};
XZ.\u0275cmp=B({type:XZ,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&ng("mat-id-collision",null)},standalone:!1,decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,b){a&1&&(I(0,"span",0),Q(1),J(),C(2,Tnb,3,1,"div",1));a&2&&(z(),ch(b.data.message),z(),D("ngIf",b.hasAction))},dependencies:[Ov,TJ],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],
encapsulation:2,changeDetection:0});var YZ=function(){VZ.apply(this,arguments)};Y(YZ,VZ);YZ.\u0275dir=VZ.\u0275dir;YZ.prototype._afterPortalAttached=function(){VZ.prototype._afterPortalAttached.call(this);this.snackBarConfig.horizontalPosition==="center"&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center");this.snackBarConfig.verticalPosition==="top"&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")};YZ.\u0275fac=function(){var a;return function(b){return(a||(a=fe(YZ)))(b||YZ)}}();
YZ.\u0275cmp=B({type:YZ,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&ila("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(bla("@state",b._animationState),ng("mat-id-collision",null))},standalone:!1,features:[kg],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(I(0,"div",0),C(1,Unb,0,0,"ng-template",1),J(),K(2,"div"));a&2&&(z(2),ng("aria-live",b._live)("role",b._role)("id",
b._liveElementId))},dependencies:[tx],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media(forced-colors: active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[p2c]}});var ZZ=function(){};ZZ.\u0275fac=function(a){return new (a||ZZ)};ZZ.\u0275mod=Jf({type:ZZ});ZZ.\u0275inj=Tc({imports:[yx,ux,Yv,VJ,zx,zx]});var $Z=function(a,b,c,d,e,f){WZ.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=XZ;this.snackBarContainerComponent=YZ;this.handsetCssClass="mat-snack-bar-handset"};Y($Z,WZ);$Z.\u0275fac=function(a){return new (a||$Z)(nd(vx),nd(zw),nd(Ze),nd(tw),nd($Z,12),nd(UDc))};$Z.\u0275prov=Sc({token:$Z,factory:$Z.\u0275fac,providedIn:ZZ});var r2c={duration:1E3},s2c=new yd("xap-clipboard-snackbar-options"),a_=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},t2c=function(a){var b,c,d,e;return w(function(f){if(f.nextAddress==1){b=Object.assign({},r2c,a.snackBarConfig);c=a.text;if(!a.clipboard.copy(c))return a.snackBar.open("Failed to copy.",void 0,b),f.jumpTo(0);if(typeof a.textJob==="string"||(d=a.textJob)==null||!d.richText)return f.jumpTo(3);e=a.textJob.richText instanceof Function?a.textJob.richText():
a.textJob.richText;if(typeof ClipboardItem!=="undefined"){var h=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([c],{type:"text/plain"})});h=navigator.clipboard.write([h])}else h=Promise.resolve();return x(f,h,3)}a.snackBar.open("Copied to clipboard.",void 0,b);ze(f)})};
ea.Object.defineProperties(a_.prototype,{text:{configurable:!0,enumerable:!0,get:function(){return typeof this.textJob==="object"?this.textJob.plainText instanceof Function?this.textJob.plainText():this.textJob.plainText:this.textJob}}});a_.\u0275fac=function(a){return new (a||a_)(zf(rO),zf($Z),zf(s2c,8))};a_.\u0275dir=Kf({type:a_,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&M("click",function(){return t2c(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var b_=function(){};b_.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};b_.\u0275fac=function(a){return new (a||b_)};
b_.\u0275cmp=B({type:b_,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&wg("xap-copy-button-unthemed",!b.color)},inputs:{copyText:"copyText",disabled:"disabled",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledBy:[0,"aria-labelledby","ariaLabelledBy"],ariaDescribedBy:[0,"aria-describedby","ariaDescribedBy"],tabIndex:[0,"tabindex","tabIndex"],color:"color"},decls:3,vars:7,consts:[["mat-icon-button","","type","button",3,"xapCopyToClipboard",
"disabled","color"],[1,"xap-clipboard-icon"]],template:function(a,b){a&1&&(I(0,"button",0)(1,"mat-icon",1),Q(2," content_copy "),J()());a&2&&(D("xapCopyToClipboard",b.copyText)("disabled",b.disabled)("color",b.color),ng("tabindex",b.tabIndex)("aria-label",b.getAriaLabel())("aria-labelledby",b.ariaLabelledBy)("aria-describedby",b.ariaDescribedBy))},dependencies:[Yv,VJ,TJ,YB,aB,ZZ,a_],encapsulation:2,changeDetection:0});var c_=function(){};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275mod=Jf({type:c_});c_.\u0275inj=Tc({imports:[b_]});var d_=function(){};d_.\u0275fac=function(a){return new (a||d_)};d_.\u0275mod=Jf({type:d_});d_.\u0275inj=Tc({imports:[ZB,LH,$B,CY,EL,c_]});var e_=function(){this.clipboard=n(rO);this.analytics=n(CF);this.butterBar=n(iK);this.window=n(jK);this.activeSession=n(Es);this.shortLinkPrefix=fm(this.activeSession.session)?"b/":"b-qa/"},wpb=function(a,b){a.clipboard.copy(b.join(", "));Mq(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},xpb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));Mq(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},ypb=function(a,b){b=Fq.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);Mq(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};e_.\u0275fac=function(a){return new (a||e_)};e_.\u0275prov=Sc({token:e_,factory:e_.\u0275fac,providedIn:"root"});var f_=function(){};f_.\u0275fac=function(a){return new (a||f_)};f_.\u0275mod=Jf({type:f_});f_.\u0275inj=Tc({imports:[ZB,WJ,BW]});var g_=function(){};g_.\u0275fac=function(a){return new (a||g_)};g_.\u0275mod=Jf({type:g_});g_.\u0275inj=Tc({imports:[ZB,Ly,$B,gO,GM,$K,HQ]});var h_=function(){this.componentActions=n(oN);this.errorHandler=n(DK);this.cdr=n(NA)};h_.prototype.showChildren=function(a){var b=this;a.showChildren=!0;a.children?this.cdr.detectChanges():this.componentActions.getChildren(a.componentId,this.includeArchived).then(function(c){a.children=c;c.length===0&&(a.noChildren=!0);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var i_=function(a,b){a.selectedId&&u2c(a,a.selectedId);a.selectedId=b;if(a=v2c(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},j_=function(a){if(!a.selectedId||a.selectedId<1)return null;var b;return(b=a.components.find(function(c){return c.componentId==a.selectedId}))!=null?b:null},w2c=function(a){return!a.selectedId||a.selectedId<1?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},u2c=function(a,b){b&&(a=v2c(a.selectedId))&&a.setAttribute("aria-selected",
"false")},v2c=function(a){return a?document.getElementById("component-"+a):null},x2c=function(a){for(a=a.target;;){if(!a)return!1;if(a.tagName==="A")return!0;a=a.parentNode}};h_.\u0275fac=function(a){return new (a||h_)};h_.\u0275cmp=B({type:h_,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var Ynb=function(a){return{q:a}},k_=function(){h_.apply(this,arguments);this.paths=n(EN);this.ROUTES=Fq;this.includeArchived=!1;this.childClosed=new LA;this.selectedId=null};Y(k_,h_);k_.prototype.ngOnInit=function(){};k_.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};k_.prototype.ngOnChanges=function(a){a.components&&y2c(this)};k_.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;i_(this,a);this.rootController.selectionChanged(this,a)};
var y2c=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};g=k_.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=w2c(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(u2c(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(i_(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else i_(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=w2c(this);a==0?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(i_(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=j_(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
g.showChildrenForSelectedId=function(){var a=j_(this);a&&this.showChildren(a)};g.setSelected=function(a,b){x2c(b)||(i_(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=j_(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};k_.\u0275fac=function(){var a;return function(b){return(a||(a=fe(k_)))(b||k_)}}();
k_.\u0275cmp=B({type:k_,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},standalone:!1,features:[hh([NA]),kg,Uu],decls:3,vars:0,consts:[[1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],
[1,"component-tree-toggle"],["matTooltip","Hide child components"],["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon",
"arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(I(0,"ol",0),Dg(1,eob,19,11,"li",1,Cg),J());a&2&&(z(),Eg(b.components))},dependencies:[aB,YA,cB,PA,Tx,ON,kN,sN,k_],encapsulation:2});var iob=function(a){return{q:a}},l_=function(){h_.call(this);this.paths=n(EN);this.hotkeys=n(nH);this.elementRef=n(ff);this.ROUTES=Fq;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new LA;this.subscriptions=new ke;this.destroyed$=new ag(1);this.registerKeys()};Y(l_,h_);g=l_.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;Se(0).pipe(gg(this.destroyed$)).subscribe(function(){z2c(a)&&!a.selectedId&&i_(a,a.components[0].componentId)});this.init.emit(this)};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};g.ngOnChanges=function(a){a.components&&A2c(this)};g.onSubtreeChildClosed=function(a){var b=this;i_(this,a);this.focusedController=void 0;Se(0).pipe(gg(this.destroyed$)).subscribe(function(){m_(b)})};
g.fireSelectionEvent=function(a){var b=v2c(a);b&&b.click();m_(this,a)};var A2c=function(a){Se(0).pipe(gg(a.destroyed$)).subscribe(function(){z2c(a)&&!a.selectedId&&i_(a,a.components[0].componentId)})};g=l_.prototype;g.selectionChanged=function(a,b){b&&m_(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&u2c(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){x2c(b)||(i_(this,a),this.selectionChanged(null),m_(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(){var a=this;this.subscriptions.add(oH(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){a.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){a.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){a.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",
description:"Close the components children",onPress:function(){a.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){a.toggleChildrenForSelectedId()}}]}))};g.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=j_(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=j_(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(j_(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=w2c(this);z2c(this)&&a>=1&&(i_(this,this.components[a-1].componentId),m_(this))}};
g.selectNext=function(){if(z2c(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=w2c(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(u2c(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(i_(this,this.components[a+1].componentId),m_(this))}else i_(this,this.components[0].componentId),m_(this)};
var m_=function(a,b){var c=B2c(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=v2c(b||a.selectedId)){b=B2c(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},B2c=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},z2c=function(a){return!!(a.components&&a.components.length>0)};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=B({type:l_,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},standalone:!1,features:[hh([NA]),kg,Uu],decls:3,vars:0,consts:[["role","tree",1,"components-list"],["tabindex","-1","role","treeitem","aria-selected","false",3,"id"],["tabindex","-1","role","treeitem","aria-selected","false",3,"click","id"],[1,"component-row"],[1,"selected-indicator"],[1,"component-tree-toggle"],["matTooltip","Hide child components"],
["matTooltip","Show child components"],[1,"component-info"],[1,"component-name",3,"href"],[3,"href"],[3,"accessLevel"],[3,"trackerId"],[1,"component-description"],[1,"component-buttons"],["mat-raised-button","","color","primary",3,"href"],["role","group","aria-expanded","true",1,"child-component-list"],["matTooltip","Hide child components",3,"click"],["svgIcon","arrow-dropdown"],["matTooltip","Show child components",3,"click"],["svgIcon","arrow-dropdown",2,"transform","rotate(-90deg)"],[1,"component-no-children"],
[1,"bv2-view-loading"],[3,"components","parentComponent","rootController","includeArchived"],[3,"childClosed","components","parentComponent","rootController","includeArchived"]],template:function(a,b){a&1&&(I(0,"ol",0),Dg(1,pob,19,10,"li",1,Cg),J());a&2&&(z(),Eg(b.components))},dependencies:[aB,YA,cB,PA,Tx,ON,kN,sN,k_],encapsulation:2});var n_=function(){};n_.\u0275fac=function(a){return new (a||n_)};n_.\u0275mod=Jf({type:n_});n_.\u0275inj=Tc({imports:[ZB,cC,$B,QN,HQ,eR]});var o_=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new LA;this.filter=function(){return!0}};o_.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=(((c=a.componentPathInfo)==null?void 0:c.allCustomField)||[]).filter(function(d){return b.filter(d)}).sort(function(d,e){return d.name.localeCompare(e.name)})}else this.customFields=null};o_.\u0275fac=function(a){return new (a||o_)};
o_.\u0275cmp=B({type:o_,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},standalone:!1,decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-custom-field-picker-select-box"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,"value"]],template:function(a,b){a&1&&(I(0,"div",0)(1,
"div",1),Q(2," First, select a component that contains the custom field. "),J(),I(3,"b-team-component-picker",2),M("selectedComponentChange",function(c){return b.onComponentSelect(c!=null?c:null)}),J(),E(4,uob,4,3,"div",3),J());a&2&&(z(3),D("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),z(),F(b.selectedComponent?4:-1))},dependencies:[rP,Xy,Qy,zP,Lx,YM,xN],encapsulation:2});var p_=function(){};p_.\u0275fac=function(a){return new (a||p_)};p_.\u0275mod=Jf({type:p_});
p_.\u0275inj=Tc({imports:[ZB,yQ,jR]});var C2c=function(a){return{value:a}},q_=function(){this.isNonemptyJsonDateValue=VEa};q_.prototype.toDate=function(a){return Ho(a)};q_.\u0275fac=function(a){return new (a||q_)};
q_.\u0275cmp=B({type:q_,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},standalone:!1,decls:6,vars:4,consts:[["null",""],["nonNull",""],[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","date",3,"date"]],template:function(a,b){a&1&&(I(0,"span",2),C(1,vob,1,0,"ng-container",3),J(),C(2,wob,0,0,"ng-template",null,0,nh)(4,Job,8,8,"ng-template",null,1,nh));a&2&&(a=L(5),z(),D("ngTemplateOutlet",b.customFieldValue==null?
null:a)("ngTemplateOutletContext",jh(2,C2c,b.customFieldValue)))},dependencies:[Pv,ZL],encapsulation:2});var r_=function(){};r_.\u0275fac=function(a){return new (a||r_)};r_.\u0275mod=Jf({type:r_});r_.\u0275inj=Tc({imports:[ZB,dM]});var s_=function(){this.documentationLinks=n(lK);this.userAccess=n(jE);this.errorHandler=n(DK);this.data=n(sK);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};s_.prototype.ngOnInit=function(){D2c(this,this.issuesToFlag)};
var D2c=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:kE(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);D2c(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};s_.\u0275fac=function(a){return new (a||s_)};
s_.\u0275cmp=B({type:s_,selectors:[["b-bulk-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],["target","_blank",1,"keep-underline",3,"href"],[1,"bv2-bulk-flag-as-spam-warning"],["mat-dialog-actions",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"disabled","mat-dialog-close"]],template:function(a,
b){a&1&&(I(0,"h1",0),Q(1,"Flag Issues as Spam"),J(),I(2,"div",1)(3,"div",2)(4,"p"),Q(5),I(6,"a",3),Q(7,"see here"),J(),Q(8,". "),J(),I(9,"p"),Q(10," This operation cannot be undone in bulk. "),J()(),I(11,"div",4),E(12,Kob,3,2,"div"),E(13,Mob,6,1,"div"),J()(),I(14,"div",5)(15,"button",6),Q(16," Close "),J(),I(17,"button",7),Q(18," Flag as Spam "),J()());a&2&&(z(5),R(" Flagging these ",b.issuesToFlag.length," issues as spam will cause them to drop out of regular search results, and they will be deleted after 30 days. For more information on remediating spam at scale, "),
z(),D("href",bEc(b.documentationLinks),uf),z(6),F(b.permissionsCheckComplete?-1:12),z(),F(b.permissionsCheckComplete&&b.protectedIssues.length>0?13:-1),z(4),D("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[PA,Tx,uK,wK,yK,xK],encapsulation:2});var t_=function(){this.cdr=n(NA,{self:!0});this.dialogRef=n(mK);this.component=null};t_.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};t_.prototype.save=function(){this.dialogRef.close(this.component)};t_.prototype.cancel=function(){this.dialogRef.close()};t_.\u0275fac=function(a){return new (a||t_)};
t_.\u0275cmp=B({type:t_,selectors:[["b-bulk-move-dialog"]],standalone:!1,features:[hh([NA])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"bv2-bulk-move-warning"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Change Component"),J(),I(2,"mat-dialog-content")(3,"p"),Q(4,"Choose new component for these issues."),J(),
I(5,"p",1),Q(6," Warning: If these issues have custom fields, their values will be lost if you move the issues outside the component subtree that defines those custom fields. "),J(),I(7,"b-team-component-picker",2),M("selectedComponentChange",function(c){return b.updateComponent(c!=null?c:null)}),J()(),I(8,"mat-dialog-actions")(9,"button",3),M("click",function(){return b.cancel()}),Q(10," Cancel "),J(),I(11,"button",4),M("click",function(){return b.save()}),Q(12," Save "),J()());a&2&&(z(7),D("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),z(4),D("disabled",b.component==null))},dependencies:[PA,Tx,wK,yK,xK,xN],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}mat-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text)}"]});var u_=function(){this.renderPanel=!0;this.sloEditCommit=new LA;this.closePicker=new LA;this.currentPickerDate=new bk};u_.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new bk(Aua(this.sloEditTime)))!=null?b:void 0}};u_.prototype.setDate=function(a){this.currentPickerDate=a};u_.\u0275fac=function(a){return new (a||u_)};
u_.\u0275cmp=B({type:u_,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},standalone:!1,features:[hh([NA]),Uu],decls:2,vars:3,consts:[[3,"clickOutside"],[3,"dateTimeChange","saveClicked","cancelClicked","renderPanel","dateTime","includeTimePicker"]],template:function(a,b){a&1&&(I(0,"div",0),M("clickOutside",function(){b.closePicker.emit()}),I(1,"b-date-time-picker-content",
1),M("dateTimeChange",function(c){return b.setDate(c)})("saveClicked",function(){var c=(c=b.currentPickerDate)?{seconds:c.getTime()/1E3,nanos:0}:null;b.sloEditCommit.emit({date:c!=null?c:null});b.closePicker.emit()})("cancelClicked",function(){b.closePicker.emit()}),J()());a&2&&(z(),D("renderPanel",b.renderPanel)("dateTime",b.currentPickerDate)("includeTimePicker",!0))},dependencies:[aV,IL],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{right:10px;z-index:100}[_nghost-%COMP%]     .mat-mdc-form-field{width:9rem;margin-left:1rem}/*# sourceMappingURL=slo_edit_date_time_picker.css.map */"],
changeDetection:0});var v_=function(){this.data=n(sK);this.dialogRef=n(mK);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};v_.prototype.close=function(){this.dialogRef.close(this.commitEvent)};v_.\u0275fac=function(a){return new (a||v_)};
v_.\u0275cmp=B({type:v_,selectors:[["b-edit-calendar-modal"]],standalone:!1,decls:3,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"sloEditCommit","closePicker","renderPanel"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"slo-edit-date-time-picker",1),M("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),J());a&2&&(z(),R("Edit ",b.fieldDisplayName),z(),D("renderPanel",!1))},dependencies:[wK,xK,u_],encapsulation:2});var w_=function(){this.data=n(sK);this.dialogRef=n(mK);this.fieldDisplayName=this.data.fieldDisplayName;this.effortSpec=this.data.effortSpec;this.numericEstimatedEffort="";this.effortSpecName=this.effortSpec.name;this.currentEnumLabel="";this.enumSpec=this.effortSpec.enumSpec;var a,b;this.enumOptions=(b=(a=this.enumSpec)==null?void 0:a.options)!=null?b:[];this.isEnumSpec=!!this.enumSpec;var c;this.allowedLabels=((c=this.enumOptions)!=null?c:[]).map(function(d){return d.label})};
w_.prototype.enableSubmit=function(){return this.isEnumSpec&&this.currentEnumLabel!==""||!this.isEnumSpec};w_.prototype.cancel=function(){this.dialogRef.close(void 0)};w_.prototype.save=function(){if(this.enumSpec)var a={estimate:this.currentEnumLabel};else a=this.numericEstimatedEffort,a={estimate:a.length===0||isNaN(Number(a))?"":String(Number(a))};this.dialogRef.close(a)};w_.\u0275fac=function(a){return new (a||w_)};
w_.\u0275cmp=B({type:w_,selectors:[["b-edit-estimated-effort-modal"]],standalone:!1,decls:9,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-top-field-label"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"],[3,"valueChange","value","includeEmptyOption","options"],["matInput","",3,"ngModelChange","keypress","ngModel"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),E(2,Nob,4,4,"div",1)(3,Oob,5,2,"mat-dialog-content"),I(4,"mat-dialog-actions")(5,
"button",2),M("click",function(){return b.cancel()}),Q(6," Cancel "),J(),I(7,"button",3),M("click",function(){return b.save()}),Q(8," Save "),J()());a&2&&(z(),R("Edit ",b.fieldDisplayName),z(),F(b.isEnumSpec?2:3),z(5),D("disabled",!b.enableSubmit()))},dependencies:[Li,oy,vy,PA,Tx,wK,yK,xK,$M,ez,Xy,Qy,YM,QU],encapsulation:2});var x_=function(){this.data=n(sK);this.dialogRef=n(mK);this.removeItems=this.addItems="";this.fieldDisplayName=this.data.fieldDisplayName};x_.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};x_.prototype.close=function(){this.dialogRef.close()};x_.\u0275fac=function(a){return new (a||x_)};
x_.\u0275cmp=B({type:x_,selectors:[["b-edit-item-modal"]],standalone:!1,decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"mat-dialog-content")(3,"p"),Q(4),J(),I(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),Q(8),J(),I(9,
"input",3),gh("ngModelChange",function(c){fh(b.addItems,c)||(b.addItems=c);return c}),J()(),K(10,"br"),I(11,"mat-form-field",2)(12,"mat-label"),Q(13),J(),I(14,"input",3),gh("ngModelChange",function(c){fh(b.removeItems,c)||(b.removeItems=c);return c}),J()()()(),I(15,"mat-dialog-actions")(16,"button",4),M("click",function(){return b.close()}),Q(17," Cancel "),J(),I(18,"button",5),M("click",function(){return b.save()}),Q(19," Save "),J()());a&2&&(z(),R("Edit ",b.fieldDisplayName),z(3),R("Enter ",b.fieldDisplayName,
" to add or remove"),z(4),R(" ",b.fieldDisplayName," to Add "),z(),eh("ngModel",b.addItems),z(4),R(" ",b.fieldDisplayName," to Remove "),z(),eh("ngModel",b.removeItems))},dependencies:[Li,oy,vy,PA,Tx,$M,ez,Xy,Qy,YM,wK,yK,xK],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var E2c=["hotlistFilterInput"],F2c=["hotlistCreate"],G2c=["hotlistApply"],H2c=["hotlistLoad"],I2c=["menuitem"],y_=function(){Z.apply(this,arguments);this.liveAnnouncer=n(zw);this.butterBar=n(iK);this.userAccess=n(jE);this.analytics=n(CF);this.activeSession=n(Es);this.cdr=n(NA,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new LA;this.onApply=new LA;this.onLoad=new LA;this.hotlistEditAcls={};this.validHotlistIds=new Set;this.pendingChanges=this.canLoad=this.canCreate=
!1;this.oldSelectedHotlistMap={};this.selectedHotlistMap={};this.shouldShowHotlist={};this.filterText="";this.focusedRowIndex=-1;this.isAnonymous=this.activeSession.isAnonymous()};Y(y_,Z);y_.\u0275dir=Z.\u0275dir;y_.prototype.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(gg(this.destroyed$)).subscribe(function(){Se(0).pipe(gg(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;(c=this.trigger)==null||c.menuClosed.pipe(gg(this.destroyed$)).subscribe(function(){J2c(a)})};
y_.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};y_.prototype.ngOnChanges=function(){K2c(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;L2c(this)};
var K2c=function(a){var b={};Rqa(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=l(a.choices),d=c.next();!d.done;d=c.next())d=d.value,b[d.hotlistId]=0,a.validHotlistIds.add(d.hotlistId);if(a.selectedHotlistIds){c=a.selectedHotlistIds.length;d=l(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=l(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=l(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Nba(a.choices,function(h,k){var q=b[h.hotlistId],u=b[k.hotlistId];return q>u?-1:q<u?1:Ba(h.name,k.name)})}}};y_.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};y_.prototype.close=function(){this.trigger.closeMenu()};
y_.prototype.hasAclToEdit=function(a){var b=this;if(Oqa(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];kE(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Pob=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},Qob=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;Xob(a);a.close()},Xob=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},L2c=function(a){for(var b=a.filterText,c=!1,d=l(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=Ea(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=Ofb(Fa(b))&&!!b&&!!a.onLoad},J2c=function(a){a.trigger.menuOpen||(K2c(a),a.filterText="",L2c(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},M2c=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+Fba(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
y_.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",L2c(this),this.onCreate.emit({name:b,successCallback:function(c){Qob(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
y_.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");Mq(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";L2c(this);for(var c=Vj(b),d=l(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){Qob(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Qob(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
y_.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!Pj(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var Rob=function(a,b){Pob(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},T2c=function(a,b){b=b===void 0?0:b;var c=N2c(a).filter(function(e,f){return f>a.focusedRowIndex&&a.shouldShowHotlist[Number(e.id.substring(13))]}),d=a.choices.length;c.length?(b=b>=c.length?c[c.length-1]:c[b],a.focusedRowIndex=Wa(N2c(a),b),O2c(a),P2c(a,b)):a.focusedRowIndex<d&&a.canCreate?Q2c(a,d):a.focusedRowIndex<d+1&&a.canLoad?R2c(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
S2c(a,d)},N2c=function(a){return a.menuItems.map(function(b){return b.nativeElement})},U2c=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)Q2c(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)R2c(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)Q2c(a,a.choices.length);else{var c=N2c(a).filter(function(d,e){return e<a.focusedRowIndex&&a.shouldShowHotlist[Number(d.id.substring(13))]});c.length?(b=b>=c.length?
c[0]:c[c.length-b-1],a.focusedRowIndex=Wa(N2c(a),b),O2c(a),P2c(a,b)):(a.focusedRowIndex=-1,P2c(a,null))}},P2c=function(a,b){a.filterElement&&mH(a.filterElement.nativeElement,b);a.focusFilterBox()},Q2c=function(a,b){a.focusedRowIndex=b;mH(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},R2c=function(a,b){a.focusedRowIndex=b+1;mH(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},S2c=function(a,b){a.focusedRowIndex=b+2;mH(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},O2c=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=N2c(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},Sob=function(a){return a==null?"mixed":a.toString()},
Tob=function(a){return a==null?"indeterminate":a?"checked":"unchecked"};y_.\u0275fac=function(){var a;return function(b){return(a||(a=fe(y_)))(b||y_)}}();
y_.\u0275cmp=B({type:y_,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(Wg(YG,5),Wg(E2c,5),Wg(F2c,5),Wg(G2c,5),Wg(H2c,5),Wg(I2c,5));if(a&2){var c;$g(c=ah())&&(b.trigger=c.first);$g(c=ah())&&(b.filterElement=c.first);$g(c=ah())&&(b.createElement=c.first);$g(c=ah())&&(b.applyElement=c.first);$g(c=ah())&&(b.loadElement=c.first);$g(c=ah())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},standalone:!1,features:[hh([NA]),kg,Uu],decls:13,vars:4,consts:[["hotlistMenu","matMenu"],["hotlistFilterInput",""],["hotlistChoices",""],["hotlistCreate",""],["menuitem",""],["hotlistLoad",""],["hotlistApply",""],["type","button","mat-button","","id","hotlist-picker-button","aria-describedby","hotlist-picker-label-text",1,"medium","primary",3,"matMenuTriggerFor","disabled"],["id","hotlist-picker-label-text"],["name","arrow-dropdown","size","small"],[1,"menu"],[1,"menu-control"],
[1,"hotlist-filter"],["mat-input","","type","text","id","hotlist-filter-input","maxlength","255","role","combobox","aria-autocomplete","list","aria-expanded","true","placeholder","Type to filter hotlists from your sidebar","autocomplete","off",3,"ngModelChange","mousedown","blur","click","keydown","ngModel"],["matMenuContent",""],["role","listbox",1,"multi-edit-scrollarea"],["role","option",1,"multi-edit-menuitem",3,"display","focused","title"],["mat-menu-item","","matTooltip","Type a new name to create a hotlist",
"matTooltipPosition","right","title","Type a new hotlist name above and then click here to create a new hotlist.",1,"hotlist-create",3,"click","keydown.enter","disabled"],["mat-menu-item","","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"focused"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"focused"],["role","option",1,"multi-edit-menuitem",3,"click","title"],["role","checkbox",3,"click","state","disabled"],["mat-menu-item",
"","matTooltip","Type a hotlist id number to load a hotlist by id.","matTooltipPosition","right",3,"click","keydown.enter"],["mat-menu-item","","id","hotlist-apply","aria-label","apply",1,"hotlist-apply",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=r();I(0,"button",7)(1,"span",8);Q(2);J();K(3,"b-icon",9);J();I(4,"mat-menu",null,0)(6,"div",10)(7,"div",11)(8,"div",12)(9,"input",13,1);gh("ngModelChange",function(d){t(c);fh(b.filterText,d)||(b.filterText=d);return v(d)});M("ngModelChange",
function(){t(c);return v(L2c(b))})("mousedown",function(d){t(c);return v(d.stopPropagation())})("blur",function(){t(c);return v(J2c(b))})("click",function(d){t(c);return v(d.stopPropagation())})("keydown",function(d){t(c);d.stopImmediatePropagation();d.key==="Escape"?b.close():d.key==="ArrowDown"?(T2c(b),d.preventDefault()):d.key==="ArrowUp"?(U2c(b),d.preventDefault()):d.key==="PageUp"?U2c(b,11):d.key==="PageDown"?T2c(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||
(Rob(b,b.choices[b.focusedRowIndex]),d.preventDefault()):d.key==="Enter"&&(b.focusedRowIndex===b.choices.length?b.createHotlist():b.focusedRowIndex===b.choices.length+1?b.loadHotlist():b.pendingChanges?(b.close(),Xob(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Qob(b,b.choices[b.focusedRowIndex]));return v()});J()()();K(11,"mat-divider");C(12,Zob,12,7,"ng-template",14);J()()}a&2&&(a=L(5),D("matMenuTriggerFor",a)("disabled",b.isAnonymous),
z(2),ch(M2c(b)),z(7),eh("ngModel",b.filterText))},dependencies:[UG,XG,VG,WG,YG,PA,Tx,Li,oy,Hy,vy,Kx,YA,cB,HL,CL],styles:[".menu[_ngcontent-%COMP%]{max-height:400px;width:280px;overflow-x:hidden;overflow-y:hidden}.menu-control[_ngcontent-%COMP%]{line-height:19px;padding:0 6px}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]{padding:8px 0}.menu-control[_ngcontent-%COMP%]   .hotlist-filter[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{height:29px;line-height:16px;padding-left:9px;vertical-align:top;width:100%;box-sizing:border-box;border-radius:4px;border:1px solid #dadce0}.multi-edit-scrollarea[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:246px;overflow-y:scroll;overflow-x:hidden}.multi-edit-scrollarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]{border-width:0;line-height:19px;margin:0 6px;padding:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem.focused[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:0}.multi-edit-scrollarea[_ngcontent-%COMP%]   .multi-edit-menuitem[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.mat-mdc-menu-item.focused[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg);border:0}/*# sourceMappingURL=hotlist_picker.css.map */"]});var X2c=function(a,b){this.origCommonDuplicateOf=this.origCommonVerifier=this.origCommonAssignee=this.lastCommonAssignee="";this.overwriteVerifier=this.overwriteAssignee=!1;this.commonDuplicateOf=this.commonVerifier=this.commonAssignee="";this.issueState=void 0;this.recaptchaResponse="";this.userEmail=a;this.origIssues=b;this.comment=new ss;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";V2c(this,b);W2c(this,b)},V2c=function(a,b){var c=b[0],d=om.get(c.status),
e=c.duplicateOfIssueId;if(d)for(b.every(function(f){return f.status==="DUPLICATE"&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e,a.origCommonDuplicateOf=e),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},Y2c=function(a){if(a.length===1)return"IDENTICAL_EMAILS";var b=!a.every(function(c){return c===a[0]});return a.every(function(c){return c===void 0||Zj(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},W2c=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=Y2c(c);a.selectedVerifiersStatus=Y2c(b);a.selectedAssigneesStatus==="IDENTICAL_EMAILS"&&(a.commonAssignee=c[0],a.origCommonAssignee=c[0]);a.selectedVerifiersStatus==="IDENTICAL_EMAILS"&&(a.commonVerifier=b[0],a.origCommonVerifier=b[0])};
X2c.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;ipb(this)};X2c.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var kpb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},epb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?Z2c(a.selectedAssigneesStatus)?a.clearAssignee():a.commonAssignee&&(a.lastCommonAssignee=a.commonAssignee,a.commonAssignee=""):b.status==="DUPLICATE"?(a.commonAssignee=a.origCommonAssignee,a.commonVerifier=a.origCommonVerifier):(b.assigneeRequirement!=="REQUIRED"||a.commonAssignee||Z2c(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),Z2c(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},Z2c=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},ipb=function(a){a.issueState===lva&&a.commonAssignee?a.origCommonIssueState===lva?a.issueState=mva:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!mmc.has(a.issueState)||(a.issueState=lva)},$2c=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},spb=function(a){var b=new Map;b.set("assignee",a.overwriteAssignee||a.commonAssignee!==a.origCommonAssignee?a.commonAssignee:void 0);(a.overwriteVerifier||a.commonVerifier!==a.origCommonVerifier)&&b.set("verifier",a.commonVerifier);a.commonDuplicateOf!==a.origCommonDuplicateOf&&b.set("duplicateOfIssueId",a.commonDuplicateOf);$2c(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};var z_=function(){this.externalWarnings=[]};z_.\u0275fac=function(a){return new (a||z_)};
z_.\u0275cmp=B({type:z_,selectors:[["b-external-warnings"]],inputs:{externalWarnings:"externalWarnings"},standalone:!1,decls:1,vars:1,consts:[[1,"bv2-external-component-modal-warning"],[3,"href"],[3,"issueId"],[3,"accessLevel"]],template:function(a,b){a&1&&E(0,dpb,11,0,"div",0);a&2&&F(b.externalWarnings.length>0?0:-1)},dependencies:[kN,cP],styles:[".bv2-external-component-modal-warning[_ngcontent-%COMP%] {\n  padding-top: 10px;\n\n  ul {\n    padding-left: 0;\n  }\n}"],changeDetection:0});
var A_=function(){};A_.\u0275fac=function(a){return new (a||A_)};A_.\u0275mod=Jf({type:A_});A_.\u0275inj=Tc({imports:[HQ,RQ]});var a3c=["dialog"],B_=function(){Z.call(this);this.matDialog=n(tK);this.activeSession=n(Es);this.hotkeys=n(nH);this.userPreferencesManager=n(OG);this.comment=new ss;this.save=new LA;this.close=new LA;this.externalWarnings=[];this.issueStates=wva();this.issueEditBuilder=null;this.FocusableField=b3c;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&Yr(this.activeSession,"enableBulkEditCaptchaUi");var a;this.comment.formattingMode=Xk((a=PG(this.userPreferencesManager).textDisplayPreferences)==
null?void 0:a.lastPublishMode)};Y(B_,Z);B_.\u0275dir=Z.\u0275dir;B_.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new X2c(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&epb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});nK(this.matDialogRef).pipe(gg(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};
B_.\u0275fac=function(a){return new (a||B_)};
B_.\u0275cmp=B({type:B_,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&Wg(a3c,5);if(a&2){var c;$g(c=ah())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},standalone:!1,features:[kg],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["statusMenu",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-modal-form"],[1,"flex-kids-x","justify-flex-end"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",
3,"mat-dialog-close"],["type","submit","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close","disabled"],["type","button","mat-button","",1,"medium","primary","status-select",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["mat-menu-item","","type","button",3,"click","disabled"],["mat-menu-item","","type","button",3,"disabled"],[1,"bv2-modal-text-field"],["placeholder","Add a comment (optional)",3,"onSubmit","comment","showToolbar","isLiteralModeSupported"],
[1,"float-clear"],[3,"externalWarnings"],["for","bv2-state-modal-assignee",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip"],["for","bv2-state-modal-verifier",1,"bv2-top-field-label"],[1,"bv2-multiple-user-chip",3,"bv2-invalid-multiple-user-chip"],["title","Clear assignees",3,"click"],["type","text","name","assignee",3,"ngModelChange","ngModel","bContactAutocomplete"],["title","Clear verifiers",3,"click"],["type","text","name","verifier",3,"ngModelChange","ngModel","required","bContactAutocomplete"],
["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModelChange","ngModel"],[3,"onUpdate"]],template:function(a){a&1&&C(0,tpb,14,5,"ng-template",null,0,nh)},dependencies:[uK,wK,yK,xK,wy,Li,oy,py,Gy,vy,ty,PA,Tx,CL,UG,XG,VG,YG,bJ,UV,kS,z_],encapsulation:2});var b3c={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var C_=function(){this.dialogRef=n(mK);this.reporter="";this.autocompleteActive=!1};C_.prototype.enableSubmit=function(){return this.reporter!==""};C_.prototype.cancel=function(){this.dialogRef.close()};C_.prototype.save=function(){this.dialogRef.close(this.reporter)};C_.\u0275fac=function(a){return new (a||C_)};
C_.\u0275cmp=B({type:C_,selectors:[["b-reporter-picker-dialog"]],standalone:!1,decls:12,vars:3,consts:[["mat-dialog-title",""],["appearance","outline","subscriptSizing","dynamic"],["matInput","",3,"ngModelChange","autocompleteActive","keydown","bContactAutocomplete","ngModel"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Change Reporter"),J(),I(2,"mat-dialog-content")(3,"mat-form-field",1)(4,
"mat-label"),Q(5," Reporter "),J(),I(6,"input",2),gh("ngModelChange",function(c){fh(b.reporter,c)||(b.reporter=c);return c}),M("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){c.key==="Enter"&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),J()()(),I(7,"mat-dialog-actions")(8,"button",3),M("click",function(){return b.cancel()}),Q(9," Cancel "),J(),I(10,"button",4),M("click",function(){return b.save()}),Q(11," Save "),J()());a&2&&(z(6),D("bContactAutocomplete",
"SINGLE"),eh("ngModel",b.reporter),z(4),D("disabled",!b.enableSubmit()))},dependencies:[Li,oy,vy,PA,Tx,wK,yK,xK,$M,ez,Xy,Qy,YM,bJ],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var c3c=["addCommentDialog"],D_=function(){Z.apply(this,arguments);var a=this;this.componentFridge=n(jD);this.cdr=n(NA);this.activeSession=n(Es);this.analytics=n(CF);this.hotkeys=n(nH);this.componentActions=n(oN);this.issueTypeDialog=n(BK);this.copyIssueIdService=n(e_);this.matDialog=n(tK);this.$log=n(MA);this.issuePicker=n(vR);this.userPreferencesManager=n(OG);this.accessIndicatorService=n(bP);this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new bg;this.effortSpec$=
this.uniqueComponentIds$.pipe(fg(function(b){return a.componentFridge.watchSet(b)}),y(function(b){return a.getCommonEffortSpec(b)}),cg({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(y(function(b){return b!==void 0}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new LA;this.onCreateHotlist=new LA;this.onLoadHotlist=new LA;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&Yr(this.activeSession,"enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Y(D_,Z);D_.\u0275dir=Z.\u0275dir;var d3c=function(a){var b=new ss,c;b.formattingMode=Xk((c=PG(a.userPreferencesManager).textDisplayPreferences)==null?void 0:c.lastPublishMode);return b};D_.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};var e3c=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},upb=function(a){return e3c(a)?"Mark as read":"Mark as unread"},as=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
D_.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=l(a),c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value).hotlistId!=null||(d.hotlistId=[])}this.hotlistIdMatrix=a.map(function(e){return e.hotlistId});this.cdr.detectChanges();a=f3c(a);this.uniqueComponentIds$.next(a)};
var f3c=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.includes(c.componentId)||b.push(c.componentId);return b},g3c=function(a){if(!xC(a.activeSession)){a.externalWarnings=[];var b=Je(a.getSelectedIssues().map(function(e){return gMc(a.accessIndicatorService,e.issueId,e.componentId).pipe(y(function(f){return{issue:e,indicator:f}}))}));Ge(b).then(function(e){e=l(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var h=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:h.issueId})}}).then(function(){a.cdr.detectChanges()});b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=l(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$539:void 0},c=b.next())d.id$jscomp$539=c.value,a.componentActions.get(d.id$jscomp$539).then(function(e){if(a.activeSession.isInternalSession()&&ur(e)||wC(a.activeSession)&&vr(e)){var f,h={type:"component",path:u6a((f=e.componentPathInfo)==null?void 0:f.componentPathName,e.componentId),accessLevel:e.accessLimit.accessLevel};
a.externalWarnings.push(h);a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$539+".")}}(d))}};g=D_.prototype;g.getCommonEffortSpec=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
g.bulkEdit=function(a){switch(a){case "ASSIGNEE":E_(this,null,0);break;case "COMPONENT":h3c(this);break;case "VERIFIER":E_(this,null,1);break;case "REPORTER":i3c(this);break;case "CHANGELIST":j3c(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":k3c(this);break;case "FOUND_IN":j3c(this,"foundInVersion","Found In");break;case "VERIFIED_IN":j3c(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":j3c(this,"targetedToVersion","Targeted To");break;case "COMMENT":l3c(this);break;
case "SLO_START_TIME":m3c(this);break;case "ESTIMATED_EFFORT":n3c(this);break;case "CC":j3c(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
g.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&F_(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&F_(this,"severity",a);break;case "STATUS":if(a=a.newValue){var b=a==="DUPLICATE"?3:void 0;E_(this,om.get(a),b)}break;case "TYPE":(a=a.newValue)&&F_(this,"type",a);break;case "IS_ARCHIVED":F_(this,"isArchived",""+a.newValue);break;case "IN_PROD":F_(this,"inProd",""+a.newValue);break;case "CC":F_(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
g.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?G_(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):G_(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?G_(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):G_(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?G_(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):G_(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":E_(this,qva,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
g.bulkMarkIssueRead=function(){var a=e3c(this);F_(this,"readState",a?"true":"")};
var F_=function(a,b,c,d){var e={fieldName:b,value:c};d!==void 0&&(e.actionType=d);var f=as(a),h=[e];b==="deletionReason"&&h.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:h}]};a.enableRecaptcha&&a.recaptchaResponse!==""&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};b!=="type"||c!=="VULNERABILITY"&&c!=="PRIVACY_ISSUE"?d():(c==="VULNERABILITY"&&nEc(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&nEc(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},E_=function(a,b,c){a.hasSelectedIssues()&&(g3c(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},o3c=function(a){var b=a.onSave,c=b.emit,d=as(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||epb(e);e=l(spb(e));for(var h=e.next();!h.done;h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:h,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},i3c=
function(a){a.hasSelectedIssues()&&(g3c(a),nK(a.matDialog.open(C_,{width:"400px"})).pipe(gg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&F_(a,"reporter",b)}),a.hotkeys.pause())},j3c=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(nK(a.matDialog.open(x_,{width:"400px",data:{fieldDisplayName:c}})).pipe(gg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&p3c(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},m3c=function(a){a.hasSelectedIssues()&&(nK(a.matDialog.open(v_,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(gg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();if(b&&(b=b.date)){var c=[];c.push({fieldName:"sloStartTime",value:String(b.seconds)});c.length&&a.onSave.emit({bulkEditOps:[{issueIds:as(a),actions:c}]})}}),a.hotkeys.pause())},n3c=function(a){var b,c;w(function(d){if(d.nextAddress==1)return x(d,Ge(a.effortSpec$),2);b=d.yieldResult;if(!a.hasSelectedIssues()||b===void 0)return d.return();c=a.matDialog.open(w_,{width:"400px",data:{fieldDisplayName:"Estimated Effort",
effortSpec:b}});nK(c).pipe(gg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(e){var f=[];f.push({fieldName:"effortEstimate",value:e.estimate});a.onSave.emit({bulkEditOps:[{issueIds:as(a),actions:f}]})}});a.hotkeys.pause();ze(d)})},p3c=function(a,b,c,d,e){e=e===void 0?!1:e;c=Vr(c);d=Vr(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return jua(q,h).map(function(u){return u.trim()})};Ca(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),
f.push.apply(f,p(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));Ca(d)||(d=k(d),f.push.apply(f,p(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:as(a),actions:f}]})},h3c=function(a){a.hasSelectedIssues()&&(nK(a.matDialog.open(t_,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(gg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:as(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},q3c=function(a){a.hasSelectedIssues()&&(nK(a.matDialog.open(s_,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(gg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),F_(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},l3c=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=d3c(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),nK(a.addCommentDialogRef).pipe(gg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&bFc(a.comment)&&F_(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),g3c(a))},Bpb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},k3c=function(a){a.hasSelectedIssues()&&nK(a.matDialog.open(RU,{data:a.getSelectedIssues(),
width:"500px"})).pipe(gg(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,"bulkCustomField"))})};
D_.prototype.handleHotlistPickerSave=function(a){var b=a.newSelectionMap;var c=a.oldSelectionMap;this.analytics.trackEvent("hotlistPicker","edit","base_controls");var d=[],e=[],f=0;Object.entries(b).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;k!==c[h]&&(k?d.push(h):e.push(h),f++)});a=[];d.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:d.join(",")});e.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:e.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:as(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var G_=function(a,b){var c=b.actionType;var d=b.fieldName;a.issuePicker.open({title:b.title,edgeType:b.edgeType,originIsBulk:!0},function(e){a.hotkeys.unpause();e.length!==0&&(e=e[0],a.onSave.emit({bulkEditOps:[{issueIds:as(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};D_.\u0275fac=function(){var a;return function(b){return(a||(a=fe(D_)))(b||D_)}}();
D_.\u0275cmp=B({type:D_,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(Wg(c3c,5),Wg(y_,5),Wg(B_,5));if(a&2){var c;$g(c=ah())&&(b.addCommentDialog=c.first);$g(c=ah())&&(b.hotlistPicker=c.first);$g(c=ah())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},standalone:!1,features:[kg],decls:0,vars:0,template:function(){},encapsulation:2});var H_=function(){};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275mod=Jf({type:H_});H_.\u0275inj=Tc({imports:[ZB,LH,$B,aN,Ly,Nx,cC,RL,vM,EL]});var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=Jf({type:I_});I_.\u0275inj=Tc({imports:[ZB,$K,HQ,Ly,$B,EL,LH,cJ,cW,gW,A_]});var J_=function(){D_.apply(this,arguments);this.panels=[];this.isNonPublicSession=this.activeSession.isNonPublicSession();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName="dashboardControls";this.onSelectionChange.bind(this);this.getCommonEffortSpec.bind(this)};Y(J_,D_);J_.\u0275dir=D_.\u0275dir;J_.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
J_.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Lba(a,null,function(b){return b.issueId.toString()});return a};J_.\u0275fac=function(){var a;return function(b){return(a||(a=fe(J_)))(b||J_)}}();
J_.\u0275cmp=B({type:J_,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},standalone:!1,features:[hh([NA]),kg,Uu],decls:7,vars:5,consts:[["addCommentDialog",""],[3,"readStatePrompt","enableBulkEstimatedEffortOption"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],[1,"bv2-appbar-menu",3,"flagAsSpamClicked","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","readStatePrompt",
"enableBulkEstimatedEffortOption"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks","onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium",
"primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=r();E(0,vpb,2,4,"b-app-bar-bulk-edit-menus",1);E(1,zpb,1,2,"b-copy-issue-id-button",2);E(2,Apb,2,2,"div",3);I(3,"b-app-bar-more-menu",4);M("flagAsSpamClicked",function(){t(c);return v(q3c(b))});J();I(4,"b-state-modal",5);M("save",function(){t(c);return v(o3c(b))})("close",function(){t(c);return v(b.hotkeys.unpause())});J();
C(5,Epb,11,6,"ng-template",null,0,nh)}a&2&&(F(b.hasSelectedIssues()?0:-1),z(),F(b.hasSelectedIssues()?1:-1),z(),F(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),z(),D("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),z(),D("externalWarnings",b.externalWarnings))},dependencies:[BY,AY,UV,UZ,y_,PA,Tx,uK,wK,yK,xK,B_,kS,z_,Qv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var K_=function(){};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275mod=Jf({type:K_});
K_.\u0275inj=Tc({imports:[DY,bH,cW,ZB,HQ,d_,H_,EL,$B,$K,I_,gW,A_]});var r3c=function(a,b,c){this.index=a;this.inherited=c;this.editableTemplate=this.template=null;this.name=b.name||"(unnamed template)";this.issueType="--";b.snapshot?this.template=b:(this.editableTemplate=b,this.issueType=this.editableTemplate.type);this.componentId=b.componentId},s3c=function(a,b){this.cellType=b;this.enumFields=null;this.id=a.customFieldId;this.name=a.name;this.type=a.type;if(this.type==="ENUM"||this.type==="REPEATED_ENUM")this.enumFields=(a.allowedValue||[]).map(function(c){return{displayText:c,
value:c}});this.repeated=["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},L_=function(a,b){this.dirty=!1;this.collaboratorGroups=[];var c=b.snapshot||{};this.customFields=a;this.new=b.templateId==null;this.componentId=b.componentId;this.name=b.name||"";this.description=b.description||"";this.inheritable=b.inheritable||!1;this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=Dk(c.assigneeUser)||"";this.verifier=Dk(c.verifierUser)||
"";this.collaborators=Ck(c.collaboratorsUsers)||[];this.staffing=c.staffing||null;this.cc=Ck(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.formattingMode=c.formattingMode?c.formattingMode:"PLAIN";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||!1;this.issueAccessLimitLevel=c.issueAccessLimitLevel||"LIMIT_NONE";this.customFieldValues=Object.create(null);a=l(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=
b;a=l(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=c.typedDefaultValue!=null?c.typedDefaultValue:{customFieldId:b})},u3c=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;t3c(a.type)?delete c.type:c.type=a.type;t3c(a.priority)?delete c.priority:c.priority=a.priority;t3c(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=Hk(a.assignee);c.verifierUser=Hk(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return Hk(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=Cva(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return Hk(f)});c.comment=a.comment;c.formattingMode=a.formattingMode;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];c.issueAccessLimitLevel=
a.issueAccessLimitLevel;for(var d=l(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!Jo(e)&&c.customField.push(e);b.snapshot=c};
L_.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldValues[a].textValue=b;break;case "DATE":this.customFieldValues[a].dateValue=b;break;case "ENUM":this.customFieldValues[a].enumValue=b;break;case "NUMERIC":this.customFieldValues[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldValues[a].repeatedTextValue={values:b||[]};break;case "REPEATED_DATE":this.customFieldValues[a].repeatedDateValue=
{values:b||[]};break;case "REPEATED_ENUM":this.customFieldValues[a].repeatedEnumValue={values:b||[]};break;case "REPEATED_NUMERIC":this.customFieldValues[a].repeatedNumericValue={values:b||[]};break;default:Gb(c,"Unexpected custom field type: "+c)}}bs(this)};L_.prototype.isDirty=function(){return this.dirty};var bs=function(a){a.dirty=!0};L_.prototype.setFormattingMode=function(a){this.formattingMode=a;bs(this)};L_.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;bs(this)};
var t3c=function(a){return Ca(a)||a==="--"};L_.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroups.length===0?"":this.collaboratorGroups.length>1?this.collaboratorGroups.length+" groups selected":this.collaboratorGroups[0]};L_.prototype.separateCollaboratorGroups=function(a){a=new Set(a);for(var b=[],c=l(this.collaborators),d=c.next();!d.done;d=c.next())d=d.value,a.has(d)?this.collaboratorGroups.push(d):b.push(d);this.collaborators=b};
var xqb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});bs(a)},Aqb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});bs(a)},v3c={value:"--",displayText:"--"};var w3c=new cE("M/d/yyyy"),M_=function(){this.dateFormatter=n(HK);this.boundValueChange=new LA;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};M_.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if(typeof this.boundValue==="string")var a=Wj(this.boundValue);else{var b;a=(b=Ho(this.boundValue))!=null?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
M_.prototype.change=function(a,b){b=b===void 0?!1:b;var c=this.googDate;if((c&&a?!c.equals(a):c||a)&&!b){this.googDate=a;if(a)if(typeof this.boundValue==="string")a=w3c.format(a);else{var d;a=(d=XEa(w3c.format(a)))!=null?d:void 0}else a=typeof this.boundValue==="string"?"":void 0;this.boundValue=a;this.boundValueChange.emit(this.boundValue);this.textValue=this.googDate?this.dateFormatter.formatUserCalendar(this.googDate):""}};M_.\u0275fac=function(a){return new (a||M_)};
M_.\u0275cmp=B({type:M_,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:[0,"bv2Id","inputId"],ariaLabelledBy:[0,"bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},standalone:!1,decls:1,vars:4,consts:[[3,"valueChange","required","value","customFormId","customAriaLabelledBy"]],template:function(a,b){a&1&&(I(0,"b-date-time-input",0),M("valueChange",function(c){return b.change(c)}),J());a&2&&D("required",b.isRequired)("value",
b.googDate)("customFormId",b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[LU],encapsulation:2});var Npb=function(a,b){return b.value},N_=function(){this.rows$=new tj([]);this.trackBy=function(a,b){return b.user.emailAddress};this.tableColumns=["user","involvement","remove-user"];this.involvementOptions=vEc.map(function(a){return{value:a,displayText:Pxa[a]}});this.allocations=[];this.isAllowedToEdit=!1;this.updatedAllocations=new LA;this.removedUser=new LA};
N_.prototype.ngOnChanges=function(a){if(a.allocations){a=[];for(var b=l(this.allocations),c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=(e=d.user)==null?void 0:e.user;var f=e=void 0;d=(f=(e=d.allocation)==null?void 0:e.involvement)!=null?f:"HIGH";c&&a.push({user:c,involvement:d})}a=a.sort(function(h,k){h=h.user.emailAddress;k=k.user.emailAddress;return!h&&k?-1:!k&&h?1:h.localeCompare(k)});this.rows$.next(a)}};
var Mpb=function(a,b,c){var d,e,f,h,k;return w(function(q){d=b.user;e={user:{user:d},allocation:{involvement:c,aggregationValue:0}};f=qq(e);if(!f)return q.return();h=[].concat(p(a.allocations));k=h.findIndex(function(u){return qq(u)===f});if(k<0)return q.return();h[k]=e;a.updatedAllocations.emit(h);ze(q)})},Qpb=function(a,b){var c,d,e,f;return w(function(h){c={user:{user:b.user}};d=qq(c);if(!d)return h.return();e=[].concat(p(a.allocations));f=e.findIndex(function(k){return qq(k)===d});if(f<0)return h.return();
e.splice(f,1);a.updatedAllocations.emit(e);a.removedUser.emit(b.user.emailAddress);ze(h)})};N_.\u0275fac=function(a){return new (a||N_)};
N_.\u0275cmp=B({type:N_,selectors:[["b-allocated-users-table"]],inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[Uu],decls:13,vars:5,consts:[["mat-table","","recycleRows","",3,"dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],
["matColumnDef","involvement"],["matColumnDef","remove-user"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["tabindex","-1","mat-cell",""],[1,"user-cell"],["size","small",3,"email"],[1,"user-name",3,"email","hovercardFocusEnabled","availabilityChipEnabled"],[1,"involvement-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"involvement-help-icon",3,"matTooltip"],[1,"involvement-select",3,"selectionChange","disabled","value"],[3,"value"],["type","button",
"mat-icon-button","","aria-label","Remove allocated user","matTooltip","Remove allocated user",1,"remove-user-btn","xs",3,"click","disabled"],["svgIcon","delete","fill","none"]],template:function(a,b){a&1&&(I(0,"table",0),C(1,Fpb,1,0,"tr",1)(2,Gpb,1,0,"tr",2),Fg(3,3),C(4,Hpb,2,0,"th",4)(5,Jpb,2,1,"td",5),Gg(),Fg(6,6),Kg(7),C(8,Kpb,4,2,"th",4)(9,Opb,4,2,"td",5),Gg(),Fg(10,7),C(11,Ppb,2,0,"th",4)(12,Rpb,3,1,"td",5),Gg(),J());a&2&&(D("dataSource",b.rows$)("trackBy",b.trackBy),z(),D("matHeaderRowDef",
b.tableColumns),z(),D("matRowDefColumns",b.tableColumns),z(5),Lg("Set the involvement level of people\n    allocated to this issue. Zero involvement levels are useful when a person is involved in the\n    work but does not spend a significant portion of their time on it."))},dependencies:[ZB,aB,$B,PA,Ux,oR,sP,nQ,ZMc,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,cC,YA,cB,EL,CL,xQ,zP,Lx,FL,AL,yL],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td.mat-mdc-cell.mat-column-involvement[_ngcontent-%COMP%], td.mat-mdc-footer-cell.mat-column-involvement[_ngcontent-%COMP%], th.mat-mdc-header-cell.mat-column-involvement[_ngcontent-%COMP%]{padding-right:75px}.user-cell[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.user-cell[_ngcontent-%COMP%]   .user-name[_ngcontent-%COMP%]{margin-left:4px}.involvement-header[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.involvement-help-icon[_ngcontent-%COMP%]{margin-left:4px}.mat-column-involvement[_ngcontent-%COMP%]{width:150px}.mat-column-remove-user[_ngcontent-%COMP%]{width:36px}mat-select[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}mat-select[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}\n/*# sourceMappingURL=allocated_users_table.css.map */"],
changeDetection:0});var O_=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new LA;this.removePlaceholder=new LA},x3c=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};ea.Object.defineProperties(O_.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?km[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
O_.\u0275fac=function(a){return new (a||O_)};
O_.\u0275cmp=B({type:O_,selectors:[["b-placeholder-chip"]],inputs:{placeholder:"placeholder",isAllowedToEdit:"isAllowedToEdit"},outputs:{editPlaceholder:"editPlaceholder",removePlaceholder:"removePlaceholder"},decls:6,vars:6,consts:[[1,"placeholder-chip"],["size","small",3,"email"],["role","button","tabindex","0",1,"placeholder-text",3,"click","keydown.enter","keydown.space","matTooltip"],["type","button","mat-icon-button","","aria-label","'Remove placeholder'",1,"remove-btn","xs",3,"click","disabled"],
["svgIcon","close"]],template:function(a,b){a&1&&(I(0,"span",0),K(1,"b-user-image",1),I(2,"span",2),M("click",function(){return x3c(b)})("keydown.enter",function(){return x3c(b)})("keydown.space",function(){return x3c(b)}),Q(3),J(),I(4,"button",3),M("click",function(){b.removePlaceholder.emit(b.placeholder)}),K(5,"mat-icon",4),J()());a&2&&(z(),D("email",void 0),z(),Pg("matTooltip","Click to edit the ",b.roleString," placeholders"),ng("aria-label","Click to edit the "+b.roleString+" placeholders"),
z(),R(" ",b.placeholderLabel," "),z(),D("disabled",!b.isAllowedToEdit))},dependencies:[ZB,aB,$B,PA,Ux,cC,YA,cB,YB,FL,AL],styles:[".placeholder-chip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;background-color:#fff;background-color:var(--surface-default);align-items:center;border:1px solid var(--hairline);cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:20px;width:350px}.placeholder-chip[_ngcontent-%COMP%]   b-user-image[_ngcontent-%COMP%]{margin-left:1px;margin-right:4px}.placeholder-chip[_ngcontent-%COMP%]   .placeholder-text[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text-high-contrast);font-style:normal;font-weight:400;letter-spacing:.3px;width:100%}.placeholder-chip[_ngcontent-%COMP%]   .placeholder-text[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px #1a73e8;box-shadow:inset 0 0 0 2px var(--primary);outline:none}.placeholder-chip[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]{margin:1px 1px 1px 0}\n/*# sourceMappingURL=placeholder_chip.css.map */"],
changeDetection:0});var y3c=function(){return[]},P_=function(){this.matDialog=n(tK)};P_.prototype.show=function(a,b){this.dialog=this.matDialog.open(Q_,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return Ge(nK(this.dialog))};P_.\u0275fac=function(a){return new (a||P_)};P_.\u0275prov=Sc({token:P_,factory:P_.\u0275fac,providedIn:"root"});
var Q_=function(){var a=this;this.data=n(sK);this.dialogRef=n(mK);this.role="SWE";this.count=new uy(1,{validators:[ky,Epa(/^\d+$/),Apa(3E5)]});this.roleToCountMap=new Map;this.JOB_ROLE_JS_TEXT=km;this.roleOptions$=new tj(wEc.map(function(f){return{value:f,displayText:a.JOB_ROLE_JS_TEXT[f],disabled:!1}}));for(var b=l(this.data.allocatedPlaceholders),c=b.next();!c.done;c=b.next()){var d=c.value;c=d.role;var e=void 0;d=Math.ceil((e=d.count)!=null?e:0);this.roleToCountMap.set(c,d)}this.roleOptions$.next(wEc.map(function(f){return{value:f,
displayText:a.JOB_ROLE_JS_TEXT[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);z3c(this)},z3c=function(a){var b=a.roleToCountMap.get(a.role);a.count.setValue(b!=null?b:1)};Q_.prototype.apply=function(){var a,b={role:this.role,count:(a=this.count.value)!=null?a:1};this.dialogRef.close(b)};
ea.Object.defineProperties(Q_.prototype,{updatingExistingPlaceholder:{configurable:!0,enumerable:!0,get:function(){return this.roleToCountMap.has(this.role)}},title:{configurable:!0,enumerable:!0,get:function(){return this.updatingExistingPlaceholder?"Editing Placeholder":"Adding Placeholder"}},buttonText:{configurable:!0,enumerable:!0,get:function(){return this.updatingExistingPlaceholder?"Update":"Add"}}});Q_.\u0275fac=function(a){return new (a||Q_)};
Q_.\u0275cmp=B({type:Q_,selectors:[["b-placeholder-dialog"]],decls:22,vars:11,consts:[[1,"placeholder-dialog"],["mat-dialog-title",""],["mat-dialog-content","",1,"content"],["appearance","outline",1,"job-role-field"],[3,"selectionChange","value","disabled"],[3,"matTooltip","matTooltipDisabled"],["appearance","outline",1,"count-field"],["type","number","min","1","max","300000","step","1","matInput","","placeholder","Enter number",3,"formControl","required"],["mat-dialog-actions","",1,"actions"],["type",
"button","mat-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel"],["type","button","mat-flat-button","","color","primary","aria-label","Add allocated placeholder",1,"apply",3,"click","disabled"],[3,"value","disabled"],[1,"role-option"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"h1",1),Q(2),J(),I(3,"section",2)(4,"mat-form-field",3)(5,"mat-label"),Q(6,"Role"),J(),I(7,"mat-select",4),M("selectionChange",function(d){b.role=d.value;z3c(b)}),Dg(8,Spb,4,5,"span",5,Cg),S(10,"async"),J()(),
I(11,"mat-form-field",6)(12,"mat-label"),Q(13,"Number"),J(),K(14,"input",7),E(15,Tpb,2,0,"mat-error")(16,Upb,2,0,"mat-error"),J()(),I(17,"footer",8)(18,"button",9),Q(19," Cancel "),J(),I(20,"button",10),M("click",function(){return b.apply()}),Q(21),J()()());if(a&2){z(2);ch(b.title);z(5);D("value",b.role)("disabled",b.updatingExistingPlaceholder);z();var c;Eg((c=T(10,8,b.roleOptions$))!=null?c:ih(10,y3c));z(6);D("formControl",b.count)("required",!0);z();F(b.count.getError("max")?15:b.count.getError("pattern")?
16:-1);z(5);D("disabled",b.count.invalid);z();R(" ",b.buttonText," ")}},dependencies:[ZB,Qv,$B,PA,Tx,$K,uK,wK,yK,xK,ZM,YM,Xy,Qy,Oy,aN,$M,ez,yQ,rP,zP,Lx,cC,YA,cB,yx,My,Li,xy,oy,Gy,Fy,Ey,Ay],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.job-role-field[_ngcontent-%COMP%]{padding-top:4px}.content[_ngcontent-%COMP%]{padding:0 24px}\n/*# sourceMappingURL=placeholder_dialog.css.map */"],changeDetection:0});var A3c=function(){return[]},R_=function(){this.matDialog=n(tK)};R_.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(S_,{width:"650px",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,plannedAllocations:a,isAllowedToEdit:c}});return Ge(nK(this.dialog))};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275prov=Sc({token:R_,factory:R_.\u0275fac,providedIn:"root"});
var S_=function(){Z.call(this);var a=this;this.data=n(sK);this.dialogRef=n(mK);this.editIssueService=n(oL);this.placeholderDialogService=n(P_);this.checkBeforeExit=n(lS);this.userValidators={userNotInGoogleDomain:function(f){return f?f.every(function(h){return h.indexOf("@google.com")>0}):!0},isNotUserType:function(f){return f?f.every(function(h){return h.startsWith("USER:")}):!0},userAlreadySelected:function(f){if(f){f=Wp(f).map(function(k){var q,u;return(u=(q=k.user)==null?void 0:q.emailAddress)!=
null?u:""}).filter(function(k){return!!k});f=l(f);for(var h=f.next();!h.done;h=f.next())if(a.emailsSet.has(h.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new tj([]);this.emailsSet=new Set;this.placeholderAllocations$=this.plannedAllocations$.pipe(y(function(f){return f.filter(function(h){return!!h.placeholder}).map(function(h){return h.placeholder})}));this.availableRolesToAllocate$=this.placeholderAllocations$.pipe(y(function(f){var h=new Set(f.map(function(k){return k.role}));
return wEc.filter(function(k){return!h.has(k)})}));var b;this.isAllowedToEdit=(b=this.data.isAllowedToEdit)!=null?b:!1;this.creatingNewIssue=!this.data.issueId;this.title=(this.isAllowedToEdit?"Editing":"Viewing")+" staffing";var c;this.plannedAllocations$.next((c=this.data.plannedAllocations)!=null?c:[]);b=l(this.plannedAllocations$.value);for(var d=b.next();!d.done;d=b.next()){var e=c=void 0;(d=(c=d.value.user)==null?void 0:(e=c.user)==null?void 0:e.emailAddress)&&this.emailsSet.add(d)}};Y(S_,Z);
S_.\u0275dir=Z.\u0275dir;S_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasChanges()},!1));this.dialogRef.keydownEvents().pipe(gg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(gg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
var Wpb=function(a,b,c){var d,e,f,h,k,q;return w(function(u){if(u.nextAddress==1)return x(u,Ge(a.placeholderAllocations$),2);if(u.nextAddress!=3)return d=u.yieldResult,c||(c=b.length>0?b[0]:"SWE"),x(u,a.placeholderDialogService.show(d,c),3);e=u.yieldResult;if(!e)return u.return();f={placeholder:e};h=qq(f);if(!h)return u.return();k=[].concat(p(a.plannedAllocations$.value));q=k.findIndex(function(A){return qq(A)===h});q<0?k.push(f):k[q]=f;a.plannedAllocations$.next(k);ze(u)})};
S_.prototype.removePlaceholder=function(a){var b=this,c,d,e,f;return w(function(h){c={placeholder:a};d=qq(c);if(!d)return h.return();e=[].concat(p(b.plannedAllocations$.value));f=e.findIndex(function(k){return qq(k)===d});if(f<0)return h.return();e.splice(f,1);b.plannedAllocations$.next(e);ze(h)})};S_.prototype.removeEmail=function(a){this.emailsSet.delete(a)};
var B3c=function(a,b){var c,d,e,f,h,k;return w(function(q){if(b.length<1)return q.return();c=Wp(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return q.return();h={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(p(a.plannedAllocations$.value),[h]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);ze(q)})};S_.prototype.hasChanges=function(){return!Pj(this.plannedAllocations$.value,this.data.plannedAllocations)};
S_.prototype.closeIfUnmodified=function(){this.hasChanges()||this.dialogRef.close()};S_.prototype.close=function(){this.dialogRef.close()};S_.prototype.save=function(){var a=this;return w(function(b){if(b.nextAddress==1)return a.creatingNewIssue?(a.dialogRef.close(a.plannedAllocations$.value),b.return()):x(b,RFc(a.editIssueService,a.issueId,{plannedAllocations:a.plannedAllocations$.value}),2);a.dialogRef.close();ze(b)})};S_.\u0275fac=function(a){return new (a||S_)};
S_.\u0275cmp=B({type:S_,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&Wg(YO,5);if(a&2){var c;$g(c=ah())&&(b.usersInput=c.first)}},features:[kg],decls:25,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["messageType","caution"],[1,"placeholder-display"],[1,"placeholder-chip-set"],[3,"placeholder","isAllowedToEdit"],[1,"add-placeholder-actions"],[3,"matTooltip","matTooltipDisabled"],["type","button","mat-stroked-button","","color","primary",1,"add-placeholder-btn",
"small",3,"click","disabled"],["name","help-outline","size","small","role","button","tabindex","0",1,"add-placeholder-help-icon",3,"matTooltip"],[3,"usersChange","maxUserAllowed","placeholderText","customValidators"],[3,"updatedAllocations","removedUser","allocations","isAllowedToEdit"],["mat-dialog-actions",""],["type","button","mat-stroked-button","","mat-dialog-close","","aria-label","Cancel",1,"cancel-button",3,"click"],["type","button","mat-flat-button","","color","primary",1,"done-button",3,
"click","disabled"],[3,"editPlaceholder","removePlaceholder","placeholder","isAllowedToEdit"]],template:function(a,b){if(a&1){var c=r();I(0,"h1",0);Q(1);J();I(2,"section",1);E(3,Vpb,3,0,"b-callout",2);Kg(4);S(5,"async");I(6,"div",3)(7,"div",4);Dg(8,Xpb,1,2,"b-placeholder-chip",5,Cg);S(10,"async");J();I(11,"div",6)(12,"span",7)(13,"button",8);M("click",function(){t(c);var h=Mg(4);return v(Wpb(b,h))});Q(14,"Add placeholder");J()();Kg(15);K(16,"b-icon",9);J()();I(17,"b-multi-user-input",10);M("usersChange",
function(h){t(c);return v(B3c(b,h))});J();I(18,"b-allocated-users-table",11);S(19,"async");M("updatedAllocations",function(h){t(c);b.plannedAllocations$.next(h);return v()})("removedUser",function(h){t(c);return v(b.removeEmail(h))});J()();I(20,"footer",12)(21,"button",13);M("click",function(){t(c);return v(b.close())});Q(22," Cancel ");J();I(23,"button",14);M("click",function(){t(c);return v(b.save())});Q(24," Save ");J()()}if(a&2){z();ch(b.title);z(2);F(b.isAllowedToEdit?-1:3);z();var d;a=Lg((d=
T(5,14,b.availableRolesToAllocate$))!=null?d:ih(21,A3c));z(4);var e;Eg((e=T(10,17,b.placeholderAllocations$))!=null?e:ih(22,A3c));z(4);D("matTooltip","All supported roles have already been allocated.")("matTooltipDisabled",a.length>0);z();D("disabled",!b.isAllowedToEdit||!a.length);z(3);D("matTooltip","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");ng("aria-label","Allocate placeholder roles when\n      planning how many people are needed to complete this issue but the exact contributors are\n      not yet known.");
z();D("maxUserAllowed",1)("placeholderText","Search for a user to allocate")("customValidators",b.userValidators);ng("disabled",b.isAllowedToEdit?null:!0);z();var f;D("allocations",(f=T(19,19,b.plannedAllocations$))!=null?f:ih(23,A3c))("isAllowedToEdit",b.isAllowedToEdit);z(5);D("disabled",!b.hasChanges())}},dependencies:[N_,ZB,Qv,kR,lP,mP,$B,PA,Tx,$K,uK,wK,yK,xK,cC,YA,cB,EL,CL,QQ,YO,yx,O_],styles:["[_nghost-%COMP%]     .bv2-multi-user-input.bv2-multi-user-input{width:auto}[_nghost-%COMP%]     .bv2-multi-user-input.bv2-multi-user-input input.bv2-multi-user-embedded-input.bv2-multi-user-embedded-input{min-width:100%}b-callout[_ngcontent-%COMP%]{margin-bottom:16px}.placeholder-display[_ngcontent-%COMP%]{border:1px solid var(--hairline);border-radius:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-bottom:24px;padding:16px}.placeholder-display[_ngcontent-%COMP%]   .placeholder-chip-set[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;margin-top:8px;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_ngcontent-%COMP%]   .add-placeholder-btn[_ngcontent-%COMP%]{font-size:.875rem;padding:12px;width:150px}.placeholder-display[_ngcontent-%COMP%]   .add-placeholder-actions[_ngcontent-%COMP%]   .add-placeholder-help-icon[_ngcontent-%COMP%]{margin-left:8px}b-multi-user-input[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}b-multi-user-input[_ngcontent-%COMP%]   .bv2-multi-user-errors[_ngcontent-%COMP%]{padding-bottom:0}\n/*# sourceMappingURL=staffing_dialog.css.map */"],
changeDetection:0});var T_=function(){this.confirmationDialogService=n(AK)},C3c=function(a,b,c){return w(function(d){return d.return(mEc(a.confirmationDialogService,{title:b,content:Oi(c)}))})},D3c=function(a,b){return w(function(c){if(b.canEditIssuesInComponent){var d;if(d=b.issueAccessLimitLevel==="LIMIT_VIEW"){d=!!b.assigneeUser;var e=!!b.verifierUser,f,h=!((f=b.collaboratorsUsers)==null||!f.length),k;f=!((k=b.ccUsers)==null||!k.length);d=!d&&!e&&!h&&!f}c=d?c.return(C3c(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&Ypb(b)?c.return(C3c(a,b.confirmationDialogText.loseAccess.title,b.confirmationDialogText.loseAccess.content)):c.return(!0)}else c=c.return(!0);return c})};T_.\u0275fac=function(a){return new (a||T_)};T_.\u0275prov=Sc({token:T_,factory:T_.\u0275fac,providedIn:"root"});var E3c=["assigneePeopleKitDiv"],F3c=["verifierPeopleKitDiv"],G3c=["saveBeforeClosingDialog"],H3c=["deleteDialog"],Fqb=function(){return[]},I3c={noListedUsers:{title:"Template has no listed users",content:"Due to the Issue Access Limit that you have set, and the lack of any listed user on the template, an issue created with this template could become inaccessible. We strongly recommend defaulting to at least one user with access. Are you sure you still want to proceed?"},loseAccess:{title:"You could lose access to issues created with this template",
content:"Due to the Issue Access Limit that you have set, and the fact that you are not listed on the template, an issue created with this template could become inaccessible. Are you sure you still want to proceed?"}},U_=function(){Z.call(this);var a=this;this.matDialogService=n(tK);this.cdr=n(NA,{self:!0});this.templatesApi=n(mD);this.hotlistApi=n(ED);this.constants=n(GK);this.paths=n(EN);this.butterBar=n(iK);this.analytics=n(CF);this.issueTypeDialog=n(BK);this.componentActions=n(oN);this.documentationLinks=
n(lK);this.appEvents=n(nD);this.accessPolicyApi=n($C);this.trackerFridge=n(IG);this.componentFridge=n(jD);this.currentUserBookmarksFridge=n(OD);this.autocompleteConfigService=n(WO);this.confirmIssueAccessLimitSettingsService=n(T_);this.activeSession=n(Es);this.staffingDialogService=n(R_);this.defaultIndex=-1;this.componentId=0;this.supportCustomFields=!1;this.templates=[];this.customFieldRows=[];this.customFieldIds=Object.create(null);this.currentTemplateRow=this.currentTemplate=null;this.currentIndex=
-1;this.templateRows=[];this.afterSaveCheckFunc=null;this.hotlists=[];this.selectedHotlists=[];this.hotlistMap={};this.selectedHotlistIds=[[]];this.templateHotlistIds=[];this.componentIdsToPaths={};this.hotlistPickerIndex=0;this.enableTemplateInheritance=this.implicitAccessEnabled=!1;this.issueTypeChoices=J3c(this);this.priorityChoices=K3c(this);this.severityChoices=L3c(this);this.FieldType=WL;this.componentId$=new ag(0);this.component$=this.componentId$.pipe(fg(function(b){return a.componentFridge.watch(b)}));
this.trackerId$=this.component$.pipe(y(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(fg(function(b){return b?a.trackerFridge.watch(b):Ce(void 0)}));this.ROUTES=Fq;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.trackerCollaboratorGroups=[];this.enablePeoplekitAc=Yr(this.activeSession,"enablePeoplekitUserAc");
this.SESSION_OPTIONS=(new pt).setFilter(Qq(1));this.subscriptions.add(this.tracker$.subscribe(function(b){b&&(a.trackerCollaboratorGroups=Bk(b.collaboratorGroups));a.currentTemplate&&a.currentTemplate.separateCollaboratorGroups(a.trackerCollaboratorGroups)}));this.enableTemplateInheritance=Yr(this.activeSession,"enableTemplateInheritance")};Y(U_,Z);U_.\u0275dir=Z.\u0275dir;g=U_.prototype;g.singleUserChange=function(){(void 0).editableTemplate&&(cs(),bs((void 0).editableTemplate),this.cdr.markForCheck())};
g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(c){return a.implicitAccessEnabled=c});this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([this.loadCustomFields(),this.loadTemplates()]).finally(function(){V_(a);
a.cdr.detectChanges()})};g.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};g.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Nba(this.selectedHotlists,function(c,d){return Ba(c.name,d.name)})};
g.removeHotlist=function(a){Za(this.templateHotlistIds[this.hotlistPickerIndex],a);bs(this.currentTemplate);this.updateSelectedHotlists()};g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");Mq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){Mq(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.handleHotlistPickerSave=function(a){var b=this;var c=a.oldSelectionMap;Si(a.newSelectionMap,function(d,e){e=Vj(e);if(d!==c[e]){bs(b.currentTemplate);var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],Wa(d,e)>=0||d.push(e)):!d&&f&&Za(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.fetchUserHotlists=function(){var a=this;Ge(PD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&Za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var J3c=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:Nqb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[v3c].concat(b)},Nqb=function(a){return a===v3c.value?a:xk(a)};U_.prototype.getDateValue=function(a){return a};U_.prototype.getListFieldType=function(a){return a};
var Iqb=function(a){var b,c,d,e;return((b=a.repeatedTextValue)==null?void 0:b.values)||((c=a.repeatedDateValue)==null?void 0:c.values)||((d=a.repeatedEnumValue)==null?void 0:d.values)||((e=a.repeatedNumericValue)==null?void 0:e.values)||null},mqb=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?nEc(a.issueTypeDialog,a.currentTemplateRow.issueType==="VULNERABILITY"?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
bs(a.currentTemplate)},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,bs(a.currentTemplate))},K3c=function(a){return[v3c].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},L3c=function(a){return[v3c].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},M3c=function(a){return a.templateRows.filter(function(b){return!b.inherited})},N3c=function(a){return a.templateRows.filter(function(b){return b.inherited})};
U_.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,c!==null?c:void 0)};
var Mqb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;V_(a)},bqb=function(a,b){var c=a.currentIndex;O3c(a,function(){b.index===c?Mqb(a):a.openEditor(b.index)})},P3c=function(a){a.templateHotlistIds.push([]);O3c(a,function(){a.openEditor()})},dqb=function(a,b){return b.index>=0&&b.index===a.currentIndex},fqb=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},Lqb=function(a){var b,c,d,e,f,h,k,q,u,A,G,H,N,O;return w(function(U){if(U.nextAddress==
1){if(!a.currentTemplate)return U.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return x(U,D3c(a.confirmIssueAccessLimitSettingsService,{assigneeUser:a.currentTemplate.assignee,verifierUser:a.currentTemplate.verifier,ccUsers:a.currentTemplate.cc,collaboratorsUsers:[].concat(p(c),p(e)),issueAccessLimitLevel:a.currentTemplate.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:!0,confirmationDialogText:I3c}),
2)}f=U.yieldResult;if(!f)return U.return();a.currentIndex<0?(k="creating",q={componentId:a.componentId,default:!1},h=function(da){Mq(a.butterBar,da.name?'Template "'+da.name+'" created.':"Template created.");a.analytics.trackEvent("template","create");Q3c(a,"create",da.snapshot);R3c(a,"create",da.templateId);S3c(a,"create",da.templateId);a.templates.push(da);a.openEditor(a.templates.length-1)}):(k="updating",u=a.currentIndex,q=a.templates[u],h=function(da){Mq(a.butterBar,da.name?'Template "'+da.name+
'" updated.':"Template updated.");a.analytics.trackEvent("template","update");Q3c(a,"update",da.snapshot);R3c(a,"update",da.templateId);S3c(a,"update",da.templateId);a.templates[u]=da;Mqb(a)});a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];u3c(a.currentTemplate,q);Mq(a.butterBar,"Saving template...");G=A=q;H=G.componentId;O=(N=G.templateId)&&String(N)!=="0"?a.templatesApi.update(H,N,A):a.templatesApi.create(H,A);return U.return(O.then(function(da){a.appEvents.templateModified.next(String(a.componentId));
h(da);a.cdr.detectChanges()}).catch(function(da){da=Xo(da);a.butterBar.showWarning(da?"Error "+k+" template: "+da:"There was an error "+k+" the template.",0)}))})},cqb=function(a,b){nK(a.matDialogService.open(a.deleteDialog,{data:b})).pipe(gg(a.destroyed$)).subscribe(function(c){c&&T3c(a,b)})},T3c=function(a,b){var c=b.index;var d;w(function(e){switch(e.nextAddress){case 1:d=a.templates[c];if(c<0||d.default)return e.return(Promise.resolve());Xa(a.templateHotlistIds,c);Xa(a.templates,c);a.defaultIndex=
a.templates.findIndex(function(f){return f.default});V_(a);a.cdr.detectChanges();Mq(a.butterBar,"Deleting...");te(e,2,3);return x(e,a.templatesApi.delete(d.componentId,d.templateId),5);case 5:a.appEvents.templateModified.next(String(a.componentId)),Mq(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&Mqb(a);case 3:return ue(e),x(e,a.loadTemplates(),6);case 6:V_(a);a.cdr.detectChanges();we(e,0);break;case 2:xe(e),a.butterBar.showWarning("Error while deleting template"),
e.jumpTo(3)}})},V3c=function(a,b){b?Lqb(a).then(function(){U3c(a);a.cdr.detectChanges()}):U3c(a)},eqb=function(a,b){var c;b=((c=b.template)==null?void 0:c.templateId)||0;c={};c=a.paths.createIssue((c.component=a.componentId?String(a.componentId):void 0,c.template=String(b),c));return a.paths.getBaseUrl()+c};
U_.prototype.openEditor=function(a){var b=this;this.currentIndex=a===void 0?-1:a;if(this.currentIndex<0){this.currentTemplate=W3c(this,{componentId:this.componentId,default:!1,name:"New Template"});bs(this.currentTemplate);this.updateSelectedHotlists();V_(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else X3c(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=W3c(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
V_(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var X3c=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},O3c=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,Y3c(a)):b()},Q3c=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},R3c=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
S3c=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},Y3c=function(a){nK(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(gg(a.destroyed$)).subscribe(function(b){b!==void 0&&V3c(a,b)})},U3c=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},W3c=function(a,b){return new L_(a.customFieldIds,b)};
U_.prototype.loadCustomFields=function(){var a=this;this.customFieldRows=[];this.customFieldIds={};return this.supportCustomFields?this.componentActions.get(this.componentId).then(function(b){a.componentIdsToPaths={};var c=[],d,e=((d=b.componentPathInfo)==null?void 0:d.componentPathId)||[];for(d=0;d<e.length;d++){var f=b.componentPathInfo.componentPathId[d];c.push(b.componentPathInfo.componentPathName[d]);a.componentIdsToPaths[f]=c.join(" > ")}b=l(b.componentPathInfo.allCustomField||[]);for(c=b.next();!c.done;c=
b.next()){c=c.value;if(!c.enabledOnIssues)return;a.customFieldIds[c.customFieldId.toString()]=c;a.customFieldRows.push(new s3c(c,c.type==="TEXT"?"1":"2"))}a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load custom fields")}):Promise.resolve()};
U_.prototype.loadTemplates=function(){var a=this;this.templates=[];return this.templatesApi.query(this.componentId).then(function(b){a.templates=b;b=l(a.templates);for(var c=b.next();!c.done;c=b.next())c=c.value,c.snapshot.hotlistId?a.templateHotlistIds.push(c.snapshot.hotlistId):a.templateHotlistIds.push([]);a.defaultIndex=a.templates.findIndex(function(d){return d.default});a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load templates")})};
var V_=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new r3c(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new r3c(-1,a.currentTemplate,!1),a.templateRows.push(a.currentTemplateRow)),a.hotlistPickerIndex=a.templates.length;else{var b=a.currentIndex,c=[];var d=a.templates.slice(0,b+1);c=c.concat(d.map(function(e,f){return new r3c(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new r3c(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new r3c(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},aqb=function(a,b){var c,d,e,f;return w(function(h){switch(h.nextAddress){case 1:if(b<0||a.defaultIndex===b)return h.return();c=a.templates[b];if(c.default)return h.return();d=c.name;Ca(Vr(d))&&(d="(unnamed template)");a.defaultIndex=b;Mq(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");te(h,2,3);return x(h,Z3c(a,c.templateId),5);case 5:Mq(a.butterBar,"Changed default template to "+d);case 3:return ue(h),x(h,a.loadTemplates(),6);case 6:V_(a);a.cdr.detectChanges();we(h,0);break;case 2:e=xe(h),f="Error while changing default message"+(Wo(e)?": "+Xo(e):"."),a.butterBar.showWarning(f),h.jumpTo(3)}})},Z3c=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(a.component$),2);if(e.nextAddress!=3){c=e.yieldResult;
if(!c||c.defaultTemplateId===b)return e.return();c.defaultTemplateId=b;return x(e,a.componentActions.update(c),3)}d=e.yieldResult;a.componentFridge.announce(d);a.appEvents.templateModified.next(String(d.componentId));ze(e)})};
U_.prototype.editStaffing=function(){var a=this,b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,a.staffingDialogService.show((c=(b=a.currentTemplate.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,!0),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.currentTemplate.staffing=e;bs(a.currentTemplate);ze(f)})};
U_.prototype.handleAutocompleteSelection=function(a,b,c){b&&b.editableTemplate&&(c==="verifier"?b.editableTemplate.verifier=a:c==="assignee"&&(b.editableTemplate.assignee=a),bs(b.editableTemplate),this.cdr.detectChanges())};U_.\u0275fac=function(a){return new (a||U_)};
U_.\u0275cmp=B({type:U_,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(Wg(E3c,5,WU),Wg(F3c,5,WU),Wg(G3c,5),Wg(H3c,5));if(a&2){var c;$g(c=ah())&&(b.assigneeSearchBar=c.first);$g(c=ah())&&(b.verifierSearchBar=c.first);$g(c=ah())&&(b.saveBeforeClosingDialog=c.first);$g(c=ah())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},standalone:!1,features:[hh([NA]),kg],decls:23,vars:2,consts:[["deleteDialog",""],["saveBeforeClosingDialog",
""],["typeMenu",""],["priorityMenu",""],["severityMenu",""],["assigneePeopleKitDiv",""],["verifierPeopleKitDiv",""],["peopleKitDiv",""],["ccsPeopleKitDiv",""],["card","onedevHovercard"],["cardBody",""],[1,"component-banner","template-help-banner"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"templates-list"],[1,"template-column-tool"],[1,"edit-button-row"],["format","fill","bAriaLabel","Create New template in this component",3,"onAction"],["colspan","4"],["tabindex","-1",
1,"template-row-name"],[1,"template-row-new-issue-link"],["tabindex","0",1,"keep-focus-ring",3,"href"],[3,"change","id","checked","aria-label","value"],["format","hairline",3,"onAction","bAriaLabel"],["format","hairline",3,"onAction","bAriaLabel","disabled"],[1,"template-edit-pane","template-editor-within-table"],[1,"form-header"],[1,"cell-1"],[1,"template-label"],["for","template-name"],["id","template-name","type","text",1,"template-field",3,"ngModelChange","ngModel"],["for","template-description"],
["id","template-description","type","text",1,"template-field",3,"ngModelChange","ngModel"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),[1,"cell-1","access-limit-row"],[1,"access-limit-field"],["for","template-issue-access-limits-dropdown"],["id","template-issue-access-limits-dropdown",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"collaborator-group-field"],["for","template-title"],["id","template-title","type","text",1,"template-field",
3,"ngModelChange","ngModel"],[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["type","button","mat-menu-item","",3,"disabled","matTooltip"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"disabled"],
["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],[1,"cell-1","bv2-edit-template-hotlists"],["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[1,"bv2-hotlist-chips"],[1,"float-clear"],[1,"cell-2"],["for","template-assignee"],["id","template-assignee","type","text",1,"template-field",3,"bContactAutocomplete",
"ngModel"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"ariaLabel","email","singleUserMode"],["for","template-verifier"],["id","template-verifier","type","text",1,"template-field",3,"bContactAutocomplete","ngModel"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"ariaLabel","email","singleUserMode"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModelChange","ngModel"],[3,"change","initialValue"],["for","template-in-prod"],
["id","template-in-prod","aria-label","issue in prod",3,"modelChange","model"],[1,"cell-1","staffing-row"],["for","template-staffing"],["matTooltip","The Staffing field represents planned contributors on this issue.","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],[1,"bv2-edit-button"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class"],[1,"buttons-row"],
["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction"],["id","template-inheritable","aria-label","template inheritable by child components",3,"modelChange","model"],["for","template-inheritable"],["matTooltip","If activated, all child components will inherit this template. Make sure this template meets your organizational needs as sub-components will not be able to hide this template","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["for",
"template-collaborator-groups-dropdown"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-xs","valign-middle","margin-xs-left",3,"matTooltip"],["appearance","outline",1,"static-label"],["multiple","","aria-label","Collaborator groups",3,"ngModelChange","ngModel"],[3,"value"],["type","button","mat-menu-item","",3,"click","disabled","matTooltip"],["type","button","mat-menu-item","",3,"click","disabled"],[3,"removeHotlist","hotlist"],["id","template-assignee","type","text",1,"template-field",
3,"ngModelChange","bContactAutocomplete","ngModel"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"singleUserSelectionChange","ariaLabel","email","singleUserMode"],["id","template-verifier","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"singleUserSelectionChange","ariaLabel","email","singleUserMode"],["for","template-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions",
"svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["id","template-collaborators-peoplekit","aria-expanded","true",1,"template-field",3,"selectionChange","ariaLabel","emails"],["for","template-collaborators"],["id","template-collaborators","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],["for","template-cc-peoplekit"],["id","template-cc-peoplekit","aria-expanded","true",1,"template-field",3,"selectionChange","ariaLabel","emails"],
["for","template-cc"],["id","template-cc","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],[3,"for"],["type","text",1,"template-field",3,"ngModel"],["type","number","step","any",1,"template-field",3,"ngModel"],[3,"type","name","clearable","value","choices"],[3,"boundValue"],[3,"defaultLineCount","type","values","enumChoices","truncate"],["type","text",1,"template-field",3,"ngModelChange","ngModel"],["type","number","step","any",1,"template-field",3,"ngModelChange",
"ngModel"],[3,"valueChange","type","name","clearable","value","choices"],[3,"boundValueChange","boundValue"],[3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate"],["role","heading","aria-level","3",1,"template-row-name"],["colspan","2"],[1,"template-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button",
"",1,"medium","cancel",3,"mat-dialog-close"],["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],["type","button","mat-button","",1,"medium",3,"mat-dialog-close"],["type","button","cdkFocusInitial","","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=r();I(0,"div")(1,"div",11);Q(2," A template is a set of default values for new issues created in this component. ");I(3,"a",12);Q(4,"Learn more");
J()();I(5,"table",13)(6,"tr")(7,"th");Q(8,"TEMPLATE");J();I(9,"th",14);Q(10,"DEFAULT");J();K(11,"th",14)(12,"th",14);J();Dg(13,Pqb,3,1,"tr",null,Cg);E(15,Tqb,3,1);J();I(16,"div",15)(17,"b-button",16);M("onAction",function(){t(c);return v(P3c(b))});Q(18," Create New Template ");J()();C(19,Uqb,7,3,"ng-template",null,0,nh)(21,Vqb,9,4,"ng-template",null,1,nh);J()}if(a&2){var d;z(3);D("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",uf);z(10);Eg(M3c(b));z(2);
F((d=N3c(b))?15:-1,d)}},dependencies:[aH,aB,wQ,lN,VL,Li,xy,oy,vy,gU,y_,fJ,gJ,lJ,hJ,M_,hN,PA,Tx,uK,yK,xK,AN,gH,bJ,rP,Xy,zP,AP,Lx,YM,YA,cB,CL,UG,XG,VG,YG,sS,XU,EQ],styles:["[_nghost-%COMP%]     mat-form-field.static-label{width:180px;margin-top:5px;font-size:1rem}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-infix{min-height:initial;padding:0}.buttons-row[_ngcontent-%COMP%]   b-button[_ngcontent-%COMP%]{margin-right:10px}.access-limit-field[_ngcontent-%COMP%]{margin-right:20px}.cell-1.access-limit-row[_ngcontent-%COMP%]{display:inline-flex;min-height:60px}.template-component-path[_ngcontent-%COMP%]{white-space:nowrap}.cell-1.staffing-row[_ngcontent-%COMP%]{width:auto}.cell-1.staffing-row[_ngcontent-%COMP%]   .staffing-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-1.staffing-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{align-items:center;cursor:pointer;display:flex;justify-content:space-between;width:100%}"]});var W_=function(){};W_.\u0275fac=function(a){return new (a||W_)};W_.\u0275mod=Jf({type:W_});W_.\u0275inj=Tc({imports:[ZB,GZ]});var X_=function(){};X_.\u0275fac=function(a){return new (a||X_)};X_.\u0275mod=Jf({type:X_});X_.\u0275inj=Tc({imports:[bH,ZB,BQ,BW,XL,Ly,jV,H_,WJ,W_,iN,$B,GM,$K,gO,hH,VB,cJ,yQ,Ox,cC,EL,LH,PQ,dW,FQ,nV,oV]});var Y_=function(){this.activeSession=n(Es);this.appSearchState=n(mX);this.analytics=n(CF);this.domSafe=n(rL);this.enableEstado=Yr(this.activeSession,"enableEstado")};Y_.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};Y_.\u0275fac=function(a){return new (a||Y_)};Y_.\u0275prov=Sc({token:Y_,factory:Y_.\u0275fac,providedIn:"root"});var Z_=function(){this.sloStatusHelpersService=n(eL);this.dateFormatter=n(YL);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=Ce("--");this.SloRuleDayType=Fkc;this.iconName="slo-status-no-data"};Z_.prototype.getIconName=function(a){return $3c.has(a)?$3c.get(a):"slo-status-no-data"};
var a4c=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?YPa(c*1E3).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";a.cardActionText=b==="COMPLETED"?a.sloMetricDescription==="ASSIGNMENT"?"Assigned on:":a.sloMetricDescription==="RESPONSE"?"Responded on:":a.sloMetricDescription==="CLOSURE"?"Closed on:":"SLO fulfilled on:":a.sloMetricDescription==="ASSIGNMENT"?"Assign by:":a.sloMetricDescription==="RESPONSE"?"Respond by:":a.sloMetricDescription==="CLOSURE"?"Close by:":"Due by:";switch(b){case "COMPLETED":a.timeDisplayText=
a.sloMetricDescription==="ASSIGNMENT"?"Issue assigned":a.sloMetricDescription==="RESPONSE"?"Response recorded":a.sloMetricDescription==="CLOSURE"?"Issue closed":"SLO fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":a.timeDisplayText=a.sloMetricDescription==="ASSIGNMENT"?c+" to assign":a.sloMetricDescription==="RESPONSE"?c+" to respond":a.sloMetricDescription==="CLOSURE"?c+" to close":c+" left";break;case "OUT_OF_SLO":a.timeDisplayText=a.sloMetricDescription===
"ASSIGNMENT"?c+" overdue for assignment":a.sloMetricDescription==="RESPONSE"?c+" overdue for response":a.sloMetricDescription==="CLOSURE"?c+" overdue for closure":c+" overdue";break;case "NO_DATA":a.timeDisplayText=a.sloMetricDescription==="ASSIGNMENT"?"No assignment SLO":a.sloMetricDescription==="RESPONSE"?"No response SLO":a.sloMetricDescription==="CLOSURE"?"No closure SLO":"--";break;default:Nj("unknown status type: "+b)}};
Z_.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&fL(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=YPa(c*1E3):this.objectiveDisplayText=null;var d,e,f;this.rawObjectiveDisplayText=YPa((((e=(d=this.sloBounds.objective)==null?void 0:d.seconds)!=null?e:0)+((f=this.sloBounds.businessDays)!=null?f:0)*86400)*1E3);this.sloEndTimeDisplayText=fHc(this.dateFormatter,new Date(b*1E3));c=this.sloBounds;fL(c)&&
c.endTime&&c.endTime.seconds!==0&&c.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=fHc(this.dateFormatter,new Date(b*1E3)),a4c(this,"COMPLETED",a-b)):b<a?a4c(this,"OUT_OF_SLO",a-b):(c=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,a4c(this,a>259200?c?"SNOOZED_HEALTHY":"HEALTHY":c?"SNOOZED_NEAR":"NEAR",a))}else a4c(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
Z_.\u0275fac=function(a){return new (a||Z_)};
Z_.\u0275cmp=B({type:Z_,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},standalone:!1,features:[Uu],decls:15,vars:12,consts:[["card",""],[3,"ngClass","svgIcon"],[1,"slo-time-indicator-text",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"slo-status-text"],["role","dialog","aria-label","More slo information",
1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"margin-s-bottom","padded-s-bottom","border-bottom"]],template:function(a,b){a&1&&(K(0,"mat-icon",1),I(1,"span",2)(2,"span",3),Q(3),J()(),I(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",5)(8,"div"),Q(9),J(),I(10,"div",6),Q(11),S(12,"async"),J(),E(13,Wqb,4,2)(14,Xqb,2,1,"div"),J()()());a&2&&(a=L(5),D("ngClass",b.iconName)("svgIcon",b.iconName),ng("aria-label",b.timeDisplayText==="--"?"No SLO data":""),z(),D("onedevHovercardTrigger",a)("onedevHovercardActive",
!(!b.includeObjective||!b.rawObjectiveDisplayText)),z(2),ch(b.timeDisplayText),z(6),ch(b.timeDisplayText),z(2),dh(" ",b.cardActionText," ",T(12,10,b.sloEndTimeDisplayText)," "),z(2),F((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[Mv,aB,fJ,lJ,Qv],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block}mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:18px;height:18px;flex-shrink:0}mat-icon.slo-status-snoozed-near-slo[_ngcontent-%COMP%], mat-icon.slo-status-near[_ngcontent-%COMP%]{color:#fa7b17;color:var(--slo-near)}mat-icon.slo-status-snoozed-healthy[_ngcontent-%COMP%], mat-icon.slo-status-healthy[_ngcontent-%COMP%], mat-icon.slo-status-no-data[_ngcontent-%COMP%], mat-icon.slo-status-completed[_ngcontent-%COMP%]{color:#80868b;color:var(--slo-healthy)}mat-icon.slo-status-out-of-slo[_ngcontent-%COMP%]{color:#ea4335;color:var(--slo-overdue)}[_nghost-%COMP%]{display:inline-flex}.onedev-hovercard-content[_ngcontent-%COMP%]{width:fit-content}"],
changeDetection:0});var $3c=new Map([["SNOOZED_HEALTHY","slo-status-snoozed-healthy"],["SNOOZED_NEAR","slo-status-snoozed-near-slo"],["OUT_OF_SLO","slo-status-out-of-slo"],["HEALTHY","slo-status-healthy"],["NEAR","slo-status-near"],["COMPLETED","slo-status-completed"],["NO_DATA","slo-status-no-data"]]);var a0=function(){this.sloStatusHelpersService=n(eL);this.includeNoSlo=!1};a0.prototype.ngOnInit=function(){b4c(this);this.hasSlo=!!this.sloStatus&&jFc(this.sloStatus)};a0.prototype.ngOnChanges=function(){b4c(this)};var b4c=function(a){a.sloStatus&&(a.assignmentSlo=c4c(Sk(a.sloStatus.assignmentBounds)),a.responseSlo=c4c(Sk(a.sloStatus.responseBounds)),a.closureSlo=c4c(Sk(a.sloStatus.closureBounds)))};a0.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var c4c=function(a){if(fL(a))return a};a0.\u0275fac=function(a){return new (a||a0)};
a0.\u0275cmp=B({type:a0,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},standalone:!1,features:[Uu],decls:3,vars:3,consts:[["sloMetricDescription","ASSIGNMENT",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloStartTime","sloEndTime","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloStartTime",
"sloEndTime","sloBounds","includeObjective"]],template:function(a,b){a&1&&(E(0,Yqb,2,4,"div"),E(1,Zqb,2,4,"div"),E(2,$qb,2,4,"div"));a&2&&(F(!b.includeNoSlo&&!b.assignmentSlo||b.onlyShowMetric&&b.onlyShowMetric!="ASSIGNMENT"?-1:0),z(),F(!b.includeNoSlo&&!b.responseSlo||b.onlyShowMetric&&b.onlyShowMetric!="RESPONSE"?-1:1),z(),F(!b.includeNoSlo&&!b.closureSlo||b.onlyShowMetric&&b.onlyShowMetric!="CLOSURE"?-1:2))},dependencies:[Z_],encapsulation:2,changeDetection:0});var b0=function(){this.sloStatusHelpersService=n(eL);this.analytics=n(CF);this.sloApi=n(rG)};b0.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&kFc(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=Fq.editSlo.makeHref(this.sloId),d4c(this)):this.editSloLink=null};b0.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var d4c=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};b0.\u0275fac=function(a){return new (a||b0)};
b0.\u0275cmp=B({type:b0,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",onlyShowMetric:"onlyShowMetric"},standalone:!1,ngContentSelectors:["*"],decls:10,vars:3,consts:[["card",""],[3,"onedevHovercardTrigger"],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],[1,"slo-indicators"],[1,"no-slo-message"],[3,"sloStatus","sloStartTime","onlyShowMetric"],[1,"slo-link",3,
"href"],[1,"slo-link",3,"click","href"]],template:function(a,b){a&1&&(Ng(),I(0,"span",1),Og(1),J(),I(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),E(7,arb,2,3,"div",5)(8,drb,3,1,"div",6),E(9,grb,4,1,"span"),J()()()());a&2&&(a=L(3),D("onedevHovercardTrigger",a),z(7),F(b.hasSlo?7:8),z(2),F(b.editSloLink?9:-1))},dependencies:[fJ,lJ,a0],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}hovercard-content[_ngcontent-%COMP%]   slo-time-indicator[_ngcontent-%COMP%]{display:inline-block;margin:2px 0}hovercard-content[_ngcontent-%COMP%]   .slo-indicators[_ngcontent-%COMP%]{margin-bottom:5px}hovercard-content[_ngcontent-%COMP%]   .no-slo-message[_ngcontent-%COMP%]{margin:2px 0 5px 2px}hovercard-content[_ngcontent-%COMP%]   .slo-link[_ngcontent-%COMP%]{margin-left:2px}/*# sourceMappingURL=slo_status_card.css.map */"]});var e4c=function(){var a=this;this.data=n(sK);this.column=this.data.column;this.columns=this.data.columns;this.selectedCustomField=null;this.isLegalColumn=function(b){return a.columns.find(function(c){return c.name===String(b.customFieldId)})===void 0}};e4c.\u0275fac=function(a){return new (a||e4c)};
e4c.\u0275cmp=B({type:e4c,selectors:[["b-column-picker-custom-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"fieldSelected","filter"],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"mat-dialog-content")(3,"b-custom-field-picker",1),M("fieldSelected",function(c){return b.selectedCustomField=
c}),J()(),I(4,"mat-dialog-actions")(5,"button",2),Q(6," Cancel "),J(),I(7,"button",3),Q(8," Add "),J()());a&2&&(z(),R("Insert custom field column next to ",b.column.fullLabel),z(2),D("filter",b.isLegalColumn),z(4),D("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[PA,Tx,uK,wK,yK,xK,o_],encapsulation:2});var hrb="issueId componentPath type status priority severity reporter assignee verifier cc collaborator changelist postmortem blockingIssueId blockedByIssueId createdTime modifiedTime resolvedTime verifiedTime title foundInVersion targetedToVersion verifiedInVersion inProd duplicateOfIssueId voteCount duplicateCount ccCount collaboratorCount lastModifier archived minSlo assignmentSlo responseSlo closureSlo deletionTime team estimate estimateTotalOpen estimateTotalComplete accessLevel descendantCount openDescendantCount oneDayViewCount sevenDayViewCount thirtyDayViewCount escalationOwner".split(" "),
f4c="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var ds=function(a){this.fullLabel="";this.isCustomField=!1;this.tooltip="";this.moreOptions=[];this.parentLabel="";this.draggable=this.sortable=!0;this.isMetadata=!1;this.label=this.name="";a&&Object.assign(this,a)};ds.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var nrb={issueId:{defaultSortDirection:"DESC",label:"ID",moreOptions:[{name:"id-link",menuItem:"Plain Link"},{name:"id-copy",menuItem:"Quick Copy Chip"}]},priority:{label:"P",fullLabel:"Priority"},severity:{label:"S",fullLabel:"Severity"},modifiedTime:{defaultSortDirection:"DESC",label:"LAST MODIFIED"},createdTime:{defaultSortDirection:"DESC",label:"CREATED"},verifiedTime:{defaultSortDirection:"DESC",label:"VERIFIED"},resolvedTime:{defaultSortDirection:"DESC",label:"RESOLVED"},blockedByIssueId:{sortable:!1,
label:"BLOCKED BY"},foundInVersion:{label:"FOUND IN"},targetedToVersion:{label:"TARGETED TO"},verifiedInVersion:{label:"VERIFIED IN"},inProd:{label:"IN PROD"},duplicateOfIssueId:{sortable:!1,label:"DUPLICATE OF"},componentPath:{label:"COMPONENT",moreOptions:[{name:"wrapComponents",menuItem:"Wrap components"},{name:"rtlComponentPath",menuItem:"Prefer right alignment"}]},cc:{sortable:!1},collaborator:{sortable:!1},changelist:{sortable:!1},postmortem:{sortable:!1},blockingIssueId:{sortable:!1,label:"BLOCKING"},
title:{moreOptions:[{name:"showHotlists",menuItem:"Show hotlists"},{name:"wrapTitles",menuItem:"Wrap titles"}]},status:{moreOptions:[{name:"showStatusIcons",menuItem:"Icons only"},{name:"status-plain",menuItem:"Plain text (no colors)"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC COUNT"},collaboratorCount:{defaultSortDirection:"DESC",
label:"COLLABORATOR COUNT"},lastModifier:{label:"LAST MODIFIED BY"},minSlo:{defaultSortDirection:"ASC",label:"NEAREST SLO",fullLabel:"Nearest SLO",parentLabel:"SLO"},assignmentSlo:{label:"ASSIGNMENT SLO",fullLabel:"Assignment SLO",parentLabel:"SLO",sortable:!0},responseSlo:{label:"RESPONSE SLO",fullLabel:"Response SLO",parentLabel:"SLO",sortable:!0},closureSlo:{label:"CLOSURE SLO",fullLabel:"Closure SLO",parentLabel:"SLO",sortable:!0},escalationOwner:{label:"OWNER",fullLabel:"Owner",parentLabel:"SLO",
sortable:!0},deletionTime:{label:"DELETION DATE",fullLabel:"Deletion Date",sortable:!0},team:{label:"TEAM",sortable:!0},estimate:{label:"ESTIMATE",fullLabel:"Estimate",parentLabel:"Estimates",sortable:!0},estimateTotalOpen:{label:"TOTAL DAYS OPEN",fullLabel:"Total days open",parentLabel:"Estimates",sortable:!0,tooltip:"Total estimate of all child issues that are open in number of days"},estimateTotalComplete:{label:"TOTAL DAYS COMPLETE",fullLabel:"Total days complete",parentLabel:"Estimates",sortable:!0,
tooltip:"Total estimate of all child issues that are complete (fixed or won\u2019t fix) in number of days"},accessLevel:{label:"ISSUE ACCESS LEVEL",sortable:!0},descendantCount:{defaultSortDirection:"DESC",parentLabel:"Descendant Issue",label:"DESCENDANT COUNT",sortable:!0},openDescendantCount:{defaultSortDirection:"DESC",parentLabel:"Descendant Issue",label:"OPEN DESCENDANT COUNT",sortable:!0},oneDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"24H VIEWS",sortable:!0,tooltip:"Total view count in the past 24 hours"},
sevenDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"7D VIEWS",sortable:!0,tooltip:"Total view count in the past seven days"},thirtyDayViewCount:{defaultSortDirection:"DESC",parentLabel:"View Count",label:"30D VIEWS",sortable:!0,tooltip:"Total view count in the past thirty days"}};var g4c=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};g4c.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var h4c=function(){this.bindings=[]};h4c.prototype.off=function(){for(var a=l(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var i4c=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new h4c;this.resetDragTarget=function(){b.dragTargetElement&&(b.dragTargetElement.classList.remove("drag-over"),b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.remove("right"));b.dragTargetElement=null};this.onDragTargetDragstart=function(c,d){b.draggedElement=d;b.dragIndex=b.params.getColumnIndexForElement(b.draggedElement);b.draggedElement.classList.add("dragging");
b.draggedElement.setAttribute("aria-grabbed","true");if(c=c.dataTransfer)c.setData("text","drag"),c.effectAllowed="move",c.dropEffect="move"};this.onDragTargetDragenter=function(c,d){b.draggedElement&&d&&d.draggable&&d!==b.draggedElement&&(b.resetDragTarget(),b.dragTargetElement=d,b.dragTargetElement&&(d=b.params.getColumnIndexForElement(b.dragTargetElement),b.dragTargetElement.classList.add("drag-over"),b.dragIndex!=null&&(d>b.dragIndex?(b.dragTargetElement.classList.remove("left"),b.dragTargetElement.classList.add("right")):
(b.dragTargetElement.classList.add("left"),b.dragTargetElement.classList.remove("right"))),b.mask.style.width=b.dragTargetElement.offsetWidth+"px",b.mask.style.height=b.dragTargetElement.offsetHeight+"px",b.mask.style.left="0",b.mask.style.top="0",b.dragTargetElement.appendChild(b.mask),b.mask.style.display="block"),c.stopPropagation(),c.preventDefault())};this.onDragTargetDragend=function(c,d){d.classList.remove("dragging");b.draggedElement&&b.draggedElement.setAttribute("aria-grabbed","false");
b.resetDragTarget();b.draggedElement=null;b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onDragTargetSelectstart=function(c){c.currentTarget.dragDrop();c.stopPropagation();c.preventDefault()};this.onMaskDragLeave=function(c){b.resetDragTarget();b.mask.style.display="none";c.stopPropagation();c.preventDefault()};this.onMaskDragover=function(c){b.draggedElement&&(c.stopPropagation(),c.preventDefault())};this.onMaskDrop=function(c){if(b.dragTargetElement){var d=b.params.getColumnIndexForElement(b.dragTargetElement);
b.resetDragTarget();b.mask.style.display="none";b.dragIndex!==d&&b.params.ngZone.run(function(){if(b.dragIndex!=null)b.params.onDragDropColumn(b.dragIndex,d)})}c.stopPropagation();c.preventDefault()};this.element=this.params.nativeElement};
i4c.prototype.setup=function(){var a=this;this.mask.style.position="absolute";this.mask.style.zIndex="100";this.mask.style.margin="-2px";this.mask.classList.add("pop-grid-dnd-mask");this.mask.style.display="none";this.params.ngZone.runOutsideAngular(function(){j4c(a,"dragstart",a.onDragTargetDragstart);j4c(a,"dragenter",a.onDragTargetDragenter);j4c(a,"dragend",a.onDragTargetDragend);j4c(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new g4c(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new g4c(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new g4c(a.mask,"drop",a.onMaskDrop))})};var j4c=function(a,b,c){a.eventBindings.bindings.push(new g4c(a.element,b,On("th.drag-target",c)))};i4c.prototype.tearDown=function(){this.eventBindings.off()};var k4c=["table"],l4c=["defaultHeaderCellTemplate"],m4c=["defaultViewCellTemplate"],n4c=["dataRows"],qrb=function(a){return{column:a}},trb=function(a,b,c){return{row:a,column:b,index:c}},vrb=function(a,b){return b.name},xrb=function(a,b){return b.id},c0=function(){var a=this;this.activeSession=n(Es);this.ngZone=n(ph);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new LA;this.rowClick=new LA;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new LA;this.focusedRowIndexChange=new LA;this.afterViewInit=new LA;this.enableDragDropHeader=!0;this.readUnreadOptOut=Yr(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(b,c){var d=[].concat(p(a.columns));b=d.splice(b,1)[0];d.splice(c,0,b);a.columns=d;a.columnsChange.emit([].concat(p(a.columns)))};this.onTdClickableClick=On("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!Wvc(c)&&(c=c.closest("tr"))){var d,e=(d=c.dataset.rowId)!=null?d:"";a.rowClick.emit({id:e,
isRead:!!c.dataset.isRead,event:b})}})};c0.prototype.ngOnInit=function(){this.enableDragDropHeader&&o4c(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var o4c=function(a){a.dragDropHeaderLogic=new i4c({nativeElement:a.tableElement.nativeElement,ngZone:a.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});a.dragDropHeaderLogic.setup()};
c0.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;b!=null&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(kJa(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};c0.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
c0.prototype.ngOnDestroy=function(){var a;(a=this.dragDropHeaderLogic)==null||a.tearDown();this.tableElement.nativeElement.removeEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.removeEventListener("mouseup",this.onTdClickableClick)};var p4c=function(a){return a.columns.map(function(b){b=b.name;return b!=null?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};c0.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
c0.prototype.focus=function(){if(this.focusedRowIndex!=null&&this.dataRows!=null){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};c0.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};c0.\u0275fac=function(a){return new (a||c0)};
c0.\u0275cmp=B({type:c0,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(Wg(k4c,7),Wg(l4c,7),Wg(m4c,7),Wg(n4c,5,ff));if(a&2){var c;$g(c=ah())&&(b.tableElement=c.first);$g(c=ah())&&(b.defaultHeaderCellTemplate=c.first);$g(c=ah())&&(b.defaultViewCellTemplate=c.first);$g(c=ah())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer",enableDragDropHeader:"enableDragDropHeader"},outputs:{columnsChange:"columnsChange",
rowClick:"rowClick",sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},standalone:!1,features:[Uu],decls:15,vars:1,consts:[["table",""],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],["dataRows",""],[1,"pop-grid",3,"mousedown"],[3,"class"],[1,"header-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus"],["tabindex","0",3,"click","focus"],[3,"column"],[3,"row","column"]],
template:function(a,b){if(a&1){var c=r();I(0,"table",4,0);M("mousedown",function(e){t(c);e.shiftKey&&window.getSelection().removeAllRanges();return v()});I(2,"colgroup");Dg(3,orb,1,3,"col",5,vrb);J();I(5,"thead")(6,"tr",6);Dg(7,rrb,1,4,"ng-container",null,vrb);J()();I(9,"tbody");E(10,yrb,2,0);J()();C(11,zrb,2,1,"ng-template",null,1,nh)(13,Arb,2,2,"ng-template",null,2,nh)}if(a&2){var d;z(3);Eg(b.columns);z(4);Eg(b.columns);z(3);F((d=p4c(b))?10:-1,d)}},encapsulation:2});
var d0=function(){this.templateRef=n(Tg);this.popGrid=n(c0)};d0.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};d0.\u0275fac=function(a){return new (a||d0)};d0.\u0275dir=Kf({type:d0,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"},standalone:!1});var e0=function(){this.templateRef=n(Tg);this.popGrid=n(c0)};
e0.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};e0.\u0275fac=function(a){return new (a||e0)};e0.\u0275dir=Kf({type:e0,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"},standalone:!1});var f0=function(){this.templateRef=n(Tg);this.popGrid=n(c0)};f0.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};f0.\u0275fac=function(a){return new (a||f0)};
f0.\u0275dir=Kf({type:f0,selectors:[["","forHeaderCellDefault",""]],standalone:!1});var g0=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new LA};g0.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?this.sort.direction==="ASC"?a+", sorted ascending":a+", sorted descending":a};g0.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
g0.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a=this.sort.direction==="ASC"?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};g0.\u0275fac=function(a){return new (a||g0)};
g0.\u0275cmp=B({type:g0,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},standalone:!1,decls:3,vars:8,consts:[["role","button","tabindex","0",1,"keep-focus-ring","pop-grid-sort-header",3,"click","keydown.enter","keydown.space"],[1,"arrow"]],template:function(a,b){a&1&&(I(0,"div",0),M("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();
return c.stopPropagation()})("keydown.space",function(c){b.activate();return c.stopPropagation()}),K(1,"span",1),Q(2),J());a&2&&(wg("current-sort",b.isActive())("direction-asc",b.isActive()&&b.sort.direction==="ASC")("direction-desc",b.isActive()&&b.sort.direction==="DESC"),ng("aria-label",b.ariaLabel()),z(2),R(" ",b.columnLabel," "))},encapsulation:2});var h0=function(){this.elementRef=n(ff);this.grid=n(c0,{optional:!0})};h0.prototype.ngAfterViewInit=function(){if(this.column){var a=this.column;if(a.draggable){var b;a:{for(b=this.elementRef.nativeElement;b.parentElement;){if(b.parentElement.tagName==="TH"){b=b.parentElement;break a}b=b.parentElement}b=void 0}if(this.cellParent=b)this.cellParent.draggable=!0,this.cellParent.classList.add("drag-target"),this.cellParent.dataset.dragTargetColumnName=a.name}}};
h0.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};h0.\u0275fac=function(a){return new (a||h0)};
h0.\u0275cmp=B({type:h0,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},standalone:!1,decls:3,vars:1,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"],[3,"sortChanged","columnLabel","columnName","defaultSortDirection","sort","matTooltip"],[1,"a11y-only"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,Brb,1,5,"b-sortable-header",1)(2,Drb,3,3,"div",2),J());a&2&&(z(),
F(b.column.sortable?1:2))},dependencies:[YA,cB,g0],encapsulation:2});var q4c=function(){return{before:!1}},r4c=function(){return{before:!0}},Krb=function(a,b){return{columns:a,before:b}},i0=function(){Z.call(this);var a=this;this.matDialog=n(tK);this.userPreferencesManager=n(OG);this.butterBar=n(iK);this.analytics=n(CF);this.hotkeys=n(nH);this.activeSession=n(Es);this.selectedColumnsChange=new LA;this.onAddTeamColumn=new LA;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=tC.listViewPreferences;this.userPreferencesManager.preferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||tC.listViewPreferences})};Y(i0,Z);i0.\u0275dir=Z.\u0275dir;i0.prototype.ngOnChanges=function(a){a.selectedColumns&&s4c(this)};
var t4c=function(a){a.selectedColumnsChange.emit([].concat(p(a.selectedColumns)));s4c(a)},Frb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=Grb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||Mq(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(Uf(),gg(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||Mq(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},Nrb=function(a,b){a.hotkeys.pause();nK(a.matDialog.open(e4c,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(gg(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},s4c=function(a){for(var b={},
c=l(a.selectedColumns),d=c.next();!d.done;d=c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!Oqa(b,f.name)});c=[].concat(p(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(h){return h.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(p(d),p(c));a.currentAvailableItems.sort(function(f,h){return Ba(f instanceof ds?f.fullLabel:
f.label,h instanceof ds?h.fullLabel:h.label)});a.isRemovable=u4c(a)};i0.prototype.isIssueGridColumn=function(a){return a instanceof ds};i0.prototype.remove=function(){var a=this;if(this.isRemovable){var b=this.selectedColumns.filter(function(c){return c.name!==a.column.name});if(b.length!==this.selectedColumns.length)return this.selectedColumns=b,t4c(this),!0}return!1};
i0.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new ds({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;a.label==="TEAM"&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(d===-1)return!1;b=b?d:d+1;this.selectedColumns=[].concat(p(this.selectedColumns));this.selectedColumns.splice(b,0,a);t4c(this);return!0};
var u4c=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};i0.\u0275fac=function(a){return new (a||i0)};
i0.\u0275cmp=B({type:i0,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&Wg(YG,5);if(a&2){var c;$g(c=ah())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},standalone:!1,features:[kg,Uu],decls:21,vars:10,consts:[["pickerMenu","matMenu"],["addColumnMenu","matMenu"],["columnGroupMenu","matMenu"],["menuTrigger","matMenuTrigger"],
[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active"],[1,"columnpicker-menu"],["type","button","mat-menu-item","",1,"checkbox-item",3,"b-menu-item-checked"],["type","button","mat-menu-item","",3,"click","disabled"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["matMenuContent",""],["mat-button","","tabindex","0","role",
"button",1,"columnpicker-button",3,"menuOpened","menuClosed","keydown.enter","keydown.space","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"matTooltip"],["type","button","mat-menu-item","",3,"click","keydown.enter","matTooltip"],["type","button","mat-menu-item",""],["type","button",
"mat-menu-item","",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=r();I(0,"div",4)(1,"div",5);K(2,"pop-grid-default-th",6);J();E(3,Erb,2,5,"div",7);I(4,"mat-menu",8,0);Dg(6,Hrb,4,3,"button",9,Cg);E(8,Irb,1,0,"mat-divider");I(9,"button",10);M("click",function(){t(c);return v(b.remove())});Q(10," Remove column ");J();I(11,"button",11);Q(12," Add column right ");J();I(13,"button",11);Q(14," Add column left ");J()();I(15,"mat-menu",null,1);C(17,Orb,5,0,"ng-template",12);J();I(18,"mat-menu",
null,2);C(20,Qrb,2,0,"ng-template",12);J()()}a&2&&(a=L(16),z(2),D("column",b.column),z(),F(3),z(3),Eg(b.column.moreOptions),z(2),F(b.column.moreOptions.length?8:-1),z(),D("disabled",!b.isRemovable),z(2),D("matMenuTriggerFor",a)("matMenuTriggerData",ih(8,q4c)),z(2),D("matMenuTriggerFor",a)("matMenuTriggerData",ih(9,r4c)))},dependencies:[UG,XG,VG,WG,YG,HL,YA,cB,CL,h0],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid rgba(0,0,0,0);height:24px;width:24px;opacity:.8}.columnpicker-button[_ngcontent-%COMP%]::before{background:none;border-radius:50%;position:absolute;top:-2px;bottom:-2px;left:-2px;right:-2px;box-sizing:border-box;content:"";display:block}.columnpicker-button[_ngcontent-%COMP%]:hover::before, .columnpicker-button[_ngcontent-%COMP%]:focus::before, .columnpicker-button.columnpicker-button-active[_ngcontent-%COMP%]::before{background-color:#dadce0;background-color:var(--c300);opacity:1}.columnpicker-button[_ngcontent-%COMP%]::after{background:url(https://www.gstatic.com/buganizer/img/v0/arrow_drop_down_black.svg);content:"";cursor:pointer;height:24px;width:24px;opacity:.8;position:absolute}@media(forced-colors: active){.columnpicker-button[_ngcontent-%COMP%]::after{filter:invert(1)}}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item{white-space:normal;font-family:Roboto,Arial,sans-serif}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item.checkbox-item{padding-left:24px}  .columnpicker-menu .mat-mdc-menu-content button.mat-mdc-menu-item .b-menu-item-check-mark{top:50%;transform:translate(0, -50%)}/*# sourceMappingURL=column_picker.css.map */']});var x4c=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=On("td.drag-handle",function(c,d){b.draggedRow=d.closest("tr");b.draggedRow.classList.add("dragging");b.draggedRow.setAttribute("aria-grabbed","true");c=c.dataTransfer;c.setData("text","drag");c.setDragImage(b.draggedRow,0,0);c.effectAllowed="move";c.dropEffect="move"});this.onTrDragEnter=On("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){v4c(b.dragTargetRow);b.dragTargetRow=d;var e;b.draggedIssueIndex=b.params.rowFinder((e=b.draggedRow.dataset.rowId)!=null?e:void 0);var f;b.dragTargetIndex=b.params.rowFinder((f=b.dragTargetRow.dataset.rowId)!=null?f:void 0);b.dragTargetRow.classList.add("drag-over");b.dragTargetIndex>b.draggedIssueIndex?b.dragTargetRow.classList.add("below"):b.dragTargetRow.classList.add("above");a:{for(c=b.dragTargetRow.parentElement;c;){if(window.getComputedStyle(c).position!=="static")break a;
c=c.parentElement}c=void 0}c&&(d=c.scrollTop||0,c=b.dragTargetRow.getBoundingClientRect().top-c.getBoundingClientRect().top+d,b.dropzone.style.width=b.dragTargetRow.offsetWidth+"px",b.dropzone.style.height=b.dragTargetRow.offsetHeight+"px",b.dropzone.style.left="0",b.dropzone.style.top=c+"px");b.dragTargetRow.appendChild(b.dropzone);b.dropzone.style.display="block"}});this.onTrDragEnd=On("tr",function(){b.draggedRow&&(v4c(b.draggedRow),v4c(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=On("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=On(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=On(".row-dropzone",function(c){v4c(b.dragTargetRow);w4c(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=On(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=On(".row-dropzone",function(c){w4c(b);
b.draggedIssueIndex!==b.dragTargetIndex&&b.params.ngZone.run(function(){if(b.draggedIssueIndex!=null&&b.dragTargetIndex!=null)b.params.onRowDragDrop({srcIndex:b.draggedIssueIndex,destIndex:b.dragTargetIndex})});c.stopPropagation();c.preventDefault()})};
x4c.prototype.setup=function(){var a=this;this.dropzone.style.position="absolute";this.dropzone.style.zIndex="100";this.dropzone.style.margin="-2px";this.dropzone.classList.add("row-dropzone");w4c(this);this.params.ngZone.runOutsideAngular(function(){a.element.addEventListener("dragstart",a.onTdDragStart);a.element.addEventListener("dragenter",a.onTrDragEnter);a.element.addEventListener("dragend",a.onTrDragEnd);a.element.addEventListener("dragleave",a.onTrDragLeave);a.element.addEventListener("dragenter",
a.onDropzoneDragEnter);a.element.addEventListener("dragleave",a.onDropzoneDragLeave);a.element.addEventListener("dragover",a.onDropzoneDragOver);a.element.addEventListener("drop",a.onDropzoneDrop)})};
x4c.prototype.tearDown=function(){this.dropzone.remove();this.element.removeEventListener("dragstart",this.onTdDragStart);this.element.removeEventListener("dragenter",this.onTrDragEnter);this.element.removeEventListener("dragend",this.onTrDragEnd);this.element.removeEventListener("dragleave",this.onTrDragLeave);this.element.removeEventListener("dragenter",this.onDropzoneDragEnter);this.element.removeEventListener("dragleave",this.onDropzoneDragLeave);this.element.removeEventListener("dragover",this.onDropzoneDragOver);
this.element.removeEventListener("drop",this.onDropzoneDrop)};var v4c=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},w4c=function(a){a.dropzone.style.display="none"};var j0=function(){this.sloStatusHelpersService=n(eL);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};j0.prototype.ngOnInit=function(){y4c(this)};j0.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&y4c(this)};var y4c=function(a){var b=lFc(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
j0.\u0275fac=function(a){return new (a||j0)};
j0.\u0275cmp=B({type:j0,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},standalone:!1,features:[Uu],decls:1,vars:5,consts:[[3,"sloBounds","sloMetricDescription","sloStartTime","sloEndTime","includeObjective"]],template:function(a,b){a&1&&K(0,"b-slo-time-indicator",0);a&2&&D("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloStartTime",
b.sloStartTime)("sloEndTime",b.sloEndTime)("includeObjective",b.includeObjective)},dependencies:[Z_],encapsulation:2,changeDetection:0});var z4c=function(){};z4c.\u0275fac=function(a){return new (a||z4c)};z4c.\u0275cmp=B({type:z4c,selectors:[["archived-issue-indicator"]],standalone:!1,decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(I(0,"span"),K(1,"mat-icon",0),Q(2,"Archived "),J())},dependencies:[aB],styles:["span[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;margin-right:6px;color:#202124;color:var(--text-high-contrast);background-color:#feefc3;background-color:var(--archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var k0=function(){};k0.\u0275fac=function(a){return new (a||k0)};k0.\u0275mod=Jf({type:k0});k0.\u0275inj=Tc({imports:[ZB]});var l0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(l0,V);l0.prototype.getIssueId=function(){return Dl(this,1)};l0.prototype.getIssueId_asLegacyNumberOrString=function(){return zl(this,1)};l0.prototype.getIssueId_asString=function(){return Gl(this,1)};l0.prototype.setIssueId=function(a){return Fm(this,1,a)};var A4c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A4c,V);var m0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,m0.messageId)};Y(m0,V);m0.prototype.getIt=function(){return X(this,A4c,2)};m0.prototype.setIt=function(a){return W(this,A4c,2,a)};m0.messageId="b.ListStatusUpdateHistoryResponse";var n0=function(){this.executor=n(yC)};n0.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new $D).setIt(yAa(a));return c.call(b,{url:d,body:a,responseConstructor:$D}).pipe(y(rEa))};n0.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var B4c=function(a,b){var c=Nk((new l0).setIssueId(Number(b)),2,2);return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:m0}).pipe(y(function(d){d=d.getIt();return Wk(d,un,1,Fk()).map(xAa)}))};n0.\u0275fac=function(a){return new (a||n0)};n0.\u0275prov=Sc({token:n0,factory:n0.\u0275fac,providedIn:"root"});var C4c=function(a){return[a]},o0=function(){this.matDialog=n(tK)};o0.prototype.show=function(a,b,c){a.formattingMode==="LITERAL"&&(a.formattingMode="PLAIN");this.dialog=this.matDialog.open(p0,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}});return Ge(nK(this.dialog))};o0.\u0275fac=function(a){return new (a||o0)};o0.\u0275prov=Sc({token:o0,factory:o0.\u0275fac,providedIn:"root"});
var p0=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.checkBeforeExit=n(lS);this.data=n(sK);this.dialogService=n(o0);this.dialogRef=n(mK);this.bannedWordsChecker=n(jP);this.CHAR_LIMIT=2E3;this.FormattingMode=Yk;this.formattingAudience=this.data.formattingAudience;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/delete-comments-attachments":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.origStatusUpdate=
this.data.statusUpdate;this.newStatusUpdate=Qj(this.origStatusUpdate)};Y(p0,Z);p0.\u0275dir=Z.\u0275dir;var D4c=function(a){var b,c;return(c=AJa((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};g=p0.prototype;g.ngOnInit=function(){var a=this;this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(gg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(gg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
g.closeIfUnmodified=function(){if(!this.isModified()){var a;(a=this.dialogService.dialog)==null||a.close()}};g.isModified=function(){return!Pj(this.newStatusUpdate,this.origStatusUpdate)};g.asNumber=function(a){return Number(a)};
g.closeDialogForSave=function(){var a=this,b,c,d;return w(function(e){if(e.nextAddress==1)return a.isModified()?x(e,a.bannedWordsChecker.check(a.newStatusUpdate.updateText,a.formattingAudience==="EXTERNAL",a.data.componentId),2):e.return();b=e.yieldResult;if(!b)return(c=a.commentDraft)==null||OQc(c),e.return();(d=a.dialogService.dialog)==null||d.close(a.newStatusUpdate);ze(e)})};p0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(p0)))(b||p0)}}();
p0.\u0275cmp=B({type:p0,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&Wg(jS,5);if(a&2){var c;$g(c=ah())&&(b.commentDraft=c.first)}},standalone:!1,features:[hh([jP]),kg],decls:23,vars:26,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"contentChange","onSubmit","content","textareaClass","isLiteralModeSupported"],[1,"char-limit-warning"],[1,"banned-words-warning","break-word"],[1,"inline-block",3,
"change","initialValue"],["tabindex","0",1,"clamper","line-clamp-4"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"save-button",3,"click","disabled","color"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"],[3,"comment","issueId","formattingMode","audience"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Editing Status Update"),
J(),I(2,"section",1)(3,"p",2),Q(4," Editing the Status Update will not permanently remove old ones from database history. "),K(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),I(7,"a",3),Q(8," file a support request. "),J()(),I(9,"b-comment-draft",4),S(10,"async"),gh("contentChange",function(d){fh(b.newStatusUpdate.updateText,d)||(b.newStatusUpdate.updateText=d);return d}),M("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),
J(),E(11,Rrb,2,1,"p",5),E(12,Srb,4,1,"p",6),S(13,"async"),I(14,"b-markdown-toggle",7),M("change",function(d){return b.newStatusUpdate.formattingMode=d}),J(),E(15,Trb,2,4,"div",8),J(),I(16,"footer",9)(17,"button",10),Q(18," Cancel "),J(),I(19,"button",11),S(20,"async"),M("click",function(){return b.closeDialogForSave()}),Q(21),S(22,"async"),J()());if(a&2){z(7);D("href",b.contentRemovalRequestLink,uf);z(2);xg(D4c(b));eh("content",b.newStatusUpdate.updateText);D("textareaClass",jh(24,C4c,T(10,16,b.bannedWordsChecker.showWarning$)?
"banned-words-warning":""))("isLiteralModeSupported",!1);z(2);F(b.newStatusUpdate.updateText.length>2E3?11:-1);z();F(T(13,18,b.bannedWordsChecker.showWarning$)?12:-1);z(2);wg("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN);var c;D("initialValue",(c=b.origStatusUpdate.formattingMode)!=null?c:b.FormattingMode.PLAIN);z();F(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1);z(2);D("mat-dialog-close",void 0);z(2);D("disabled",b.newStatusUpdate.updateText.length===
0||b.newStatusUpdate.updateText.length>2E3||!b.isModified())("color",T(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary");z(2);R(" ",T(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," ")}},dependencies:[uK,wK,yK,xK,PA,Tx,wQ,PO,jS,Qv],styles:['b-comment-draft[_ngcontent-%COMP%]{position:relative;display:block}b-comment-draft[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:4px;border-top-left-radius:4px;border-bottom-left-radius:4px;pointer-events:none}b-comment-draft.good[_ngcontent-%COMP%]:after{background-color:#34a853;background-color:var(--good)}b-comment-draft.warn[_ngcontent-%COMP%]:after{background-color:#fcc934;background-color:var(--warn)}b-comment-draft.bad[_ngcontent-%COMP%]:after{background-color:#ea4335;background-color:var(--bad)}.clamper[_ngcontent-%COMP%]:focus, .clamper[_ngcontent-%COMP%]:focus-within{display:block;-webkit-line-clamp:none}.banned-words-warning[_ngcontent-%COMP%], .char-limit-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}\n/*# sourceMappingURL=edit_status_update_dialog.css.map */'],
changeDetection:0});var E4c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(E4c,V);var F4c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(F4c,V);F4c.prototype.getWorkspaceId=function(){return Dl(this,1)};F4c.prototype.getWorkspaceId_asLegacyNumberOrString=function(){return zl(this,1)};F4c.prototype.getWorkspaceId_asString=function(){return Gl(this,1)};var G4c=new zT("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",F4c,dp,function(a){return a.serialize()},rsc);var H4c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(H4c,V);var J4c=function(a,b){return Am(a,1,I4c,b)},I4c=[1,2];var K4c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(K4c,V);var L4c=new zT("/google.corp.devtools.worktracker.v1.WorkspaceService/List",H4c,K4c,function(a){return a.serialize()},Rh(K4c));var M4c=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new wUc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};M4c.prototype.get=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},G4c)};M4c.prototype.list=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},L4c)};var N4c={},O4c;N4c.Authorization=(O4c=$Ja([]))!=null?O4c:"";N4c["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";N4c["X-Goog-AuthUser"]="0";var r0=function(){this.activeSession=n(Es);this.clientFactory=n(q0);this.client=this.clientFactory.create(this.getServiceEndpoint())},P4c=function(a,b){return a.activeSession.isExternalSession()?Ce([]):se(a.client.list(J4c(new H4c,"b/"+b),N4c)).pipe(y(Urb(b)),Pf(function(){return Ce([])}))};
r0.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":return"https://staging-worktracker-googleapis.corp.google.com";case "PROD":return"https://worktracker-googleapis.corp.google.com";default:return"https://autopush-worktracker-googleapis.corp.google.com"}};r0.\u0275fac=function(a){return new (a||r0)};r0.\u0275prov=Sc({token:r0,factory:r0.\u0275fac,providedIn:"root"});var q0=function(){};q0.prototype.create=function(a){return new M4c(a)};
q0.\u0275fac=function(a){return new (a||q0)};q0.\u0275prov=Sc({token:q0,factory:q0.\u0275fac,providedIn:"root"});var Q4c=function(){var a=this;this.pressed=new LA;this.disabled=!1;this.getTooltip=function(){return a.disabled?"Deployment status is only available for submitted Boq, Pod & Annealing CLs. For more information, go/devgraph_supported_insights.":"Open the insights graph"}};Q4c.\u0275fac=function(a){return new (a||Q4c)};
Q4c.\u0275cmp=B({type:Q4c,selectors:[["insights-graph-btn"]],inputs:{disabled:"disabled"},outputs:{pressed:"pressed"},standalone:!1,decls:14,vars:3,consts:[["type","button","mat-stroked-button","","color","primary",3,"click","title","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),
"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" ")],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){return b.pressed.emit()}),Q(1,"Insights "),Vd(),I(2,"svg",1)(3,"g",2),K(4,"path",3)(5,"path",4)(6,"path",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"circle",9)(11,"circle",10)(12,"circle",11)(13,"circle",12),J()()());a&2&&(D("title",b.getTooltip())("disabled",b.disabled),ng("aria-label",b.getTooltip()))},dependencies:[PA,Tx],styles:["button.gmat-mdc-button.mat-mdc-outlined-button[_ngcontent-%COMP%]{line-height:20px;padding:0 5px;font-size:.75rem;font-weight:500;font-family:Roboto,Arial,sans-serif;height:auto}[_nghost-%COMP%]     button.gmat-mdc-button.mat-mdc-outlined-button:not(.gmat-mdc-button-with-prefix){padding:0 5px}[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:text-bottom}/*# sourceMappingURL=insights_graph_btn.css.map */"],
changeDetection:0});var R4c=["popOver"],Wrb=function(a){return{$implicit:a}},s0=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new hv;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(a===""||a==="true"||a==="required")this.required=!0};Y(s0,xU);g=s0.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return asb(this.editingValue)!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=this.value!=null?String(this.value):"",this.popOver.open())};g.stopEditing=function(a){this.editing=!1;a===0&&(this.onChange(this.editingValue),this.value=a=asb(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=asb(a);if(a!=null||this.val!==b)this.val=b,this.editingValue=a!=null?a:""};
g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};ea.Object.defineProperties(s0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a!=null?String(a):null)}}});s0.\u0275fac=function(a){return new (a||s0)(ae("required"))};
s0.\u0275cmp=B({type:s0,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&Wg(R4c,7);if(a&2){var c;$g(c=ah())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},standalone:!1,features:[hh([{provide:iy,useExisting:ld(function(){return s0}),multi:!0},{provide:xU,useExisting:ld(function(){return s0}),
multi:!0}]),kg],decls:11,vars:6,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["aria-label","Edit numeric field",3,"click","focus","blur","disabled"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closedWithAction","anchor","editorTemplate"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d",
"M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],["type","number",3,"ngModelChange","ngModel"]],template:function(a,b){if(a&1){var c=r();I(0,"button",4,0);M("click",function(){t(c);return v(b.startEditing())})("focus",function(){t(c);return v(b.headerFocused=!0)})("blur",function(){t(c);return v(b.headerFocused=!1)});I(2,"span");C(3,Xrb,2,4,"ng-container",5)(4,
Yrb,1,1,"ng-template",null,1,nh);J();C(6,Zrb,2,0,"svg",6);J();I(7,"onedev-pop-over-edit-panel",7,2);M("closedWithAction",function(f){t(c);return v(b.stopEditing(f))});J();C(9,$rb,1,2,"ng-template",null,3,nh)}if(a&2){a=L(1);var d=L(5),e=L(10);D("disabled",b.disabled);z(3);D("ngIf",b.valueTemplate)("ngIfElse",d);z(3);D("ngIf",!b.disabled&&b.displayEditIcon);z();D("anchor",a)("editorTemplate",e)}},dependencies:[Ov,Pv,Li,xy,oy,vy,yU],styles:["button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor}input[type=number][_ngcontent-%COMP%]{padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px}input[type=number][_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});var gsb=function(){return[]},t0=function(){this.disabled=this.thinking=!1;this.effortChange=new LA;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
t0.prototype.ngOnChanges=function(){if(this.getFieldType()==="DROPDOWN"){var a;this.effortSpec&&(a=this.effortSpec.enumSpec)!=null&&a.options&&this.effort&&this.effort.estimate?(a=S4c(this),a=a==="incompatible"?{label:this.effort.estimate,value:0}:a):a=void 0;this.selectedOption=a}else if(this.getFieldType()==="NUMERIC"){var b,c;this.selectedNumericEstimate=((b=this.effort)==null?0:b.estimate)?Number((c=this.effort)==null?void 0:c.estimate):void 0}this.fieldName=this.getFieldName();this.fieldType=
this.getFieldType();this.isCompatibleValue=T4c(this)};t0.prototype.selectOption=function(a){this.selectedOption=a;if(a==null)this.effort=void 0;else{var b,c;this.effort={specId:(c=(b=this.effortSpec)==null?void 0:b.id)!=null?c:0,estimate:a.label}}this.isCompatibleValue=T4c(this);this.effortChange.emit(this.effort)};t0.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
t0.prototype.getFieldType=function(){var a;if((a=this.effortSpec)==null?0:a.numericSpec)return"NUMERIC";var b;return((b=this.effortSpec)==null?0:b.enumSpec)?"DROPDOWN":"UNKNOWN"};
var T4c=function(a){var b;if(!a.effort||(b=a.effort)==null||!b.estimate)return!0;var c,d;if(((c=a.effortSpec)==null?void 0:c.id)!==((d=a.effort)==null?void 0:d.specId)||a.fieldType==="DROPDOWN"&&S4c(a)==="incompatible")return!1;var e,f;return a.getFieldType()==="NUMERIC"&&isNaN(Number((f=(e=a.effort)==null?void 0:e.estimate)!=null?f:""))?!1:!0},S4c=function(a){var b;if((b=a.effort)==null?0:b.estimate){var c,d,e,f;return(f=(c=a.effortSpec)==null?void 0:(d=c.enumSpec)==null?void 0:(e=d.options)==null?
void 0:e.find(function(h){var k;return h.label===((k=a.effort)==null?void 0:k.estimate)}))!=null?f:"incompatible"}};t0.\u0275fac=function(a){return new (a||t0)};
t0.\u0275cmp=B({type:t0,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},standalone:!1,features:[Uu],decls:3,vars:1,consts:[["rawNumericValueTemplate",""],["warningHovercard","onedevHovercard"],["optionTemplate",""],["labelTooltip","Estimated effort",3,"thinking"],["svgIcon","error","aria-hidden","false","aria-label","This estimate was made under a different configuration and needs to be \n                          updated.",
1,"icon-xs","effort-warning","align-items-center",3,"onedevHovercardTrigger"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://go/buganizer/user-guide/concepts/wtdm-home.md?cl=head#stale-effort","target","_blank"],[3,"thinking"],[1,"flex-kids-x",3,"value","valueTemplate","disabled","displayEditIcon"],[1,"flex-kids-x",3,"valueChange","value","valueTemplate","disabled","displayEditIcon"],[3,"valueChange","value","options","includeEmptyOption","optionTemplate",
"disabled","displayArrowIcon"]],template:function(a,b){a&1&&(E(0,jsb,15,5,"onedev-edit-field"),C(1,msb,2,1,"ng-template",null,0,nh));a&2&&F(b.effortSpec?0:-1)},dependencies:[aB,DU,EU,FU,QU,s0,fJ,lJ],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}.effort-warning[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);overflow:visible}/*# sourceMappingURL=estimated_effort_row.css.map */"]});var u0=function(){this.staffingDialogService=n(R_);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
u0.prototype.ngOnChanges=function(){var a,b,c=(b=(a=this.staffing)==null?void 0:a.plannedAllocations)!=null?b:[];a=c.filter(function(d){return!!d.user});c=c.filter(function(d){return!!d.placeholder}).map(function(d){var e=d.placeholder.role;return d.placeholder.count+" "+(e&&e!=="JOB_ROLE_UNSPECIFIED"?km[e]:"Other")});b=c.length?c.join(", "):"0";this.staffingUserSummary=a.length?"Users: "+a.length:"";this.staffingPlaceholderSummary=c.length?"Placeholders: "+b:"";this.staffingSummary=this.staffingUserSummary+
(" - "+this.staffingPlaceholderSummary);this.tooltipText="View"+(this.isAllowedToEdit?" or edit":"")+" staffing"};var U4c=function(a){var b,c,d;a.staffingDialogService.show((c=(b=a.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],a.issueId,(d=a.isAllowedToEdit)!=null?d:!1)};u0.\u0275fac=function(a){return new (a||u0)};
u0.\u0275cmp=B({type:u0,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},standalone:!1,features:[Uu],decls:25,vars:5,consts:[["fieldContent",""],["infoHovercard","onedevHovercard"],[1,"bv2-issue-metadata-field"],["role","button","tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-issue-metadata-field-staffing","keep-focus-ring",3,"keydown.enter","keyup.space","keydown.space"],[1,"bv2-editable-title","bv2-editable-title-staffing","flex-kids-x",
3,"onedevHovercardTrigger"],[1,"bv2-editable-value",3,"click","matTooltip"],[1,"staffing-summaries"],[1,"issue-metadata-field-edit-icon"],["svgIcon","edit-outline"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["href","http://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank"],[1,"user-summary"],[1,"placeholder-summary"]],template:function(a,b){if(a&1){var c=r();I(0,"div")(1,"div",2)(2,"div",3);M("keydown.enter",function(){t(c);return v(U4c(b))})("keyup.space",
function(){t(c);return v(U4c(b))})("keydown.space",function(d){t(c);return v(d.preventDefault())});I(3,"div",4)(4,"label");Q(5," Staffing ");J()();I(6,"div",5,0);M("click",function(){t(c);return v(U4c(b))});I(8,"div",6);E(9,nsb,1,0)(10,osb,4,2);J();I(11,"div",7);K(12,"mat-icon",8);J()()()();I(13,"onedev-hovercard",null,1)(15,"div",9)(16,"div",10)(17,"div");Q(18," Use the Staffing field to represent planned contributors on this issue. ");J();K(19,"br");I(20,"div");Q(21," Allocations can be specified by user along with their involvement level on this issue (high, medium, low, or zero). Placeholder allocations can be specified by job role if the user who will be contributing is not yet known. ");
J();K(22,"br");I(23,"a",11);Q(24," Learn more ");J()()()()()}a&2&&(a=L(14),z(2),ng("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),z(),D("onedevHovercardTrigger",a),z(3),Qg("matTooltip",b.tooltipText),z(3),F(b.staffingUserSummary||b.staffingPlaceholderSummary?10:9))},dependencies:[aB,YA,cB,fJ,lJ],styles:[".staffing-summaries[_ngcontent-%COMP%]{flex-direction:column}/*# sourceMappingURL=staffing_row.css.map */"],changeDetection:0});var V4c=function(a){return{"internal-only":a}},v0=function(){Z.apply(this,arguments);var a=this;this.session=n(Es);this.userPreferencesManager=n(OG);this.sloStatusHelpersService=n(eL);this.paths=n(EN);this.sloFridge=n(sG);this.userToDisplayString=Ak;this.onSloStartTimeChange=new LA;this.onSloEndTimeChange=new LA;this.showInternalOnlyFieldBadge=!1;this.providedSloId$=new ag(1);this.slo$=this.providedSloId$.pipe(fg(function(b){return a.sloFridge.watch(b)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=
this.isSloStartEditTimePickerOpen=this.enableEscalationOwnerRolloutUi=this.enableSloEndTime=this.hasSloEndTime=this.hasSloStartTime=this.isAccordionExpanded=!1};Y(v0,Z);v0.\u0275dir=Z.\u0275dir;v0.prototype.ngOnInit=function(){var a=this;W4c(this);this.userPreferencesManager.layoutPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};v0.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);W4c(this)};
var W4c=function(a){a.hasSlo=!!a.sloStatus&&jFc(a.sloStatus);a.hasClosureSlo=a.hasSlo&&kFc(a.sloStatus,"CLOSURE");a.enableSloEndTime=Yr(a.session,"enableSloEndTime");a.enableEscalationOwnerRolloutUi=Yr(a.session,"enableEscalationOwnerRolloutUi");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=fL(Sk(c))?c.targetTime:void 0):c=void 0;a.closureSloTarget=(b=c==null?void 0:c.seconds)!=null?b:0;b=a.sloStartTime;a.hasSloStartTime=!!b&&b.seconds!==0;b=a.sloEndTime;a.hasSloEndTime=!!b&&b.seconds!==0;a.sloId&&
a.sloId!=="0"?a.editSloLink=Fq.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=Fq.editComponent.makeHref(a.componentId):a.componentSloLink=void 0},X4c=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;ytc(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(gg(a.destroyed$)).subscribe();Po("issueSlo","toggle",a.isAccordionExpanded?"open":"close")};v0.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};
v0.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};v0.prototype.trackOpenSlo=function(){Po("editSlo","open","fromIssueSloBox")};v0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(v0)))(b||v0)}}();
v0.\u0275cmp=B({type:v0,selectors:[["b-issue-slo-box"]],inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",escalationOwner:"escalationOwner"},outputs:{onSloStartTimeChange:"onSloStartTimeChange",onSloEndTimeChange:"onSloEndTimeChange"},standalone:!1,features:[kg,Uu],decls:20,vars:23,consts:[["trigger",
"cdkOverlayOrigin"],["canonicalHovercard","onedevHovercard"],[1,"slo-container",3,"ngClass"],[1,"issue-slo-box-title",3,"click"],["svgIcon","shield_person_24px","matTooltip","Visible to internal only","aria-label","Visible to internal only",1,"icon-xs","internal-only-badge"],[1,"slo-body"],[1,"slo-status"],[3,"hidden"],[3,"sloStatus","sloStartTime","sloEndTime","includeSloMetric","includeObjective"],[3,"sloStatus","sloStartTime","sloEndTime","includeNoSlo"],["type","button","mat-icon-button","","aria-label",
"Toggle the detailed SLO status","matTooltip","Toggle the detailed SLO status",1,"expand-button","small",3,"click"],["svgIcon","arrow-up",1,"icon-s"],["svgIcon","arrow-down",1,"icon-s"],[1,"slo-actions",3,"hidden"],["id","start-time-row",1,"slo-action"],["id","end-time-row",1,"slo-action"],["id","escalation-owner-row",1,"slo-action"],[1,"slo-action"],["href","http://go/buganizer/guides/defer-slos","target","_blank","aria-label","View help page on deferring slos","matTooltip","View help page on deferring slos",
1,"clear-link"],[1,"slo-edit"],["role","button","tabindex","0","aria-label","Modify the slo start date value","matTooltip","Modify the slo start date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"keydown.enter","keydown.space","click"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["mode","datetime",3,"timestamp"],[3,"closePicker","sloEditCommit","sloStatus","sloEditTime"],["role","button","tabindex","0","aria-label","Modify the slo end date value","matTooltip",
"Modify the slo end date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space"],["id","escalation-owner-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["href","https://goto.google.com/b-slo-attribution","target","_blank"],[3,"user","email","enableSmallChip"],["aria-label","Navigate to the applied slo page","matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition"],["aria-label","Navigate to the applied slo page",
"matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition",3,"click"],["aria-label","Open page to select an slo","matTooltip","Open page to select an slo",1,"bv2-metadata-link","bv2-metadata-tool","slo-definition",3,"click"]],template:function(a,b){a&1&&(I(0,"div",2)(1,"span",3),M("click",function(){return X4c(b)}),I(2,"label"),Q(3,"SLO Status"),J(),E(4,psb,1,0,"mat-icon",4),J(),I(5,"div",5)(6,"div",6)(7,"div",7),K(8,"b-aggregated-slo-status-indicator",8),J(),
I(9,"div",7),K(10,"b-slo-status-summary",9),J(),I(11,"button",10),M("click",function(){return X4c(b)}),E(12,qsb,1,0,"mat-icon",11)(13,rsb,1,0,"mat-icon",12),J()(),I(14,"div",13),E(15,vsb,9,3,"div",14),E(16,Asb,10,5,"div",15),E(17,Dsb,12,2,"div",16),E(18,Fsb,4,3,"div",17),E(19,Gsb,3,1,"div",17),J()()());a&2&&(D("ngClass",jh(21,V4c,b.showInternalOnlyFieldBadge)),z(4),F(b.showInternalOnlyFieldBadge?4:-1),z(3),D("hidden",b.isAccordionExpanded),z(),D("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",
b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),z(),D("hidden",!b.isAccordionExpanded),z(),D("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),z(),ng("aria-expanded",b.isAccordionExpanded),z(),F(b.isAccordionExpanded?12:13),z(2),D("hidden",!b.isAccordionExpanded),z(),F(b.isEditable?15:-1),z(),F(b.enableSloEndTime&&b.isEditable?16:-1),z(),F(b.enableEscalationOwnerRolloutUi?17:-1),z(),F(b.editSloLink?18:-1),z(),F(!b.editSloLink&&b.componentSloLink?
19:-1))},dependencies:[Mv,aB,YA,cB,PA,Ux,fJ,lJ,j0,ZL,a0,u_,xx,wx,DL,Qv],styles:["[_nghost-%COMP%]{align-items:baseline}[_nghost-%COMP%]:focus{outline:0}.slo-container[_ngcontent-%COMP%]{padding-bottom:8px}.internal-only[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:2%;margin:0 5px;background-color:#f4f5f6;background-color:var(--tonal-fill-grey)}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]{margin:0 14px}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{display:inline-block;color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}.internal-only[_ngcontent-%COMP%]   .slo-body[_ngcontent-%COMP%]{margin:5 14px}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #d2e3fc;box-shadow:0 0 0 1px var(--primary-c100);border-radius:4px}.internal-only[_ngcontent-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary);border-radius:4px}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.internal-only[_ngcontent-%COMP%]:focus   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}.issue-slo-box-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-weight:500;margin:0 16px;flex:0 0 23%;min-width:80px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.slo-body[_ngcontent-%COMP%]{display:inline-block;margin:0 14px;padding:8px 0 8px 4px;width:fill-available;width:-webkit-fill-available}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-action[_ngcontent-%COMP%]{vertical-align:baseline;min-height:24px}.slo-action[_ngcontent-%COMP%]   .slo-edit[_ngcontent-%COMP%]{display:inline-block}.slo-action[_ngcontent-%COMP%]   .slo-definition[_ngcontent-%COMP%]{min-height:24px}.clear-link[_ngcontent-%COMP%]{color:inherit;text-decoration:none;background-color:none}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.expand-button[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:block}.onedev-hovercard-content[_ngcontent-%COMP%]{padding:16px}.d-cozy[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:4px 14px 4px 19px}.d-compact[_ngcontent-%COMP%]   issue-slo-box[_ngcontent-%COMP%]{margin:2px 14px 2px 19px}"]});var Y4c={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var w0=function(){Z.call(this);var a=this;this.data=n(sK);this.dialogRef=n(mK);this.teamsService=n(yG);this.componentActions=n(oN);this.userPreferencesManager=n(OG);this.snackBar=n(fK);this.analytics=n(CF);this.errorHandler=n(DK);this.componentFridge=n(jD);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=htc(this.teamsService,this.teamSuggestionIds).pipe(y(function(b){for(var c=
[],d=l(a.teamSuggestionIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=b.get(e);f&&c.push(new Z4c(e,f.collapsedPathNames))}return c}),eg([]));this.myTeams$=AG(this.teamsService,"").pipe(y(function(b){return b.map(function(c){return new Z4c(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new Z4c(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=Fq.editComponent.makeHref(this.componentId);this.WarningType=Y4c;Je([this.suggestedTeams$,this.myTeams$]).pipe(y(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return[].concat(p(b),p(c))}),y(Mua(function(b){return b.teamId})),gg(this.destroyed$)).subscribe(function(b){a.teamOptions=b;a.selectedTeam=b[0]})};Y(w0,Z);w0.\u0275dir=Z.\u0275dir;w0.prototype.ngOnInit=function(){this.warningType==="MISSING"?this.header="Add team to the component":this.warningType==="DELETED"&&(this.header="Change team mapping for this component")};
w0.prototype.confirm=function(){var a=this;if(this.teamAction==="CHANGE")this.parentComponentId>0?this.componentActions.get(this.parentComponentId).then(function(c){var d;$4c(a,((d=c.team)==null?void 0:d.id)||"0",a.selectedTeam.teamId)}):$4c(this,"0",this.selectedTeam.teamId);else{var b=Qj(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});Etc(this.userPreferencesManager,b).pipe(gg(this.destroyed$)).subscribe(function(){a.analytics.trackEvent("teamWarning",
"dismiss","componentId",a.componentId);var c;(c=a.dialogRef)==null||c.close()},function(){})}};var $4c=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);a.analytics.trackEvent("teamWarning","updateTeam");a.snackBar.open("Team mapping changed","",{duration:4E3});var e;(e=a.dialogRef)==null||e.close(a.selectedTeam.teamId)}).catch(function(d){a.errorHandler.errorHandler(null,d)})};
w0.prototype.selectOption=function(a){this.selectedTeam=a};w0.prototype.trackClick=function(a){this.analytics.trackEvent("teamWarning","click",a)};w0.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};w0.\u0275fac=function(a){return new (a||w0)};
w0.\u0275cmp=B({type:w0,selectors:[["b-team-warning-dialog"]],standalone:!1,features:[kg],decls:11,vars:3,consts:[["suggestedTeamOption",""],["optionTemplate",""],["mat-dialog-title",""],["mat-dialog-content",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click"],["target","_blank",3,"click","href"],["aria-label","Quick team actions",3,"ngModelChange","ngModel"],["value","NONE"],["value","CHANGE"],[4,"ngTemplateOutlet"],
["target","_blank",3,"href"],[1,"suggested-teams"],[3,"valueChange","disabled","value","options","includeEmptyOption","optionTemplate"],["mat-icon-button","","target","_blank","matTooltip","Go to Moma Team page.",1,"small",3,"click"],["svgIcon","pop-out",1,"icon-s"],[1,"suggested-team-option"]],template:function(a,b){if(a&1){var c=r();I(0,"h1",2);Q(1);J();E(2,Jsb,13,3,"div",3);E(3,Lsb,6,2,"div",3);C(4,Qsb,1,1,"ng-template",null,0,nh);I(6,"mat-dialog-actions")(7,"button",4);Q(8," Cancel ");J();I(9,
"button",5);M("click",function(){t(c);return v(b.confirm())});Q(10," Confirm ");J()()}a&2&&(z(),ch(b.header),z(),F(b.warningType===b.WarningType.MISSING?2:-1),z(),F(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[Pv,aB,oy,vy,PA,Tx,Ux,uK,wK,yK,xK,zN,AN,YA,cB,QU],styles:["mat-radio-button[_ngcontent-%COMP%]{margin-top:10px}.suggested-teams[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;margin-top:5px}a.mat-mdc-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]     onedev-single-select button{border-color:#bdc1c6}  span.suggested-team-option{display:inline-block;width:490px}"]});
var Z4c=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var x0=function(){Z.apply(this,arguments);this.matDialogService=n(tK);this.analytics=n(CF);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new LA};Y(x0,Z);x0.\u0275dir=Z.\u0275dir;x0.prototype.ngOnInit=function(){};x0.prototype.ngOnChanges=function(){this.warningType==="MISSING"?(this.warningMessage="Team mapping is missing",this.buttonName="Add"):this.warningType==="DELETED"&&(this.warningMessage="This team no longer exists",this.buttonName="Change")};
x0.prototype.openDialog=function(){var a=this;this.analytics.trackEvent("teamWarning","open");nK(this.matDialogService.open(w0,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(gg(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};x0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(x0)))(b||x0)}}();
x0.\u0275cmp=B({type:x0,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},standalone:!1,features:[kg,Uu],decls:4,vars:2,consts:[["messageType","caution","format","app"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(I(0,"b-callout",0)(1,"b-callout-body"),Q(2),J(),E(3,Rsb,3,1,"b-callout-actions"),J());
a&2&&(z(2),R(" ",b.warningMessage," "),z(),F(b.messageOnly?-1:3))},dependencies:[aH,lP,mP],encapsulation:2});var a5c=new yd("DevopsGraphLogger",{providedIn:"root",factory:function(){return Nj}}),b5c=new yd("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return w(function(b){switch(b.nextAddress){case 1:return te(b,2),x(b,Ssb(),4);case 4:a=b.yieldResult;uu(b,3);break;case 2:return xe(b),b.return();case 3:return te(b,5),x(b,a.loadGraph(),7);case 7:uu(b,6);break;case 5:return xe(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});var y0=function(){var a=this;this.session=n(Es);this.theme=n(VO);this.logger=n(a5c);this.graphBuilder=n(b5c);this.open$=new bg;this.close$=new bg;this.getContainer=function(){return document.getElementById("graph-sidebar-host")};this.onGraphClose=function(){var b=a.getContainer();b!=null&&(b.classList.remove("open"),a.close$.next())};this.onGraphOpen=function(){var b=a.getContainer();b!=null&&(b.classList.add("open"),a.open$.next())};this.init()};
y0.prototype.init=function(){var a=this,b,c,d,e,f;return w(function(h){if(h.nextAddress==1)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():x(h,a.graphBuilder,2);c=h.yieldResult;d=Tsb(a.session.getEnvironmentType());if(e=c.createService({environment:d}))f=a.theme.clientDarkmodeSubject.getValue(),a.graphService=e,a.graphController=e.createController({element:b,onClose:a.onGraphClose,onOpen:a.onGraphOpen,theme:f?"dark":void 0}),a.theme.clientDarkmode$.subscribe(function(k){var q;
(q=a.graphController)==null||q.setTheme(k?"dark":"light")});ze(h)})};var c5c=function(a,b){var c;return w(function(d){switch(d.nextAddress){case 1:return te(d,2),x(d,a.init(),4);case 4:return a.graphService==null?d.return(new Set):x(d,a.graphService.getAvailableIssueContexts(Number(b)),6);case 6:return d.return(d.yieldResult);case 5:uu(d,0);break;case 2:return c=xe(d),a.logger(c),d.return(new Set)}})};
y0.prototype.openSidebar=function(a,b){var c=this,d;return w(function(e){switch(e.nextAddress){case 1:return x(e,c.init(),2);case 2:if(!c.graphController)return e.return();te(e,3);return x(e,c.graphController.openIssueContext(Number(a),b),5);case 5:uu(e,0);break;case 3:d=xe(e),c.logger(d),ze(e)}})};
y0.prototype.close=function(){var a=this,b;return w(function(c){switch(c.nextAddress){case 1:return x(c,a.init(),2);case 2:if(!a.graphController)return c.return();te(c,3);return x(c,a.graphController.close(),5);case 5:uu(c,0);break;case 3:b=xe(c),a.logger(b),ze(c)}})};y0.\u0275fac=function(a){return new (a||y0)};y0.\u0275prov=Sc({token:y0,factory:y0.\u0275fac,providedIn:"root"});var z0=function(){Z.call(this);var a=this;this.devopsGraph=n(y0);this.paramsService=n(aL);this.analytics=n(CF);this.butterBar=n(iK);this.router=n(DA);this.route=n(sj);this.activeSession=n(Es);this.contextSensitiveRegistry=n(iL);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(y(function(b){return b||void 0}));this.contexts$=this.id$.pipe(fg(function(b){return w(function(c){return a.devopsGraph.getContainer()!=null&&b?c.return(c5c(a.devopsGraph,b).then(function(d){return{issueId:b,availablePanels:d}})):
c.return(void 0)})}),cg({refCount:!0,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(y(function(b){return b?b.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(y(function(b){return!!b&&b.availablePanels.size>0&&a.activeSession.isInternalSession()&&a.devopsGraph.getContainer()!=null}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(y(function(b){return!!b&&b.availablePanels.size>0&&a.activeSession.isInternalSession()&&a.devopsGraph.getContainer()!=
null&&b.availablePanels.has("deployments")}));this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(b){if(b){b=b.availablePanels;a.track("ingress-view-"+(b.size>0?"enabled":"disabled"));b.has("deployments")&&a.track("ingress-view-deployments-enabled");var c=a.paramsService.params.showInsights;c&&(c==="default"?b.size>0?a.openSidebar():a.butterBar.showWarning("Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):b.has(c)?a.openSidebar(c):
a.butterBar.showWarning("Could not open "+c+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else a.devopsGraph.close()}));this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){d5c(a,null)}))};Y(z0,Z);z0.\u0275dir=Z.\u0275dir;z0.prototype.onClickButton=function(a){this.analytics.trackEvent("sidebar","ingress-click");this.openSidebar(a)};
z0.prototype.openSidebar=function(a){var b=this,c,d,e,f;return w(function(h){if(h.nextAddress==1)return x(h,Ge(b.contexts$),2);c=h.yieldResult;if(!c)return h.return();d=c;e=d.issueId;d5c(b,(f=a)!=null?f:"default");return h.return(b.devopsGraph.openSidebar(e,{panel:a}))})};z0.prototype.track=function(a){this.analytics.trackEvent("sidebar",a)};
var d5c=function(a,b){a.router.navigationTransitions.currentNavigation==null&&a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};z0.\u0275fac=function(a){return new (a||z0)};z0.\u0275prov=Sc({token:z0,factory:z0.\u0275fac,providedIn:"root"});var Zsb=function(){return[]},Wsb=function(a){return[a]},ttb=function(a){return{$implicit:a}},cub=function(a){return{customFieldId:a}},A0=function(){var a=this;this.activeSession=n(Es);this.editIssueService=n(oL);this.issueService=n(UE);this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.issueDetailsBrain=n(jL);this.constants=n(GK);this.refreshMonitor=n(YE);this.userPreferencesManager=n(OG);this.documentationLinks=n(lK);this.workspaceService=n(r0);this.changelistApi=n(VC);this.issueMarkAsDuplicateDialogService=
n(qS);this.analytics=n(CF);this.issueInsightsSidebarService=n(z0);this.issueLimits=n(uS);this.jspbPrincipalTypes=n(jG);this.issueId$=new ag(1);this.distinctIssueId$=this.issueId$.pipe(Xf());this.issue$=this.distinctIssueId$.pipe(fg(function(b){return a.editIssueService.editableIssue$(b)}));this.enableTriageView=Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enablePeoplekitAc=Yr(this.activeSession,"enablePeoplekitUserAc");this.isGerritEnabled=Yr(this.activeSession,
"enableGerritChanges");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.defaultAssigneeQuickActionEnabled=this.showSloStatus=this.sessionIsInternal;this.showCodeChanges=!this.sessionIsExternal||this.isGerritEnabled;this.HOTKEYS=xp;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=WL;this.ListFieldType=aJc;this.IssueFieldName=Glc;this.codeChangesValidator=Fxa;this.hasAclToAdmin$=
this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isCurrentUserCollaborator$=this.issuePermissionService.isCurrentUserCollaborator$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.isImplicitAccessEnabled$=this.issuePermissionService.isImplicitAccessEnabled$;this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(y(function(b){return!a.activeSession.isExternalSession()&&
!b}));this.teamSuggestions$=this.issueDetailsBrain.teamSuggestions$;this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.sloId$=this.issueDetailsBrain.sloId$;this.sloStatus$=this.issueDetailsBrain.sloStatus$;this.createdTimeMicros$=this.issueDetailsBrain.createdTimeMicros$;this.teamId$=this.issueDetailsBrain.teamId$;this.teamWarningType$=this.issueDetailsBrain.team$.pipe(y(Hsb));
this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.staffing$=this.issueDetailsBrain.staffing$;this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.triagePhase$=this.issueId$.pipe(fg(function(b){return zpc(a.issueService,b)}),y(function(b){var c,d;return(d=(c=b.triage)==null?void 0:c.phase)!=null?d:"UNSPECIFIED"}));this.triagePhaseUrl$=Je([this.teamId$,this.triagePhase$]).pipe(y(function(b){var c=l(b);b=c.next().value;(c=c.next().value)&&
c!=="UNSPECIFIED"||(c="NEW");return Fq.viewTriage.makeHref(b!=null?b:0,0,Or[c])}));this.issueFields$=this.distinctIssueId$.pipe(y(function(b){return a.editIssueService.issueFields(b)}),cg({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(fg(function(b){return b.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(fg(function(b){return b.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(fg(function(b){return b.hasHiddenFields$}));
this.isChangelistPrimary$=this.issueFields$.pipe(fg(function(b){return b.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(fg(function(b){return b.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(fg(function(b){return b.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(fg(function(b){return b.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(fg(function(b){return b.visibleCustomFields$}));this.issueQuickActions$=
this.distinctIssueId$.pipe(y(function(b){return a.editIssueService.issueQuickActions(b)}),cg({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(fg(function(b){return b.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(fg(function(b){return b.issueStatusQuickAction$}));this.trackerId$=this.component$.pipe(y(function(b){return b==null?void 0:b.trackerId}));this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,
displayText:b,hotkey:OIa(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(qlc).map(function(b){return{value:b,displayText:qr.get(b)}});this.teamHovercardInputs$=Je([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{teamId:c?String(c):"0",componentId:b?String(b):"0"}}));this.isTeamWarningDismissed$=
Je([this.issue$,this.userPreferencesManager.preferences$]).pipe(y(function(b){b=l(b);var c=b.next().value;var d,e;return(d=b.next().value.teamWarningPreferences)==null?void 0:(e=d.componentTeamWarnings)==null?void 0:e.some(function(f){return f.componentId===c.componentId})}));this.shouldDisplayTeamSuggestions$=Je([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;
return b&&!d&&(c==="MISSING"||c==="DELETED")}));this.statusChoices$=this.canonicalIssueId$.pipe(y(function(b){return[].concat(p(lmc.filter(function(c){return c.value!=="DUPLICATE"})),[{value:"DUPLICATE",displayText:b?"Duplicate of "+b:"Duplicate"}])}),y(function(b){return b.map(function(c){return Object.assign({},c,{hotkey:PIa(c.value)})})}));this.workspaces$=Cpc(this.refreshMonitor,this.distinctIssueId$).pipe(fg(function(b){return P4c(a.workspaceService,b)}),cg({refCount:!0,bufferSize:1}));this.pendingChangelists$=
Cpc(this.refreshMonitor,this.distinctIssueId$).pipe(fg(function(b){return a.changelistApi.getPendingChangelistsForIssue(b)}),y(function(b){return b.changelistNumbers.map(String)}),y(function(b){return{cls:b,hasError:!1}}),Pf(function(){return Ce({cls:[],hasError:!0})}),cg({refCount:!0,bufferSize:1}));this.pendingCodeChanges$=this.issue$.pipe(fg(function(b){return a.activeSession.isExternalSession()?Ce({issue:b,changelists:{cls:[],hasError:!1}}):a.pendingChangelists$.pipe(y(function(c){return{issue:b,
changelists:c}}))}),y(function(b){var c=b.issue;b=b.changelists;c=NDc(c);return{changes:[].concat(p(b.cls),p(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new iJ,{position:[zBc]});this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new iJ,{position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-30}]});this.issueIsOnInternalComponent$=this.component$.pipe(y(function(b){var c;return(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)===
"INTERNAL"}));this.shouldDisplayEffort$=this.issueIsOnInternalComponent$.pipe(y(function(b){return a.sessionIsInternal&&b||Yr(a.activeSession,"enableEstimatedEffortExternalUi")}));this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return w(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(h){return h.trim()}).filter(Boolean);return x(f,Psc(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(h){var k;return((k=d[h])==
null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.reconcileView={assignee:function(b){var c,d;b.value=(d=(c=np(a.issue$))==null?void 0:c.assignee)!=null?d:""},reporter:function(b){var c,d;b.value=(d=(c=np(a.issue$))==null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=np(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=np(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,
d;b.values=(d=(c=np(a.issue$))==null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=np(a.issue$))==null?void 0:c.type)!=null?d:null}}};A0.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var nub=function(a){var b=a.issuePermissionService.isCurrentUserCCd();a.analytics.trackEvent("editIssue","toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!kL(a.issuePermissionService,e)}):[].concat(p(c.cc),[a.activeSession.getUserEmail()]);return PFc(a.editIssueService,a.issueId,d)};
A0.prototype.toggleCollaborators=function(){var a=this,b=this.issuePermissionService.isCurrentUserCollaborator();this.analytics.trackEvent("editIssue","toggleCollaborators (appbar)",(!b).toString());var c=this.editIssueService.editableIssue(this.issueId),d=[];d=b?c.collaborators.filter(function(e){return!kL(a.issuePermissionService,e)}):[].concat(p(c.collaborators),[this.activeSession.getUserEmail()]);return QFc(this.editIssueService,this.issueId,d)};
A0.prototype.toggleAccessLimits=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return a.issueLimits.isOpen()?c.return():x(c,Ge(a.issueDetailsBrain.componentId$),2);b=c.yieldResult;a.issueLimits.open({componentId:Number(b),issueId:a.issueId});ze(c)})};A0.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var iub=function(a,b){return jub(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},eub=function(a,b){return w(function(c){return c.return(fub(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},kub=function(a,b){return w(function(c){return c.return(lub(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},oub=function(a,b){return w(function(c){return c.return(PFc(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},mub=function(a,b){return w(function(c){return c.return(QFc(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},gub=function(a,b,c){var d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(a.trackerId$),2);d=e.yieldResult;return e.return(JFc(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},es=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return NFc(a.editIssueService,a.issueId,b)};
A0.prototype.onStatusChanged=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1){a:switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "INACTIVE":case "DUPLICATE":var e=a;break a;default:e=null}return(c=e)?c!=="DUPLICATE"?d.jumpTo(2):x(d,dRc(b.issueMarkAsDuplicateDialogService,b.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();frc(b.analytics,c);return d.return(MFc(b.editIssueService,
b.issueId,c))})};A0.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(y(function(c){return b.editIssueService.savingState(c)}),fg(function(c){return Tq(c.fields,VNa(a))}))};A0.prototype.getAccessLimitLevelDisplay=function(a){return W_a(a)};A0.\u0275fac=function(a){return new (a||A0)};
A0.\u0275cmp=B({type:A0,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},standalone:!1,features:[Uu],decls:2,vars:3,consts:[["typeField",""],["priorityField",""],["statusField",""],["canonicalHovercard","onedevHovercard"],["ialCard","onedevHovercard"],["assigneeField",""],["sloField",""],["severityField",""],["codeChangesFields",""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],["phaseField",
""],["canonicalCardBody",""],["implicitAccessHelpBubble",""],[3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"valueChange","name","title","type","value","choices","readonly","disabled"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","disabled","showHotkeyHint"],[1,"status-field-row"],[3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey",
"readonly","disabled","onedevHovercardActive","onedevHovercardTrigger"],[1,"phase-field-row"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled"],[1,"bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-readonly",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-editable-title","access-level-title"],[1,"bv2-editable-value","access-level-info"],[1,"access-level-current-val"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","target","_blank","aria-label","Learn more about issue access limits",1,"primary","bv2-metadata-link","keep-focus-ring",3,"href"],[1,"flex-kids-y"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"flex-1",3,"onHotkey","valueChange","emailChange",
"name","title","hotkey","value","user","isSaving"],[1,"flex-1",3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[3,
"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName"],[3,"staffing","issueId","isAllowedToEdit"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],[4,"ngTemplateOutlet"],
[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values","showInternalOnlyFieldBadge"],[1,"issue-metadata-field-short"],[3,"updateTeam","warningType","componentId","parentComponentId","teamSuggestions"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["tooltip","Go to triage view",3,"name","title","type","value","choices","showHotkeyHint","disabled"],
["matTooltip","Go to triage view",1,"bv2-metadata-link",3,"href"],[3,"onedevIsHovercardReady","issueId"],[3,"effortChange","effort","effortSpec","disabled"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["target","_blank",3,"href"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"onHotkey","click","keydown.enter","keydown.space","hotkey","matTooltip"],
[1,"bv2-metadata-link",3,"disabled"],[1,"bv2-metadata-link"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"onSloStartTimeChange","onSloEndTimeChange","sloStatus","sloStartTime","sloEndTime","sloId","componentId","isEditable","issueCreationTimestamp","showInternalOnlyFieldBadge","escalationOwner"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","disabled"],[3,"valuesChange","readonly","defaultLineCount",
"title","inputValidator","type","values","listFieldDisabled"],[1,"title-action"],[3,"pressed"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","value","tooltip","readonly","disabled"],[3,"save","issue","field","readonly","disabled"]],template:function(a,b){a&1&&
(E(0,pub,112,175),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issue$))?0:-1,c)}},dependencies:[MM,Pv,aB,SU,VL,t0,u0,pH,fJ,gJ,lJ,hJ,Q4c,eP,v0,hN,YA,cB,rH,x0,jN,WM,GU,iW,Olc,Qv],styles:["hr.hidden-fields-separator[_ngcontent-%COMP%]{margin-left:16px;margin-right:10px}.bv2-field-label-spacer[_ngcontent-%COMP%]{width:23%;display:inline-block;min-width:80px;max-width:120px;padding-right:10px}/*# sourceMappingURL=edit_issue_metadata.css.map */"]});var e5c=["descriptionArea"],f5c=["container"],B0=function(){Z.call(this);var a=this;this.cdr=n(NA,{self:!0});this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.editStatusUpdateDialogService=n(o0);this.statusUpdateService=n(n0);this.issueCommentDialogsService=n(pS);this.contextSensitiveRegistry=n(iL);this.issuePermissionService=n(lL);this.clipboard=n(rO);this.snackBar=n(fK);this.llmIssueSummaryService=n(bU);this.analytics=n(CF);this.userFeedback=n(JS);this.activeSession=n(Es);this.closeSidebar=
new LA;this.navigateToNextIssue=new LA;this.navigateToPreviousIssue=new LA;this.issueId$=new ag(1);this.issue$=this.issueId$.pipe(gg(this.destroyed$),fg(function(b){return a.issueFullFridge.watch(b)}),cg({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.events$=this.issueId$.pipe(gg(this.destroyed$),
fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){return(b==null?void 0:b.events)||[]}));this.firstEvent$=this.events$.pipe(y(function(b){return b.length>0?b[0]:void 0}));this.statusUpdate$=this.issue$.pipe(y(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(Ve(Tk),y(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=
this.statusUpdate$.pipe(y(function(b){return!!b&&b.updateText!==""}));this.firstNote$=this.events$.pipe(gg(this.destroyed$),y(function(b){if(b&&b.length>0&&b[0].commentNumber&&b[0].commentNumber>-1)return{commentNumber:b[0].commentNumber,unlinkifiedComment:b[0].unlinkifiedComment||"",formattedComment:b[0].formattedComment}}),cg({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(fg(function(b){return b?a.issuePermissionService.canEditComment$(b):Ce(!1)}));this.hasDescription$=
this.events$.pipe(gg(this.destroyed$),y(function(b){return b&&b.length>0&&Xxa(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=Yk;this.descriptionHasMore=!0;this.showFullDescription=!1;this.HIDDEN="HIDDEN";this.BUTTON="BUTTON";this.GENERATING="GENERATING";this.SUMMARY_VISIBLE="SUMMARY_VISIBLE";this.enableIssueSummarizationNoButton=this.llmIssueSummaryService.enableNoButton;this.summaryThumbsDown=
this.summaryThumbsUp=this.hasRatedSummary=this.isIssueSummaryExpanded=!1;this.stage$=this.llmIssueSummaryService.stage$;this.issueSummary$=this.llmIssueSummaryService.summary$.pipe(Ve(Tk),hg(function(b){b.summary&&a.llmIssueSummaryService.trackEvent("display","issueSidebar")}));this.containerScrolled=!1;this.destroyed$.subscribe(function(){uub(a)});this.issueId$.pipe(gg(this.destroyed$)).subscribe(function(){uub(a);a.hasRatedSummary=!1;a.summaryThumbsUp=!1;a.summaryThumbsDown=!1;a.showFullDescription=
!1});this.firstNote$.pipe(gg(this.destroyed$)).subscribe(function(){g5c(a)})};Y(B0,Z);B0.\u0275dir=Z.\u0275dir;
B0.prototype.ngOnInit=function(){var a=this;this.stage$.pipe(gg(this.destroyed$)).subscribe(function(b){switch(b){case "HIDDEN":case "BUTTON":a.isIssueSummaryExpanded=!1;break;case "GENERATING":case "SUMMARY_VISIBLE":a.isIssueSummaryExpanded=!0;break;default:Gb(b,"stage had an unknown type")}a.cdr.detectChanges()});this.llmIssueSummaryService.summarizable$.pipe(gg(this.destroyed$)).subscribe(function(b){b.isSummarizable&&a.llmIssueSummaryService.trackEvent("viewSummarizableIssue","issueSidebar")})};
B0.prototype.ngAfterViewInit=function(){var a=this;this.issueId$.pipe(gg(this.destroyed$)).subscribe(function(){a.container.nativeElement.scrollTop=0})};var g5c=function(a){setTimeout(function(){var b;a.descriptionHasMore=((b=a.descriptionArea)==null?void 0:b.nativeElement.scrollHeight)>130;a.cdr.detectChanges()})};g=B0.prototype;g.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3});this.analytics.trackEvent("issueSidebar","copyIssueId")};
g.generateIssueSummary=function(){this.analytics.trackEvent("issueSidebar","generateIssueSummary");this.llmIssueSummaryService.trackEvent("click","issueSidebar");Q8a(this.llmIssueSummaryService)};g.trackThumbsUp=function(a){this.summaryThumbsUp=this.hasRatedSummary=!0;this.llmIssueSummaryService.trackThumbsUp(a,"issueSidebar")};g.trackThumbsDown=function(a){this.summaryThumbsDown=this.hasRatedSummary=!0;this.llmIssueSummaryService.trackThumbsDown(a,"issueSidebar")};
g.copySummary=function(a){if(a&&a.summary!==""){this.clipboard.copy(a.summary);this.snackBar.open("Issue summary copied to clipboard","",{duration:2E3});var b=this.llmIssueSummaryService;b.trackEvent("copy","issueSidebar");cU(b,a,"COPY")}};g.openFeedbackDialog=function(a){this.userFeedback.startFeedback();cU(this.llmIssueSummaryService,a,"FEEDBACK")};
g.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:return x(u,Ge(a.issueId$),2);case 2:return b=u.yieldResult,x(u,Ge(a.componentId$),3);case 3:return c=u.yieldResult,d={issueId:b,updateText:"",version:-1},x(u,Ge(a.statusUpdate$),4);case 4:return f=(e=u.yieldResult)!=null?e:d,x(u,Ge(a.accessLevel$),5);case 5:return k=(h=u.yieldResult)&&h==="INTERNAL"?"INTERNAL":"EXTERNAL",x(u,a.editStatusUpdateDialogService.show(f,k,c),6);case 6:q=u.yieldResult;
if(!q)return u.return();a.statusUpdateService.update(q).subscribe(function(A){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",A.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(G){G.statusUpdate=A});a.issueFullFridge.poke(b)});ze(u)}})};
var Yub=function(a){var b,c;return w(function(d){switch(d.nextAddress){case 1:return x(d,Ge(a.issueId$),2);case 2:return b=d.yieldResult,x(d,Ge(a.firstEvent$),3);case 3:return(c=d.yieldResult)?x(d,e8a(a.issueCommentDialogsService,b,c),4):d.return();case 4:return x(d,a.eventsForIssueFridge.poke(b),5);case 5:a.analytics.trackEvent("issueSidebar","edit","description",Xxa(c)),ze(d)}})},sub=function(a){var b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.issue$),2);b=c.yieldResult;if(!b)return c.return();
a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;ze(c)})},uub=function(a){a.isSavingTitle||(a.draftTitle="",a.editTitleMode=!1)};B0.prototype.saveTitle=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return uub(a),c.return();a.isSavingTitle=!0;jrc(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;uub(a)});ze(c)})};
B0.prototype.upvoted=function(a){this.analytics.trackEvent("issueSidebar","toggle","vote",a)};ea.Object.defineProperties(B0.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a?(this.issueId$.next(String(a)),this.contextSensitiveRegistry.issueIdOverride$.next(String(a)),this.analytics.trackEvent("issueSidebar","changeIssue")):this.contextSensitiveRegistry.issueIdOverride$.next(null)}},content:{configurable:!0,enumerable:!0,set:function(a){a&&(this.descriptionArea=a,g5c(this))}}});
B0.\u0275fac=function(a){return new (a||B0)};
B0.\u0275cmp=B({type:B0,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(Wg(e5c,5),Wg(f5c,5));if(a&2){var c;$g(c=ah())&&(b.content=c.first);$g(c=ah())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},standalone:!1,features:[hh([NA]),kg],decls:24,vars:14,consts:[["container",""],["spinner",""],["aiHelp",""],["descriptionArea",""],[1,"container","flex-kids-y",
3,"scroll"],[1,"top-actions","flex-kids-x","space-between","border-bottom"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[1,"action-buttons"],[3,"issueId","upvoted","voteCount"],["type","button","mat-icon-button","","matTooltip","Previous issue","matTooltipPosition","above","aria-label","Previous issue",3,"click"],["svgIcon","chevron-left"],["type","button","mat-icon-button","","matTooltip","Next issue","matTooltipPosition","above","aria-label","Next issue",3,"click"],["svgIcon",
"chevron-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","matTooltipPosition","above","aria-label","Close sidebar",3,"click"],["svgIcon","close"],[1,"title"],[1,"details","flex-kids-y","padded-s-sides"],[1,"card-container"],[1,"heading-xs","muted","hover-link",3,"click","href"],[1,"a11y-only"],["type","button","mat-icon-button","","aria-label","copy issue id",1,"small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[3,"onVote","issueId","upvoted",
"voteCount"],[1,"flex"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"fade-icon-button","small",3,"click","matTooltipShowDelay"],["svgIcon","edit-outline",1,"icon-s"],[1,"full-width"],["matInput","","type","text","aria-label","Edit issue title","rows","3",3,"ngModelChange","cdkTextareaAutosize","cdkAutosizeMinRows","ngModel","bFocus"],[1,"flex-kids-x","gap","justify-flex-end","padded-bottom","border-bottom"],["type","button","mat-stroked-button",
"",1,"small"],["type","button","mat-flat-button","","color","primary",1,"small",3,"click","disabled"],["type","button","mat-stroked-button","",1,"small",3,"click"],[4,"ngTemplateOutlet"],[1,"card","status-update"],[1,"card-header"],[1,"card-header-inner-left"],["svgIcon","group","color","primary",1,"icon-s"],[1,"card-header-inner-right"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button",
3,"matTooltipShowDelay"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"matTooltipShowDelay"],[1,"card","description"],[1,"bv2-issue-metadata","card"],["svgIcon","release-notes-default","color","primary",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Toggle the fields view for this issue","matTooltip","Toggle the fields view for this issue",
"matTooltipPosition","above",1,"small",3,"click","matTooltipShowDelay"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],[1,"fields-area","margin-top","flex-kids-y"],[1,"card","no-border","issue-summary"],["svgIcon","chat_spark_24px","color","primary",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Show AI generated summary note","dialogLabel","AI generated summary note",1,"small",3,"xapInlineDialog","dialogTabIndex"],["svgIcon","help-outline",1,"icon-s"],["type",
"button","mat-flat-button","",1,"small","generate-summary"],["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small",3,"matTooltipShowDelay"],[1,"issue-summary-area"],["type","button","mat-flat-button","",1,"small","generate-summary",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip",
"Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small",3,"click","matTooltipShowDelay"],[3,"ngTemplateOutlet"],[3,"content"],[1,"flex-kids-x","justify-flex-end","gap-s","margin-s-top"],["type","button","mat-icon-button","","aria-label","copy summary","matTooltip","Copy issue summary to clipboard",1,"small","copy-issue-summary",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","aria-label","send feedback","matTooltip","Send feedback",1,
"small","summary-feedback",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","aria-label","rate thumbs up","matTooltip","Rate summary: Good",1,"small","summary-thumbs-up",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","rate thumbs down","matTooltip","Rate summary: Bad",1,"gmat-button","small","summary-thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],["type","button",
"mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button",3,"click","matTooltipShowDelay"],["type","button","mat-icon-button","","aria-label","Toggle the status update view for this issue","matTooltip","Toggle the status update view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click","matTooltipShowDelay"],[1,"status-update-area"],[3,"issueId","note","issueAccessLevel","formattingMode"],
["type","button","mat-icon-button","","aria-label","Edit the description","matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button",3,"matTooltipShowDelay"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"matTooltipShowDelay"],[1,"description-area"],["type","button","mat-icon-button","","aria-label","Edit the description",
"matTooltip","Edit the description","matTooltipPosition","above",1,"small","edit-button",3,"click","matTooltipShowDelay"],["type","button","mat-icon-button","","aria-label","Toggle the description view for this issue","matTooltip","Toggle the description view for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click","matTooltipShowDelay"],[1,"description-note"],[1,"description-show-more","margin-s-top"],[3,"click"],[3,"issueId"],[1,"text-center"]],template:function(a,b){if(a&
1){var c=r();I(0,"div",4,0);M("scroll",function(){t(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});I(2,"header")(3,"div",5)(4,"div",6);E(5,qub,6,3);S(6,"async");J();I(7,"div",7);E(8,rub,1,3,"b-app-vote-button",8);S(9,"async");I(10,"button",9);M("click",function(){t(c);return v(b.navigateToPreviousIssue.emit())});K(11,"mat-icon",10);J();I(12,"button",11);M("click",function(){t(c);return v(b.navigateToNextIssue.emit())});K(13,"mat-icon",12);J();I(14,"button",13);M("click",
function(){t(c);return v(b.closeSidebar.emit())});K(15,"mat-icon",14);J()()();E(16,Aub,4,2,"div",15);S(17,"async");J();I(18,"div",16);E(19,mvb,31,23,"div",17);S(20,"async");Ag(21,ovb,1,1,"ng-container");J()();C(22,pvb,2,0,"ng-template",null,1,nh)}if(a&2){var d,e,f,h;z(2);wg("elevated",b.containerScrolled);z(3);F((d=T(6,6,b.issueId$))?5:-1,d);z(3);F((e=T(9,8,b.issue$))?8:-1,e);z(8);F((f=T(17,10,b.issue$))?16:-1,f);z(3);F((h=T(20,12,b.issue$))?19:21,h)}},dependencies:[PA,Tx,Ux,YA,cB,Li,oy,vy,YM,Xy,
$M,ez,cz,PM,OM,UM,Pv,aB,ON,A0,JO,RO,xO,dP,Qv],styles:["header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--background);position:-webkit-sticky;position:sticky;top:0;z-index:3}header.elevated[_ngcontent-%COMP%]{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.action-buttons[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fade-icon-button[_ngcontent-%COMP%]{vertical-align:bottom;opacity:0;-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out}.fade-icon-button[_ngcontent-%COMP%]:focus{opacity:1}.card[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .top-actions[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%]{opacity:1}.container[_ngcontent-%COMP%]{width:440px;height:100%;overflow-y:scroll}.issue-summary[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.issue-summary-area[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.title[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow-wrap:anywhere;font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:16px 8px}.title[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:8px}.card-container[_ngcontent-%COMP%]{display:grid}.card[_ngcontent-%COMP%]{padding:8px 8px 8px 16px;border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);margin-bottom:16px}.card.no-border[_ngcontent-%COMP%]{border:none}.card-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.card-header-inner-left[_ngcontent-%COMP%], .card-header-inner-right[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.card-header-inner-left[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.05rem}.card-header-inner-right[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.details[_ngcontent-%COMP%]{width:-webkit-fill-available;width:-moz-fill-available;width:-moz-available;width:fill-available}.status-update[_ngcontent-%COMP%]{padding-left:12px;border-left:4px solid;border-left-color:#1a73e8;border-left-color:var(--primary)}.description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]{overflow-x:auto}.description-note[_ngcontent-%COMP%]{max-height:160px;overflow:hidden}.full-height[_ngcontent-%COMP%]{max-height:100%}.description-area[_ngcontent-%COMP%], .fields-area[_ngcontent-%COMP%], .status-update-area[_ngcontent-%COMP%]{position:relative}.edit-description[_ngcontent-%COMP%], .edit-status-update[_ngcontent-%COMP%]{opacity:0}.edit-description[_ngcontent-%COMP%]:focus, .edit-status-update[_ngcontent-%COMP%]:focus{opacity:1}.description[_ngcontent-%COMP%]:hover   .edit-description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]:hover   .edit-status-update[_ngcontent-%COMP%]{opacity:1}\n/*# sourceMappingURL=issue_sidebar.css.map */"]});var h5c=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],C0=function(){this.compactMode=this.labelOnlyMode=!1};C0.prototype.ngOnInit=function(){};C0.\u0275fac=function(a){return new (a||C0)};
C0.\u0275cmp=B({type:C0,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},standalone:!1,ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:6,consts:[["chipHovercard","onedevHovercard"],[1,"bv2-chip"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"field-label-with-help",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"help-label",3,"ngClass"]],
template:function(a,b){a&1&&(Ng(h5c),I(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),Og(5),J()()(),I(6,"div",4)(7,"span",5),Og(8,1),J()()());if(a&2){a=L(2);z(3);ng("aria-label",b.hovercardAriaLabel);z(3);D("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);z();wg("compact-chip",b.compactMode);var c;D("ngClass",(c=b.labelClass)!=null?c:"")}},dependencies:[Mv,fJ,lJ],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.bv2-chip[_ngcontent-%COMP%]   .field-label-with-help[_ngcontent-%COMP%]{line-height:1em}.bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{font-weight:normal;border-radius:8px;display:inline-block;line-height:18px;padding:0 10px}.bv2-chip[_ngcontent-%COMP%]   .help-label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;vertical-align:inherit}.bv2-edit-issue-details-scroll[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%]{vertical-align:baseline}.bv2-grid-cell-container[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%] > .field-label-with-help[_ngcontent-%COMP%]{line-height:1}.onedev-hovercard-body[_ngcontent-%COMP%]{line-height:1.6em;width:350px}"]});var D0=function(){this.documentationLinks=n(lK);this.documentationLink=zs()};D0.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=lm(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};D0.\u0275fac=function(a){return new (a||D0)};
D0.\u0275cmp=B({type:D0,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[Uu],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&E(0,svb,4,2);a&2&&F(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[ZL],encapsulation:2});var E0=function(){this.dateFormatter=n(YL);this.compactMode=!1;this.text=""};E0.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=R4a(lm(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};E0.\u0275fac=function(a){return new (a||E0)};
E0.\u0275cmp=B({type:E0,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},standalone:!1,features:[Uu],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&ch(b.text)},encapsulation:2});var F0=function(){this.documentationLinks=n(lK);this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};F0.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=uvb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};F0.\u0275fac=function(a){return new (a||F0)};
F0.\u0275cmp=B({type:F0,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[Uu],decls:1,vars:1,consts:[["hovercardAriaLabel","Retention Chip Hovercard",3,"compactMode","labelClass","labelOnlyMode"],[1,"chip-content"],[3,"retentionState","compactMode"],[1,"tooltip-content"],[3,"retentionState","modifiedTime"]],template:function(a,
b){a&1&&E(0,tvb,5,7,"b-base-chip",0);a&2&&F(b.showRetentionInfo?0:-1)},dependencies:[C0,E0,D0],styles:["[_nghost-%COMP%]     .help-label{white-space:nowrap;color:#202124;color:var(--text-high-contrast)}[_nghost-%COMP%]     .help-label.expiring{background-color:#e8eaed;background-color:var(--chip-bg)}[_nghost-%COMP%]     .help-label.danger{background-color:#fcad70;background-color:var(--expiring-bg);color:rgba(0,0,0,.7);color:var(--expiring-text)}"]});var i5c=["issueSidenavContainer"],oyb=function(){return[]},hwb=function(a,b,c){return{low:a,high:b,p0:c}},Pwb=function(a){return{id:a}},uxb=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},G0=function(){var a=this;this.activeSession=n(Es);this.cdr=n(NA,{self:!0});this.elementRef=n(ff);this.teamsService=n(yG);this.ngZone=n(ph);this.userPreferencesManager=n(OG);this.hotlistFridge=n(JD);this.issueFullFridge=n(EF);this.bLocation=n(cI);this.issuePagination=n(OY);this.paths=
n(EN);this.errorHandler=n(DK);this.$log=n(MA);this.domSafe=n(rL);this.trackerHelpers=n(LK);this.anayltics=n(CF);this.ISSUE_STATUS_JS_ICON_NAME=kmc;this.STATUS_JS_FULL_TEXT=yk;this.STATUS_JS_TERSE=fmc;this.lastCheckedIndex=null;this.focusedRowIndexChange=new LA;this.columns=[];this.columnsChange=new LA;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new LA;this.rowClick=new LA;this.init=new LA;this.onRowDragDrop=new LA;this.onNextPage=new LA;this.onPrevPage=new LA;this.selectionCallbacks=
[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=W_a;this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=Yr(this.activeSession,"enableAggregationRules");this.enableEscalationOwnerRolloutUi=Yr(this.activeSession,"enableEscalationOwnerRolloutUi");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.destroyed$=new ag(1);this.starInProgress={};this.readUnreadOptOut=Yr(this.activeSession,"readUnreadOptOut");this.enableAddViewCountColumnsOnIlp=Yr(this.activeSession,"enableAddViewCountColumnsOnIlp");var b=ab(hrb);
this.activeSession.isInternalSession()||(Za(b,"minSlo"),Za(b,"responseSlo"),Za(b,"assignmentSlo"),Za(b,"closureSlo"),Za(b,"deletionTime"),Za(b,"team"),Za(b,"estimate"),Za(b,"estimateTotalOpen"),Za(b,"estimateTotalComplete"));this.activeSession.isInternalSession()&&this.enableEscalationOwnerRolloutUi||Za(b,"escalationOwner");this.enableAddViewCountColumnsOnIlp||(Za(b,"oneDayViewCount"),Za(b,"sevenDayViewCount"),Za(b,"thirtyDayViewCount"));this.availableColumns=b.map(irb);this.dragDropLogic=new x4c({ngZone:this.ngZone,
nativeElement:this.elementRef.nativeElement,rowFinder:function(c){return j5c(a,c)},onRowDragDrop:function(c){a.onRowDragDrop.emit(c)}})};g=G0.prototype;g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar&&Yr(this.activeSession,"enableIssueSidebar")||!1;this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=Tta(((b=this.searchResults)==null?void 0:b.issues.map(function(e){return new Set([].concat(p(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(p(c)))}if(a.searchResults||a.columns)for(b=l(this.columns),c=b.next();!c.done;c=b.next())c.value.label==="TEAM"&&k5c(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set(((d=a.searchResults.previousValue)==null?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((b==null?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);iua(a,d)||fs(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=l(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}fs(this)};
var l5c=function(a){if(a.searchResults){for(var b=l(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}fs(a)};G0.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var Gvb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},m5c=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},Fvb=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=l(a.searchResults.issues);for(var d=a.next();!d.done;d=a.next())d.value.selected?c=!0:b=!1;return b?"checked":c?"indeterminate":"unchecked"};
G0.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};
var o5c=function(a){if(n5c(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),fs(a))}},Evb=function(a){if(a.searchResults){for(var b=!m5c(a),c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();fs(a)}},vvb=function(a){a.focusedRowIndex!=null&&a.searchResults&&a.focusedRowIndex<a.searchResults.issues.length-1?(a.focusedRowIndex++,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasNextPage()&&g1c(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},wvb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&g1c(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
H0=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(Hq(c.issueId)):a.bLocation.setUrl(Hq(c.issueId)))};G0.prototype.getFocusedIssue=function(){return n5c(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var p5c=function(a,b){a.selectionCallbacks.push(b);b()},fs=function(a){a=l(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},q5c=function(a){n5c(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},r5c=function(a,b){b=b===void 0?!0:b;var c=a.getSelectedIssues();if(c.length!==0){for(var d=l(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();GF(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var h=l(c),k=h.next();!k.done;k=h.next()){var q=void 0;k.value.lastViewedTime=(q=f)!=null?q:null}}).catch(function(){for(var f=l(c),h=f.next();!h.done;h=f.next())h=h.value,h.isRead=!!h.lastViewedTime&&h.lastViewedTime>=h.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
G0.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,hrc(this.issueFullFridge,String(a.issueId),a.starred).pipe(Uf(),gg(this.destroyed$)).subscribe(function(){b.starInProgress[a.issueId]=!1;b.cdr.detectChanges()},function(c){a.starred=!a.starred;b.starInProgress[a.issueId]=!1;b.errorHandler.errorHandler(null,c);b.cdr.detectChanges()}))};
G0.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var n5c=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},j5c=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},k5c=function(a){if(a.searchResults){for(var b=new Set,c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d=String(d.value.teamId),d!=="0"&&b.add(d);b.size>0?(a.isLoadingTeams=!0,htc(a.teamsService,[].concat(p(b))).pipe(gg(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
l(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);k!=="0"&&(k=e.get(k))&&(h.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};G0.prototype.isIssueGridColumn=function(){return!0};G0.prototype.getComponentPath=function(a){return Sj(a)?a.join(" > "):(a=rs(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};G0.\u0275fac=function(a){return new (a||G0)};
G0.\u0275cmp=B({type:G0,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(Wg(c0,7),Wg(i5c,5));if(a&2){var c;$g(c=ah())&&(b.grid=c.first);$g(c=ah())&&(b.sideNavContainer=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort",enableSidebar:"enableSidebar"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",
onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},standalone:!1,features:[hh([NA]),Uu],decls:7,vars:1,consts:[["issuesGrid",""],["issueWithHovercard",""],["issueSidenavContainer",""],["issueHovercard","onedevHovercard"],["cardBody",""],["hasBackdrop","false",3,"sidebar-enabled"],["hasBackdrop","false"],["mode","side","position","end",3,"openedChange","opened","disableClose"],[3,"issueId"],[4,"ngTemplateOutlet"],[3,"closeSidebar","navigateToNextIssue","navigateToPreviousIssue",
"issueId"],[1,"keep-focus-ring",3,"columnsChange","focusedRowIndexChange","sortChange","rowClick","list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",4,"forViewCell"],["class",
"star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class","clickable issue-id-cell",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],["class","clickable datetime-cell",
4,"forViewCell"],["class","componentPath-cell clickable",3,"ngClass",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],[1,"focus-indicator"],[1,"drag-handle"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"click","keydown.enter","keydown.space","state"],[3,"column"],
[3,"column","availableColumns","selectedColumns"],[3,"selectedColumnsChange","column","availableColumns","selectedColumns"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state"],["tabindex","-1","role","checkbox",3,"click","state"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage"],["tabindex","-1",3,"starClicked","starred","disabled","starMessage","unStarMessage"],["data-template","issueId",1,"clickable","issue-id-cell"],[1,"row-issue-id",
3,"issueId","showCopyOptions"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"row-issue-id",3,"click","issueId","showCopyOptions"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container",3,"bv2-grid-cell-flex-wrap"],[1,"bv2-grid-cell-container"],[3,"issueId","compactMode"],[3,"trackerId","compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href"],["svgIcon","input_24px",1,"navigate-to-idp","icon-s"],[1,"bv2-hotlist-chips"],
[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"ngClass"],[1,"severity-cell","clickable"],["data-stable-cell","status",1,"clickable"],[3,"title"],[1,"icon-s",3,"svgIcon"],[3,"class"],["data-stable-cell","type",1,"clickable"],[1,"clickable"],[3,"email"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"clickable","datetime-cell"],["mode","datetime",3,"timestamp"],[1,"componentPath-cell","clickable",3,"ngClass"],[1,"clickable","first-letter-capitalized"],[3,"sloId","sloStatus",
"sloStartTime"],[3,"sloStatus","sloStartTime"],[3,"sloId","sloStatus","sloStartTime","onlyShowMetric"],[3,"sloBounds"],["mode","date",3,"timestamp"],[1,"animated-loading-bar"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(I(0,"div"),E(1,zvb,6,6,"mat-sidenav-container",5)(2,Bvb,1,1,"ng-container"),J(),C(3,
pyb,55,62,"ng-template",null,0,nh)(5,ryb,5,2,"ng-template",null,1,nh));a&2&&(z(),F(b.isIssueSidebarEnabled?1:2))},dependencies:[z4c,Mv,Pv,aB,Kx,kY,lY,jY,c0,h0,d0,e0,f0,Z_,b0,ZL,j0,IJ,hU,F0,sN,wS,fJ,gJ,lJ,hJ,eP,B0,KM,sO,cP,i0,QB,PB,Mlc,SB],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}[_nghost-%COMP%]     .title-cell b-hotlist-chip{margin-bottom:1px}/*# sourceMappingURL=issues_grid.css.map */"],changeDetection:0});
var I0=new ds({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),s5c=new ds({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),J0=new ds({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),K0=new ds({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),t5c=new ds({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var L0=function(){Z.apply(this,arguments);var a=this;this.snackBar=n(fK);this.issuePicker=n(vR);this.issueApi=n(BE);this.issueAddedToHotlist=new LA;this.onCloseIssuePicker=function(b){b=b===void 0?[]:b;if(b.length!==0&&a.id!=null){var c=b.join(", ");a.snackBar.open(b.length===1?"Adding issue "+c+" to this hotlist":"Adding multiple issues to this hotlist: "+c,void 0,{duration:2500});a.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:a.id,actionType:"ADD"}],issueIds:b}]}).then(a.didSave,
a.gotErr)}};this.didSave=function(){a.issueAddedToHotlist.emit();a.snackBar.open("Successfully added to hotlist",void 0,{duration:2500})};this.gotErr=function(b){var c,d,e,f,h=(f=(e=b==null?void 0:(c=b.error)==null?void 0:c.message)!=null?e:b==null?void 0:(d=b.data)==null?void 0:d.message)!=null?f:"Error adding issues to the hotlist";a.snackBar.open(h,"close",{panelClass:"error"})}};Y(L0,Z);L0.\u0275dir=Z.\u0275dir;L0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(L0)))(b||L0)}}();
L0.\u0275cmp=B({type:L0,selectors:[["hotlist-add-issue-btn"]],inputs:{id:[0,"hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},standalone:!1,features:[kg],decls:2,vars:0,consts:[["type","button","mat-button","","matTooltip","Add issues to this hotlist",1,"medium",3,"click"]],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),Q(1," Add Issue(s) "),J())},dependencies:[PA,
Tx,YA,cB],encapsulation:2});var M0=function(){Z.call(this);var a=this;this.fridge=n(JD);this.snackBar=n(fK);this.dialog=n(AK);this.events=n(nD);this.id$=new ag(1);this.hotlist$=this.id$.pipe(fg(function(b){return a.fridge.watch(b)}),cg({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(y(function(b){return!(b==null||!b.archived)}),Xf());this.archiveActionLabel$=this.archived$.pipe(y(function(b){return b?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(y(function(b){return b?"Unarchive this hotlist":
"Archive this hotlist, hiding it from most searches"}));this.didSave=function(b){return function(){a.snackBar.open(b?"Hotlist was archived":"Hotlist was unarchived",void 0,{duration:2500});a.events.hotlistChanged.next()}};this.gotErr=function(b){return function(c){var d=b?"archiving":"unarchiving";a.snackBar.open(Xo(c)||"Error "+d+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(gg(this.destroyed$)).subscribe(function(b){a.latestHotlist=b})};Y(M0,Z);M0.\u0275dir=Z.\u0275dir;
M0.prototype.isThinking=function(a){return this.fridge.isThinking(a)};M0.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var v5c=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Oi("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){u5c(a,b)}}):u5c(a,b)}},u5c=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
M0.\u0275fac=function(a){return new (a||M0)};
M0.\u0275cmp=B({type:M0,selectors:[["hotlist-archive-btn"]],inputs:{id:[0,"hotlistId","id"]},standalone:!1,features:[kg,Uu],decls:4,vars:7,consts:[["type","button","mat-button","",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(I(0,"button",0),S(1,"async"),M("click",function(){return v5c(b)}),Q(2),S(3,"async"),J());if(a&2){var c;D("disabled",b.isThinking(b.id))("matTooltip",(c=T(1,3,b.archiveActionTooltip$))!=null?c:"");z(2);R(" ",T(3,5,b.archiveActionLabel$)," ")}},dependencies:[PA,
Tx,YA,cB,Qv],encapsulation:2});var N0=function(){D_.apply(this,arguments);this.estadoService=n(Y_);this.refreshMonitor=n(YE);this.init=new LA;this.onRefresh=new LA;this.isHotlistAdmin=!1;this.onExportCsv=new LA;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!Gq(a.activeSession);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName="gridControls"};Y(N0,D_);N0.\u0275dir=D_.\u0275dir;g=N0.prototype;
g.ngOnInit=function(){this.init.emit(this)};g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&p5c(this.grid,function(){b.onSelectionChange()})};g.getSelectedIssues=function(){var a,b;return(b=(a=this.grid)==null?void 0:a.getSelectedIssues())!=null?b:[]};g.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};g.openInEstado=function(){this.estadoService.openInEstado()};var w5c=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};
N0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(N0)))(b||N0)}}();
N0.\u0275cmp=B({type:N0,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},standalone:!1,features:[hh([NA]),kg,Uu],decls:11,vars:8,consts:[["addCommentDialog",""],["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption",
"readStatePrompt"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format"],[1,"bv2-appbar-menu",3,"exportCsvClicked","flagAsSpamClicked","showExportCsv","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","enableBulkEstimatedEffortOption","readStatePrompt"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks",
"onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[3,"hotlistId"],[3,"issueAddedToHotlist","hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"onAction","size","format"],["name","bar-chart","size","large"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button",
"",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium","primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=r();I(0,"b-button",1);M("onAction",function(){t(c);return v(b.refresh())});K(1,"b-icon",2);J();E(2,syb,2,4,"b-app-bar-bulk-edit-menus",3);E(3,tyb,1,2,"b-copy-issue-id-button",4);E(4,uyb,2,2,"div",5);E(5,xyb,2,2);E(6,zyb,
3,3,"b-button",6);I(7,"b-app-bar-more-menu",7);M("exportCsvClicked",function(){t(c);return v(b.onExportCsv.emit())})("flagAsSpamClicked",function(){t(c);return v(q3c(b))});J();I(8,"b-state-modal",8);M("save",function(){t(c);return v(o3c(b))})("close",function(){t(c);return v(b.hotkeys.unpause())});J();C(9,Cyb,11,6,"ng-template",null,0,nh)}a&2&&(z(2),F(b.hasSelectedIssues()?2:-1),z(),F(b.hasSelectedIssues()?3:-1),z(),F(b.enableBulkEditUi&&b.hasSelectedIssues()?4:-1),z(),F(b.showHotlistButtons&&!b.hasSelectedIssues()?
5:-1),z(),F(b.enableEstadoInAppBar?6:-1),z(),D("showExportCsv",b.isNonPublicSession||Hmc(b.activeSession))("showFlagIssuesAsSpam",w5c(b)),z(),D("externalWarnings",b.externalWarnings))},dependencies:[BY,AY,aH,UV,UZ,M0,L0,y_,CL,PA,Tx,uK,wK,yK,xK,B_,kS,z_,Qv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var x5c=function(a){return{displayText:"Admins",values:a}},y5c=function(a){return[a]},z5c=function(a){return{displayText:"Appenders",values:a}},A5c=Oi("You are about to change the administrator privileges for this hotlist.\nMake sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits.\nDo you want to proceed?"),O0=function(){var a=n(lS);Z.call(this);var b=this;this.hotlistAccessPolicyFridge=n(HE);this.links=n(lK);this.snackBar=
n(fK);this.events=n(nD);this.dialog=n(AK);this.permissions=n(iG);this.userApi=n(ID);this.activeSession=n(Es);this.id$=new ag(1);this.idSubject$=mp(this.id$.pipe(gg(this.destroyed$)));this.acl$=this.id$.pipe(fg(function(c){return b.hotlistAccessPolicyFridge.watch(c)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=XDc(this.links);this.validity={};this.isValid=function(){return Object.values(b.validity).every(Boolean)};this.isInvalid=function(){return!b.isValid()};
this.allAppenders=[];this.onPressSave=function(){b.isRevokingAdmin()?b.dialog.open({title:"Change Hotlist Admins",content:A5c,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){var c=b.idSubject$.value;if(c!=null){var d=b.isRevokingAdmin();c={id:c,admins:Wp(b.admins),appenders:Wp(b.appenders),editors:null,readers:Wp(b.readers),implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};
b.hotlistAccessPolicyFridge.save(c).subscribe({next:b.didSave(d,c.id),error:b.gotErr})}};this.didSave=function(c,d){return function(){b.snackBar.open("Access control saved",void 0,{duration:2500});b.events.hotlistChanged.next();b.permissions.poke(d);c&&b.doStar()}};this.gotErr=function(c){b.snackBar.open(Xo(c)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var c=b.idSubject$.value;c&&b.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:c}).then(function(){b.events.hotlistChanged.next()})};
this.onPressRevert=function(){b.resetEdits()};this.isChanged=function(){var c=b.latestCompactPolicy,d;if(!Pj((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!Pj((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return Pj((f=c.readers)!=null?f:[],b.readers)?!1:!0};this.hasNoChanges=function(){return!b.isChanged()};this.acl$.pipe(gg(this.destroyed$)).subscribe(function(c){b.latestPolicy=c;var d,e,f;b.latestCompactPolicy={admins:Vp((d=b.latestPolicy)==null?void 0:d.admins),appenders:Vp((e=b.latestPolicy)==
null?void 0:e.appenders),readers:Vp((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(mS(a,this.isChanged,!1))};Y(O0,Z);O0.\u0275dir=Z.\u0275dir;var B5c=function(a){return[].concat(p(new Set([].concat(p(a.admins),p(a.appenders)))))};O0.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
O0.prototype.resetEdits=function(){var a;this.admins=[].concat(p((a=this.latestCompactPolicy.admins)!=null?a:[]));var b;this.appenders=[].concat(p((b=this.latestCompactPolicy.appenders)!=null?b:[]));var c;this.readers=[].concat(p((c=this.latestCompactPolicy.readers)!=null?c:[]));this.allAppenders=B5c(this)};O0.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=(b=this.latestCompactPolicy.admins)!=null?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
O0.prototype.isRevokingDirectAdmin=function(a,b,c){c=c===void 0?"":c;if(kk(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};O0.\u0275fac=function(a){return new (a||O0)};
O0.\u0275cmp=B({type:O0,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[kg,Uu],decls:22,vars:24,consts:[[1,"flex-kids-y"],[1,"muted","type-s","margin-s-bottom"],[3,"usersChange","isValid","users"],[3,"usersChange","isValid","users","includeAliases","containerChips"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],["target","_blank",3,"href"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button",
"","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(I(0,"form",0)(1,"label"),Q(2,"Admins"),J(),I(3,"p",1),Q(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),J(),I(5,"b-multi-user-input",2),M("usersChange",function(c){b.admins=c;b.allAppenders=B5c(b)})("isValid",function(c){return b.validity.admins=c}),J(),I(6,"label"),Q(7,
"View and append"),J(),I(8,"p",1),Q(9,"Reorder hotlist, add/remove issues"),J(),I(10,"b-multi-user-input",3),M("usersChange",function(c){b.appenders=c;b.allAppenders=B5c(b)})("isValid",function(c){return b.validity.appenders=c}),J(),I(11,"label"),Q(12,"View only"),J(),I(13,"p",1),Q(14,"View the hotlist"),J(),I(15,"b-multi-user-input",4),M("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),J()(),I(16,"p"),Q(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),
I(18,"a",5),Q(19,"access control documentation"),J(),Q(20," for an explanation of the settings.\n"),J(),E(21,Dyb,5,4,"div",6));a&2&&(z(5),wg("disabled",b.isReadOnly),D("users",b.admins),z(5),wg("disabled",b.isReadOnly),D("users",b.appenders)("includeAliases",!0)("containerChips",jh(18,y5c,jh(16,x5c,b.admins))),z(5),wg("disabled",b.isReadOnly),D("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",jh(22,y5c,jh(20,z5c,b.allAppenders))),z(3),D("href",b.accessControlLink,
uf),z(3),F(b.isReadOnly?-1:21))},dependencies:[wy,py,ty,PA,Tx,YA,cB,YO],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n\n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});var C5c=["hotlistName"],P0=function(){Z.call(this);var a=this;this.fridge=n(JD);this.snackBar=n(fK);this.events=n(nD);this.checkBeforeExit=n(lS);this.isReadOnly=!1;this.id$=new ag(1);this.hotlist$=this.id$.pipe(fg(function(b){return a.fridge.watch(b)}));this.isArchived=!1;this.localEdits={};this.gotHotlist=function(b){a.latestHotlist=b;var c;a.isArchived=(c=b==null?void 0:b.archived)!=null?c:!1;a.resetEdits(b)};this.gotErr=function(b){a.snackBar.open(Xo(b)||"Error saving the hotlist","close",{panelClass:"error"})};
this.didSave=function(){a.snackBar.open("Hotlist saved",void 0,{duration:2500});a.events.hotlistChanged.next()};this.isChanged=function(){var b,c=(b=a.latestHotlist)!=null?b:{};return!Pj(c,a.localEdits)};this.hasNoChanges=function(){return!a.isChanged()};this.save=function(){a.fridge.save(a.localEdits).subscribe({next:a.didSave,error:a.gotErr})};this.revert=function(){a.resetEdits(a.latestHotlist)};this.hotlist$.pipe(gg(this.destroyed$)).subscribe(function(b){a.gotHotlist(b)});this.subscriptions.add(mS(this.checkBeforeExit,
this.isChanged,!1))};Y(P0,Z);P0.\u0275dir=Z.\u0275dir;P0.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;(b=a.hotlistName)==null||b.nativeElement.focus()})};P0.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};P0.prototype.resetEdits=function(a){var b;this.localEdits=(b=Qj(a))!=null?b:{}};P0.\u0275fac=function(a){return new (a||P0)};
P0.\u0275cmp=B({type:P0,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&Wg(C5c,5);if(a&2){var c;$g(c=ah())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[kg,Uu],decls:10,vars:5,consts:[["hotlistName",""],["name","hotlist",1,"flex-kids-y"],["for","hotlist-name",1,"required"],["type","text","id","hotlist-name","name","name","required","","aria-required","true","autocomplete","off",3,"ngModelChange","disabled","ngModel"],["for",
"hotlist-description",1,"margin-top"],["id","hotlist-description","name","description",3,"ngModelChange","disabled","ngModel"],[1,"margin-top","flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","submit",1,"medium",3,"click","disabled","matTooltip"],["mat-button","","type","button",1,"medium",3,"click","disabled","matTooltip"],[3,"hotlistId"]],template:function(a,b){if(a&1){var c=r();I(0,"form",1)(1,"label",2);Q(2,"Name");J();I(3,"input",3,0);gh("ngModelChange",function(d){t(c);
fh(b.localEdits.name,d)||(b.localEdits.name=d);return v(d)});J();I(5,"label",4);Q(6,"Description");J();I(7,"textarea",5);gh("ngModelChange",function(d){t(c);fh(b.localEdits.description,d)||(b.localEdits.description=d);return v(d)});Q(8,"  ");J();E(9,Eyb,7,7,"div",6);J()}a&2&&(z(3),D("disabled",b.isReadOnly||b.isArchived),eh("ngModel",b.localEdits.name),z(4),D("disabled",b.isReadOnly||b.isArchived),eh("ngModel",b.localEdits.description),z(2),F(b.isReadOnly?-1:9))},dependencies:[wy,Li,oy,py,Gy,vy,ty,
PA,Tx,YA,cB,M0,Qv],styles:["[_nghost-%COMP%]{display:block;max-width:600px;padding:16px}label[_ngcontent-%COMP%]{font-weight:bold;line-height:2em}textarea[_ngcontent-%COMP%]{min-height:150px;resize:vertical}input.ng-invalid[_ngcontent-%COMP%], input.ng-invalid.ng-touched[_ngcontent-%COMP%]:not(.mat-mdc-input-element){border:1px solid;border-color:#ea4335;border-color:var(--bad)}/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});var Q0=function(){Z.apply(this,arguments);var a=this;this.hotlists=n(JD);this.acls=n(HE);this.id$=new ag(1);this.hotlist$=this.id$.pipe(fg(function(b){return a.hotlists.watch(b)}))};Y(Q0,Z);Q0.\u0275dir=Z.\u0275dir;Q0.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};Q0.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};Q0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Q0)))(b||Q0)}}();
Q0.\u0275cmp=B({type:Q0,selectors:[["b-edit-hotlist-header"]],inputs:{id:[0,"hotlistId","id"]},standalone:!1,features:[kg,Uu],decls:9,vars:8,consts:[[1,"flex-kids-x","align-items-center","gap-s","padded-x"],[1,"muted"],[1,"color-bad-text"]],template:function(a,b){a&1&&(I(0,"header",0)(1,"h2")(2,"span",1),Q(3),J(),E(4,Fyb,1,1),S(5,"async"),J(),E(6,Gyb,2,0,"strong",2),S(7,"async"),E(8,Hyb,1,0,"b-spinner"),J());if(a&2){var c,d;z(3);R(" Hotlist ",b.id,": ");z();F((c=T(5,4,b.hotlist$))?4:-1,c);z(2);F(((d=
T(7,6,b.hotlist$))==null?0:d.archived)?6:-1);z(2);F(b.isThinking(b.id)?8:-1)}},dependencies:[ON,Qv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var R0=function(){Z.apply(this,arguments);this.activeSession=n(Es);this.ROUTES=Fq;this.id$=new ag(1);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};Y(R0,Z);R0.\u0275dir=Z.\u0275dir;R0.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};R0.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};R0.\u0275fac=function(){var a;return function(b){return(a||(a=fe(R0)))(b||R0)}}();
R0.\u0275cmp=B({type:R0,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:[0,"hotlistId","id"]},standalone:!1,features:[kg,Uu],decls:6,vars:2,consts:[[1,"button-bar","border-bottom","padded-s"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["mat-button","","matTooltip","View the issues tagged with this hotlist",1,"medium","no-visited-no-active",3,"href"],[3,"hotlistId"]],template:function(a,b){a&1&&(I(0,"section",
0)(1,"b-button",1),M("onAction",function(){return b.onPressBack()}),K(2,"b-icon",2),J(),I(3,"a",3),Q(4," View Issues "),J(),E(5,Iyb,2,3,"hotlist-add-issue-btn",4),J());a&2&&(z(3),D("href",b.ROUTES.viewHotlist.makeHref(b.id),uf),z(2),F(b.enableBulkEditUi?5:-1))},dependencies:[PA,Tx,YA,cB,aH,CL,L0,Qv],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var D5c=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),S0=function(){this.routeParams=n(bL);this.pageTitle=n(PY);this.permissions=n(iG);this.hotlists=n(JD);this.window=n(jK);this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watch(this.resourceId).pipe(y(function(a){return a==null?void 0:a.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(y(function(a){var b;return(b=a.status)!=null?
b:-1}),y(function(a){var b;return(b=D5c.get(a))!=null?b:"unknown error"}),eg(void 0));this.tabIndex=0};S0.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};S0.\u0275fac=function(a){return new (a||S0)};
S0.\u0275cmp=B({type:S0,selectors:[["edit-hotlist"]],standalone:!1,decls:4,vars:6,consts:[[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(E(0,Kyb,12,14),S(1,"async"),E(2,Lyb,6,1),S(3,"async"));if(a&2){var c;F(T(1,2,b.hotlistErrorMsg$)===void 0?0:-1);z(2);F((c=T(3,4,b.hotlistErrorMsg$))?2:-1,c)}},dependencies:[dO,ZN,$N,NH,O0,P0,
Q0,R0,Qv],encapsulation:2});var T0=function(){};T0.\u0275fac=function(a){return new (a||T0)};T0.\u0275cmp=B({type:T0,selectors:[["b-error-banner"]],inputs:{error:"error"},standalone:!1,decls:1,vars:1,consts:[["messageType","error"]],template:function(a,b){a&1&&E(0,Myb,3,1,"b-callout",0);a&2&&F(b.error?0:-1)},dependencies:[lP,mP],encapsulation:2});var U0=function(){};U0.\u0275fac=function(a){return new (a||U0)};U0.\u0275mod=Jf({type:U0});U0.\u0275inj=Tc({imports:[ZB,kR]});var V0=function(){};V0.\u0275fac=function(a){return new (a||V0)};V0.\u0275mod=Jf({type:V0});V0.\u0275inj=Tc({imports:[ZB,Ly,$B,cC,bH,AQ,fO,EL,QN,U0,QQ,XH]});var W0=function(){};W0.\u0275fac=function(a){return new (a||W0)};W0.\u0275mod=Jf({type:W0});W0.\u0275inj=Tc({imports:[DY,bH,cW,ZB,HQ,d_,V0,H_,EL,$B,$K,cC,I_,gW,A_]});var X0=function(){Z.call(this);this.element=n(ff);this.bLocation=n(cI);this.hotkeys=n(nH);this.cdr=n(NA,{self:!0});this.focusedIndex=0;this.convertUserToString=Dk;this.hotlists=[];this.registerKeys()};Y(X0,Z);X0.\u0275dir=Z.\u0275dir;g=X0.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
g.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.registerKeys=function(){var a=this,b=oH(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.hotlists[a].name};g.editHotlist=function(a){this.bLocation.path(Fq.editHotlist.makeHref(a.hotlistId))};
X0.\u0275fac=function(a){return new (a||X0)};
X0.\u0275cmp=B({type:X0,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[hh([NA]),kg],decls:27,vars:0,consts:[[1,"pop-grid","bv2-resource-list"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["tabindex","0",1,"bv2-resource-list-row",3,"grid-focus"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","hotlist-name","clickable"],["tabindex","-1",1,
"grid-link",3,"click","href"],[1,"bv2-resource-list-cell","hotlist-description","clickable"],[1,"bv2-resource-list-cell","resource-admins","clickable"],[1,"bv2-resource-list-cell","hotlist-id","clickable"]],template:function(a,b){a&1&&(I(0,"table",0)(1,"thead")(2,"tr",1),K(3,"th",2),I(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," Hotlist name "),J()()()(),I(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),J()()()(),I(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),Q(18," Admins "),
J()()()(),I(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),Q(23," ID "),J()()()()()(),I(24,"tbody"),Dg(25,Pyb,12,8,"tr",6,Cg),J()());a&2&&(z(25),Eg(b.hotlists))},encapsulation:2});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=Jf({type:Y0});Y0.\u0275inj=Tc({imports:[ZB]});var Z0=function(){this.bLocation=n(cI);this.butterBar=n(iK)},E5c=function(a,b){var c=a.bLocation.search()[b];return c!=null?Array.isArray(c)?(a.butterBar.showWarning("Given multiple values for parameter "+b+"; using the first."),c[0]):typeof c==="boolean"?"":c:null};Z0.prototype.getCount=function(){var a=E5c(this,"c");return a?Vj(a):null};var F5c=function(a){return(a=E5c(a,"p"))?Vj(a):null};Z0.prototype.getQuery=function(){return E5c(this,"q")};
Z0.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Ur).filter(Tk):null};Z0.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(tlb).filter(Tk):null};
var a1=function(a,b,c){c=c===void 0?!1:c;var d=function(e,f){c?a.bLocation.search(e,f,!0):a.bLocation.search(e,f)};b.displayColumns!==void 0&&d("d",b.displayColumns==null?null:(b.displayColumns||[]).map(function(e){return G5c(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return G5c(e.fieldId)+":"+f}));b.page!==void 0&&d("p",b.page);b.resultsPerPage!==void 0&&d("c",b.resultsPerPage);b.query!==void 0&&d("q",
b.query)},G5c=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};Z0.\u0275fac=function(a){return new (a||Z0)};Z0.\u0275prov=Sc({token:Z0,factory:Z0.\u0275fac,providedIn:"root"});var b1=function(){this.urlPreferences=n(Z0);this.userPreferencesManager=n(OG);this.customFieldApi=n(TD)};b1.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:Yi({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
b1.prototype.getParameters=function(a,b){var c=this,d=b?function(){return H5c(b)}:function(){return I5c(c)},e=b?function(){return J5c(b)}:function(){return K5c(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return c1(k)}).then(null,d).then(function(k){return c1(k)}).then(null,Zfc(a.displayColumns)).then(function(k){return L5c(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return c1(k)}).then(null,e).then(function(k){return c1(k)}).then(null,
Zfc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return c1(k)}).then(null,function(){return M5c(c)}).then(function(k){return c1(k)}).then(null,Zfc(a.resultsPerPage)),h=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return c1(k)}).then(null,function(){return N5c(b,function(k){return k.query})}).then(null,Zfc(a.query));a=F5c(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:a}};
var c1=function(a){return a==null?Promise.reject(null):a},H5c=function(a){return N5c(a,function(b){return b.displayColumn}).then(function(b){return O5c(b)})},J5c=function(a){return N5c(a,function(b){return b.sortOrder}).then(function(b){return P5c(b)})},K5c=function(a){return Ge(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return c1(b)}).then(function(b){return P5c(b)})},I5c=function(a){return Ge(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return c1(b)}).then(function(b){return O5c(b)})},
M5c=function(a){return Ge(a.userPreferencesManager.preferences$.pipe(y(function(b){var c;return(c=b.resultsPerPage)!=null?c:null}))).then(function(b){return c1(b)})},N5c=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},O5c=function(a){if(!a||!a.length)return null;a=ik(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Tr({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},P5c=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new Wr(new Tr(b.column),b.order):new Wr(new Tr(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},L5c=function(a,b){function c(){for(var k=l(b),q=k.next();!q.done;q=k.next())if(q=q.value,q.isCustomField()&&!q.customFieldName){var u=d[q.customFieldId];q.customFieldName=u?u:"Custom field "+q.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=l(b),h=f.next();!h.done;h=f.next())h=h.value,h.customFieldId&&h.isCustomField()&&(h.customFieldName?d[h.customFieldId]=h.customFieldName:e.push(a.customFieldApi.get(h.customFieldId).then(function(k){d[k.customFieldId]=k.name})));return Promise.all(e).then(c,c)};b1.\u0275fac=function(a){return new (a||b1)};b1.\u0275prov=Sc({token:b1,factory:b1.\u0275fac,providedIn:"root"});var d1=function(){Z.call(this);var a=this;this.cdr=n(NA);this.bLocation=n(cI);this.$log=n(MA);this.butterBar=n(iK);this.analytics=n(CF);this.issuePagination=n(OY);this.gridPreferencesFetcher=n(b1);this.paths=n(EN);this.errorHandler=n(DK);this.domSafe=n(rL);this.timeout=n(fE);this.hotkeys=n(nH);this.appSearchState=n(mX);this.componentFridge=n(jD);this.issueFullFridge=n(EF);this.activeSession=n(Es);this.window=n(jK);this.ANALYTICS_CATEGORY="panel";this.initialSortPreferences=this.initialIssueColumns=
this.displayColumns=null;this.currentUserEmail=this.activeSession.getUserEmail();this.resource=this.searchResults=null;this.isLoading=!1;this.page=1;this.issueColumnsInternal=[];this.sortPreferences=[];this.last=this.first=this.isDashboardEditable=!1;this.focusedRowIndexInternal=null;this.focusedRowIndexChange=new LA;this.resultsLoaded=new LA;this.selectionChange=new LA;this.isColumnSaveEnabled=!1;this.cachedSort=null;this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue in the current panel",
onPress:function(){var b;(b=a.issuesGrid)==null||vvb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||wvb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||o5c(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||q5c(b)}},{keys:[vp("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||r5c(b,!0)}},{keys:[vp("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||r5c(b,!1)}},{keys:[wp("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[wp("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||l5c(b)}},{keys:["o",
"ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(b){var c=a.window.document.activeElement;if(b===1&&(c==null?void 0:c.tagName)==="A")if(c.href)b=a.paths.getBaseUrl(),c.href.startsWith(b)?a.bLocation.setUrl(c.href.slice(b.length)):a.domSafe.openInNewTab(c.href);else{var d;(d=a.issuesGrid)==null||H0(d)}else{var e;(e=a.issuesGrid)==null||H0(e)}}}];this.destroyed$.subscribe(function(){var b;(b=a.unregisterHotkeys)==null||b.call(a)})};Y(d1,Z);d1.\u0275dir=Z.\u0275dir;
d1.prototype.columnsChange=function(a){this.issueColumns=a};d1.prototype.ngOnInit=function(){this.getIssues();Q5c(this)};var Q5c=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=oH(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},lzb=function(a,b){a.issuesGrid=b;p5c(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:(c=a.issuesGrid)==null?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};
g=d1.prototype;g.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Ur(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Wr(d,b=="ASC"?"ASCENDING":"DESCENDING");$a(this.sortPreferences,function(f){return Pj(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type=="CUSTOM_FIELD"?String(a.fieldId.customFieldId):Tj(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};Pj(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(p(b),p(lrb(a)));this.initialIssueColumns=Qj(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&c.target.tagName==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=Hq(a),c&&Pn(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};g.goToPage=function(a){this.page=a;this.getIssues()};g.refreshResults=function(){f1c(this.issuePagination);this.getIssues()};g.exportCsv=function(){sL(this.domSafe,this.getCsvUrl())};g.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};
g.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:b.resource.query!=null?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;e.trackerIds=b.appSearchState.currentTrackerScope;return c1c(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return Yi({searchResultsPage:a,displayColumns:d.displayColumns}).then(function(e){var f=e.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.searchResults&&b.subscribeToIssueChanges(b.searchResults.issues);b.sortPreferences=f.params.sortColumns||[];b.initialSortPreferences||(b.initialSortPreferences=Qj(b.sortPreferences));d.displayColumns.then(function(h){b.initColumns(h,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);
b.timeout.schedule(function(){var h=b.issuePagination.getFocusedIssue();h!=-1&&(b.focusedRowIndex=h-f.startIndex)})})};
g.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new ke;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(Ve(Tk),gg(this.destroyed$)).subscribe(function(d){var e;return w(function(f){if(f.nextAddress==1)return b.searchResults?x(f,Ge(b.componentFridge.watch(d.snapshot[0].componentId,{trustUncertainMemory:!0})),3):f.jumpTo(2);if(f.nextAddress!=2){e=f.yieldResult;
if(!e||!b.searchResults)return f.return();Y0c(b.searchResults,[{issue:d,component:e}]);b.searchResults=b.searchResults.clone()}b.cdr.detectChanges();ze(f)})}))};g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:R5c,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=mrb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):S5c).length)).map(function(c){return new Tr(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;Mq(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Qj(a.issueColumns);a.initialSortPreferences=Qj(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(p(this.initialIssueColumns||[]));this.initialSortPreferences&&!Pj(this.initialSortPreferences,this.sortPreferences)&&(Hba(this.sortPreferences),yu(Kba,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Pj(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Pj(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};g.getMetaColumns=function(){return S5c};
g.getSearchParams=function(a){a=Qj(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.getUrl();return a};
ea.Object.defineProperties(d1.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Pj(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification"))}},focusedRowIndex:{configurable:!0,enumerable:!0,set:function(a){var b=this.isFocused;this.focusedRowIndexInternal!==a&&(this.focusedRowIndexInternal=a,this.focusedRowIndexChange.emit(a));this.isFocused!==b&&Q5c(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});var S5c=[I0,J0,K0],R5c=f4c.map(Ur).filter(Tk);d1.\u0275fac=function(a){return new (a||d1)};
d1.\u0275cmp=B({type:d1,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&Wg(G0,5);if(a&2){var c;$g(c=ah())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},standalone:!1,features:[kg],decls:0,vars:0,template:function(){},encapsulation:2});var e1=function(){this.dialog=n(AK);this.appEvents=n(nD);this.last=this.first=!1};e1.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Oi("Are you sure you want to remove this item? It will be removed from the bookmark group permanently."),onConfirm:function(){a.appEvents.dashboardPanels.remove.next(a.panelId)}})};e1.\u0275fac=function(a){return new (a||e1)};
e1.\u0275cmp=B({type:e1,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},standalone:!1,decls:6,vars:1,consts:[["menu",""],["type","button","mat-icon-button","","aria-label","Customize list view",1,"small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem"],["type",
"button","mat-menu-item","",1,"bv2-panel-move-down-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",
3,"click"]],template:function(a){a&1&&(I(0,"div")(1,"button",1),K(2,"mat-icon",2),J(),I(3,"mat-menu",null,0),C(5,Uyb,6,4,"ng-template",3),J()());a&2&&(a=L(4),z(),D("matMenuTriggerFor",a))},dependencies:[aB,UG,XG,VG,WG,YG,PA,Ux],encapsulation:2});var f1=function(){};f1.\u0275fac=function(a){return new (a||f1)};f1.\u0275mod=Jf({type:f1});f1.\u0275inj=Tc({imports:[ZB,LH,$B]});var g1=function(){};g1.\u0275fac=function(a){return new (a||g1)};g1.\u0275mod=Jf({type:g1});g1.\u0275inj=Tc({imports:[ZB,WJ]});var h1=function(){};h1.\u0275fac=function(a){return new (a||h1)};h1.\u0275mod=Jf({type:h1});h1.\u0275inj=Tc({imports:[ZB,g1]});var i1=function(){};i1.\u0275fac=function(a){return new (a||i1)};i1.\u0275mod=Jf({type:i1});i1.\u0275inj=Tc({imports:[ZB,WJ,h1]});var j1=function(){};j1.\u0275fac=function(a){return new (a||j1)};j1.\u0275mod=Jf({type:j1});j1.\u0275inj=Tc({imports:[ZB,g1]});var T5c=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new LA};T5c.\u0275fac=function(a){return new (a||T5c)};
T5c.\u0275cmp=B({type:T5c,selectors:[["b-insights-graph-menu"]],inputs:{availablePanels:"availablePanels",iconOnly:"iconOnly",buttonClassname:"buttonClassname"},outputs:{openSidebar:"openSidebar"},standalone:!1,decls:14,vars:5,consts:[["type","button","mat-button","","matTooltip","Insight Graph menu",1,"main-button","gmat-mdc-button","square-right",3,"click","ngClass","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 18 22"],["fill","none","fill-rule","evenodd"],"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-opacity;.4;d;M17.5 5.41l-8-3.91m0 7.82l-8-3.91".split(";"),
"stroke;currentColor;stroke-opacity;.4;d;M9.5 9.32v10".split(";"),"stroke;currentColor;stroke-linecap;round;stroke-linejoin;round;stroke-width;1.5;d;M9.5 1.5l-8 3.91v10.01l8 3.91 8-3.91V5.41l-8 3.91".split(";"),"cx 1.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 5.41 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 9.32 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 1.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 17.5 cy 15.43 r 1.5 fill currentColor fill-rule nonzero".split(" "),
"cx 9.5 cy 19.33 r 1.5 fill currentColor fill-rule nonzero".split(" "),"cx 9.5 cy 1.5 r 1.5 fill currentColor fill-rule nonzero".split(" ")],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){b.openSidebar.emit({panel:void 0})}),Vd(),I(1,"svg",1)(2,"g",2),K(3,"path",3)(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9)(10,"circle",10)(11,"circle",11)(12,"circle",12),J()(),E(13,Vyb,2,0,"ng-container"),J());a&2&&(wg("icon-only-mode",b.iconOnly),D("ngClass",
b.buttonClassname)("disabled",b.availablePanels.size===0),z(13),F(b.iconOnly?-1:13))},dependencies:[Mv,PA,Tx,YA,cB],styles:["[_nghost-%COMP%]{white-space:nowrap}svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;margin-right:3px}.gmat-mdc-button[_ngcontent-%COMP%]{min-width:unset;height:32px;line-height:32px}.main-button[_ngcontent-%COMP%]{padding-right:4px}.main-button[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}.gmat-mdc-button.icon-only-mode[_ngcontent-%COMP%]{padding:0 2px}.gmat-mdc-button.icon-only-mode.main-button[_ngcontent-%COMP%]{padding:0 4px}.gmat-mdc-button.icon-only-mode[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:0;height:16px;width:16px}.gmat-mdc-button.icon-only-mode.mat-mdc-button[_ngcontent-%COMP%]:not([disabled]){color:#5f6368;color:var(--icon)}.gmat-mdc-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).small{padding:0 2px}.gmat-mdc-button.icon-only-mode[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).small.main-button{padding:0 4px}"],
changeDetection:0});var k1=function(){this.issueInsightsSidebarService=n(z0);this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};k1.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};k1.\u0275fac=function(a){return new (a||k1)};
k1.\u0275cmp=B({type:k1,selectors:[["insights-graph-menu-smart"]],inputs:{iconOnly:"iconOnly",buttonClassname:"buttonClassname"},standalone:!1,decls:2,vars:3,consts:[[3,"availablePanels","iconOnly","buttonClassname"],[3,"openSidebar","availablePanels","iconOnly","buttonClassname"]],template:function(a,b){a&1&&(E(0,Xyb,2,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.availablePanels$))?0:-1,c)}},dependencies:[T5c,Qv],encapsulation:2,changeDetection:0});var l1=function(){};l1.\u0275fac=function(a){return new (a||l1)};l1.\u0275mod=Jf({type:l1});l1.\u0275inj=Tc({imports:[ZB,$B,LH,cC]});var m1=function(){};m1.\u0275fac=function(a){return new (a||m1)};m1.\u0275mod=Jf({type:m1});m1.\u0275inj=Tc({imports:[Yv,Ly,kV]});var n1=function(){};n1.\u0275fac=function(a){return new (a||n1)};n1.\u0275mod=Jf({type:n1});n1.\u0275inj=Tc({imports:[ZB,cC,lW,KZ,m1,WJ]});var o1=function(){};o1.\u0275fac=function(a){return new (a||o1)};o1.\u0275mod=Jf({type:o1});o1.\u0275inj=Tc({imports:[ZB,cC,lW,WJ]});var p1=function(){};p1.\u0275fac=function(a){return new (a||p1)};p1.\u0275mod=Jf({type:p1});p1.\u0275inj=Tc({imports:[ZB,bV,UL,My,yQ]});var q1=function(){};q1.\u0275fac=function(a){return new (a||q1)};q1.\u0275mod=Jf({type:q1});q1.\u0275inj=Tc({imports:[ZB,cC,$B,WJ,j1,dM,h1,p1,yx,FL]});var r1=function(){};r1.\u0275fac=function(a){return new (a||r1)};r1.\u0275mod=Jf({type:r1});r1.\u0275inj=Tc({imports:[bH,kR,ZB,Ly,$B,$K,gO,AQ,cC,KZ]});var U5c={},V5c=(U5c.COMFORTABLE=330,U5c.COZY=300,U5c.COMPACT=270,U5c),s1=function(){Z.call(this);var a=this;this.userPreferencesManager=n(OG);this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(y(function(b){var c;return(c=b.themePreferences)==null?void 0:c.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(y(function(b){var c;return(c=b.layoutPreferences)==null?void 0:c.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new bg;this.currentSidebarWidth$=Je([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(eg(void 0))]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return c!=null?c:d!=null?d:V5c[b!=null?b:"COMFORTABLE"]}));Je([this.rightSidebarWidthChanged$.pipe(Xf()),this.sidebarWidthPreference$]).pipe(Ve(function(b){var c=l(b);b=c.next().value;return c.next().value!==b}),fg(function(b){var c=l(b);b=c.next().value;c.next();return ytc(a.userPreferencesManager,
{rightSidebarWidth:b})}),gg(this.destroyed$)).subscribe()};Y(s1,Z);s1.\u0275dir=Z.\u0275dir;s1.prototype.ngOnInit=function(){};s1.\u0275fac=function(a){return new (a||s1)};
s1.\u0275cmp=B({type:s1,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,features:[kg],decls:7,vars:5,consts:[[1,"a11y-only"],["direction","rtl",3,"widthChanged","minWidth","size"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"]],template:function(a,b){a&1&&(I(0,"h3",0),Q(1,"Issue metadata"),J(),I(2,"b-resizable-sidebar",1),S(3,"async"),M("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),I(4,"div",2)(5,"div",3),E(6,Yyb,1,1,"edit-issue-metadata",
4),J()()());if(a&2){z(2);var c;D("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",(c=T(3,3,b.currentSidebarWidth$))!=null?c:0);z(4);F(b.issueId?6:-1)}},dependencies:[PH,A0,Qv],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var t1=function(){};t1.\u0275fac=function(a){return new (a||t1)};t1.\u0275mod=Jf({type:t1});t1.\u0275inj=Tc({imports:[VB,NM,ZB,TU,XL,n1,o1,lW,qH,WJ,l1,TQ,q1,iN,cC,XH,r1,mV,GQ,XM,uW,eW,pW,oW]});var u1=function(){};u1.\u0275fac=function(a){return new (a||u1)};u1.\u0275mod=Jf({type:u1});u1.\u0275inj=Tc({imports:[$B,cC,Ly,ZM,aN,dz,QM,XM,ZB,UQ,FL,VB,QN,t1,BQ,yO,SQ]});var v1=function(){};v1.prototype.getValue=function(){return this.row[this.column.name]||""};v1.prototype.isCustomField=function(){return this.column.isCustomField};v1.prototype.getCustomFieldValue=function(){var a;if(!(a=this.row.customFieldValueMap[this.column.name])){a=this.row;var b=this.column.name;a.customFieldMap&&b?(b=b.toLowerCase(),a=(b=a.customFieldNameToIdMap[b])?a.customFieldValueMap[String(b)]||null:null):a=null}if(a)return Pj(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
v1.\u0275fac=function(a){return new (a||v1)};v1.\u0275cmp=B({type:v1,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},standalone:!1,decls:2,vars:2,consts:[[3,"customFieldValue"]],template:function(a,b){a&1&&(E(0,Zyb,2,2,"span"),E(1,$yb,1,1,"b-custom-field-value-display",0));a&2&&(F(b.isCustomField()?-1:0),z(),F(b.isCustomField()?1:-1))},dependencies:[q_],encapsulation:2,changeDetection:0});var w1=function(){};w1.\u0275fac=function(a){return new (a||w1)};w1.\u0275mod=Jf({type:w1});w1.\u0275inj=Tc({imports:[ZB,cC,r_]});Qla(c0,[Pv,h0,v1],[]);var x1=function(){};x1.\u0275fac=function(a){return new (a||x1)};x1.\u0275mod=Jf({type:x1});x1.\u0275inj=Tc({imports:[ZB,WJ]});var y1=function(){};y1.\u0275fac=function(a){return new (a||y1)};y1.\u0275mod=Jf({type:y1});y1.\u0275inj=Tc({imports:[ZB,x1,dM]});var z1=function(){};z1.\u0275fac=function(a){return new (a||z1)};z1.\u0275mod=Jf({type:z1});z1.\u0275inj=Tc({imports:[k0,ZB,LH,RL,cC,$B,$K,Nx,mY,EL,w1,g1,i1,dM,j1,VB,XJ,jV,y1,eR,HQ,rY,p_,WJ,TQ,u1,LM,aR,RQ]});var A1=function(){this.hotlistsApi=n(ED);this.butterBar=n(iK);this.appEvents=n(nD)};
A1.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,u=b[c],A=b[d].position;Qba(b,c,d);f==null||f();Mq(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,u.issueId,A).then(function(){for(var G=k,H=l(b),N=H.next();!N.done;N=H.next())N.value.position=G,G+=q?-1:1;f==null||f();Mq(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
A1.\u0275fac=function(a){return new (a||A1)};A1.\u0275prov=Sc({token:A1,factory:A1.\u0275fac,providedIn:"root"});var B1=function(){this.pageChange=new LA;this.resultsPerPageChange=new LA;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};B1.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};B1.prototype.prevPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page-1})};
ea.Object.defineProperties(B1.prototype,{menuItems:{configurable:!0,enumerable:!0,get:function(){var a=this;return this.resultsPerPageOptions.map(function(b){return{type:"select",label:String(b),action:function(){a.resultsPerPageChange.emit({option:b})},selected:!!a.searchResults&&a.searchResults.params.resultsPerPage===b,disabled:!!a.searchResults&&a.searchResults.params.resultsPerPage===b}})}}});B1.\u0275fac=function(a){return new (a||B1)};
B1.\u0275cmp=B({type:B1,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},standalone:!1,decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live","polite","role","alert",1,"bv2-appbar-pagenums"],["type","button","mat-icon-button","","focusBack","","color",
"primary","mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-left",1,"large"],["type","button","mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-right",1,"large"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,azb,1,1,"b-actions-menu",1),E(2,bzb,6,
3,"span",2),I(3,"button",3),M("click",function(){return b.prevPage()})("keydown.enter",function(c){b.prevPage();return c.stopPropagation()}),K(4,"mat-icon",4),J(),I(5,"button",5),M("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),K(6,"mat-icon",6),J()());a&2&&(z(),F(b.searchResults&&b.searchResults.issues.length>0&&!b.resultsPerPageFixed?1:-1),z(),F(b.searchResults&&b.searchResults.issues.length>0?2:-1),z(),D("disabled",!(b.searchResults==
null?0:b.searchResults.hasPreviousPage())),z(2),D("disabled",!(b.searchResults==null?0:b.searchResults.hasNextPage())))},dependencies:[aB,PA,Ux,KS,vS],encapsulation:2});var C1=function(){};C1.\u0275fac=function(a){return new (a||C1)};C1.\u0275mod=Jf({type:C1});C1.\u0275inj=Tc({imports:[ZB,$B,QT,qY]});var D1=function(){d1.apply(this,arguments);this.hotlists=n(A1);this.hotlistApi=n(ED);this.appEvents=n(nD);this.ROUTES=Fq;this.resource=null};Y(D1,d1);D1.\u0275dir=d1.\u0275dir;g=D1.prototype;g.ngOnInit=function(){d1.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?d1.prototype.setSort.call(this,a,b,!1):d1.prototype.setSort.call(this,a,b)};
g.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
g.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});Mq(a.butterBar,'Saved changes to hotlist "'+b.name+'".');a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});this.butterBar.showWarning("Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},d1.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};g.getMetaColumns=function(a){a=a.params.sortColumns||[];return a.length==0||a.length==1&&a[0].fieldId.type=="POSITION"?W5c:X5c};g.getSearchParams=function(a){a=d1.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
g.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};D1.\u0275fac=function(){var a;return function(b){return(a||(a=fe(D1)))(b||D1)}}();
D1.\u0275cmp=B({type:D1,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[hh([NA]),kg],decls:9,vars:8,consts:[[1,"bv2-panel","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-hotlist-title-text"],[1,"bv2-view-hotlist-save-form"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],["tabindex","0"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences have changed"],["mat-flat-button","","type","button",
"color","primary","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["mat-stroked-button","","type","button","color","primary","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[1,"bv2-view-loading"],["tabindex","0",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","onRowDragDrop","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving",
"sort"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2),E(3,czb,2,0,"div"),E(4,dzb,2,0,"div"),E(5,gzb,8,5,"div"),J(),E(6,hzb,5,0,"div",3),I(7,"b-pagination",4),M("pageChange",function(c){return b.goToPage(c.page)}),J()(),E(8,nzb,4,3,"div"),J());a&2&&(ng("aria-busy",b.isLoading),z(3),F(b.resource||b.isLoading?-1:3),z(),F(!b.resource&&b.isLoading?4:-1),z(),F(b.resource?5:-1),z(),F(b.hasParamChanges()?6:-1),z(),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),z(),F(b.resource?
8:-1))},dependencies:[G0,PA,Tx,YA,cB,B1,e1,ON],encapsulation:2});var X5c=[I0,J0,K0,t5c],W5c=[I0,s5c,J0,K0,t5c],E1=function(){};E1.\u0275fac=function(a){return new (a||E1)};E1.\u0275mod=Jf({type:E1});E1.\u0275inj=Tc({imports:[ZB,z1,$B,cC,C1,f1,QN]});var F1=function(){d1.apply(this,arguments);this.savedSearchApi=n(MD);this.resource=null};Y(F1,d1);F1.\u0275dir=d1.\u0275dir;F1.prototype.ngOnInit=function(){d1.prototype.ngOnInit.call(this)};F1.prototype.loadResource=function(){var a=this,b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};F1.prototype.saveResource=function(){return Promise.resolve()};
F1.\u0275fac=function(){var a;return function(b){return(a||(a=fe(F1)))(b||F1)}}();
F1.\u0275cmp=B({type:F1,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},standalone:!1,features:[hh([NA]),kg],decls:8,vars:7,consts:[[1,"bv2-panel","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],["tabindex","0"],[3,"pageChange","searchResults","resultsPerPageFixed"],[1,"bv2-panel-controls",3,"panelId"],[3,"href"],[3,"matTooltip"],["matTooltip","Display preferences or search query have changed"],[1,"bv2-view-loading"],
["tabindex","0","role","region",1,"bv2-view-loading"],[1,"bv2-grid-container"],[3,"large"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"div",2),E(3,ozb,2,0,"div"),E(4,pzb,2,0,"div"),E(5,szb,8,5,"div",3),J(),I(6,"b-pagination",4),M("pageChange",function(c){return b.goToPage(c.page)}),J()(),E(7,xzb,4,3,"div"),J());a&
2&&(ng("aria-busy",b.isLoading),z(3),F(b.resource||b.isLoading?-1:3),z(),F(!b.resource&&b.isLoading?4:-1),z(),F(b.resource?5:-1),z(),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),z(),F(b.resource?7:-1))},dependencies:[G0,YA,cB,B1,e1,ON],encapsulation:2});var G1=function(){};G1.\u0275fac=function(a){return new (a||G1)};G1.\u0275mod=Jf({type:G1});G1.\u0275inj=Tc({imports:[ZB,z1,cC,C1,f1,QN]});var H1=function(){this.label="Team"};H1.prototype.ngOnInit=function(){};H1.\u0275fac=function(a){return new (a||H1)};
H1.\u0275cmp=B({type:H1,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},standalone:!1,decls:4,vars:1,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"span",1),Dg(2,yzb,3,4,"span",2,Cg),J()());a&2&&(ng("aria-label",b.label),z(2),Eg(b.teamPath))},dependencies:[FA],encapsulation:2});var I1=function(){};I1.\u0275fac=function(a){return new (a||I1)};I1.\u0275mod=Jf({type:I1});I1.\u0275inj=Tc({imports:[ZB,JM]});var Y5c=["form"],Z5c=["numberInput"],$5c=/^\d+\.?\d*$/,a6c={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},J1=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new LA;this.displayUnits=0;this.TimeUnit=a6c};
J1.prototype.ngOnInit=function(){var a=this;this.durationDays&&(this.displayUnits=this.durationDays%365===0?1:0,this.displayNumber=this.displayUnits===1?this.durationDays/365:this.durationDays);this.formSubscription=this.form.valueChanges.subscribe(function(){var b=a.form.form.getRawValue();a.displayNumber=b.numbers;a.displayUnits=b.unit;a.onValueChange()})};J1.prototype.ngAfterViewInit=function(){};
J1.prototype.onValueChange=function(){if(this.displayNumber!==void 0){switch(this.displayUnits){case 1:var a=this.displayNumber*365;break;default:a=this.displayNumber}a=Math.ceil(a)}else a=void 0;a!==this.durationDays&&(this.durationDays=a,this.durationDaysChange.emit(this.durationDays))};J1.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};J1.\u0275fac=function(a){return new (a||J1)};
J1.\u0275cmp=B({type:J1,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(Wg(Y5c,7),Wg(Z5c,7));if(a&2){var c;$g(c=ah())&&(b.form=c.first);$g(c=ah())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},standalone:!1,decls:14,vars:7,consts:[["form","ngForm"],["numberInput",""],[1,"duration-picker-form"],"color primary appearance outline subscriptSizing dynamic".split(" "),["matInput",
"","type","number","step","1","min","0","name","numbers",3,"keydown","paste","ngModel","disabled"],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){if(a&1){var c=r();I(0,"form",null,0)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label");Q(5," Custom Duration ");J();I(6,"input",4,1);M("keydown",function(d){t(c);switch(d.key){case "-":case "e":case "E":d.preventDefault()}return v()})("paste",function(d){t(c);var e=d.clipboardData.getData("Text");$5c.test(e)||d.preventDefault();
return v()});J()();I(8,"mat-form-field",3)(9,"mat-select",5)(10,"mat-option",6);Q(11,"days");J();I(12,"mat-option",6);Q(13,"year(s)");J()()()()()}a&2&&(z(6),D("ngModel",b.displayNumber)("disabled",b.disabled),ng("aria-label",b.ariaLabel),z(3),D("ngModel",b.displayUnits)("disabled",b.disabled),z(),D("value",b.TimeUnit.DAYS),z(2),D("value",b.TimeUnit.YEARS))},dependencies:[wy,Li,xy,oy,py,Fy,vy,ty,$M,ez,Xy,Qy,YM,rP,zP,Lx],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field{height:fit-content;min-width:150px;padding-right:10px;--mat-form-field-container-height:24px}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-input-element{width:100%}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-floating-label mat-label{font-size:.813rem}[_nghost-%COMP%]     .duration-picker-form .mat-mdc-form-field .mat-mdc-form-field-infix{min-height:initial;padding:2px}[_nghost-%COMP%]     .duration-picker-form .gmat-mdc-select{--mat-select-trigger-text-size:0.813rem}"],
changeDetection:0});var K1=function(){};K1.\u0275fac=function(a){return new (a||K1)};K1.\u0275mod=Jf({type:K1});K1.\u0275inj=Tc({imports:[ZB,Ly,aN,ZM,yQ,yO]});var L1=function(){this.dialogRef=n(mK);this.data=n(sK);this.documentationLinks=n(lK)};L1.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};L1.prototype.onNoClick=function(){this.dialogRef.close(!1)};L1.\u0275fac=function(a){return new (a||L1)};
L1.\u0275cmp=B({type:L1,selectors:[["b-field-state-change-confirmation-dialog"]],standalone:!1,decls:22,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"],[1,"notice"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1),J(),I(2,"div",1)(3,"p"),
Q(4," The "),I(5,"strong"),Q(6),J(),Q(7," field will change state from "),I(8,"strong"),Q(9),J(),Q(10," to "),I(11,"strong"),Q(12),J(),Q(13,". "),J(),E(14,zzb,6,2,"p"),I(15,"p"),Q(16,"Are you sure?"),J()(),I(17,"div",2)(18,"button",3),M("click",function(){return b.onNoClick()}),Q(19," Cancel "),J(),I(20,"button",4),Q(21," Confirm "),J()());a&2&&(z(),R("Field State Change for ",b.data.fieldName),z(5),ch(b.data.fieldName),z(3),ch(b.data.oldFieldState),z(3),ch(b.data.newFieldState),z(2),F(b.data.noteText?
14:-1),z(6),D("mat-dialog-close",!0))},dependencies:[PA,Tx,uK,wK,yK,xK],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});var b6c=["fieldStateMenuButton"],c6c=function(a){return{"mat-stroked-button":a}},M1=function(){this.dialog=n(tK);this.fieldName="";this.fieldState="INHERIT";this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new LA;this.FieldState=Pkc;this.defaultLabel="Default";this.menuLabel="Error";this.msgs={visibleName:"Visible",hiddenName:"Hidden",visibleDescription:"the field will always be in the main field section",hiddenDescription:"the field will always be in the hidden field section",
inheritDescription:"allow the parent component to determine whether the field is visible or hidden",becomesHiddenWarning:"Hiding this field will not result in any loss of data, but the field value will no longer be visible by  default for issues in this component and its subcomponents.",becomesInheritedWarning:"If a parent component hides this field in the future, the field will no longer be visible by default for issues in this component and its subcomponents."}};M1.prototype.ngOnInit=function(){this.updateMenuButton()};
M1.prototype.ngOnChanges=function(){this.updateMenuButton()};
var e6c=function(a,b){b!==a.fieldState&&(a.confirmationDialog?d6c(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},d6c=function(a,b){var c=b==="DISABLED"||b==="INHERIT"&&!a.enabledOnParent,d=a.fieldState!=="INHERIT"&&b==="INHERIT",e=void 0;a.fieldState!=="DISABLED"&&(a.fieldState!=="INHERIT"||a.enabledOnParent)&&c?e=a.msgs.becomesHiddenWarning:d&&(e=a.msgs.becomesInheritedWarning);nK(a.dialog.open(L1,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:f6c(a,a.fieldState),
newFieldState:f6c(a,b),noteText:e}})).pipe(Uf()).subscribe(function(f){f?(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};M1.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=f6c(this,this.fieldState)};
var f6c=function(a,b){switch(b){case "INHERIT":return a.defaultLabel;case "DISABLED":return a.msgs.hiddenName;case "ENABLED":return a.msgs.visibleName;default:Gb(b,"Unknown FieldState.")}};M1.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};M1.\u0275fac=function(a){return new (a||M1)};
M1.\u0275cmp=B({type:M1,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&Wg(b6c,5,ff);if(a&2){var c;$g(c=ah())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},standalone:!1,features:[Uu],decls:33,vars:18,consts:[["fieldStateMenuButton",""],["fieldStateMenu","matMenu"],["type","button","mat-button","",1,
"field-state-menu-button","medium",3,"ngClass","disabled","matMenuTriggerFor"],[1,"field-state-menu-button-inner"],[1,"field-state-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"field-state-dropdown-icon"],[1,"field-state-menu"],[1,"menu-row-container","default-container"],["type","button","mat-menu-item","",1,"default-button","field-state-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description",
"gmat-caption"],["type","button","mat-menu-item","",1,"field-state-option",3,"click"],[1,"menu-row-container"],[1,"state-info"]],template:function(a,b){if(a&1){var c=r();I(0,"div")(1,"button",2,0)(3,"div",3);K(4,"span",4)(5,"b-icon",5);J()()();I(6,"mat-menu",null,1)(8,"div",6)(9,"div",7)(10,"button",8);M("click",function(){t(c);return v(e6c(b,b.FieldState.INHERIT))});K(11,"b-icon",9);I(12,"div",10);Q(13);J();I(14,"div",11);Q(15);J()()();K(16,"mat-divider");I(17,"button",12);M("click",function(){t(c);
return v(e6c(b,b.FieldState.DISABLED))});I(18,"div",13)(19,"div",14);K(20,"b-icon",9);I(21,"div",10);Q(22);J();I(23,"div",11);Q(24);J()()()();I(25,"button",12);M("click",function(){t(c);return v(e6c(b,b.FieldState.ENABLED))});I(26,"div",13)(27,"div",14);K(28,"b-icon",9);I(29,"div",10);Q(30);J();I(31,"div",11);Q(32);J()()()()()()}a&2&&(a=L(7),z(),D("ngClass",jh(16,c6c,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",a),z(3),D("innerHTML",b.menuLabel,tf),z(6),wg("b-menu-item-checked",b.fieldState===
b.FieldState.INHERIT),z(3),R(" ",b.defaultLabel," "),z(2),R(" ",b.msgs.inheritDescription," "),z(2),wg("b-menu-item-checked",b.fieldState===b.FieldState.DISABLED),z(5),R(" ",b.msgs.hiddenName," "),z(2),R(" ",b.msgs.hiddenDescription," "),z(),wg("b-menu-item-checked",b.fieldState===b.FieldState.ENABLED),z(5),R(" ",b.msgs.visibleName," "),z(2),R(" ",b.msgs.visibleDescription," "))},dependencies:[Mv,PA,Tx,HL,UG,XG,VG,YG,CL],styles:[".field-state-menu[_ngcontent-%COMP%]{max-width:210px}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{white-space:normal}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px}.field-state-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.field-state-menu-button-inner[_ngcontent-%COMP%]{align-items:center;display:inline-flex}.field-state-menu-button[disabled][_ngcontent-%COMP%]{border:none}.field-state-menu-button[disabled][_ngcontent-%COMP%]   .field-state-dropdown-icon[_ngcontent-%COMP%]{display:none}"]});var N1=function(){};N1.\u0275fac=function(a){return new (a||N1)};N1.\u0275mod=Jf({type:N1});N1.\u0275inj=Tc({imports:[ZB,$B,$K,RL,LH,EL,bH]});var O1=function(){this.dialogRef=n(mK);this.data=n(sK);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};O1.prototype.close=function(){this.dialogRef.close(!1)};O1.\u0275fac=function(a){return new (a||O1)};
O1.\u0275cmp=B({type:O1,selectors:[["b-unsubscribe-dialog"]],standalone:!1,decls:21,vars:4,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"Unsubscribe From Issue"),J(),I(2,"mat-dialog-content")(3,"div",1),Q(4," Are you sure you would like to unsubscribe from the following issue? "),
J(),K(5,"br"),I(6,"div",2)(7,"a",3)(8,"span"),Q(9),J()(),Q(10," - "),I(11,"span"),Q(12),J()(),K(13,"br"),I(14,"div",1),Q(15," By unsubscribing, you will no longer receive email updates about this issue. "),J()(),I(16,"mat-dialog-actions")(17,"button",4),M("click",function(){return b.close()}),Q(18," Cancel "),J(),I(19,"button",5),M("click",function(){b.dialogRef.close(!0)}),Q(20," Unsubscribe "),J()());a&2&&(z(7),Pg("href","/issues/",b.issueId,"",uf),z(2),R("b/",b.issueId),z(3),ch(b.issueTitle))},
dependencies:[PA,Tx,wK,yK,xK],encapsulation:2});var g6c=function(a,b){return{small:a,medium:b}},h6c=function(a){return{black:a}},P1=function(){this.activeSession=n(Es);this.matDialogService=n(tK);this.issueFullFridge=n(EF);this.analytics=n(CF);this.routeParams=n(bL);this.iconOnly=!1;this.subscriptionChange=new LA;this.showNotificationSettings=new LA;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=Zkc;
this.bubblePosition=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-5}];this.subscriptions=new Map([["UNKNOWN_SUBSCRIPTION",{label:"Default",icon:"notifications_none_24px"}],["SUBSCRIBED_ALL_UPDATES",{label:"All Updates",icon:"notifications-active"}],["SUBSCRIBED_MAJOR_UPDATES",{label:"Major Updates",icon:"notifications-active"}],["SUBSCRIBED_CLOSURE_ONLY",{label:"Closure Only",icon:"notifications-active"}],
["UNSUBSCRIBED",{label:"Muted",icon:"notifications-off"}]])};P1.prototype.ngOnInit=function(){i6c(this)};P1.prototype.ngOnChanges=function(){this.updateMenuButton()};P1.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};P1.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var i6c=function(a){var b,c;w(function(d){if(d.nextAddress==1)return a.routeParams.unsubscribe!=="true"||a.subscription&&a.subscription==="UNSUBSCRIBED"?d.return():x(d,Ge(a.issueFullFridge.watch(a.issueId)),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return x(d,Ge(nK(a.matDialogService.open(O1,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),a.analytics.trackEvent("editIssue",
"unsubscribeUsingDialog");ze(d)})};ea.Object.defineProperties(P1.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});P1.\u0275fac=function(a){return new (a||P1)};
P1.\u0275cmp=B({type:P1,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},standalone:!1,features:[Uu],decls:63,vars:31,consts:[["notificationMenu","matMenu"],["allUpdates",""],["all",""],["majorUpdates",""],["major",""],["type","button","mat-button","","matTooltip","Notification menu",1,"notification-menu-button",3,"ngClass","matMenuTriggerFor",
"disabled"],[1,"notification-menu-button-inner"],["size","small",1,"icon",3,"name","ngClass"],[1,"notification-menu"],[1,"menu-row-container","default-container"],["type","button","mat-menu-item","",1,"default-button","notification-option",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-title","gmat-subhead-2"],[1,"item-description","gmat-caption"],[1,"default-divider",3,"vertical"],["type","button","mat-menu-item","","aria-label","Settings",1,"default-settings",
3,"click"],["name","settings-outline","size","small",1,"item-icon"],[1,"menu-row-container"],["type","button","mat-menu-item","","aria-label","All Updates. Receive emails for major and minor updates.","aria-describedby","all-updates-help",1,"notification-option",3,"click"],[1,"subscription-info"],["type","button","mat-menu-item","",1,"subscription-help","help-icon",3,"click","focus","blur"],[3,"panelTemplate","overlayPositions"],["svgIcon","help-outline",1,"subscription-help","item-icon","small"],
["type","button","mat-menu-item","","aria-label","Major Updates. Receive emails for major updates only.","aria-describedby","major-updates-help",1,"notification-option",3,"click"],["type","button","mat-menu-item","",1,"notification-option",3,"click"],[1,"notification-menu-label",3,"innerHTML"],["name","arrow-dropdown","size","small",1,"notification-dropdown-icon"],["id","all-updates-help",1,"subscription-help-bubble"],[1,"subscription-help-list"],["id","major-updates-help",1,"subscription-help-bubble"]],
template:function(a,b){if(a&1){var c=r();I(0,"div")(1,"button",5)(2,"div",6);K(3,"b-icon",7);E(4,Azb,2,1);J()()();I(5,"mat-menu",null,0)(7,"div",8)(8,"div",9)(9,"button",10);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION))});K(10,"b-icon",11);I(11,"div",12);Q(12," Default ");J();I(13,"div",13);Q(14," receive emails based on your default settings. ");J()();K(15,"mat-divider",14);I(16,"button",15);M("click",function(f){t(c);return v(b.showNotificationSettings.emit(f))});
K(17,"b-icon",16);J()();K(18,"mat-divider");I(19,"div",17)(20,"button",18);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))});I(21,"div",19);K(22,"b-icon",11);I(23,"div",12);Q(24," All Updates ");J();I(25,"div",13);Q(26," receive emails for major and minor updates. ");J()()();I(27,"button",20);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))})("focus",function(){t(c);var f=L(29);return v(f.toggle(!0))})("blur",
function(){t(c);var f=L(29);return v(f.toggle(!1))});I(28,"xap-bubble",21,1);K(30,"mat-icon",22);C(31,Bzb,13,0,"ng-template",null,2,nh);J()()();I(33,"div",17)(34,"button",23);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});I(35,"div",19);K(36,"b-icon",11);I(37,"div",12);Q(38," Major Updates ");J();I(39,"div",13);Q(40," receive emails for major updates only. ");J()()();I(41,"button",20);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))})("focus",
function(){t(c);var f=L(43);return v(f.toggle(!0))})("blur",function(){t(c);var f=L(43);return v(f.toggle(!1))});I(42,"xap-bubble",21,3);K(44,"mat-icon",22);C(45,Czb,17,0,"ng-template",null,4,nh);J()()();I(47,"button",24);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});I(48,"div",17)(49,"div",19);K(50,"b-icon",11);I(51,"div",12);Q(52," Closure Only ");J();I(53,"div",13);Q(54," only receive emails when the issue is closed. ");J()()()();
I(55,"button",24);M("click",function(){t(c);return v(b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED))});I(56,"div",17)(57,"div",19);K(58,"b-icon",11);I(59,"div",12);Q(60," None ");J();I(61,"div",13);Q(62," unsubscribe from further email updates. ");J()()()()()()}if(a&2){a=L(6);var d=L(32),e=L(46);z();wg("icon-only",b.iconOnly);D("ngClass",kh(26,g6c,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",a)("disabled",b.isAnonymous);ng("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||
"UNKNOWN_SUBSCRIPTION").label);z(2);D("name",b.menuIcon)("ngClass",jh(29,h6c,b.menuIcon==="notifications-off"));z();F(b.iconOnly?-1:4);z(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);z(6);D("vertical",!0);z(5);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);z(7);ng("aria-label","This includes emails about major updates and All title, hotlist, and status changes, Blocking, Blocked By, or Duplicate changes, Changes to Reporter, Verifier, and CCs, changes to Type, Found In, Targeted To, Verified In, In Prod, and Changes to custom fields marked as minor.");
z();D("panelTemplate",d)("overlayPositions",b.bubblePosition);z(6);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);z(7);ng("aria-label","This includes emails about New comments, New status updates, Priority or Severity changes, Assignee changes, Component changes, Issue closure or reopening, and Changes to custom fields marked as major.");z();D("panelTemplate",e)("overlayPositions",b.bubblePosition);z(5);wg("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);z(8);wg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[Mv,aB,PA,Tx,HL,UG,XG,VG,YG,CL,jN,YA,cB],styles:[".notification-menu[_ngcontent-%COMP%]{max-width:210px}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:auto;padding:5px 0px 5px 24px;white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-checkmark[_ngcontent-%COMP%]{height:18px;line-height:0px;width:18px}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);white-space:normal}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-icon[_ngcontent-%COMP%]{display:block;margin:auto;width:18px;height:100%}.notification-menu[_ngcontent-%COMP%]   button.mat-mdc-menu-item[_ngcontent-%COMP%]   .item-title[_ngcontent-%COMP%]{line-height:normal}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1px 40px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-button[_ngcontent-%COMP%]{grid-column:1}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-divider[_ngcontent-%COMP%]{grid-column:2;margin:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .default-settings[_ngcontent-%COMP%]{grid-column:3;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .help-icon[_ngcontent-%COMP%]{align-self:center;grid-column:3;height:100%;padding:0px}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-help[_ngcontent-%COMP%]{align-self:center;grid-column:3}.notification-menu[_ngcontent-%COMP%]   .menu-row-container[_ngcontent-%COMP%]   .subscription-info[_ngcontent-%COMP%]{grid-column:1}.icon-only[_ngcontent-%COMP%]{padding:0 2px}.icon-only[_ngcontent-%COMP%]   .icon.black[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}  .subscription-help-bubble{max-width:300px}  .subscription-help-bubble ul.subscription-help-list{margin-top:.5em;list-style:disc}  .notification-menu .subscription-help .mat-icon{margin:0px}  .notification-menu .subscription-help .mat-icon:hover{color:#202124;color:var(--text-high-contrast)}"]});var Q1=function(){};Q1.\u0275fac=function(a){return new (a||Q1)};Q1.\u0275mod=Jf({type:Q1});Q1.\u0275inj=Tc({imports:[ZB,$B,RL,LH,EL,bH,GQ,cC]});var R1=function(){this.sloApi=n(rG);this.cdr=n(NA,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new LA;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},j6c=function(a,b){if(b){var c=a.requestIndex++;a.sloApi.search(b).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.dropdownChoices=d,a.cdr.detectChanges())})}else a.dropdownChoices=[],a.onSloSelect.emit(null),a.cdr.detectChanges()};
R1.prototype.displayFn=function(a){return(a==null?void 0:a.name)||(a==null?void 0:a.sloId)||""};R1.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
ea.Object.defineProperties(R1.prototype,{boundId:{configurable:!0,enumerable:!0,get:function(){return this.internalBoundId},set:function(a){var b=this;(this.internalBoundId=a)&&this.internalBoundId!=="0"?this.sloApi.get(this.internalBoundId).then(function(c){b.dropdownChoices=c?[c]:[];b.selectedSlo=c}).catch(function(){b.selectedSlo={sloId:b.internalBoundId}}):(this.dropdownChoices=[],this.selectedSlo=null)}}});R1.\u0275fac=function(a){return new (a||R1)};
R1.\u0275cmp=B({type:R1,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},standalone:!1,features:[hh([NA])],decls:7,vars:5,consts:[["searchInput",""],["auto","matAutocomplete"],[1,"bv2-slo-picker"],["matInput","","type","text","autocomplete","slo-name",1,"bv2-picker-input","form-control",3,"ngModelChange","click","input","placeholder","ngModel","disabled","matAutocomplete"],
["panelWidth","574px",3,"optionSelected","displayWith"],[1,"slo-search-result",3,"value"]],template:function(a,b){if(a&1){var c=r();I(0,"div",2)(1,"input",3,0);gh("ngModelChange",function(d){t(c);fh(b.selectedSlo,d)||(b.selectedSlo=d);return v(d)});M("click",function(){t(c);var d=L(2);return v(j6c(b,d.value))})("input",function(){t(c);var d=L(2);return v(j6c(b,d.value))});J();I(3,"mat-autocomplete",4,1);M("optionSelected",function(d){t(c);return v(b.updateSelectionOnChange(d))});Dg(5,Dzb,2,2,"mat-option",
5,Cg);J()()}a&2&&(a=L(4),z(),D("placeholder",b.placeholder),eh("ngModel",b.selectedSlo),D("disabled",b.isDisabled)("matAutocomplete",a),z(2),D("displayWith",b.displayFn),z(2),Eg(b.dropdownChoices))},dependencies:[xM,zM,Lx,AM,Li,oy,vy],encapsulation:2});var S1=function(){};S1.\u0275fac=function(a){return new (a||S1)};S1.\u0275mod=Jf({type:S1});S1.\u0275inj=Tc({imports:[ZB,EM,Ly]});var k6c=function(a){return{"empty-list-field-indication":a}},T1=function(){this.documentationLinks=n(lK);this.activeSession=n(Es);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new LA;this.validChange=new LA;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=ilc};
T1.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};gs(this)};T1.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);gs(this)};
var gs=function(a){var b;if(b=Nzb(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!l6c(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||m6c(a));a.validChange.emit(b)},n6c=function(a){if(!a.isExternal)return!0;var b=a.componentId&&a.indefiniteRetentionComponentsAllowlist.has(a.componentId),c,d,e=((d=(c=a.componentPathInfo)==null?void 0:c.componentPathId)!=null?d:
[]).some(function(f){return a.indefiniteRetentionComponentsAllowlist.has(f)});return b||e},Nzb=function(a){var b=a.model.retentionSelection;return b&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.retentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||!!a.model.retentionPeriodDays&&a.model.retentionPeriodDays>=30&&a.model.retentionPeriodDays<=7300)},Fzb=function(a){return a?Sxa(a):"[unset period]"},m6c=function(a){if(!a.model.piiRetentionPeriodDays||!a.model.spiiRetentionPeriodDays||a.model.piiRetentionPeriodDays<
30||a.model.spiiRetentionPeriodDays<30)return!1;var b=a.model.retentionSelection,c=a.model.retentionPeriodDays,d=a.model.piiRetentionPeriodDays;return a.model.spiiRetentionPeriodDays>d||b===a.RetentionSelection.BUGANIZER_DEFAULT&&d>3650||b===a.RetentionSelection.CUSTOM_PERIOD&&(c==null||d>c)?!1:!0},Kzb=function(a){if(!Nzb(a)||m6c(a))return"";var b=a.model.retentionSelection,c=a.model.piiRetentionPeriodDays,d=a.model.spiiRetentionPeriodDays;if(!c||!d||c<30||d<30)return"must be at least 30 days";if(b===
a.RetentionSelection.BUGANIZER_DEFAULT)var e=3650;else b===a.RetentionSelection.CUSTOM_PERIOD&&(e=a.model.retentionPeriodDays);return e&&c>e?e===30?"must be 30 days":"must be between 30 days and "+Fzb(e):"Restricted+ retention must not exceed Restricted retention."},l6c=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},Ozb=function(a){var b=a.model.piiRetentionSelection,c=a.model.piiRetentionPeriodDays,
d=a.model.retentionSelection,e=a.model.retentionPeriodDays;d=b===a.RetentionSelection.INDEFINITE_RETENTION&&(d===a.RetentionSelection.INDEFINITE_RETENTION||d===a.RetentionSelection.BUGANIZER_DEFAULT||d===a.RetentionSelection.CUSTOM_PERIOD&&!!e&&e>120);return b===a.RetentionSelection.CUSTOM_PERIOD&&!!c&&c>120||d};T1.\u0275fac=function(a){return new (a||T1)};
T1.\u0275cmp=B({type:T1,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled",componentId:"componentId",componentPathInfo:"componentPathInfo"},outputs:{modelChange:"modelChange",validChange:"validChange"},standalone:!1,decls:31,vars:33,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngModelChange","ngClass","disabled","name","ngModel"],[3,"value"],["aria-label","Custom retention period, must be between 30 days and 20 years",
3,"value"],[1,"duration-error"],[1,"custom-duration"],["id","custom-retention-warning-box",1,"warning-box"],[3,"disabled","value"],["id","indefinite-retention-warning-box",1,"warning-box"],["aria-label","PII Retention settings form",1,"pii-retention-form",3,"ngModelChange","ngClass","disabled","name","ngModel"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring",3,"rel"],[3,"aria-label","disabled","value"],["id","indefinite-pii-retention-warning-box",
1,"warning-box"],["ariaLabel","Custom duration",3,"durationDaysChange","disabled","durationDays"],[1,"duration-description"],[1,"b-restricted-retention-duration-label"],["ariaLabel","Restricted retention duration",3,"durationDaysChange","disabled","durationDays"],[1,"warning-box"],["ariaLabel","Restricted+ retention duration",3,"durationDaysChange","disabled","durationDays"],["id","custom-pii-retention-warning-box",1,"warning-box"]],template:function(a,b){a&1&&(I(0,"mat-radio-group",0),M("ngModelChange",
function(c){return b.updateSelectionOnChange(c)}),I(1,"p")(2,"b"),Q(3,"Issue Retention"),J()(),I(4,"mat-radio-button",1),Q(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),J(),I(6,"mat-radio-button",2),Q(7," Custom retention period "),E(8,Ezb,2,0,"span",3),E(9,Gzb,4,3,"div",4),E(10,Hzb,13,0,"div",5),J(),I(11,"mat-radio-button",6),Q(12),E(13,Izb,13,0,"div",7),J()(),I(14,"mat-radio-group",8),M("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=
null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);gs(b)}),I(15,"p"),K(16,"br"),I(17,"b"),Q(18,"Restricted Comments/Attachments Retention "),J(),I(19,"a",9),Q(20,"Learn more "),J()(),I(21,"mat-radio-button",1),Q(22," Buganizer default retention period : 60 days "),E(23,Jzb,2,0,"span",3),J(),I(24,"mat-radio-button",10),Q(25," Custom retention period "),E(26,Lzb,2,1,"span",3),E(27,Pzb,16,7,"div",4),J(),I(28,"mat-radio-button",6),Q(29," Match Issue Retention "),E(30,Qzb,3,0,"div",
11),J()());a&2&&(D("ngClass",jh(29,k6c,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),z(4),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),z(2),D("value",b.RetentionSelection.CUSTOM_PERIOD),z(2),F(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:8),z(),F(b.model.retentionSelection===
b.RetentionSelection.CUSTOM_PERIOD?9:-1),z(),F(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),z(),D("disabled",!n6c(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),z(),R(" Indefinite retention period ",n6c(b)?"":"(Internal components only)"," "),z(),F(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),z(),D("ngClass",jh(31,k6c,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name",
"piiRetentionForm")("ngModel",b.model.piiRetentionSelection),z(5),D("rel",b.EXTERNAL_LINK_REL),ng("href",b.documentationLinks.getRestrictedAccessHelpLink(),uf),z(2),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),z(2),F(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&l6c(b)?23:-1),z(),D("aria-label","Custom Retention Period,"+Kzb(b))("disabled",!Nzb(b))("value",b.RetentionSelection.CUSTOM_PERIOD),z(2),F(b.model.piiRetentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||
m6c(b)?-1:26),z(),F(b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD?27:-1),z(),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),z(2),F(b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&Ozb(b)?30:-1))},dependencies:[Mv,oy,vy,zN,AN,J1],styles:[".mat-mdc-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:588px}.duration-error[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);font-weight:bold}.warning-box[_ngcontent-%COMP%]{white-space:normal}.b-restricted-retention-duration-label[_ngcontent-%COMP%]{display:inline-block;width:12em}b-duration-picker[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]     .mat-mdc-radio-button .mat-internal-form-field{--mdc-radio-state-layer-size:2.2em;align-items:flex-start}"],
changeDetection:0});var U1=function(){};U1.\u0275fac=function(a){return new (a||U1)};U1.\u0275mod=Jf({type:U1});U1.\u0275inj=Tc({imports:[ZB,Ly,gO,K1]});var o6c=function(){this.type="component";this.includeChildren=!1},p6c=function(){this.type="tracker"},q6c=function(){this.type="team";this.includeChildren=!1},r6c=function(){this.type="hotlist"},s6c=function(){this.type="savedsearch"},t6c=function(){this.type="customfield"};var u6c=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},v6c="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),w6c=v6c.concat("accesslevel archived assignee attachment blockedbyid blockingid canonicalid cc cccount collaborator collaboratorcount cl comment commentcount commenter created customfield descendantcount deleted deletionreason deletiontime duplicatecount effortlabel escalationowner foundin id inprod is lastcommenter lastmodifier mention modified modifier mute onedayviewcount opendescendantcount p parentid postmortem priority reporter resolved s sevendayviewcount severity staffingplaceholder staffingplaceholdercount staffinguser staffingusercount star status t targetedto thirtydayviewcount title type verified verifiedin verifier vote votecount nearestslo".split(" ")),
x6c="cl deleted deletionreason deletiontime escalationowner nearestslo postmortem teamid".split(" "),y6c="(?:\\s|^)(-?)(customfield\\d+|"+w6c.join("|")+")(:|>|<|>=|<=|=)";var V1=function(){Z.call(this);var a=this;this.appSearchState=n(mX);this.trackerFridge=n(IG);this.trackerHelpers=n(LK);this.customFieldsApi=n(TD);this.hotlistApi=n(ED);this.savedSearchApi=n(MD);this.componentActions=n(oN);this.teamsService=n(yG);this.activeSession=n(Es);this.currentUserBookmarksFridge=n(OD);this.query="";this.requestIndex=0;this.enableExternalMentionsFe=Yr(this.activeSession,"enableExternalMentionsFe");this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(e){return z6c(a,
e)}},{updateHeader:function(e){return A6c(a,e)}},{updateHeader:function(e){return B6c(a,e)}},{updateHeader:function(e){return C6c(a,e)}},{updateHeader:function(e){return D6c(a,e)}},{updateHeader:function(e){return E6c(a,e)}},{updateHeader:function(e){return F6c(a,e)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new bg;this.refreshRequest$=new bg;var b=Yr(this.activeSession,"enableEscalationOwnerRolloutUi");this.refreshRequest$.pipe(Sf(250),gg(this.destroyed$)).subscribe(function(e){G6c(a,
e.currentRequestIndex,e.currentSearchContext)});this.sessionIsInternal=this.activeSession.isInternalSession();var c=new Set(w6c);this.sessionIsInternal||this.enableExternalMentionsFe||c.delete("mention");b||c.delete("escalationowner");if(!this.sessionIsInternal){b=l(x6c);for(var d=b.next();!d.done;d=b.next())c.delete(d.value)}this.isTrackerSearchEnabled()||c.delete("trackerid");this.atoms=Object.freeze(c)};Y(V1,Z);V1.\u0275dir=Z.\u0275dir;V1.prototype.isTrackerSearchEnabled=function(){return!Gq(this.activeSession)};
var G6c=function(a,b,c){for(var d=!1,e=!1,f=[],h=l(a.producers),k=h.next();!k.done;k=h.next())k=k.value,k.match&&f.push(k.match(c).then(function(q){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,p(q))}).catch(function(q){return q})),k.updateHeader&&f.push(k.updateHeader(c).then(function(q){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=q)}).catch(function(q){return q}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},z6c=
function(a,b){if(!b.value.val){var c=b.value.idx;if(c<b.query.length&&b.query.charAt(c).search("\\s")===-1)return Promise.reject(null)}var d,e;if(((d=b.value)==null?0:d.val.startsWith("cf"))||((e=b.value)==null?0:e.val.startsWith("customfield")))return H6c(a,b);if(b.label){if(b.label.customFieldId)return I6c(a,b);switch(b.label.val){case "archived":return Promise.resolve(js(J6c,b.value,!0));case "componentid":case "c":return K6c(a,b);case "deleted":return L6c(b);case "deletionreason":return Promise.resolve(js(M6c,
b.value,!0));case "hotlistid":case "h":return N6c(a,b);case "savedsearchid":return O6c(a,b);case "status":case "is":return Promise.resolve(js(P6c,b.value,!0));case "trackerid":return Q6c(a,b);case "teamid":return R6c(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(js(S6c,b.value,!0));case "severity":case "s":return Promise.resolve(js(T6c,b.value,!0));case "inprod":case "star":case "mute":return L6c(b);case "accesslevel":return Promise.resolve(js(U6c,
b.value,!0));case "staffingplaceholder":return Promise.resolve(js(V6c,b.value,!0));default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=Tzb(b.value.val);e=l(a.atoms);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&f.startsWith(d.token)){var h=b.value.idx+(d.negated?1:0);h={type:"atom",startIdx:h,endIdx:h+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:h})}c.sort(function(k,
q){return Ba(k.name,q.name)});return Promise.resolve(c)},H6c=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=i_c(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=HEc(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return W6c(a,b,f)})},W6c=function(a,b,c){var d=c.customFields.map(function(h){return h.componentId}).filter(Tk);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=l(c.customFields);for(var e=
c.next(),f={};!e.done;f={customField$jscomp$22:void 0},e=c.next())f.customField$jscomp$22=e.value,e=a.getComponentPathNames(f.customField$jscomp$22).then(function(h){return function(k){var q=h.customField$jscomp$22,u=b.value.val,A=q.customFieldId,G=b.value.idx;return{id:A,componentPathNames:k,name:q.name,trackId:"customField:"+A,completionCfg:{type:"customField",startIdx:G,endIdx:G+u.length,completionValue:"customfield"+A+":",matchingString:u}}}}(f)),d.push(e);return Promise.all(d)};
V1.prototype.getComponentPathNames=function(a){if(a.componentId){var b=a.componentId;return this.componentActions.get(b).then(function(c){var d;return((d=c.componentPathInfo)==null?void 0:d.componentPathName)||[]}).catch(function(){return[b]})}return Promise.resolve([])};
var I6c=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if(c.type!=="ENUM"&&c.type!=="REPEATED_ENUM"||!c.allowedValue)return[];var d=c.allowedValue.map(function(e){return{trackId:"customfieldvalue:"+e,id:e,label:"Custom field "+c.name,name:e,completionCfg:{type:"customfieldvalue",completionValue:'"'+e+'"'}}});return js(d,b.value,!1,!1)}):Promise.reject(null)};
V1.prototype.matchType=function(a){return Promise.resolve(js(X6c,a.value,!0))};
var L6c=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(js([{trackId:"booleanAtom:"+b+":true",label:b,name:"true",completionCfg:{enableShadowPlaceholder:!0,completionValue:"true",type:b}},{trackId:"booleanAtom:"+b+":false",label:b,name:"false",completionCfg:{enableShadowPlaceholder:!0,completionValue:"false",type:b}}],a.value,!0))},K6c=function(a,b){var c=b.value.val;return!c||is(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,
d)})};
V1.prototype.processResponse=function(a,b){var c=a.value.val,d=[];b=l(b);for(var e=b.next(),f={};!e.done;f={paths$jscomp$21:void 0,startIdx$jscomp$4:void 0,endIdx$jscomp$4:void 0},e=b.next()){e=e.value;var h=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$21=rs(this.trackerHelpers,e.componentPathInfo);f={id:h,name:e.name,description:e.description,trackId:"component:"+h,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",startIdx:f.startIdx$jscomp$4,
endIdx:f.endIdx$jscomp$4,completionValue:""+h,matchingString:c},componentPath:f.paths$jscomp$21.componentPathId.map(function(k){return function(q,u){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.paths$jscomp$21.componentPathName[u]),completionCfg:{type:"component",completionValue:String(q),startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var R6c=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||is(c,!0))return Promise.reject(null);var d=gk();AG(a.teamsService,c).pipe(gg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e);for(var q=e.next(),u={};!q.done;u={pathNames$jscomp$5:void 0},q=e.next())q=q.value,u.pathNames$jscomp$5=q.pathNames,u={trackId:"team:"+q.teamId,name:q.name,id:q.teamId,label:"Team "+q.teamId,pathIds:q.pathIds,pathNames:q.pathNames,description:q.description,completionCfg:{type:"team",
startIdx:f,endIdx:h,completionValue:String(q.teamId),matchingString:c},teamPath:q.pathIds.map(function(A){return function(G,H){return{trackId:"team:"+G,id:G,name:A.pathNames$jscomp$5[H],completionCfg:{type:"team",completionValue:String(G),startIdx:f,endIdx:h}}}}(u))},k.push(u);d.resolve(k)},function(){d.reject()});return d.promise},A6c=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new o6c;b=b.value.val;return is(b,!0)?(Aa(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(Number(b)).then(function(d){var e;Gq(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},D6c=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new p6c,d=gk();b=b.value.val;is(b)?a.trackerFridge.watch(b).pipe(gg(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);
return d.promise},F6c=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new q6c,d=gk(),e=b.value.val;is(e,!0)?(Aa(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),AG(a.teamsService,e).pipe(gg(a.destroyed$)).subscribe(function(f){f.length>0?(f=f[0],c.team={pathNames:f.pathNames,name:f.name,description:f.description}):c.team={pathNames:[e],name:e,description:""};d.resolve(c)},function(){c.team={pathNames:[e],name:e,description:""};d.resolve(c)})):
d.resolve(c);return d.promise},B6c=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new r6c;b=b.value.val;return is(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},C6c=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new s6c;b=b.value.val;return is(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
E6c=function(a,b){if(b.label&&b.label.customFieldId)var c=b.label.customFieldId;else if(b.value.val.startsWith("customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),Po("search-usage","customfield");else return Promise.reject(null);var d=new t6c;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},Q6c=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||is(c,!0))return Promise.reject(null);var d=gk();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(gg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e.results);for(var q=e.next();!q.done;q=e.next())q=q.value,k.push({trackId:"trackerid:"+q.trackerId,name:q.name,id:q.trackerId,label:"Tracker "+q.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:h,completionValue:q.trackerId,matchingString:c}});d.resolve(k)});return d.promise},N6c=function(a,b){return is(b.value.val)?Promise.reject(null):Ge(PD(a.currentUserBookmarksFridge)).then(function(c){c=
c.map(function(d){var e=d.hotlistId;return{id:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",completionValue:""+e}}});return js(c,b.value,!1,!0)})},O6c=function(a,b){return is(b.value.val)?Promise.reject(null):Ge(uoc(a.currentUserBookmarksFridge)).then(function(c){c=c.map(function(d){var e=d.searchId;return{id:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:""+e}}});return js(c,b.value,!1,!0)})};
V1.\u0275fac=function(a){return new (a||V1)};V1.\u0275prov=Sc({token:V1,factory:V1.\u0275fac,providedIn:"root"});
var P6c="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return ks({name:a,label:"Status",type:"status"})}),X6c="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return ks({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),S6c=["p0","p1","p2","p3","p4"].map(function(a){return ks({name:a,
label:"Priority",type:"priority"})}),T6c=["s0","s1","s2","s3","s4"].map(function(a){return ks({name:a,label:"Severity",type:"severity"})}),J6c=["all","true","false"].map(function(a){return ks({name:a,label:"Archived",type:"archived"})}),M6c=["abuse","pii","user_request","retention"].map(function(a){return ks({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),U6c=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return ks({name:b,label:"Issue access level",type:"accesslevel",id:a})}),V6c=[["swe",km.SWE],["sre",km.SRE],["pm",km.PM],["tpgm",km.TPGM],["ux",km.UX]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return ks({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})});var W1=function(){this.cdr=n(NA,{self:!0});this.optionsChange=new LA};W1.prototype.ngOnInit=function(){Y6c(this)};W1.prototype.onSelectionChanged=function(){Y6c(this);Z6c(this);this.optionsChange.emit(this.options)};
var Y6c=function(a){var b=null,c;for(c in a.options.propertyValues){var d=a.options.propertyValues[c].value;if(b===null)b=d;else if(b!=d){a.selectAllValue=null;return}}a.selectAllValue=b},Z6c=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},$6c=function(a,b){if(b=b===void 0?null:b)b.preventDefault(),b.stopPropagation();a.selectAllValue=a.selectAllValue===null?!0:!a.selectAllValue;a.options.setAll(a.selectAllValue);a.optionsChange.emit(a.options);Z6c(a)},a7c=function(a){var b=
[],c=!0,d;for(d in a.options.propertyValues){var e=a.options.propertyValues[d];e.value?b.push(e.displayString):c=!1}return c?a.selectAllText:b.join(", ")};W1.\u0275fac=function(a){return new (a||W1)};
W1.\u0275cmp=B({type:W1,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},standalone:!1,features:[hh([NA])],decls:17,vars:11,consts:[["menu","matMenu"],["type","button","mat-stroked-button","",1,"bv2-appbar-menu",3,"matMenuTriggerFor"],[1,"flex-kids-x","flex-cross-axis-centered"],[1,"bv2-property-picker-summary-text"],["svgIcon","arrow-dropdown"],["mat-menu-item","","role","menuitemcheckbox",
1,"bv2-property-picker-selectall","bv2-property-picker-option-row",3,"click"],[3,"change","checked","indeterminate"],["mat-menu-item","","role","menuitemcheckbox",1,"bv2-property-picker-options"],[1,"bv2-property-picker-error-message"],["title","option",1,"bv2-property-picker-option-row",3,"click"],[3,"change","click","checked"]],template:function(a,b){if(a&1){var c=r();I(0,"div")(1,"button",1)(2,"div",2)(3,"span",3);Q(4);Q(5," \u00a0 ");J();K(6,"mat-icon",4);J()();I(7,"mat-menu",null,0)(9,"div",
5);M("click",function(d){t(c);return v($6c(b,d))});I(10,"mat-checkbox",6);M("change",function(d){t(c);b.selectAllValue=d.checked;return v($6c(b))});Q(11);J()();K(12,"mat-divider");Dg(13,Uzb,4,3,"div",7,Cg);S(15,"keyvalue");J();E(16,Vzb,2,1,"div",8);J()}a&2&&(a=L(8),z(),wg("ng-invalid",!!b.errorString),D("matMenuTriggerFor",a),z(3),R(" ",a7c(b)," "),z(5),ng("aria-checked",b.selectAllValue),z(),D("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),z(),R(" ",b.selectAllText," "),z(2),
Eg(T(15,9,b.options.propertyValues)),z(3),F(b.errorString?16:-1))},dependencies:[aB,yM,CM,UG,XG,VG,YG,HL,PA,Tx,Vv],styles:["[_nghost-%COMP%]   .gmat-mdc-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var b7c=function(a,b){this.displayString=a;this.value=b},c7c=function(a){this.propertyValues=a},d7c=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},RAb=function(a){for(var b=l(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};c7c.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var X1=function(){};X1.\u0275fac=function(a){return new (a||X1)};X1.\u0275mod=Jf({type:X1});X1.\u0275inj=Tc({imports:[ZB,GM,LH,RL,$B]});var e7c=function(a,b){this.name=a;this.secondsPerUnit=b},gAb=new e7c("minute",60),hAb=new e7c("hour",3600),iAb=new e7c("day",86400),Y1=function(){this.errorString=null;this.objectiveDurationChange=new LA;this.objectiveBusinessDaysChange=new LA;this.intervalUnit=iAb};Y1.prototype.ngOnInit=function(){f7c(this)};Y1.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&f7c(this)};
var Yzb=function(a,b){b=b.name;Vj(a.intervalString)!==1&&(b+="s");return b},fAb=function(a){return a.dayType==="BUSINESS"},f7c=function(a){!fAb(a)&&g7c(a,iAb)||g7c(a,hAb)||g7c(a,gAb);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},g7c=function(a,b){var c=a.objectiveDuration.seconds;return c%b.secondsPerUnit==0?(c/=b.secondsPerUnit,c!=0||a.intervalString!=""?(a.intervalString=""+c,a.intervalUnit=b):(fAb(a)?[gAb,hAb]:[gAb,hAb,iAb]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},aAb=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);dAb(a);eAb(a)},dAb=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(Vj(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},eAb=function(a){a.objectiveBusinessDays=Vj(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};Y1.\u0275fac=function(a){return new (a||Y1)};
Y1.\u0275cmp=B({type:Y1,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},standalone:!1,features:[Uu],decls:2,vars:1,consts:[[1,"disabled"],[1,"enabled","bv2-slo-objective"],[1,"bv2-slo-objective-biz-day-text"],[1,"bv2-slo-objective-interval"],
["type","text",3,"ngModelChange","ngModel"],[1,"bv2-slo-objective-unit",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],[1,"bv2-slo-objective-unit"]],template:function(a,b){a&1&&E(0,$zb,3,2,"span",0)(1,jAb,7,5,"span",1);a&2&&F(b.isDisabled?0:1)},dependencies:[Li,oy,vy,rP,zP,Lx],styles:['[_nghost-%COMP%]{width:200px;line-height:29px}.bv2-slo-objective[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-interval[_ngcontent-%COMP%]{display:flex}.bv2-slo-objective-unit[_ngcontent-%COMP%]{padding-right:4px;padding-left:4px}[_nghost-%COMP%]     .mat-mdc-select-value{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:#1a73e8;color:var(--link);min-width:60px}input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}/*# sourceMappingURL=slo_objective_selector.css.map */']});var Z1=function(){this.typeStringToEnum=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE","CUSTOMER_ISSUE"],["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROGRAM","PROGRAM"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.enumTypeToString=new Map([["BUG","BUG"],["FEATURE_REQUEST","FEATURE_REQUEST"],["CUSTOMER_ISSUE",
"CUSTOMER_ISSUE"],["INTERNAL_CLEANUP","INTERNAL_CLEANUP"],["PROCESS","PROCESS"],["VULNERABILITY","VULNERABILITY"],["PRIVACY_ISSUE","PRIVACY_ISSUE"],["PROGRAM","PROGRAM"],["PROJECT","PROJECT"],["FEATURE","FEATURE"],["MILESTONE","MILESTONE"],["EPIC","EPIC"],["STORY","STORY"],["TASK","TASK"]]);this.priorityStringToEnum=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.enumPriorityToString=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]);this.postmortemValuesToCanonical=
new Map([["TRUE","ANY"],["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},k7c=function(a,b){var c=new h7c,d=i7c(b,"type",function(f){var h=f.toUpperCase(),k=new j7c;a.typeStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(var e=d.next();!e.done;e=d.next())c.types.push(a.typeStringToEnum.get(e.value));d=i7c(b,"priority",function(f){var h=
f.toUpperCase(),k=new j7c;a.priorityStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(e=d.next();!e.done;e=d.next())c.priorities.push(a.priorityStringToEnum.get(e.value));b=i7c(b,"postmortem",function(f){var h=f.toUpperCase(),k=new j7c;a.postmortemValuesToCanonical.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=l(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},i7c=function(a,b,c){var d=new l7c;if(a=(new RegExp(b+":(\\S+)")).exec(a))for(a=a[1],a.startsWith("(")&&a.endsWith(")")&&(a=a.substring(1,a.length-1)),a=a.split("|"),b=0;b<a.length;b++){var e=c(a[b]);if(e.error){d.error=e.error;break}d.values.push(e.value)}return d};Z1.\u0275fac=function(a){return new (a||Z1)};Z1.\u0275prov=Sc({token:Z1,factory:Z1.\u0275fac,providedIn:"root"});
var h7c=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},l7c=function(){this.values=[];this.error=""},j7c=function(){this.error=this.value=""};var a2=function(){};a2.prototype.validate=function(a){for(var b={},c=l(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};a2.\u0275fac=function(a){return new (a||a2)};a2.\u0275dir=Kf({type:a2,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},standalone:!1,features:[hh([{provide:jy,useExisting:a2,multi:!0}])]});var b2=function(){this.constants=n(GK);this.sloParseService=n(Z1);this.confirmationDialogService=n(AK);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new LA;this.onValidation=new LA;this.metricChoices=["METRIC_UNSPECIFIED"].concat(Qsc);this.dayTypes=["CALENDAR","BUSINESS"];Qsc.map(function(a,b){return[a,b]});this.selectedMetric="METRIC_UNSPECIFIED";this.selectedDayType="CALENDAR";this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=new Map([["ANY",
"Has postmortem"],["NONE","No postmortem"]]);this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.selectedMetric=this.metricChoices[0];this.selectedDayType="CALENDAR";this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.canPerformActions=!0};b2.prototype.updateValidity=function(){this.canPerformActions=!this.openRow};
var VAb=function(a,b,c){SAb(a);a=l(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},YAb=function(a,b,c){c=aBb(a,b,c);var d=c.newOffset;c.valid&&(SAb(a),Za(a.collection,b),Za(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),m7c(a))},aBb=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},SAb=function(a){a=l(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},n7c=function(a,b){var c=b.map(function(d){return new c2(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.updateValidity()},HAb=function(a){return a==="METRIC_UNSPECIFIED"?" - ":Rsc.get(a)},tAb=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},zAb=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "},TAb=function(a,b){SAb(a);Za(a.collection,b);Za(a.boundCollection,b.sloElement);m7c(a)},mAb=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Oi("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];m7c(a)},onDismiss:function(){}});b.stopPropagation()},kAb=function(a,b){var c=new c2({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",
objective:{seconds:0,nanos:0},businessDays:0},a,!0);VAb(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);m7c(a)};b2.prototype.onDrop=function(a){YAb(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var m7c=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
ea.Object.defineProperties(b2.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){n7c(this,a)}},canPerformActions:{configurable:!0,enumerable:!0,set:function(a){this.canPerformActionsInternal=a;this.onValidation.emit(a)},get:function(){return this.canPerformActionsInternal}},isDisabled:{configurable:!0,enumerable:!0,set:function(a){this.isDisabledInternal=a;if(this.collection)for(var b=l(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});b2.\u0275fac=function(a){return new (a||b2)};
b2.\u0275cmp=B({type:b2,selectors:[["slo-elements-picker"]],inputs:{collectionInput:[0,"collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},standalone:!1,decls:29,vars:5,consts:[["settingsMenu","matMenu"],[1,"bv2-slo-elements-picker"],[1,"bv2-slo-elements-table-label","edit-field-header"],["href","http://g3doc/company/teams/buganizer/user-guide/guides/define-slo#creating-a-new-slo-rule"],["matTooltip","These ordered rules determine the objectives for each type of issue for this SLO",
1,"bv2-slo-elements-table-help-icon",3,"name","size"],[1,"bv2-slo-elements-actionbar"],["cellspacing","0",1,"bv2-slo-elements-table"],[1,"header-row"],[1,"bv2-slo-elements-table-order-header"],[1,"bv2-slo-elements-table-type-header"],[1,"bv2-slo-elements-table-priority-header"],[1,"bv2-slo-elements-table-postmortem-header"],[1,"bv2-slo-elements-table-metric-header"],[1,"bv2-slo-elements-table-objective-header"],[1,"bv2-slo-elements-table-daytype-header"],[1,"bv2-slo-elements-table-actions-header"],
["cdkDropList","",3,"cdkDropListData","cdkDropListDisabled"],[1,"bv2-slo-elements-table-empty-list-description"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size"],["matTooltip","Clear all rules",1,"hoverable",3,"click","name","size"],["matTooltip","Add a new rule",1,"hoverable",3,"click","name","size"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData","cdkDropListDisabled"],["cdkDrag","",1,"bv2-slo-element-row",
3,"draggable"],["cdkDrag","",1,"bv2-slo-element-row"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-priority-column","bv2-slo-element-picker-column",
"display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element","editable-row"],[1,
"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-action","editable-row"],[1,"bv2-slo-element-action","display-row"],[1,"bv2-type-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-property-display-chips"],[1,"bv2-property-display-chip-container"],
[1,"matcher-chip-content"],[1,"bv2-priority-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-postmortem-property-picker",3,"optionsChange","selectAllText","validator","options"],["appearance","outline","subscriptSizing","dynamic"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModelChange","ngModel","customValidators"],[3,"value"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration",
"objectiveBusinessDays","validator","isDisabled"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration","objectiveBusinessDays","isDisabled"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Finish editing",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Edit this rule",1,"hoverable",
"bv2-slo-element-action-edit",3,"name","size"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",
3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-remove",3,"click"],["matTooltip","Edit this rule",1,"hoverable","bv2-slo-element-action-edit",3,"click","name","size"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",3,"click"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"div")(2,"div")(3,"label",2),Q(4,"Rules"),J(),I(5,"a",3),
K(6,"b-icon",4),J(),E(7,nAb,6,3,"span",5),J(),I(8,"table",6)(9,"thead")(10,"tr",7)(11,"th",8),Q(12,"Order"),J(),I(13,"th",9),Q(14,"Type"),J(),I(15,"th",10),Q(16,"Priority"),J(),I(17,"th",11),Q(18,"Postmortem"),J(),I(19,"th",12),Q(20,"Metric"),J(),I(21,"th",13),Q(22,"Objective"),J(),I(23,"th",14),Q(24," Day Type "),J(),K(25,"th",15),J()(),E(26,dBb,3,2,"tbody",16),J(),I(27,"div"),E(28,eBb,2,0,"div",17),J()()());a&2&&(z(6),D("name","help-outline")("size","small"),z(),F(b.isDisabled?-1:7),z(19),F(b.collection&&
b.collection.length!=0?26:-1),z(2),F(b.collection&&b.collection.length!=0?-1:28))},dependencies:[a2,fN,eN,oy,Gy,vy,CL,YM,Xy,UG,XG,VG,YG,rP,zP,Lx,YA,cB,W1,Y1],styles:['.bv2-slo-elements-picker[_ngcontent-%COMP%]{display:block}.bv2-slo-elements-picker[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]{width:1270px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   icon[_ngcontent-%COMP%]{cursor:pointer}.bv2-slo-elements-picker[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:inherit}.bv2-slo-elements-picker[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-mdc-select-value-text, .cdk-drag-preview[_ngcontent-%COMP%]     .bv2-slo-elements-picker-metric-selector .mat-mdc-select-value-text{padding-left:4px;text-align:left;width:8em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-empty-list-description[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);color:#5f6368;color:var(--muted);line-height:32px;text-align:center}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding-top:2px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]{background-color:#f1f3f4;background-color:var(--c100);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:3px;display:inline-block;height:20px;margin-right:4px;white-space:nowrap}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-property-display-chips[_ngcontent-%COMP%]   span.bv2-property-display-chip-container[_ngcontent-%COMP%]   .matcher-chip-content[_ngcontent-%COMP%]{display:inline-block;line-height:16px;margin:2px 5px;max-width:550px;overflow:hidden;text-overflow:ellipsis}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .ng-dirty.ng-invalid[_ngcontent-%COMP%] > .jfk-select[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast);border-width:2px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-label[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-table-help-icon[_ngcontent-%COMP%]{display:inline-block;padding-bottom:4px;padding-left:4px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .slo-picker-actions[_ngcontent-%COMP%]   .slo-picker-icon-action-icon-container[_ngcontent-%COMP%]{display:inline-block;padding-right:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .bv2-slo-elements-actionbar[_ngcontent-%COMP%]{float:right}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);counter-reset:rulenumber;width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]{counter-increment:rulenumber}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:counter(rulenumber) ""}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:135px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-bottom:0px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field{padding-right:10px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field-infix, .bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr.bv2-slo-element-row[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field-infix{min-height:initial;padding-top:6px;padding-bottom:6px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .header-row[_ngcontent-%COMP%]{border:0px;height:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-order-header[_ngcontent-%COMP%]{padding-left:16px;text-align:right;width:28px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-type-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:212px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-postmortem-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-priority-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-metric-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-objective-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:200px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-daytype-header[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px;text-align:left;width:96px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.bv2-slo-elements-table-actions-header[_ngcontent-%COMP%]{padding-left:16px;text-align:left;width:60px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]{height:18px}.bv2-slo-elements-picker[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .custom-menu-button[_ngcontent-%COMP%]   .goog-inline-block[_ngcontent-%COMP%]{background:none;border:none;box-shadow:none;line-height:initial;min-width:initial;padding:0;vertical-align:initial}.cdk-drag-preview[_ngcontent-%COMP%]{counter-increment:rulenumber;background-color:#fff;background-color:var(--surface-default);box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:table}.cdk-drag-preview[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:0;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child.drag-over-after{border-bottom-color:#1a73e8;border-bottom-color:var(--primary)}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action[_ngcontent-%COMP%]{padding-left:8px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-action.editable-row[_ngcontent-%COMP%]{padding-top:10px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:counter(rulenumber) ""}.cdk-drag-preview.draggable[_ngcontent-%COMP%]:hover > td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::before{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 3px 50%;content:"";cursor:grab;float:left;height:14px;width:5px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]{line-height:14px;padding-left:initial;padding-right:initial;text-align:right;width:28px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter.editable-row[_ngcontent-%COMP%]{padding-top:12px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]{text-align:left;padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-summary-text{width:190px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-type-property-picker .bv2-property-picker-option-row{width:212px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-summary-text{width:102px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-postmortem-property-picker .bv2-property-picker-option-row{width:124px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-summary-text{width:88px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]     .bv2-priority-property-picker .bv2-property-picker-option-row{width:110px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-picker-column.editable-row[_ngcontent-%COMP%]{padding-top:6px;vertical-align:top}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:135px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .bv2-enum-field[_ngcontent-%COMP%]{padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-metric[_ngcontent-%COMP%]   .goog-flat-menu-button[_ngcontent-%COMP%]{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector{float:left}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector input{margin:auto;padding-right:4px;text-align:right;width:3em}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective[_ngcontent-%COMP%]     slo-objective-selector .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-objective.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype{text-align:left;padding-left:16px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype mat-form-field{width:111px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .bv2-enum-field{padding-bottom:0px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .goog-flat-menu-button{background-color:initial;background-image:initial}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-daytype.editable-row[_ngcontent-%COMP%]{padding-top:6px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field{padding-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-metric .mat-mdc-form-field-infix, .cdk-drag-preview[_ngcontent-%COMP%]     td.bv2-slo-element-daytype .mat-mdc-form-field-infix{min-height:initial;padding-top:6px;padding-bottom:6px}.cdk-drag-preview[_ngcontent-%COMP%]   td.bv2-slo-element-row-counter[_ngcontent-%COMP%]::after{content:""}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform 250ms cubic-bezier(0, 0, 0.2, 1)}/*# sourceMappingURL=slo-elements-picker.css.map */']});
var c2=function(a,b,c){var d=this;this.sloElement=a;this.controllerReference=b;this.isNewElement=c===void 0?!1:c;this.metricSelectorValid=this.postmortemPickerValid=this.priorityPickerValid=this.typePickerValid=this.isEditingInternal=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=d7c(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=d7c(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=d7c(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=e===null;return e};this.validateObjective=function(e,f){if(d.selectedDayType!=="BUSINESS"){if(!e.match(/^\d+$/)||e==="0")return d.objectiveValid=!1,"Objective must be a positive integer"}else{if(!e.match(/^\d*$/)||!f.match(/^\d*$/))return d.objectiveValid=!1,"Objective must be a positive integer";if(!(e!==""&&e!=="0"||f!==""&&f!=="0"))return d.objectiveValid=
!1,"A business day or time based duration must be specified."}d.objectiveValid=!0;return null};this.matcherText=a.matcher;this.selectedMetric=a.metric;this.selectedDayType=a.dayType||"CALENDAR";this.selectedObjectiveDuration=o7c(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return p7c(d,e)}};q7c(this);this.typePickerValues=r7c(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return tAb(d.controllerReference,e)});this.priorityPickerValues=r7c(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return zAb(d.controllerReference,e)});this.postmortemPickerValues=r7c(this.controllerReference.anyNoneDisplayValues.keys(),function(e){return d.parseResult.postmortemValues.length===0||d.parseResult.postmortemValues.includes(e)},
function(e){return d.controllerReference.anyNoneDisplayValues.get(e)});this.validateTypePicker();this.validatePriorityPicker();this.validatePostmortemPicker();p7c(this,this.selectedMetric)},o7c=function(a){return a?a:{seconds:86400,nanos:0}};c2.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var p7c=function(a,b){b=b!=="METRIC_UNSPECIFIED";return a.metricSelectorValid=b};
c2.prototype.stopEditing=function(){this.isEditingInternal&&(this.isValid()||this.isNewElement)&&(this.controllerReference.openRow=null,this.controllerReference.updateValidity(),this.isEditingInternal=this.isNewElement=!1,this.canEdit=!0,s7c(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,q7c(this))};
var s7c=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=t7c(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=t7c(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=t7c(d,function(f){return a.controllerReference.sloParseService.canonicalGroupQueryKeywordToQueryValue.get(f)});var e=[];b&&e.push("type:"+b);c&&e.push("priority:"+c);
d&&e.push("postmortem:"+d);a.matcherText=e.join(" ");a.sloElement.matcher=a.matcherText};c2.prototype.getEnumValues=function(a){var b=[],c=!0,d=!0,e;for(e in a.propertyValues)a.propertyValues[e].value?(b.push(e),d=!1):c=!1;return c||d?[]:b};var t7c=function(a,b){if(a.length===0)return"";if(a.length===1)return b(a[0]);var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
c2.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,q7c(this))};var q7c=function(a){a.parseResult=k7c(a.controllerReference.sloParseService,a.matcherText)},r7c=function(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new b7c(h,f)}return new c7c(d)};var d2=function(){};d2.\u0275fac=function(a){return new (a||d2)};d2.\u0275mod=Jf({type:d2});d2.\u0275inj=Tc({imports:[ZB,Ly,yQ]});var e2=function(){};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275mod=Jf({type:e2});e2.\u0275inj=Tc({imports:[ZB]});var f2=function(){};f2.\u0275fac=function(a){return new (a||f2)};f2.\u0275mod=Jf({type:f2});f2.\u0275inj=Tc({imports:[ZB,e2,gN,Ly,EL,ZM,LH,yQ,cC,X1,d2]});var g2=function(){Z.apply(this,arguments);this.element=n(ff);this.cdr=n(NA,{self:!0});this.location=n(cI);this.hotkeys=n(nH);this.focusedIndex=0;this.slos=[]};Y(g2,Z);g2.\u0275dir=Z.\u0275dir;g=g2.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};g.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.ngOnInit=function(){var a=this,b=oH(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.slos[a].name};g.editSlo=function(a){this.location.path(Fq.editSlo.makeHref(a.sloId))};
g2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(g2)))(b||g2)}}();
g2.\u0275cmp=B({type:g2,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},standalone:!1,features:[hh([NA]),kg],decls:17,vars:0,consts:[[1,"pop-grid","bv2-resource-list","bv2-slo-grid"],[1,"header-row"],[1,"focus-indicator"],[1,"bv2-columnheader-content"],[1,"pop-grid-default-th"],[1,"pop-grid-non-sort-header"],["tabindex","0",1,"bv2-resource-list-row",3,"grid-focus"],["tabindex","0",1,"bv2-resource-list-row",3,"click","focus"],[1,"bv2-resource-list-cell","slo-name","clickable"],["tabindex","-1",1,"grid-link",
3,"href"],[1,"bv2-resource-list-cell","slo-description","clickable"]],template:function(a,b){a&1&&(I(0,"table",0)(1,"thead")(2,"tr",1),K(3,"th",2),I(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," SLO name "),J()()()(),I(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),J()()()()()(),I(14,"tbody"),Dg(15,fBb,7,7,"tr",6,Cg),J()());a&2&&(z(15),Eg(b.slos))},styles:[".bv2-slo-grid[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary)}.bv2-slo-grid[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-transform:initial}"]});var h2=function(){};h2.\u0275fac=function(a){return new (a||h2)};h2.\u0275mod=Jf({type:h2});h2.\u0275inj=Tc({imports:[ZB]});var i2=function(){this.log=n(MA);this.dateFormatter=n(YL)},v7c=function(a,b){var c=Cnb(b.addMask.paths),d=Cnb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var h=l(new Set([].concat(p(c),p(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=Ssc.get(q);if(q==="name"){var u=Zr(d,q,b.name);q=Zr(c,q,f.name);e.diffs.push($r(k,u,q))}else if(q==="description")u=Zr(d,q,b.description),q=Zr(c,q,f.description),e.diffs.push($r(k,u,q));else if(q==="parentId")u=
Zr(d,q,String(b.parentId)),q=Zr(c,q,String(f.parentId)),e.diffs.push($r(k,u,q));else if(q==="elements"){var A=f.elements;u=Dnb(d,q,b.elements.map(function(G){return u7c(G)}));q=Dnb(c,q,A.map(function(G){return u7c(G)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:u,added:q}})}else a.log.error("Unsupported diff field.")}return e},u7c=function(a){var b=a.matcher,c=Rsc.get(a.metric),d=NAb.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>1?"s":""));
a.objective.seconds>0&&e.push(YPa(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275prov=Sc({token:i2,factory:i2.\u0275fac,providedIn:"root"});var j2=function(){};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275mod=Jf({type:j2});j2.\u0275inj=Tc({imports:[ZB,$B,$K]});var y7c=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=l(w7c);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a[c]){var d=a[c],e=void 0;Array.isArray(d)?e=d.map(function(f){return typeof f==="string"?Fa(f):""}):e=typeof d==="string"?Fa(d):"";this.templateAttributes[c]=e}b=l(x7c);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]&&(this.templateAttributes[c]=a[c]);if(a=a.customFields)for(a=Array.isArray(a)?a:[a],a=l(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),Ca(c)||(this.templateCustomFields[b[0]]=c)},A7c=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||z7c.some(function(b){return a.templateAttributes[b]!=null})},F7c=function(a,b,c){c!=null&&(B7c(a,c),C7c(a,b,c),D7c(b,c));c=l(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;E7c[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},C7c=function(a,b,c){b.customField==null&&(b.customField=
[]);for(var d={},e=l(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=l(Object.entries(a.templateCustomFields));var h=e.next();for(f={};!h.done;f={customFieldId$jscomp$30:void 0},h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;f.customFieldId$jscomp$30=Vj(h);k={customFieldId:f.customFieldId$jscomp$30,value:k};h=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$30]!=null?(f=b.customField.findIndex(function(q){return function(u){return u.customFieldId===
q.customFieldId$jscomp$30}}(f)),b.customField[f]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
y7c.prototype.getCustomFieldValue=function(a,b){var c={customFieldId:a.customFieldId};if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=XEa(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=YEa(a.value)||void 0;break;case "REPEATED_TEXT":d=a.value.split(",");c.repeatedTextValue={values:d};break;case "REPEATED_DATE":d=a.value.split(",").map(function(e){return XEa(e)}).filter(function(e){return e!==
null});c.repeatedDateValue={values:d};break;case "REPEATED_ENUM":d=a.value.split(",");c.repeatedEnumValue={values:d};break;case "REPEATED_NUMERIC":d=a.value.split(",").map(function(e){return YEa(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};y7c.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var B7c=function(a,b){a.templateCustomFields=Ti(a.templateCustomFields,function(c,d){return!!b[d]})},D7c=function(a,b){if(a.customField!=null){a=l(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues:void 0},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=c.repeatedEnumValue.values.filter(function(h){return function(k){return h.allowedValues.includes(k)}}(d)),
!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},w7c="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),x7c=["inProd"],z7c="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),k2={},E7c=(k2.cc=function(a,b){a.ccUsers=
jBb(b,a.ccUsers||[])},k2.collaborators=function(a,b){a.collaboratorsUsers=jBb(b,a.collaboratorsUsers||[])},k2.title=function(a,b){typeof b==="string"&&(a.title=b)},k2.assignee=function(a,b){iBb(b,function(c){a.assigneeUser=c})},k2.reporter=function(a,b){iBb(b,function(c){a.reporterUser=c})},k2.verifier=function(a,b){iBb(b,function(c){a.verifierUser=c})},k2.hotlistIds=function(a,b){if(b=gBb(b)){a.hotlistId||(a.hotlistId=[]);b=l(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},k2.blockingIssueIds=
function(a,b){if(b=gBb(b))a.blockingIssueId=b.map(String)},k2.blockedByIssueIds=function(a,b){if(b=gBb(b))a.blockedByIssueId=b.map(String)},k2.foundIn=function(a,b){typeof b==="string"&&(a.foundInVersion=b.split(","))},k2.targetedTo=function(a,b){typeof b==="string"&&(a.targetedToVersion=b.split(","))},k2.inProd=function(a,b){a.inProd=b==="true"},k2.priority=function(a,b){if(b=hBb(sEc,b))a.priority=lk(b)},k2.severity=function(a,b){if(b=hBb(xEc,b))a.severity=Xua(b)},k2.type=function(a,b){if(b=hBb(uEc,
b))a.type=Wua(b)},k2);var l2=function(){this.issueRelationshipApi=n(OF);this.issueApi=n(BE)};
l2.prototype.bulkEdit=function(a){var b=this,c,d,e,f,h,k,q,u,A,G,H,N,O;return w(function(U){switch(U.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("wf");h={};k=[];q=[];u=Tua(e);A=l(u.reverse());G=A.next();case 2:if(G.done){U.jumpTo(4);break}H=G.value;te(U,5);return f==="ADD"?(N=H.map(function(da){return{targetIssueId:da,afterIssueId:void 0}}),x(U,Ge(zrc(b.issueRelationshipApi,d,N)),8)):x(U,Ge(Arc(b.issueRelationshipApi,d,H)),
8);case 8:return x(U,b.issueApi.batchGetIssuesFull(H).then(function(da){return da.map(function(ma){return h[ma.issueId]=ma})}),11);case 11:uu(U,3);break;case 5:O=xe(U);if(!Wo(O))throw O;q.push(O);k.push.apply(k,p(H));case 3:G=A.next();U.jumpTo(2);break;case 4:return U.return({finishedIssues:h,notFinishedIssueIds:k,errors:q})}})};l2.\u0275fac=function(a){return new (a||l2)};l2.\u0275prov=Sc({token:l2,factory:l2.\u0275fac,providedIn:"root"});var m2=function(){Z.apply(this,arguments);this.routerEvents=n(BF);this.bLocation=n(cI);this.history=[]};Y(m2,Z);m2.\u0275dir=Z.\u0275dir;m2.prototype.install=function(){var a=this;this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.history.push(a.bLocation.getUrl());a.history.length>21&&a.history.shift()}))};m2.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};m2.prototype.hasPreviousPage=function(){return this.history.length>1};
var n2=function(a){if(a.hasPreviousPage()){a.history.pop();var b=a.history.pop();b?a.bLocation.setUrl(b):a.bLocation.setUrl("/")}else a.bLocation.setUrl("/")};m2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(m2)))(b||m2)}}();m2.\u0275prov=Sc({token:m2,factory:m2.\u0275fac,providedIn:"root"});var o2=function(){this.issueApi=n(BE);this.templatesApi=n(mD);this.errorHandler=n(DK);this.userAccess=n(jE);this.activeSession=n(Es)},H7c=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ua(c.snapshot),h,k=(h=c.description)==null?void 0:h.unlinkifiedComment,q;h=(q=c.description)==null?void 0:q.formattedComment;f.comment=k?k.trim():h?xxa(h):"";f.status="NEW";f.changelist=null;f.gerritChanges=null;f.duplicateIssueId=null;f.duplicateOfIssueId=null;return e.call(d,
{},{snapshot:f},{trackerId:c.trackerId})}).then(function(c){return G7c(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},G7c=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return kE(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,h){return e[h]});return b})};o2.\u0275fac=function(a){return new (a||o2)};o2.\u0275prov=Sc({token:o2,factory:o2.\u0275fac,providedIn:"root"});var p2=function(){this.bLocation=n(cI);this.routeParams=n(bL);this.domSafe=n(rL)},I7c=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&Aa(d,"id=")||Aa(d,"bugId="))d+=c;sL(a.domSafe,d)}else{var e;a.bLocation.replaceUrl((e=d)!=null?e:b)}};p2.\u0275fac=function(a){return new (a||p2)};p2.\u0275prov=Sc({token:p2,factory:p2.\u0275fac,providedIn:"root"});var J7c={provide:goc,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},K7c={provide:goc,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var q2=function(){this.activeSession=n(Es)};q2.prototype.intercept=function(a,b){var c=a.method;return c==="POST"||c==="PUT"||c==="DELETE"?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};q2.\u0275fac=function(a){return new (a||q2)};q2.\u0275prov=Sc({token:q2,factory:q2.\u0275fac,providedIn:"root"});var L7c={provide:Hic,useClass:q2,multi:!0};var r2=function(){this.http=n(kA)};Y(r2,yC);g=r2.prototype;g.get=function(a){return this.request("get",a)};g.delete=function(a){return this.request("delete",a)};g.post=function(a){return this.request("post",a,a.body)};g.put=function(a){return this.request("put",a,a.body)};g.request=function(a,b,c){var d=b.options;d=d===void 0?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params)};var e,f;c==null?f=void 0:f=Fda(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(y(kBb(b.responseConstructor)))};
r2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(r2)))(b||r2)}}();r2.\u0275prov=Sc({token:r2,factory:r2.\u0275fac,providedIn:"root"});var s2=function(){this.jspbExecutor=n(r2)};Y(s2,zC);s2.prototype.get=function(a){return Ge(this.jspbExecutor.get(a))};s2.prototype.delete=function(a){return Ge(this.jspbExecutor.delete(a))};s2.prototype.post=function(a){return Ge(this.jspbExecutor.post(a))};s2.prototype.put=function(a){return Ge(this.jspbExecutor.put(a))};
s2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(s2)))(b||s2)}}();s2.\u0275prov=Sc({token:s2,factory:s2.\u0275fac,providedIn:"root"});var t2=function(){};t2.\u0275fac=function(a){return new (a||t2)};t2.\u0275mod=Jf({type:t2});t2.\u0275inj=Tc({providers:[{provide:yC,useClass:r2},{provide:zC,useClass:s2}],imports:[ZB]});var u2=function(){var a=this;this.fridge=n(jD);this.userAccess=n(jE);this.currentComponentId="";this.providedComponentId$=new ag(1);this.accessCheckIsThinking$=new tj(!0);this.component$=this.providedComponentId$.pipe(fg(function(b){return a.fridge.watch(b)}));this.userIsComponentReader$=this.providedComponentId$.pipe(fg(function(b){b!==a.currentComponentId&&(a.accessCheckIsThinking$.next(!0),a.currentComponentId=b);return kE(a.userAccess,"reader","components/"+b).then(function(c){return c},function(){return!1}).finally(function(){a.accessCheckIsThinking$.next(!1)})}));
this.isReady$=Je([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!b&&!c}),eg(!1));this.manageComponentLink=""};u2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};u2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};u2.\u0275fac=function(a){return new (a||u2)};
u2.\u0275cmp=B({type:u2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},standalone:!1,features:[Uu],decls:5,vars:6,consts:[[3,"isReady"],[3,"href"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",0),S(1,"async"),E(2,lBb,3,4,"a",1),S(3,"async"),Ag(4,mBb,2,1,"output"),J());a&2&&(D("isReady",T(1,2,b.isReady$)),z(2),F(T(3,4,b.userIsComponentReader$)?2:4))},dependencies:[mO,Qv],encapsulation:2});var w2=function(){this.documentationLinks=n(lK);this.activeSession=n(Es);this.loginRedirector=n(v2);this.isAnonymous=this.activeSession.isAnonymous();this.enableSignInAnonymousAccessDenied=Yr(this.activeSession,"enableSignInAnonymousAccessDenied");this.signInProgressing=this.showIssueMetadataContainer=!1};
ea.Object.defineProperties(w2.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=lm(a.modifiedTime);a.teamId&&a.teamId!==0&&(this.issueTeamId=String(a.teamId));if(a=a.issueState){this.issueType=xk(a.type);var b;this.issueStatus=(b=yk.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=jmc[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=W_a(a.accessLimitLevel)}this.showIssueMetadataContainer=
!0}else this.showIssueMetadataContainer=!1}}});w2.\u0275fac=function(a){return new (a||w2)};
w2.\u0275cmp=B({type:w2,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},standalone:!1,decls:9,vars:2,consts:[["issueMetadataContainer",""],["anonymousMessage",""],[1,"b-access-denied"],[1,"heading-l","margin-bottom"],[4,"ngTemplateOutlet"],[1,"carded","margin-top"],[3,"issuePriority"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"],[3,"componentId"],[3,"teamId"],"type button mat-flat-button  color primary".split(" "),["type","button",
"mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(I(0,"div",2)(1,"h3",3),Q(2," Access is denied to this issue "),J(),E(3,oBb,1,1,"ng-container"),E(4,qBb,1,1,"ng-container"),J(),C(5,tBb,40,13,"ng-template",null,0,nh)(7,xBb,3,1,"ng-template",null,1,nh));a&2&&(z(3),F(b.showIssueMetadataContainer?3:-1),z(),F(b.isAnonymous?4:-1))},dependencies:[Pv,u2,uO,KM,PA,Tx,ON,Tv],styles:[".b-access-denied[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;max-width:400px;min-width:300px;padding-right:8px;word-break:break-word}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{min-width:120px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}"],
changeDetection:0});var v2=function(){this.bLocation=n(cI)};v2.prototype.redirect=function(){var a=$h("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl())),b=window.location;a=ai(a);a!==void 0&&b.replace(a)};v2.\u0275fac=function(a){return new (a||v2)};v2.\u0275prov=Sc({token:v2,factory:v2.\u0275fac,providedIn:"root"});var x2=function(){};x2.\u0275fac=function(a){return new (a||x2)};x2.\u0275mod=Jf({type:x2});x2.\u0275inj=Tc({imports:[ZB,fR]});var y2=function(){};y2.\u0275fac=function(a){return new (a||y2)};y2.\u0275mod=Jf({type:y2});y2.\u0275inj=Tc({imports:[ZB,x2,UQ,LM,$B,QN]});var M7c=Symbol("yf"),N7c=RegExp("today([+-]\\d+)?"),A2=function(){this.ruleConfigService=n(z2)};
A2.prototype.build=function(a){if(a.customField)var b=a.customField.type==="DATE"?new B2(a,C2(this.ruleConfigService)):a.customField.type==="ENUM"?new O7c(a,C2(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new P7c(a,C2(this.ruleConfigService)):a.customField.type==="NUMERIC"?new D2(a,C2(this.ruleConfigService)):new E2(a,C2(this.ruleConfigService));else b=a.label.field,b=C2(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||F2)(a,C2(this.ruleConfigService));b[M7c](a);return b};
var bDb=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};A2.\u0275fac=function(a){return new (a||A2)};A2.\u0275prov=Sc({token:A2,factory:A2.\u0275fac,providedIn:"root"});
var Q7c=["OR","AND","NAND"],R7c=["OR","NAND"],S7c="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),T7c=["AND","OR","NAND"],U7c=["OR","LT","GT","LE","GE"],F2=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};F2.prototype[M7c]=function(a){this.initType(a);this.initValues(a)};
F2.prototype.initType=function(a){if(a.type)switch(a.operator){case "LT":this.type=a.negated?"GE":"LT";break;case "GT":this.type=a.negated?"LE":"GT";break;case "LE":this.type=a.negated?"GT":"LE";break;case "GE":this.type=a.negated?"LT":"GE";break;default:this.type=a.type==="OR"?a.negated?"NOR":"OR":a.type==="AND"?a.negated?"NAND":"AND":a.negated?"NAND":"OR"}else this.type=this.getLegalTypes()[0]};F2.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var V7c=function(a){var b=a.type==="NAND"||a.type==="NOR"||a.type==="NDURATION"||a.type==="NRANGE",c="EQ";if(a.type==="AND"||a.type==="NAND")var d="AND";else if(a.type==="OR"||a.type==="NOR")d="OR";else if(d="NIL",a.type==="LE"||a.type==="LT"||a.type==="GE"||a.type==="GT")c=a.type;b&&(d==="AND"?d="OR":d==="OR"&&(d="AND"));return{operator:c,joinType:d,negated:b}};
F2.prototype.toString=function(){var a=V7c(this),b=this.valuesToStrings().filter(function(e){return e}),c={GT:">",LT:"<",GE:">=",LE:"<=",EQ:":"};if(b.length===1)b=b[0];else if(b.length>1)b="("+b.join(a.joinType==="AND"?" ":" | ")+")";else return"";var d=W7c(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var W7c=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:Tj(b).toLowerCase()+(a.label.customFieldId||"")};F2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
F2.prototype.getWidgetType=function(){return"default"};F2.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};F2.prototype.getLegalTypes=function(){return Q7c};var X7c=[],G2=function(a,b){F2.call(this,a,b);this.enumValues={}};Y(G2,F2);g=G2.prototype;g.getLegalTypes=function(){return R7c};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=l(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=l(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[yBb(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(Ti(this.enumValues,function(a){return a}))};g.getOptions=function(){return X7c};var Y7c=Pba().map(function(a){return{id:"p"+a,label:"P"+a}}),Z7c=function(a,b){G2.call(this,a,b)};Y(Z7c,G2);
Z7c.prototype.getOptions=function(){return Y7c};var $7c=Pba().map(function(a){return{id:"s"+a,label:"S"+a}}),a8c=function(a,b){G2.call(this,a,b)};Y(a8c,G2);a8c.prototype.getOptions=function(){return $7c};
var b8c=[{id:"bug"},{id:"customer_issue",label:"customer issue"},{id:"feature_request",label:"feature request"},{id:"internal_cleanup",label:"internal cleanup"},{id:"process"},{id:"vulnerability"},{id:"privacy_issue",label:"privacy issue"},{id:"program"},{id:"project"},{id:"feature"},{id:"milestone"},{id:"epic"},{id:"story"},{id:"task"}],c8c=function(a,b){G2.call(this,a,b)};Y(c8c,G2);c8c.prototype.getOptions=function(){return b8c};
var d8c=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],e8c=function(a,b){G2.call(this,a,b)};Y(e8c,G2);e8c.prototype.getOptions=function(){return d8c};
var f8c=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],g8c=function(a,b){G2.call(this,a,b)};Y(g8c,G2);g8c.prototype.getOptions=function(){return f8c};var h8c=[{id:"limit_none",label:"default access"},{id:"limit_view",label:"limited visibility"},{id:"limit_append",label:"limited commenting"},{id:"limit_view_trusted",label:"limited visibility + Google"}],i8c=function(a,b){G2.call(this,a,b)};Y(i8c,G2);i8c.prototype.getOptions=function(){return h8c};
var j8c=[{id:"swe",label:km.SWE},{id:"sre",label:km.SRE},{id:"pm",label:km.PM},{id:"tpgm",label:km.TPGM},{id:"ux",label:km.UX}],k8c=function(a,b){G2.call(this,a,b)};Y(k8c,G2);k8c.prototype.getOptions=function(){return j8c};var O7c=function(a,b){G2.call(this,a,b);this.allowedValues=[]};Y(O7c,G2);O7c.prototype[M7c]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:yBb(b)}});G2.prototype[M7c].call(this,a)};
O7c.prototype.valuesToStrings=function(){return Object.keys(Ti(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};O7c.prototype.getOptions=function(){return this.allowedValues};var P7c=function(a,b){F2.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=(d=(c=a.customField)==null?void 0:c.allowedValue)!=null?d:[]};Y(P7c,F2);P7c.prototype.getWidgetType=function(){return"repeated-enum"};P7c.prototype.getOptions=function(){return this.allowedValues};
var qs=function(a,b){F2.call(this,a,b);this.csv=""};Y(qs,F2);qs.prototype.getWidgetType=function(){return"csv"};qs.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};qs.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var H2=function(a,b){qs.call(this,a,b)};Y(H2,qs);H2.prototype.getWidgetType=function(){return"id"};
H2.prototype.valuesToStrings=function(){return qs.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(Vj(a))})};var l8c=function(a,b){qs.call(this,a,b)};Y(l8c,H2);l8c.prototype.getLegalTypes=function(){return R7c};var I2=function(a,b){qs.call(this,a,b)};Y(I2,qs);I2.prototype.getWidgetType=function(){return"user"};var J2=function(a,b){qs.call(this,a,b)};Y(J2,I2);J2.prototype.getLegalTypes=function(){return R7c};
var B2=function(a,b){F2.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Y(B2,F2);var HCb=function(a){return a&&typeof a==="string"?a:""};B2.prototype.initType=function(a){F2.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&(b.type==="RANGE"?this.type=a.negated?"NRANGE":"RANGE":Aa(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};B2.prototype.getWidgetType=function(){return"date"};
B2.prototype.initValues=function(a){if(a.values){var b=a.values[0].simpleValues[0].value;if(this.type==="DURATION"||this.type==="NDURATION")this.duration=b.slice(0,b.length-1);else if(this.dateFrom=m8c(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=m8c(a.values[0].simpleValues[1].value)}};
B2.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=Vj(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&n8c(this.dateFrom)||(new Uj).toIsoString(!0);var b=this.dateTo&&n8c(this.dateTo)||(new Uj).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&n8c(this.dateFrom)||(new Uj).toIsoString(!0)]};
var o8c=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},m8c=function(a){if(N7c.test(a))return a;var b=new bk(2E3);a=Fa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(tbc);if(d){var e=Number(d[2]),f=Number(d[3]),h=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));h?(b.setDate(1),b.setMonth(0),b.add(new Lv("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new Lv("d",(d<=4?1-d:8-d)+(Number(k)+7*
(Number(c)-1))-1))):(e&&(b.setDate(1),b.setMonth(e-1)),f&&b.setDate(f));c=!0}else c=!1;if(c&&!(c=a.length<2)){c=a[1];a=c.match(vbc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var q=0;else q=Number(a[2])*60+Number(a[3]),q*=a[1]=="-"?1:-1;if(h=c.match(ubc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var u=h[4]?Number(h[4])*1E3:0;(h=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,u);h&&(a-=126227808E5);b.setTime(a+q*6E4)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?Number(h[4])*1E3:0);c=!0}else c=!1}return o8c(c?b:null)},n8c=function(a){if(N7c.test(a))return a;a=a.split("/").map(Number);return(new Uj(a[2],a[0]-1,a[1])).toIsoString(!0)};B2.prototype.getLegalTypes=function(){return S7c};var K2=function(a,b){F2.call(this,a,b)};Y(K2,F2);K2.prototype.getWidgetType=function(){return"bool"};
K2.prototype.initType=function(a){var b=a.type==="OR"||a.type==="";a.values&&(b=a.values[0].simpleValues[0].value.toLowerCase()==="true");a.negated&&(b=!b);this.type=b?"OR":"NAND"};K2.prototype.toString=function(){return W7c(this)+":"+(this.type==="OR")};K2.prototype.getLegalTypes=function(){return R7c};var L2=function(a,b){F2.call(this,a,b)};Y(L2,F2);L2.prototype.getWidgetType=function(){return"boolwithall"};
L2.prototype.initType=function(a){this.getLegalTypes().includes(a.type)?this.type=a.type:this.type=this.getLegalTypes()[0];if(a.values)switch(a.values[0].simpleValues[0].value){case "true":this.type="OR";break;case "false":this.type="NAND";break;case "all":this.type="AND"}a.negated&&this.type!=="AND"&&(this.type=this.type==="OR"?"NAND":"OR")};L2.prototype.toString=function(){var a=W7c(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
L2.prototype.getLegalTypes=function(){return T7c};var E2=function(a,b){F2.call(this,a,b)};Y(E2,F2);E2.prototype.getWidgetType=function(){return"text"};E2.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){b=b.simpleValues[0];var c=b.value;b.type==="QUOTED_TEXT"&&(c=c.slice(1,c.length-1));return{value:c}})};E2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value.includes(" ")?'"'+a.value+'"':a.value})};
var p8c=function(a,b){F2.call(this,a,b)};Y(p8c,F2);p8c.prototype.getWidgetType=function(){return"component"};p8c.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};Aa(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};p8c.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var q8c=function(a,b){F2.call(this,a,b)};Y(q8c,F2);q8c.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};Aa(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};q8c.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var r8c=function(a,b){F2.call(this,a,b)};Y(r8c,F2);r8c.prototype.getWidgetType=function(){return"tracker"};
var s8c=function(a,b){F2.call(this,a,b)};Y(s8c,q8c);s8c.prototype.getWidgetType=function(){return"team"};var t8c=function(a,b){F2.call(this,a,b)};Y(t8c,F2);t8c.prototype.getWidgetType=function(){return"hotlist"};var u8c=function(a,b){F2.call(this,a,b)};Y(u8c,F2);u8c.prototype.getWidgetType=function(){return"savedsearch"};var D2=function(a,b){qs.call(this,a,b)};Y(D2,qs);D2.prototype.getWidgetType=function(){return"number"};D2.prototype.getLegalTypes=function(){return U7c};
var v8c=function(a,b){B2.call(this,a,b)};Y(v8c,B2);v8c.prototype.initType=function(a){B2.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var M2={},w8c=(M2.ATTACHMENT={ruleCtor:E2,name:"Attachment name"},M2.COMMENT={ruleCtor:E2},M2.TITLE={ruleCtor:E2},M2.ASSIGNEE={ruleCtor:J2},M2.MODIFIER={ruleCtor:I2},M2.REPORTER={ruleCtor:J2},M2.VERIFIER={ruleCtor:J2},M2.CC={ruleCtor:I2},M2.COLLABORATOR={ruleCtor:I2},M2.COMPONENT_ID={ruleCtor:p8c,name:"Component"},M2.TRACKER_ID={ruleCtor:r8c,name:"Tracker"},M2.TYPE={ruleCtor:c8c},M2.STATUS={ruleCtor:e8c},M2.PRIORITY={ruleCtor:Z7c},M2.SEVERITY={ruleCtor:a8c},M2.BLOCKED_BY_ID={ruleCtor:H2},M2.BLOCKING_ID=
{ruleCtor:H2},M2.PARENT_ID={ruleCtor:H2},M2.CANONICAL_ID={ruleCtor:l8c},M2.ID={ruleCtor:l8c},M2.FOUND_IN={ruleCtor:qs},M2.TARGETED_TO={ruleCtor:qs},M2.VERIFIED_IN={ruleCtor:qs},M2.CL={ruleCtor:qs,name:"Changelists"},M2.MODIFIED={ruleCtor:B2},M2.RESOLVED={ruleCtor:v8c},M2.CREATED={ruleCtor:B2},M2.VERIFIED={ruleCtor:v8c},M2.DELETION_TIME={ruleCtor:B2,name:"Deletion time"},M2.SAVED_SEARCH_ID={ruleCtor:u8c,name:"Saved search"},M2.HOTLIST_ID={ruleCtor:t8c,name:"Hotlist"},M2.STAR={ruleCtor:K2,name:"Starred"},
M2.MUTE={ruleCtor:K2,name:"Muted"},M2.VOTE={ruleCtor:K2,name:"Upvoted by me"},M2.IN_PROD={ruleCtor:K2,name:"In production"},M2.CC_COUNT={ruleCtor:D2},M2.COLLABORATOR_COUNT={ruleCtor:D2},M2.DUPLICATE_COUNT={ruleCtor:D2},M2.VOTE_COUNT={ruleCtor:D2},M2.COMMENT_COUNT={ruleCtor:D2},M2.DESCENDANT_COUNT={ruleCtor:D2},M2.OPEN_DESCENDANT_COUNT={ruleCtor:D2},M2.ONE_DAY_VIEW_COUNT={ruleCtor:D2},M2.SEVEN_DAY_VIEW_COUNT={ruleCtor:D2},M2.THIRTY_DAY_VIEW_COUNT={ruleCtor:D2},M2.LAST_MODIFIER={ruleCtor:J2,name:"Last Modified By"},
M2.COMMENTER={ruleCtor:I2},M2.LAST_COMMENTER={ruleCtor:J2},M2.ARCHIVED={ruleCtor:L2},M2.IS_DELETED={ruleCtor:K2,name:"Deleted",queryLabel:"deleted"},M2.DELETION_REASON={ruleCtor:g8c,name:"Deletion reason"},M2.ACCESS_LEVEL={ruleCtor:i8c,name:"Issue access level"},M2.STAFFING_PLACEHOLDER={ruleCtor:k8c,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"},M2.STAFFING_PLACEHOLDER_COUNT={ruleCtor:D2,name:"Staffing - Placeholder Count",queryLabel:"staffingplaceholdercount"},M2.STAFFING_USER={ruleCtor:I2,
name:"Staffing - User",queryLabel:"staffinguser"},M2.STAFFING_USER_COUNT={ruleCtor:D2,name:"Staffing - User Count",queryLabel:"staffingusercount"},M2._TEXT_={ruleCtor:E2,queryLabel:"",name:"All fields"},M2),x8c=Object.assign({},w8c,{EFFORT_LABEL:{ruleCtor:qs},MENTION:{ruleCtor:I2},MIN_SLO_TARGET:{ruleCtor:B2,name:"Nearest SLO",queryLabel:"nearestslo"},POSTMORTEM:{ruleCtor:qs,name:"Postmortems"},TEAM_ID:{ruleCtor:s8c,name:"Team"}}),y8c={ESCALATION_OWNER:{ruleCtor:J2}},z2=function(){this.activeSession=
n(Es)},C2=function(a){var b=a.activeSession.isExternalSession()?w8c:x8c;return Yr(a.activeSession,"enableEscalationOwnerRolloutUi")?Object.assign({},b,y8c):b};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275prov=Sc({token:z2,factory:z2.\u0275fac,providedIn:"root"});var z8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(z8c,V);g=z8c.prototype;g.getField=function(){return pl(this,1)};g.clearField=function(){return tq(this,1)};g.getCustomFieldId_asLegacyNumberOrString=function(){return Iu(this,2)};g.getCustomFieldId_asString=function(){return sl(this,2)};g.setCustomFieldId=function(a){return Vl(this,2,a)};g.hasCustomFieldId=function(){return bc(rl(this,2))!=null};var EBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(EBb,V);g=EBb.prototype;g.getType=function(){return pl(this,1)};g.setType=function(a){return Sl(this,1,a)};g.hasType=function(){return nl(this,1)};g.getValue=function(){return Oh(this,2)};g.setValue=function(a){return Rl(this,2,a)};g.hasValue=function(){return ml(this,2)};var N2=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(N2,V);g=N2.prototype;g.getType=function(){return pl(this,1)};g.setType=function(a){return Sl(this,1,a)};g.hasType=function(){return nl(this,1)};g.getValuesList=function(a){return Wk(this,N2,2,Fk(a))};g.setValuesList=function(a){return sn(this,2,a)};g.setValues=function(a,b){Bu(this,2,N2,a,b)};var MBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MBb,V);g=MBb.prototype;g.getType=function(){return pl(this,1)};g.setType=function(a){return Sl(this,1,a)};g.hasType=function(){return nl(this,1)};g.getValuesList=function(a){return Wk(this,N2,2,Fk(a))};g.setValuesList=function(a){return sn(this,2,a)};g.setValues=function(a,b){Bu(this,2,N2,a,b)};g.getLabel=function(){return X(this,z8c,4)};g.setLabel=function(a){return W(this,z8c,4,a)};
g.hasLabel=function(){return nk(this,z8c,4)};var ls=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ls.messageId)};Y(ls,V);ls.prototype.getType=function(){return pl(this,1)};ls.prototype.setType=function(a){return Sl(this,1,a)};ls.prototype.hasType=function(){return nl(this,1)};ls.messageId="b.QueryBuilderResponse";var JBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JBb.messageId)};Y(JBb,V);JBb.messageId="b.SyntaxErrorResponse";var A8c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,A8c.messageId)};Y(A8c,V);A8c.prototype.getKindCase=function(){return vm(this,KBb)};var KBb=[1,2];A8c.messageId="b.QueryBuilderResponseOrError";var O2=function(){this.executor=n(zC)},B8c=function(a,b){b=Cn(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:A8c}).then(NBb).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(zBb)});return c})};O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275prov=Sc({token:O2,factory:O2.\u0275fac,providedIn:"root"});var P2=function(){var a=this;this.trackerFridge=n(IG);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new LA;this.searchQuery$=new bg;this.trackerSuggestions$=this.searchQuery$.pipe(Sf(300),Xf(),fg(function(b){return a.trackerFridge.watchMany({filter:b,pageSize:5})}),y(function(b){return b.results}));this.displayFn=function(b){return b?b.name:""}};P2.prototype.ngAfterViewInit=function(){};P2.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
P2.prototype.search=function(a){this.searchQuery$.next(a)};P2.\u0275fac=function(a){return new (a||P2)};
P2.\u0275cmp=B({type:P2,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&Wg(AM,7);if(a&2){var c;$g(c=ah())&&(b.autocompleteTrigger=c.first)}},inputs:{selectedTracker:"selectedTracker",placeholder:"placeholder",disabled:"disabled"},outputs:{onTrackerSelect:"onTrackerSelect"},standalone:!1,decls:7,vars:8,consts:[["trackerSearchInput",""],["auto","matAutocomplete"],["id","tracker-id","type","text","autocomplete","off","aria-label","Tracker selection",3,"click","input","placeholder","ngModel",
"disabled","matAutocomplete"],[3,"optionSelected","displayWith"],[1,"tracker-search-result",3,"value"],[1,"tracker-name"]],template:function(a,b){if(a&1){var c=r();I(0,"input",2,0);M("click",function(){t(c);var d=L(1);return v(b.search(d.value))})("input",function(){t(c);var d=L(1);return v(b.search(d.value))});J();I(2,"mat-autocomplete",3,1);M("optionSelected",function(d){t(c);return v(b.updateSelectionOnChange(d))});Dg(4,OBb,3,2,"mat-option",4,Cg);S(6,"async");J()}a&2&&(a=L(3),D("placeholder",b.placeholder)("ngModel",
b.selectedTracker)("disabled",b.disabled)("matAutocomplete",a),ng("aria-disabled",b.disabled),z(2),D("displayWith",b.displayFn),z(2),Eg(T(6,6,b.trackerSuggestions$)))},dependencies:[xM,zM,Lx,AM,Li,oy,vy,Qv],styles:[".tracker-search-result.mat-mdc-option[_ngcontent-%COMP%]{line-height:normal;height:auto;padding:0 8px}.tracker-search-result.mat-mdc-option.mat-active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.tracker-search-result[_ngcontent-%COMP%]   .tracker-name[_ngcontent-%COMP%]{color:#202124;color:var(--text);font-size:.8125rem;padding:4px 0;overflow-wrap:break-word;white-space:pre-wrap}"],
changeDetection:0});var Q2=function(){Z.apply(this,arguments);this.analytics=n(CF);this.customFieldsApi=n(TD);this.savedSearchApi=n(MD);this.hotlistApi=n(ED);this.trackerFridge=n(IG);this.issueSearchResources=n(O2);this.activeSession=n(Es);this.elementRef=n(ff);this.errorHandler=n(DK);this.componentActions=n(oN);this.teamsService=n(yG);this.searchRuleConfigService=n(z2);this.searchRuleFactory=n(A2);this.cdr=n(NA,{self:!0});this.trackerHelpers=n(LK);this.currentUserBookmarksFridge=n(OD);this.sessionIsInternal=this.activeSession.isInternalSession();
this.isTrackerSearchEnabled=!1;this.typeLabels=C8c;this.globalTypeLabels=D8c;this.availableLabels=[];this.state="INIT";this.expressions=[];this.components={};this.trackers={};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.trackerUnderEdit=this.teamUnderEdit=this.componentUnderEdit=this.chipUnderEdit=null};Y(Q2,Z);Q2.\u0275dir=Z.\u0275dir;
var E8c=function(a){var b=[];Si(C2(a.searchRuleConfigService),function(c,d){d==="SAVED_SEARCH_ID"||d==="TRACKER_ID"&&!a.isTrackerSearchEnabled||d==="TEAM_ID"&&!a.sessionIsInternal||(c.name?b.push([d,c.name]):b.push([d,uua(d)]))},a);b.sort(function(c,d){return Mba(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};Q2.prototype.schedule=function(a){this.subscriptions.add(Re.schedule(a))};Q2.prototype.ngOnInit=function(){this.cdr.detectChanges()};
Q2.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=E8c(this))};
var H8c=function(a,b){a.reset();b?F8c(a,b):(a.expressions=G8c.map(function(c){return bDb(a.searchRuleFactory,c)}),a.state="SUCCESS");Ge(uoc(a.currentUserBookmarksFridge)).then(function(c){a.userSavedSearches=c;c=l(a.userSavedSearches);for(var d=c.next();!d.done;d=c.next())d=d.value,a.savedSearches[d.searchId]=d;a.cdr.detectChanges()});Ge(PD(a.currentUserBookmarksFridge)).then(function(c){a.userHotlists=c;c=l(a.userHotlists);for(var d=c.next();!d.done;d=c.next())d=d.value,a.hotlists[d.hotlistId]=d;
a.cdr.detectChanges()});a.cdr.detectChanges()},F8c=function(a,b){B8c(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",a.analytics.trackEvent("adv-search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return I8c(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=l(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state=
"NOT_REPRESENTABLE",a.analytics.trackEvent("adv-search","adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},I8c=function(a,b){b.label&&b.label.field==="TRACKER_ID"&&!a.isTrackerSearchEnabled&&(b.label.field="_TEXT_");b.label&&b.label.field==="TEAM_ID"&&!a.sessionIsInternal&&(b.label.field="_TEXT_");return b.label&&b.label.field==="CUSTOM_FIELD"&&b.label.customFieldId!==void 0?J8c(a,b.label.customFieldId).then(function(c){b.customField=
c;return K8c(a,b)}):Promise.resolve(K8c(a,b))},J8c=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},K8c=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;L8c(a,b);return b},L8c=function(a,b){switch(b.label.field){case "COMPONENT_ID":b=l(b.values);for(var c=b.next();!c.done;c=b.next())c=kn(c.value.value),a.components[c]||a.fetchComponent(c);break;case "TRACKER_ID":if(a.isTrackerSearchEnabled)for(b=
l(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.trackers[c]||M8c(a,c);break;case "TEAM_ID":if(a.sessionIsInternal)for(b=l(b.values),c=b.next();!c.done;c=b.next())c=c.value.value,a.teams[c]||N8c(a,c);break;case "SAVED_SEARCH_ID":b=l(b.values);for(c=b.next();!c.done;c=b.next())c=c.value,a.savedSearches[c.value]||a.savedSearchApi.get(c.value).then(function(d){a.savedSearches[d.searchId]=d});break;case "HOTLIST_ID":for(b=l(b.values),c=b.next();!c.done;c=b.next())c=c.value,a.hotlists[c.value]||
a.hotlistApi.get(c.value).then(function(d){a.hotlists[d.hotlistId]=d})}};Q2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;Gq(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var M8c=function(a,b){a.trackerFridge.watch(b).pipe(gg(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},N8c=function(a,b){AG(a.teamsService,b).pipe(Pf(function(){return Ce([])}),gg(a.destroyed$)).subscribe(function(c){c.length>0?(c=c[0],a.teams[b]={id:c.teamId,pathNames:c.pathNames,name:c.name,description:c.description}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},O8c=function(a){var b=a.expressionType==="AND"?" ":" | ";return k8b(a.expressions.map(function(c){return c.label?
c.toString():""}),$fc).join(b)};Q2.prototype.getState=function(){return this.state};Q2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var eDb=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=bDb(a.searchRuleFactory,d.field),cDb(a,a.expressions[b]));a.cdr.detectChanges()},cDb=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?os(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=o8c(new Uj)),b.dateTo||(b.dateTo=o8c(new Uj)))};
Q2.prototype.removeExpression=function(a){Za(this.expressions,a);this.cdr.detectChanges()};var os=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?kCb(a,c):b.label.field==="TRACKER_ID"?rCb(a,c):b.label.field==="TEAM_ID"?yCb(a,c):b.label.field==="CUSTOM_FIELD"?UBb(a,c):ps(a,c);a.cdr.detectChanges()},ns=function(a,b,c){Za(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()};
Q2.prototype.getDateValue=function(a){var b,c=a.match(N7c);return c?(b||(b=new Date),c[1]&&b.setDate(b.getDate()+ +c[1]),String(b.getUTCMonth()+1)+"/"+String(b.getUTCDate())+"/"+String(b.getUTCFullYear())):a};
var ps=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},kCb=function(a,b){ps(a,b);a.componentUnderEdit=b.value?Qj(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},UBb=function(a,b){ps(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},rCb=function(a,b){ps(a,b);a.trackerUnderEdit=b.value?Qj(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
yCb=function(a,b){ps(a,b);a.teamUnderEdit=b.value?Qj(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},ms=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},ACb=function(a,b){a.analytics.trackEvent("search","builder-autocomplete-select","team",isNaN(Number(b.id))?0:Number(b.id));a.chipUnderEdit.value=b.id;a.teams[b.id]=b;a.teamUnderEdit=null;ms(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
Q2.prototype.getTypeLabel=function(a,b){var c,d;return((c=this.typeLabels[a.label.field])==null?void 0:c[b])||((d=this.typeLabels[a.getWidgetType()])==null?void 0:d[b])||this.typeLabels.DEFAULT[b]};Q2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};Q2.prototype.getComponentPath=function(a){if(!a)return"";var b=rs(this.trackerHelpers,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
var D8c={AND:"Match all (AND)",OR:"Match any (OR)"},C8c={DEFAULT:{AND:"All of",OR:"Any of",NOR:"Not all of",NAND:"None of",LT:"Before",GT:"After",LE:"On or before",GE:"On or after",DURATION:"Within (days)",NDURATION:"Not within (days)",RANGE:"Between",NRANGE:"Not between"},bool:{OR:"Is true",NAND:"Is false"},boolwithall:{OR:"Is true",NAND:"Is false",AND:"Include all"},text:{OR:"Matches any",NAND:"Doesn't match",AND:"Matches all"},date:{OR:"On"},number:{LT:"Less than",GT:"Greater than",LE:"Less or equal",
GE:"Greater or equal"}},G8c=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];Q2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Q2)))(b||Q2)}}();
Q2.\u0275cmp=B({type:Q2,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},standalone:!1,features:[hh([NA]),kg,Uu],decls:1,vars:1,consts:[["newExpressionMenu","matMenu"],[1,"bv2-adv-search"],[1,"bv2-adv-search-title-container"],[1,"bv2-adv-search-title"],["appearance","outline","subscriptSizing","dynamic"],[1,"bv2-adv-search-rule"],[1,"bv2-adv-search-rule","bv2-adv-search-rule-new"],["mat-stroked-button","","type","button",1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",
3,"matMenuTriggerFor"],[1,"mat-select-panel"],["mat-menu-item","","type","button"],["color","primary",1,"bv2-adv-search-join-type",3,"ngModelChange","ngModel"],[3,"value"],[1,"bv2-adv-search-rule-title"],[1,"bv2-adv-search-rule-type","bv2-adv-search-rule-jfk-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-adv-search-rule-content"],[1,"bv2-adv-search-custom-field-label"],[1,"bv2-adv-search-custom-field-selection"],["type","button","aria-label","Delete search rule",1,"bv2-remove-icon",
"keep-focus-ring","bv2-adv-search-rule-delete-btn",3,"click"],[1,"bv2-adv-search-rule-op","bv2-adv-search-rule-jfk-select",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip-container"],[1,"bv2-adv-search-enum-rule"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn"],[1,"bv2-adv-search-chip","bv2-adv-search-custom-repeated-enum-chip"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"title"],[1,"bv2-adv-search-chip-content"],["type","button","aria-label",
"Remove the value",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-btn",3,"click","title"],[1,"bv2-adv-search-chip-content-text"],[1,"bv2-search-custom-repeated-enum-picker",3,"onValueChange","showPlaceholder","customFieldTitle","currentInputValue","allowedValues"],["type","button","mat-stroked-button","",1,"bv2-adv-search-chip-add-btn",3,"click"],[1,"bv2-adv-search-enum-item"],[3,"change","checked"],["type","text","aria-label",
"Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"ngModelChange","ngModel","bContactAutocomplete"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModelChange","ngModel"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModelChange","ngModel"],["type","text","aria-label","Add the condition",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip",
"bv2-adv-search-chip-text"],["type","button","aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["type","button","role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"click","title"],[3,"svgIcon"],[1,"bv2-search-component-picker",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-adv-search-chip","bv2-adv-search-tracker-chip"],[1,"bv2-search-tracker-picker",
3,"onTrackerSelect","selectedTracker"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["type","button","role","switch","aria-label","Include subteams",1,"unstyled-button",3,"click","title"],[1,"bv2-search-team-picker",3,"onTeamSelect","teamSelected"],[3,"boundValueChange","boundValue","isRequired"],["type","text","maxlength","3",1,"bv2-duration-field",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","subscriptSizing","dynamic",
1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],[3,"fieldSelected"],["mat-menu-item","","type","button",3,"click"]],template:function(a,b){a&1&&E(0,hDb,14,3,"div",1);a&2&&F(b.getState()==="SUCCESS"?0:-1)},
dependencies:[aB,bJ,o_,Li,oy,Hy,vy,M_,PA,Tx,YM,Xy,UG,XG,VG,YG,rP,zP,Lx,yM,CM,uY,P2,xN,DM,Vv,Klc],styles:['[_nghost-%COMP%]     .mat-mdc-form-field-infix{width:unset;min-width:105px;border:0}[_nghost-%COMP%]     .mat-mdc-select-value-text{max-width:unset;color:#5f6368;color:var(--muted);font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;letter-spacing:0.0107142857em;font-variant-ligatures:none}[_nghost-%COMP%]     .bv2-custom-field-picker{width:unset}[_nghost-%COMP%]     .bv2-adv-search-title-container .mat-mdc-form-field-infix{min-width:120px}.mat-mdc-form-field[_ngcontent-%COMP%]{margin-right:5px;text-align:center;display:inline-block}.mat-mdc-form-field[_ngcontent-%COMP%]{--mat-form-field-container-height:36px;--mat-form-field-filled-label-display:none;--mat-form-field-container-vertical-padding:6px;--mat-form-field-filled-with-label-container-padding-top:6px;--mat-form-field-filled-with-label-container-padding-bottom:6px}.bv2-adv-search-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.bv2-adv-search-title[_ngcontent-%COMP%]{font-weight:bold;padding-left:8px;margin-right:5px;display:inline-block;min-width:254px}.bv2-adv-search-bookmark-item-chip[_ngcontent-%COMP%]{align-items:baseline}.bv2-adv-search-bookmark-item-form-field[_ngcontent-%COMP%]{text-align:left;width:100%}div.bv2-adv-search-enum-item[_ngcontent-%COMP%]{max-width:170px;min-width:170px;padding:0}']});var R2=function(){};R2.\u0275fac=function(a){return new (a||R2)};R2.\u0275mod=Jf({type:R2});R2.\u0275inj=Tc({imports:[ZB,EM,GM,cC,Ly]});var S2=function(){};S2.\u0275fac=function(a){return new (a||S2)};S2.\u0275mod=Jf({type:S2});S2.\u0275inj=Tc({imports:[ZB,cJ,p_,Ly,W_,$B,ZM,aN,LH,yQ,GM,VB,wY,R2,jR,HM]});var T2=function(){this.domSafe=n(rL);this.buttonLabel="";this.alertMode=this.menuMode=!1},iDb=function(a){Lq(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};T2.\u0275fac=function(a){return new (a||T2)};
T2.\u0275cmp=B({type:T2,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},standalone:!1,decls:2,vars:1,consts:["type;button;mat-menu-item;;aria-label;Open release notes in a new tab".split(";"),["type","button","mat-icon-button","","aria-label","Open release notes in a new tab",3,"matTooltip"],["type","button","mat-menu-item","","aria-label","Open release notes in a new tab",3,"click"],["type","button","mat-icon-button","","aria-label",
"Open release notes in a new tab",3,"click","matTooltip"],[3,"svgIcon"]],template:function(a,b){a&1&&E(0,jDb,2,1,"button",0)(1,kDb,3,3,"button",1);a&2&&F(b.menuMode?0:1)},dependencies:[aB,PA,Ux,VG,YA,cB],styles:["[_nghost-%COMP%] { display: flex; }"]});var P8c=function(){};P8c.\u0275fac=function(a){return new (a||P8c)};P8c.\u0275cmp=B({type:P8c,selectors:[["b-feature-stage-label"]],inputs:{featureStage:"featureStage"},standalone:!1,decls:2,vars:1,consts:[[1,"badged","teamfood"],[1,"badged","early-access"]],template:function(a,b){a&1&&E(0,lDb,1,0,"div",0)(1,mDb,1,0,"div",1);if(a&2){var c;F((c=b.featureStage)==="TEAM_FOOD"?0:c==="EARLY_ACCESS"?1:-1)}},styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});var U2=function(){Z.apply(this,arguments);this.session=n(Es);this.appsEvents=n(nD);this.prefsManager=n(OG);this.enableWhatsNewDialog=Yr(this.session,"enableWhatsNewDialog");this.enableBeap=Yr(this.session,"enableBeap");this.ThemePreferencesDensity=Hkc;this.density="COMFORTABLE"};Y(U2,Z);U2.\u0275dir=Z.\u0275dir;g=U2.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(gg(this.destroyed$)).subscribe(function(b){if(b==null?0:b.themePreferences)a.density=b.themePreferences.density})};
g.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};g.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};g.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};g.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};U2.\u0275fac=function(){var a;return function(b){return(a||(a=fe(U2)))(b||U2)}}();
U2.\u0275cmp=B({type:U2,selectors:[["b-app-settings-menu"]],standalone:!1,features:[kg],decls:28,vars:13,consts:[["settingsMenu","matMenu"],["type","button","mat-icon-button","","matTooltip","Settings","aria-label","Settings",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to comfortable",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],
["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"click",4,"internalOnly"],["mat-menu-item","","href","/settings/early-access"],["featureStage","TEAM_FOOD","matTooltip","Teamfood"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,
b){if(a&1){var c=r();I(0,"button",1);K(1,"mat-icon",2);J();I(2,"mat-menu",null,0)(4,"div",3);Q(5,"Display Density");J();I(6,"button",4);M("click",function(){t(c);return v(b.setDensity(b.ThemePreferencesDensity.COMFORTABLE))});I(7,"span",5);K(8,"mat-icon",6);J();Q(9," Comfortable ");J();I(10,"button",7);M("click",function(){t(c);return v(b.setDensity(b.ThemePreferencesDensity.COZY))});I(11,"span",5);K(12,"mat-icon",6);J();Q(13," Cozy ");J();I(14,"button",8);M("click",function(){t(c);return v(b.setDensity(b.ThemePreferencesDensity.COMPACT))});
I(15,"span",5);K(16,"mat-icon",6);J();Q(17," Compact ");J();K(18,"mat-divider");I(19,"button",9);M("click",function(d){t(c);return v(b.browseComponents(d))});Q(20,"Browse components");J();I(21,"button",9);M("click",function(d){t(c);return v(b.manageHotlists(d))});Q(22,"Manage hotlists");J();C(23,nDb,2,0,"button",10);I(24,"button",9);M("click",function(d){t(c);b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey});return v()});Q(25,"Settings");J();E(26,oDb,3,0,"a",11);E(27,pDb,
2,1);J()}a&2&&(a=L(3),D("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),z(6),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),ng("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),z(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),ng("aria-checked",b.density===b.ThemePreferencesDensity.COZY),z(4),wg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMPACT),ng("aria-checked",b.density===b.ThemePreferencesDensity.COMPACT),
z(12),F(b.enableBeap?26:-1),z(),F(b.enableWhatsNewDialog?27:-1))},dependencies:[aB,UG,XG,VG,YG,PA,Ux,HL,YA,cB,T2,QS,P8c],encapsulation:2,changeDetection:0});var V2=function(){this.theme=n(VO);this.isDark=!1;this.iconName="dark-mode-filled"};V2.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();Q8c(this)};var Q8c=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};V2.\u0275fac=function(a){return new (a||V2)};
V2.\u0275cmp=B({type:V2,selectors:[["theme-change-btn"]],standalone:!1,decls:2,vars:1,consts:[["type","button","mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(I(0,"button",0),M("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&MBc(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());BLc(c,!c.clientDarkmodeSubject.getValue());
Q8c(b)}),K(1,"mat-icon",1),J());a&2&&(z(),D("svgIcon",b.iconName))},dependencies:[aB,PA,Ux,YA,cB],encapsulation:2});var W2=function(){this.session=n(Es);this.userFeedback=n(JS);this.domSafe=n(rL);this.docLinks=n(lK);this.enableWhatsNewDialog=Yr(this.session,"enableWhatsNewDialog");this.majorReleaseNotesUpdated=Yr(this.session,"majorReleaseNotesUpdated")};W2.prototype.openFeedbackDialog=function(){this.userFeedback.startFeedback()};W2.\u0275fac=function(a){return new (a||W2)};
W2.\u0275cmp=B({type:W2,selectors:[["b-app-actions"]],standalone:!1,decls:6,vars:1,consts:[["id","whatsNewButton",3,"alertMode"],["type","button","mat-icon-button","","class","feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["type","button","mat-icon-button","","matTooltip","Help","aria-label","help",3,"click"],["svgIcon","help-outline"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button",
3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(K(0,"theme-change-btn"),E(1,qDb,1,1,"b-whats-new-button",0),C(2,rDb,2,0,"button",1),I(3,"button",2),M("click",function(){var c=b.domSafe,d=c.openInNewTab;var e=b.docLinks;e=e.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide":e.baseDocumentationUrl;d.call(c,e)}),K(4,"mat-icon",3),J(),K(5,"b-app-settings-menu"));a&2&&(z(),F(b.enableWhatsNewDialog?1:-1))},dependencies:[aB,PA,Ux,YA,cB,
T2,QS,V2,U2],styles:["[_nghost-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;color:#5f6368;color:var(--icon)}.new-feature-link[_ngcontent-%COMP%]{color:#3c4043;color:var(--c800)}/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});var tDb=function(a){return[a]},uDb=function(){return[]},X2=function(){this.activeSession=n(Es);this.clickMenu=new LA;this.showMenu=!1;this.clickLogo=new LA;this.chips=[]};X2.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};X2.\u0275fac=function(a){return new (a||X2)};
X2.\u0275cmp=B({type:X2,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},standalone:!1,ngContentSelectors:["*"],decls:9,vars:5,consts:[["type","button","mat-icon-button","","aria-label","Expand/Collapse Navigation",1,"menu"],[3,"click"],["alt","",1,"logo","light",3,"src"],["alt","",1,"logo","dark",3,"src"],[1,"b-chip",3,"ngClass"],["type","button","mat-icon-button","","aria-label",
"Expand/Collapse Navigation",1,"menu",3,"click"],["svgIcon","menu-18px"]],template:function(a,b){a&1&&(Ng(),E(0,sDb,2,0,"button",0),I(1,"a",1),M("click",function(){return b.clickLogo.emit()}),K(2,"img",2)(3,"img",3),I(4,"h1"),Q(5),J()(),Og(6),Dg(7,vDb,2,5,"output",4,Cg));a&2&&(F(b.showMenu?0:-1),z(),ng("href",b.href?b.href:void 0,uf),z(),D("src",b.imgSrc,uf),z(),D("src",b.imgSrcDark||b.imgSrc,uf),z(2),ch(b.name),z(2),Eg(b.chips))},dependencies:[Mv,aB,PA,Ux],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:48px;padding:0 16px;min-width:300px}[_nghost-%COMP%], a[_ngcontent-%COMP%]{display:flex;align-items:center}.menu[_ngcontent-%COMP%]{color:#3c4043;color:var(--gfx);margin-right:12px}.logo[_ngcontent-%COMP%]{width:30px;height:30px;padding:3px;margin-right:12px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;color:#3c4043;color:var(--gfx);font-size:1.375rem;font-weight:normal;display:inline-block;margin:0;padding:0;margin-right:8px;white-space:nowrap}.dark-mode   [_nghost-%COMP%]     .logo{filter:brightness(1.1) contrast(1.3)}.logo.dark[_ngcontent-%COMP%]{display:none}.dark-mode   [_nghost-%COMP%]     .logo.light{display:none}.dark-mode   [_nghost-%COMP%]     .logo.dark{display:inline-block}/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});var Y2=function(){this.events=n(nD);this.imageUrls=n(qN);this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};Y2.prototype.ngOnInit=function(){var a=this.environmentType==="QA"?this.frontendAccessMode==="INTERNAL"||this.frontendAccessMode==="PARTNER"?"QA":"sandbox":this.environmentType==="NIGHTLY"?"nightly":this.environmentType==="DEV"?"dev":"";a&&this.chips.push({name:a,color:"purple"})};
Y2.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};Y2.prototype.getAppName=function(){if(this.tracker)return this.tracker.name;switch(this.frontendAccessMode){case "INTERNAL":return"Buganizer";case "PARTNER":return"Partner IssueTracker";case "PUBLIC":return"IssueTracker";default:Gb(this.frontendAccessMode,"unknown frontend access mode.")}};
ea.Object.defineProperties(Y2.prototype,{useNewLogo:{configurable:!0,enumerable:!0,get:function(){return this.frontendAccessMode==="INTERNAL"}},imgSrc:{configurable:!0,enumerable:!0,get:function(){var a=this.useNewLogo?this.imageUrls.LOGO_LIGHT:"https://www.gstatic.com/buganizer/img/v0/logo.svg",b,c;return((b=this.tracker)==null?void 0:(c=b.branding)==null?void 0:c.logoUrl)||a}},imgSrcDark:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.tracker)==null?void 0:(b=a.branding)==null?
void 0:b.logoUrl)||"https://www.gstatic.com/buganizer/img/v3/logo_dark.svg"}}});Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=B({type:Y2,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},standalone:!1,features:[Uu],decls:1,vars:5,consts:[[3,"clickMenu","name","href","chips","imgSrc","imgSrcDark"]],template:function(a,b){a&1&&(I(0,"app-logo",0),M("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),J());a&2&&D("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark)},dependencies:[X2],
encapsulation:2,changeDetection:0});var Z2=function(){this.isActive=!1;this.optionClicked=new LA};Z2.prototype.ngOnInit=function(){};Z2.prototype.onClick=function(){this.optionClicked.emit(this.index)};Z2.\u0275fac=function(a){return new (a||Z2)};
Z2.\u0275cmp=B({type:Z2,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&M("click",function(){return b.onClick()});a&2&&wg("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(Ng(),I(0,"div",0),Og(1),J())},styles:["[_nghost-%COMP%]{cursor:pointer;display:flex;position:relative}.active[_nghost-%COMP%]{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}[_nghost-%COMP%]:hover:not(.active){background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.content[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden;padding:8px 16px 8px 36px;text-overflow:ellipsis}.mat-ripple[_ngcontent-%COMP%]{pointer-events:none;position:absolute;height:100%;width:100%}/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});var a3=function(){this.ref=n(NA,{self:!0});this.hostElement=n(ff);this.trackerHelpers=n(LK);this.items=[];this.header=null;this.itemSelected=new LA;this.activeItemChanged=new LA;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component customField team tracker".split(" ")};a3.prototype.ngOnChanges=function(a){a.items&&(this.items.length>0?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};a3.prototype.ngAfterViewInit=function(){};
var WDb=function(a){var b=P(3);gEb(a);b.itemSelected.emit(a)};a3.prototype.setNextItemActive=function(){this.items.length>0&&this.activeItemIndex!=null&&(this.activeItemIndex=(this.activeItemIndex+1)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),R8c(this))};
a3.prototype.setPreviousItemActive=function(){this.items.length>0&&this.activeItemIndex!=null&&(this.activeItemIndex=(this.activeItemIndex-1+this.items.length)%this.items.length,this.activeItemChanged.emit(this.items[this.activeItemIndex]),this.ref.markForCheck(),R8c(this))};var S8c=function(a){a.activeItemIndex!=null&&a.itemSelected.emit(a.items[a.activeItemIndex])};a3.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var T8c=function(a){if(a.activeItemIndex!=null&&a.itemElements){var b,c;return(c=(b=a.itemElements.get(a.activeItemIndex))==null?void 0:b.nativeElement.id)!=null?c:void 0}},R8c=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&K1b(b.nativeElement,a.hostElement.nativeElement)},gEb=function(a){Po("search","autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};a3.\u0275fac=function(a){return new (a||a3)};
a3.\u0275cmp=B({type:a3,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&Wg(Z2,5,ff);if(a&2){var c;$g(c=ah())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},standalone:!1,features:[hh([NA]),Uu],decls:4,vars:1,consts:[[1,"header","gmat-caption"],"role;listbox;aria-label;Search autocomplete list;id;b-search-box-autocomplete".split(";"),["role","option",3,"index","isActive"],[1,"margin-s-right"],
[3,"accessLevel"],[3,"trackerId"],["role","option",3,"optionClicked","index","isActive"],[1,"monospaced","item-description"],[1,"item-description"],["role","button",3,"click","title"],[1,"item-description","item-de-emphasized"]],template:function(a,b){a&1&&(E(0,QDb,7,6,"div",0),I(1,"div",1),Dg(2,hEb,10,13,"b-app-search-auto-complete-option",2,Cg),J());a&2&&(F(b.header&&b.header.type?0:-1),z(2),Eg(b.items))},dependencies:[kN,sN,Z2,Rv],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:inherit;overflow-y:auto}.header[_ngcontent-%COMP%]{padding:4px 16px 4px 36px}.item-description[_ngcontent-%COMP%]{display:block;margin-top:5px}.item-de-emphasized[_ngcontent-%COMP%]{font-weight:lighter}span[role=button][_ngcontent-%COMP%]{cursor:pointer}span[role=button][_ngcontent-%COMP%]:hover{text-decoration:underline}/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});var U8c=["box"],V8c=["initialFocus"],W8c=["finalFocus"],b3=function(){this.documentationLinks=n(lK);this.appSearchState=n(mX);this.activeSession=n(Es);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new LA;this.onAdvancedSearchClose=new LA;this.onAdvancedSearchSubmit=new LA;this.onSaveSearch=new LA;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/concepts/search-query-language";
this.destroyed$=new bg;this.currentQuery$=this.appSearchState.queryState$.pipe(y(function(a){return a.query}));this.autoCompleteItemSelected$=new bg;this.isAnonymous=this.activeSession.isAnonymous()};
b3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(ig(this.currentQuery$),gg(this.destroyed$)).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;b=b.completionCfg;a.appSearchState.queryState$.next({query:c.slice(0,b.startIdx)+b.completionValue+c.slice(b.endIdx),cursorPosition:b.cursorIdx!=null?b.cursorIdx:b.startIdx==null?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
b3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(Ve(function(b){return!b.setViaInteraction}),gg(this.destroyed$)).subscribe(function(b){var c=b.query;b=b.cursorPosition;a.inputBox.nativeElement.value=c;b!=null&&(c=a.inputBox.nativeElement,BKa(c)&&(c.selectionStart=b,c.selectionEnd=b))})};b3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var X8c=function(a){a.appSearchState.searchTriggered$.next("keyboard")},Y8c=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};b3.prototype.onInputFocus=function(){this.dropdownStatus="auto_complete"};
b3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!c3(this))return;Z8c(this);break;case "ArrowUp":if(!c3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!c3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!c3(this)){Y8c(this,this.inputBox.nativeElement.value);return}S8c(this.acList);break;case "ArrowLeft":Y8c(this,this.inputBox.nativeElement.value);return;case "Enter":c3(this)?this.acList.activeItemIndex!=null?S8c(this.acList):
X8c(this):X8c(this);break;default:return}a.preventDefault();a.stopPropagation()};b3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();$8c(this)};b3.prototype.getCursorPosition=function(){var a=CKa(this.inputBox.nativeElement,!0)[0];if(a===CKa(this.inputBox.nativeElement,!1)[1])return a};
var Z8c=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},$8c=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},c3=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},a9c=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},b9c=function(a){return a.dropdownStatus==="advanced_search"};
b3.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",$8c(this))};var c9c=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},iEb=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};b3.\u0275fac=function(a){return new (a||b3)};
b3.\u0275cmp=B({type:b3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(Wg(a3,7),Wg(U8c,5),Wg(V8c,7,ff),Wg(W8c,7));if(a&2){var c;$g(c=ah())&&(b.acList=c.first);$g(c=ah())&&(b.inputBox=c.first);$g(c=ah())&&(b.advancedSearchInitialFocus=c.first);$g(c=ah())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",isSearchDisabled:"isSearchDisabled",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",
onAdvancedSearchClose:"onAdvancedSearchClose",onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:24,vars:19,consts:[["box",""],["initialFocus",""],["finalFocus",""],[1,"search-form-container","keep-focus-ring",3,"clickOutside"],[1,"search-box-container"],["type","button","mat-icon-button","","aria-label","Search","matTooltip","Search",3,"click"],["svgIcon","search",1,"icon-m"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","6","aria-label","Search issues","role","combobox","aria-autocomplete","list","aria-haspopup","true","aria-owns","b-search-box-autocomplete",1,"search-box",3,"keydown","input","click","focus","placeholder"],["type","button","mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],["role","search",1,"search-dropdown"],[3,"itemSelected","items","header"],[1,"advanced-search"],
["align","right",1,"advanced-search-header"],["type","button","mat-icon-button","","aria-label","Close advanced search","matTooltip","Close advanced search",3,"keydown","click","disabled"],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["type","button","mat-flat-button","",1,"medium",3,"click","disabled"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[1,"save-search-container","gap-s"],["type",
"text","aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModelChange","keydown.Tab","keydown.enter","ngModel"]],template:function(a,b){if(a&1){var c=r();Ng();I(0,"div",3);M("clickOutside",function(){t(c);Z8c(b);return v()});I(1,"div",4)(2,"button",5);M("click",function(){t(c);return v(X8c(b))});K(3,"mat-icon",6);J();I(4,"textarea",7,0);M("keydown",function(d){t(c);return v(b.handleKeydown(d))})("input",function(){t(c);var d=L(5);return v(Y8c(b,d.value))})("click",
function(){t(c);var d=L(5);return v(Y8c(b,d.value))})("focus",function(){t(c);return v(b.onInputFocus())});J();I(6,"button",8);M("click",function(){t(c);b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit();return v()});K(7,"mat-icon",9);J()();I(8,"aside",10)(9,"b-app-search-auto-complete-list",11);M("itemSelected",function(d){t(c);return v(b.autoCompleteItemSelected$.next(d))});J();I(10,"div",12)(11,"div",13)(12,"button",14,1);M("keydown",function(d){t(c);return v(c9c(b,d))})("click",
function(){t(c);return v($8c(b))});K(14,"mat-icon",15);J()();I(15,"div",16);Og(16);J();I(17,"div",17)(18,"button",18);M("click",function(){t(c);return v(b.submitAdvancedSearch())});Q(19," Search ");J();I(20,"a",19);Q(21,"Search help ");K(22,"mat-icon",20);J();E(23,jEb,5,2,"div",21);J()()()()}a&2&&(wg("dropdown-opened",c3(b)||a9c(b)||b9c(b)),z(),wg("hidden",b9c(b)),z(3),D("placeholder",b.placeholder),ng("aria-activedescendant",T8c(b.acList))("aria-expanded",c3(b)||a9c(b)),z(4),wg("advanced-search-open",
b9c(b)),z(),wg("hidden",!(c3(b)||a9c(b))),D("items",b.autoCompleteItems)("header",b.autoCompleteHeader),z(),wg("hidden",!b9c(b)),z(2),D("disabled",b.isSearchDisabled),z(6),D("disabled",b.isSearchDisabled),z(2),ng("href",b.searchHelpLink,uf),z(3),F(b.isAnonymous?-1:23))},dependencies:[aB,Yw,PA,Tx,Ux,YA,cB,Li,oy,vy,aV,cz,a3],styles:['[_nghost-%COMP%]{display:flex;align-items:center;flex-grow:1;position:relative;min-width:320px;height:40px}.search-form-container[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#f1f3f4;background-color:var(--main-search-bg);border-radius:8px;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}@media(forced-colors: active){.search-form-container[_ngcontent-%COMP%]{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 16px);min-height:40px;height:auto}.search-dropdown[_ngcontent-%COMP%]{max-height:0;overflow:hidden;top:40px;width:100%;transition:max-height .2s ease-in-out}.search-form-container.dropdown-opened[_ngcontent-%COMP%]   .search-dropdown[_ngcontent-%COMP%]{max-height:600px;padding-bottom:6px}.search-dropdown[_ngcontent-%COMP%]{padding-bottom:0}.search-form-container[_ngcontent-%COMP%]:focus-within, .search-form-container.dropdown-opened[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);background-color:#fff;background-color:var(--surface-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   textarea[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:not(:focus-within):not(.dropdown-opened)   textarea[_ngcontent-%COMP%]{height:auto !important;overflow:hidden}.mat-mdc-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px}.search-box-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.search-box-container[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{margin-top:8px}textarea[_ngcontent-%COMP%]{border:0;background-color:initial;outline:none;resize:none;padding:0;cursor:auto;color:#202124;color:var(--text-high-contrast);margin:10px 0;margin-left:5px;height:20px;line-height:20px;width:100%;overflow:auto}textarea[_ngcontent-%COMP%]:focus{border:0;padding:0;outline:none}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:rgba(0,0,0,0);border-radius:10px;border:0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:vertical{margin:5px 0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:horizontal{margin:0 5px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(0,0,0,.2)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.4)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.5)}.advanced-search[_ngcontent-%COMP%]{padding:6px 6px 0 6px}.advanced-search-content[_ngcontent-%COMP%]{overflow:auto;max-height:532px}.advanced-search-footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:6px}.search-help-link[_ngcontent-%COMP%]{margin-left:10px}.save-search-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;padding:0 5px}.save-search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;outline:none}[_nghost-%COMP%]     .bv2-adv-search-rule{background-color:#fff;background-color:var(--surface-default);display:flex;border-radius:10px;width:initial}[_nghost-%COMP%]     .bv2-adv-search-rule-title{display:flex}[_nghost-%COMP%]     .bv2-adv-search-rule-content{flex-grow:1;padding-right:25px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-enum-item{min-width:130px;max-width:130px}[_nghost-%COMP%]     .bv2-adv-search-chip-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);outline:0}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select{border-radius:5px;letter-spacing:0;min-width:105px;padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select .goog-flat-menu-button-dropdown{border:0;height:initial;margin-top:initial;position:relative;right:initial;top:initial;width:initial}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled){border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#3c4043;color:var(--gfx);padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):hover, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):active, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):not(.mdc-ripple-upgraded):focus{padding-right:24px;border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default);box-shadow:none}[_nghost-%COMP%]     .goog-flat-menu-button.goog-flat-menu-button-open.jfk-select{background-color:#fff;background-color:var(--surface-default)}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override), [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);height:28px;margin:0;padding-left:10px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override):focus, [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override):focus{border-color:#3c4043;border-color:var(--gfx);outline:0}[_nghost-%COMP%]     .bv2-adv-search-chip-add-btn{margin-right:20px}[_nghost-%COMP%]     .bv2-adv-search-chip{display:inline-flex;border:none;background-color:#fff;background-color:var(--surface-default);height:100%;width:100%;margin-bottom:10px}[_nghost-%COMP%]     .bv2-adv-search-chip button{align-self:center}[_nghost-%COMP%]     .bv2-adv-search-chip-container{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content{width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content input[type=text]:not(.override){width:calc(100% - 10px)}[_nghost-%COMP%]     .bv2-adv-search-chip-content .bv2-adv-search-chip-delete-btn{margin-left:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-content-selectable .goog-flat-menu-button{height:32px;margin:0;width:100%;text-align:left}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn{display:inline-flex;align-items:center;font-family:"Google Sans",Roboto,Arial,sans-serif;height:32px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;box-sizing:border-box;color:#3c4043;color:var(--gfx)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:hover, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:active, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:focus{border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn::after{margin-left:auto;content:"";width:16px;height:16px;background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/edit.svg") 0 -2px;margin-right:5px;opacity:.6}[_nghost-%COMP%]     .bv2-adv-search-chip-content-text{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1rem;padding-left:12px;vertical-align:middle}/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});var d9c=function(){this.activeSession=n(Es);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new LA;this.searchBoxOnAdvancedSearchClose=new LA;this.searchBoxOnAdvancedSearchSubmit=new LA;this.searchBoxOnSaveSearch=new LA;this.currentTracker=this.activeSession.getTracker()},e9c=function(){setTimeout(function(){var a;(a=
document.getElementById("skiplink-navigation-target").querySelectorAll('div[role="tab"],a[href],button:not([tabindex="-1"],input')[0])==null||a.focus()})};d9c.\u0275fac=function(a){return new (a||d9c)};
d9c.\u0275cmp=B({type:d9c,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",isSearchDisabled:"isSearchDisabled",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:7,consts:[[3,"environmentType","frontendAccessMode","tracker"],[1,"skip-navigation-wrapper"],["type","button","mat-button","","color","primary","aria-label","Skip to main content",1,"skip-to-main-content-link",3,"click","keydown.enter"],[3,"onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch","placeholder","autoCompleteItems","autoCompleteHeader","isSearchDisabled"]],
template:function(a,b){a&1&&(Ng(),K(0,"b-app-logo",0),I(1,"div",1)(2,"button",2),M("click",function(){return e9c()})("keydown.enter",function(){return e9c()}),Q(3," Skip Navigation "),J()(),I(4,"b-app-search-box",3),M("onAdvancedSearchOpen",function(){return b.searchBoxOnAdvancedSearchOpen.emit()})("onAdvancedSearchClose",function(){return b.searchBoxOnAdvancedSearchClose.emit()})("onAdvancedSearchSubmit",function(){return b.searchBoxOnAdvancedSearchSubmit.emit()})("onSaveSearch",function(c){return b.searchBoxOnSaveSearch.emit(c)}),
Og(5),J(),K(6,"b-app-actions"));a&2&&(D("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",b.currentTracker),z(4),D("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[PA,Tx,Y2,W2,b3],styles:["[_nghost-%COMP%]{display:flex;align-items:center;gap:32px}@media(max-width: 1099px){[_nghost-%COMP%]{gap:8px}}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]{position:absolute;background-color:#e8f0fe;background-color:var(--selected-bg-muted);clip:rect(1px, 1px, 1px, 1px);overflow:hidden;transform:translateX(-50%)}div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:active, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-visible, div.skip-navigation-wrapper[_ngcontent-%COMP%]   button.skip-to-main-content-link[_ngcontent-%COMP%]:focus-within{transform:translate(-50%, -50%);position:absolute;clip:auto;overflow:visible;z-index:1}/*# sourceMappingURL=app_top_bar.css.map */"],
changeDetection:0});var d3=function(){};d3.\u0275fac=function(a){return new (a||d3)};d3.\u0275mod=Jf({type:d3});d3.\u0275inj=Tc({imports:[ZB,$K,$B,PN]});var e3=function(){};e3.\u0275fac=function(a){return new (a||e3)};e3.\u0275mod=Jf({type:e3});e3.\u0275inj=Tc({imports:[ZB,$B,LH,cC]});var f3=function(){};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275mod=Jf({type:f3});f3.\u0275inj=Tc({imports:[ZB,$B,cC]});var g3=function(){};g3.\u0275fac=function(a){return new (a||g3)};g3.\u0275mod=Jf({type:g3});g3.\u0275inj=Tc({imports:[ZB]});var h3=function(){};h3.\u0275fac=function(a){return new (a||h3)};h3.\u0275mod=Jf({type:h3});h3.\u0275inj=Tc({providers:[VO]});var i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=Jf({type:i3});i3.\u0275inj=Tc({imports:[ZB,$B,cC,h3]});var j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=Jf({type:j3});j3.\u0275inj=Tc({imports:[ZB,LH,$B,RL,cC,cx,Ly,bV,e3,EZ,f3,HQ,dz,g3,i3,d3,eR]});var k3=function(){};k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275mod=Jf({type:k3});k3.\u0275inj=Tc({imports:[ZB,$B,$K]});var l3=function(){};l3.\u0275fac=function(a){return new (a||l3)};l3.\u0275mod=Jf({type:l3});l3.\u0275inj=Tc({imports:[ZB,Ly,$B,aN,ZM,$K,jR]});var m3=function(){this.cardTitle="";this.dropdownOptions=[];this.inheritedDisabled=this.isInherited=this.showInheritedToggle=this.showDeleteButton=this.showRequiredToggle=this.isSaveButtonDisabled=this.disabled=this.selected=!1;this.inheritedDisabledTooltipText="";this.placeholderForCardTitle="Enter the card title (Required)";this.ariaLabelForCardTitle="Card title";this.dropdownSelectionChanged=new LA;this.selectedChange=new LA;this.cardTitleChange=new LA;this.onSaveButtonClicked=new LA;this.onCancelButtonClicked=
new LA;this.isInheritedChange=new LA;this.isExpanded=!1};m3.prototype.expand=function(){this.isExpanded=!0};m3.prototype.collapse=function(){this.isExpanded=!1};m3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};m3.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};m3.\u0275fac=function(a){return new (a||m3)};
m3.\u0275cmp=B({type:m3,selectors:[["b-collapsible-card"]],inputs:{cardTitle:"cardTitle",dropdownOptions:"dropdownOptions",selectedOption:"selectedOption",selected:"selected",disabled:"disabled",isSaveButtonDisabled:"isSaveButtonDisabled",showRequiredToggle:"showRequiredToggle",showDeleteButton:"showDeleteButton",showInheritedToggle:"showInheritedToggle",isInherited:"isInherited",inheritedDisabled:"inheritedDisabled",inheritedDisabledTooltipText:"inheritedDisabledTooltipText",placeholderForCardTitle:"placeholderForCardTitle",
ariaLabelForCardTitle:"ariaLabelForCardTitle"},outputs:{dropdownSelectionChanged:"dropdownSelectionChanged",selectedChange:"selectedChange",cardTitleChange:"cardTitleChange",onSaveButtonClicked:"onSaveButtonClicked",onCancelButtonClicked:"onCancelButtonClicked",isInheritedChange:"isInheritedChange"},standalone:!1,ngContentSelectors:["*"],decls:10,vars:12,consts:[[1,"carded"],[1,"flex-kids-x","flex-cross-axis-centered","card-header"],[1,"collapsible-card-checkbox",3,"change","disabled","checked","aria-label"],
[1,"card-title","heading-s",3,"muted"],["type","button","mat-icon-button","",3,"click","ngClass"],["svgIcon","chevron-left"],["svgIcon","arrow-down"],[1,"expanded-card-container"],[1,"expanded-card-actions"],[1,"card-title","heading-s"],["appearance","fill","subscriptSizing","dynamic",1,"card-title"],["matInput","","type","text","required","","aria-required","true","maxlength","40","autocomplete","off",1,"heading-s",3,"ngModelChange","placeholder","disabled","ngModel"],["appearance","outline",1,"type-dropdown"],
[3,"valueChange","selectionChange","disabled","value"],[1,"ee-config-option",3,"value"],[1,"icon-s",3,"svgIcon"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel-button",3,"click","disabled"],["type","button","mat-icon-button","","aria-label","Delete",1,"delete-button",3,"disabled"],[3,"vertical"],["labelPosition","before",3,"disabled"],["labelPosition","before",1,"inherited-toggle",3,"checked","disabled",
"matTooltip","matTooltipDisabled"],["svgIcon","delete",1,"icon-m"],["labelPosition","before",1,"inherited-toggle",3,"change","checked","disabled","matTooltip","matTooltipDisabled"]],template:function(a,b){a&1&&(Ng(),I(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),M("change",function(c){b.selected=c.checked;b.expand();b.selectedChange.emit(b.selected)}),J(),E(3,kEb,2,3,"span",3)(4,pEb,3,7),I(5,"button",4),M("click",function(){b.isExpanded?b.collapse():b.expand()}),E(6,qEb,1,0,"mat-icon",5)(7,rEb,1,0,"mat-icon",
6),J()(),E(8,sEb,2,0,"div",7),E(9,xEb,9,6,"div",8),J());a&2&&(ng("aria-expanded",b.isExpanded),z(2),wg("expanded-checkbox",b.isExpanded),D("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle),z(),F(b.isExpanded?4:3),z(2),D("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle"),ng("aria-label",b.isExpanded?"Collapse editor":"Expand editor"),z(),F(b.isExpanded?6:7),z(2),F(b.isExpanded?8:-1),z(),F(b.isExpanded?9:-1))},dependencies:[Mv,aB,Li,oy,Gy,Hy,vy,yM,CM,PA,Tx,Ux,cH,dH,rP,Xy,
Qy,zP,AP,Lx,YM,HL,$M,ez,YA,cB],styles:['.card-title[_ngcontent-%COMP%]{margin-left:10px;width:440px}.expand-toggle[_ngcontent-%COMP%]{margin-left:auto}.collapse-toggle[_ngcontent-%COMP%]{align-self:baseline}.expanded-card-container[_ngcontent-%COMP%]{padding:18px}.expanded-card-actions[_ngcontent-%COMP%]{display:flex;align-items:center;border-top:1px solid;border-top-color:#9aa0a6;border-top-color:var(--c500);padding-top:16px}.expanded-card-actions[_ngcontent-%COMP%]   .cancel-button[_ngcontent-%COMP%]{width:80px;margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   .delete-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{margin-left:16px}.expanded-card-actions[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{height:40px}.expanded-card-actions[_ngcontent-%COMP%]   .inherited-toggle[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .mat-mdc-select-value, .ee-config-option[_ngcontent-%COMP%]{font-family:"Google Sans Display",Roboto,Arial,sans-serif;font-weight:500;color:#5f6368;color:var(--text-muted)}.type-dropdown[_ngcontent-%COMP%]{margin-left:auto;margin-right:8px}mat-select-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:10px}mat-select-trigger[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}']});var n3=function(){};n3.\u0275fac=function(a){return new (a||n3)};n3.\u0275mod=Jf({type:n3});n3.\u0275inj=Tc({imports:[ZB,Ly,GM,$B,fH,yQ,RL,aN,cC]});var f9c=function(){this.dialogRef=n(mK);this.data=n(sK);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};f9c.\u0275fac=function(a){return new (a||f9c)};
f9c.\u0275cmp=B({type:f9c,selectors:[["activate-shared-field-dialog"]],standalone:!1,decls:11,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"],[3,"valueChange","value"],[3,"value"],["href","http://go/buganizer/concepts/custom-fields#shared-custom-field","target","_blank"]],template:function(a,b){a&1&&(I(0,
"h1",0),Q(1,"Activate a shared field"),J(),I(2,"div",1),E(3,zEb,4,1,"mat-form-field")(4,AEb,1,0),E(5,BEb,4,0,"div"),J(),I(6,"footer",2)(7,"button",3),M("click",function(){return b.dialogRef.close()}),Q(8,"Cancel"),J(),I(9,"button",4),M("click",function(){return b.dialogRef.close(b.selected)}),Q(10,"Confirm"),J()());a&2&&(z(3),F(b.options.length>0?3:4),z(2),F(b.options.length>0?5:-1))},dependencies:[PA,Tx,rP,Xy,zP,Lx,YM,wK,yK,xK],encapsulation:2});var o3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,o3.messageId)};Y(o3,V);o3.prototype.getIt=function(){return X(this,Wn,4)};o3.prototype.setIt=function(a){return W(this,Wn,4,a)};o3.messageId="b.FieldConfig";var g9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(g9c,V);g=g9c.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.setFieldId=function(a){return Bu(this,2,Mm,a)};var p3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,p3.messageId)};Y(p3,V);p3.prototype.getIt=function(){return X(this,g9c,2)};p3.prototype.setIt=function(a){return W(this,g9c,2,a)};p3.messageId="b.ReorderFieldsRequest";var q3=function(){this.executor=n(yC)};q3.prototype.updateCustomFieldState=function(a,b,c){var d={customFieldId:b};var e=new o3;var f=e.setIt;d=(new Wn).setFieldId(Aza(d));c=Nk(d,4,Rkc[c]);c=Xm(c,5,!1);e=f.call(e,c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:o3}).pipe(y(CEb))};
q3.prototype.reorder=function(a,b){var c=new p3,d=c.setIt;var e=(new g9c).setComponentId(a);b=b.map(Aza);e=sn(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275prov=Sc({token:q3,factory:q3.\u0275fac,providedIn:"root"});var h9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(h9c,V);g=h9c.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,2)};g.getCustomFieldId_asString=function(){return Gl(this,2)};
g.setCustomFieldId=function(a){return Fm(this,2,a)};var i9c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(i9c,V);g=i9c.prototype;g.getComponentId=function(){return Dl(this,1)};g.getComponentId_asLegacyNumberOrString=function(){return zl(this,1)};g.getComponentId_asString=function(){return Gl(this,1)};g.setComponentId=function(a){return Fm(this,1,a)};g.getCustomFieldId_asLegacyNumberOrString=function(){return zl(this,2)};g.getCustomFieldId_asString=function(){return Gl(this,2)};
g.setCustomFieldId=function(a){return Fm(this,2,a)};var r3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,r3.messageId)};Y(r3,V);r3.prototype.getIt=function(){return X(this,h9c,1)};r3.prototype.setIt=function(a){return W(this,h9c,1,a)};r3.messageId="b.AddSharedCustomFieldToComponentRequest";var s3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,s3.messageId)};Y(s3,V);s3.prototype.getIt=function(){return X(this,i9c,1)};s3.prototype.setIt=function(a){return W(this,i9c,1,a)};s3.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var t3=function(){this.executor=n(zC)};t3.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new r3).setIt((new h9c).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};t3.prototype.remove=function(a,b){var c="/action/components/"+a+"/remove_shared_custom_field";a=(new s3).setIt((new i9c).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};
t3.\u0275fac=function(a){return new (a||t3)};t3.\u0275prov=Sc({token:t3,factory:t3.\u0275fac,providedIn:"root"});var j9c=["fieldStateMenu"],GEb=function(a){return{type:a}},k9c=["SILENT","MINOR","MAJOR"],l9c=[{customFieldId:1049928,name:"Start Date"},{customFieldId:1049953,name:"End Date"},{customFieldId:1049954,name:"Risk"},{customFieldId:1255458,name:"Commitment Level"},{customFieldId:1350993,name:"Requirements doc"},{customFieldId:1350984,name:"Design doc"},{customFieldId:1351039,name:"Mocks url"}],m9c=[{customFieldId:192850,name:"Start Date"},{customFieldId:192876,name:"End Date"},{customFieldId:194618,name:"Risk"},
{customFieldId:207778,name:"Commitment Level"},{customFieldId:218363,name:"Requirements doc"},{customFieldId:218337,name:"Design doc"},{customFieldId:218261,name:"Mocks url"}],u3=function(){Z.apply(this,arguments);this.customFieldsApi=n(TD);this.checkBeforeExit=n(lS);this.butterBar=n(iK);this.analytics=n(CF);this.routeParams=n(bL);this.componentActions=n(oN);this.fieldConfigService=n(q3);this.sharedCustomFieldApi=n(t3);this.documentationLinks=n(lK);this.paths=n(EN);this.confirmationDialog=n(AK);this.appEvents=
n(nD);this.dialog=n(tK);this.activeSession=n(Es);this.ROUTES=Fq;this.FieldType=WL;this.ListFieldType=aJc;this.getSingleEditFieldType=VPa;this.getListFieldType=iSa;this.isRepeated=wza;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=k9c;this.customFields=[];this.inheritedCustomFields=[];this.sharedFields=[];this.componentIdsToNames={};this.isLoading=!1;this.editableField=null;this.allowedValues=[];this.originalEditableFieldValue=null;
this.componentId=Vj(this.routeParams.componentId);this.msgFieldStateTip="Whether the field is visible in this component"};Y(u3,Z);u3.\u0275dir=Z.\u0275dir;u3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
u3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=this.parentComponent.componentPathInfo.allCustomField,c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
u3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||QQc(this.checkBeforeExit))this.editableField=Qj(this.customFields[a]),this.originalEditableFieldValue=Qj(this.editableField),this.serverError=null,this.setType(this.editableField.type),KEb(this,this.editableField.allowedValue)};
var WEb=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Oi("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. However, data will remain in the system and may be visible through other means (ex: extracts or direct API calls). If you have sensitive data concerns, please file a support request to have the data deleted from affected issues. Are you sure you want to delete this field definition?"),onConfirm:function(){a.doDelete(c)}})};
u3.prototype.doDelete=function(a){var b=this;Mq(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId);b.analytics.trackEvent("customField","delete");Mq(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
u3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields();a.analytics.trackEvent("customField",d)},c=function(e){a.serverError=Xo(e);a.isLoading=!1};["REPEATED_ENUM","ENUM"].includes(this.editableField.type)?this.editableField.allowedValue=this.allowedValues.map(function(e){return e.value}):this.editableField.allowedValue=void 0;if(this.editableField.customFieldId){var d="update";this.customFieldsApi.update(this.componentId,
this.editableField.customFieldId,this.editableField).then(b).catch(c)}else d="create",this.editableField.componentId=this.componentId,this.customFieldsApi.create(this.componentId,this.editableField).then(b).catch(c)};
u3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId,a.customFieldId,b).pipe(gg(d.destroyed$)).subscribe(function(){a:{switch(b){case "INHERIT":var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case "DISABLED":h="Disabled";break a;case "ENABLED":h="Enabled";break a}h=void 0}d.analytics.trackEvent("customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId).then(function(){return d.loadCustomFields(!0)}).then(function(){setTimeout(function(){var k,
q;(k=d.fieldStateMenus)==null||(q=k.get(c))==null||q.focus()})}).then(function(){e(void 0)})},function(h){d.serverError=Xo(h);d.isLoading=!1;f(h)})})};u3.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var NEb=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&Rj(b)?b:void 0,e=c==="DATE"&&b&&VEa(b)?b:void 0,f=c==="ENUM"&&Rj(b)?b:void 0,h=c==="NUMERIC"&&bua(b)?b:void 0,k=c==="REPEATED_TEXT"&&Sj(b)?{values:b}:void 0,q=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(VEa)?{values:b}:void 0,u=c==="REPEATED_ENUM"&&Sj(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&cua(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:h,repeatedTextValue:k,repeatedDateValue:q,repeatedEnumValue:u,repeatedNumericValue:b}};u3.prototype.setType=function(a,b){var c=this.editableField.type;if(b===void 0?0:b)switch(a){case "TEXT":this.editableField.type="REPEATED_TEXT";break;case "DATE":this.editableField.type="REPEATED_DATE";break;case "ENUM":this.editableField.type="REPEATED_ENUM";break;case "NUMERIC":this.editableField.type="REPEATED_NUMERIC"}else this.editableField.type=a;a!=c&&(this.editableField.typedDefaultValue=void 0)};
var KEb=function(a,b){b=b==null?void 0:b.map(function(c){return c.toString()});a.editableField.allowedValue=b;a.allowedValues=b?b.map(function(c){return{value:c,displayText:c}}):[]};u3.prototype.hasUnsavedChanges=function(){return this.editableField&&!Pj(this.editableField,this.originalEditableFieldValue)?!0:!1};
u3.prototype.loadCustomFields=function(a){var b=this;a=a===void 0?!1:a;a||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d,e=((d=c.componentPathInfo)==null?void 0:d.allCustomField)||[];d=[];b.componentIdsToNames={};var f,h=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<h.length;f++)d.push(c.componentPathInfo.componentPathName[f]),b.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");b.editableField=null;b.originalEditableFieldValue=
null;a||(b.isLoading=!1);c=function(k,q){return Ba(k.name,q.name)};b.customFields=e.filter(function(k){return b.componentId===k.componentId}).sort(c);b.inheritedCustomFields=e.filter(function(k){return b.componentId!==k.componentId&&!k.shared}).sort(c);b.sharedFields=e.filter(function(k){return b.componentId!==k.componentId&&k.shared});b.appEvents.customFieldsModified.next(e)})};var bFb=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};
u3.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var OEb=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?Io(a):null};u3.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?Io(b):null)==null?void 0:c.values)!=null?d:null};u3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var lFb=function(a){var b={sharedFields:mFb(a)};nK(a.dialog.open(f9c,{data:b,width:"450px"})).subscribe(function(c){c&&a.sharedCustomFieldApi.add(a.componentId,c.customFieldId).then(function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields()})})},gFb=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Oi("Deactivating a shared custom field will hide this shared field when there is no value set on the issue. However, data will remain in the system. Are you sure you want to deactivate this shared field?"),
onConfirm:function(){a.sharedCustomFieldApi.remove(a.componentId,b).then(function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields()})}})},mFb=function(a){if(!a.activeSession.isInternalSession())return[];var b=fm(a.activeSession.session)?l9c:m9c,c=a.sharedFields.map(function(d){return d.customFieldId});return b.filter(function(d){return!c.includes(d.customFieldId)})};u3.\u0275fac=function(){var a;return function(b){return(a||(a=fe(u3)))(b||u3)}}();
u3.\u0275cmp=B({type:u3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&Wg(j9c,5);if(a&2){var c;$g(c=ah())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},standalone:!1,features:[kg,Uu],decls:4,vars:2,consts:[["typeHelp",""],["enumMenu","matMenu"],["secondaryMenu","matMenu"],["significanceHelp",""],["significanceMenu","matMenu"],["card","onedevHovercard"],["cardBody",""],["fieldStateMenu",""],
[1,"edit-resource-panel","edit-component-field-parent"],[1,"edit-custom-field-panel"],[1,"custom-fields-loader"],[1,"bv2-validation-error-banner"],["name","editForm",1,"edit-custom-field-form"],[1,"edit-field"],["for","field-name",1,"help-label"],["name","fieldName","type","text","required","","id","field-name",3,"ngModelChange","bFocus","ngModel","disabled"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-custom-field-table"],
[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["type","button","mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],
["matMenuContent",""],["id","field-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["id","field-repeated-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["id","field-required-label",1,"bv2-component-custom-field-label"],
["aria-labelledby","field-required-label",3,"valueChange","name","type","tooltip","value"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["aria-label","See email settings for more details.","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["mat-button","","mat-stroked-button","","type","button","aria-labelledby","field-significance-label",
1,"keep-focus-ring","bv2-enum-field",3,"matMenuTriggerFor"],["mat-menu-item","","type","button"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-stroked-button","","type","button",3,"click"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"valuesChange","defaultLineCount","type","values","listFieldDisabled","preventDuplicates",
"isDefaultOrAllowedValues","truncate"],["aria-labelledby","field-default-label",3,"valueChange","name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["aria-labelledby","field-repeated-default-label",3,"valuesChange","defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["mat-menu-item","","type","button",3,"click"],[3,"large"],[1,"custom-fields-table"],[3,"ngClass"],[1,"edit-button-row"],[3,"customFieldValue"],
[1,"action-buttons"],["type","button","mat-stroked-button","",3,"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[1,"ancestor-component-note"],[1,"header-label"],[3,"click","onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip"],[3,"onedevIsHovercardReady","componentId"],[3,"fieldStateChange","fieldName","fieldState","enabledOnParent","disabled","matTooltip"],[1,"enabled-field"],["type","button",
"mat-stroked-button","",3,"click","disabled","matTooltip"],["routerLink","./","fragment","fieldOrdering",1,"keep-underline"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"div",8),E(1,TEb,70,29,"div",9),E(2,UEb,2,1,"div",10)(3,oFb,29,8,"div"),J());a&2&&(z(),F(b.editableField&&!b.isLoading?1:-1),z(),F(b.isLoading?2:3))},dependencies:[Mv,FA,wy,Li,oy,py,Gy,vy,ty,hN,VL,CL,M1,fJ,gJ,lJ,hJ,
lN,YA,cB,UG,XG,VG,WG,YG,PA,Tx,xO,q_,ON,QB,PB,SB],styles:["button[_ngcontent-%COMP%]{margin-right:3px}button.bv2-enum-field[_ngcontent-%COMP%]{padding:0px 12px;margin-bottom:32px;height:32px;line-height:32px}b-spinner[_ngcontent-%COMP%]{position:absolute}"]});var v3=function(){};v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275mod=Jf({type:v3});v3.\u0275inj=Tc({imports:[ZB,Ly,iN,XL,EL,N1,WJ,BW,cC,LH,$B,yQ,yO,r_,VB,QN,$K]});var w3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new LA;this.addRow=new LA;this.optionsChange=new LA};w3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};w3.prototype.drop=function(a){Aq(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};w3.\u0275fac=function(a){return new (a||w3)};
w3.\u0275cmp=B({type:w3,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},standalone:!1,decls:12,vars:6,consts:[["displayInput","matInput"],["valueInput","matInput"],[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"padded-sides","heading-xs","config-title-container","flex-kids-x"],["aria-label","Average days. All estimated effort types map to an average number of days.",
1,"config-title"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],["cdkDropList","",1,"options-container",3,"cdkDropListDropped"],["cdkDrag",""],["type","button","mat-button","",1,"add-row-button"],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],["subscriptSizing","dynamic",3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"change","value","placeholder","disabled"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"change","value","placeholder","disabled"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["type","button","mat-button","",1,"add-row-button",3,"click"]],template:function(a,b){a&1&&(I(0,"div",2)(1,"div",
3)(2,"span",4),Q(3," Dropdown value "),J()(),I(4,"div",5)(5,"span",6),Q(6," Average days "),J(),K(7,"mat-icon",7),J()(),I(8,"div",8),M("cdkDropListDropped",function(c){return b.drop(c)}),Dg(9,qFb,12,13,"div",9,Cg),J(),E(11,rFb,2,0,"button",10));a&2&&(z(2),wg("muted",b.disabled),z(3),wg("muted",b.disabled),z(2),D("matTooltip","All estimated effort types map to an average number of days."),z(2),Eg(b.options),z(2),F(b.disabled?-1:11))},dependencies:[aB,$M,ez,Xy,YM,PA,Tx,Ux,YA,cB,fN,eN,cN],styles:[".delete-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-flex{--gm-outlinedtextfield-outline-color:transparent}.add-row-button[_ngcontent-%COMP%]{font-size:1rem;color:#5f6368;color:var(--text-muted);font-style:normal;font-weight:400;font-family:Roboto,Arial,sans-serif}.options-container[_ngcontent-%COMP%]{margin-left:-32px}.option-row[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.option-row[_ngcontent-%COMP%]   .drag-handle[_ngcontent-%COMP%]{cursor:move;visibility:hidden;margin-top:8px;margin-left:8px}.option-row[_ngcontent-%COMP%]:hover   .drag-handle[_ngcontent-%COMP%]{visibility:visible;color:#dadce0;color:var(--c300)}\n/*# sourceMappingURL=config_grid.css.map */"]});var x3=function(){this.disabled=!1;this.valueChange=new LA};x3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};x3.\u0275fac=function(a){return new (a||x3)};
x3.\u0275cmp=B({type:x3,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:14,vars:8,consts:[["timeInput","matInput"],[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"type-m","margin-y","disabled-time-val"],[1,"config-title-container","flex-kids-x"],["id","config-label","aria-label","Average days. All estimated effort types map to an average number of days.",
1,"config-title"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],[3,"appearance"],["matInput","","type","number","aria-labelledby","config-label",1,"input-text",3,"change","disabled","value"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"span",3);Q(3," Time ");J();I(4,"span",4);Q(5,"1");J()();I(6,"div",2)(7,"div",5)(8,"span",6);Q(9," Average days ");J();K(10,
"mat-icon",7);J();I(11,"mat-form-field",8)(12,"input",9,0);M("change",function(d){t(c);return v(b.onValueChange(d))});J()()()()}a&2&&(z(2),wg("muted",b.disabled),z(6),wg("muted",b.disabled),z(2),D("matTooltip","All estimated effort types map to an average number of days."),z(),D("appearance","outline"),z(),D("disabled",b.disabled)("value",b.value))},dependencies:[aB,$M,ez,Xy,YM,YA,cB],styles:[".disabled-time-val[_ngcontent-%COMP%]{color:#bdc1c6;color:var(--text-disabled);font-size:1rem;line-height:24px;font-weight:400;width:168px;margin-top:4px}\n/*# sourceMappingURL=numeric_config.css.map */"]});var z3=function(){this.activeSession=n(Es);this.disabled=!1;this.updateEffortSpec=new LA;this.configurationOptions=[n9c,o9c,y3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=Hlc;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=Yr(this.activeSession,"enableAggregationRules")};
z3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=y3)};z3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=Qj(this.effortSpec),this.setValues(this.effortSpec))};
z3.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=y3;var b,c,d;this.numericSpecMultiplier=(d=(b=this.effortSpec)==null?void 0:(c=b.numericSpec)==null?void 0:c.multiplier)!=null?d:1}if(a.enumSpec){this.selectedEffortConfig=void 0;var e,f;this.enumSpecOptions=((f=(e=a.enumSpec)==null?void 0:e.options)!=null?f:[]).map(function(k){return{label:k.label,value:k.value}})}var h;this.inherit=(h=a.inherit)!=null?h:!1;this.name=a.name===""?"Estimated effort":a.name||"";if(a.enumSpec||
a.numericSpec)this.estimatedEffortFieldEnabled=!0;a.aggregationType!==void 0&&a.aggregationType!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=a.aggregationType)};
var p9c=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===n9c.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===o9c.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===y3.displayText?"numeric":"empty"};z3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
z3.prototype.isSaveButtonDisabled=function(){var a;if(!(a=this.disabled||this.selectedEffortConfig===void 0&&this.effortSpec===void 0&&this.estimatedEffortFieldEnabled&&!this.inherit||this.name==="")){a:{a=l(this.enumSpecOptions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,!b.label||b.value===null){a=!1;break a}a=!0}a=!a}return a};var q9c=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};z3.\u0275fac=function(a){return new (a||z3)};
z3.\u0275cmp=B({type:z3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},standalone:!1,features:[Uu],decls:8,vars:11,consts:[["enumConfig",""],["placeholderForCardTitle","Enter the estimated effort field title (required)","ariaLabelForCardTitle","Estimated effort field title",3,"cardTitleChange","dropdownSelectionChanged","onSaveButtonClicked","selectedChange","onCancelButtonClicked",
"isInheritedChange","cardTitle","dropdownOptions","selectedOption","disabled","selected","isSaveButtonDisabled","showInheritedToggle","isInherited","inheritedDisabled"],[1,"content"],[3,"disabled","value"],[1,"margin-top"],[4,"ngTemplateOutlet"],[3,"valueChange","disabled","value"],["id","aggregation-rule-label",1,"aggregation-rule-label","config-label","heading-xs","margined"],"mat-icon-button;;matTooltip;Learn more about the aggregation rules;href;http://go/wtdm-home#aggregation;target;_blank".split(";"),
["svgIcon","help-outline",1,"icon-s","gfx-muted"],["appearance","outline",1,"static-label","margined"],["aria-labelledby","aggregation-rule-label","panelClass","multi-line-select",3,"valueChange","value","disabled"],[1,"multi-line",3,"value"],[1,"title"],[1,"help-text"],[3,"optionsChange","addRow","removeAtIndex","options","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"b-collapsible-card",1);gh("cardTitleChange",function(e){t(c);fh(b.name,e)||(b.name=e);return v(e)});M("dropdownSelectionChanged",
function(e){t(c);b.selectedEffortConfig=e;e.displayText===n9c.displayText?(b.enumSpecOptions=[].concat(p(r9c)),b.name="Story points"):e.displayText===o9c.displayText?(b.enumSpecOptions=[].concat(p(s9c)),b.name="T-shirt sizes"):e.displayText===y3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0;return v()})("onSaveButtonClicked",function(){t(c);if(b.estimatedEffortFieldEnabled){var e={name:b.name,inherit:b.inherit};b.enableAggregationRules&&(e.aggregationType=
b.selectedAggregationRule);b.originalEffortSpec&&b.originalEffortSpec.customFieldId!==0&&(e.customFieldId=b.originalEffortSpec.customFieldId);var f;if(((f=b.selectedEffortConfig)==null?void 0:f.displayText)===y3.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var h=l(b.enumSpecOptions),k=h.next();!k.done;k=h.next())k=k.value,k.label&&k.value!==null&&f.push({label:k.label,value:k.value});e.enumSpec={options:f}}b.updateEffortSpec.emit(e)}else b.updateEffortSpec.emit({name:"",
inherit:!1});return v()})("selectedChange",function(e){t(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||q9c(b);return v()})("onCancelButtonClicked",function(){t(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,q9c(b));return v()})("isInheritedChange",function(e){t(c);(e=e.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=
b.parentEffortSpec,b.effortSpec||q9c(b)):b.effortSpec&&(b.setValues({}),q9c(b));b.inherit=e;return v()});I(1,"div",2);E(2,tFb,1,1,"ng-container")(3,uFb,1,2,"b-numeric-config",3)(4,vFb,0,0);J();E(5,wFb,23,13,"div",4);J();C(6,xFb,1,2,"ng-template",null,0,nh)}if(a&2){var d;eh("cardTitle",b.name);D("dropdownOptions",b.configurationOptions)("selectedOption",b.selectedEffortConfig)("disabled",b.disabled||b.inherit)("selected",b.estimatedEffortFieldEnabled)("isSaveButtonDisabled",b.isSaveButtonDisabled())("showInheritedToggle",
!0)("isInherited",b.inherit)("inheritedDisabled",b.disabled);z(2);F((d=p9c(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);z(3);F(b.enableAggregationRules&&b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[Pv,aB,Xy,YM,PA,Ux,m3,YA,cB,rP,zP,AP,Lx,w3,x3,A3]},styles:["[_nghost-%COMP%]     .content .config-title-container{width:168px}[_nghost-%COMP%]     .content .config-title-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .content mat-form-field{width:168px}[_nghost-%COMP%]     .content mat-form-field .mat-mdc-form-field-infix{margin:-3px 0}[_nghost-%COMP%]     .content .input-text{font-weight:400;font-size:1rem}.aggregation-rule-label[_ngcontent-%COMP%]{margin-right:2px}\n/*# sourceMappingURL=estimated_effort_config.css.map */"]});
var r9c=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"5",value:5},{label:"8",value:8},{label:"13",value:13},{label:"21",value:21},{label:"34",value:34}],s9c=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],n9c={displayText:"Story points",icon:"story-point-24px"},o9c={displayText:"T-shirt sizes",icon:"t-shirt-24px"},y3={displayText:"Time",icon:"time-24px"},A3=function(){};
A3.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};A3.\u0275fac=function(a){return new (a||A3)};A3.\u0275pipe=Lf({name:"aggregationRuleText",type:A3,pure:!0,standalone:!1});var t9c=function(){this.disabled=!1;this.updateComponent=new LA};t9c.\u0275fac=function(a){return new (a||t9c)};
t9c.\u0275cmp=B({type:t9c,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},standalone:!1,decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"updateEffortSpec","effortSpec","parentEffortSpec","disabled"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1),Q(2,"Once activated, standard fields appear in the right panel of all issues."),J(),I(3,"b-estimated-effort-config",
2),M("updateEffortSpec",function(c){b.updateComponent.emit(c)}),J()());a&2&&(z(3),D("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[z3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var B3=function(){};B3.\u0275fac=function(a){return new (a||B3)};B3.\u0275mod=Jf({type:B3});B3.\u0275inj=Tc({imports:[ZB,aN,$B,GM,n3,cC,yQ,gN]});var C3=function(){};C3.\u0275fac=function(a){return new (a||C3)};C3.\u0275mod=Jf({type:C3});C3.\u0275inj=Tc({imports:[ZB,n3,B3]});var D3=function(){var a=this;this.teamsService=n(yG);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new LA;this.inherit=!1;this.selectedTeam$=new bg;this.teamIdChanged$=new ag(1);this.placeholder$=this.teamIdChanged$.pipe(y(function(b){return b==="0"?!a.isAdmin||!a.isTopLevel&&a.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),eg(""));this.teamFromId$=this.teamIdChanged$.pipe(fg(function(b){return b==="0"?Ce(new Hkb([b],
[""],"")):zG(a.teamsService,b).pipe(y(function(c){return new Hkb([],c.collapsedPathNames,c.description)}))}));this.displayedTeam$=Ue(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(fg(function(b){return b==="0"?Ce("MISSING"):a.teamsService.getTeam(b).pipe(y(function(c){return!c||c.deleted?"DELETED":"VALID"}))}))};
D3.prototype.updateSelectionOnChange=function(a){Po("component","autocomplete-select","team",isNaN(Number(a.id))?0:Number(a.id));this.selectedTeam$.next(a);this.model.id=a.id;this.modelChange.emit(this.model);u9c(this)};var u9c=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};D3.prototype.ngOnInit=function(){Object.assign({},this.model);u9c(this)};var BFb=function(a){return a.model.id&&a.model.id!=="0"};
D3.prototype.getMomaTeamLink=function(){return BFb(this)?"https://moma.corp.google.com/team/"+this.model.id:null};D3.\u0275fac=function(a){return new (a||D3)};
D3.\u0275cmp=B({type:D3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},standalone:!1,decls:12,vars:12,consts:[[1,"edit-field"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"onTeamSelect","onEmptyQuery","placeholder","disabled","teamSelected"],
[1,"team-warning"],[3,"warningType","messageOnly"],[3,"change","disabled","checked"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"routerLink","target"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"click","routerLink","target"],["svgIcon","pop-out",1,"icon-s"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small"],["mat-icon-button",
"","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small",3,"click"]],template:function(a,b){a&1&&(I(0,"div"),E(1,zFb,1,1),S(2,"async"),E(3,AFb,3,2,"div",0),I(4,"div",1)(5,"label",2),Q(6,"Team selection"),J(),I(7,"b-team-picker",3),S(8,"async"),S(9,"async"),M("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);u9c(b)}),J(),E(10,DFb,1,1)(11,FFb,1,1),J()());if(a&2){var c;
z();F((c=T(2,6,b.warningType$))?1:-1,c);z(2);F(b.isTopLevel?-1:3);z(4);D("placeholder",T(8,8,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",T(9,10,b.displayedTeam$));z(3);F(b.useInternalLink?10:11)}},dependencies:[aB,FA,yM,CM,YA,cB,uY,x0,PA,Ux,Qv],styles:[".component-team-id-select[_ngcontent-%COMP%]{display:flex;align-items:center}.component-team-id-select[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:95px}.component-team-id-select[_ngcontent-%COMP%]   #component-team-id[_ngcontent-%COMP%]{display:inline-block;width:479px}.component-team-id-select[_ngcontent-%COMP%]   a.mat-mdc-icon-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center}.team-warning[_ngcontent-%COMP%]{width:240px}"],
changeDetection:0});var E3=function(){};E3.\u0275fac=function(a){return new (a||E3)};E3.\u0275mod=Jf({type:E3});E3.\u0275inj=Tc({imports:[ZB,EM,GM,cC,wY,r1,Ly,$B]});var F3=function(){};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275mod=Jf({type:F3});F3.\u0275inj=Tc({imports:[ZB,gN,$B,FM,YB]});var G3=function(){};G3.\u0275fac=function(a){return new (a||G3)};G3.\u0275mod=Jf({type:G3});G3.\u0275inj=Tc({imports:[F3,$B,$K]});var H3=function(){};H3.\u0275fac=function(a){return new (a||H3)};H3.\u0275mod=Jf({type:H3});H3.\u0275inj=Tc({imports:[ZB,UL,$K,p1]});var I3=function(){};I3.\u0275fac=function(a){return new (a||I3)};I3.\u0275mod=Jf({type:I3});I3.\u0275inj=Tc({imports:[ZB,Ly,$B,$K,aN,ZM,KZ]});var J3=function(){};J3.\u0275fac=function(a){return new (a||J3)};J3.\u0275mod=Jf({type:J3});J3.\u0275inj=Tc({imports:[ZB,Ly,$B,aN,ZM,$K]});var K3=function(){this.dialogData=n(sK);this.dialogRef=n(mK);this.originalItems=this.dialogData.fields.map(function(a){return{name:a.name,data:a}});this.items=[].concat(p(this.originalItems));this.fieldOrdering=this.dialogData.orderingCustomized;this.hasChanges=!1};K3.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};K3.\u0275fac=function(a){return new (a||K3)};
K3.\u0275cmp=B({type:K3,selectors:[["b-field-reorder-dialog"]],standalone:!1,decls:14,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["type","button","mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",1,"alphasort",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems"],["mat-dialog-actions",""],["type","button",
"mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,"click","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"h1",3);Q(3," Reorder custom fields ");J();I(4,"button",4);M("click",function(){t(c);var d=L(8);return v(DVc(d))});K(5,"mat-icon",5);J()()();I(6,"div",6)(7,"b-reorder-items",7,0);M("items",function(d){t(c);return v(b.items=d)})("hasChanges",function(d){t(c);
return v(b.hasChanges=d)});J()();I(9,"div",8)(10,"button",9);M("click",function(){t(c);return v(b.dialogRef.close())});Q(11," Cancel ");J();I(12,"button",10);M("click",function(){t(c);return v(b.onClose())});Q(13," Save ");J()()}a&2&&(z(7),D("originalItems",b.originalItems),z(5),D("disabled",b.fieldOrdering==="CUSTOMIZED"&&!b.hasChanges))},dependencies:[aB,PA,Tx,Ux,wK,yK,xK,YA,cB,oU],encapsulation:2});var L3=function(){this.matDialog=n(tK);this.confirmationDialog=n(AK);this.fieldConfigService=n(q3);this.analytics=n(CF);this.butterBar=n(iK);this.fields=[];this.isAdmin=!1;this.onReload=new LA;this.displayedColumn=["index","name","type","required","customFieldId"]},TFb=function(a){return nK(a.matDialog.open(K3,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&v9c(a,b)})},UFb=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Oi("Resetting the ordering of the custom fields will return them to the position defined by its parent component. This action may also reset the ordering of fields in all other sub-components."),onConfirm:function(){a.reset()}})},v9c=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(Mq(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){Mq(a.butterBar,
"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){a.butterBar.showWarning("Saving ordering failed, please refresh the page.",5E3)})):a.butterBar.showWarning("Saving ordering failed due to the undefined component id.")};
L3.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?(Mq(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){Mq(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){a.butterBar.showWarning("Reset failed.")})):this.butterBar.showWarning("Reset failed due to the undefined component id.")};
L3.\u0275fac=function(a){return new (a||L3)};
L3.\u0275cmp=B({type:L3,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},standalone:!1,decls:22,vars:5,consts:[[1,"field-reorder-panel"],[1,"field-order-table"],["mat-table","",3,"dataSource"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","required"],["matColumnDef","customFieldId"],
["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"no-data-row"],[1,"edit-button-row"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["type","button","mat-flat-button","","color","primary",1,"medium",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"table",2),Fg(3,3),C(4,GFb,2,0,"th",4)(5,HFb,2,1,"td",5),Gg(),Fg(6,6),C(7,IFb,2,0,"th",4)(8,JFb,2,1,"td",5),Gg(),Fg(9,7),C(10,KFb,2,0,"th",4)(11,LFb,3,
3,"td",5),Gg(),Fg(12,8),C(13,MFb,2,0,"th",4)(14,NFb,2,1,"td",5),Gg(),Fg(15,9),C(16,OFb,2,0,"th",4)(17,PFb,2,1,"td",5),Gg(),C(18,QFb,1,0,"tr",10)(19,RFb,1,0,"tr",11),J(),E(20,SFb,2,0,"div",12),J(),E(21,VFb,6,2,"div",13),J());a&2&&(z(2),D("dataSource",b.fields),z(16),D("matHeaderRowDef",b.displayedColumn),z(),D("matRowDefColumns",b.displayedColumn),z(),F(b.fields.length===0?20:-1),z(),F(b.isAdmin?21:-1))},dependencies:[PA,Tx,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,CQ],styles:["th.mat-mdc-header-cell[_ngcontent-%COMP%], td.mat-mdc-cell[_ngcontent-%COMP%]{padding:8px;text-align:left;font-size:.8125rem;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}th.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type{padding-left:8px}th.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type{padding-right:8px}.no-data-row[_ngcontent-%COMP%]{padding:12px}button[_ngcontent-%COMP%]{margin-right:12px}"]});var M3=function(){};M3.\u0275fac=function(a){return new (a||M3)};M3.\u0275mod=Jf({type:M3});M3.\u0275inj=Tc({imports:[ZB,$B,$K]});var N3=function(){};N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275mod=Jf({type:N3});N3.\u0275inj=Tc({imports:[ZB,$B,$K,oR,cC,M3,FQ,F3]});var O3=function(){this.analytics=n(CF);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},XFb=function(a,b){switch(a.packageName){case "wiki":return"https://wiki.corp.google.com/twiki/bin/view/"+encodeURIComponent(a.filename);default:var c="https://cs.corp.google.com/"+encodeURIComponent(a.packageName)+"/"+a.filename+"?q="+w9c+a.issueId+x9c;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
O3.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};O3.\u0275fac=function(a){return new (a||O3)};
O3.\u0275cmp=B({type:O3,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},standalone:!1,decls:5,vars:3,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"click","href"],[1,"bv2-file-mention-line-number-list"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"click","href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"a",1),M("click",function(){return b.trackClick("fileName")}),
Q(2),J(),E(3,WFb,2,1,"span")(4,ZFb,6,0,"span"),J());a&2&&(z(),D("href",XFb(b,b.lineNumbers),uf),z(),R(" ",b.filename," "),z(),F(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var w9c=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),x9c=encodeURIComponent("(\\b|$)");var P3=function(){};P3.\u0275fac=function(a){return new (a||P3)};P3.\u0275mod=Jf({type:P3});P3.\u0275inj=Tc({imports:[ZB]});var y9c=function(){return{width:400}},z9c=function(){return[]},Q3=function(){var a=this;this.bLocation=n(cI);this.analytics=n(CF);this.activeSession=n(Es);this.componentActions=n(oN);this.cdr=n(NA,{self:!0});this.routeParams=n(bL);this.includeArchived$=new tj(!1);this.createComponentPath=Fq.createComponent.makeHref();this.isInternalSession=this.activeSession.isInternalSession();this.trackerRootComponent$=Oe(function(){return Ce(a.activeSession.getTracker())}).pipe(fg(function(b){return b?a.componentActions.get(Number(b.componentId)):
Ce(void 0)}));this.topLevelComponents$=Je([this.trackerRootComponent$,this.includeArchived$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;return a.componentActions.getChildren((d=b==null?void 0:b.parentComponentId)!=null?d:0,c)}));this.routeParams.componentId&&bGb(this,Number(this.routeParams.componentId),Ge(this.topLevelComponents$))},bGb=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=Jba(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},h=l(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Yi(f).then(function(q){for(var u=q[0],A=0,G=l(e),H=G.next(),N={};!H.done;N={parentId$jscomp$27:void 0},H=G.next()){N.parentId$jscomp$27=H.value;H=void 0;var O=(H=u.find(function(U){return function(da){return da.componentId===U.parentId$jscomp$27}}(N)))!=null?H:null;O&&(O.children=q[N.parentId$jscomp$27],O.showChildren=!0,u=O.children,A=O.componentId)}d.archived&&!a.includeArchived&&
(b=A);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};ea.Object.defineProperties(Q3.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});Q3.\u0275fac=function(a){return new (a||Q3)};
Q3.\u0275cmp=B({type:Q3,selectors:[["b-list-components-page"]],standalone:!1,features:[hh([NA])],decls:16,vars:15,consts:[["componentPickerTemplate",""],[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["mat-button","",3,"href"],["type","button","mat-button","","dialogLabel","Components","panelClass","overflow-visible-inline-dialog-panel",3,"xapInlineDialogClick","overlaySize"],["id","bv2-issue-showarchived-button"],[1,"bv2-view"],[1,"bv2-view-loading"],[1,"top-tree",3,"init",
"components","includeArchived"],[1,"component-picker-dialog"],["ariaLabel","Choose a component to navigate to that component.",3,"selectedComponentChange","includeArchived","placeholder","shouldFocus","isRequired"],["label","Show archived",3,"modelChange","model","tooltip"],["size","small"]],template:function(a,b){if(a&1){var c=r();I(0,"h2",1);Q(1,"Browse Components");J();I(2,"div",2)(3,"div",3);E(4,$Fb,2,1,"a",4);I(5,"button",5);Q(6," Search Components ");J();C(7,aGb,4,6,"ng-template",null,0,nh);
E(9,cGb,3,4,"div",6);J()();I(10,"div",7);E(11,dGb,2,0,"div",8);S(12,"async");I(13,"component-tree-list",9);S(14,"async");S(15,"async");M("init",function(h){t(c);return v(b.componentTree=h)});J()()}if(a&2){a=L(8);z(4);F(b.isInternalSession?4:-1);z();D("xapInlineDialogClick",a)("overlaySize",ih(13,y9c));z(4);F(b.isInternalSession?9:-1);z(2);var d;F((d=T(12,7,b.topLevelComponents$))!=null&&d?-1:11);z(2);var e,f;D("components",(e=T(14,9,b.topLevelComponents$))!=null?e:ih(14,z9c))("includeArchived",(f=
T(15,11,b.includeArchived$))!=null?f:!1)}},dependencies:[ON,PM,OM,TM,gH,PA,Tx,l_,xN,Qv],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var R3=function(){};R3.\u0275fac=function(a){return new (a||R3)};R3.\u0275mod=Jf({type:R3});R3.\u0275inj=Tc({imports:[ZB,QN,rY,QM,XM,EM,hH,$B,n_,jR]});var A9c=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};A9c.\u0275fac=function(a){return new (a||A9c)};
A9c.\u0275cmp=B({type:A9c,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},standalone:!1,decls:5,vars:1,consts:[[1,"bv2-package-mention-set"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(I(0,"div",0),E(1,eGb,2,1,"p",1),I(2,"ul"),Dg(3,fGb,2,5,"li",null,Cg),J()());a&2&&(z(),F(b.displayPackageName?1:-1),z(2),
Eg(b.packageMentionSet.fileMentionSet))},dependencies:[O3],encapsulation:2});var S3=function(){};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275mod=Jf({type:S3});S3.\u0275inj=Tc({imports:[ZB,P3]});var T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=Jf({type:T3});T3.\u0275inj=Tc({imports:[ZB,Ly,$B,$K,aN,cJ,ZM]});var U3=function(){this.activeSession=n(Es)};U3.prototype.ngOnInit=function(){};var B9c=function(a){var b=window.location.href;b=b.replace(/\/u\/(\d+)\//,"/");a.trackerInternalBaseUrl&&a.trackerExternalBaseUrl&&(b=b.replace(a.trackerInternalBaseUrl,a.trackerExternalBaseUrl));return b};U3.\u0275fac=function(a){return new (a||U3)};
U3.\u0275cmp=B({type:U3,selectors:[["b-tracker-account-menu-hack"]],inputs:{trackerInternalBaseUrl:"trackerInternalBaseUrl",trackerExternalBaseUrl:"trackerExternalBaseUrl"},standalone:!1,decls:11,vars:4,consts:[["accountHackMenu","matMenu"],["type","button","aria-label","Open account menu",1,"tracker-account-hack-button",3,"matMenuTriggerFor"],["xPosition","before"],[1,"padded-s-x","text-center"],[1,"padded-s-y"],["mat-menu-item","",3,"href"]],template:function(a,b){a&1&&(K(0,"button",1),I(1,"mat-menu",
2,0)(3,"div",3),E(4,gGb,2,1,"div",4),K(5,"hr"),I(6,"a",5),Q(7,"Switch accounts"),J(),K(8,"hr"),I(9,"a",5),Q(10,"Sign out of all accounts"),J()()());a&2&&(a=L(2),D("matMenuTriggerFor",a),z(4),F(b.activeSession.getUserEmail()?4:-1),z(2),D("href","https://accounts.google.com/AccountChooser?hl=en&osid=1&continue="+encodeURIComponent(B9c(b)),uf),z(3),D("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(B9c(b)),uf))},dependencies:[UG,XG,VG,YG],styles:[".tracker-account-hack-button[_ngcontent-%COMP%]{z-index:9999;top:0;right:0;position:absolute;width:48px;height:48px;padding:0;margin:0;border:none;cursor:pointer;background:none;outline:none}"]});var V3=function(){Z.apply(this,arguments);this.trackerCheckboxValues={}};Y(V3,Z);V3.\u0275dir=Z.\u0275dir;V3.prototype.ngOnChanges=function(a){if(a.currentTrackerId){this.trackerCheckboxValues={};var b;a=l((b=this.availableTrackers)!=null?b:[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.currentTrackerId===b.trackerId?this.trackerCheckboxValues[b.trackerId]=!0:this.trackerCheckboxValues[b.trackerId]=!1}};var C9c=function(a){return Object.keys(Ti(a.trackerCheckboxValues,function(b){return b}))};
V3.\u0275fac=function(){var a;return function(b){return(a||(a=fe(V3)))(b||V3)}}();
V3.\u0275cmp=B({type:V3,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},standalone:!1,features:[kg,Uu],decls:9,vars:3,consts:[[1,"bv2-tracker-search"],[1,"bv2-adv-search-rule","bv2-adv-tracker-search-rule"],[1,"bv2-adv-tracker-search-rule-title"],[1,"bv2-adv-tracker-search-rule-error"],[1,"bv2-adv-search-enum-rule"],[1,"bv2-adv-search-enum-item"],["gmat-checkbox","",3,"change","checked"]],template:function(a,b){a&1&&(I(0,"div",0)(1,
"div",1)(2,"div",2)(3,"span"),Q(4,"Select a tracker"),J(),E(5,hGb,2,0,"span",3),J(),I(6,"div",4),Dg(7,iGb,3,2,"div",5,Cg),J()()());a&2&&(wg("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),z(5),F(C9c(b).length!==0?-1:5),z(2),Eg(b.availableTrackers))},dependencies:[yM,CM],styles:[".bv2-adv-tracker-search-rule[_ngcontent-%COMP%]{margin-top:0px;margin-bottom:10px;flex-direction:column}.bv2-adv-tracker-search-rule-title[_ngcontent-%COMP%]{font-weight:bold;margin-bottom:8px}.bv2-adv-tracker-search-rule-error[_ngcontent-%COMP%]{font-weight:normal;margin-left:8px;color:#d93025}"]});var W3=function(){var a=n(nD),b=n(EN);Z.call(this);var c=this;this.analytics=n(CF);this.location=n(cI);this.prefsManager=n(OG);this.domSafe=n(rL);this.prefsManager.preferences$.pipe(gg(this.destroyed$)).subscribe(function(d){c.prefs=d});a.topBarEvents.browseComponents.pipe(gg(this.destroyed$)).subscribe(function(d){d=d.newTab;D9c(c,Fq.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(gg(this.destroyed$)).subscribe(function(d){d=d.newTab;D9c(c,Fq.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(gg(this.destroyed$)).subscribe(function(d){d=
d.newTab;D9c(c,Fq.listSlos.makeHref(),d)});a.topBarEvents.setDensity.pipe(gg(this.destroyed$)).subscribe(function(d){c.setDensity(d)});a.topBarEvents.openSettings.pipe(gg(this.destroyed$)).subscribe(function(d){var e=d.newTab;D9c(c,b.settings(d.settingsTabName),e)})};Y(W3,Z);W3.\u0275dir=Z.\u0275dir;var D9c=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.setUrl(b)};
W3.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(Uf(),gg(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};W3.\u0275fac=function(a){return new (a||W3)};W3.\u0275prov=Sc({token:W3,factory:W3.\u0275fac,providedIn:"root"});var X3=function(){Z.call(this);var a=this;this.activeSession=n(Es);this.searchAcData=n(V1);this.savedSearchApi=n(MD);this.butterBar=n(iK);this.bLocation=n(cI);this.paths=n(EN);this.analytics=n(CF);this.appEvents=n(nD);this.appSearchState=n(mX);this.trackerFridge=n(IG);this.errorHandler=n(DK);n(W3);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=
Yr(this.activeSession,"enableTrackersAccountHack");this.currentTracker=this.activeSession.getTracker();this.associatedTrackers$=Oe(function(){var b,c;return Ce((c=(b=a.currentTracker)==null?void 0:b.associatedTrackerIds)!=null?c:[])}).pipe(fg(function(b){return a.trackerFridge.watchSet(b)}));this.availableTrackers$=this.associatedTrackers$.pipe(y(function(b){return a.currentTracker?[a.currentTracker].concat(p(b)):[]}));this.searchAcData.acRefreshed$.pipe(gg(this.destroyed$)).subscribe(function(){a.items=
a.searchAcData.items;a.acHeader=a.searchAcData.acHeader});this.trackerFridge.error$.pipe(gg(this.destroyed$)).subscribe(function(b){b.status!==403&&a.errorHandler.errorHandler(null,b)})};Y(X3,Z);X3.\u0275dir=Z.\u0275dir;var E9c=function(a,b){if(b)return"Search "+b.name+" Issues";switch(a.frontendAccessMode){case "INTERNAL":return"Search Buganizer";case "PARTNER":return"Search Partner IssueTracker";case "PUBLIC":return"Search IssueTracker";default:return"Search"}};
X3.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(gg(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(d.cursorIdx==null)d.currentSearchContext=null;else{var f=d.query,h=d.cursorIdx;if(h<0||h>f.length)throw Error("vf");e=new u6c(f,h);if(f){var k=f.slice(0,h);for(var q=!1,u=-1,A=-1;(u=k.indexOf('"',u+1))>-1;)q=!q,A=u;k=q?A:-1;if(k>-1)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=Szb(f.slice(0,h)+(q>-1?k.slice(0,q):k),y6c))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},k.val.startsWith("customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);u=Math.max(h-q,0);A=k;if(f.charAt(0)==="("){b:{A=[];for(var G=/[()]/g,H;(H=G.exec(f))!=null;){var N=A[A.length-1];if(N&&N!==H[0]){if(A.pop(),
!A.length){A=H.index>=u;break b}}else A.push(H[0])}A=!0}A=A?2:0}else A=v6c.includes(A.val)&&f.search("^\\d")===-1?1:0;switch(A){case 2:h=v6c.includes(k.val)?hs(f,u,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):hs(f,u,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(h.val)&&(h.val="",h.idx=u);e.value=h;break;case 1:e.value=hs(f,u,"[()|]","[()|,\\s]");break;case 0:e.value=hs(f,u,"[\\s()|]");f.slice(0,u).search("[\\s()|]")>-1&&(k=null,u=Szb(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=Rzb(f,
u.index-u[1].length,h));break;default:Gb(A,"unknown ValueType.")}e.value.idx+=q;e.label=k}else k=Szb(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?Rzb(f,k.index-k[1].length,h):hs(f,h,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,h=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:h,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(y(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(ig(b),
gg(this.destroyed$)).subscribe(function(c){c=l(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=d===void 0?"":d;var f=Nfb(c),h=f.filters,k=f.text,q=f.complexSyntax,u=f.resourceIds;f=[h,k,u].reduce($i);h=[h?"filters":void 0,k?"text":void 0,u?"ids":void 0].filter(Boolean).join("-");q?e.track(d,"complex"):h?e.track(d,h,f):e.track(d,"UNHANDLED");d=Ua(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
X3.prototype.ngAfterViewInit=function(){H8c(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var F9c=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:O8c(a.advancedSearchCtrl).trim()};g=X3.prototype;g.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(F9c(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&H8c(this.advancedSearchCtrl,this.currentQuery)};
g.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:C9c(a))!=null?b:[]);this.advancedSearchCtrl&&(a=F9c(this),a!==void 0&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
g.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:C9c(a))!=null?b:[]);this.advancedSearchCtrl&&(a=F9c(this),a!==void 0&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
g.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=F9c(this);c!==void 0&&(Mq(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;Mq(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.setUrl(b.paths.viewSavedSearch(d));b.analytics.trackEvent("savedSearches","create")}).catch(function(d){b.butterBar.showWarning(Xo(d))}))}};
g.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&C9c(this.trackerSearchCtrl).length===0};X3.\u0275fac=function(a){return new (a||X3)};
X3.\u0275cmp=B({type:X3,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&(Wg(Q2,5),Wg(V3,5));if(a&2){var c;$g(c=ah())&&(b.advancedSearchCtrl=c.first);$g(c=ah())&&(b.trackerSearchCtrl=c.first)}},standalone:!1,features:[kg],decls:7,vars:12,consts:[[3,"searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch","logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader",
"isSearchDisabled"],[3,"currentTrackerId","availableTrackers"],[3,"isTrackerSearchEnabled"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],[3,"trackerInternalBaseUrl","trackerExternalBaseUrl"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(I(0,"b-app-top-bar",0),M("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",
function(c){return b.saveSearch(c)}),E(1,jGb,2,4,"b-tracker-search",1),K(2,"b-advanced-search",2),E(3,kGb,4,0,"div",3),E(4,nGb,3,2,"div",4),E(5,oGb,2,0,"div",4),J(),E(6,pGb,1,2,"b-tracker-account-menu-hack",5));a&2&&(D("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",E9c(b,b.currentTracker))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled()),z(),F(b.currentTracker?1:
-1),z(),D("isTrackerSearchEnabled",!b.currentTracker),z(),F((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="INIT"?3:-1),z(),F((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"||(b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?4:-1),z(),F((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SERVER_ERROR"?5:-1),z(),F(b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&b.currentTracker?
6:-1))},dependencies:[aB,Q2,V3,d9c,ON,U3,Qv],styles:["b-app-top-bar[_ngcontent-%COMP%]{position:relative;z-index:900}.warning-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.warning-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#e37400;color:var(--warn-gfx);height:30px;width:30px;flex-shrink:0}.warning-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{display:inline-block;margin-left:12px}"]});var Y3=function(){};Y3.\u0275fac=function(a){return new (a||Y3)};Y3.\u0275mod=Jf({type:Y3});Y3.\u0275inj=Tc({imports:[ZB,GM]});var Z3=function(){};Z3.\u0275fac=function(a){return new (a||Z3)};Z3.\u0275mod=Jf({type:Z3});Z3.\u0275inj=Tc({imports:[ZB,S2,Y3,j3,QN,LH]});var a4=function(){this.dialogRef=n(mK);this.data=n(sK);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=Ak;this.DiffType=Flc};a4.prototype.close=function(){this.dialogRef.close()};a4.\u0275fac=function(a){return new (a||a4)};
a4.\u0275cmp=B({type:a4,selectors:[["b-update-history-modal"]],standalone:!1,decls:7,vars:0,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],[1,"bv2-event"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],[1,"bv2-event-details"],
[1,"bv2-diff-detail"],[1,"bv2-diff-arrow"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"ul",1),Dg(2,yGb,11,3,"li",2,Cg),J()(),I(4,"div",3)(5,"button",4),M("click",function(){return b.close()}),Q(6," Close "),J()());a&2&&(z(2),Eg(b.updateDiffs))},dependencies:[PA,Tx,yK,xK,AL,yL,ZL],styles:[".update-history-modal[_ngcontent-%COMP%]{word-break:break-word}.update-history-modal[_ngcontent-%COMP%]   .update-history-list[_ngcontent-%COMP%]{max-height:500px;overflow-y:auto;padding:0}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]{padding:0 0 10px}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]:last-child{border-bottom:none}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{width:auto}.update-history-modal[_ngcontent-%COMP%]   .bv2-event[_ngcontent-%COMP%]   .bv2-event-details[_ngcontent-%COMP%]   .bv2-diff-detail[_ngcontent-%COMP%]{margin-right:0;word-break:break-word}h4[_ngcontent-%COMP%]{margin:0;margin-bottom:8px;font-weight:normal}"]});var b4=function(){};b4.\u0275fac=function(a){return new (a||b4)};b4.\u0275mod=Jf({type:b4});b4.\u0275inj=Tc({imports:[ZB,$B,$K,FL,dM]});var c4=function(){this.$window=n(jK);this.activeSession=n(Es);this.faviconUrl=this.defaultFaviconUrl=$h("https://www.gstatic.com/buganizer/img/v4/favicon.png")};c4.\u0275fac=function(a){return new (a||c4)};c4.\u0275prov=Sc({token:c4,factory:c4.\u0275fac,providedIn:"root"});var G9c=cmc("edited-ids"),H9c=dva("edited-ids"),I9c=cmc("viewed-ids"),J9c=dva("viewed-ids"),d4=function(){this.appEvents=n(nD);this.stop$=new bg;this.edited=new s_c;this.viewed=new s_c},K9c=function(a){u_c(a.viewed,J9c());u_c(a.edited,H9c());a.appEvents.issueViewed.pipe(gg(a.stop$)).subscribe(function(b){t_c(a.viewed,b);I9c(Array.from(a.viewed.dataStore.keys()).join(","))});a.appEvents.issueEdited.pipe(gg(a.stop$)).subscribe(function(b){t_c(a.edited,b);G9c(Array.from(a.edited.dataStore.keys()).join(","))})};
d4.\u0275fac=function(a){return new (a||d4)};d4.\u0275prov=Sc({token:d4,factory:d4.\u0275fac,providedIn:"root"});var L9c=/^\s*[^:/?#]+:/i,M9c=/^#/i,e4=function(){var a=this;this.bLocation=n(cI);this.linkClickHandler=function(b){if(!(b.ctrlKey||b.metaKey||b.shiftKey||b.which===2||b.button===2||b.defaultPrevented)){var c;a:{for(c=b.target;c;){if(c.tagName==="A")break a;c=c.parentElement}c=void 0}if(c&&(!c.hasAttribute("target")||c.getAttribute("target")==="_self")&&(c=c.getAttribute("href"))&&!L9c.test(c))if(M9c.test(c)){a.bLocation.hash(c.substring(1));var d;(d=document.getElementById(c.substring(1)))==null||
d.scrollIntoView();b.stopPropagation();b.preventDefault()}else b.preventDefault(),a.bLocation.setUrl(c)}}};e4.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};e4.prototype.uninstall=function(){document.removeEventListener("click",this.linkClickHandler)};e4.\u0275fac=function(a){return new (a||e4)};e4.\u0275prov=Sc({token:e4,factory:e4.\u0275fac,providedIn:"root"});var N9c=[],O9c=!1,f4=function(){Z.apply(this,arguments);this.hatsService=n(uR);this.iconRegistry=n($A);this.session=n(Es);this.appHistory=n(m2);this.routePerformance=n(WX);this.linkClickHandler=n(e4);this.issueLru=n(d4);this.faviconService=n(c4);this.imageUrls=n(qN)};Y(f4,Z);f4.\u0275dir=Z.\u0275dir;f4.prototype.tearDown=function(){Z.prototype.ngOnDestroy.call(this);this.linkClickHandler.uninstall()};f4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(f4)))(b||f4)}}();
f4.\u0275prov=Sc({token:f4,factory:f4.\u0275fac,providedIn:"root"});
var P9c={provide:X$b,useFactory:function(a){return function(){O9c||(a.iconRegistry._addSvgIconSetConfig("",new gkc(a.imageUrls.ICON_URL)),O9c=!0);if(a.session.isInternalSession()){MNc(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(Uf(),gg(a.destroyed$)).subscribe();for(var b=l(N9c),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;Yr(a.session,c.flagName)&&MNc(a.hatsService,d).pipe(Uf(),gg(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();
K9c(a.issueLru);c=a.faviconService;b=c.$window.document.head.querySelector('link[rel="shortcut icon"]');d=b==null?void 0:b.href;c.faviconUrl=d?$h(d):c.defaultFaviconUrl;var e;d=c.activeSession.getTracker();if(d==null?0:(e=d.branding)==null?0:e.logoUrl){var f;e=$h(d==null?void 0:(f=d.branding)==null?void 0:f.logoUrl)}else e=c.faviconUrl;f=e;if(b&&b.href!==f.toString())if(f instanceof Th)b.href=Vh(f).toString(),b.rel="icon";else{if(jbc.indexOf("icon")===-1)throw Error("Za`icon");f=ai(f);f!==void 0&&
(b.href=f,b.rel="icon")}}},deps:[f4],multi:!0};var g4=function(){this.paths=n(EN);this.bLocation=n(cI)};g4.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=Hq(a.issueId)+(b?"#"+b:"");this.bLocation.setUrl(a)};g4.\u0275fac=function(a){return new (a||g4)};g4.\u0275prov=Sc({token:g4,factory:g4.\u0275fac,providedIn:"root"});var Q9c={provide:EO,useExisting:g4};var R9c=function(){var a;switch((a=self.location)==null?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "critique-staging.corp.google.com":return 2;case "cider-test.corp.google.com":case "cider-v-test.corp.google.com":case "critique-qa.corp.google.com":return 3;default:return 4}}();var h4=function(a){aF.call(this);this.errorHandlerFn_=a};zu(h4,aF);h4.prototype.wrap=function(a){return S9c(this,a)};var i4=function(a,b){return(b?"__wrapper_":"__protected_")+db(a)+"__"},S9c=function(a,b){var c=i4(a,!0);b[c]||((b[c]=T9c(a,b))[i4(a,!1)]=b);return b[c]},T9c=function(a,b){var c=function(){if(a.isDisposed())return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(d){a.handleError_(d)}};c[i4(a,!1)]=b;return c};
h4.prototype.handleError_=function(a){if(!(a&&typeof a==="object"&&typeof a.message==="string"&&a.message.indexOf("Error in protected function: ")==0||typeof a==="string"&&a.indexOf("Error in protected function: ")==0))throw this.errorHandlerFn_(a),new U9c(a);};
var V9c=function(a,b){var c=ya.window||ya.globalThis,d=c[b];if(!d)throw Error("zf`"+b);c[b]=function(e,f){typeof e==="string"&&(e=yu(R7b,e));e&&(arguments[0]=e=S9c(a,e));if(d.apply)return d.apply(this,arguments);var h=e;if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);h=function(){e.apply(this,k)}}return d(h,f)};c[b][i4(a,!1)]=d};
h4.prototype.disposeInternal=function(){var a=ya.window||ya.globalThis;var b=a.setTimeout;b=b[i4(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[i4(this,!1)]||b;a.setInterval=b;h4.superClass_.disposeInternal.call(this)};var U9c=function(a){wa.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&typeof a==="string"&&(this.stack=a)};zu(U9c,wa);var X9c=function(a,b,c){Hp.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=W9c;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new h4(mt(this.handleException,this));V9c(this.errorHandler_,"setTimeout");V9c(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ya.window||ya.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&V9c(a,
e)}a=this.errorHandler_;Tfc=!0;b=mt(a.wrap,a);for(c=0;c<Rfc.length;c++)Rfc[c](b);Sfc.push(a)}};zu(X9c,Hp);var Y9c=function(a,b){oF.call(this,"z");this.error=a;this.context=b};zu(Y9c,oF);var W9c=function(a,b,c,d){if(d instanceof Map){var e={};d=l(d);for(var f=d.next();!f.done;f=d.next()){var h=l(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;r2a(a,null,b,c,e)};
X9c.prototype.handleException=function(a,b){a=a.error||a;b=b?Wi(b):{};a instanceof Error&&Vqa(b,a.__closure__error__context__984382||{});var c=mbc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof wa&&!a.reportErrorToServer||Z9c(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new Y9c(c,b))}catch(e){}};
var Z9c=function(a,b,c,d,e,f){try{var h=SUa(a.handlerUrl_,"script",c,"error",b,"line",d);Ui(a.additionalArguments_)||(h=UUa(h,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var q=Ouc(b);a.xhrSender_(h,"POST",q,a.extraHeaders_)}catch(u){}};X9c.prototype.disposeInternal=function(){To(this.errorHandler_);X9c.superClass_.disposeInternal.call(this)};var j4=function(){this.jsBuild="739735430";this.buildLabel="buganizer.frontend_20250323.15_p0"};j4.\u0275fac=function(a){return new (a||j4)};j4.\u0275prov=Sc({token:j4,factory:j4.\u0275fac,providedIn:"root"});var k4=function(){};k4.prototype.reportingEnabled=function(){return R9c!==4};k4.\u0275fac=function(a){return new (a||k4)};k4.\u0275prov=Sc({token:k4,factory:k4.\u0275fac,providedIn:"root"});
var l4=function(){var a=this;this.appContext=n(k4);this.context={};this.reportingExtensions=[];var b=n(j4);this.jsDebugErrorReporter=new X9c("/jserror",function(c,d){d.js_build=b.jsBuild;d.buildLabel=b.buildLabel;d["build-label"]=b.buildLabel;c=l(a.reportingExtensions);for(var e=c.next();!e.done;e=c.next())e.value.enhanceContext(d)},!0)},$9c=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(zGb(c),Z9c(a.jsDebugErrorReporter,
b,c.fileName,c.lineNumber,c.stack,a.context),a=l(a.reportingExtensions),b=a.next();!b.done;b=a.next())b.value.onReportedError()}};l4.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){zGb(a);this.jsDebugErrorReporter.handleException(a);a=l(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};l4.\u0275fac=function(a){return new (a||l4)};
l4.\u0275prov=Sc({token:l4,factory:l4.\u0275fac,providedIn:"root"});var m4=function(){this.reporter=n(l4)};
m4.prototype.handleError=function(a){if(Wo(a))if(a.status===400)var b=!1;else{var c;b=Math.floor(((c=a.status)!=null?c:0)/100)===4}else b=a instanceof Error&&a.message.includes("queueMicrotask is not defined")?!0:!1;if(b)Lj("omitting eye3 reporting of",a);else if(typeof a==="string")$9c(this.reporter,a);else if(a instanceof Error||!Wo(a)){b=mbc(a);var d,e;this.reporter.reportError(Object.assign({},b,{name:(d=b.name)!=null?d:"UnknownError",message:(e=b.message)!=null?e:String(a)}))}else $9c(this.reporter,
Xo(a))};m4.\u0275fac=function(a){return new (a||m4)};m4.\u0275prov=Sc({token:m4,factory:m4.\u0275fac,providedIn:"root"});var n4=function(){this.activeSession=n(Es)};Y(n4,k4);n4.prototype.reportingEnabled=function(){return Yr(this.activeSession,"reportErrors")};n4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(n4)))(b||n4)}}();n4.\u0275prov=Sc({token:n4,factory:n4.\u0275fac,providedIn:"root"});
var a$c={provide:xf,useClass:m4},b$c={provide:k4,useClass:n4},c$c={provide:j4,useValue:{jsBuild:"739735430",buildLabel:"buganizer.frontend_20250323.15_p0"}};var o4=function(){};o4.\u0275fac=function(a){return new (a||o4)};o4.\u0275cmp=B({type:o4,selectors:[["b-empty"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var p4=function(){};p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275mod=Jf({type:p4});p4.\u0275inj=Tc({});var q4=function(){};Y(q4,zA);q4.prototype.store=function(){};q4.prototype.retrieve=function(){return null};q4.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Pj(a.params,b.params)};q4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(q4)))(b||q4)}}();q4.\u0275prov=Sc({token:q4,factory:q4.\u0275fac,providedIn:"root"});var r4=function(){this.router=n(DA)};
r4.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=l(b.url.split("#ISSUE_HistoryHeader"));a=c.next().value;c=c.next().value;return EA(this.router,[a],{fragment:c&&!isNaN(Number(c))?"comment"+c:void 0})}if(a.queryParamMap.has("showInsights")&&a.queryParamMap.get("showInsights")==="1"){b=l(b.url.split("?")).next().value;var d={};return EA(this.router,[b],{queryParams:Object.assign({},TJa(a.queryParamMap),(d.showInsights="deployments",d)),fragment:(c=a.fragment)!=
null?c:void 0})}return b.url==="/attention"?EA(this.router,["home"]):!0};r4.\u0275fac=function(a){return new (a||r4)};r4.\u0275prov=Sc({token:r4,factory:r4.\u0275fac,providedIn:"root"});var d$c=/^(\d+)$/,s4=function(){this.butterBar=n(iK);this.paramNamesToCheck=new Set(Object.values(Jnc))};s4.prototype.validate=function(a){for(var b=l(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=kn(d);if(!d$c.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};s4.\u0275fac=function(a){return new (a||s4)};
s4.\u0275prov=Sc({token:s4,factory:s4.\u0275fac,providedIn:"root"});var t4=function(){this.routeParamsValidator=n(s4)};t4.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};t4.\u0275fac=function(a){return new (a||t4)};t4.\u0275prov=Sc({token:t4,factory:t4.\u0275fac,providedIn:"root"});var u4=function(){this.activeSession=n(Es);this.router=n(DA)};u4.prototype.canActivate=function(){return this.activeSession.isAnonymous()?EA(this.router,["issues"]):!0};u4.\u0275fac=function(a){return new (a||u4)};u4.\u0275prov=Sc({token:u4,factory:u4.\u0275fac,providedIn:"root"});var v4=function(){this.activeSession=n(Es);this.router=n(DA)};v4.prototype.canActivate=function(){return this.activeSession.isInternalSession()||Yr(this.activeSession,"enableMissionControlInExternalEnvironments")?!0:EA(this.router,["issues"])};v4.\u0275fac=function(a){return new (a||v4)};v4.\u0275prov=Sc({token:v4,factory:v4.\u0275fac,providedIn:"root"});var w4=function(){this.userPreferences=n(OG);this.activeSession=n(Es)},e$c=function(a){var b=a.activeSession.isInternalSession()||Yr(a.activeSession,"enableMissionControlInExternalEnvironments");a=op(a.userPreferences.homepagePreferences$);if(b&&(a==null||Object.keys(a).length===0||(a==null?void 0:a.resourceType)==="MISSION_CONTROL"))return"/home";if((a==null?void 0:a.resourceType)==="ASSIGNED_TO_ME"||a==null||!a.resourceId)return"/issues";switch(a.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+
a.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+a.resourceId;case "HOTLIST":return"/hotlists/"+a.resourceId;default:return"/issues"}};w4.\u0275fac=function(a){return new (a||w4)};w4.\u0275prov=Sc({token:w4,factory:w4.\u0275fac,providedIn:"root"});var x4=function(){this.router=n(DA);this.homepageRedirection=n(w4)};x4.prototype.canActivate=function(){return EA(this.router,[e$c(this.homepageRedirection)])};x4.\u0275fac=function(a){return new (a||x4)};x4.\u0275prov=Sc({token:x4,factory:x4.\u0275fac,providedIn:"root"});var f$c={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var j7b={default:1363614,apps:1456886,blink:1456407,devtools:1457055,enterprise:1456152,extensions:1456110,installer:1456937,media:1456190,network:1456527,sync:1457192,ui:1457123,webstore:1457238},i7b={default:402888,apps:422083,blink:421442,devtools:422123,enterprise:421726,extensions:422130,installer:421863,media:421886,network:421924,sync:422168,ui:422198,webstore:422443},g$c=["media-bugs@chromium.org"],h$c=["chrome-sync-monorail@google.com"];var i$c={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},j$c={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},k$c=new yd("CustomQuestionsConfig"),l$c=new yd("ComponentIds"),m$c=new yd("CustomFieldIds"),n$c=new yd("HotlistIds");var y4=function(){this.componentIds=n(l$c);this.persona="USER";this.categoryChange=new LA;var a={};this.options=(a.USER=[{title:"UI",description:"Problems with the user interface (e.g. tabs, context menus, etc...)",value:"UI",componentId:this.componentIds.ui},{title:"Network / Downloading",description:"Problems with accessing remote content",value:"NETWORK_DOWNLOADING",componentId:this.componentIds.network},{title:"Audio / Video",description:"Problems playing back sound or movies",value:"AUDIO_VIDEO",
componentId:this.componentIds.media,ccEmails:g$c},{title:"Content",description:"Problems with webpages not working correctly",value:"CONTENT"},{title:"Apps",description:"Issues with Webstore apps",value:"APPS",componentId:this.componentIds.apps},{title:"Extensions / Themes",description:"Issues with Webstore extensions and themes",value:"EXTENSIONS_THEMES",componentId:this.componentIds.extensions},{title:"Webstore",description:"Problems with the Chrome Webstore itself",value:"WEBSTORE",componentId:this.componentIds.webstore},
{title:"Sync",description:"Problems syncing data to a Google account",value:"SYNC",componentId:this.componentIds.sync,ccEmails:h$c},{title:"Enterprise",description:"Policy configuration and deployment issues",value:"ENTERPRISE",componentId:this.componentIds.enterprise},{title:"Installation",description:"Problem installing Chrome",value:"INSTALLATION",componentId:this.componentIds.installer},{title:"Crashes",description:'The browser closes abruptly or I see "Aw, Snap!" pages',value:"CRASHES"},{title:"Other",
description:"Something not listed here",value:"OTHER"}],a.DEVELOPER=[{title:"API",description:"Problems with a browser API",value:"API",componentId:this.componentIds.blink},{title:"JavaScript",description:"Problems with the JavaScript interpreter",value:"JAVASCRIPT",componentId:this.componentIds.blink},{title:"Developer Tools",description:"Problems with the Developer tool chain/inspector",value:"DEV_TOOLS",componentId:this.componentIds.devtools}],a.VULN_REPORTER=[{title:"Security",description:"Problems with the browser security",
value:"SECURITY"}],a.CONTRIBUTOR=[],a)};y4.prototype.ngOnChanges=function(a){var b=this;a.persona&&a.persona.currentValue==="VULN_REPORTER"&&setTimeout(function(){b.category=b.options.VULN_REPORTER[0];b.categoryChange.emit(b.category)})};y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=B({type:y4,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},standalone:!1,features:[Uu],decls:6,vars:2,consts:[["appearance","outline","aria-label","Which of the following describes your issue?"],["aria-label","Choose issue category",3,"valueChange","value"],[1,"multiline",3,"value"],[1,"description"]],template:function(a,b){a&1&&(I(0,"mat-form-field",0)(1,"mat-select",1),M("valueChange",function(d){b.category=
d;b.categoryChange.emit(b.category)}),I(2,"mat-select-trigger"),Q(3),J(),Dg(4,BGb,5,3,"mat-option",2,Cg),J()());if(a&2){z();D("value",b.category);z(2);var c;R(" ",(c=b.category==null?null:b.category.title)!=null?c:""," ");z();Eg(b.options[b.persona])}},dependencies:[Xy,YM,rP,zP,AP,Lx],styles:["mat-option.multiline[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:400;line-height:1.5em;height:5em}mat-option.multiline[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#5f6368;color:var(--text-muted)}mat-form-field[_ngcontent-%COMP%]{min-width:300px}\n/*# sourceMappingURL=category_select.css.map */"]});var CGb=function(a){return{question:a}},z4=function(){this.config=n(k$c);this.CustomQuestionType=j$c;this.responses=new LA;this.model=Object.assign({},this.config)};z4.prototype.ngOnInit=function(){};var IGb=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};z4.\u0275fac=function(a){return new (a||z4)};
z4.\u0275cmp=B({type:z4,selectors:[["wizard-custom-questions"]],inputs:{category:"category"},outputs:{responses:"responses"},standalone:!1,decls:10,vars:0,consts:[["customQuestion",""],["input",""],["text",""],["select",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHtml"],["appearance","outline"],["matInput","",3,"ngModelChange","ngModel"],["appearance","outline",1,"textarea"],["required","",3,"valueChange","value"],[3,"value"]],template:function(a,b){a&1&&(Dg(0,DGb,1,4,"ng-container",
4,Cg),C(2,HGb,3,1,"ng-template",null,0,nh)(4,JGb,3,3,"ng-template",null,1,nh)(6,KGb,4,3,"ng-template",null,2,nh)(8,OGb,6,4,"ng-template",null,3,nh));a&2&&Eg(b.model[b.category])},dependencies:[Pv,Li,oy,vy,$M,ez,Xy,YM,rP,zP,Lx],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}mat-form-field[_ngcontent-%COMP%]{min-width:500px}\n/*# sourceMappingURL=custom_questions.css.map */']});var o$c=function(){this.Persona=i$c;this.persona="USER";this.personaChange=new LA};o$c.\u0275fac=function(a){return new (a||o$c)};
o$c.\u0275cmp=B({type:o$c,selectors:[["wizard-persona-picker"]],inputs:{persona:"persona"},outputs:{personaChange:"personaChange"},standalone:!1,decls:18,vars:5,consts:[["aria-label","Select your following role",3,"ngModelChange","ngModel"],[3,"value"],[1,"subtext"],[1,"vuln-reporter",3,"value"]],template:function(a,b){a&1&&(I(0,"div")(1,"mat-radio-group",0),M("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),I(2,"mat-radio-button",1),Q(3," End User "),I(4,"div",2),Q(5," I am trying to use a website. "),
J()(),I(6,"mat-radio-button",1),Q(7," Web Developer "),I(8,"div",2),Q(9," I am trying to build something on a website. "),J()(),I(10,"mat-radio-button",3),Q(11," Vulnerability Reporter "),I(12,"div",2),Q(13," I am reporting a possible security vulnerability. "),J()(),I(14,"mat-radio-button",1),Q(15," Chromium Contributor "),I(16,"div",2),Q(17," I know about a problem in specific tests or code. "),J()()()());a&2&&(z(),D("ngModel",b.persona),z(),D("value",b.Persona.USER),z(4),D("value",b.Persona.DEVELOPER),
z(4),D("value",b.Persona.VULN_REPORTER),z(4),D("value",b.Persona.CONTRIBUTOR))},dependencies:[oy,vy,zN,AN],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     mat-radio-button .mat-internal-form-field{-webkit-box-align:baseline;-webkit-align-items:baseline;-moz-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}mat-radio-group[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width:960px){mat-radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}mat-radio-button[_ngcontent-%COMP%]{border-bottom:2px solid;border-bottom-color:#dadce0;border-bottom-color:var(--c300);font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400;max-width:270px;height:90px;padding:16px;white-space:nowrap}mat-radio-button[_ngcontent-%COMP%]   .subtext[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.2rem;min-height:48px;margin-top:12px;text-wrap:wrap}\n/*# sourceMappingURL=persona_picker.css.map */"]});var p$c=new yd("GMAT_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var q$c=function(a){this.options=a};q$c.\u0275fac=function(a){return new (a||q$c)(zf(p$c))};q$c.\u0275dir=Kf({type:q$c,selectors:[["mat-card"]],hostVars:2,hostBindings:function(a,b){a&2&&wg("gmat-mdc-card",!b.options.disableGmatStyle)},standalone:!1});var A4=function(){this._elementRef=n(ff)};A4.prototype.focus=function(){this._elementRef.nativeElement.focus()};A4.\u0275fac=function(a){return new (a||A4)};A4.\u0275dir=Kf({type:A4,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var B4=function(){this.template=n(Tg)};B4.\u0275fac=function(a){return new (a||B4)};B4.\u0275dir=Kf({type:B4,selectors:[["","cdkStepLabel",""]]});var r$c=new yd("STEPPER_GLOBAL_OPTIONS"),D4=function(){this._stepper=n(C4);this.interacted=!1;this.interactedStream=new hv;this.editable=!0;this.optional=!1;this._customError=this._completedOverride=null;var a=n(r$c,{optional:!0});this._stepperOptions=a?a:{};this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1};g=D4.prototype;g._getDefaultCompleted=function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted};
g._getDefaultError=function(){return this.stepControl&&this.stepControl.invalid&&this.interacted};g.select=function(){this._stepper.selected=this};g.reset=function(){this.interacted=!1;this._completedOverride!=null&&(this._completedOverride=!1);this._customError!=null&&(this._customError=!1);if(this.stepControl){var a;(a=this._childForms)==null||a.forEach(function(b){var c;return(c=b.resetForm)==null?void 0:c.call(b)});this.stepControl.reset()}};g.ngOnChanges=function(){this._stepper._stateChanged()};
g._markAsInteracted=function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))};g._showError=function(){var a;return(a=this._stepperOptions.showError)!=null?a:this._customError!=null};
ea.Object.defineProperties(D4.prototype,{completed:{configurable:!0,enumerable:!0,get:function(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride},set:function(a){this._completedOverride=a}},hasError:{configurable:!0,enumerable:!0,get:function(){return this._customError==null?this._getDefaultError():this._customError},set:function(a){this._customError=a}}});D4.\u0275fac=function(a){return new (a||D4)};
D4.\u0275cmp=B({type:D4,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(Xg(c,B4,5),Xg(c,ny,5));if(a&2){var d;$g(d=ah())&&(b.stepLabel=d.first);$g(d=ah())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&Wg(Tg,7);if(a&2){var c;$g(c=ah())&&(b.content=c.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Dh],optional:[2,
"optional","optional",Dh],completed:[2,"completed","completed",Dh],hasError:[2,"hasError","hasError",Dh]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Uu],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ng(),C(0,PGb,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var C4=function(){this._dir=n(Qw,{optional:!0});this._changeDetectorRef=n(qv);this._elementRef=n(ff);this._destroyed=new bg;this.steps=new Vg;this._sortedHeaders=new Vg;this.linear=!1;this._selectedIndex=0;this.selectionChange=new hv;this.selectedIndexChange=new hv;this._groupId=n(Gw).getId("cdk-stepper-");this._orientation="horizontal"};g=C4.prototype;
g.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(eg(this._steps),gg(this._destroyed)).subscribe(function(b){a.steps.reset(b.filter(function(c){return c._stepper===a}));Zg(a.steps)})};
g.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(eg(this._stepHeader),gg(this._destroyed)).subscribe(function(d){a._sortedHeaders.reset(d.toArray().sort(function(e,f){return e._elementRef.nativeElement.compareDocumentPosition(f._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}));Zg(a._sortedHeaders)});this._keyManager=Jw(Lw(Iw(new Ow(this._sortedHeaders))),this._orientation==="vertical");(this._dir?this._dir.change:Ce()).pipe(eg(this._layoutDirection()),gg(this._destroyed)).subscribe(function(d){return Kw(a._keyManager,
d)});Mw(this._keyManager,this._selectedIndex);this.steps.changes.subscribe(function(){a.selected||(a._selectedIndex=Math.max(a._selectedIndex-1,0))});this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0);if(this.linear&&this._selectedIndex>0){var b=this.steps.toArray().slice(0,this._selectedIndex);b=l(b);for(var c=b.next();!c.done;c=b.next())c.value._markAsInteracted()}};
g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};g.next=function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)};g.previous=function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)};g.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
g._getStepLabelId=function(a){return this._groupId+"-label-"+a};g._getStepContentId=function(a){return this._groupId+"-content-"+a};g._stateChanged=function(){this._changeDetectorRef.markForCheck()};g._getAnimationDirection=function(a){a-=this._selectedIndex;return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};
g._getIndicatorType=function(a,b){b=b===void 0?"number":b;var c=this.steps.toArray()[a];a=this._isCurrentStep(a);return c._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(c,a):this._getGuidelineLogic(c,a,b)};g._getDefaultIndicatorLogic=function(a,b){return a._showError()&&a.hasError&&!b?"error":!a.completed||b?"number":a.editable?"edit":"done"};
g._getGuidelineLogic=function(a,b,c){c=c===void 0?"number":c;return a._showError()&&a.hasError&&!b?"error":a.completed&&!b?"done":a.completed&&b?c:a.editable&&b?"edit":c};g._isCurrentStep=function(a){return this._selectedIndex===a};g._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex};
g._updateSelectedItemIndex=function(a){var b=this.steps.toArray();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:this._selectedIndex,selectedStep:b[a],previouslySelectedStep:b[this._selectedIndex]});this._containsFocus()?this._keyManager.setActiveItem(a):Mw(this._keyManager,a);this._selectedIndex=a;this.selectedIndexChange.emit(this._selectedIndex);this._stateChanged()};
g._onKeydown=function(a){var b=ri(a),c=a.keyCode,d=this._keyManager;if(d.activeItemIndex==null||b||c!==32&&c!==13)vcc(d,"keyboard").onKeydown(a);else this.selectedIndex=d.activeItemIndex,a.preventDefault()};g._anyControlsInvalidOrPending=function(a){return this.linear&&a>=0?this.steps.toArray().slice(0,a).some(function(b){var c=b.stepControl;return(c?c.invalid||c.pending||!b.interacted:!b.completed)&&!b.optional&&!b._completedOverride}):!1};
g._layoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=wi();return a===b||a.contains(b)};g._isValidIndex=function(a){return a>-1&&(!this.steps||a<this.steps.length)};
ea.Object.defineProperties(C4.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){if(this._steps){if(this._isValidIndex(a),this._selectedIndex!==a){var b;(b=this.selected)==null||b._markAsInteracted();!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(a)}}else this._selectedIndex=a}},selected:{configurable:!0,enumerable:!0,get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:
void 0},set:function(a){this.selectedIndex=a&&this.steps?this.steps.toArray().indexOf(a):-1}},orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation=a;this._keyManager&&Jw(this._keyManager,a==="vertical")}}});C4.\u0275fac=function(a){return new (a||C4)};
C4.\u0275dir=Kf({type:C4,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,D4,5),Xg(c,A4,5));if(a&2){var d;$g(d=ah())&&(b._steps=d);$g(d=ah())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",Dh],selectedIndex:[2,"selectedIndex","selectedIndex",Eh],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var E4=function(){this._stepper=n(C4);this.type="submit"};E4.\u0275fac=function(a){return new (a||E4)};E4.\u0275dir=Kf({type:E4,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(){return b._stepper.next()});a&2&&Ig("type",b.type)},inputs:{type:"type"}});var F4=function(){this._stepper=n(C4);this.type="button"};F4.\u0275fac=function(a){return new (a||F4)};
F4.\u0275dir=Kf({type:F4,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(){return b._stepper.previous()});a&2&&Ig("type",b.type)},inputs:{type:"type"}});var G4=function(){};G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275mod=Jf({type:G4});G4.\u0275inj=Tc({imports:[Rw]});var H4=function(){E4.apply(this,arguments)};Y(H4,E4);H4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(H4)))(b||H4)}}();H4.\u0275dir=Kf({type:H4,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&Ig("type",b.type)},features:[kg]});var I4=function(){F4.apply(this,arguments)};Y(I4,F4);I4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(I4)))(b||I4)}}();
I4.\u0275dir=Kf({type:I4,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&Ig("type",b.type)},features:[kg]});var J4=function(){this.templateRef=n(Tg)};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275dir=Kf({type:J4,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var s$c=function(){this._template=n(Tg)};s$c.\u0275fac=function(a){return new (a||s$c)};s$c.\u0275dir=Kf({type:s$c,selectors:[["ng-template","matStepContent",""]]});var K4=function(){B4.apply(this,arguments)};Y(K4,B4);K4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(K4)))(b||K4)}}();K4.\u0275dir=Kf({type:K4,selectors:[["","matStepLabel",""]],features:[kg]});var L4=function(){this.changes=new bg;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};L4.\u0275fac=function(a){return new (a||L4)};L4.\u0275prov=Sc({token:L4,factory:L4.\u0275fac,providedIn:"root"});var t$c={provide:L4,deps:[[new Wu,new Xu,L4]],useFactory:function(a){return a||new L4}};var M4=function(){this._elementRef=n(ff);this._intl=n(L4);this._focusMonitor=n(gw);var a=n(kw);a.load(Gx);a.load(lw);var b=n(qv);this._intlSubscription=this._intl.changes.subscribe(function(){return b.markForCheck()})};Y(M4,A4);M4.\u0275dir=A4.\u0275dir;g=M4.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
g.focus=function(a,b){a?hw(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};g._stringLabel=function(){return this.label instanceof K4?null:this.label};g._templateLabel=function(){return this.label instanceof K4?this.label:null};g._getHostElement=function(){return this._elementRef.nativeElement};g._getIconContext=function(){return{index:this.index,active:this.active,optional:this.optional}};
g._getDefaultTextForState=function(a){return a=="number"?""+(this.index+1):a=="edit"?"create":a=="error"?"warning":a};M4.\u0275fac=function(a){return new (a||M4)};
M4.\u0275cmp=B({type:M4,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(a,b){a&2&&xg("mat-"+(b.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[kg],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger",
"matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(a,b){a&1&&(K(0,"div",0),I(1,"div")(2,"div",1),E(3,QGb,1,2,"ng-container",2)(4,VGb,2,1),J()(),I(5,"div",3),E(6,WGb,2,1,"div",4)(7,XGb,2,1,"div",4),E(8,YGb,2,1,"div",5),E(9,ZGb,2,1,"div",6),J());if(a&2){var c;D("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disableRipple);z();zg("mat-step-icon-state-",b.state," mat-step-icon");wg("mat-step-icon-selected",b.selected);z(2);F(b.iconOverrides&&b.iconOverrides[b.state]?3:4);z(2);wg("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");z();F((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);z(2);F(b.optional&&b.state!="error"?8:-1);z();F(b.state==="error"?9:-1)}},dependencies:[Jx,Pv,aB],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],
encapsulation:2,changeDetection:0});var u$c=["*"],v$c=["animatedContainer"],dHb=function(a,b){return{step:a,i:b}},N4=function(){D4.apply(this,arguments);this._errorStateMatcher=n(Fx,{skipSelf:!0});this._viewContainerRef=n(Ug);this._isSelected=ke.EMPTY;this.stepLabel=void 0};Y(N4,D4);
N4.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(fg(function(){return a._stepper.selectionChange.pipe(y(function(b){return b.selectedStep===a}),eg(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new px(a._lazyContent._template,a._viewContainerRef))})};N4.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
N4.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};N4.\u0275fac=function(){var a;return function(b){return(a||(a=fe(N4)))(b||N4)}}();
N4.\u0275cmp=B({type:N4,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(Xg(c,K4,5),Xg(c,s$c,5));if(a&2){var d;$g(d=ah())&&(b.stepLabel=d.first);$g(d=ah())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[hh([{provide:Fx,useExisting:N4},{provide:D4,useExisting:N4}]),kg],ngContentSelectors:u$c,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(Ng(),C(0,aHb,2,1,"ng-template"))},dependencies:[tx],encapsulation:2,
changeDetection:0});
var O4=function(){C4.call(this);var a=this;this._ngZone=n(ph);this._renderer=n(jv);this._animationsDisabled=Hi();this._isAnimating=bh(!1);this._steps=this._stepHeader=void 0;this.steps=new Vg;this.animationDone=new hv;this.labelPosition="end";this.headerPosition="top";this._iconOverrides={};this._animationDuration="";this._isServer=!n(ew).isBrowser;this._handleTransitionend=function(b){var c=b.target;if(c){var d=a.orientation==="horizontal"&&b.propertyName==="transform"&&c.classList.contains("mat-horizontal-stepper-content-current");b=
a.orientation==="vertical"&&b.propertyName==="grid-template-rows"&&c.classList.contains("mat-vertical-content-container-active");(d||b)&&a._animatedContainers.find(function(e){return e.nativeElement===c})&&a._onAnimationDone()}};this.orientation=n(ff).nativeElement.nodeName.toLowerCase()==="mat-vertical-stepper"?"vertical":"horizontal"};Y(O4,C4);O4.\u0275dir=C4.\u0275dir;g=O4.prototype;
g.ngAfterContentInit=function(){var a=this;C4.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(gg(this._destroyed)).subscribe(function(){return a._stateChanged()});this.selectedIndexChange.pipe(gg(this._destroyed)).subscribe(function(){var b=a._getAnimationDuration();b==="0ms"||b==="0s"?a._onAnimationDone():a._isAnimating.set(!0)});this._ngZone.runOutsideAngular(function(){a._animationsDisabled||setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled");
a._cleanupTransition=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionend)},200)})};g.ngAfterViewInit=function(){var a=this;C4.prototype.ngAfterViewInit.call(this);if(typeof queueMicrotask==="function"){var b=!1;this._animatedContainers.changes.pipe(eg(null),gg(this._destroyed)).subscribe(function(){return queueMicrotask(function(){b||(b=!0,a.animationDone.emit());a._stateChanged()})})}};
g.ngOnDestroy=function(){C4.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransition)==null||a.call(this)};g._stepIsNavigable=function(a,b){return b.completed||this.selectedIndex===a||!this.linear};g._getAnimationDuration=function(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"};g._onAnimationDone=function(){this._isAnimating.set(!1);this.animationDone.emit()};
ea.Object.defineProperties(O4.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});O4.\u0275fac=function(a){return new (a||O4)};
O4.\u0275cmp=B({type:O4,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(Xg(c,N4,5),Xg(c,J4,5));if(a&2){var d;$g(d=ah())&&(b._steps=d);$g(d=ah())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(Wg(M4,5),Wg(v$c,5));if(a&2){var c;$g(c=ah())&&(b._stepHeader=c);$g(c=ah())&&(b._animatedContainers=c)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(a,b){a&2&&(ng("aria-orientation",b.orientation),vg("--mat-stepper-animation-duration",
b._getAnimationDuration()),wg("mat-stepper-horizontal",b.orientation==="horizontal")("mat-stepper-vertical",b.orientation==="vertical")("mat-stepper-label-position-end",b.orientation==="horizontal"&&b.labelPosition=="end")("mat-stepper-label-position-bottom",b.orientation==="horizontal"&&b.labelPosition=="bottom")("mat-stepper-header-position-bottom",b.headerPosition==="bottom")("mat-stepper-animating",b._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",
headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[hh([{provide:C4,useExisting:O4}]),kg],ngContentSelectors:u$c,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id",
"class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(a,b){a&1&&(Ng(),E(0,
bHb,1,0),E(1,gHb,7,0,"div",2)(2,iHb,2,0),C(3,jHb,1,23,"ng-template",null,0,nh));if(a&2){var c;F(b._isServer?0:-1);z();F((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[Pv,M4],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],
encapsulation:2,changeDetection:0});var w$c=["summary"],x$c=["reproSteps"],y$c=["description"],z$c=function(a){return{nonEmptyValidator:a}},A$c=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},nHb=function(){return{noWizard:"true"}},B$c=[Hk("security@chromium.org")],P4=function(){this.activeSession=n(Es);this.analytics=n(CF);this.butterBar=n(iK);this.currentUser=n(vZ);this.componentIds=n(l$c);this.customFieldIds=n(m$c);this.hotlistIds=n(n$c);this.issueApi=n(BE);this.paths=n(EN);this.redirectUrl=n(p2);this.userAccess=
n(jE);this.Persona=i$c;this.PlatformOs=f$c;var a=AGb(),b;var c=window.navigator.userAgent.match(/chrome\/(\d|\.)+/i)||[];if(c.length>0){var d;c=(d=c[0])==null?void 0:d.split("/")[1]}else c=void 0;this.model={persona:"USER",category:void 0,os:a?[a]:[],channel:"Not sure",version:(b=c)!=null?b:"",summary:"",reproSteps:"1. \n2. \n3. ",description:"",regression:"N/A",comments:"",customQuestionResponses:[]};this.ackIssueQuality=!1;this.uploads=[];this.isSubmitEnabled=!0;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();
this.recaptchaResponse="";this.existingIssuesLink="/issues?q=componentid:"+this.componentIds.default+encodeURIComponent("+");this.fullScreen=!0},lHb=function(a,b){switch(b){case 0:return!!a.model.category&&a.ackIssueQuality;case 1:var c,d,e;return!((c=a.summaryControl)==null||!c.valid)&&!((d=a.reproStepsControl)==null||!d.valid)&&!((e=a.descriptionControl)==null||!e.valid);default:Gb(b)}};g=P4.prototype;g.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};
g.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};g.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};g.enableSubmit=function(){this.isSubmitEnabled=!0};g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.uploads.push(a)};g.removeUpload=function(a){Za(this.uploads,a)};
g.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(Qj(c.blobRef));return a};
g.submit=function(){var a=this,b,c,d,e,f;return w(function(h){switch(h.nextAddress){case 1:var k="BUG",q=null,u=null,A="P2",G="S2",H=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&H.push(a.hotlistIds.chromiumRegression);var N,O,U,da=(U=(N=a.model.category)==null?void 0:(O=N.ccEmails)==null?void 0:O.map(Hk).filter(Tk))!=null?U:[],ma;((ma=a.model.category)==null?void 0:ma.value)==="SECURITY"&&(k="VULNERABILITY",A="P4",G="S4",q="LIMIT_VIEW",u=B$c);var ra;N=((ra=a.model.category)==null?void 0:
ra.componentId)||a.componentIds.default;ra=a.model.summary;O=xHb(a.model,a.customFieldIds);U=a.model;var Ga;ma="\n# Steps to reproduce the problem\n"+U.reproSteps+"\n\n# Problem Description\n"+U.description+"\n\n"+(U.comments.length>0?"\n# Additional Comments\n"+U.comments:"")+"\n\n# Summary\n"+U.summary+"\n\n"+zHb(U.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((Ga=U.category)==null?void 0:Ga.title)+" \\\nChrome Channel: "+U.channel+" \\\nRegression: "+U.regression;ma=ma.replace(/^\n/,
"");b={componentId:N,type:k,status:"NEW",priority:A,severity:G,title:ra,customField:O,comment:ma.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,issueAccessLimitLevel:q,collaboratorsUsers:u,staffing:null,ccUsers:[a.currentUser.user].concat(p(da)),hotlistId:H,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,postmortems:null,foundInVersion:null,targetedToVersion:null,
verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};Mq(a.butterBar,"Saving...",0);te(h,2);return x(h,a.issueApi.createIssueWithWizard({snapshot:b,attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=h.yieldResult;d=c.issueId;if(!d)throw Error("Af");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return x(h,kE(a.userAccess,
"reader","issues/"+d),5);case 5:(e=h.yieldResult)?I7c(a.redirectUrl,Hq(d),String(d)):(Mq(a.butterBar,"New issue created: "+d+" (view access not granted)",0),I7c(a.redirectUrl,a.paths.listIssues()));uu(h,0);break;case 2:f=xe(h),Mq(a.butterBar,"Failed to create issue: "+f),ze(h)}})};P4.\u0275fac=function(a){return new (a||P4)};
P4.\u0275cmp=B({type:P4,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(Wg(w$c,5),Wg(x$c,5),Wg(y$c,5),Wg(FV,5));if(a&2){var c;$g(c=ah())&&(b.summaryControl=c.first);$g(c=ah())&&(b.reproStepsControl=c.first);$g(c=ah())&&(b.descriptionControl=c.first);$g(c=ah())&&(b.attachmentUploader=c.first)}},inputs:{fullScreen:"fullScreen"},standalone:!1,decls:125,vars:46,consts:[["summary","ngModel"],["reproSteps","ngModel"],["description","ngModel"],["headerPosition","bottom","animationDuration","0",
"aria-label","Issue filing form","linear","",3,"disableRipple"],["aria-label","Report an issue with Chromium",3,"completed"],[1,"required"],[3,"personaChange","persona"],[3,"completed","aria-label"],[1,"inline-block"],["appearance","outline","aria-label","Operating system",1,"inline"],["multiple","",3,"ngModelChange","ngModel"],[3,"value"],[1,"inline-block","channel"],["appearance","outline","aria-label","Chrome Channel",1,"inline"],[3,"ngModelChange","ngModel"],["value","Not sure"],["value","Stable"],
["value","Beta"],["value","Dev"],["value","Canary"],["appearance","outline",1,"inline"],["matInput","","aria-label","Chrome version",3,"ngModelChange","ngModel"],["appearance","outline",1,"textarea"],["matInput","","required","","maxlength","100","name","summary","aria-label","One line summary",3,"ngModelChange","ngModel","customValidators"],["matInput","","required","","maxlength","5000","name","reproSteps","aria-label","Steps to reproduce problem",3,"ngModelChange","ngModel","customValidators"],
["matInput","","required","","maxlength","5000","name","description","aria-label","Describe the problem",3,"ngModelChange","ngModel","customValidators"],["appearance","outline","aria-label","Did this work before?"],["value","N/A"],["value","Yes"],["value","No"],[1,"actions-container"],"type button mat-stroked-button  matStepperPrevious ".split(" "),["svgIcon","chevron-left"],["type","button","mat-raised-button","","color","primary","matStepperNext","",3,"disabled"],["svgIcon","chevron-right"],["aria-label",
"Extra information about the issue"],[3,"category"],["matInput","","aria-label","Additional comments",3,"ngModelChange","ngModel"],[3,"onUploadComplete","onUploadCancel","uploads"],[1,"attachment-selector"],[3,"onSelect","includeTextLabel"],[1,"wizard-recaptcha"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],[3,"categoryChange","persona","category"],[1,"issue-quality"],[1,"ack-issue-quality",
3,"ngModelChange","ngModel"],[3,"href"],["svgIcon","chevron-right","iconPositionEnd",""],["href","https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md"],["href","https://www.chromium.org/Home/chromium-security/reporting-security-bugs"],["href","https://g.co/chrome/vrp"],[3,"responses","category"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=r();I(0,"mat-stepper",3)(1,"mat-step",4)(2,"h2");Q(3,"Report an issue with Chromium");J();I(4,"h3");Q(5," We want you to enter the best possible issue report so that the project team members can act on it effectively. The following steps will help route your issue to the correct people. ");
J();K(6,"br");I(7,"h4",5);Q(8,"Please select your following role:");J();I(9,"wizard-persona-picker",6);M("personaChange",function(f){t(c);b.model.category=void 0;b.model.persona=f;return v()});J();E(10,mHb,20,6)(11,oHb,10,2,"div");J();I(12,"mat-step",7)(13,"h2");Q(14);J();I(15,"h3");Q(16,"Please confirm that the following version information is correct.");J();I(17,"h4",8);Q(18,"Operating System:");J();I(19,"mat-form-field",9)(20,"mat-select",10);gh("ngModelChange",function(f){t(c);fh(b.model.os,f)||
(b.model.os=f);return v(f)});I(21,"mat-option",11);Q(22,"Android");J();I(23,"mat-option",11);Q(24,"Chrome OS");J();I(25,"mat-option",11);Q(26,"iOS");J();I(27,"mat-option",11);Q(28,"Linux");J();I(29,"mat-option",11);Q(30,"Mac OS");J();I(31,"mat-option",11);Q(32,"Windows");J();I(33,"mat-option",11);Q(34,"Unknown/Other");J()()();I(35,"h4",12);Q(36,"Channel:");J();I(37,"mat-form-field",13)(38,"mat-select",14);gh("ngModelChange",function(f){t(c);fh(b.model.channel,f)||(b.model.channel=f);return v(f)});
I(39,"mat-option",15);Q(40,"Not sure");J();I(41,"mat-option",16);Q(42,"Stable");J();I(43,"mat-option",17);Q(44,"Beta");J();I(45,"mat-option",18);Q(46,"Dev");J();I(47,"mat-option",19);Q(48,"Canary");J()()();K(49,"br");I(50,"h4",8);Q(51,"Chrome version:");J();I(52,"mat-form-field",20)(53,"input",21);gh("ngModelChange",function(f){t(c);fh(b.model.version,f)||(b.model.version=f);return v(f)});J()();I(54,"h4",5);Q(55,"Please enter a one line summary (100 character limit)");J();I(56,"mat-form-field",22)(57,
"textarea",23,0);gh("ngModelChange",function(f){t(c);fh(b.model.summary,f)||(b.model.summary=f);return v(f)});Q(59,"      ");J();E(60,pHb,2,0,"mat-error");J();I(61,"h4",5);Q(62,"Steps to reproduce problem (5000 character limit)");J();I(63,"mat-form-field",22)(64,"textarea",24,1);gh("ngModelChange",function(f){t(c);fh(b.model.reproSteps,f)||(b.model.reproSteps=f);return v(f)});Q(66,"      ");J();E(67,qHb,2,0,"mat-error");J();I(68,"h4",5);Q(69,"Please describe the problem (5000 character limit)");J();
I(70,"mat-form-field",22)(71,"textarea",25,2);gh("ngModelChange",function(f){t(c);fh(b.model.description,f)||(b.model.description=f);return v(f)});Q(73,"      ");J();E(74,rHb,2,0,"mat-error");J();I(75,"h4");Q(76,"Did this work before?");J();I(77,"mat-form-field",26)(78,"mat-select",14);gh("ngModelChange",function(f){t(c);fh(b.model.regression,f)||(b.model.regression=f);return v(f)});I(79,"mat-option",27);Q(80,"Not applicable or don't know");J();I(81,"mat-option",28);Q(82,"Yes - This is a regression");
J();I(83,"mat-option",29);Q(84,"No - I think it never worked");J()()();I(85,"div",30)(86,"button",31);K(87,"mat-icon",32);Q(88," Back ");J();I(89,"button",33);Q(90," Next ");K(91,"mat-icon",34);J()()();I(92,"mat-step",35)(93,"h2");Q(94,"Extra information about the issue");J();E(95,sHb,1,1,"wizard-custom-questions",36);I(96,"h4");Q(97,"Additional comments");J();I(98,"p");Q(99," Upload Chrome variations which can help us investigate this issue: ");J();I(100,"ol")(101,"li");Q(102," Open Chrome. Go to chrome://version/?show-variations-cmd ");
J();I(103,"li");Q(104,' Notice that there is a "Command-line variations" section (you might need to scroll down the page). Copy and save the value of the section to a .txt file like variations.txt. ');J();I(105,"li");Q(106," Upload the file as an attachment. ");J()();I(107,"mat-form-field",22)(108,"textarea",37);gh("ngModelChange",function(f){t(c);fh(b.model.comments,f)||(b.model.comments=f);return v(f)});J()();I(109,"h4");Q(110,"Upload any relevant attachments");J();I(111,"b-attachment-uploader",
38);M("onUploadComplete",function(){t(c);return v(b.enableSubmit())})("onUploadCancel",function(f){t(c);b.removeUpload(f);return v(b.enableSubmit())});J();I(112,"div",39)(113,"b-attachment-selector",40);M("onSelect",function(f){t(c);b.uploadFile(f);b.isSubmitEnabled=!1;return v()});J();Q(114," You can include multiple attachments. ");J();E(115,tHb,2,0,"div",41);I(116,"div",30)(117,"button",31);K(118,"mat-icon",32);Q(119," Back ");J();I(120,"button",42);M("click",function(){t(c);return v(b.submit())});
Q(121," Submit ");J()()();C(122,uHb,0,0,"ng-template",43)(123,vHb,0,0,"ng-template",44)(124,wHb,0,0,"ng-template",45);J()}if(a&2){a=L(58);var d=L(65),e=L(72);wg("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);D("disableRipple",!0);z();D("completed",lHb(b,0));z(8);D("persona",b.model.persona);z();F(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);z(2);Pg("aria-label","Details for problems with ",b.model.category==null?null:b.model.category.title);D("completed",lHb(b,1));
z(2);R("Details for problems with ",b.model.category==null?null:b.model.category.title);z(6);eh("ngModel",b.model.os);z();D("value",b.PlatformOs.ANDROID);z(2);D("value",b.PlatformOs.CHROME);z(2);D("value",b.PlatformOs.IOS);z(2);D("value",b.PlatformOs.LINUX);z(2);D("value",b.PlatformOs.MAC);z(2);D("value",b.PlatformOs.WINDOWS);z(2);D("value",b.PlatformOs.UNKNOWN);z(5);eh("ngModel",b.model.channel);z(15);eh("ngModel",b.model.version);z(4);eh("ngModel",b.model.summary);D("customValidators",jh(39,z$c,
b.nonEmptyValidator));z(3);F(a.invalid&&(a.dirty||a.touched)?60:-1);z(4);eh("ngModel",b.model.reproSteps);D("customValidators",kh(41,A$c,b.reproStepsValidator,b.nonEmptyValidator));z(3);F(d.invalid&&(d.dirty||d.touched)?67:-1);z(4);eh("ngModel",b.model.description);D("customValidators",jh(44,z$c,b.nonEmptyValidator));z(3);F(e.invalid&&(e.dirty||e.touched)?74:-1);z(4);eh("ngModel",b.model.regression);z(11);D("disabled",!lHb(b,1));z(6);F(b.model.category?95:-1);z(13);eh("ngModel",b.model.comments);
z(3);D("uploads",b.uploads);z(2);D("includeTextLabel",!0);z(2);F(b.enableRecaptcha?115:-1);z(5);D("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[CV,FV,aB,a2,Li,oy,Gy,Hy,vy,PA,Tx,q$c,lVc,iU,jU,yM,CM,$M,ez,Xy,Oy,YM,rP,zP,Lx,N4,O4,H4,I4,J4,kS,y4,z4,o$c],styles:['[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0;font-weight:400}[_nghost-%COMP%]   h4[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;font-weight:100;margin:0}[_nghost-%COMP%]   h4.required[_ngcontent-%COMP%]:after{content:" *";color:#ea4335;color:var(--bad)}[_nghost-%COMP%]   mat-form-field.textarea[_ngcontent-%COMP%]{min-width:90%}[_nghost-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:4rem;padding:4px 1px 1px 7px}[_nghost-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:4px 0}[_nghost-%COMP%]   mat-form-field.inline[_ngcontent-%COMP%]{margin:4px 8px}[_nghost-%COMP%]     .mat-step-header .mat-step-label{display:none}[_nghost-%COMP%]     mat-stepper.hide-dots .mat-horizontal-stepper-header-container{display:none}[_nghost-%COMP%]     .mat-step-header.cdk-program-focused, [_nghost-%COMP%]     .mat-step-header:hover{background-color:unset}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container{max-width:10%;margin-left:40%;-webkit-transform:scale(.35);transform:scale(.35)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon{background-color:#dadce0;background-color:var(--c300)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-step-icon-selected{background-color:#1a73e8;background-color:var(--primary-c600)}[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-stepper-horizontal-line{display:none}[_nghost-%COMP%]     .mat-horizontal-content-container{overflow-x:scroll}[_nghost-%COMP%]     mat-checkbox label{text-wrap:wrap}wizard-persona-picker[_ngcontent-%COMP%]{margin-bottom:30px}mat-card[_ngcontent-%COMP%]{background-color:#fef7e0;background-color:var(--yellow-c50);margin-bottom:8px}.actions-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:8px 12px 4px 0}.actions-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{margin-left:auto}mat-card-header[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1.125rem;letter-spacing:0;font-weight:400;margin-bottom:10px}.issue-quality[_ngcontent-%COMP%]{max-width:88%}mat-stepper[_ngcontent-%COMP%]{max-width:1060px}h4.channel[_ngcontent-%COMP%]{margin-left:12px}.bv2-view[_ngcontent-%COMP%]{top:0}b-attachment-selector[_ngcontent-%COMP%]{padding:4px}.attachment-selector[_ngcontent-%COMP%]{margin:12px 0}.wizard-recaptcha[_ngcontent-%COMP%]{margin:15px 0}p[_ngcontent-%COMP%]{margin:8px 0}\n/*# sourceMappingURL=chrome_wizard.css.map */']});var Q4=function(){this.activeSession=n(Es);this.routeParams=n(bL);this.router=n(DA);this.userAccess=n(jE);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?i7b.default:j7b.default};
Q4.prototype.canActivate=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1)return(c=Yr(a.activeSession,"enableChromeWizard")&&((b=a.activeSession.getTracker())==null?void 0:b.trackerId)==="157"&&!a.routeParams.template&&!a.routeParams.noWizard)?x(d,kE(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(EA(a.router,["issues/wizard"])):d.return(!0)})};Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275prov=Sc({token:Q4,factory:Q4.\u0275fac,providedIn:"root"});var R4=function(){var a=this;this.userResources=n(ID);this.history=n(m2);this.router=n(DA);this.activeSession=n(Es);this.viewIssues=vq;this.createIssue=dNa;this.componentSettings=eNa;this.currentTracker=this.activeSession.getTracker();var b;this.trackerId=(b=this.currentTracker)==null?void 0:b.trackerId;this.includeArchived=!1;this.isThinking=!0;this.isInternalSession=this.activeSession.isInternalSession();this.placeholder=this.currentTracker||this.activeSession.isExternalSession()?"Find components by name or id":
"Find components by name, team, or id";this.recentComponents$=this.userResources.getRecentComponents().then(function(c){return c.filter(function(d){return a.filterTrackerComponents(d)})}).finally(function(){a.isThinking=!1})};R4.prototype.back=function(){n2(this.history)};R4.prototype.filterTrackerComponents=function(a){return!this.trackerId||a.trackerId===this.trackerId};R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=B({type:R4,selectors:[["components-screen-wrapper"]],standalone:!1,decls:22,vars:8,consts:[["card",""],["cardBody",""],[1,"flex-kids-y","pos-fill","bg-off-main","overflow","overflow-on-print-media"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-appbar-right"],["mat-button","","routerLink","/components/new",1,"gmat-button","medium"],
["label","Show archived","tooltip","Toggle whether to show 'archived' Components",1,"margin-x",3,"modelChange","model"],[1,"padded"],[3,"selectedComponentChange","includeArchived","placeholder","ariaLabel"],[1,"margin-top"],[1,"pos-rel","carded","bg-main"],[1,"muted","margin-s-top","margin-left"],["routerLink","/components/all",1,"muted","hover-link"],[1,"muted"],[1,"unstyled-list","reverse-padded-sides","recent-components"],["href","https://developers.google.com/issue-tracker/concepts/components#recent-components",
"target","_blank"],[1,"flex-kids-x","clickable-row","padded",3,"routerLinkObj"],[1,"flex-1",3,"onedevHovercardTrigger"],[1,"type-l","normal-link"],[1,"margin-s-left",3,"accessLevel","labelOnlyMode"],[1,"margin-s-left",3,"trackerId","showHovercard"],[1,"muted","line-clamp-2"],[1,"right"],["mat-button","","type","button",1,"gmat-button","medium",3,"routerLinkObj"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(I(0,"article",2)(1,"header",3)(2,
"div",4)(3,"button",5),M("click",function(){return b.back()}),K(4,"mat-icon",6),J(),I(5,"h2"),Q(6,"Components"),J()(),I(7,"div",7),E(8,AHb,2,0,"a",8),I(9,"b-slide-toggle",9),M("modelChange",function(d){return b.includeArchived=d}),J()()(),I(10,"section",10)(11,"h3"),Q(12,"Search"),J(),I(13,"b-team-component-picker",11),M("selectedComponentChange",function(d){d!=null&&Nr(b.router,eNa(d.componentId).path)}),J(),I(14,"h3",12),Q(15,"Recent Components"),J(),I(16,"div",13),E(17,EHb,4,1),S(18,"async"),J(),
I(19,"p",14)(20,"a",15),Q(21,"See all Components"),J()()()());if(a&2){var c;z(8);F(b.isInternalSession?8:-1);z();D("model",b.includeArchived);z(4);D("includeArchived",b.includeArchived)("placeholder",b.placeholder)("ariaLabel",b.placeholder);z(4);F((c=T(18,6,b.recentComponents$))?17:-1,c)}},dependencies:[PA,Tx,Ux,YA,cB,aB,FA,WB,xN,nN,fJ,gJ,lJ,hJ,gH,kN,sN,Qv],encapsulation:2});var C$c=["bookmarkGroupName"],D$c=function(a){return{"bv2-edit-resource-readonly":a}},S4=function(){var a=n(lS);Z.call(this);var b=this;this.location=n(cI);this.appHistory=n(m2);this.snackBar=n(fK);this.bookmarkGroupsApi=n(RC);this.paths=n(EN);this.analytics=n(CF);this.errorHandler=n(DK);this.appEvents=n(nD);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new sy({name:new uy("",ky),description:new uy("")});this.subscriptions.add(mS(a,function(){return!(!b.name()&&!b.description())},!1))};
Y(S4,Z);S4.\u0275dir=Z.\u0275dir;g=S4.prototype;g.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});a.analytics.trackEvent("sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){n2(this.appHistory)};g.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};g.name=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};
g.description=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};S4.\u0275fac=function(a){return new (a||S4)};
S4.\u0275cmp=B({type:S4,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&Wg(C$c,5);if(a&2){var c;$g(c=ah())&&(b.bookmarkGroupName=c.first)}},standalone:!1,features:[kg],decls:27,vars:11,consts:[["bookmarkGroupName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",
3,"ngClass"],["for","bookmark-group-name",1,"required"],["type","text","autofocus","autofocus","id","bookmark-group-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","bookmark-group-description"],["id","bookmark-group-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",
3,"click"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"button",3);M("click",function(){t(c);return v(b.back())});K(3,"mat-icon",4);J();I(4,"h2");Q(5,"Create a new bookmark group");J()()();I(6,"div",5)(7,"div",6)(8,"form",7);K(9,"b-error-banner",8);I(10,"div",9)(11,"label",10);Q(12,"Name");J();K(13,"input",11,0);J();I(15,"div",9)(16,"label",12);Q(17,"Description");J();I(18,"textarea",13);Q(19,"        ");J()();I(20,"p",14);Q(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. ");
J();I(22,"div",15)(23,"button",16);M("click",function(){t(c);return v(b.save())});Q(24," Save ");J();I(25,"button",17);M("click",function(){t(c);return v(b.revertChanges())});Q(26," Revert changes ");J()()()()()}a&2&&(z(8),D("formGroup",b.bookmarkGroupUnderEdit),z(),D("error",b.error),z(),D("ngClass",jh(7,D$c,b.isSaving)),z(3),D("disabled",b.isSaving),z(2),D("ngClass",jh(9,D$c,b.isSaving)),z(3),D("disabled",b.isSaving),z(5),D("disabled",b.isSaving))},dependencies:[Mv,aB,PA,Tx,Ux,YA,cB,wy,Li,oy,py,
Gy,By,Cy,T0],encapsulation:2});var E$c=["form"],T4=function(){Z.call(this);this.butterBar=n(iK);this.paths=n(EN);this.routeParams=n(bL);this.analytics=n(CF);this.appHistory=n(m2);this.bLocation=n(cI);this.activeSession=n(Es);this.documentationLinks=n(lK);this.componentActions=n(oN);this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null,
fieldConfigsMap:new Map},commentEditState:"DISABLED",defaultTemplateId:0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0",spamProtection:"NO_PROTECTIONS"};this.parentComponentInternal=null;this.sessionIsExternal=this.activeSession.isExternalSession();this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.routeParams.parentId&&this.loadParentComponent(Vj(this.routeParams.parentId))};Y(T4,Z);T4.\u0275dir=Z.\u0275dir;g=T4.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate()&&(Mq(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){Mq(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());a.analytics.trackEvent("component","create");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled",
"create"):a.analytics.trackEvent("component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(Fq.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(Xo(b),0);a.isSaving=!1}))};g.back=function(){n2(this.appHistory)};
g.validate=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};g.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a).then(function(c){b.parentComponent=c})};
g.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;F$c(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;F$c(this)};
var F$c=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled=a.component.commentEditState==="ENABLED"):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};ea.Object.defineProperties(T4.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;F$c(this)}}});T4.\u0275fac=function(a){return new (a||T4)};
T4.\u0275cmp=B({type:T4,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&Wg(E$c,5);if(a&2){var c;$g(c=ah())&&(b.createComponentForm=c.first)}},standalone:!1,features:[kg],decls:55,vars:32,consts:[["form","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","b-aria-label","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"edit-resource-panel"],["novalidate","",1,"create-component-form"],
[3,"error"],[1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","id","component-name","placeholder","Component name","name","componentName","aria-label","Component name",3,"ngModelChange","bFocus","ngModel","disabled","required"],["for","component-description"],["id","component-description","placeholder","Component description","name","componentDescription","aria-label","Component description",3,"ngModelChange","ngModel","disabled"],["for","parent-component",
1,"required"],["id","parent-component","ariaLabel","Parent component",3,"selectedComponentChange","accessCheckComplete","selectedComponent","placeholder","isRequired","checkAdminAccess"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabel","Editable comments",3,"change","checked"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["for","retention-settings",1,"required"],["id","retention-settings"],
[3,"modelChange","validChange","issueRetentionDisabled","isExternal","componentPathInfo","initialModel"],[1,"advanced-settings-info"],[1,"bv2-component-button-bar"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"b-button",3);M("onAction",function(){t(c);return v(b.back())});K(3,"b-icon",4);J()()();I(4,"div",5)(5,"h2",6);Q(6,"Create component");J();I(7,"div",7)(8,"form",8,0);K(10,"b-error-banner",
9);I(11,"div",10)(12,"label",11)(13,"span",12);Q(14,"Name");J()();I(15,"input",13);gh("ngModelChange",function(d){t(c);fh(b.component.name,d)||(b.component.name=d);return v(d)});J()();I(16,"div",10)(17,"label",14)(18,"span",12);Q(19,"Description");J()();I(20,"textarea",15);gh("ngModelChange",function(d){t(c);fh(b.component.description,d)||(b.component.description=d);return v(d)});Q(21,"        ");J()();I(22,"div",10)(23,"label",16)(24,"span",12);Q(25,"Parent Component");J()();I(26,"b-team-component-picker",
17);M("selectedComponentChange",function(d){t(c);return v(b.onComponentSelect(d!=null?d:null))})("accessCheckComplete",function(d){t(c);return v(b.accessCheckComplete(d))});J()();I(27,"div",18)(28,"div",19)(29,"mat-checkbox",20);M("change",function(d){t(c);return v(b.setCommentEditState(d.checked))});J()();I(30,"div")(31,"strong",21);Q(32,"Editable Comments");J();I(33,"div",22);Q(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
E(35,GHb,2,1,"a",23);J()()();I(36,"div",10)(37,"label",24)(38,"span",12);Q(39,"Retention Settings");J()();I(40,"div",21)(41,"p");Q(42,"Please choose a period of time to retain the data stored in this component.");K(43,"br");I(44,"a",23);Q(45," Learn more ");J()()();I(46,"div",25)(47,"b-retention-settings-form",26);M("modelChange",function(d){t(c);return v(b.component.retentionSettings=d)})("validChange",function(d){t(c);return v(b.retentionIsValid=d)});J()()();I(48,"p",27);Q(49," Advanced settings such as custom field and access controls may be defined once the component is created. ");
J();I(50,"div",28)(51,"b-button",29);M("onAction",function(){t(c);return v(b.create())});Q(52," Save ");J();I(53,"b-button",30);M("onAction",function(){t(c);return v(b.back())});Q(54," Discard ");J()()()()()}a&2&&(z(8),wg("show-errors",b.error),z(2),D("error",b.error),z(),wg("bv2-edit-resource-readonly",b.isSaving),z(4),D("bFocus",!0),eh("ngModel",b.component.name),D("disabled",b.isSaving)("required",!0),z(),wg("bv2-edit-resource-readonly",b.isSaving),z(4),eh("ngModel",b.component.description),D("disabled",
b.isSaving),z(2),wg("bv2-edit-resource-readonly",b.isSaving),z(4),D("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),z(),wg("bv2-edit-resource-readonly",b.isSaving),z(2),D("checked",b.commentEditsEnabled),z(6),F(b.sessionIsExternal?-1:35),z(9),D("href",zs(),uf),z(2),wg("bv2-edit-resource-readonly",b.isSaving),z(),D("issueRetentionDisabled",b.isSaving)("isExternal",ur(b.parentComponent))("componentPathInfo",b.parentComponent==null?null:
b.parentComponent.componentPathInfo)("initialModel",b.component.retentionSettings),z(4),D("disabled",b.isSaving||!b.componentIsValid),z(2),D("disabled",b.isSaving))},dependencies:[aH,T0,xO,wy,Li,oy,py,Gy,vy,ty,CL,yM,CM,T1,xN],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var G$c=["hotlistName"],H$c=function(a){return{"bv2-edit-resource-readonly":a}},U4=function(){var a=n(lS);Z.call(this);var b=this;this.location=n(cI);this.appHistory=n(m2);this.snackBar=n(fK);this.hotlistApi=n(ED);this.analytics=n(CF);this.errorHandler=n(DK);this.appEvents=n(nD);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new sy({name:new uy("",ky),description:new uy("")});this.subscriptions.add(mS(a,function(){return!(!b.name()&&!b.description())},!1))};Y(U4,Z);U4.\u0275dir=Z.\u0275dir;
g=U4.prototype;g.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});a.analytics.trackEvent("hotlist","create");a.location.replaceUrl(Fq.editHotlist.makeHref(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=
!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){n2(this.appHistory)};g.revertChanges=function(){this.hotlistUnderEdit.reset()};g.name=function(){var a,b=(a=this.hotlistUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};g.description=function(){var a,b=(a=this.hotlistUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};
U4.\u0275fac=function(a){return new (a||U4)};
U4.\u0275cmp=B({type:U4,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&Wg(G$c,5);if(a&2){var c;$g(c=ah())&&(b.hotlistName=c.first)}},standalone:!1,features:[kg],decls:27,vars:11,consts:[["hotlistName",""],[1,"kd-appbar"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-view"],[1,"edit-resource-panel"],[3,"formGroup"],[3,"error"],[1,"edit-field",3,"ngClass"],
["for","hotlist-name",1,"required"],["type","text","autofocus","autofocus","id","hotlist-name","required","","aria-required","true","formControlName","name",3,"disabled"],["for","hotlist-description"],["id","hotlist-description","formControlName","description",3,"disabled"],[1,"advanced-settings-info"],[1,"edit-button-row"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){if(a&
1){var c=r();I(0,"div",1)(1,"div",2)(2,"button",3);M("click",function(){t(c);return v(b.back())});K(3,"mat-icon",4);J();I(4,"h2");Q(5,"Create a new hotlist");J()()();I(6,"div",5)(7,"div",6)(8,"form",7);K(9,"b-error-banner",8);I(10,"div",9)(11,"label",10);Q(12,"Name");J();K(13,"input",11,0);J();I(15,"div",9)(16,"label",12);Q(17,"Description");J();I(18,"textarea",13);Q(19,"        ");J()();I(20,"p",14);Q(21," Advanced settings such as access controls may be defined once the hotlist is created. ");J();
I(22,"div",15)(23,"button",16);M("click",function(){t(c);return v(b.save())});Q(24," Save ");J();I(25,"button",17);M("click",function(){t(c);return v(b.revertChanges())});Q(26," Revert changes ");J()()()()()}a&2&&(z(8),D("formGroup",b.hotlistUnderEdit),z(),D("error",b.error),z(),D("ngClass",jh(7,H$c,b.isSaving)),z(3),D("disabled",b.isSaving),z(2),D("ngClass",jh(9,H$c,b.isSaving)),z(3),D("disabled",b.isSaving),z(5),D("disabled",b.isSaving))},dependencies:[Mv,aB,PA,Tx,Ux,YA,cB,wy,Li,oy,py,Gy,By,Cy,
T0],encapsulation:2});/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var I$c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),J$c=function(){for(var a=Array(36),b=0,c,d=0;d<36;d++)d==8||d==13||d==18||d==23?a[d]="-":d==14?a[d]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),c=b&15,b>>=4,a[d]=I$c[d==19?c&3|8:c]);return a.join("")};var V4=function(){this.extensionClient=n(ZA);this.activeSession=n(Es);this.enableIssueSuggestionPicker=Yr(this.activeSession,"enableIssueCreationSuggestions")&&this.activeSession.isInternalSession()},K$c=function(a,b,c,d,e,f,h){var k,q,u,A,G,H;return w(function(N){if(N.nextAddress==1){if(!a.enableIssueSuggestionPicker||!a.extensionClient)return N.return();k={key:c,issueType:"BUG",title:d,description:e};A={issueType:"BUG",title:(q=f)!=null?q:"",description:(u=h)!=null?u:""};te(N,2);return x(N,(G=a.extensionClient)==
null?void 0:G.call("LOG_SUGGESTION_USAGE_EVENT",{sessionId:b,type:"SUGGESTION_ADOPTED",lastPickedSuggestion:k,createdIssueMetadata:A},{deadlineMillis:5E3}),4)}if(N.nextAddress!=2)return uu(N,0);H=xe(N);console.error("Failed to log suggestion adopted event: ",H);ze(N)})},L$c=function(a,b,c,d,e){var f,h;return w(function(k){if(k.nextAddress==1){if(!a.enableIssueSuggestionPicker||!a.extensionClient)return k.return();te(k,2);return x(k,(f=a.extensionClient)==null?void 0:f.call("LOG_SUGGESTION_USAGE_EVENT",
{sessionId:b,type:"FIRST_SUGGESTION_PICKED",suggestion:{key:c,issueType:"BUG",title:d,description:e}},{deadlineMillis:5E3}),4)}if(k.nextAddress!=2)return uu(k,0);h=xe(k);console.error("Failed to log first suggestion picked event: ",h);ze(k)})};V4.\u0275fac=function(a){return new (a||V4)};V4.\u0275prov=Sc({token:V4,factory:V4.\u0275fac,providedIn:"root"});var W4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,W4.messageId)};Y(W4,V);W4.prototype.getContent=function(){return Oh(this,1)};W4.prototype.setContent=function(a){return Rl(this,1,a)};W4.prototype.hasContent=function(){return ml(this,1)};W4.messageId="b.LlmGenericRequest";var M$c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,M$c.messageId)};Y(M$c,V);M$c.messageId="b.LlmGenericResponse";var X4=function(){this.executor=n(zC)};X4.prototype.suggestIssueTitle=function(a){a=(new W4).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:M$c}).then(function(b){var c;return(c=Oh(b,1))!=null?c:""})};X4.\u0275fac=function(a){return new (a||X4)};X4.\u0275prov=Sc({token:X4,factory:X4.\u0275fac,providedIn:"root"});var Y4=function(){this.isGeneratingTitle=new tj(!1);this.generatedTitle=new tj(null);this.suggestTitleRequested=new bg};Y4.\u0275fac=function(a){return new (a||Y4)};Y4.\u0275prov=Sc({token:Y4,factory:Y4.\u0275fac,providedIn:"root"});var Z4=function(){Z.call(this);var a=this;this.activeSession=n(Es);this.butterBar=n(iK);this.analytics=n(CF);this.llmSuggestTitleService=n(Y4);this.llmApi=n(X4);this.suggestedTitle=new LA;this.enableSuggestTitle=Yr(this.activeSession,"enableSuggestTitle")||!1;av(this.llmSuggestTitleService.suggestTitleRequested).pipe(gg(this.destroyed$)).subscribe(function(){a.suggestIssueTitle()})};Y(Z4,Z);Z4.\u0275dir=Z.\u0275dir;
Z4.prototype.suggestIssueTitle=function(){var a=this,b;return w(function(c){if(c.nextAddress==1){if(!a.enableSuggestTitle||a.description.value==="")return c.return();a.analytics.trackEvent("llm","generate","title");a.llmSuggestTitleService.isGeneratingTitle.next(!0);return x(c,a.llmApi.suggestIssueTitle(a.description.value),2)}b=c.yieldResult;b=b.trim();if(b===""){var d=a.llmSuggestTitleService;d.generatedTitle.next(null);d.isGeneratingTitle.next(!1);a.suggestedTitle.emit(null);Mq(a.butterBar,"Could not generate title. Try adding more to the description.",
3E3);return c.return()}d=b;var e=a.llmSuggestTitleService;e.generatedTitle.next(d);e.isGeneratingTitle.next(!1);a.suggestedTitle.emit(d);ze(c)})};Z4.\u0275fac=function(a){return new (a||Z4)};
Z4.\u0275cmp=B({type:Z4,selectors:[["llm-suggest-title-button"]],inputs:{description:"description"},outputs:{suggestedTitle:"suggestedTitle"},standalone:!1,features:[kg],decls:3,vars:2,consts:[["mat-stroked-button","","color","primary","type","button","matTooltipPosition","above","aria-label","Generate AI-suggested title for this issue",1,"suggest-title-button","gmat-mdc-button","margin-s-left",3,"click","matTooltip","disabled"],["svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right"]],template:function(a,
b){a&1&&(I(0,"button",0),M("click",function(){return b.suggestIssueTitle()}),K(1,"mat-icon",1),Q(2," Suggest title\n"),J());a&2&&D("matTooltip",b.description.value===""?"Enter a description to suggest a title":"Generate AI-suggested title for this issue")("disabled",b.description.value==="")},dependencies:[aB,PA,Tx,YA,cB],styles:[".suggest-title-button[_ngcontent-%COMP%]{height:29px;line-height:29px;padding:0 12px}.mat-icon[_ngcontent-%COMP%]{margin-top:-4px}\n/*# sourceMappingURL=llm_suggest_title_button.css.map */"]});var N$c=[[["","mainSegment",""]],[["","dropdownSegment",""]]],a5=function(){this.mainSegment=!0};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275dir=Kf({type:a5,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&wg("main-segment",b.mainSegment)},standalone:!1});var b5=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new LA;this.dialogOpened=new LA};b5.prototype.ngAfterContentInit=function(){};
b5.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};ea.Object.defineProperties(b5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.trigger)==null?void 0:a.isOpen)!=null?b:!1}}});b5.\u0275fac=function(a){return new (a||b5)};
b5.\u0275cmp=B({type:b5,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&Xg(c,a5,5);if(a&2){var d;$g(d=ah())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&Wg(qO,5);if(a&2){var c;$g(c=ah())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&wg("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
standalone:!1,features:[Uu],ngContentSelectors:["[mainSegment]","[dropdownSegment]"],decls:8,vars:7,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["type","button","mat-icon-button","","onedevPopupPanelTrigger","",3,"click","onedevPopupPanelTriggerOpened","onedevPopupPanelTriggerClosed","onedevPopupPanelTriggerFor","matTooltip","disabled"],["svgIcon","arrow-dropdown"],["role","region"],[1,"dropdown-container"]],template:function(a,b){if(a&1){var c=r();Ng(N$c);Og(0);
I(1,"button",2,0);M("click",function(){t(c);var d,e;if((e=(d=b.trigger)==null?void 0:d.isOpen)!=null&&e){var f;(f=b.trigger)==null||f.close()}else{var h;(h=b.trigger)==null||h.open()}return v()})("onedevPopupPanelTriggerOpened",function(){t(c);return v(b.dialogOpened.emit())})("onedevPopupPanelTriggerClosed",function(){t(c);return v(b.dialogClosed.emit())});K(3,"mat-icon",3);J();I(4,"onedev-popup-panel",4,1)(6,"div",5);Og(7,1);J()()}a&2&&(a=L(5),z(),zg("dropdown-button ",b.size),D("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),ng("aria-label",b.dropdownAriaLabel))},dependencies:[aB,PA,Ux,YA,cB,pO,qO],styles:["[_nghost-%COMP%]    {border:1px solid;border-color:#dadce0;border-color:var(--hairline);border-radius:5px;display:flex;overflow:hidden}[_nghost-%COMP%]     .main-segment{border-radius:5px 0 0 5px;padding-left:8px;padding-right:8px;line-height:13px}[_nghost-%COMP%]    .expanded .dropdown-button mat-icon{transform:rotate(-180deg)}[_nghost-%COMP%]     .dropdown-button:not([disabled]) mat-icon{color:#5f6368;color:var(--icon)}[_nghost-%COMP%]     .dropdown-button{border-left:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:0;width:30px}[_nghost-%COMP%]     .dropdown-button mat-icon{transition:250ms transform}[_nghost-%COMP%]     .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0}/*# sourceMappingURL=split_button.css.map */"],
changeDetection:0});var O$c=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),c5=function(){Z.apply(this,arguments);this.butterBar=n(iK);this.analytics=n(CF);this.llmSuggestTitleService=n(Y4);this.suggestionAccepted=new LA;this.isGeneratingTitle$=av(this.llmSuggestTitleService.isGeneratingTitle).pipe(cg({refCount:!0,bufferSize:1}));this.suggestedTitle$=av(this.llmSuggestTitleService.generatedTitle).pipe(cg({refCount:!0,bufferSize:1}));this.isVisible$=
Je([av(this.llmSuggestTitleService.isGeneratingTitle),av(this.llmSuggestTitleService.generatedTitle)]).pipe(gg(this.destroyed$),y(function(a){var b=l(a);a=b.next().value;b=b.next().value;return a||b}));this.suggestedTitleRejectionReasons=["TOTALLY_INCORRECT","MISSING_IMPORTANT_INFO","OTHER"];this.REJECT_REASON_TO_DISPLAY=O$c};Y(c5,Z);c5.\u0275dir=Z.\u0275dir;
var KHb=function(a){var b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(av(a.llmSuggestTitleService.generatedTitle)),2);b=c.yieldResult;if(!b)return c.return();a.analytics.trackEvent("llm","accept","title");a.suggestionAccepted.emit(b);a.llmSuggestTitleService.generatedTitle.next(null);ze(c)})};c5.prototype.close=function(){this.llmSuggestTitleService.generatedTitle.next(null)};c5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(c5)))(b||c5)}}();
c5.\u0275cmp=B({type:c5,selectors:[["llm-suggest-title-preview"]],outputs:{suggestionAccepted:"suggestionAccepted"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["splitButton",""],[1,"suggest-title","flex-kids-x","carded","margin-s-top"],[1,"flex-kids-y","flex","gap"],[1,"flex-kids-x","align-items-center","space-between"],[1,"heading-s"],[1,"flex-kids-x"],["type","button","mat-icon-button","","aria-label","Re-generate title","matTooltip","Re-generate title",1,"request-title",3,"click"],["svgIcon",
"refresh"],["type","button","mat-icon-button","","aria-label","Hide AI suggested title","matTooltip","Hide AI suggested title",1,"hide-suggest-title",3,"click"],["svgIcon","close"],[1,"type-m","margin-s-right"],[1,"flex-kids-x","gap-s"],["mat-flat-button","","color","primary","type","button",1,"small",3,"click","disabled"],["dropdownTooltip","Specify reject reason",3,"size","disabled"],["type","button","mat-button","","mainSegment","",1,"small",3,"click","disabled"],["dropdownSegment",""],["type",
"button","mat-menu-item","",1,"rejection-reason"],["type","button","mat-menu-item","",1,"rejection-reason",3,"click"]],template:function(a,b){a&1&&(E(0,LHb,27,13,"div",1),S(1,"async"));a&2&&F(T(1,1,b.isVisible$)?0:-1)},dependencies:[aB,PA,Tx,Ux,YA,cB,ON,b5,a5,VG,Qv],styles:[".suggest-title[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;padding:8px 8px 16px 16px}\n/*# sourceMappingURL=llm_suggest_title_preview.css.map */"]});var d5=function(){Z.call(this);var a=this;this.similarIssuesApi=n(jO);this.analytics=n(CF);this.activeSession=n(Es);this.hasSearched=this.isLoading=!1;this.loadedIssueCount=0;this.componentId$=new ag(1);this.contextRaw$=new ag(1);this.tableColumns=[{type:"TITLE"},{type:"PRIORITY"},{type:"CREATED_TIME"}];this.isInternal=this.activeSession.isInternalSession();this.tableOptions={showActiveIndicator:!1,showMenu:!1,hideColumnHeaders:!0,enableIssueHovercard:!0,rowLimit:3,navigationOptions:{alwaysOpenNewTab:!0},
modes:{createdTime:"relativepastshort"}};this.searchString$=this.contextRaw$.pipe(y(function(b){return b.trim()}),Ve(function(b){return b.length>=7}),Sf(200));this.issues$=Je([this.componentId$,this.searchString$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return kO(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),Pf(function(b){Nj("similarIssuesApi.lookupSimilarIssues() error: ",
b);var c,d,e=(d=b==null?void 0:(c=b.error)==null?void 0:c.status)!=null?d:b==null?void 0:b.status;a.analytics.trackEvent("similarIssues","error",e);return Ce({similarIssues:[],scores:[]})}),y(function(b){return PHb(b)}),hg(function(b){a.isLoading=!1;a.hasSearched=!0;a.loadedIssueCount=b.length}));this.issueIds$=this.issues$.pipe(y(function(b){return b.map(function(c){return c.issueId})}));this.subscriptions.add(this.issues$.pipe(y(function(b){return b.length})).subscribe(function(b){a.analytics.trackEvent("similarIssues",
"loaded","possible-dupes-"+b,b)}))};Y(d5,Z);d5.\u0275dir=Z.\u0275dir;
ea.Object.defineProperties(d5.prototype,{isThinkingOnEmpty:{configurable:!0,enumerable:!0,get:function(){return this.isLoading&&!this.hasSearched}},isEmpty:{configurable:!0,enumerable:!0,get:function(){return!this.isLoading&&this.loadedIssueCount===0}},componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentId$.next(a)},get:function(){return op(this.componentId$)}},context:{configurable:!0,enumerable:!0,set:function(a){this.contextRaw$.next(a!=null?a:"")}}});
d5.\u0275fac=function(a){return new (a||d5)};
d5.\u0275cmp=B({type:d5,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&wg("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},standalone:!1,features:[kg],decls:8,vars:5,consts:[[1,"flex-kids-x","align-items-center","gap-s","margin-s-y"],["svgIcon","spark_24px","color","primary"],[1,"heading-xs"],["mat-icon-button","","href","http://go/similar-issues-buganizer","target","_blank","matTooltip","Learn more",
"aria-label","Learn more",1,"xs","muted"],[3,"issueIds","tableColumns","options"],["svgIcon","help-outline"]],template:function(a,b){a&1&&(I(0,"div",0),K(1,"mat-icon",1),I(2,"h3",2),Q(3,"Possible duplicates"),J(),E(4,MHb,2,0,"a",3),E(5,NHb,1,0,"b-spinner"),J(),E(6,OHb,1,3,"b-issues-table",4),S(7,"async"));if(a&2){var c;z(4);F(b.isInternal?4:-1);z();F(b.isLoading&&!b.isThinkingOnEmpty?5:-1);z();F((c=T(7,3,b.issueIds$))?6:-1,c)}},dependencies:[aB,ON,vU,YA,cB,PA,Ux,Qv],styles:["[_nghost-%COMP%]{display:block}.dark-mode   [_nghost-%COMP%]     .mat-mdc-table, [_nghost-%COMP%]     .mat-mdc-table{background:transparent}.thinking-on-empty[_nghost-%COMP%]{-webkit-animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_ai-shimmer 2.1s linear infinite;background:-webkit-linear-gradient(315deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%;background:linear-gradient(135deg,var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted),var(--ai-muted),var(--ai-analog-muted),var(--ai-analog-very-muted),var(--ai-complement-muted),var(--ai-muted)) 50%/800% 800%}@-webkit-keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_ai-shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}.is-empty-state[_nghost-%COMP%]{display:none}\n/*# sourceMappingURL=similar_issues.css.map */"]});var P$c=["popOver"],RHb=function(a){return{$implicit:a}},ZHb=function(a){return{editingValue:a}},e5=function(a){this.injector=n(Ze);this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.fitPopoverToViewport=!1;this.valueChange=new hv;this.editorOpen=new hv;this.required=this.editing=this.headerFocused=!1;this.editingValue=new uy("",{nonNullable:!0});this.onChange=function(){};this.onTouched=function(){};if(a===""||a==="true"||
a==="required")this.required=!0};Y(e5,xU);g=e5.prototype;g.ngOnInit=function(){var a=this.injector.get(my,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator)};g.valueChanged=function(){return this.editingValue.value!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};
g.stopEditing=function(a){this.editing=!1;a===0&&(this.onChange(this.editingValue.value),this.value=this.editingValue.value,this.valueChange.emit(this.value));this.editorOpen.emit({isOpen:!1,closeAction:a})};g.writeValue=function(a){a!=null&&(this.val=a,this.editing||this.editingValue.setValue(a))};g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};
g.setDisabledState=function(a){this.disabled=a};ea.Object.defineProperties(e5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});e5.\u0275fac=function(a){return new (a||e5)(ae("required"))};
e5.\u0275cmp=B({type:e5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&Wg(P$c,7);if(a&2){var c;$g(c=ah())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport"},outputs:{valueChange:"valueChange",
editorOpen:"editorOpen"},standalone:!1,features:[hh([{provide:iy,useExisting:ld(function(){return e5}),multi:!0},{provide:xU,useExisting:ld(function(){return e5}),multi:!0}]),kg],decls:11,vars:10,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["singleLineTemplate",""],[3,"click","focus","blur"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",3,"centered",4,"ngIf"],[3,"closedWithAction",
"anchor","editorTemplate","newlineWithEnterKey","hasBackdrop","fitToViewport","saveDisabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],[4,"ngIf"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1",3,"formControl","cdkAutosizeMaxRows",4,"ngIf","ngIfElse"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","cdkAutosizeMaxRows"],["spellcheck","false","autocomplete","off",3,"formControl"]],template:function(a,b){if(a&1){var c=r();I(0,"button",5,0);M("click",function(){t(c);return v(b.startEditing())})("focus",function(){t(c);return v(b.headerFocused=!0)})("blur",function(){t(c);return v(b.headerFocused=!1)});
I(2,"span");C(3,SHb,2,4,"ng-container",6)(4,THb,1,1,"ng-template",null,1,nh);J();C(6,UHb,2,2,"svg",7);J();I(7,"onedev-pop-over-edit-panel",8,2);M("closedWithAction",function(f){t(c);return v(b.stopEditing(f))});J();C(9,aIb,2,2,"ng-template",null,3,nh)}if(a&2){a=L(1);var d=L(5),e=L(10);ng("aria-labelledby",b.labelledById);z(3);D("ngIf",b.valueTemplate)("ngIfElse",d);z(3);D("ngIf",!b.disabled);z();D("anchor",a)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",
b.fitPopoverToViewport)("saveDisabled",b.editingValue.invalid)}},dependencies:[Ov,Pv,Li,oy,cz,yU,Ay],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;background:none;border:1px solid transparent;color:var(--text-default,#202124);padding:4px;-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;line-height:18px;border-radius:5px;width:100%;min-height:27px;min-width:100px;-webkit-box-align:start;-webkit-align-items:start;-moz-box-align:start;-ms-flex-align:start;align-items:start;text-align:left;white-space:pre-line}button[_ngcontent-%COMP%]:hover{cursor:pointer;border-color:var(--field-hover-border,#d2e3fc)}button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}button.active[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus{outline:0;border-color:var(--primary-default,#1a73e8)}.ng-invalid.ng-touched[_nghost-%COMP%]   button[_ngcontent-%COMP%]{border-color:var(--warn-default,#d93025)}.edit-icon[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-left:auto;width:16px;height:16px;color:var(--icon,#5f6368);fill:currentColor;margin-top:1px}.edit-icon.centered[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;margin-top:0}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;padding:6px 8px;font-weight:400;letter-spacing:.185714px;line-height:normal;padding:4px;border-radius:5px;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;color:var(--text-default,#202124);border:1px solid var(--field-hover-border,#d2e3fc);background-color:var(--surface-default,#fff);line-height:18px;-moz-box-sizing:content-box;box-sizing:content-box;width:calc(100% - 10px)}input[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--primary-default,#1a73e8)}"]});var Q$c=["descriptionConfirmDialog"],R$c=function(a){return{submitted:a}},dIb=function(a,b){return{partner:a,"public":b}},DJb=function(a){return{"bv2-upload-ongoing":a}},wJb=function(){return[]},uJb=function(a){return{required:a}},IJb=function(){return{standalone:!1}},S$c=new yd("titleBannedWordsChecker"),T$c=new yd("descriptionBannedWordsChecker"),U$c={noListedUsers:{title:"Issue will have no listed users",content:"No one will be able to access this issue due to the Issue Access Limit that you have set, and the lack of any listed user on the issue. We strongly recommend maintaining at least one user with access. Are you sure you still want to proceed?"},
loseAccess:{title:"You will lose access",content:"You will not be able to access this issue because you are not listed on the issue and have set a restrictive Issue Access Level. Are you sure you want to proceed?"}},f5=function(){Z.call(this);var a=this;this.routeParams=n(bL);this.hotkeys=n(nH);this.checkBeforeExit=n(lS);this.constants=n(GK);this.ngZone=n(ph);this.$log=n(MA);this.reloadService=n(VY);this.paths=n(EN);this.redirectUrl=n(p2);this.userAccess=n(jE);this.accessPolicy=n($C);this.bLocation=
n(cI);this.appHistory=n(m2);this.issueTemplate=n(o2);this.issueTypeDialog=n(BK);this.componentActions=n(oN);this.activeSession=n(Es);this.draftStore=n(kK);this.analytics=n(CF);this.issueApi=n(BE);this.hotlistApi=n(ED);this.butterBar=n(iK);this.errorHandler=n(DK);this.matDialogService=n(tK);this.appEvents=n(nD);this.userPreferencesManager=n(OG);this.cdr=n(NA,{self:!0});this.issueRelationshipsFridge=n(QF);this.issueFullFridge=n(EF);this.componentFridge=n(jD);this.clearcut=n(vF);this.jspbPrincipalTypes=
n(jG);this.trackerFridge=n(IG);this.issueSuggestionLoggingService=n(V4);this.titleBannedWordsChecker=n(S$c);this.descriptionBannedWordsChecker=n(T$c);this.confirmIssueAccessLimitSettingsService=n(T_);this.componentTemplateApi=n(mD);this.dismissalService=n(JN);this.hostElement=n(ff);this.currentUserBookmarksFridge=n(OD);this.trackerHelpers=n(LK);this.staffingDialogService=n(R_);this.enablePeoplekitAc=Yr(this.activeSession,"enablePeoplekitUserAc");this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=
/[\s,]+/;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.recentIssuesInComponent=vq;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");
this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new y7c(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";this.availablePredefinedTemplates=[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=n(WO);this.preferredTemplateId=null;this.everClickedSimilarIssues=this.everShowedIssueHovercard=this.isNavigatingAway=this.isSaving=this.submitRequested=
!1;this.selectedHotlists=[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap={};this.customFieldAllowedValuesMap={};this.issue=Qj(MJb);this.verifierText=this.reporterText=this.assigneeText=null;this.ccsText=[];this.collaboratorsText=[];this.collaboratorGroupsText=[];this.audience="EXTERNAL";this.selectedComponent=null;this.selectedAccessLimitLevel=
"LIMIT_NONE";this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.useCodefont=!1;this.hasAdvancedFieldsInUrlTemplate=A7c(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.selectedHotlistIds=[[]];this.isFormatInRoute=!1;this.isCollaboratorsValid=this.isChildIssueIdsValid=this.isParentIssueIdsValid=this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.invalidCollaboratorsInput=[];this.startTime=new Date;this.recaptchaResponse="";this.toIssuePriority=lk;
this.toIssueSeverity=Xua;this.FieldType=WL;this.initialized=!1;this.trackerComponent$=Oe(function(){return Ce(a.activeSession.getTracker())}).pipe(fg(function(c){return c?a.componentFridge.watch(Number(c.componentId)).pipe(eg(void 0)):Ce(void 0)}));this.trackerId$=new tj(void 0);this.tracker$=this.trackerId$.pipe(fg(function(c){return c?a.trackerFridge.watch(c):Ce(void 0)}));this.titleAfterBlur$=new bg;this.similarIssuesSearchString$=this.titleAfterBlur$.pipe(Wf(100));this.trackerCollaboratorGroups=
[];this.enableSuggestTitle=Yr(this.activeSession,"enableSuggestTitle")&&this.activeSession.isInternalSession();this.enableIssueSuggestionPicker=Yr(this.activeSession,"enableIssueCreationSuggestions")&&this.activeSession.isInternalSession();this.countOfClickedSuggestions=0;this.issueSuggestionSessionId=J$c();this.lastSelectedSuggestedIssueMetadata=null;this.shouldHighlightCollaborators=this.shouldHighlightCcs=this.shouldHighlightReporter=this.shouldHighlightAssignee=this.shouldHighlightDescription=
!1;this.onAnyClick=function(c){aCa(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues","click"))};this.getSingleEditFieldType=VPa;this.getListFieldType=iSa;this.didConfirmNavigateAway=function(){var c,d=(c=a.selectedComponent)==null?void 0:c.componentPathInfo;c=rs(a.trackerHelpers,d);d="";c&&c.componentPathName&&(d=c.componentPathName[0].toString().trim());a.everShowedIssueHovercard||a.everClickedSimilarIssues?(a.analytics.trackEvent("createIssue","abandon-happy"),
a.analytics.trackEvent("createIssue","abandon-happy-by-component",""+d)):(a.analytics.trackEvent("createIssue","abandon-normal"),a.analytics.trackEvent("createIssue","abandon-normal-by-component",""+d))};this.fetchUserHotlists();this.checkBeforeExit.didConfirm=this.didConfirmNavigateAway;this.subscriptions.add(this.tracker$.subscribe(function(c){a.updateCollaboratorGroups(c)}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(){a.everShowedIssueHovercard=
!0;a.analytics.trackEvent("similarIssues","hover")}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.enableCreateIssueWithTemplate=Yr(this.activeSession,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=this.activeSession.isInternalSession()||wC(this.activeSession);this.priorityChoices=this.constants.priorities.map(function(c){return{value:c,
displayText:c}});this.severityChoices=this.constants.severities.map(function(c){return{value:c,displayText:c}});this.issueTypeChoices=this.constants.editIssueTypes.map(function(c){return{value:c,displayText:xk(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});this.piiWarningMessage=this.activeSession.isInternalSession()?"Please be sure you don't include sensitive information/data (PII, SPII, and other sensitive user data) in unrestricted issues (either in text or through attachments). If you do need to include sensitive information, please be sure to link to a secure doc (e.g. a drive file with proper sharing settings) and share only with those that have a business need for access. Please see http://go/buganizerpuppy.":
void 0;this.componentAutocomplete=this.routeParams.componentAutocomplete;this.componentRequestedInUrl=this.routeParams.component;this.templateIssueRequestedInUrl=this.routeParams.template_issue;if(this.routeParams.template){var b=Number(this.routeParams.template);b&&(this.preferredTemplateId=b)}if(b=this.routeParams.parentIssueId)this.parentIssueIds=Array.isArray(b)?b:[b];if(b=this.routeParams.childrenIssueIds)this.childrenIssueIds=Array.isArray(b)?b:[b];if(b=this.routeParams.afterIssueId)this.afterIssueId=
Array.isArray(b)?b[0]:b;KJb(this.issue,this);this.routeParams.description?this.comment=new ss(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(rq("0"))||"",this.comment=new ss(b));this.comment.formattingMode=V$c(this);b=W$c(this.routeParams);this.isFormatInRoute=b!=null;b&&(this.comment.formattingMode=b);this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(c){var d;a.useCodefont=(d=c.useCodefont)!=null?d:a.useCodefont}));this.subscriptions.add(oH(this.hotkeys,
{title:"Create Issue Page",hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var c;(c=a.hotlistPicker)==null||c.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){a.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,X$c(this,Number(this.componentRequestedInUrl))):this.componentAutocomplete?Y$c(this,this.componentAutocomplete):(F7c(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,Z$c(this));this.originalIssueCopy=Qj(this.issue);this.routeParams.description&&(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=this.comment.formattingMode,this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},
!1))};Y(f5,Z);f5.\u0275dir=Z.\u0275dir;f5.prototype.handleAutocompleteSelection=function(a,b){b==="assignee"?this.assigneeText=a:b==="verifier"?this.verifierText=a:this.reporterText=a;g5(this)};var NIb=function(a,b,c){b=cs(b);c==="ccs"?a.ccsText=b:a.collaboratorsText=b;g5(a)};f5.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
var $$c=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=CJa(a.comment.value,a.templateComment);return CJa(a.issue.title,a.templateTitle)&&b},EJb=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};
f5.prototype.ngOnInit=function(){var a=this;this.initialized=!0;this.hostElement.nativeElement.addEventListener("click",this.onAnyClick,!0);this.subscriptions.add(this.trackerComponent$.subscribe(function(b){b&&(a.selectedComponent||a.componentRequestedInUrl||a.templateIssueRequestedInUrl||a.preferredTemplateId||aad(a,b))}))};f5.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.onAnyClick,!0)};
var g5=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};f5.prototype.back=function(){n2(this.appHistory)};
var bad=function(a){var b;return vr(a.selectedComponent)&&!((b=a.selectedComponent)==null||!b.trackerId)&&!Gq(a.activeSession)},cad=function(a,b){b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",Mq(a.butterBar,"Because this issue will be on a public tracker, the following Issue Access Limit will be applied: Limited visibility + Google."+(a.canEditIssuesInComponent?" You may modify this access level before creating the issue.":
"")))};f5.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var aad=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,dad(a),a.audience=ur(a.selectedComponent)?"EXTERNAL":"INTERNAL",a.trackerId$.next(a.selectedComponent.trackerId),a.createRestrictedResourcesComponentIds.includes(a.selectedComponent.componentId)?a.judgementForNewContent={severity:"RESTRICTED",judgementReason:"None Specified"}:a.judgementForNewContent=
void 0):(Vi(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;ead(a);a.selectedComponentProcessedPromise=Promise.all([fad(a),gad(a)]).then(function(){});return a.selectedComponentProcessedPromise};f5.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var had=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},gIb=function(a){return t6a(a.selectedComponent)?"External Google partners may be able to see this issue.":vr(a.selectedComponent)?"Public users may be able to see this issue.":""};
f5.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroupsText.length===0?"":this.collaboratorGroupsText.length>1?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};f5.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=Bk(a.collaboratorGroups),this.separateCollaboratorGroups())};
f5.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=l(this.collaboratorsText),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)?this.collaboratorGroupsText.push(d):a.push(d);this.collaboratorsText=a;if(this.collaboratorGroupsText.length>0&&!vr(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var Z$c=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new iad(b,"issue","Issue "+b,!1,0,!1),a.selectedTemplate=a.availableExistingIssueTemplate)},fad=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!jad(a)&&(a.selectedTemplate=null);return a.selectedComponent?a.issueTemplate.templatesApi.query(a.selectedComponent.componentId).then(function(b){a.availablePredefinedTemplates=
b.map(function(e){var f=e.name;Ca(Vr(f))&&(f=e.default?"(default template)":"(unnamed template)");return new iad(e.templateId,"predefined",f,e.default,e.componentId,e.inheritable)});if(a.preferredTemplateId&&!a.selectedTemplate){var c=a.preferredTemplateId;if(b=a.availablePredefinedTemplates.find(function(e){return e.id===c}))a.selectedTemplate=b,a.preferredTemplateId=null}if(!a.selectedTemplate){b=l(a.availablePredefinedTemplates);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.isDefault){a.selectedTemplate=
d;break}}a.availablePredefinedTemplates.length>0&&!a.selectedTemplate&&(a.selectedTemplate=a.availablePredefinedTemplates[0]);g5(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},jad=function(a){var b,c;return a.selectedTemplate&&((b=a.selectedComponent)==null?0:(c=b.componentPathInfo)==null?0:c.componentPathId)?a.selectedTemplate.inheritable&&a.selectedComponent.componentPathInfo.componentPathId.find(function(d){return d===a.selectedTemplate.componentId})!==
void 0:!1},gad=function(a){if(!a.selectedComponent)return a.canCreateNewIssuesInComponent=!1,a.canEditIssuesInComponent=!1,Promise.resolve(void 0);var b=a.selectedComponent.componentId,c="components/"+b+"/issueDefaults";a.createAclLoading=!0;a.canCreateNewIssuesInComponent=!1;a.canEditIssuesInComponent=!1;a.canViewIssuesInComponent=!1;a.componentHasExpandedAccessEnabled=!1;var d=kE(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;g5(a)}),e=kE(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;g5(a)});c=kE(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;g5(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;g5(a)});return Promise.all([d,e,c,b]).then(function(){kad(a);g5(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},nad=function(a){if(a.selectedTemplate){var b=function(c){var d=Object.assign(Qj(MJb),c.snapshot);
a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);var e=Qj(d);had(a);LJb(a,a.issue);var f=Qj(a.issue);if(a.appliedTemplate)for(var h=l(Object.keys(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a.appliedTemplate[k];if(Array.isArray(q)&&Array.isArray(f[k])){q=l(q);for(var u=q.next();!u.done;u=q.next())Yta(f[k],u.value)}else Pj(q,f[k])&&delete f[k]}a.appliedTemplate=e;NJb(d,f);f=e.comment||"";a.comment.value!==a.templateComment&&(aFc(a.comment)||f===""||a.comment.value===
f||(a.templateComment=f,lad(a,a.comment.value)),d.comment=a.comment.value,d.formattingMode=e.formattingMode);a.templateComment=f;var A;a.templateCommentFormattingMode=(A=e.formattingMode)!=null?A:void 0;a.templateTitle=e.title||"";d.reporterUser=Hk(a.userEmail);bad(a)&&a.canEditIssuesInComponent?cad(a,d.issueAccessLimitLevel||"LIMIT_NONE"):a.selectedAccessLimitLevel=d.issueAccessLimitLevel||"LIMIT_NONE";a.issue=d;KJb(a.issue,a);kad(a);had(a);LJb(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&
a.issue.formattingMode&&(a.comment.formattingMode=a.issue.formattingMode);F7c(a.urlTemplate,a.issue,a.customFieldMap);KJb(a.issue,a);a.originalIssueCopy=Qj(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Qj(a.issue.hotlistId);g5(a)});mad(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();return a.selectedComponent?null:c.snapshot.componentId};a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,
a.selectedTemplate.id).then(QJb(a.selectedComponent)).then(b).then(function(){g5(a)}).catch(function(c){a.butterBar.showWarning(c.message)}):a.selectedTemplate.type==="issue"&&(H7c(a.issueTemplate,String(a.selectedTemplate.id)).then(function(c){var d;if(Gq(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("Bf");return b(c)}).then(function(c){c&&(X$c(a,c),g5(a))}).catch(function(c){a.butterBar.showWarning(c.message)}),Ge(a.issueFullFridge.watch(String(a.selectedTemplate.id))).then(function(c){var d;
(d=a.parentIssueIds)!=null&&d.length||(a.parentIssueIds=c==null?void 0:c.parentIssueIds)}));a.selectedTemplate.id!==a.preferredTemplateId&&a.analytics.trackEvent("createIssue","changeTemplate");ead(a)}};f5.prototype.isValid=function(){return!(iIb(this).length!==0||jIb(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!pIb(this.comment)&&!0};
var iIb=function(a){var b=a.issue;a=a.canEditIssuesInComponent?["componentId","priority","type","title"]:["componentId","title"];a=a.filter(function(c){return!b[c]});return a.map(function(c){return c==="componentId"?"component":c})},jIb=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&Jo(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},oad=function(a){return a.collaboratorsText.length!==0&&a.canEditIssuesInComponent?Psc(a.jspbPrincipalTypes,
a.collaboratorsText,!1).then(function(b){a.invalidCollaboratorsInput=Object.entries(b).filter(function(c){c=l(c);c.next();c=c.next().value;return(c==null?void 0:c.principalType)!=="USER"}).map(function(c){return l(c).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(b){a.butterBar.showWarning(b.message);return!1}):Promise.resolve(!0)},hJb=function(a,b){return b.split(a.ISSUE_ID_LIST_DELIMITER).map(function(c){return c.trim()}).map(function(c){return c.startsWith("b/")?
c.slice(2):c}).filter(Boolean)},QIb=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},ts=function(a){return a?a.join(", "):""},mad=function(a){if(Mqa(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;(b=a.advancedFieldsZippy)==null||b.open()}};g=f5.prototype;g.getCustomFieldType=function(a){var b,c;return(c=(b=this.customFieldMap[a.customFieldId])==null?void 0:b.type)!=null?c:""};
g.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};g.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};g.getCustomFieldValue=function(a){return Io(a)};g.getDateValue=function(a){return a};
g.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});this.analytics.trackEvent("createIssue","changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};g.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};g.getListFieldValues=function(a){var b,c;return(c=(b=Io(a))==null?void 0:b.values)!=null?c:null};
g.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(rq("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};g.discard=function(){this.draftStore.$window.sessionStorage.removeItem(rq("0"));x1c(this.reloadService)};
g.handleHotlistPickerSave=function(a){var b=[];a=l(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent("createIssue","changeHotlists")};g.removeHotlist=function(a){var b;Za((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var zIb=function(a){var b,c,d=(c=(b=a.issue.title)==null?void 0:b.trim())!=null?c:"";a.titleAfterBlur$.next(d)};f5.prototype.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:lk(a)});var b;this.analytics.trackEvent("createIssue","changePriority",(b=this.issue.priority)!=null?b:void 0)};
f5.prototype.editStaffing=function(){var a=this,b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,a.staffingDialogService.show((c=(b=a.issue.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,a.canEditIssuesInComponent),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.issue=Object.assign({},a.issue,{staffing:e});ze(f)})};
f5.prototype.setIssueType=function(a){this.issue=Object.assign({},this.issue,{type:Wua(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0)};f5.prototype.updateSelectedHotlists=function(){var a=this;this.selectedHotlistIds=[this.issue.hotlistId];this.selectedHotlists=this.hotlists.filter(function(b){return a.issue.hotlistId.includes(b.hotlistId)});Nba(this.selectedHotlists,function(b,c){return Ba(b.name,c.name)})};
var pad=function(a,b){var c,d,e,f,h,k,q,u,A,G,H;return w(function(N){switch(N.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){N.jumpTo(2);break}e=[];return d.length===1?x(N,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):x(N,Jrc(a.issueRelationshipsFridge,c,d),5);case 5:h=N.yieldResult;e=h.notAdded;f=h.errors;N.jumpTo(4);break;case 6:k=N.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:q=a.childrenIssueIds;if((u=q)==null||!u.length){N.jumpTo(7);break}return x(N,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(O){return{issueId:O}})),8);case 8:A=N.yieldResult,G=A.notAdded,H=A.errors,G.length&&a.butterBar.showWarning("Unable to add "+G+" as children. "+H);case 7:return N.return(b)}})},CJb=function(a,b,c){var d,e,f,h,k,q,u,A,G,H,N,O,U,da,ma,ra,Ga,Na,Qa,gb,va,Ja;return w(function(La){switch(La.nextAddress){case 1:return a.sessionIsExternal&&
$$c(a)?(qad(a),La.return()):x(La,oad(a),2);case 2:a.isCollaboratorsValid=La.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return La.return()}d.issueAccessLimitLevel=a.selectedAccessLimitLevel;d.issueAccessLimitLevel&&d.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits","create","create_issue:"+d.issueAccessLimitLevel);d.comment=a.comment.value;d.formattingMode=a.comment.formattingMode;f={snapshot:d,
attachments:a.comment.getAttachments()};a.enableRecaptcha&&(f.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&(f.templateId=a.selectedTemplate.id);a.judgementForNewContent&&a.judgementForNewContent.severity!=="NONE_DETECTED"&&(f.contentJudgement=a.judgementForNewContent);a.canEditIssuesInComponent||(h={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:!a.canViewIssuesInComponent&&
!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]},f.snapshot=h);f.snapshot=Ti(f.snapshot,function(Lb){return typeof Lb!=="string"||!Ca(Lb)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Lb){return!Jo(Lb)}));LJb(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=XNa(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=
[]);q=l(k);for(u=q.next();!u.done;u=q.next())A=u.value,f.snapshot.collaboratorsUsers.push(A);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=Cva(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");G=function(){a.isSaving=!0;a.newIssueStarted=!1;Mq(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Lb){return pad(a,Lb)}).then(function(Lb){a.draftStore.$window.sessionStorage.removeItem(rq("0"));
a.originalIssueCopy=Qj(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");rad(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+Lb.issueId);var Eb,jc;((Eb=a.selectedTemplate)==null?0:Eb.inheritable)&&a.selectedTemplate.componentId!==((jc=a.selectedComponent)==null?void 0:jc.componentId)&&a.analytics.trackEvent("templateInheritance","create","issue:"+Lb.issueId);if(c){var nc;
a.analytics.trackEvent("createIssue","fileAndRedirect","component",(nc=d.componentId)!=null?nc:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;kE(a.userAccess,"reader","issues/"+Lb.issueId).then(function(ec){ec?I7c(a.redirectUrl,Hq(Lb.issueId),String(Lb.issueId)):(Mq(a.butterBar,"New issue created: "+Lb.issueId+" (view access not granted)",0),I7c(a.redirectUrl,a.paths.listIssues()));g5(a)}).catch(function(ec){a.errorHandler.errorHandler(null,ec);a.isNavigatingAway=!1})}else{var Jc;
a.analytics.trackEvent("createIssue","fileAndNew","component",(Jc=d.componentId)!=null?Jc:void 0);Eb={};WDc(a.butterBar,Pi(["New issue created: ",Qi("a",(Eb.href=Hq(Lb.issueId),Eb),String(Lb.issueId))]),0);d.title=a.templateTitle;a.comment=new ss(a.templateComment);d.formattingMode&&(a.comment.formattingMode=d.formattingMode);(d.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,d.formattingMode=a.templateCommentFormattingMode);a.isSaving=
!1;a.submitRequested=!1;a.newIssueStarted=!0;a.originalIssueCopy=Qj(a.issue)}a.enableLiteralModeRevisions&&ztc(a.userPreferencesManager,a.comment.formattingMode).subscribe();g5(a)}).catch(function(Lb){Lb.status===403&&Wo(Lb)?EK(a.errorHandler,Xo(Lb)):a.errorHandler.errorHandler(null,Lb);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return x(La,sad(a),3);case 3:return(H=La.yieldResult)?x(La,
tad(a),4):La.return();case 4:return(N=La.yieldResult)?x(La,D3c(a.confirmIssueAccessLimitSettingsService,{assigneeUser:(O=f.snapshot.assigneeUser)==null?void 0:O.emailAddress,verifierUser:(U=f.snapshot.verifierUser)==null?void 0:U.emailAddress,ccUsers:(da=f.snapshot.ccUsers)==null?void 0:da.map(function(Lb){return Lb.emailAddress}).filter(Tk),collaboratorsUsers:(ma=f.snapshot.collaboratorsUsers)==null?void 0:ma.map(function(Lb){return Lb==null?void 0:Lb.emailAddress}).filter(Tk),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,
currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:a.canEditIssuesInComponent,confirmationDialogText:U$c}),5):La.return();case 5:return(ra=La.yieldResult)?x(La,a.titleBannedWordsChecker.check((Ga=a.issue.title)!=null?Ga:"",uad(a),f.snapshot.componentId),6):La.return();case 6:return Na=La.yieldResult,x(La,a.descriptionBannedWordsChecker.check((Qa=a.issue.comment)!=null?Qa:"",uad(a),f.snapshot.componentId),7);case 7:gb=La.yieldResult;if(!Na||!gb)return(va=b)==null||va.preventDefault(),
(Ja=b)==null||Ja.stopPropagation(),La.return();G();vad(a);ze(La)}})},qad=function(a){a.isSaving=!0;Mq(a.butterBar,"Creating...",0);setTimeout(function(){Mq(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;I7c(a.redirectUrl,a.paths.listIssues())},500)},uad=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},sad=function(a){var b,c,d;return w(function(e){if(e.nextAddress==1)return b="create-issue",x(e,a.dismissalService.isDismissed(cVa(b)),
2);if(e.nextAddress!=4)return(c=e.yieldResult)||a.canEditIssuesInComponent||a.frontendIsInternalOrPartner||!a.selectedComponent||!a.selectedComponent.accessLimit||a.selectedComponent.accessLimit.accessLevel==="INTERNAL"?e.return(!0):x(e,Ge(nK(a.matDialogService.open(KN,{width:"500px",data:{action:b,content:"Submitting this bug report means your email address will be shared with the team that works on this product."}}))),4);d=e.yieldResult;return e.return(d)})},tad=function(a){var b=gk();!a.canEditIssuesInComponent||
a.issue.type!=="VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?b.resolve(!0):nEc(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},Y$c=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(aad(a,c[0]),g5(a),a.newIssueStarted=!0):a.selectedComponent=c[0]}).catch(function(){a.butterBar.showWarning("Unable to load components from the provided query.")}).finally(function(){a.isLoadingComponent=!1})},X$c=function(a,
b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){var d;if(Gq(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("Cf");aad(a,c);g5(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};
f5.prototype.hasUnsavedChanges=function(){var a=OJb(this.issue),b=OJb(this.originalIssueCopy);return!Pj(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var lad=function(a,b){nK(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(Zf()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,(a.originalIssueCopy.comment=a.templateComment)&&a.templateCommentFormattingMode&&(a.comment.formattingMode=a.templateCommentFormattingMode,a.issue.formattingMode=a.templateCommentFormattingMode,a.originalIssueCopy.formattingMode=a.templateCommentFormattingMode)):(a.originalIssueCopy.comment=a.templateComment,
a.templateComment="")})},yIb=function(a){w(function(b){return a.countOfClickedSuggestions===1&&a.lastSelectedSuggestedIssueMetadata?x(b,L$c(a.issueSuggestionLoggingService,a.issueSuggestionSessionId,a.lastSelectedSuggestedIssueMetadata.key,a.lastSelectedSuggestedIssueMetadata.title,a.lastSelectedSuggestedIssueMetadata.description),0):b.jumpTo(0)})},vad=function(a){w(function(b){return a.lastSelectedSuggestedIssueMetadata&&a.issue.title&&a.issue.comment?x(b,K$c(a.issueSuggestionLoggingService,a.issueSuggestionSessionId,
a.lastSelectedSuggestedIssueMetadata.key,a.lastSelectedSuggestedIssueMetadata.title,a.lastSelectedSuggestedIssueMetadata.description,a.issue.title,a.issue.comment),0):b.jumpTo(0)})},ead=function(a){a.selectedComponent&&a.bLocation.search("component",a.selectedComponent.componentId);a.selectedTemplate&&(a.selectedTemplate.type==="predefined"?(a.bLocation.search("template",a.selectedTemplate.id),a.bLocation.search("template_issue",null)):a.selectedTemplate.type==="issue"&&(a.bLocation.search("template_issue",
a.selectedTemplate.id),a.bLocation.search("template",null)))},eIb=function(a){return a.sessionIsExternal?!1:t6a(a.selectedComponent)},fIb=function(a){return xC(a.activeSession)?!1:vr(a.selectedComponent)},dad=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=l(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=
PJb(b);wad(a)}},wad=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(e){return a.customFieldMap[e.customFieldId]&&a.customFieldMap[e.customFieldId].enabledOnIssues});for(var b=a.issue.customField.map(function(e){return e.customFieldId}),c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,!b.includes(d.customFieldId)&&d.enabledOnIssues&&a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});a.originalIssueCopy.customField=
a.issue.customField}},kad=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)a.ccsText!==void 0?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(p(a.ccsText))):a.ccsText=[a.userEmail]};g=f5.prototype;g.fetchUserHotlists=function(){var a=this;Ge(PD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);g5(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&Za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};g.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");Mq(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){Mq(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);g5(b)}).catch(a.errorCallback)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);g5(b);return d},function(){var d=b.hotlistMap[c];Vi(b.hotlistMap,c);Za(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){g5(b)})};
var W$c=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},V$c=function(a){var b;return Xk((b=PG(a.userPreferencesManager).textDisplayPreferences)==null?void 0:b.lastPublishMode)||"PLAIN"};
f5.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=(c=(b=this.judgementForNewContent)==null?void 0:b.severity)!=null?c:"NONE_DETECTED";this.showContentJudgementDialog({severity:d,contentJudgement:void 0,hasAclToCreate:!0}).pipe(gg(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};f5.prototype.showContentJudgementDialog=function(a){return nK(this.matDialogService.open(ER,{panelClass:"no-jitter",width:"500px",data:a}))};
var rad=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);erc("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);wF(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date};
ea.Object.defineProperties(f5.prototype,{selectedTemplate:{configurable:!0,enumerable:!0,get:function(){return this.selectedTemplateInternal},set:function(a){var b=this;if(this.selectedTemplateInternal!==a){this.selectedTemplateInternal=a;var c;(c=this.selectedComponentProcessedPromise)==null||c.then(function(){nad(b)})}}}});f5.\u0275fac=function(a){return new (a||f5)};
f5.\u0275cmp=B({type:f5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(Wg(y_,5),Wg(UV,5),Wg(Q$c,5),Wg($W,5));if(a&2){var c;$g(c=ah())&&(b.hotlistPicker=c.first);$g(c=ah())&&(b.commentBox=c.first);$g(c=ah())&&(b.descriptionConfirmDialog=c.first);$g(c=ah())&&(b.advancedFieldsZippy=c.first)}},standalone:!1,features:[hh([NA,{provide:S$c,useClass:jP},{provide:T$c,useClass:jP}]),kg],decls:31,vars:14,consts:[["descriptionConfirmDialog",""],["collaboratorGroupField",""],["templateMenu",
"matMenu"],["priorityMenu","matMenu"],["typeMenu","matMenu"],["peopleKitDiv",""],["severityMenu","matMenu"],[1,"a11y-only"],[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices"],["mat-button","",1,"medium","primary","valign-middle-mat-button-wrapper",3,"routerLinkObj"],["cdkScrollable","",1,"bv2-view"],
[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm",3,"ngClass"],[1,"bv2-create-component-external-warning",3,"ngClass"],["role","alert",1,"bv2-validation-error-banner"],[1,"bv2-create-issue-hotlists"],[1,"bv2-create-issue-row"],[1,"bv2-create-field"],[1,"bv2-top-field-label"],["for","bv2-component",1,"required"],[1,"bv2-create-issue-component"],[3,"selectedComponentChange","selectedComponent","shouldFocus","isRequired"],[1,"bv2-create-field","bv2-right-button"],[1,"bv2-validation-error-banner"],
[3,"onApply","onLoad","onCreate","selectedHotlistIds","choices"],[3,"name","size"],[3,"href"],[1,"bv2-validation-error"],[1,"bv2-hotlist-chips"],[3,"removeHotlist","hotlist"],["for","bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["iconPositionEnd","","svgIcon","arrow-dropdown",1,"icon-s"],[3,"overlapTrigger"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["for",
"bv2-title",1,"required"],[1,"bv2-create-issue-title-suggest"],[1,"bv2-create-issue-title","flex-kids-x","align-items-center"],[1,"banned-words-warning","break-word"],[1,"bv2-create-field","bv2-create-issue-assignee"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"commentChange","onChange","onSubmit","onRestrict","supportsPreview","comment","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience","showRestrictionOptions","ngClass","warn","canEditIssuesInComponent",
"isLiteralModeSupported"],["warning","",1,"banned-words-warning","break-word"],["additionalToolbarItems","",3,"change","initialValue"],[1,"bv2-create-issue-row","access-level-row"],[1,"float-clear"],[1,"bv2-create-issue-zippy"],[1,"mat-elevation-z0","bg-secondary","bordered"],[1,"create-issue-recaptcha"],[1,"bv2-issue-create-button-bar"],["format","fill","id","bv2-issue-create-button",3,"onAction","disabled","color"],["format","fill","id","bv2-issue-create-start-button",3,"onAction","disabled","color"],
["format","hairline","id","bv2-issue-discard-button",3,"onAction","disabled"],[3,"suggestionSelected","titleChanged","titleBlur","initialTitle"],["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModelChange","blur","ngModel","bFocus"],[3,"description"],[3,"suggestionAccepted"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,
"color-bad-text","keep-underline"],["for","bv2-priority",1,"required"],["mat-button","","type","button","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","","type","button",3,"click"],["mat-menu-item","","type","button"],["for","bv2-type",1,"required"],["mat-menu-item","","type","button",3,"matTooltip"],["mat-menu-item","","type","button",3,"click","matTooltip"],["for","bv2-assignee-peoplekit"],[1,"overflow-hidden"],["id","bv2-assignee-peoplekit","type","text","name","assignee",1,"bv2-create-issue-textfield",
3,"singleUserSelectionChange","email","singleUserMode"],["for","bv2-assignee"],["id","bv2-assignee","type","text","name","assignee","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],[1,"bv2-create-field","bv2-create-issue-collaborators"],["for","bv2-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","matTooltipPosition","above",
"svgIcon","help-outline","tabindex","0",1,"collaborators-tooltip-icon"],["id","bv2-collaborators-peoplekit","type","text","name","collaborators","aria-expanded","true",1,"bv2-create-issue-textfield",3,"selectionChange","ariaLabel","emails"],["for","bv2-collaborators"],["id","bv2-collaborators","type","text","name","collaborators","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],[1,"bv2-create-field","bv2-create-issue-cc"],["for","bv2-ccs-peoplekit"],
["id","bv2-ccs-peoplekit","type","text","name","ccs","aria-expanded","true",1,"bv2-create-issue-textfield",3,"selectionChange","ariaLabel","emails"],["for","bv2-cc"],["id","bv2-cc","type","text","name","cc","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-access-limits","matTooltip","Set access level of this issue"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","implicitAccessEnabled","defaultAccessLimitLevel"],
["for","bv2-collaborator-groups","matTooltip","Set collaborator groups on the issue"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-s","valign-middle","collaborator-group-help-icon",3,"matTooltip"],[4,"ngTemplateOutlet"],["role","heading","aria-level","3"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","matTooltip","Set severity, which reflects how much the issue affects the use of the product"],
["mat-button","","type","button","color","primary","id","bv2-severity",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[1,"bv2-create-adv-field"],["for","bv2-found-in","matTooltip","Set version(s) of the product affected by this issue (comma-separated list)"],["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","matTooltip","Set if this issue occurs in production"],
["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModelChange","ngModel"],["aria-label","Edit staffing",1,"bv2-create-adv-field","staffing-field"],["for","staffing-button","matTooltip","Edit staffing, which represents planned contributors on this issue."],["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],["svgIcon","edit-outline",1,"icon-s","edit-icon"],["for","bv2-targeted-to","matTooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)"],
["id","bv2-targeted-to","name","targetedTo","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["for","bv2-blocked-by","matTooltip","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name","blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-blocking","matTooltip","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text",
"autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-reporter-peoplekit","matTooltip","Set the reporter of this issue."],["id","bv2-reporter-peoplekit","name","reporter","type","text",3,"singleUserSelectionChange","email","singleUserMode"],["for","bv2-reporter","matTooltip","Set the reporter of this issue."],["id","bv2-reporter","name","reporter","type","text","autocomplete","off",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-verifier-peoplekit","matTooltip",
"Set the verifier of this issue."],["id","bv2-verifier-peoplekit","name","verifier","type","text",3,"singleUserSelectionChange","email","singleUserMode"],["for","bv2-verifier","matTooltip","Set the verifier of this issue."],["id","bv2-verifier","name","verifier","type","text","autocomplete","off",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-parents","matTooltip","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text",
"pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-children","matTooltip","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[3,"id","ngClass","matTooltip"],[3,"id","value","labelledById"],[3,"id","value"],[3,"value","options","includeEmptyOption",
"labelledById"],[3,"valueChange","id","value","labelledById"],[3,"valueChange","id","value"],[3,"boundValueChange","boundValue","isRequired","bv2Id","bv2AriaLabelledby"],[3,"valueChange","value","options","includeEmptyOption","labelledById"],["name","customInput","tabindex","0",3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate","isRequired"],[1,"bg-off-main","rounded","bordered","padded-s-y","padded-l-x",3,"context","componentId"],[3,"onUpdate"],["mat-dialog-title",""],[1,
"bv2-create-issue-default-description"],["type","button","mat-button","",3,"mat-dialog-close"],"type button mat-button  mat-dialog-close ".split(" "),["appearance","outline",1,"static-label"],["multiple","","aria-label","Collaborator groups",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"]],template:function(a,b){if(a&1){var c=r();I(0,"h2",7);Q(1,"Create issue");J();I(2,"div",8)(3,"div",9)(4,"button",10);M("click",function(){t(c);return v(b.back())});K(5,"mat-icon",11);J();I(6,"h2");Q(7,
"Create Issue");J();E(8,bIb,1,2,"b-hotlist-picker",12);E(9,cIb,2,1,"a",13);J()();I(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);E(14,hIb,6,8,"div",17);E(15,qIb,4,3,"div",18);E(16,sIb,3,0,"div",19);I(17,"div",20)(18,"div",21)(19,"div",22)(20,"label",23);Q(21,"Component");J()();I(22,"div",24)(23,"b-team-component-picker",25);M("selectedComponentChange",function(e){t(c);return v(aad(b,e!=null?e:null))});J()()();E(24,vIb,12,4,"div",26);J();E(25,wIb,3,0,"div",27);E(26,FJb,52,62,"div");J()()()();C(27,
GJb,11,2,"ng-template",null,0,nh)(29,JJb,6,4,"ng-template",null,1,nh)}if(a&2){var d;z(8);F(b.canEditIssuesInComponent?8:-1);z();F((d=b.issue.componentId)?9:-1,d);z(4);D("ngClass",jh(12,R$c,b.submitRequested));z();F(eIb(b)||fIb(b)?14:-1);z();F(b.submitRequested&&!b.isValid()?15:-1);z();F(b.selectedHotlists.length>0?16:-1);z(7);D("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);z();F(b.availablePredefinedTemplates.length>
0||b.availableExistingIssueTemplate!=null?24:-1);z();F(b.isLoadingComponent||b.componentRequestedInUrl==null&&b.selectedComponent==null||b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?-1:25);z();F(b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?26:-1)}},dependencies:[aH,UV,wQ,bJ,QU,s0,YM,Xy,Oy,xO,wy,Li,oy,py,Gy,Iy,vy,ty,gU,y_,CL,M_,hN,PA,Tx,Ux,rP,Yw,zP,AP,Lx,uK,wK,yK,xK,$W,aX,bX,UG,XG,VG,YG,cH,dH,YA,cB,e5,xN,Mv,Pv,aB,WB,kS,sS,Z4,c5,d5,dB,XU,PB,
EQ,Qv],styles:[".bv2-create-issue-row[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;--mat-text-button-icon-spacing:4px}mat-icon.collaborator-group-help-icon[_ngcontent-%COMP%]{padding-left:3px}[_nghost-%COMP%]     mat-form-field.static-label{width:180px;margin-top:5px;font-size:1rem}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-flex{height:24px}[_nghost-%COMP%]     mat-form-field.static-label .mat-mdc-form-field-infix{padding:0}.bv2-create-issue-row.access-level-row[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content}.feedback-button[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto}.feedback-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.feedback-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bv2-top-field-label[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.create-issue-recaptcha[_ngcontent-%COMP%]{float:right;margin:0 15px 15px 0}.mat-mdc-menu-item[_ngcontent-%COMP%]:active, .mat-mdc-menu-item[_ngcontent-%COMP%]:focus, .mat-mdc-menu-item[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}[_nghost-%COMP%]   .collaborators-tooltip-icon[_ngcontent-%COMP%]{height:18px}[_nghost-%COMP%]     .collaborators-tooltip-icon svg{height:90%;margin-top:1px}[_nghost-%COMP%]   input.invalid[_ngcontent-%COMP%]{border-color:var(--bad-high-contrast)!important;border-width:2px!important}[_nghost-%COMP%]     .bv2-issue-create-button-bar b-button .gmat-mdc-button.mat-mdc-unelevated-button.mat-warn{background-color:#c5221f;background-color:var(--bad-gfx)}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}.staffing-field[_ngcontent-%COMP%]{width:90%}.staffing-field[_ngcontent-%COMP%]   .staffing-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.staffing-field[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%}.staffing-field[_ngcontent-%COMP%]   .edit-icon[_ngcontent-%COMP%]{color:var(--icon)}.highlight-input[_ngcontent-%COMP%]{--input-field-bg:var(--blue-bg)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var MJb={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},iad=function(a,b,c,d,e,f){this.id=a;this.type=b;this.name=c;this.isDefault=d;this.componentId=e;this.inheritable=f};var xad=["form"],h5=function(){this.bLocation=n(cI);this.sloApi=n(rG);this.errorHandler=n(DK);this.analytics=n(CF);this.butterBar=n(iK);this.appHistory=n(m2);this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error=""};g=h5.prototype;g.ngAfterViewInit=function(){};
g.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("Df"));Mq(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){Mq(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(Fq.editSlo.makeHref(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};g.back=function(){n2(this.appHistory)};
g.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};g.updateCollection=function(a){this.sloUnderEdit.elements=a};g.validate=function(){if(this.createSloForm.invalid||!this.elementPickerIsValid)return this.error="Error: You must fill out all required fields and ensure the rules are valid.",!1;this.error="";return!0};h5.\u0275fac=function(a){return new (a||h5)};
h5.\u0275cmp=B({type:h5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&Wg(xad,5);if(a&2){var c;$g(c=ah())&&(b.createSloForm=c.first)}},standalone:!1,decls:30,vars:17,consts:[["form","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"vertical-centered"],[1,"edit-resource-panel"],["name","createSloForm"],[3,"error"],[1,
"edit-field"],["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"ngModelChange","required","bFocus","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","description",3,"ngModelChange","ngModel","disabled"],[3,"onCollectionUpdate","onValidation","isDisabled","collection"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=
r();I(0,"div",1)(1,"div",2)(2,"b-button",3);M("onAction",function(){t(c);return v(b.back())});K(3,"b-icon",4);J()()();I(4,"div",5)(5,"h2",6)(6,"span",7);Q(7,"Create a new SLO");J()();I(8,"div",8)(9,"form",9,0);K(11,"b-error-banner",10);I(12,"div",11)(13,"label",12);Q(14,"Name");J();I(15,"input",13);M("ngModelChange",function(d){t(c);return v(b.sloUnderEdit.name=d)});J()();I(16,"div",11)(17,"label",14);Q(18,"Description");J();I(19,"textarea",15);M("ngModelChange",function(d){t(c);return v(b.sloUnderEdit.description=
d)});Q(20,"        ");J()();I(21,"div",11)(22,"slo-elements-picker",16);M("onCollectionUpdate",function(d){t(c);return v(b.updateCollection(d))})("onValidation",function(d){t(c);return v(b.elementPickerIsValid=d)});J()();I(23,"p",17);Q(24," Access controls may be defined once the slo is created. ");J();I(25,"div",18)(26,"b-button",19);M("onAction",function(){t(c);return v(b.save())});Q(27," Save ");J();I(28,"b-button",20);M("onAction",function(){t(c);return v(b.revertChanges())});Q(29," Revert changes ");
J()()()()()}a&2&&(z(9),wg("show-errors",b.error),z(2),D("error",b.error),z(),wg("bv2-edit-resource-readonly",b.isSaving),z(3),D("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),z(),wg("bv2-edit-resource-readonly",b.isSaving),z(3),D("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),z(3),D("isDisabled",!1)("collection",b.sloUnderEdit.elements),z(4),D("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),z(2),D("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[aH,T0,xO,wy,Li,oy,py,Gy,vy,ty,CL,b2],encapsulation:2});var i5=function(){this.nextPanelId=1};i5.\u0275fac=function(a){return new (a||i5)};i5.\u0275prov=Sc({token:i5,factory:i5.\u0275fac,providedIn:"root"});var j5=function(){Z.apply(this,arguments);this.cdr=n(NA);this.paths=n(EN);this.bLocation=n(cI);this.$log=n(MA);this.analytics=n(CF);this.issueApi=n(BE);this.userApi=n(ID);this.bookmarkGroupsApi=n(RC);this.hotlistApi=n(ED);this.butterBar=n(iK);this.pageTitle=n(PY);this.dashboards=n(i5);this.routeParams=n(bL);this.appSearchState=n(mX);this.userAccess=n(jE);this.errorHandler=n(DK);this.statusMessages=n(JK);this.appEvents=n(nD);this.hotlistFridge=n(JD);this.activeSession=n(Es);this.issueFullFridge=n(EF);
this.currentUserBookmarksFridge=n(OD);this.ANALYTICS_CATEGORY="dashboard";this.userEmail=this.activeSession.getUserEmail();this.groupId=this.routeParams.groupId||null;this.panels=[];this.hotlistChoices=[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1};Y(j5,Z);j5.\u0275dir=Z.\u0275dir;
j5.prototype.ngOnInit=function(){var a=this;this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){yad(a,b);a.bookmarkGroup=b;a.cdr.detectChanges()}).catch(function(b){a.$log.warn("error loading bookmark group: ",b)});this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.dashboardPanels.moveDown.subscribe(function(b){zad(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){zad(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){zad(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){zad(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.appSearchState.clear()};var VJb=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=Aad(a,c))a.selectedIssues=b!=null?b:[]},UJb=function(a,b,c){b.focusedRowIndex=c;if(c!=null)for(a=l(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},Aad=function(a,b){return a.panels.find(function(c){return c.panelId===b})},Bad=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return a!==-1?a:void 0};g=j5.prototype;
g.fetchUserHotlists=function(){var a=this;Ge(PD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Pj(d,c)||(d&&Za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Mq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Mq(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Mq(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.loadHotlists=function(a){var b=this,c=new Set;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=l(d.value.hotlistId||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,this.hotlistMap[e]||c.has(e)||c.add(e)}c=l(c);for(a=c.next();!a.done;a=c.next())this.hotlistApi.get(a.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
g.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=l(this.panels);for(var e=b.next();!e.done;e=b.next()){e=l(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();Mq(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return GF(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){Mq(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var q=l(c.panels),u=q.next();!u.done;u=q.next()){u=l(u.value.selectedIssues);for(var A=u.next();!A.done;A=u.next()){var G=void 0;A.value.lastViewedTime=(G=k)!=null?G:null}}}).catch(function(k){for(var q=l(c.panels),u=q.next();!u.done;u=q.next()){u=l(u.value.selectedIssues);for(var A=u.next();!A.done;A=u.next())A=A.value,A.isRead=!!A.lastViewedTime&&A.lastViewedTime>=A.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
PMa(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};Mq(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h,b).then(function(k){for(var q=l([].concat(p(c.searchPanels),p(c.hotlistPanels))),u=q.next();!u.done;u=q.next()){u=u.value;var A=k;if(u.searchResults){u.searchResults=u.searchResults.clone();for(var G=0,H=l(u.searchResults.issues),N=H.next();!N.done;N=H.next()){N=N.value;if(A.affectedIssues[N.issueId]){var O=
A.affectedIssues[N.issueId];O=Ncb(O,A.componentMap[Number(Ua(O.snapshot).componentId)]);O.selected=N.selected;u.searchResults.issues[G]=O;u.resultsLoaded.emit([u.searchResults.issues[G]])}G++}}}k.errors&&k.errors.length?(q=Iya(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+q+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=FEc(c.statusMessages,h))?Mq(c.butterBar,k):Mq(c.butterBar,"Saved "+QMa(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this;return this.bookmarkGroupsApi.get(this.groupId).then(function(b){kE(a.userAccess,"admin","bookmarkGroups/"+b.bookmarkGroupId).then(function(c){a.isAdmin=c;a.cdr.detectChanges()});a.pageTitle.setTitle(b.name);return b},function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)})};var yad=function(a,b){a.panels=(b.item||[]).map(function(c,d){return Cad(a,c,d===0?0:void 0)})};
j5.prototype.removePanel=function(a){var b=this,c=Aad(this,a);c!=null&&(Mq(this.butterBar,"Saving changes...",0),a=Qj(this.bookmarkGroup),a.item=a.item.filter(function(d){return!Dad(b,c,d)}),Ead(this,a))};
var zad=function(a,b,c){b=Bad(a,b);if(b!==void 0){var d=a.panels[b];c=c(b);if(c>=a.panels.length||c<0)a.$log.warn("Trying to move panel "+d.panelId+" to "+c);else{b=Qj(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(h){return Dad(a,d,h)});f!==void 0&&(Qba(b.item,f,c),Ead(a,b))}}},Ead=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Fad(a,a.bookmarkGroup.item);Mq(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},Dad=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===b.resourceId;default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},Gad=function(a,b){return a.panels.find(function(c){return Dad(a,c,b)})},Cad=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";e=b.hotlistId;break;case "SAVED_SEARCH":d="SAVED_SEARCH";
e=b.savedSearchId;break;default:a.$log.warn("Unsupported item: "+b)}a=a.dashboards;b=a.nextPanelId;a.nextPanelId++;return{panelId:b,resourceId:e,type:d,focusedRowIndex:c!=null?c:null,selectedIssues:[]}},Fad=function(a,b){a.panels=b.map(function(c){var d;return(d=Gad(a,c))!=null?d:Cad(a,c)})};
j5.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)}):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.groupId}).then(b).catch(function(c){a.errorHandler.errorHandler(null,c)})};j5.prototype.editBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
j5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(j5)))(b||j5)}}();
j5.\u0275cmp=B({type:j5,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(Wg(F1,5),Wg(D1,5));if(a&2){var c;$g(c=ah())&&(b.searchPanels=c);$g(c=ah())&&(b.hotlistPanels=c)}},standalone:!1,features:[hh([NA]),kg],decls:10,vars:4,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"onSave","onCreateHotlist","onLoadHotlist","hotlistChoices","panels"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[1,"bv2-dashboard-title"],[3,"starMessage",
"unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-dashboard-title-text"],["type","button","aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"],[3,"focusedRowIndexChange",
"selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1,"Dashboard"),J(),I(2,"div",1)(3,"div",2),Q(4,"Bookmark groups dashboard"),J(),I(5,"b-dashboard-controls",3),M("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",
function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),J()(),I(6,"div",4),E(7,TJb,8,2,"div"),Dg(8,YJb,3,1,"div",null,Cg),J());a&2&&(z(5),D("hotlistChoices",b.hotlistChoices)("panels",b.panels),z(),D("bFocus",!0),z(),F(b.bookmarkGroup?7:-1),z(),Eg(b.panels))},dependencies:[J_,wS,F1,D1,xO,YA,cB],encapsulation:2});var k5=function(){};k5.\u0275fac=function(a){return new (a||k5)};k5.\u0275mod=Jf({type:k5});k5.\u0275inj=Tc({imports:[K_,rY,G1,E1,ZB,yO,cC]});var Had=["editBookmarkGroupItemsContainer"],Iad=["bookmarkGroupName"],xKb=function(a){return{"bv2-edit-resource-readonly":a}},zKb=function(a){return{displayText:"Admins",values:a}},yKb=function(a){return[a]},l5=function(){Z.call(this);var a=this;this.routeParams=n(bL);this.location=n(cI);this.activeSession=n(Es);this.butterBar=n(iK);this.accessPolicyApi=n($C);this.bookmarkGroupsApi=n(RC);this.hotlistApi=n(ED);this.paths=n(EN);this.appHistory=n(m2);this.pageTitle=n(PY);this.userAccess=n(jE);this.errorHandler=
n(DK);this.appEvents=n(nD);this.snackBar=n(fK);this.confirmationDialog=n(AK);this.checkBeforeExit=n(lS);this.cdr=n(NA,{self:!0});this.documentationLinks=n(lK);this.currentUserBookmarksFridge=n(OD);this.selectedTabIndex=0;this.accessPolicyUnderEdit=Xp();this.flattenedAccessPolicy=Xp();this.isAdmin=this.isArchiving=this.isUpdating=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.error="";this.selectedHotlistIds=[[]];this.userHotlists=
[];this.userSavedSearches=null;this.savedSearchChoices=[];var b=this.loadBookmarkGroup(this.routeParams.groupId),c=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);Jad(this);Kad(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){Jad(a)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));
this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){Kad(a)}))};Y(l5,Z);l5.\u0275dir=Z.\u0275dir;g=l5.prototype;g.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};g.back=function(){n2(this.appHistory)};
g.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};g.isSaving=function(){return this.isUpdating||this.isArchiving};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!Pj(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!Pj(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Qj(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[gua(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}),"hotlistId")];Lad(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Qj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Oi("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
g.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Oi("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){Mad(a,"archive")}})};
g.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Oi("Do you want to unarchive this bookmark group?"),onConfirm:function(){Mad(a,"unarchive")}})};
g.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});Nad(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Zp(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("BOOKMARK_GROUP",this.bookmarkGroup.bookmarkGroupId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=Yp(c);a.accessPolicyUnderEdit=Qj(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var Mad=function(a,b){var c=Qj(a.bookmarkGroup);b==="archive"?(a.snackBar.open('Archiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!0):(a.snackBar.open('Unarchiving bookmark group "'+a.bookmarkGroup.name+' ..."',"dismiss",{duration:0}),c.archived=!1);a.isArchiving=!0;a.bookmarkGroupsApi.update(c).then(function(d){b==="archive"?a.snackBar.open('Archived bookmark group "'+a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3}):a.snackBar.open('Unarchived bookmark group "'+
a.bookmarkGroup.name+'"."',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});Nad(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
l5.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){Nad(b,c);b.selectedHotlistIds=[gua(b.bookmarkGroup.item,"hotlistId")];Lad(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var Nad=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=Qj(a.bookmarkGroup)};
l5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=Yp(c);b.accessPolicyUnderEdit=Qj(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};l5.prototype.loadUserAccess=function(a){var b=this;return kE(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var Jad=function(a){Ge(PD(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},Kad=function(a){a.userSavedSearches=null;Ge(uoc(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;Lad(a);a.cdr.detectChanges()})},Lad=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=Oad(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
bKb=function(a,b){var c=Number(b);$a(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});Pad(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},dKb=function(a,b){$a(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});Lad(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},qKb=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return Fq.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:Gb(b.resourceType)}},lKb=function(a,b){for(var c=l(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$582:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$582=Vj(d);f&&!b.oldSelectionMap[e.id$jscomp$582]?(oKb(a,e.id$jscomp$582),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.id$jscomp$582}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$582]&&!f&&(Pad(a,e.id$jscomp$582),$a(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.id$jscomp$582}}(e)))}},oKb=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},Pad=function(a,b){Za(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},hKb=function(a,b){Oad(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){Lad(a)})},Oad=function(a){return a?gua(a,"savedSearchId"):[]},mKb=function(a,b){var c=b.name;a.snackBar.open("Creating hotlist "+c+"...","dismiss",{duration:0});a.hotlistApi.createHotlist(c).then(function(d){a.snackBar.open("Hotlist "+c+" created successfully.");a.userHotlists.push(d);b.successCallback(d);a.appEvents.hotlistChanged.next()}).catch(b.errorCallback)},nKb=function(a,b){return a.hotlistApi.get(b.hotlistId).then(function(c){a.userHotlists.push(c);
b.successCallback(c);return c},b.errorCallback)};l5.prototype.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";case "BOOKMARK_GROUP":return"(Bookmark group ID "+a.bookmarkGroupId+")";default:Gb(a.resourceType)}};l5.\u0275fac=function(a){return new (a||l5)};
l5.\u0275cmp=B({type:l5,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(Wg(Had,5),Wg(Iad,5),Wg(ZN,5,ff));if(a&2){var c;$g(c=ah())&&(b.editBookmarkGroupItemsContainer=c.first);$g(c=ah())&&(b.bookmarkGroupNameInput=c.first);$g(c=ah())&&(b.tabs=c)}},standalone:!1,features:[hh([NA]),kg],decls:9,vars:3,consts:[["bookmarkGroupName",""],["editBookmarkGroupItemsContainer",""],["savedSearchMenu","matMenu"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button",
"","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button","","color","primary",3,"disabled"],[1,"bv2-view"],["type","button","mat-button","","color","primary",3,"click","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"edit-resource-header-link","normal-link",3,"href"],["mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],
[3,"error"],[1,"edit-field",3,"ngClass"],["for","bookmark-group-name",1,"required"],[1,"edit-field-header"],["type","text","id","bookmark-group-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","bookmark-group-description"],["id","bookmark-group-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],[1,"edit-button-row"],["id","access","label","Access Control"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],
[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],[1,"edit-field"],["target","_blank",3,"href"],["for","edit-bookmark-group-items-container"],["role","region","aria-label","Selected items","id","edit-bookmark-group-items-container",1,"keep-focus-ring","edit-bookmark-group-items-container"],[1,"bv2-bookmark-item-chip"],[1,"edit-bookmark-group-edit-items-pane"],[1,"edit-bookmark-group-hotlist-picker"],["for","hotlist-picker-button"],[3,"onApply","onCreate","onLoad",
"selectedHotlistIds","choices","checkEditAcl"],[1,"edit-bookmark-group-hotlist-search"],["for","hotlist-search-input-box"],[3,"itemSelect","showGroups","allowStarring"],[1,"edit-bookmark-group-saved-search-picker"],[1,"bv2-saved-search-chip","b-chip","yellow","split"],[1,"edit-bookmark-group-none-select"],[3,"removeHotlist","id"],[1,"left","interactive",3,"href","matTooltip"],["role","button","tabindex","0",1,"right","interactive",3,"click","keydown.enter","keydown.space","matTooltip"],["for","add-from-saved-searches-button"],
["type","button","id","add-from-saved-searches-button","mat-button","","aria-describedby","select-from-saved-searches-button",1,"medium","primary",3,"matMenuTriggerFor"],["id","select-from-saved-searches-button"],"iconPositionEnd  svgIcon arrow-dropdown color primary".split(" "),["matMenuContent",""],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],[1,"edit-bookmark-group-view-items"],[3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],
["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(I(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),M("click",function(){return b.back()}),K(4,"mat-icon",7),J(),E(5,ZJb,2,1,"button",8),E(6,$Jb,2,1,"button",8),J()()(),I(7,"div",9),E(8,AKb,46,39),J());a&2&&(z(5),F(b.isAdmin&&!b.isArchived()?5:-1),z(),F(b.isAdmin&&b.isArchived()?6:-1),z(2),F(!b.isLoading&&b.bookmarkGroup.bookmarkGroupId?8:-1))},dependencies:[Mv,aB,YA,cB,PA,Tx,Ux,dO,ZN,$N,T0,hU,y_,dZ,Li,
oy,Gy,vy,UG,XG,VG,WG,YG,YO],styles:[".edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);min-height:20px;padding:4px 6px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-items-container[_ngcontent-%COMP%]   span.edit-bookmark-group-none-select[_ngcontent-%COMP%]{line-height:20px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);margin-top:-10px;width:600px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-picker[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-search[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-saved-search-picker[_ngcontent-%COMP%]{padding:10px;display:block}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-picker[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-hotlist-search[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%]   .edit-bookmark-group-saved-search-picker[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:24px;width:24px;margin:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);min-height:20px;padding:4px 6px 4px 8px;width:586px}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:0}.edit-resource-panel[_ngcontent-%COMP%]   .edit-bookmark-group-view-items[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:2px}.edit-bookmark-group-edit-items-pane[_ngcontent-%COMP%], .edit-bookmark-group-items-container[_ngcontent-%COMP%]{box-sizing:border-box}.edit-button-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:8px}/*# sourceMappingURL=edit_bookmark_group.css.map */"]});var Qad=["savedSearchNameInput"],FKb=function(a){return{"bv2-edit-resource-readonly":a}},HKb=function(a){return{displayText:"Admins",values:a}},GKb=function(a){return[a]},m5=function(){Z.call(this);var a=this;this.routeParams=n(bL);this.location=n(cI);this.accessPolicyApi=n($C);this.savedSearchApi=n(MD);this.paths=n(EN);this.appHistory=n(m2);this.butterBar=n(iK);this.pageTitle=n(PY);this.documentationLinks=n(lK);this.userAccess=n(jE);this.errorHandler=n(DK);this.snackBar=n(fK);this.confirmationDialog=
n(AK);this.cdr=n(NA,{self:!0});this.appEvents=n(nD);this.activeSession=n(Es);this.checkBeforeExit=n(lS);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=Xp();this.flattenedAccessPolicy=Xp();this.error="";var b=this.loadSavedSearch(this.routeParams.savedSearchId),c=this.loadUserAccess(this.routeParams.savedSearchId);this.loadAccessPolicy(this.routeParams.savedSearchId);
Promise.all([b,c]).then(function(){var d;(d=a.savedSearchName)==null||d.nativeElement.focus()});this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1))};Y(m5,Z);m5.\u0275dir=Z.\u0275dir;g=m5.prototype;g.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};
g.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=Qj(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
g.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=Yp(c);b.accessPolicyUnderEdit=Qj(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return kE(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.isSaving=function(){return this.isUpdating||this.isDeleting};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.back=function(){n2(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=Qj(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Qj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!Pj(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!Pj(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
g.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=Qj(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};g.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Oi("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Zp(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;this.snackBar.open("Saving access settings...","dismiss",{duration:0});this.accessPolicyApi.update("SAVED_SEARCH",this.savedSearch.searchId,b).then(function(c){a.snackBar.open("Access settings saved.","dismiss",{duration:0});a.flattenedAccessPolicy=Yp(c);a.accessPolicyUnderEdit=Qj(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);a.butterBar.showWarning(Xo(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Oi("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
g.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});rwc(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
m5.\u0275fac=function(a){return new (a||m5)};
m5.\u0275cmp=B({type:m5,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(Wg(Qad,5),Wg(ZN,5,ff));if(a&2){var c;$g(c=ah())&&(b.savedSearchName=c.first);$g(c=ah())&&(b.tabs=c)}},standalone:!1,features:[hh([NA]),kg],decls:9,vars:3,consts:[["savedSearchNameInput",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],["type","button","mat-button",
"","color","primary","matTooltip","Delete saved search",3,"disabled"],[1,"bv2-view"],[1,"edit-resource-header"],["type","button","mat-button","","color","primary","matTooltip","Delete saved search",3,"click","disabled"],[1,"edit-resource-header-link",3,"href"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel"],[3,"error"],[1,"edit-field",3,"ngClass"],["for","saved-search-name",1,"required"],[1,"edit-field-header"],
["type","text","id","saved-search-name","required","","aria-required","true",3,"ngModelChange","ngModel","disabled"],["for","saved-search-description"],["id","saved-search-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","bv2-edit-resource-readonly"],["for","saved-search-query"],[1,"edit-field-note"],[1,"edit-saved-search-query-container","codefont"],[1,"edit-button-row"],["id","access","label","Access Control"],["for","saved-search-acl-admins"],[3,"usersChange","isValid","users"],
["for","saved-search-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases","containerChips"],[1,"edit-field"],["target","_blank",3,"href"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","mat-stroked-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),M("click",function(){return b.back()}),K(4,"mat-icon",5),J(),E(5,BKb,2,1,"button",6),J()()(),I(6,"div",
7),E(7,CKb,3,0,"div",8),E(8,IKb,50,38),J());a&2&&(z(5),F(b.isAdmin?5:-1),z(2),F(b.isLoading||b.savedSearch?-1:7),z(),F(!b.isLoading&&b.savedSearch?8:-1))},dependencies:[Mv,aB,YA,cB,PA,Tx,Ux,dO,ZN,$N,T0,Li,oy,Gy,vy,YO],encapsulation:2});var Rad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rad,V);Rad.prototype.getSloId=function(){return Dl(this,1)};Rad.prototype.getSloId_asLegacyNumberOrString=function(){return zl(this,1)};Rad.prototype.setSloId=function(a){return Fm(this,1,a)};var Sad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sad,V);g=Sad.prototype;g.getAuthor=function(){return X(this,Kk,1)};g.setAuthor=function(a){W(this,Kk,1,a)};g.hasAuthor=function(){return nk(this,Kk,1)};g.getTimestamp=function(){return X(this,bl,2)};g.setTimestamp=function(a){return W(this,bl,2,a)};g.hasTimestamp=function(){return nk(this,bl,2)};g.getAdd=function(){return X(this,lp,3)};g.setAdd=function(a){return W(this,lp,3,a)};
g.getRemove=function(){return X(this,lp,4)};g.setRemove=function(a){return W(this,lp,4,a)};g.getAddMask=function(){return X(this,oo,5)};g.setAddMask=function(a){return W(this,oo,5,a)};g.getRemoveMask=function(){return X(this,oo,6)};g.setRemoveMask=function(a){return W(this,oo,6,a)};g.getFieldUpdatesList=function(){return Wk(this,Aoc,7,Fk())};var Tad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tad,V);var n5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,n5.messageId)};Y(n5,V);n5.prototype.getIt=function(){return X(this,Tad,1)};n5.prototype.setIt=function(a){return W(this,Tad,1,a)};n5.messageId="b.ListSloUpdatesResponse";var o5=function(){this.executor=n(zC);this.bCacheFactory=n(wD);this.sloHistories=this.bCacheFactory.get("slo_histories-second-level-cache")||this.bCacheFactory.create("slo_histories-second-level-cache",{capacity:25})};o5.prototype.get=function(a){var b=this.sloHistories.get(String(a));return b!==void 0?b:this.sloHistories.put(String(a),Uad(this,a))};
var Uad=function(a,b){var c=(new Rad).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:n5}).then(function(d){d=d.getIt();return{updates:Wk(d,Sad,1,Fk()).map(jAa)}})};o5.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};o5.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275prov=Sc({token:o5,factory:o5.\u0275fac,providedIn:"root"});var p5=function(){var a=n(Es),b=n(lS);Z.call(this);var c=this;this.routeParams=n(bL);this.bLocation=n(cI);this.appHistory=n(m2);this.butterBar=n(iK);this.pageTitle=n(PY);this.documentationLinks=n(lK);this.userAccess=n(jE);this.accessPolicyApi=n($C);this.sloApi=n(rG);this.sloUpdatesApi=n(o5);this.sloUpdatesService=n(i2);this.errorHandler=n(DK);this.matDialogService=n(tK);this.analytics=n(CF);this.confirmationDialogService=n(AK);this.appEvents=n(nD);this.editableAccessPolicy=Xp();this.flattenedAccessPolicy=
Xp();this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=this.elementPickerIsValid=this.isAdminInternal=this.isUpdating=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(c.validity).some(function(d){return!d})};this.subscriptions.add(mS(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=Rn("SLO",Vj(b));if(this.sloEnabled=a.isInternalSession())Vad(this,b),this.loadUserAccess(b),
this.loadAccessPolicy(b),Wad(this,b);this.alertState={getValue:function(){return c.editableCopy?c.editableCopy.alertState==="ON":!1},getSavedValue:function(){return c.slo?c.slo.alertState==="ON":!1},setValue:function(d){c.editableCopy&&(c.editableCopy.alertState=d?"ON":"OFF")}};this.currentUserEmail=a.getUserEmail()};Y(p5,Z);p5.\u0275dir=Z.\u0275dir;
p5.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.bLocation.hash(e,!0)};p5.prototype.ngOnInit=function(){this.bLocation.hash()==="access"&&(this.selectedTabIndex=1)};p5.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var Vad=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Qj(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
p5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=Yp(c);b.editableAccessPolicy=Qj(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Xad=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return v7c(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=p5.prototype;
g.loadUserAccess=function(a){var b=this;kE(this.userAccess,"admin",Rn("SLO",Vj(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!Pj(this.slo,this.editableCopy)};g.hasUnsavedAccessPolicyChanges=function(){return!Pj(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;Yad(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Pi([Oi("Any changes to the rules will need to be propagated to all impacted issues. Depending on the number of affected issues, this may take a few hours to fully fan-out and reindex."),Qi("br"),Qi("br"),Oi("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:Iz})};
var MKb=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Oi("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:Iz}):c()}},Yad=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c],f;if(f=d.metric===e.metric&&d.matcher===e.matcher)d=d.objective,e=e.objective,f=!d&&!e||!!d&&
!!e&&d.seconds===e.seconds;if(!f)return!1}return!0};
p5.prototype.save=function(){var a=this,b=this.editableCopy;Mq(this.butterBar,"Saving SLO ID "+b.sloId+"...");this.isUpdating=!0;this.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.name+'" saved.';Yad(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");Mq(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Qj(c);a.sloUpdatesApi.invalidateCache(a.slo.sloId);a.analytics.trackEvent("editSlo","update")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}).finally(function(){a.isUpdating=!1})};p5.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Oi("You are about to change the administrator privileges for this SLO. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){a.doSaveAccessPolicy()},onDismiss:Iz}):this.doSaveAccessPolicy()};
p5.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Zp(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;Mq(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){Mq(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=Yp(c);a.editableAccessPolicy=Qj(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(Xo(c),0)}).finally(function(){a.isUpdating=!1})};p5.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var Wad=function(a,b){Xad(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&Dk(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&Dk(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};g=p5.prototype;
g.isRevokingDirectAdmin=function(){if(Pj(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
g.revertMetadataChanges=function(){var a=this;Yad(this.slo.elements,this.editableCopy.elements)?this.editableCopy=Qj(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Pi([Oi("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=Qj(a.slo)},onDismiss:Iz})};g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Qj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating};
g.back=function(){n2(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdminInternal};g.showUpdateHistoryModal=function(){var a=this;Xad(this,this.slo.sloId).then(function(){a.matDialogService.open(a4,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("editSlo","viewHistory")})};p5.\u0275fac=function(a){return new (a||p5)};
p5.\u0275cmp=B({type:p5,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&Wg(ZN,5,ff);if(a&2){var c;$g(c=ah())&&(b.tabs=c)}},standalone:!1,features:[kg],decls:7,vars:2,consts:[["sloBasicsForm","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"bv2-view-loading"],[1,"edit-resource-header"],[1,"vertical-centered"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange",
"selectedIndex"],["id","basic","label","Basic Information"],[1,"edit-resource-panel","edit-slo-basics-form"],["name","sloBasicsForm"],[1,"edit-field"],["for","slo-name",1,"required"],[1,"edit-field-header"],["type","text","id","slo-name","name","slo-name",3,"ngModelChange","required","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","slo-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-field","permission-toggle",3,"bv2-edit-resource-readonly"],["id","bs-warning"],
[3,"onCollectionUpdate","onValidation","isDisabled","collection"],["id","bv2-slo-edit-buttons"],[1,"edit-button-row"],[1,"edit-button-group"],["title","View history for 'Basic Information'",3,"onAction"],["id","access","label","Access Control"],[1,"edit-resource-panel"],["name","accessControlForm","novalidate",""],["for","slo-acl-admins"],[1,"edit-field-note"],[3,"usersChange","isValid","users"],["for","slo-acl-readers"],[3,"usersChange","isValid","users","includeAliases","includeViewAliases"],["target",
"_blank",3,"href"],[1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],[3,"change","checked","disabled"],[1,"edit-field-help"],[1,"permission-toggle-help","edit-field-help"],["target","_blank","href","https://goto.google.com/buganizer-bugscope-slo-sync"],["format","fill","tooltip","Save any changes to the SLO",3,"onAction","disabled"],["tooltip","Discard any changes",3,"onAction","disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"disabled"],["tooltip",
"Unarchive the SLO and allow new usages",3,"disabled"],["format","fill","tooltip","Archive the SLO and prevent new usages",3,"onAction","disabled"],["tooltip","Unarchive the SLO and allow new usages",3,"onAction","disabled"],["format","fill",3,"onAction","disabled"],[3,"onAction"]],template:function(a,b){a&1&&(I(0,"div",1)(1,"div",2)(2,"b-button",3),M("onAction",function(){return b.back()}),K(3,"b-icon",4),J()()(),I(4,"div",5),E(5,JKb,2,0,"div",6),E(6,RKb,55,32,"div"),J());a&2&&(z(5),F(b.isLoading?
5:-1),z(),F(!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy?6:-1))},dependencies:[aH,wy,Li,oy,py,Gy,vy,ty,CL,dO,ZN,$N,YO,yM,CM,b2,ON],encapsulation:2});var q5=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=n(iL);this.issueFullFridge=n(EF);this.issuePicker=n(vR);this.snackBar=n(fK);this.imageUrls=n(qN);this.TEA_DARK=this.imageUrls.TEA_DARK;this.TEA_LIGHT=this.imageUrls.TEA_LIGHT;this.getStatus=function(b){return b.snapshot[0].status};this.id$=this.contextSensitiveRegistry.getIssueId();this.searchUrl$=this.id$.pipe(y(function(b){return{path:"/issues",params:{q:"blockedbyid:"+b}}}));this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));
this.blockingIds$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(fg(function(b){return a.issueFullFridge.watchSet(b)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(y(function(b){return b.filter(pm)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(y(function(b){return b.map(function(c){return String(c.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(y(function(b){return b.filter(function(c){return fya(c)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(y(function(b){return b.map(function(c){return String(c.issueId)})}));this.thinking$=this.issueFullFridge.thinking$;this.getMenuItems=function(b){return[{type:"action",label:"Remove this relationship",action:function(){Zad(a,b)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(b){var c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(a.id$),2);c=d.yieldResult;return c==null?d.return():x(d,a.issueFullFridge.addBlocking(c,
b).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Xo(b)||"Error with network request","close",{panelClass:"error"})}};Y(q5,Z);q5.\u0275dir=Z.\u0275dir;var SKb=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},Zad=function(a,b){var c;w(function(d){if(d.nextAddress==1)return x(d,Ge(a.id$),2);c=d.yieldResult;return c==null?d.return():x(d,a.issueFullFridge.removeBlocking(c,[String(b)]).catch(a.gotErr),0)})};
q5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(q5)))(b||q5)}}();
q5.\u0275cmp=B({type:q5,selectors:[["ng-component"]],standalone:!1,features:[kg],decls:5,vars:6,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",1,"light-only",3,"src"],["aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/block-issue","target","_blank",1,"nowrap"],["type","button","mat-flat-button","","color","primary","matTooltip",
"Add something this issue is blocking",1,"small",3,"click"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"],[1,"section-heading","muted"],[1,"muted","margin-bottom"],[3,"issueIds","menuItemFactory"],[1,"unstyled","reverse-padded-sides"],[1,"padded-x",3,"routerLink"],[1,"right"],["type","button","mat-icon-button","","aria-label","",1,"invisible"]],template:function(a,b){a&1&&(I(0,"section",0),E(1,fLb,2,1),S(2,"async"),J(),E(3,gLb,
2,0,"aside",1),S(4,"async"));if(a&2){var c;z();F((c=T(2,2,b.blockingIds$))?1:-1,c);z(2);F(T(4,4,b.thinking$)?3:-1)}},dependencies:[FA,PA,Tx,Ux,YA,cB,ON,vU,Qv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 0;margin-right:0}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}b-issues-table[_ngcontent-%COMP%] + .section-heading[_ngcontent-%COMP%]{margin-top:16px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:240px;min-height:230px}\n/*# sourceMappingURL=issue_blocking.css.map */"],
changeDetection:0});var r5=function(){};r5.\u0275fac=function(a){return new (a||r5)};r5.\u0275mod=Jf({type:r5});r5.\u0275inj=Tc({imports:[ZB,sA,SJ,Ly,My,$B,fO,cC,TQ,WJ,XH,QN,QW]});var s5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,s5.messageId)};Y(s5,V);s5.prototype.getIssueId=function(){return Dl(this,1)};s5.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};s5.prototype.getIssueId_asString=function(){return sl(this,1)};s5.prototype.setIssueId=function(a){return Vl(this,1,a)};s5.messageId="b.MonorailIssueRedirectRequest";var t5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,t5.messageId)};Y(t5,V);t5.prototype.getUrl=function(){return X(this,rz,1)};t5.prototype.setUrl=function(a){return W(this,rz,1,a)};t5.prototype.hasUrl=function(){return nk(this,rz,1)};t5.messageId="b.MonorailIssueRedirectResponse";var u5=function(){this.executor=n(yC)},$ad=function(a,b){b=(new s5).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:t5}).pipe(y(function(c){return rxa(c.getUrl())}),Pf(function(){return Ce(null)}))};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275prov=Sc({token:u5,factory:u5.\u0275fac,providedIn:"root"});var v5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,v5.messageId)};Y(v5,V);v5.prototype.getResponse=function(){return X(this,Oz,1)};v5.prototype.getReadonlyResponse=function(){return nr(this,Oz,1)};v5.prototype.getMutableResponse=function(){return Du(this,Oz,1)};v5.prototype.setResponse=function(a){return W(this,Oz,1,a)};v5.messageId="b.PiperCreateWorkspaceAndChangeWrappedResponse";var abd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,abd.messageId)};Y(abd,V);abd.prototype.getResponsesList=function(){return Wk(this,Tgc,1,Fk())};abd.messageId="b.PiperReadFilesWrappedResponse";var w5=function(){this.executor=n(zC)},cbd=function(a,b){return bbd(a,{paths:[b]}).then(function(c){var d,e;return{content:(d=c.content.get(b))!=null?d:"",revisionNumber:(e=c.revisionNumber.get(b))!=null?e:0}})},bbd=function(a,b){b=jLb(b);return a.executor.post({url:"/action/piper/readFiles",body:b,responseConstructor:abd}).then(kLb)},dbd=function(a,b){var c=new Rgc;b.citcAlias&&Rl(c,3,b.citcAlias);if(b.changeDescription){var d=c.setDescription;var e=b.changeDescription;e=(new Nz).setText(e.text);
d.call(c,e)}b=b.files.map(pLb);sn(c,4,b);return a.executor.post({url:"/action/piper/createWorkspaceAndChange",body:c,responseConstructor:v5}).then(lLb)};w5.\u0275fac=function(a){return new (a||w5)};w5.\u0275prov=Sc({token:w5,factory:w5.\u0275fac,providedIn:"root"});var x5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(x5,V);x5.prototype.setModelId=function(a){Lk(this,1,a)};var ebd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ebd,V);g=ebd.prototype;g.getOptions=function(){return X(this,x5,1)};g.setOptions=function(a){return W(this,x5,1,a)};g.hasOptions=function(){return nk(this,x5,1)};g.getInput=function(){return Oh(this,2)};g.setInput=function(a){return Lk(this,2,a)};var vs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vs,V);vs.prototype.getContent=function(){return Oh(this,1)};vs.prototype.setContent=function(a){return Lk(this,1,a)};vs.prototype.getScore=function(){return Pm(this,2)};vs.prototype.setScore=function(a){return on(this,2,a)};var y5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(y5,V);y5.prototype.setModelId=function(a){Lk(this,4,a)};var z5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,z5.messageId)};Y(z5,V);z5.prototype.getResponse=function(){return X(this,y5,1)};z5.prototype.getReadonlyResponse=function(){return nr(this,y5,1)};z5.prototype.getMutableResponse=function(){return Du(this,y5,1)};z5.prototype.setResponse=function(a){return W(this,y5,1,a)};z5.messageId="b.GoosePredictionGenerateTextWrappedResponse";var A5=function(){this.executor=n(zC)};
A5.prototype.generate=function(a){var b=(new ebd).setInput(a.input);if(a.options){var c=new x5;a.options.modelId!==void 0&&c.setModelId(a.options.modelId);a.options.outputCount!==void 0&&Pl(c,2,a.options.outputCount);a.options.temperature!==void 0&&tq(c,3,Hb(a.options.temperature));a.options.maxDecoderSteps!==void 0&&Pl(c,4,a.options.maxDecoderSteps);a.options.eosId!==void 0&&Mc(c,5,a.options.eosId,Rb);b.setOptions(c)}return this.executor.post({url:"/action/goose/prediction/generateText",body:b,responseConstructor:z5}).then(qLb)};
A5.\u0275fac=function(a){return new (a||A5)};A5.\u0275prov=Sc({token:A5,factory:A5.\u0275fac,providedIn:"root"});var fbd=/:(\w+):/,gbd=/(\/\/depot\/)?(google3\/[A-Za-z0-9\.\/_-]+)/,B5=function(){this.piperApi=n(w5);this.gooseApi=n(A5);this.issueFullFridge=n(EF);this.eventsForIssueFridge=n(CE);this.domSafe=n(rL);this.analytics=n(CF)},hbd=function(a,b){return Ge(a.issueFullFridge.watch(b,{trustUncertainMemory:!0}).pipe(Ve(Tk),Zf()))},ibd=function(a,b){return Ge(a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(y(function(c){if(!c)return"";var d,e;return(e=(d=c.events.slice(0,1)[0])==null?void 0:d.unlinkifiedComment)!=
null?e:""}),Zf()))},jbd=function(a){return a.split(/^@@$/m).map(function(b){return b.trim()}).filter(function(b){return b.length>0}).map(function(b){return{lines:b.split("\n")}})};
B5.prototype.patch=function(a,b,c,d,e){var f=this;a={sourceFile:{sourceFileId:{depotPath:a,revisionNumber:b+1},fileOperation:b===0?2:7},content:rLb(d)};c={changeDescription:{text:e+"\n\nGenerated by #bug2code\n\nBUG="+c+"\nBUG2CODE="+c},citcAlias:"bug2code_fix_"+Date.now(),files:[a]};return dbd(this.piperApi,c).then(function(h){var k=h.changeNumber;h="https://cider.corp.google.com/?createWs="+h.workspaceName.match(fbd)[1]+"&patchCl="+k;f.domSafe.openInNewTab(h);f.analytics.trackEvent("bug2Code","patchCL")})};
B5.prototype.executePrompt=function(a){return this.gooseApi.generate({input:a,options:{modelId:"goose_v3p5_s_128k_8k_latest",temperature:0,maxDecoderSteps:4E3}})};
var kbd=function(a){return(a=a.match(gbd))?"//depot/"+a[2]:""},lbd=function(a,b){return"\u25a0 diff --goose --from=BASE --to=CURRENT "+a+"\n    "+b+"\n\u25a1 What are the key changes in the code diff?\n\u25a0 critique --cl_descriptjion\n"},mbd=function(a,b,c,d){var e;a=(e=a==null?void 0:a.snapshot[0].title.trim())!=null?e:"";return"\u25a0 cat "+c+"\n    "+d+"\n\u25a0 Bug b/2234234 title\n    "+a+"\n\u25a0 Bug b/2234234 description\n    "+b.trim()+'\n\u25a0 critique --cl_description --cl_number=541707606\nAutomated fix for "'+
a+'"\n\u25a1 What is the code diff needed to fix the bug?\n\u25a0 patch --goose '+c+"\n@@\n"};B5.\u0275fac=function(a){return new (a||B5)};B5.\u0275prov=Sc({token:B5,factory:B5.\u0275fac,providedIn:"root"});var C5=function(){};C5.\u0275fac=function(a){return new (a||C5)};C5.\u0275cmp=B({type:C5,selectors:[["change-block"]],hostVars:2,hostBindings:function(a){a&2&&wg("codefont",!0)},inputs:{lines:"lines"},standalone:!1,decls:3,vars:0,consts:[[1,"change"],[1,"line",3,"remove","add"],[1,"line"]],template:function(a,b){a&1&&(I(0,"div",0),Dg(1,xLb,2,5,"div",1,Cg),J());a&2&&(z(),Eg(b.lines))},styles:["[_nghost-%COMP%]{border:1px solid var(--grey-300);border-radius:8px;display:block;padding:8px 4px;overflow:auto}[_nghost-%COMP%]:not(:last-child){margin-bottom:12px}[_nghost-%COMP%]   .change[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{padding:0 12px;text-wrap:nowrap;white-space:pre}[_nghost-%COMP%]   .change[_ngcontent-%COMP%]   .line.add[_ngcontent-%COMP%]{background-color:#ceead6;background-color:var(--diff-added)}[_nghost-%COMP%]   .change[_ngcontent-%COMP%]   .line.remove[_ngcontent-%COMP%]{background-color:#fad2cf;background-color:var(--diff-removed)}"]});var D5=function(){this.bug2codeService=n(B5);this.chosenFilePath=new LA;this.filePath="";this.isInputValid=!1};D5.prototype.updateFilePath=function(a){this.filePath=a;this.isInputValid=!!kbd(a)};D5.prototype.submit=function(){var a=kbd(this.filePath);this.chosenFilePath.emit(a)};D5.\u0275fac=function(a){return new (a||D5)};
D5.\u0275cmp=B({type:D5,selectors:[["b-bug2code-file-path-input"]],outputs:{chosenFilePath:"chosenFilePath"},standalone:!1,decls:8,vars:2,consts:[["for","filePathInput"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","name","filePathInput",3,"ngModelChange","ngModel"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(I(0,"label",0),Q(1," Please provide file path "),J(),I(2,"mat-form-field",1)(3,"mat-label"),Q(4," Enter file path (starting with either //depot/... or google3/...) "),
J(),I(5,"input",2),M("ngModelChange",function(c){return b.updateFilePath(c)}),J()(),I(6,"button",3),M("click",function(){return b.submit()}),Q(7," Continue\n"),J());a&2&&(z(5),D("ngModel",b.filePath),z(),D("disabled",!b.isInputValid))},dependencies:[Li,oy,vy,PA,Tx,YM,Xy,Qy,$M,ez],styles:['label[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{--mat-form-field-container-height:52px;--mat-form-field-filled-label-display:block;--mat-form-field-container-vertical-padding:14px;--mat-form-field-filled-with-label-container-padding-top:22px;--mat-form-field-filled-with-label-container-padding-bottom:6px}mat-form-field[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{margin-top:10px}']});var BLb=function(a){return[a]},E5=function(){this.bug2codeService=n(B5);this.piperApi=n(w5);this.error=""};E5.prototype.ngOnInit=function(){this.issueDetails=nbd(this)};E5.prototype.updateFilePath=function(a){var b=this,c,d,e;return w(function(f){switch(f.nextAddress){case 1:return te(f,2),b.fileDetails=obd(b,a),c=b,d=c.getOutputData,x(f,b.fileDetails,5);case 5:return x(f,d.call(c,f.yieldResult),4);case 4:b.outputData=f.yieldResult;uu(f,0);break;case 2:e=xe(f),b.error=FLb(e),ze(f)}})};
var ALb=function(a,b){var c,d,e,f,h,k,q,u,A,G;return w(function(H){switch(H.nextAddress){case 1:return a.fileDetails?x(H,a.fileDetails,2):H.return();case 2:return c=H.yieldResult,d=c.filePath,e=c.revision,f=c.content,h=b,k=h.diff,q=h.description,te(H,3),u=a.bug2codeService,A=u.patch,x(H,a.issueDetails,6);case 6:return x(H,A.call(u,d,e,H.yieldResult.issue.issueId,wLb(f,k),q),5);case 5:uu(H,0);break;case 3:G=xe(H),a.error=FLb(G),ze(H)}})};
E5.prototype.restart=function(){this.error="";this.outputData=this.fileDetails=void 0};var obd=function(a,b){var c;return w(function(d){if(d.nextAddress==1)return x(d,cbd(a.piperApi,b),2);c=d.yieldResult;return d.return({filePath:b,content:c.content,revision:c.revisionNumber})})},nbd=function(a){var b,c,d;return w(function(e){return e.nextAddress==1?(b=hbd(a.bug2codeService,a.issueId),c=ibd(a.bug2codeService,a.issueId),x(e,b,2)):e.nextAddress!=3?(d=e.yieldResult,x(e,c,3)):e.return({issue:d,description:e.yieldResult})})};
E5.prototype.getOutputData=function(a){var b=this,c,d;return w(function(e){return e.nextAddress==1?x(e,pbd(b,a),2):e.nextAddress!=3?(c=e.yieldResult,d=jbd(c),x(e,b.executePrompt(lbd(a.filePath,c)),3)):e.return({diff:c,diffBlocks:d,description:e.yieldResult})})};var pbd=function(a,b){var c,d,e,f;return w(function(h){return h.nextAddress==1?x(h,a.issueDetails,2):h.nextAddress!=3?(c=h.yieldResult,d=c.issue,e=c.description,f=mbd(d,e,b.filePath,b.content),x(h,a.executePrompt(f),3)):h.return("@@\n"+h.yieldResult)})};
E5.prototype.executePrompt=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return x(d,b.bug2codeService.executePrompt(a),2);c=d.yieldResult;if(c.outputBlocked)throw Error("Ff");return d.return(c.outputs[0])})};E5.\u0275fac=function(a){return new (a||E5)};
E5.\u0275cmp=B({type:E5,selectors:[["b-bug2code-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,decls:4,vars:1,consts:[[1,"loading"],[1,"error"],["type","button","mat-flat-button","","color","primary",1,"retry",3,"click"],[1,"gmat-body-2"],[3,"lines"],[1,"cl-description",3,"lines"],["type","button","mat-flat-button","","color","primary",1,"patch-changelist",3,"click"],["alt","loading","src","https://www.gstatic.com/devnotify/typing_animation_3x.gif"],[3,"chosenFilePath"]],template:function(a,
b){a&1&&E(0,yLb,4,1)(1,CLb,9,3)(2,DLb,4,0,"div",0)(3,ELb,1,0,"b-bug2code-file-path-input");a&2&&F(b.error?0:b.outputData?1:b.fileDetails?2:3)},dependencies:[PA,Tx,C5,D5],styles:["img[_ngcontent-%COMP%]{border-radius:16px;height:16px;width:24px}.loading[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:32px 16px;gap:8px}i[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.8125rem}.gmat-body-2[_ngcontent-%COMP%]{margin-bottom:8px}.error[_ngcontent-%COMP%]{margin-bottom:8px;color:#c5221f;color:var(--bad-text)}[_nghost-%COMP%]   change-block.cl-description[_ngcontent-%COMP%]     .line{white-space:pre-line}\n/*# sourceMappingURL=bug2code_sidebar.css.map */"]});var qbd=function(){var a=this;this.llmResponseService=n(LT);this.dataReady=new LA;this.citations$=this.llmResponseService.llmCitations$;this.llmResponseMarkdown$=this.llmResponseService.llmResponseMarkdown$.pipe(hg(function(){a.dataReady.emit()}))};qbd.\u0275fac=function(a){return new (a||qbd)};
qbd.\u0275cmp=B({type:qbd,selectors:[["llm-response"]],outputs:{dataReady:"dataReady"},standalone:!1,decls:2,vars:3,consts:[[3,"content"],[1,"heading-xs","padded-s-bottom"],[1,"citation-item","flex-kids-x","align-items-center","padded-s-bottom"],["svgIcon","public",1,"icon-xs","padded-s-right"],["alt","Icon for this cited website.",1,"icon-xs","padded-s-right",3,"src"],["target","_blank","aria-label","A citation URL for Duckie's response.",3,"href"]],template:function(a,b){a&1&&(E(0,LLb,3,4),S(1,
"async"));if(a&2){var c;F((c=T(1,1,b.llmResponseMarkdown$))?0:-1,c)}},dependencies:[aB,JO,Qv],encapsulation:2});var MLb=function(a){return{issuesAndChangelists:a}},WLb=function(a,b){return b.issue.issueId},rbd=/(\w+\.)+\w*Exception/,F5=function(){var a=this;this.contextSensitiveRegistry=n(iL);this.issueFullFridge=n(EF);this.issueFridge=n($E);this.eventsForIssueFridge=n(CE);this.analytics=n(CF);this.imageUrls=n(qN);this.issueAndChangelistDetailsService=n(KT);this.sectionTitle="Related fixed issues";this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b,
{trustUncertainMemory:!0})}),cg({bufferSize:1,refCount:!0}));this.events$=this.issueId$.pipe(fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){return(b==null?void 0:b.events)||[]}),cg({bufferSize:1,refCount:!0}));this.firstEvent$=this.events$.pipe(y(function(b){return b.length>0?b[0]:void 0}),cg({bufferSize:1,refCount:!0}));this.exceptionFirstLine$=this.firstEvent$.pipe(y(function(b){return b==null?void 0:b.unlinkifiedComment}),y(function(b){if(b)return b=b.match(rbd)||[],b.length>
0?b[0]:void 0}));this.relatedFixedOutsideComponent$=this.exceptionFirstLine$.pipe(fg(function(b){return b?a.issueFridge.watchMany({filter:b+" (status:fixed|status:verified) cl:any type:bug",pageSize:3,sort:"modified_time:desc"}):Ce({results:[]})}),y(function(b){return b.results||[]}),fg(function(b){return EUc(a.issueAndChangelistDetailsService,b)}));this.relatedFixedInComponent$=Je([this.issue$,this.exceptionFirstLine$]).pipe(fg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&b.snapshot&&
b.snapshot.length&&c?a.issueFridge.watchMany({filter:c+" (status:fixed|status:verified) cl:any componentId:"+b.snapshot[0].componentId+"+",pageSize:3,sort:"modified_time:desc"}):Ce({results:[]})}),y(function(b){return b.results||[]}),fg(function(b){return EUc(a.issueAndChangelistDetailsService,b)}));this.issuesAndChangelists$=this.relatedFixedInComponent$.pipe(fg(function(b){return b&&b.length===3?Ce(b):a.relatedFixedOutsideComponent$.pipe(y(function(c){return ik([].concat(p(b!=null?b:[]),p(c!=null?
c:[])),function(d){return d.issue.issueId}).slice(0,3)}))}));this.Number=Number;this.hovercardConfig={showDelay:250,hideDelay:250,position:[zBc,yBc],triggerKey:[]};this.BUGANIZER_LOGO_URL=this.imageUrls.LOGO_LIGHT;this.issueAnalyticsLabel="relatedIssue";this.changelistAnalyticsLabel="relatedChangelist"};F5.prototype.trackHover=function(a){this.analytics.trackEvent("helpMeFix","hover",a)};F5.prototype.trackClick=function(a){this.analytics.trackEvent("helpMeFix","click",a)};
F5.\u0275fac=function(a){return new (a||F5)};
F5.\u0275cmp=B({type:F5,selectors:[["related-fixed-issues"]],standalone:!1,decls:4,vars:3,consts:[["issuesAndChangelistsTemplate",""],["issueHovercard","onedevHovercard"],["cardBody",""],["changelistCard","onedevHovercard"],[1,"heading-xs","margin-s-bottom"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"margin-s-bottom"],[1,"issue-row","flex-kids-x","gap-s","align-items-center"],["height","24","width","24","alt","Buganizer logo",3,"src"],["target","_blank","aria-label","View issue",1,"flex-1",
"hover-link","line-clamp-2","margin-xs-y",3,"onedevHovercardShown","click","href","onedevHovercardTrigger","onedevHovercardConfig"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId"],[1,"changelist-row","flex-kids-x","gap-s","align-items-center","border-left"],["svgIcon","critique-logo",1,"icon-xs"],["target","_blank","aria-label","View changelist",1,"flex-1","muted","hover-link","line-clamp-2","margin-xs-y",3,"onedevHovercardShown","click","href",
"onedevHovercardTrigger","onedevHovercardConfig"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){a&1&&(E(0,OLb,1,1),S(1,"async"),C(2,XLb,2,0,"ng-template",null,0,nh));if(a&2){var c;F((c=T(1,1,b.issuesAndChangelists$))?0:-1,c)}},dependencies:[Pv,aB,fJ,gJ,lJ,hJ,eP,$L,Qv],styles:[".issue-row[_ngcontent-%COMP%]{min-height:38px}.changelist-row[_ngcontent-%COMP%]{margin-left:12px;padding-left:8px}"]});var YLb=function(a){return{issuesAndChangelists:a}},hMb=function(a,b){return b.issue.issueId},G5=function(){var a=this;this.helpMeFixService=n(xT);this.analytics=n(CF);this.imageUrls=n(qN);this.issueAndChangelistDetailsService=n(KT);this.sectionTitle="Similar fixed issues";this.issuesAndChangelists$=this.helpMeFixService.similarFixedIssues$.pipe(fg(function(b){return EUc(a.issueAndChangelistDetailsService,b)}),y(function(b){return b.slice(0,3)}));this.Number=Number;this.hovercardConfig={showDelay:250,
hideDelay:250,position:[zBc,yBc],triggerKey:[]};this.BUGANIZER_LOGO_URL=this.imageUrls.LOGO_LIGHT;this.issueAnalyticsLabel="similarIssue";this.changelistAnalyticsLabel="similarChangelist"};G5.prototype.trackHover=function(a){this.analytics.trackEvent("helpMeFix","hover",a)};G5.prototype.trackClick=function(a){this.analytics.trackEvent("helpMeFix","click",a)};G5.\u0275fac=function(a){return new (a||G5)};
G5.\u0275cmp=B({type:G5,selectors:[["similar-fixed-issues"]],standalone:!1,decls:4,vars:3,consts:[["issuesAndChangelistsTemplate",""],["issueHovercard","onedevHovercard"],["cardBody",""],["changelistCard","onedevHovercard"],[1,"heading-xs","margin-s-bottom"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[1,"margin-s-bottom"],[1,"issue-row","flex-kids-x","gap-s","align-items-center"],["height","24","width","24","alt","Buganizer logo",3,"src"],["target","_blank","aria-label","View issue",1,"flex-1",
"hover-link","line-clamp-2","margin-xs-y",3,"onedevHovercardShown","click","href","onedevHovercardTrigger","onedevHovercardConfig"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId"],[1,"changelist-row","flex-kids-x","gap-s","align-items-center","border-left"],["svgIcon","critique-logo",1,"icon-xs"],["target","_blank","aria-label","View changelist",1,"flex-1","muted","hover-link","line-clamp-2","margin-xs-y",3,"onedevHovercardShown","click","href",
"onedevHovercardTrigger","onedevHovercardConfig"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){a&1&&(E(0,$Lb,1,1),S(1,"async"),C(2,iMb,2,0,"ng-template",null,0,nh));if(a&2){var c;F((c=T(1,1,b.issuesAndChangelists$))?0:-1,c)}},dependencies:[Pv,aB,fJ,gJ,lJ,hJ,eP,$L,Qv],styles:[".issue-row[_ngcontent-%COMP%]{min-height:38px}.changelist-row[_ngcontent-%COMP%]{margin-left:12px;padding-left:8px}"]});var sbd=["container"],H5=function(){Z.apply(this,arguments);this.appEvents=n(nD);this.analytics=n(CF);this.activeSession=n(Es);this.domSafe=n(rL);this.helpMeFixService=n(xT);this.contextSensitiveRegistry=n(iL);this.issueCategoryConfig$=this.helpMeFixService.currentConfig$.pipe(gg(this.destroyed$),cg({bufferSize:1,refCount:!0}));this.headerText$=this.issueCategoryConfig$.pipe(y(function(a){var b;return(b=a==null?void 0:a.customBranding)!=null?b:"Help me fix"}));this.isLlmDisplayModulePresent$=this.issueCategoryConfig$.pipe(y(function(a){return a==
null?void 0:a.displayedModules.includes(0)}));this.isLlmLoading$=new tj(!0);this.isLlmDataReady$=Je([this.isLlmDisplayModulePresent$,this.isLlmLoading$]).pipe(y(function(a){var b=l(a);a=b.next().value;b=b.next().value;return!a||!b}),cg({bufferSize:1,refCount:!0}));this.containerScrolled=this.votedThumbsDown=this.votedThumbsUp=!1;this.allComponentsOptInLink="https://groups.google.com/a/google.com/g/help-me-fix-opt-in-all-components/members";this.isEnabledOnAllComponents=Yr(this.activeSession,"enableHelpMeFixSidebarOnAllComponents");
this.hasDismissedBanner=tk("isHMFAllComponentsOptInBannerDismissed")();this.IssueCategory=DTc;this.DisplayModule=ETc;this.issueId$=this.contextSensitiveRegistry.getIssueId();this.isSidebarExpanded=!1};Y(H5,Z);H5.\u0275dir=Z.\u0275dir;
H5.prototype.ngOnInit=function(){var a=this,b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,Ge(a.helpMeFixService.currentConfig$),2);if(f.nextAddress!=3)return b=f.yieldResult,x(f,Ge(a.issueId$),3);c=f.yieldResult;a.analytics.trackEvent("helpMeFix","open","sidebarOpened-"+((d=b)==null?void 0:d.issueCategory));a.analytics.trackEvent("helpMeFix","openOnIssueIdJson",JSON.stringify({issueCategory:(e=b)==null?void 0:e.issueCategory,issueId:c}));ze(f)})};
H5.prototype.closeSidebar=function(){var a=this,b,c;return w(function(d){if(d.nextAddress==1)return a.appEvents.closeHelpMeFixSidebar.next(),x(d,Ge(a.helpMeFixService.currentConfig$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","close","sidebarClosed-"+((c=b)==null?void 0:c.issueCategory));ze(d)})};
var xMb=function(a){var b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,Ge(a.helpMeFixService.currentConfig$),2);if(f.nextAddress!=3)return b=f.yieldResult,c=Number,x(f,Ge(a.issueId$),3);d=c(f.yieldResult);a.votedThumbsUp=!0;a.analytics.trackEvent("helpMeFix","thumbsUpOnIssueIdJson",JSON.stringify({issueCategory:(e=b)==null?void 0:e.issueCategory,issueId:d}));ze(f)})},yMb=function(a){var b,c,d,e;return w(function(f){if(f.nextAddress==1)return x(f,Ge(a.helpMeFixService.currentConfig$),
2);if(f.nextAddress!=3)return b=f.yieldResult,c=Number,x(f,Ge(a.issueId$),3);d=c(f.yieldResult);a.votedThumbsDown=!0;a.analytics.trackEvent("helpMeFix","thumbsDownOnIssueIdJson",JSON.stringify({issueCategory:(e=b)==null?void 0:e.issueCategory,issueId:d}));ze(f)})},oMb=function(a){setTimeout(function(){a.isLlmLoading$.next(!1)})};H5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(H5)))(b||H5)}}();
H5.\u0275cmp=B({type:H5,selectors:[["help-me-fix-sidebar"]],viewQuery:function(a,b){a&1&&Wg(sbd,5);if(a&2){var c;$g(c=ah())&&(b.container=c.first)}},standalone:!1,features:[kg],decls:17,vars:12,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between","padded","padded-s-bottom"],[1,"flex-kids-x","align-items-center"],["svgIcon","spark_24px"],[1,"heading-m","margin-s-left"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","toggle expand sidebar",
1,"expand-button",3,"click","matTooltip"],["svgIcon","expand_all_24px"],["svgIcon","collapse_all_24px"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[1,"padded-x","padded-bottom"],[1,"no-issue-selected"],[1,"card"],[1,"italic"],[1,"card",3,"hidden"],[1,"margin-bottom"],["type","button","mat-button","","aria-label","Dismiss help me fix banner",3,"click"],["type","button","mat-button","","aria-label",
"Navigate to group",3,"click"],[3,"dataReady"],[3,"issueId"],[1,"feedback","flex-kids-y"],[1,"flex-kids-x","align-items-center","justify-flex-end","gap-s"],[1,"flex-kids-x","gap-xs"],["type","button","mat-icon-button","","aria-label","vote this was helpful",1,"small",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","vote this was not helpful",1,"small",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],[1,"flex-kids-x","gap-s",
"justify-flex-end"],[1,"disclaimer","type-s","muted","border-top","margin-s-top","padded-s-top"],["href","http://go/code-ai-policy","target","_blank",1,"hover-link"],["href","http://go/help-me-fix-feedback","target","_blank"],[1,"opt-in-footnote","margin-s-top"],["target","_blank",3,"href"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1,0);M("scroll",function(){t(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});I(2,"header",2)(3,"div",3);K(4,"mat-icon",4);I(5,
"span",5);Q(6);S(7,"async");J()();I(8,"div",6)(9,"button",7);M("click",function(){t(c);b.isSidebarExpanded=!b.isSidebarExpanded;return v()});E(10,jMb,1,0,"mat-icon",8)(11,kMb,1,0,"mat-icon",9);J();I(12,"button",10);M("click",function(){t(c);return v(b.closeSidebar())});K(13,"mat-icon",11);J()()();E(14,AMb,11,11,"div",12);S(15,"async");Ag(16,BMb,2,0,"div",13);J()}if(a&2){var d;wg("expanded",b.isSidebarExpanded);z(2);wg("elevated",b.containerScrolled);z(4);ch(T(7,8,b.headerText$));z(3);D("matTooltip",
b.isSidebarExpanded?"Collapse sidebar":"Expand sidebar");z();F(b.isSidebarExpanded?11:10);z(4);F((d=T(15,10,b.issueCategoryConfig$))?14:16,d)}},dependencies:[E5,aB,ON,PA,Tx,Ux,lP,mP,qbd,F5,G5,cB,Qv],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}.container.expanded[_ngcontent-%COMP%]{width:600px}.expand-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);transform:rotate(90deg)}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.card[_ngcontent-%COMP%]{margin-bottom:24px;overflow-wrap:break-word}.feedback[_ngcontent-%COMP%]   button.voted[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"]});var KMb=function(a,b){return b.issueId},tbd={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},I5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.router=n(DA);this.STATUS_JS_TERSE=fmc;this.ListIssuesHovercardMode=tbd;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new ag(1);this.init=new ag(1);this.issues$=this.issueIds$.pipe(Ve(Tk),fg(function(b){return a.issueFullFridge.watchSet(b)}),y(function(b){return a.mode==="parent"?b.filter(iya):b.filter(pm)}))};
Y(I5,Z);I5.\u0275dir=Z.\u0275dir;I5.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var HMb=function(a){var b;(b=a.hovercardInstance)==null||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=c!=null?c:[];for(var d="id:(",e=l(c.entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([Fq.listIssues.makeHref()],{queryParams:c})})};
I5.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(gg(this.destroyed$)).subscribe(function(){a.init.next()})};ea.Object.defineProperties(I5.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});I5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(I5)))(b||I5)}}();
I5.\u0275cmp=B({type:I5,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["role","dialog","aria-label","List Issues Hovercard",1,"onedev-hovercard-content"],[1,"border-bottom","header-container"],[1,"flex-kids-x","more-issues-container","margin-s-right"],["svgIcon","account_tree_24px",1,"icon-xxs","muted"],[1,"header-text"],["svgIcon",
"slo-status-no-data",1,"icon-xxs","gfx-bad"],[3,"routerLink"],[1,"issue-row","flex-kids-x","space-between"],[1,"flex-kids-x","align-items-center"],[1,"issue-id","type-xs"],[1,"type-m","margin-right","issue-title"],[1,"bv2-priority",3,"ngClass"],[3,"class"],["type","button","mat-button","",1,"primary","small",3,"click"]],template:function(a,b){a&1&&(E(0,LMb,8,4,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.issues$))?0:-1,c)}},dependencies:[Mv,aB,FA,PA,Tx,Qv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.header-container[_ngcontent-%COMP%]{line-height:14px;padding:8px 12px}.header-text[_ngcontent-%COMP%]{font-family:Google Sans Display,Roboto,Arial,sans-serif;font-size:.8125rem;line-height:16px;color:#1a73e8;color:var(--text-primary);margin-left:6px}.issue-row[_ngcontent-%COMP%]{line-height:32px;margin:0 12px;padding:4px 0;font-family:Roboto,Arial,sans-serif;color:#202124;color:var(--text)}.issue-row[_ngcontent-%COMP%]   .issue-id[_ngcontent-%COMP%]{height:13px;font-weight:700;padding:1px 4px;margin-right:4px;color:#5f6368;color:var(--text-muted);border:1px solid;border-color:#e8eaed;border-color:var(--gfx-inverse);border-radius:4px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]{max-width:200px}.issue-row[_ngcontent-%COMP%]   .issue-title[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.more-issues-container[_ngcontent-%COMP%]{padding:4px 0;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}"]});var J5=function(){this.issueFullFridge=n(EF);this.paths=n(EN);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=tbd;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};J5.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&ubd(this).then(function(c){b.issueIdToTitle=c})};J5.prototype.getIssueLink=function(a){return Hq(a)};
var ubd=function(a){var b,c,d;return w(function(e){a.reorderedAncestors=[];for(b=a.issueId;;)if(c=a.ancestors.get(b))if(c.sourceIssueIds.length===1)b=c.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIssueIds=c.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();d=jk(a.reorderedAncestors);return d.length===0?e.return(new Map):e.return(Ge(Je(d.map(function(f){return a.issueFullFridge.watch(f)})).pipe(y(function(f){return f.filter(Tk)}),y(function(f){var h=new Map;f=l(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,h.set(k.issueId,k.snapshot[0].title);return h}))))})};J5.\u0275fac=function(a){return new (a||J5)};
J5.\u0275cmp=B({type:J5,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},standalone:!1,features:[Uu],decls:4,vars:1,consts:[["card","onedevHovercard"],["cardBody",""],["svgIcon","account_tree_24px","title","Ancestor issues",1,"icon-xs","margin-s-right"],[1,"muted",3,"onedevHovercardTrigger","title"],["svgIcon","chevron-right",1,"icon-xs","chevron","muted"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","hovercardInstance","currentIssueId","issueIds",
"mode"],[1,"type-s",3,"href","issueId"]],template:function(a,b){a&1&&(K(0,"mat-icon",2),E(1,OMb,6,5),Dg(2,PMb,3,5,null,null,Cg));a&2&&(z(),F(b.multiParentIssueIds.length>1?1:-1),z(),Eg(b.reorderedAncestors))},dependencies:[aB,GO,fJ,gJ,lJ,hJ,I5],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a.muted{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"]});var K5=function(){var a=this;this.issueFullFridge=n(EF);this.hotlistFridge=n(JD);this.hotlistPicker=n(AS);this.issueId$=new ag(1);this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.hotlistsOnIssue$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.count$=this.hotlistsOnIssue$.pipe(y(function(b){return b==null?void 0:b.length}),eg(0));this.label$=this.count$.pipe(y(function(b){return b>0?"Hotlists ("+b+")":
"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;this.HOTKEYS=xp};K5.prototype.onClick=function(){rRc(this.hotlistPicker,this.issue$)};ea.Object.defineProperties(K5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});K5.\u0275fac=function(a){return new (a||K5)};
K5.\u0275cmp=B({type:K5,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},standalone:!1,decls:4,vars:7,consts:[["type","button","mat-stroked-button","",1,"small",3,"onHotkey","click","hotkey","disabled"]],template:function(a,b){a&1&&(I(0,"button",0),S(1,"async"),M("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),Q(2),S(3,"async"),J());a&2&&(D("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",T(1,3,b.isDisabled$)),z(2),R(" ",T(3,5,b.label$),"\n"))},dependencies:[pH,
PA,Tx,Qv],encapsulation:2});var vbd=function(a,b){var c=b.permissions,d=b.retentionState,e=b.isComponentAdmin;if(b.isInternal){if(b.retentionOverride==="INDEFINITE")return{type:"action",label:"Revert to component retention...",title:e?"Revert to component retention...":"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showComponentRetentionDialog()}};if(!d||d.scheduledDeletionTime)return{type:"action",label:"Retain issue indefinitely...",title:e?"Retain issue indefinitely...":
"You must be a component administrator to perform this action.",disabled:!c.admin,action:function(){a.showIndefiniteRetentionDialog()}}}},wbd=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},xbd=function(a,b){var c=!b.isArchived,d=c?"Archive issue":"Unarchive issue";return{type:"action",label:d,title:d+" (requires Edit Issues permission)",icon:"archive_24px",disabled:!b.permissions.writer,
action:function(){a.submitArchivalState(c)}}},ybd=function(a,b){if(!b.isDeleted&&b.accessLevel==="EXTERNAL_PUBLIC")return{type:"action",label:"Mark as spam...",title:"Mark as spam... (requires Admin Issues permission)",icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};var zbd=function(a){return{isDupe:a}},L5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.permissionsFridge=n(iG);this.issuePicker=n(vR);this.snackBar=n(fK);this.eventsForIssueFridge=n(CE);this.TOOLTIP_MARK_DUPE="Mark this issue as a duplicate";this.TOOLTIP_UNMARK_DUPE="Mark this issue as not being a duplicate";this.disabled=!1;this.issueId$=new ag(1);this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.isDupe$=this.issue$.pipe(y(function(b){var c;
return!!(b==null?0:(c=b.snapshot[0])==null?0:c.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(fg(function(b){return a.permissionsFridge.watch(Qn(b))}));this.canEdit$=this.permissions$.pipe(y(function(b){return!(b==null||!b.writer)}),eg(!0));this.didChooseCanonical=function(b){return function(c){(c=c[0])&&krc(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(Xo(b)||"Error with network request","close",{panelClass:"error"})}};
Y(L5,Z);L5.\u0275dir=Z.\u0275dir;
var QMb=function(a){var b,c,d;return w(function(e){switch(e.nextAddress){case 1:return a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)?e.return():x(e,Ge(a.canEdit$),2);case 2:return(b=e.yieldResult)?x(e,Ge(a.isDupe$),3):e.return();case 3:return c=e.yieldResult,x(e,Ge(a.issue$),4);case 4:d=e.yieldResult;if(d==null)return e.return();c?Abd(a,d):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:d.snapshot[0].componentId,edgeType:"canonical",currentResource:{id:d.issueId,
type:"issue"}},a.didChooseCanonical(d.issueId));ze(e)}})},Abd=function(a,b){var c=b.snapshot[0].duplicateOfIssueId;c!=null&&a.issueFullFridge.removeDuplicate(c,b.issueId).then(function(){a.eventsForIssueFridge.poke(b.issueId)}).catch(a.gotErr)};ea.Object.defineProperties(L5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});L5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(L5)))(b||L5)}}();
L5.\u0275cmp=B({type:L5,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},standalone:!1,features:[kg],decls:2,vars:5,consts:[["type","button","mat-stroked-button","",1,"small",3,"disabled","title"],["type","button","mat-stroked-button","",1,"small",3,"click","disabled","title"]],template:function(a,b){a&1&&(E(0,RMb,3,5,"button",0),S(1,"async"));if(a&2){var c;F((c=jh(3,zbd,T(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[PA,Tx,Qv],encapsulation:2});var M5=function(){this.label=""};M5.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};M5.\u0275fac=function(a){return new (a||M5)};
M5.\u0275cmp=B({type:M5,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&Wg(lJ,5);if(a&2){var c;$g(c=ah())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},standalone:!1,decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(I(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",
2),E(4,TMb,1,1,"ng-container"),J()()(),K(5,"mat-icon",3));a&2&&(a=L(1),z(2),ng("aria-label",b.label),z(2),F(b.content?4:-1),z(),D("onedevHovercardTrigger",a))},dependencies:[Pv,aB,fJ,lJ],encapsulation:2});var N5=function(){};N5.\u0275fac=function(a){return new (a||N5)};N5.\u0275mod=Jf({type:N5});N5.\u0275inj=Tc({imports:[ZB,WJ]});var O5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.activeSession=n(Es);this.appEvents=n(nD);this.issueArchiveService=n(GX);this.domSafe=n(rL);this.editIssueService=n(oL);this.matDialogService=n(tK);this.analytics=n(CF);this.issueId$=new ag(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=xp;this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.issueDerivedProperties$=this.issue$.pipe(y(function(b){var c,
d,e,f,h,k,q;return{modifiedTimeMilliseconds:(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.modifiedTimeMicros)!=null?b.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:(k=b==null?void 0:(d=b.userData)==null?void 0:d.voted)!=null?k:!1,voteCount:(q=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?q:0,notificationSubscription:Sk(b==null?void 0:(f=b.userData)==null?void 0:f.notificationSubscription),retentionState:b==null?void 0:(h=b.aggregatedData)==null?void 0:h.retentionState}}));
this.menuItems$=Bbd(this);this.state$=Je([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return Object.assign({},{issueId:b},d,{menuItems:c})}))};Y(O5,Z);O5.\u0275dir=Z.\u0275dir;g=O5.prototype;
g.updateSubscription=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(b.issueId$),2);if(d.nextAddress!=3)return(c=d.yieldResult)?x(d,b.editIssueService.updateSubscription(c,a),3):d.return();b.analytics.trackEvent("editIssue","updateSubscription",a);ze(d)})};g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};
g.showIndefiniteRetentionDialog=function(a){var b=this,c;return w(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():x(d,Ge(nK(b.matDialogService.open(bKc,{maxWidth:560}))),2):(c=d.yieldResult)?x(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return w(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():x(d,Ge(nK(b.matDialogService.open(YJc,{maxWidth:560}))),2):(c=d.yieldResult)?x(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return w(function(d){return d.nextAddress==1?x(d,Ge(nK(b.matDialogService.open(aKc,{maxWidth:560}))),2):(c=d.yieldResult)?x(d,SFc(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var Bbd=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(bVa(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c;return w(function(d){return d.nextAddress==1?x(d,Ge(a.issueId$),2):(c=d.yieldResult)?x(d,a.showIndefiniteRetentionDialog(c),0):d.return()})},showComponentRetentionDialog:function(){var c;return w(function(d){return d.nextAddress==1?x(d,Ge(a.issueId$),2):(c=d.yieldResult)?x(d,a.showComponentRetentionDialog(c),0):d.return()})},submitArchivalState:function(c){var d;
return w(function(e){return e.nextAddress==1?x(e,Ge(a.issueId$),2):(d=e.yieldResult)?x(e,a.issueArchiveService.submitArchivalState(d,c),0):e.return()})},showFlagAsSpamDialog:function(){var c;return w(function(d){return d.nextAddress==1?x(d,Ge(a.issueId$),2):(c=d.yieldResult)?x(d,a.showFlagAsSpamDialog(c),0):d.return()})}};return Je([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(y(function(c){var d=l(c);c=d.next().value;var e=d.next().value;
var f;d={permissions:d.next().value,accessLevel:FNa(c),isArchived:(f=c==null?void 0:c.isArchived)!=null?f:!1,isDeleted:DNa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:INa(c),retentionState:LNa(c)};return[xbd(b,d),ybd(b,d),wbd(b,d),vbd(b,d)].filter(Tk)}))};ea.Object.defineProperties(O5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});O5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(O5)))(b||O5)}}();
O5.\u0275cmp=B({type:O5,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&Wg(M5,5);if(a&2){var c;$g(c=ah())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["smartDupeBtn",""],["menu","matMenu"],["retentionHelpContent",""],[3,"issueId","voteCount","upvoted"],[3,"issueId"],[3,"onHotkey","issueId","hotkey"],["aria-label","Notification menu",3,"subscriptionChange","showNotificationSettings","subscription","issueId","iconOnly"],["buttonClassname",
"small","aria-label","Insights Graph menu",3,"iconOnly"],["type","button","mat-icon-button","","aria-label","More actions","matTooltip","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-actions-menu"],["type","button","mat-menu-item","",3,"disabled","title"],["type","button","mat-menu-item","",1,"informational-only","border-top","flush-bottom"],["type","button","mat-menu-item","",3,"click","disabled","title"],[1,"icon-s",3,"svgIcon"],["type","button",
"mat-menu-item","",1,"informational-only","border-top","flush-bottom",3,"click"],["svgIcon","",1,"icon-s"],[3,"retentionState"],["label","Learn more about retention",3,"content"],[3,"retentionState","modifiedTime"]],template:function(a,b){a&1&&(E(0,YMb,15,12),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.state$))?0:-1,c)}},dependencies:[dP,aB,M5,pH,k1,PA,Ux,UG,XG,VG,YG,YA,cB,P1,E0,D0,L5,K5,Qv],styles:["[_nghost-%COMP%]{display:flex;gap:4px}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:empty{margin-left:-4px}[mat-icon-button][_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-4px}[_nghost-%COMP%]     .gmat-mdc-button.small{font-size:.8125rem}.bv2-material   [_nghost-%COMP%]     button.mat-mdc-icon-button:not(.mat-primary):not([disabled]){color:#5f6368;color:var(--muted)}  .issue-actions-menu .mat-mdc-menu-content button.mat-mdc-menu-item.informational-only mat-icon.mat-icon{vertical-align:text-bottom}"]});var P5=function(){Z.call(this);var a=this;this.issueDetailsBrain=n(jL);this.issuePagination=n(OY);this.issueInteractionsTracking=n(hL);this.bLocation=n(cI);this.paths=n(EN);this.refreshMonitor=n(YE);this.butterBar=n(iK);this.internalSearchResults$=new tj(null);this.searchResults$=this.internalSearchResults$.pipe(Xf(),fg(function(b){return b?b.changed$:Ce(null)}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=this.searchResults$.pipe(y(function(b){var c;return(c=b==null?void 0:b.totalText)!=
null?c:""}));this.backNavigationLabel$=this.searchResults$.pipe(y(function(b){return(b==null?0:b.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=Je([this.searchResults$,this.issueId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:LY(b,c)))!=null?d:-1}));this.hasPreviousIssue$=Je([this.searchResults$,this.issueId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=LY(b,c),b=c==
null||c===-1?!1:c>b.startIndex||b.params.page>1),d=b;return!!d}));this.hasNextIssue$=Je([this.searchResults$,this.issueId$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=LY(b,c),b=c==null||c===-1?!1:c<b.endIndex||b.params.page<b.numPages),d=b;return!!d}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){Cbd(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;Cbd(a)}))};Y(P5,Z);
P5.\u0275dir=Z.\u0275dir;
var Dbd=function(a){var b,c,d=(c=(b=a.internalSearchResults$.value)==null?void 0:b.params.returnUrl)!=null?c:"";a.issueInteractionsTracking.trackNavigation(d===""?"home":"up");a.bLocation.hash("");a.bLocation.setUrl(d)},bNb=function(a){var b=op(a.hasNextIssue$),c=op(a.issueIndex$);b&&c&&Ebd(a,c+1)},aNb=function(a){var b=op(a.hasPreviousIssue$),c=op(a.issueIndex$);b&&c&&Ebd(a,c-1)},Cbd=function(a){var b,c,d;w(function(e){if(e.nextAddress==1)return x(e,e1c(a.issuePagination).catch(ZMb),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=LY(b,a.issueId);return d===-1?e.jumpTo(0):x(e,g1c(a.issuePagination,d).catch(ZMb),0)})},Ebd=function(a,b){g1c(a.issuePagination,b).then(function(c){a.bLocation.setUrl(Hq(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};P5.\u0275fac=function(a){return new (a||P5)};P5.\u0275prov=Sc({token:P5,factory:P5.\u0275fac,providedIn:"root"});var cNb=function(a){return{"invisible zero-width":a}},Fbd=function(){this.currentSearchResults=n(P5);this.HOTKEYS=xp};Fbd.\u0275fac=function(a){return new (a||Fbd)};
Fbd.\u0275cmp=B({type:Fbd,selectors:[["b-pagination-one-issue"]],standalone:!1,decls:2,vars:3,consts:[[3,"ngClass"],["type","button","mat-icon-button","","matTooltip","Previous Issue","aria-label","Previous Issue",1,"medium",3,"onHotkey","click","hotkey","disabled"],["svgIcon","arrow-left",1,"icon-l"],["type","button","mat-icon-button","","matTooltip","Next Issue","aria-label","Next Issue",1,"medium",3,"onHotkey","click","hotkey","disabled"],["svgIcon","arrow-right",1,"icon-l"]],template:function(a,
b){a&1&&(E(0,dNb,8,12),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[Mv,aB,pH,PA,Ux,YA,cB,Qv],styles:["[_nghost-%COMP%]{display:inline-block;color:#5f6368;color:var(--muted);white-space:nowrap}output[_ngcontent-%COMP%]{font-weight:500}[mat-icon-button][_ngcontent-%COMP%]{margin-left:-4px;padding:0}[_nghost-%COMP%]   span.zero-width[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:0}/*# sourceMappingURL=pagination_one_issue.css.map */"],changeDetection:0});var Gbd=function(){var a=this;this.brain=n(jL);this.accessIndicatorService=n(bP);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(Ve(Tk));this.retentionState$=this.issue$.pipe(y(function(b){var c;return(c=b.aggregatedData)==null?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(y(function(b){var c;return((c=b.aggregatedData)==null?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),Ve(Tk));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),Ve(Tk));this.issueAccessLimitLevel$=this.issue$.pipe(y(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(y(function(b){return b.issueId}));this.hasAccessIndicator$=this.issue$.pipe(fg(function(b){return gMc(a.accessIndicatorService,b.issueId)}),y(function(b){return b.type!=="no_indicator"}));this.state$=Je([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.issueId$,this.brain.componentId$,Je([this.accessLevel$,
this.hasAccessIndicator$])]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var h=c.next().value;var k=l(c.next().value);c=k.next().value;k=k.next().value;return{retentionState:b,isAccessLimited:d==="LIMIT_VIEW"||d==="LIMIT_APPEND"||d==="LIMIT_VIEW_TRUSTED",isShowingRetention:(b==null?void 0:b.scheduledDeletionTime)==null?!1:uvb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:h,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};Gbd.\u0275fac=function(a){return new (a||Gbd)};Gbd.\u0275cmp=B({type:Gbd,selectors:[["issue-chip-indicators"]],standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap-s","margin-xs-right"],[3,"issueId"],[3,"issueId","componentId","accessLimitLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(E(0,iNb,1,1),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.state$))?0:-1,c)}},dependencies:[VV,F0,cP,Qv],encapsulation:2});var Q5=function(){this.teamsService=n(yG);this.onTeamLoaded=new ag(1);this.teamName$=new tj("");this.isTeamLoaded=!1};Q5.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId===0?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):zG(this.teamsService,String(this.teamId)).pipe(Uf(),y(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
Q5.\u0275fac=function(a){return new (a||Q5)};
Q5.\u0275cmp=B({type:Q5,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},standalone:!1,features:[Uu],decls:7,vars:6,consts:[["card","onedevHovercard"],[3,"isReady"],[1,"b-chip","squared","s",3,"onedevHovercardTrigger"],[3,"componentId","teamId"],["svgIcon","supervisor_account_24px",1,"icon-xs"]],template:function(a,b){a&1&&(I(0,"b-async-data-placeholder",1),E(1,jNb,4,4,"div",2),S(2,"async"),J(),I(3,"onedev-hovercard",null,0),Fg(5),
K(6,"b-team-card",3),Gg(),J());if(a&2){D("isReady",b.isTeamLoaded);z();F(T(2,4,b.teamName$)?1:-1);z(5);var c;D("componentId",b.componentId==null?null:b.componentId.toString())("teamId",(c=b.teamId==null?null:b.teamId.toString())!=null?c:"0")}},dependencies:[aB,mO,fJ,lJ,IM,Qv],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var R5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.router=n(DA);this.refreshMonitor=n(YE);this.currentSearchResults=n(P5);this.trackerHelpers=n(LK);this.eventsForIssueFridge=n(CE);this.cdr=n(qv);this.starToggleDisabled=!1;this.issueId$=new ag(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=tbd;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=xp;this.issue$=
this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.issueTitle$=this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0].title}));this.starred$=this.issue$.pipe(y(function(b){var c,d;return(d=b==null?void 0:(c=b.userData)==null?void 0:c.starred)!=null?d:!1}));this.componentId$=this.issue$.pipe(y(function(b){return Sk(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(y(function(b){return Sk(b==null?void 0:b.ancestors)}));this.hasAncestors$=
this.ancestors$.pipe(y(function(b){return!!(b&&b.size>0)}));this.teamId$=this.issue$.pipe(y(function(b){var c;return Sk(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId)}));this.blockedByids$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(fg(function(b){return a.issueFullFridge.watchSet(b)}),y(function(b){return b.filter(pm)}),y(function(b){return b.length}));this.blockedByids$.pipe(y(tNb));
this.blockedByids$.pipe(y(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(y(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(y(function(b){return a.computeStatusCssClass(b)}));this.prettyStatus$=this.status$.pipe(Ve(Tk),y(function(b){var c;return(c=yk.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(y(function(b){return!!hmc[b]}));
this.toggleStar=function(){var b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.starred$),2);b=c.yieldResult;a.starToggleDisabled=!0;hrc(a.issueFullFridge,a.issueId,!b).pipe(Zf(),gg(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});ze(c)})};this.toggleStarDebounced=bgc(this.toggleStar,1E3)};Y(R5,Z);R5.\u0275dir=Z.\u0275dir;R5.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};R5.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};
ea.Object.defineProperties(R5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});R5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(R5)))(b||R5)}}();
R5.\u0275cmp=B({type:R5,selectors:[["issue-header"]],inputs:{issueId:"issueId"},standalone:!1,features:[kg],decls:39,vars:48,consts:[["withAncestorsBreadcrumbs",""],["card","onedevHovercard"],["cardBody",""],[1,"padded-s","border-bottom",3,"ngClass"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"row","row-1","flex-kids-x","space-between"],[1,"left","flex-kids-x","flex-wrap","gap-s"],[1,"right"],[1,"row","row-2","flex-kids-x","margin-s-top"],[1,"left","flex-kids-x","align-items-top"],
[1,"nowrap"],["type","button","mat-icon-button","",1,"small","back-btn",3,"onHotkey","click","hotkey","matTooltip"],["svgIcon","arrow-backward",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Refresh","aria-label","Refresh",1,"small",3,"onHotkey","click","hotkey"],["svgIcon","refresh",1,"icon-s"],[3,"starClicked","onHotkey","starred","disabled","hotkey"],[3,"titleChanged","title","componentId","issueId","hasAclToEdit"],[1,"b-chip","squared","bad","xs","margin-xs-left",3,"onedevHovercardTrigger"],
[4,"onedevHovercardLazyBody"],[1,"float-right",3,"issueId"],[4,"ngTemplateOutlet"],[3,"onTeamLoaded","componentId","teamId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[3,"onedevIsHovercardReady",
"hovercardInstance","currentIssueId","issueIds","mode"]],template:function(a,b){if(a&1){var c=r();I(0,"div",3);S(1,"async");S(2,"async");S(3,"async");K(4,"aside",4);S(5,"async");S(6,"async");I(7,"div",5)(8,"div",6);E(9,lNb,1,1,"ng-container");S(10,"async");Ag(11,nNb,4,7);C(12,qNb,4,7,"ng-template",null,0,nh);J();I(14,"div",7);K(15,"b-pagination-one-issue");J()();I(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);S(20,"async");S(21,"async");M("onHotkey",function(){t(c);return v(Dbd(b.currentSearchResults))})("click",
function(){t(c);return v(Dbd(b.currentSearchResults))});K(22,"mat-icon",12);J();I(23,"button",13);M("onHotkey",function(){t(c);return v(b.refresh())})("click",function(){t(c);return v(b.refresh())});K(24,"mat-icon",14);J();I(25,"b-star-toggle",15);S(26,"async");M("starClicked",function(){t(c);return v(b.toggleStar())})("onHotkey",function(){t(c);return v(b.toggleStarDebounced())});J()();K(27,"issue-chip-indicators");J();I(28,"div",7)(29,"issue-title",16);S(30,"async");S(31,"async");S(32,"async");
M("titleChanged",function(){t(c);b.eventsForIssueFridge.poke(b.issueId);b.cdr.markForCheck();return v()});J();E(33,rNb,3,2,"div",17);S(34,"async");I(35,"onedev-hovercard",null,1);C(37,sNb,4,7,"ng-container",18);J();K(38,"issue-actions",19);J()()()}if(a&2){var d;wg("overline",T(1,22,b.statusIsFeatured$))("color-field",T(2,24,b.statusIsFeatured$));Qg("ngClass",T(3,26,b.statusCssClass$));z(4);Rg("title","[",T(5,28,b.prettyStatus$),"] ",T(6,30,b.issueTitle$));z(5);F(T(10,32,b.hasAncestors$)?9:11);z(10);
var e;D("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",(e=T(20,34,b.currentSearchResults.backNavigationLabel$))!=null?e:"");ng("aria-label",T(21,36,b.currentSearchResults.backNavigationLabel$));z(4);D("hotkey",b.HOTKEYS.REFRESH_ISSUE);z(2);var f;D("starred",(f=T(26,38,b.starred$))!=null?f:!1)("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);z(4);D("title",T(30,40,b.issueTitle$))("componentId",T(31,42,b.componentId$))("issueId",b.issueId)("hasAclToEdit",T(32,44,b.issuePermissionService.hasAclToEdit$));
z(4);F((d=T(34,46,b.issuesBlockedByCount$))?33:-1,d);z(5);D("issueId",b.issueId)}},dependencies:[J5,Mv,Pv,aB,rS,pH,fJ,gJ,lJ,hJ,sO,nU,I5,PA,Ux,YA,cB,wS,Q5,Fbd,O5,Gbd,Qv],styles:[".row-1[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{align-items:flex-start}.row-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{flex-grow:1}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}b-pagination-one-issue[_ngcontent-%COMP%]{margin-left:8px;height:22px;margin-top:-5px}[_nghost-%COMP%]     .b-chip{margin-right:0;max-width:100%}[_nghost-%COMP%]     issue-title, [_nghost-%COMP%]     issue-title h3{display:inline}[_nghost-%COMP%]     b-app-vote-button .gmat-mdc-button:not([disabled]):not([aria-pressed=true]), [_nghost-%COMP%]     smart-dupe-btn .mat-mdc-outlined-button:not([disabled]), [_nghost-%COMP%]     hotlist-picker-btn .mat-mdc-outlined-button:not([disabled]){background-color:#fff;background-color:var(--background)}"]});var S5=function(){var a=this;this.trackerHelpers=n(LK);this.trackerFridge=n(IG);this.activeSession=n(Es);this.issueTrackerId$=new tj(void 0);var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.showTrackerBanner$=this.issueTrackerId$.pipe(y(function(c){return!a.currentTrackerId&&!!c}));this.tracker$=this.issueTrackerId$.pipe(fg(function(c){return c?a.trackerFridge.watch(c):Ce(void 0)}));this.trackerRedirectUrl$=this.tracker$.pipe(y(function(c){return tr(a.trackerHelpers,
String(a.issueId),c)}))};ea.Object.defineProperties(S5.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});S5.\u0275fac=function(a){return new (a||S5)};
S5.\u0275cmp=B({type:S5,selectors:[["b-tracker-banner"]],inputs:{issueId:"issueId",trackerId:"trackerId"},standalone:!1,decls:3,vars:5,consts:[[1,"tracker-banner"],["alt","",3,"src"],["mat-button","",1,"mat-stroked-button","gmat-mdc-button","small",3,"href"]],template:function(a,b){a&1&&(E(0,uNb,7,6,"div",0),S(1,"async"),S(2,"async"));if(a&2){var c;F((c=T(1,1,b.showTrackerBanner$)&&T(2,3,b.tracker$))?0:-1,c)}},dependencies:[PA,Tx,Qv],styles:[".tracker-banner[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);background-color:#fef7e0;background-color:var(--archived-bg-pale);-moz-box-sizing:border-box;box-sizing:border-box;width:100%;padding:8px 16px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.tracker-banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--fab-button-bg);margin-left:auto;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.tracker-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:24px;height:24px;padding:3px;margin-right:12px}.tracker-banner[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:.8125rem}"]});var T5=function(){var a=this;this.trackerHelpers=n(LK);this.trackerFridge=n(IG);this.activeSession=n(Es);this.imageUrls=n(qN);this.activatedRoute=n(sj);this.trackerId$=new tj(void 0);this.tracker$=this.trackerId$.pipe(fg(function(b){return b?a.trackerFridge.watch(b):Ce(void 0)}));this.trackerName$=this.tracker$.pipe(y(function(b){return b?b.name:a.activeSession.getAppName()}));this.currentTrackerLogo$=Ce(this.getLogoUrl(this.activeSession.getTracker()));this.trackerLogo$=this.tracker$.pipe(y(function(b){return a.getLogoUrl(b)}));
this.trackerRedirectUrl$=Je([this.tracker$,this.activatedRoute.fragment]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c="";a.issue&&(c=String(a.issueId));a.component&&(c="components/"+a.componentId);d=d?"#"+encodeURIComponent(d):"";return b?tr(a.trackerHelpers,c,b)+d:IEc(a.trackerHelpers,c)+d}))};
T5.prototype.getLogoUrl=function(a){if(a){var b;if((b=a.branding)==null||!b.logoUrl)return"https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}else return this.imageUrls.LOGO_LIGHT;var c,d;return(d=(c=a.branding)==null?void 0:c.logoUrl)!=null?d:""};T5.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId);a.component&&this.component&&this.trackerId$.next(this.component.trackerId)};
ea.Object.defineProperties(T5.prototype,{showResourceContainer:{configurable:!0,enumerable:!0,get:function(){return this.issue!=null||this.component!=null}},issueId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.issue)==null?void 0:a.issueId}},issueType:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.issue)==null?void 0:a.snapshot[0],c;return xk((c=b==null?void 0:b.type)!=null?c:"TYPE_UNSPECIFIED")}},issueStatus:{configurable:!0,enumerable:!0,get:function(){var a,
b=(a=this.issue)==null?void 0:a.snapshot[0],c,d;return(d=yk.get((c=b==null?void 0:b.status)!=null?c:"STATUS_UNSPECIFIED"))!=null?d:""}},componentId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.component)==null?void 0:a.componentId}}});T5.\u0275fac=function(a){return new (a||T5)};
T5.\u0275cmp=B({type:T5,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},standalone:!1,features:[Uu],decls:1,vars:1,consts:[[1,"carded","margin-top"],[1,"centered-inside","margin-bottom"],["alt","",1,"logo",3,"src"],["svgIcon","arrow-forward",1,"icon-l"],[1,"centered-inside","heading-l","margin-bottom"],[1,"centered-inside"],["mat-flat-button","","color","primary","matTooltip","Go to the issue","aria-label","Go to the issue",3,"href"]],template:function(a,b){a&1&&E(0,
wNb,15,13,"div",0);a&2&&F(b.showResourceContainer?0:-1)},dependencies:[aB,PA,Tx,YA,cB,Qv],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}ol[_ngcontent-%COMP%]{box-sizing:border-box;width:322px;padding-right:8px}li[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:16px;line-height:21px}li[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}label[_ngcontent-%COMP%]{width:100px;font-weight:bold;color:#5f6368;color:var(--text-muted);margin-right:8px;font-size:.8125rem}.logo[_ngcontent-%COMP%]{margin-right:4px;width:32px;height:32px}"]});var U5=function(){this.dynamicScrollIntoView=n(ZT);this.paths=n(EN);this.routeParams=n(bL);this.baseIssueReferenceResolver=n(g4);this.destroyed$=new ag(1);var a;this.issueId=(a=this.routeParams.issueId)!=null?a:""};
U5.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(SUc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(gg(this.destroyed$)).subscribe(),history&&history.pushState(null,"",Hq(this.issueId)+"#"+a.elementId))};U5.prototype.ngOnDestroy=function(){this.destroyed$.next()};
U5.\u0275fac=function(a){return new (a||U5)};U5.\u0275prov=Sc({token:U5,factory:U5.\u0275fac});var V5=function(){Z.call(this);var a=this;this.el=n(ff);this.router=n(DA);this.router.events.pipe(Ve(uta),gg(this.destroyed$)).subscribe(function(){var b=["scrollY",a.rememberScroll,a.router.url.toString()].join("-"),c,d=(c=a.el.nativeElement)==null?void 0:c.scrollTop;d?window.sessionStorage.setItem(b,String(d)):window.sessionStorage.removeItem(b)});this.router.events.pipe(Ve(Ij),gg(this.destroyed$)).subscribe(function(b){xNb(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Y(V5,Z);V5.\u0275fac=function(a){return new (a||V5)};V5.\u0275dir=Kf({type:V5,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},standalone:!1,features:[kg]});var W5=function(){};W5.\u0275fac=function(a){return new (a||W5)};W5.\u0275mod=Jf({type:W5});W5.\u0275inj=Tc({imports:[ZB]});var BNb=function(a){return{monorailRedirectUrl:a}},XNb=function(){return{exact:!0}},X5=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=n(iL);this.issueFullFridge=n(EF);this.activeSession=n(Es);this.permissions=n(lL);this.editIssueService=n(oL);this.counts=n(TX);this.appEvents=n(nD);this.issueInteractionsTracking=n(hL);this.checkBeforeExit=n(lS);this.butterBar=n(iK);this.routerEvents=n(BF);this.devopsGraph=n(y0);this.refreshMonitor=n(YE);this.eventsForIssueFridge=n(CE);
this.currentUserBookmarksFridge=n(OD);this.permissionsFridge=n(iG);this.issueRelationshipsFridge=n(QF);this.issueService=n(UE);this.errorHandler=n(DK);this.monorailIssueRedirectApi=n(u5);this.domSafe=n(rL);this.helpMeFixService=n(xT);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(Ve(Tk));this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=Zga(this.issue$.pipe(y(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(ig(this.id$),Ve(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),y(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(ig(this.id$),Ve(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),fg(function(b){b=l(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return Ce({status:c.status});case 404:return $ad(a.monorailIssueRedirectApi,b).pipe(y(function(d){return{status:c.status,monorailRedirectUrl:d==null?void 0:
d.toString()}}));default:return Ce({status:c.status})}}),cg({refCount:!0,bufferSize:1}));this.issueTrackerId$=this.issue$.pipe(y(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.issueTrackerId$.pipe(y(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.snapshot$=this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0]}));this.archived$=this.snapshot$.pipe(y(function(b){return b==null?void 0:b.isArchived}));
this.deleted$=this.snapshot$.pipe(y(function(b){return b==null?void 0:b.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(y(function(b){return b?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(y(function(b){return(b==null?void 0:b.isArchived)&&!(b==null?0:b.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(y(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(Ve(Tk),
y(function(b){var c;return(c=yk.get(b))!=null?c:""}));this.title$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].title)!=null?c:""}));this.issuesBeingBlocked$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),Wf(1E3),fg(function(b){return a.issueFullFridge.watchSet(b)}));this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),Wf(1E3),fg(function(b){return a.issueFullFridge.watchSet(b)}));
this.issueMetadata$=Oe(function(){return a.id$}).pipe(Ve(Tk),fg(function(b){return a.issueService.getMetadata(b)}),cg({refCount:!0,bufferSize:1}));this.tabs=[{link:"./",title:"Comments",count$:this.counts.countCommentsDisplay$},{link:"./dependencies",title:"Dependencies",count$:this.counts.countDependenciesDisplay$},{link:"./dupes",title:"Duplicates",count$:this.counts.countDuplicateDisplay$},{link:"./blocking",title:"Blocking",count$:this.counts.countBlockedDisplay$},{link:"./resources",title:"Resources",
count$:this.counts.countResourcesDisplay$}].concat(p(Yr(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]));this.enableHelpMeFixSidebar$=this.helpMeFixService.doesBackendSupportIssue$.pipe(fg(function(b){var c;return w(function(d){if(d.nextAddress==1)return b?d.return(!0):x(d,Ge(a.helpMeFixService.currentConfig$),2);c=d.yieldResult;return d.return(!!c)})}));this.isHelpMeFixSidebarOpen$=this.helpMeFixService.isHelpMeFixSidebarOpen$};
Y(X5,Z);X5.\u0275dir=Z.\u0275dir;
X5.prototype.ngOnInit=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return x(c,Ge(a.id$),2);b=c.yieldResult;a.appEvents.issueViewed.next(b);nFc(a.issueInteractionsTracking,b);a.subscriptions.add(a.mainIssueLoadError$.subscribe(function(d){return w(function(e){if(e.nextAddress==1)return d.status===403?e.return():d.monorailRedirectUrl?x(e,Zi(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return sL(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);ze(e)})}));
a.subscriptions.add(mS(a.checkBeforeExit,function(){return a.editIssueService.issueCommentDraft(b).comment().hasContent()},!1));a.subscriptions.add(a.routerEvents.routeChangeSuccess.subscribe(function(){a.butterBar.dismiss()}));a.subscriptions.add(a.issue$.pipe(Ve(Tk),Uf()).subscribe(function(d){GF(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(Qn(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();GF(a.issueFullFridge,[b],{userActivityType:"RELOAD"})}));a.destroyed$.subscribe(function(){a.devopsGraph.close();var d=a.issueInteractionsTracking,e=d.getState(b);d.trackDestroy("edit-count",e.editCount);var f=Date.now()-e.startTime;oFc(d,f,"idp-time-on-page",e.variations);d.onUserActiveStatusUpdate(b,!1);d.resetState(b);d.stopActivityTracking$.next();a.editIssueService.clear(b)});
ze(c)})};X5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(X5)))(b||X5)}}();
X5.\u0275cmp=B({type:X5,selectors:[["issue-details-wrapper"]],standalone:!1,features:[hh([NA,qL,{provide:EO,useClass:U5}]),kg],decls:12,vars:6,consts:[["showIssueDetails",""],["issueDetails",""],["showMonorailRedirect",""],["showNoAccessScreen",""],["tabPanel",""],["rla","routerLinkActive"],[1,"a11y-only"],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["hasBackdrop","false","autosize","true"],[4,"ngTemplateOutlet"],["mode","side","position","end",3,"autoFocus","opened","disableClose"],
[1,"flex-kids-y","pos-fill",3,"issue-editor-false"],[1,"bv2-limited-issue-view"],[1,"flex-kids-y","pos-fill"],[1,"border-bottom",3,"messageType","format","iconOverride"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["messageType","error","format","app",1,"border-bottom"],[1,"issue-header"],[1,"flex-1","flex-kids-x","overflow","overflow-on-print-media"],["role","main","rememberScroll","center","cdkScrollable","",1,"flex-1","pos-rel","bg-off-main","overflow","overflow-on-print-media"],
[3,"issueId"],["href","http://go/buganizer-issue-archive","target","_blank"],"type;button;mat-button;;aria-label;Unarchive issue".split(";"),["type","button","mat-button","","aria-label","Unarchive issue",3,"click"],["href","http://go/buganizer/guides/manage-component#archiving-a-component","target","_blank"],["href","http://go/issue-retention","target","_blank"],["type","button","mat-button","","aria-label","Undelete issue",3,"matTooltip","disabled"],["type","button","mat-button","","aria-label",
"Undelete issue",3,"click","matTooltip","disabled"],[3,"issueId","trackerId"],["mat-tab-nav-bar","","gmat-tabs","",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","routerLinkActiveOptions"],[2,"margin-left","4px"],[3,"issue"],["target","_self",3,"href"],["data-test-id","internal-access-denied",3,"issueMetadata"],["data-test-id","public-access-denied"]],template:function(a,b){a&1&&(E(0,yNb,2,1,"h2",6),S(1,"async"),E(2,FNb,3,4),S(3,"async"),C(4,LNb,3,3,"ng-template",null,
0,nh)(6,cOb,3,3,"ng-template",null,1,nh)(8,dOb,4,2,"ng-template",null,2,nh)(10,gOb,3,1,"ng-template",null,3,nh));if(a&2){var c,d;F((c=T(1,2,b.id$))?0:-1,c);z(2);F((d=T(3,4,b.readyForView$))?2:-1,d)}},dependencies:[w2,Pv,Wz,FA,GA,lP,mP,Yw,H5,R5,s1,PA,Tx,kY,lY,jY,eO,aO,IKc,bO,YA,cB,V5,S5,T5,Qv],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px;border-bottom:1px solid var(--divider)}mat-sidenav-container[_ngcontent-%COMP%]{height:100%;--mat-sidenav-container-divider-color:var(--divider)}"]});var Y5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.butterBar=n(iK);this.duplicateIssueIds$=new tj([]);this.tableColumns=[{type:"TITLE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"CREATED_TIME"},{type:"REPORTER"}];this.initialSort={column:"CREATED_TIME",direction:"DESCENDING"};this.getMenuItems=function(b){return[{type:"action",label:"Remove duplicate",action:function(){a.removeDuplicate(b)},title:"Remove duplicate",icon:"clear"}]}};Y(Y5,Z);Y5.\u0275dir=Z.\u0275dir;
Y5.prototype.ngOnInit=function(){};Y5.prototype.removeDuplicate=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return te(d,2),x(d,b.issueFullFridge.removeDuplicate(b.issueId,a),4);if(d.nextAddress!=2)return uu(d,0);c=xe(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);ze(d)})};ea.Object.defineProperties(Y5.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((a!=null?a:[]).map(function(b){return String(b)}))}}});
Y5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Y5)))(b||Y5)}}();Y5.\u0275cmp=B({type:Y5,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},standalone:!1,features:[kg],decls:2,vars:3,consts:[[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(E(0,hOb,1,4,"b-issues-table",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.duplicateIssueIds$))?0:-1,c)}},dependencies:[vU,Qv],encapsulation:2,changeDetection:0});var Z5=function(){Z.apply(this,arguments);var a=this;this.paramsService=n(aL);this.issueFullFridge=n(EF);this.issuePicker=n(vR);this.snackBar=n(fK);this.counts=n(TX);this.imageUrls=n(qN);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(y(function(b){return{path:"/issues",params:{q:"canonicalid:"+b}}}));this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.duplicateIds$=this.issue$.pipe(y(function(b){var c;
return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(fg(function(b){return b.length===0?Ce(0):a.counts.duplicatesDualCount$.pipe(y(function(c){return c.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(y(function(b){return b>0}),eg(!0));this.didChooseDupes=function(b){var c,d;return w(function(e){if(e.nextAddress==1)return x(e,Ge(a.id$),2);c=e.yieldResult;if(c==null)return e.return();d=b[0];return x(e,krc(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Xo(b)||"Error with network request","close",{panelClass:"error"})}};Y(Z5,Z);Z5.\u0275dir=Z.\u0275dir;Z5.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var iOb=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};Z5.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Z5)))(b||Z5)}}();
Z5.\u0275cmp=B({type:Z5,selectors:[["b-issue-duplicates"]],standalone:!1,features:[kg],decls:4,vars:4,consts:[[1,"carded","bg-main"],[1,"pos-tr","padded"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","https://developers.google.com/issue-tracker/guides/duplicate-issue",1,"nowrap"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small",3,"click"],[1,"section-heading",
"muted"],["type","button","mat-flat-button","","color","primary","matTooltip","Add a duplicate to the current issue",1,"small","add",3,"click"],[3,"issueId","duplicateIds"],[1,"margin-s-top","flex-kids-x","gap-s"],["mat-button","","color","primary",1,"small",3,"routerLink","queryParams"]],template:function(a,b){a&1&&(I(0,"section",0),E(1,nOb,3,3),S(2,"async"),J(),E(3,oOb,2,0,"aside",1));if(a&2){var c;z();F((c=T(2,2,b.duplicateIds$))?1:-1,c);z(2);F(b.isThinking()?3:-1)}},dependencies:[FA,PA,Tx,YA,
cB,ON,Y5,Qv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.section-heading[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:8px;padding-left:16px;line-height:1.3}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}ol[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{margin-left:auto;margin-top:-8px;margin-bottom:-8px}[_nghost-%COMP%]     .remove-btn{opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;margin:-16px 0}[_nghost-%COMP%]     ol a:hover .remove-btn{opacity:1}ol[_ngcontent-%COMP%]   a[disabled=true][_ngcontent-%COMP%]{background:transparent;opacity:.5;cursor:default}[_nghost-%COMP%]     ol a[disabled=true] .remove-btn{opacity:0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}button.add[_ngcontent-%COMP%]{margin-left:16px}\n/*# sourceMappingURL=issue_duplicates.css.map */"]});var $5=function(){};$5.\u0275fac=function(a){return new (a||$5)};$5.\u0275mod=Jf({type:$5});$5.\u0275inj=Tc({imports:[ZB,sA,SJ,Ly,My,$B,fO,cC,WJ,TQ,XH,QN,QW]});var a6=function(){Z.call(this);var a=this;this.piperApi=n(w5);this.bug2codeService=n(B5);this.close=new LA;this.stages=[];setTimeout(function(){return a.generate()},1E3)};Y(a6,Z);a6.\u0275dir=Z.\u0275dir;
a6.prototype.generate=function(){var a=this,b,c,d,e,f,h,k,q,u,A,G;return w(function(H){switch(H.nextAddress){case 1:return x(H,hbd(a.bug2codeService,a.issueId),2);case 2:return b=H.yieldResult,x(H,ibd(a.bug2codeService,a.issueId),3);case 3:c=H.yieldResult,d=kbd(c);case 4:return d?x(H,Hbd(a,d),8):x(H,Ibd(a),7);case 7:e=H.yieldResult;d=kbd(e);H.jumpTo(4);break;case 8:return f=H.yieldResult,h=mbd(b,c,d,f.content),x(H,Jbd(a,"Analyzing issue using LLM",h),9);case 9:k=H.yieldResult;q="@@\n"+k;var N={title:"Previewing code changes",
state:"complete",type:"diff-preview",blocks:[]};a.stages.push(N);N.blocks=jbd(q);N=Promise.resolve();return x(H,N,10);case 10:var O=f.content,U={title:"Applying code changes",state:"in-progress",type:"process"};a.stages.push(U);try{var da=wLb(O,q);U.state="complete";N=Promise.resolve(da)}catch(ma){U.state="error",U.error=""+ma,N=Promise.reject(ma)}return x(H,N,11);case 11:return u=H.yieldResult,A=lbd(d,q),x(H,Jbd(a,"Generating changelist description",A),12);case 12:return G=H.yieldResult,a.stages.push({title:"Create changelist",
description:G,state:"in-progress",type:"changelist-create",contents:u,revision:f.revision,path:d}),N=Promise.resolve(),x(H,N,0)}})};
var Ibd=function(a){return new Promise(function(b){var c={title:"Request file path (starting with either //depot/\u2026 or google3/\u2026)",state:"in-progress",value:"",type:"text-input",callback:function(){c.state="complete";b(c.value)}};a.stages.push(c)})},Jbd=function(a,b,c){var d={title:b,state:"in-progress",type:"process"};a.stages.push(d);return a.bug2codeService.executePrompt(c).then(function(e){if(e.outputBlocked)throw d.state="error",d.error="LLM output blocked.",Error("Gf");d.state="complete";
return e.outputs[0]})},Hbd=function(a,b){var c={title:"Retrieving data from Piper",state:"in-progress",type:"process"};a.stages.push(c);return cbd(a.piperApi,b).then(function(d){c.state="complete";return{content:d.content,revision:d.revisionNumber}}).catch(function(d){c.state="error";c.error=d.message;throw d;})};
a6.prototype.patch=function(a){var b=this;return w(function(c){if(c.nextAddress==1){if(a.type!=="changelist-create")return c.return();a.state="complete";return x(c,b.bug2codeService.patch(a.path,a.revision,b.issueId,a.contents,a.description),2)}b.close.emit();ze(c)})};a6.prototype.blocks=function(a){return a.type==="diff-preview"?a.blocks:[]};a6.prototype.complete=function(){this.stages.push({title:"Complete",state:"complete",type:"process"});return Promise.resolve()};
a6.\u0275fac=function(a){return new (a||a6)};
a6.\u0275cmp=B({type:a6,selectors:[["b-bug2code-stepper"]],inputs:{issueId:"issueId"},outputs:{close:"close"},standalone:!1,features:[kg],decls:2,vars:0,consts:[[1,"stage"],[1,"icon"],["svgIcon","clear",1,"icon-s"],["svgIcon","done",1,"icon-s"],["svgIcon","spark_24px",1,"icon-s"],[3,"class"],[1,"block"],["type","text",3,"keyup","disabled"],["type","button","color","primary","mat-flat-button","","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"click","disabled"],[3,"lines"],[1,"changelist-description",
"codefont"],["type","button","color","primary","mat-flat-button","","cdkFocusInitial","",1,"medium","dialog-primary-action","magic",3,"click","disabled"]],template:function(a,b){a&1&&Dg(0,yOb,9,3,"div",0,Cg);a&2&&Eg(b.stages.slice().reverse())},dependencies:[aB,PA,Tx,C5],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column-reverse}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{background:var(--blue);display:inline-block;border-radius:100%;padding:6px;color:var(--white);margin-right:12px;width:18px;height:18px;vertical-align:top;text-align:center;line-height:20px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   .icon-s[_ngcontent-%COMP%]{vertical-align:top}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.3em;line-height:1.9}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{border-left:1px solid var(--grey-400);margin:16px;padding:8px 16px}[_nghost-%COMP%]   section.process[_ngcontent-%COMP%]{padding:4px}.block[_ngcontent-%COMP%]{margin:4px 0}.block[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:var(--muted);font-weight:500}.block[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{border:1px solid var(--text-secondary);border-radius:4px;width:100%;padding:4px}.block[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]:focus{border-color:var(--primary);outline-color:var(--primary)}.changelist-description[_ngcontent-%COMP%]{margin-bottom:18px}.magic[_ngcontent-%COMP%]{flex-shrink:0}.magic[_ngcontent-%COMP%]:hover:not([disabled]){background:linear-gradient(135deg, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd) 50%/1500% 1500%;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite;color:var(--blue-800)}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}100%{background-position:top 37.5% left 37.5%}}']});var Kbd=function(){this.dialogRef=n(mK);this.data=n(sK)};Kbd.\u0275fac=function(a){return new (a||Kbd)};
Kbd.\u0275cmp=B({type:Kbd,selectors:[["b-llm-generation-dialog"]],standalone:!1,decls:11,vars:1,consts:[[1,"dialog"],["mat-dialog-title","",1,"heading"],[1,"heading-m"],["svgIcon","spark_24px",1,"icon-m"],["mat-dialog-content","",1,"content"],[3,"close","issueId"],["mat-dialog-actions","",1,"actions"],["type","button","mat-stroked-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(I(0,"article",0)(1,"header",1)(2,"h1",2),K(3,"mat-icon",3),I(4,"span"),Q(5," Generate LLM suggested change "),
J()()(),I(6,"section",4)(7,"b-bug2code-stepper",5),M("close",function(){b.dialogRef.close()}),J()(),I(8,"footer",6)(9,"button",7),M("click",function(){b.dialogRef.close()}),Q(10," Cancel "),J()()());a&2&&(z(7),D("issueId",b.data.issueId))},dependencies:[aB,PA,Tx,wK,yK,xK,a6],styles:[".dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:24px;gap:24px;box-sizing:border-box;min-width:60vw;overflow-y:scroll}.dialog[_ngcontent-%COMP%]   .heading-m[_ngcontent-%COMP%]{line-height:26px}.dialog[_ngcontent-%COMP%]   .icon-m[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}.dialog[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{flex-grow:1}.dialog[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;gap:12px}"]});var b6=function(){this.llmSuggestionService=n(wT);this.activeSession=n(Es);this.matDialogService=n(tK);this.analytics=n(CF);this.appEvents=n(nD);this.issueId="";this.isInternalSession=this.activeSession.isInternalSession();this.openInSidebar=Yr(this.activeSession,"enableBug2CodeSidebar")};b6.prototype.ngOnInit=function(){this.showLlmSuggestion$=WTc(this.llmSuggestionService,this.issueId)};
b6.prototype.open=function(){this.analytics.trackEvent("bug2Code","generate",this.issueId);this.openInSidebar?this.appEvents.openHelpMeFixSidebar.next():this.openDialog()};b6.prototype.openDialog=function(){this.matDialogService.open(Kbd,{panelClass:"no-jitter",maxWidth:"70vw",disableClose:!0,data:{issueId:this.issueId}})};b6.\u0275fac=function(a){return new (a||b6)};
b6.\u0275cmp=B({type:b6,selectors:[["llm-suggested-bug-fix"]],inputs:{issueId:"issueId"},standalone:!1,decls:4,vars:3,consts:[["showHeader",""],["aiHelp",""],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","flex-kids-x"],["svgIcon","spark_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-kids-y","gap-s","full-width"],[3,"ngTemplateOutlet"],[1,"flex-kids-x","gap-s"],["type","button","color","primary","mat-flat-button","","color","primary","aria-label","Generate a LLM-suggested CL for this bug.",
1,"small","generate",3,"click"],[1,"uppercase","badged","early-access"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["target","_blank","href","http://go/bug2code-feedback","matTooltip","Provide feedback for bug2code.","aria-label","Page for providing feedback for bug2code.",1,"feedback-icon","feedback-button"],["svgIcon","feedback-outline",1,"icon-s"]],template:function(a,b){a&1&&(E(0,zOb,7,1,"div",2),S(1,"async"),C(2,BOb,9,1,"ng-template",null,0,nh));a&2&&F(b.isInternalSession&&T(1,
1,b.showLlmSuggestion$)?0:-1)},dependencies:[Pv,aB,PA,Tx,jN,WM,Qv],styles:[".bg-main[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.generate[_ngcontent-%COMP%]{flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:linear-gradient(135deg, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd) 50%/1500% 1500%;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}100%{background-position:top 37.5% left 37.5%}}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}[_nghost-%COMP%]     .llm-dialog{padding:10px}[_nghost-%COMP%]     .feedback-button{padding-left:8px;text-align:center;text-decoration:none}[_nghost-%COMP%]     .feedback-icon{color:var(--mat-icon-color)}"]});var c6=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=n(EF);this.issueTypeToDisplay=xk;this.STATUS_JS_FULL_TEXT=yk;this.STATUS_JS_TERSE=fmc;this.DUPLICATE="DUPLICATE";this.id$=new ag(1);this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.priority$=this.issue$.pipe(y(function(b){return(b==null?void 0:b.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].type)!=null?c:void 0}));this.canonicalId$=
this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(y(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(y(function(b){return hmc[b]?b:void 0}));this.statusCssClass$=this.status$.pipe(y(function(b){return a.computeStatusCssClass(b)}))};Y(c6,Z);c6.\u0275dir=Z.\u0275dir;c6.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};
ea.Object.defineProperties(c6.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});c6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(c6)))(b||c6)}}();
c6.\u0275cmp=B({type:c6,selectors:[["issue-description-area"]],inputs:{id:"id"},standalone:!1,features:[kg],decls:13,vars:12,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],[1,"flex-kids-x","gap-s"],[1,"chip-container","shrink-0","border-right","padded-s-right"],[3,"class"],[3,"issuePriority"],[3,"issueId"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"title"],[1,"type-s","nowrap"],[3,"routerLink","onedevHovercardTrigger"],[3,"onedevIsHovercardReady",
"issueId"]],template:function(a,b){a&1&&(I(0,"div",2)(1,"div",3),E(2,DOb,6,10,"div"),S(3,"async"),E(4,EOb,2,4,"span",4),S(5,"async"),K(6,"b-issue-priority-display",5),S(7,"async"),J(),E(8,FOb,1,1,"b-issue-hotlists",6),S(9,"async"),J(),I(10,"onedev-hovercard",null,0),C(12,GOb,3,4,"b-issue-card",7),J());if(a&2){var c,d,e;z(2);F((c=T(3,4,b.statusForChip$))?2:-1,c);z(2);F((d=T(5,6,b.type$))?4:-1,d);z(2);D("issuePriority",T(7,8,b.priority$));z(2);F((e=T(9,10,b.id$))?8:-1,e)}},dependencies:[FA,fJ,gJ,lJ,
hJ,eP,mU,uO,Qv],styles:["[_nghost-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;line-height:22px}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container b-hotlist-chip, [_nghost-%COMP%]     .chip-container b-hotlist-recommendation-chip{margin-right:0}[_nghost-%COMP%]     .chip-container .b-chip, [_nghost-%COMP%]     .chip-container .chip, [_nghost-%COMP%]     .chip-container b-component-access-level-indicator .label{line-height:22px;height:22px}[_nghost-%COMP%]     .chip-container b-component-access-level-indicator .label{border-radius:11px}[_nghost-%COMP%]     .chip-container .b-chip.status{-moz-box-sizing:border-box;box-sizing:border-box;line-height:20px}.thread-filters[_ngcontent-%COMP%]{margin-top:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});var d6=function(){this.message=n(bK);this.snackbarRef=n(cK);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};d6.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};d6.\u0275fac=function(a){return new (a||d6)};
d6.\u0275cmp=B({type:d6,selectors:[["refresh-data-notification"]],standalone:!1,decls:6,vars:1,consts:[["role","button","aria-label","Refresh data",1,"refresh-data-notification-container",3,"click"],["svgIcon","refresh",1,"margin-right"],[1,"margin-xs-top","full-width"],["type","button","mat-icon-button","","aria-label","Dismiss new data notification",1,"refresh-data-notification-dismiss-button","small",3,"click"],["svgIcon","close",1,"icon-m"]],template:function(a,b){a&1&&(I(0,"div",0),M("click",
function(){return b.snackbarRef.dismissWithAction()}),K(1,"mat-icon",1),I(2,"p",2),Q(3),J()(),I(4,"button",3),M("click",function(c){return b.onDismiss(c)}),K(5,"mat-icon",4),J());a&2&&(z(3),R(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[aB,PA,Ux],styles:[".mat-mdc-snack-bar-container.refresh-data-notification{padding:0;min-height:auto;border-radius:8px;background-color:rgba(0,0,0,0);width:480px}.mat-mdc-snack-bar-container.refresh-data-notification .mdc-snackbar__surface{border-radius:8px;padding-right:0}.mat-mdc-snack-bar-container.refresh-data-notification .mat-mdc-snack-bar-label{padding:0}.refresh-data-notification-container{border-radius:8px;background-color:#1a73e8;background-color:var(--primary);color:#fff;cursor:pointer;display:flex;padding:8px 32px 8px 12px}.refresh-data-notification-dismiss-button{position:absolute;right:8px;top:8px}.refresh-data-notification-dismiss-button .mat-icon{color:#fff}/*# sourceMappingURL=refresh_data_notification.css.map */\n"],
encapsulation:2});var e6=function(){this.snackbar=n(fK)},Lbd=function(a){var b=xp.REFRESH_ISSUE.displayAs,c={panelClass:"refresh-data-notification",data:"New comment available"};b&&(c.announcementMessage="New comment available. ",c.announcementMessage+="Press "+b+" to fetch new data.");a.currentSnackBar=a.snackbar.openFromComponent(d6,c);return a.currentSnackBar};e6.\u0275fac=function(a){return new (a||e6)};e6.\u0275prov=Sc({token:e6,factory:e6.\u0275fac,providedIn:"root"});var f6=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=n(CE);this.issueFullFridge=n(EF);this.preferences=n(OG);this.activeSession=n(Es);this.commentHistoryDialogService=n(NS);this.issueDetailsBrain=n(jL);this.errorHandler=n(DK);this.refreshDataNotification=n(e6);this.eventsForIssueWatcher=n(fS);this.analytics=n(CF);this.appEvents=n(nD);this.id$=new ag(1);this.events$=this.id$.pipe(fg(function(b){return a.eventsForIssue.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=
null?c:[]}));this.issue$=this.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.enableLlmSummarization=Yr(this.activeSession,"enableIssueSummarizationNoButton")&&this.activeSession.isInternalSession();this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(y(Boolean),eg(!0))};Y(f6,Z);f6.\u0275dir=Z.\u0275dir;
f6.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.issueDetailsBrain.urlComment$.subscribe(function(b){var c=b.commentNumber;b=b.commentVersion;if(c&&b!==void 0&&b>-1){var d=op(a.id$);a.commentHistoryDialogService.show(d,c,b!=null?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}));this.subscriptions.add(BQc(this.eventsForIssueWatcher,op(this.id$)).subscribe(function(){Mbd(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()}));this.destroyed$.pipe(Uf()).subscribe(function(){var b;(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()})};
var Mbd=function(a){a.analytics.trackEvent("pushUpdate","display","comment");Lbd(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(op(a.id$)),a.eventsForIssue.poke(op(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent("pushUpdate","dismiss","comment")})};ea.Object.defineProperties(f6.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
f6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(f6)))(b||f6)}}();
f6.\u0275cmp=B({type:f6,selectors:[["issue-event-list"]],inputs:{id:"id"},standalone:!1,features:[kg],decls:7,vars:16,consts:[[1,"margin-top"],[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(E(0,HOb,2,0,"div",0),K(1,"b-event-stream",1),S(2,"async"),S(3,"async"),S(4,"async"),S(5,"async"),S(6,"async"));a&2&&(F(b.enableLlmSummarization?0:-1),z(),D("issueId",T(2,6,b.id$))("events",T(3,8,b.events$))("issueAccessLevel",T(4,10,b.accessLevel$))("showFullHistory",
T(5,12,b.preferences.showFullHistory$)),ng("data-will-inline-screenshots",T(6,14,b.enableInlineScreenshots$)?!0:null))},dependencies:[$T,GW,Qv],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var g6={},Nbd=(g6.REJECTION_REASON_UNSPECIFIED="Unspecified",g6.REVERSED="The relationship is reversed",g6.SIMILAR="The issues are similar, but not duplicate",g6.NOT_SIMILAR="The issues are not similar",g6.OTHER="Other",g6),Obd=new Set(["VERY_HIGH"]),h6=function(){Z.apply(this,arguments);var a=this;this.analytics=n(CF);this.clipboard=n(rO);this.editIssueService=n(oL);this.elementRef=n(ff);this.errorHandler=n(DK);this.eventsForIssueFridge=n(CE);this.issueDedupeRecommendationsFridge=n(NE);this.issueFridge=
n($E);this.issuePicker=n(vR);this.paths=n(EN);this.recommendationsService=n(KE);this.scrolledOnScreenService=n(QH);this.snackBar=n(fK);this.STATUS_JS_FULL_TEXT=yk;this.STATUS_JS_TERSE=fmc;this.REJECT_REASON_TO_DISPLAY=Nbd;this.currentIssueId$=new ag(1);this.currentIssue$=this.currentIssueId$.pipe(fg(function(b){return a.issueFridge.watch(b)}));this.isAlreadyADuplicate$=this.currentIssue$.pipe(y(function(b){return(b==null?void 0:b.snapshot[0].status)==="DUPLICATE"}));this.recommendations$=this.currentIssueId$.pipe(fg(function(b){return a.issueDedupeRecommendationsFridge.watch(b)}),
y(function(b){return(b==null?void 0:b.recommendations.filter(function(c){return Obd.has(c.confidence)}))||[]}));this.recommendation$=this.recommendations$.pipe(y(function(b){return b==null?void 0:b[0]}));this.canonicalIssue$=this.recommendation$.pipe(y(function(b){var c;return b==null?void 0:(c=b.content)==null?void 0:c.recommendedIssue}));this.canonicalIssues$=this.recommendations$.pipe(y(function(b){return b.map(function(c){var d;return c==null?void 0:(d=c.content)==null?void 0:d.recommendedIssue}).filter(Tk)}));
this.canonicalIssueId$=this.canonicalIssue$.pipe(y(function(b){return b==null?void 0:b.issueId}));this.canonicalIssue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].componentId)!=null?c:void 0}));this.canonicalAccessLevel$=this.canonicalIssue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.canonicalAccessLevel$.pipe(y(function(b){return!(!b||b==="INTERNAL")}));this.canonicalTitle$=this.canonicalIssue$.pipe(y(function(b){return b==
null?void 0:b.snapshot[0].title}));this.canonicalPriority$=this.canonicalIssue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0].priority}));this.canonicalIssue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.voteCount}));this.canonicalCreateMicros$=this.canonicalIssue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.createdTimeMicros}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(y(function(b){var c;return(c=b==
null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.statusForChip$=this.canonicalIssue$.pipe(y(function(b){var c;return(c=b==null?void 0:b.snapshot[0].status)!=null?c:void 0}));this.canonicalEvents$=this.canonicalIssueId$.pipe(fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.canonicalDescription$=this.canonicalEvents$.pipe(y(function(b){return b[0]}),y(function(b){var c;return{formattedComment:b==null?void 0:
b.formattedComment,commentNumber:1,unlinkifiedComment:(b==null?void 0:b.unlinkifiedComment)||"",formattingMode:(c=b==null?void 0:b.formattingMode)!=null?c:"UNSPECIFIED_FORMATTING_MODE"}}));this.canonicalComments$=this.canonicalEvents$.pipe(y(function(b){return b.filter(mm)}));this.wasRejected$=new tj(!1);this.show$=Je([this.isAlreadyADuplicate$,this.canonicalIssue$,this.wasRejected$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return!b&&!!d&&!c}));this.isSaving=
!1;this.REJECT_REASONS=["NOT_SIMILAR","SIMILAR","REVERSED","OTHER"]};Y(h6,Z);h6.\u0275dir=Z.\u0275dir;g=h6.prototype;g.ngOnInit=function(){var a=this;this.subscriptions.add(Je([this.show$.pipe(Ve(Boolean)),Uvc(this.scrolledOnScreenService,this.elementRef.nativeElement)]).pipe(Uf()).subscribe(function(){a.analytics.trackEvent("editIssue","view","canonical-recommendation");Pbd(a,"VIEWED")}))};
g.accept=function(){var a=this,b,c,d;return w(function(e){switch(e.nextAddress){case 1:return a.isSaving=!0,x(e,Ge(a.currentIssueId$),2);case 2:return b=e.yieldResult,x(e,Ge(a.canonicalIssueId$),3);case 3:c=e.yieldResult;if(!b||!c)return a.isSaving=!1,e.return();te(e,4,5);return x(e,LFc(a.editIssueService,b,c),7);case 7:return a.analytics.trackEvent("editIssue","accept","canonical-recommendation"),x(e,Pbd(a,"ACCEPTED"),5);case 5:ue(e);a.isSaving=!1;we(e,0);break;case 4:d=xe(e),FK(a.errorHandler,d),
e.jumpTo(5)}})};g.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};g.getIssueLink=function(a){return Hq(a)};g.reject=function(a){var b=this;return w(function(c){b.wasRejected$.next(!0);b.analytics.trackEvent("editIssue","reject","canonical-recommendation");return x(c,Pbd(b,"REJECTED",a),0)})};
g.openDupeDialog=function(){var a=this,b,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return x(k,Ge(a.currentIssueId$),2);case 2:return b=k.yieldResult,x(k,Ge(a.canonicalIssues$),3);case 3:return c=k.yieldResult,x(k,Ge(a.recommendations$),4);case 4:return d=k.yieldResult,e=c.map(function(q){var u=q.snapshot[0],A,G;return{resourceId:(A=q.issueId)!=null?A:"",displayText:(G=u==null?void 0:u.title)!=null?G:"",status:(u==null?void 0:u.status)||null,relations:[]}})||[],x(k,a.issuePicker.open({allowMultipleIds:!1,
currentResource:{id:b,type:"issue"},defaultChoices:e,originIsBulk:!1,edgeType:"canonical"}),5);case 5:f=k.yieldResult;if(!f||f.length===0)return k.return();h=d.find(function(q){var u,A;return((u=q.content)==null?void 0:(A=u.recommendedIssue)==null?void 0:A.issueId)===f[0]});return x(k,a.markAsDuplicate(f[0],b),6);case 6:if(h===void 0)k.jumpTo(0);else return x(k,Qbd(a,h,"ACCEPTED"),0)}})};
g.markAsDuplicate=function(a,b){var c=this,d;return w(function(e){switch(e.nextAddress){case 1:return c.isSaving=!0,te(e,2,3),x(e,LFc(c.editIssueService,b,a),5);case 5:c.analytics.trackEvent("editIssue","accept","canonical-recommendation");case 3:ue(e);c.isSaving=!1;we(e,0);break;case 2:d=xe(e),FK(c.errorHandler,d),e.jumpTo(3)}})};
var Pbd=function(a,b,c){var d;return w(function(e){d=op(a.recommendation$);return x(e,Qbd(a,d,b,c),0)})},Qbd=function(a,b,c,d){var e,f;return w(function(h){if(h.nextAddress==1)return te(h,2),e=b.name,x(h,Ge(a.recommendationsService.createUserEngagements([{parent:e,userEngagement:{type:c,rejectionReason:d}}])),4);if(h.nextAddress!=2)return uu(h,0);f=xe(h);FK(a.errorHandler,f);ze(h)})};ea.Object.defineProperties(h6.prototype,{currentIssueId:{configurable:!0,enumerable:!0,set:function(a){this.currentIssueId$.next(a)}}});
h6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(h6)))(b||h6)}}();
h6.\u0275cmp=B({type:h6,selectors:[["canonical-recommendation"]],inputs:{currentIssueId:"currentIssueId"},standalone:!1,features:[kg],decls:8,vars:3,consts:[["splitButton",""],[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-x","padded-s-y"],["svgIcon","merge_type_24px",1,"rotate-180","green"],["mat-icon-button","","href","http://go/b-duplicate-assistance-docs","target","_blank","title","Learn more","aria-label","Learn more about duplicate assistance",1,"small","align-item-right"],
["svgIcon","info",1,"icon-s"],[1,"flex-kids-y","gap-s"],[1,"flex-kids-y","gap-s","padded-x"],["target","_blank",1,"title","hover-link","flex-kids-x","align-items-center","gap-xs",3,"href"],[1,"overflow-ellipsis"],["svgIcon","pop-out",1,"icon-s","shrink-0"],[1,"info","flex-kids-x","gap-s","align-items-center"],["type","button","mat-icon-button","","aria-label","copy issue id",1,"small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[3,"issuePriority"],[3,"class","title"],
[1,"actions","flex-kids-x","gap-s","align-items-center","padded-x","padded-s-bottom"],["mat-button","",1,"accept","keep-focus-ring",3,"click","disabled"],["svgIcon","done",1,"icon-s"],["dropdownTooltip","Specify rejection reason",1,"reject",3,"size","disabled"],["mat-button","","mainSegment","","color","secondary",1,"small",3,"click","disabled"],["svgIcon","close",1,"icon-s"],["dropdownSegment",""],["mat-menu-item",""],["mat-button","","aria-label","Deduplicate current issue with another issue",1,
"dedupe","keep-focus-ring",3,"click","disabled"],[1,"mat-elevation-z0","bg-secondary","bordered"],["collapsedHeight","40px","expandedHeight","40px"],["role","heading","aria-level","3"],["matExpansionPanelContent",""],[3,"issueId","issueAccessLevel","formattingMode","note"],[3,"title"],[1,"divider"],[1,"muted","nowrap"],[1,"votes","flex-kids-x","align-items-center","gap-xs",3,"matTooltip"],[1,"muted"],["svgIcon","exposure_plus_1_24px",1,"icon-s"],[1,"flex-kids-x","align-items-center","gap-xs",3,"matTooltip"],
["svgIcon","mode_comment_24px",1,"icon-s","muted"],["matTooltip","Created on","mode","date",1,"muted","nowrap",3,"timestamp"],["mat-menu-item","",3,"click"]],template:function(a,b){a&1&&(I(0,"div",1),K(1,"mat-icon",2),I(2,"span"),Q(3,"Close as duplicate of:"),J(),I(4,"a",3),K(5,"mat-icon",4),J()(),E(6,ROb,41,33,"div",5),S(7,"async"));if(a&2){var c;z(6);F((c=T(7,1,b.canonicalIssueId$))?6:-1,c)}},dependencies:[RO,aB,ZL,PA,Tx,Ux,VG,YA,cB,uO,$W,aX,bX,ZW,b5,a5,Qv],styles:["[_nghost-%COMP%]{display:block;position:relative;border:none;box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 2px 6px 2px rgba(0,0,0,.15)}.heading[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-weight:500;font-size:1rem;line-height:1.5rem}.green[_ngcontent-%COMP%], .heading[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);color:#137333;color:var(--green-text)}.hover-link[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.hover-link[_ngcontent-%COMP%]:focus, .hover-link[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link);text-decoration:underline}.divider[_ngcontent-%COMP%]{height:18px;border-left:1px solid;border-left-color:#dadce0;border-left-color:var(--divider)}.votes[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}.actions[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]   .dedupe[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]   .reject[_ngcontent-%COMP%]{border-radius:13px}.actions[_ngcontent-%COMP%]   .accept[_ngcontent-%COMP%]{padding-right:12px;padding-left:8px;border:1px solid;border-color:#137333;border-color:var(--green-text);color:#137333;color:var(--green-text)}.actions[_ngcontent-%COMP%]   .dedupe[_ngcontent-%COMP%], .actions[_ngcontent-%COMP%]   .reject[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--hairline)}.align-item-right[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .bv2-note-container{margin:0;overflow:auto}[_nghost-%COMP%]     .actions button{height:26px;line-height:unset}[_nghost-%COMP%]     .actions button .mat-button-wrapper{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%]     .actions button .mat-button-wrapper mat-icon{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}"]});var i6=function(){this.issueReferenceResolver=n(EO);this.userToString=Dk};i6.prototype.ngOnInit=function(){};i6.prototype.getCommentNumberLink=function(a){return cNa(this.issueId,{comment:a})};i6.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};i6.\u0275fac=function(a){return new (a||i6)};
i6.\u0275cmp=B({type:i6,selectors:[["comments-info"]],inputs:{issueId:"issueId",comments:"comments"},standalone:!1,decls:2,vars:0,consts:[["personCard",""],[1,"comment-info"],[1,"keep-focus-ring","hover-link",3,"routerLinkObj"],[1,"ldap",3,"onedevHovercardTrigger"],[3,"email"],[1,"keep-focus-ring","hover-link",3,"click","routerLinkObj"]],template:function(a,b){a&1&&Dg(0,WOb,5,3,"span",1,Cg);a&2&&Eg(b.comments)},dependencies:[WB,fJ,lJ,tL,DQ],styles:["[_nghost-%COMP%]{overflow:hidden;display:flex;align-items:center;gap:4px;white-space:nowrap}.comment-info[_ngcontent-%COMP%]{display:flex;overflow:hidden;min-width:25px}.ldap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1000000;margin-right:3px}"],
changeDetection:0});var j6=function(){Z.apply(this,arguments);this.ngZone=n(ph)};Y(j6,Z);j6.\u0275dir=Z.\u0275dir;var Rbd=function(a,b){return(new pe(function(c){var d=new ResizeObserver(function(e){a.ngZone.run(function(){var f=e[0];c.next({height:f.contentRect.height,width:f.contentRect.width})})});d.observe(b);return function(){d.unobserve(b)}})).pipe(gg(a.destroyed$))};j6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(j6)))(b||j6)}}();j6.\u0275prov=Sc({token:j6,factory:j6.\u0275fac,providedIn:"root"});var Sbd=["imagesSummaryWidget"],k6=function(){var a=this;this.resizeService=n(j6);this.router=n(DA);this.route=n(sj);this.imageLinks$=new ag(1);this.paginate=!1;this.container$=new ag(1);this.containerResize$=this.container$.pipe(y(function(b){return b.nativeElement}),fg(function(b){return Rbd(a.resizeService,b)}));this.issueId$=new ag(1);this.lastRenderedImageIndex$=new tj(0);this.allImages$=this.imageLinks$.pipe(y(function(b){b=b.map(function(c){if(c.comment){var d=tJa(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(Tk);return dPb(b)}));this.maxImagesInOneRow$=this.containerResize$.pipe(y(function(b){return Math.floor((b.width-16)/216)}),cg({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(y(function(b){return b*(a.paginate?4:2)}));this.imagesToRender$=Je([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return a.paginate?d.slice(0,c||
b):d.slice(0,b)}),y(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=tJa(c.src,!0))!=null?d:""})})}),Xf())},YOb=function(a,b){var c,d,e,f;return w(function(h){if(h.nextAddress==1)return x(h,Ge(a.maxImagesInOneRow$),2);if(c=h.yieldResult)d=Math.floor(b/c),e=d+4,f=e*c,a.lastRenderedImageIndex$.next(f);ze(h)})};k6.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};k6.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};
k6.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};ea.Object.defineProperties(k6.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return op(this.imageLinks$)}}});k6.\u0275fac=function(a){return new (a||k6)};
k6.\u0275cmp=B({type:k6,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&Wg(Sbd,7);if(a&2){var c;$g(c=ah())&&(b.container=c.first)}},inputs:{issueId:"issueId",imageLinks:"imageLinks",paginate:"paginate"},standalone:!1,decls:4,vars:3,consts:[["imagesSummaryWidget",""],[1,"container"],[1,"image-wrapper"],["target","_blank",1,"thumbnail",3,"href"],[3,"showByDefault","src"],[3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-screenshots"],["type","button",
"mat-button","",1,"small","see-all-screenshots"],["type","button","mat-button","",1,"small","load-more-screenshots",3,"click"],["type","button","mat-button","",1,"small","see-all-screenshots",3,"click"]],template:function(a,b){a&1&&(I(0,"div",null,0),E(2,cPb,2,3),S(3,"async"),J());if(a&2){var c;z(2);F((c=T(3,1,b.allImages$))?2:-1,c)}},dependencies:function(){return[i6,PA,Tx,UH,Qv,l6]},styles:['.container[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-flow:row wrap;justify-content:flex-start;max-height:390px;overflow:hidden}.show-all-images[_ngcontent-%COMP%]{max-height:100%}.image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.image-wrapper[_ngcontent-%COMP%]   comments-info[_ngcontent-%COMP%]{margin:0 8px;max-width:200px}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--surface-secondary);border:2px solid;border-color:#e8eaed;border-color:var(--c200);border-radius:8px;margin:8px;height:150px;width:200px;position:relative;overflow:hidden}[_nghost-%COMP%]   a.thumbnail[_ngcontent-%COMP%]:focus{border-color:#185abc;border-color:var(--primary-c800)}[_nghost-%COMP%]     a.thumbnail img{bottom:0;top:0;left:0;right:0;position:absolute;margin:auto;height:auto;width:auto;max-height:150%;max-width:150%}[_nghost-%COMP%]     a.thumbnail img::before{content:" ";position:absolute;left:0;height:100%;width:100%;background-color:#f8f9fa;background-color:var(--surface-secondary)}[_nghost-%COMP%]     a.thumbnail img::after{content:"\u274cBroken screenshot link";position:absolute;top:46%;left:0;width:100%;text-align:center}']});
var l6=function(){};l6.prototype.transform=function(a){return a.split(".png")[0]};l6.\u0275fac=function(a){return new (a||l6)};l6.\u0275pipe=Lf({name:"removePngExtension",type:l6,pure:!0,standalone:!1});var Tbd={IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links",SIMILAR_ISSUES:"SW-similar-issues"},TPb=[].concat(p(Object.values(Tbd)));var Ubd=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=hk(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=hk(function(){c.analytics.trackEvent("editIssue","view","SW")})},DPb=function(a,b,c){a.recordInteractionOnce(c);ws(a.issueInteractionsTracking,b,c+"-content-interacted");ws(a.issueInteractionsTracking,b,"SW-content-interacted")};var m6=function(){this.activeSession=n(Es);this.trackerHelpers=n(LK);this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
m6.prototype.ngOnChanges=function(){var a;a:{var b=(a=this.sourceComment)==null?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=kPb(b.markdownFormat.content);break a}if(b.literalFormat){a=kPb(b.literalFormat.content);break a}if(b.plainFormat){a=document.createElement("div");b=l(b.plainFormat.plainSection);for(var c=b.next();!c.done;c=b.next())(c=c.value.content)&&a.appendChild(kPb(c));break a}}a=void 0}if(a=a&&Vbd(this,a)){b=a.dataset.bOriginalHref;c=a.dataset.bRedirectedHref;var d=a.dataset.bIssueId;
d&&(this.issueId=d);b&&c?(this.redirectedHref=c,this.originalHref=b,this.isExternalLink=!0):(this.originalHref=this.redirectedHref=a.href,this.isExternalLink=!1);b=[];for(c=a;c.previousSibling;){c=c.previousSibling;if(Wbd.has(c.nodeName))break;d=void 0;b.push((d=c.textContent)!=null?d:"")}this.leftText=b.reverse().join("");b=[];for(c=a;c.nextSibling;){c=c.nextSibling;if(Wbd.has(c.nodeName))break;d=void 0;b.push((d=c.textContent)!=null?d:"")}this.rightText=b.join("");this.linkText=a.innerText||a.href}else this.relatedLink&&
(c=b=a="",Ap(this.relatedLink)?c=b=this.relatedLink.href:uJa(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?kua(tr(this.trackerHelpers,c),""):this.getIssueUrl(c)),this.issueId=a,this.originalHref=this.redirectedHref=b,this.isExternalLink=!1,this.rightText=this.leftText="",this.linkText=c)};
var Vbd=function(a,b){if(a.relatedLink){if(uJa(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(p(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(Ap(a.relatedLink)){var d=a.relatedLink;return[].concat(p(b.querySelectorAll("a"))).find(function(e){a:{var f=d.href;if(e.innerText===f)e=!0;else{try{f=(new URL(f)).href}catch(h){e=!1;break a}e=e.href===f||e.href.replace("https://cl.corp.google.com/","https://critique.corp.google.com/")===f?!0:!1}}return e})}}};
m6.prototype.getIssueUrl=function(a){return tr(this.trackerHelpers,a)};m6.\u0275fac=function(a){return new (a||m6)};
m6.\u0275cmp=B({type:m6,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},standalone:!1,features:[Uu],decls:7,vars:3,consts:[[1,"wrapper"],["aria-hidden","true",1,"muted","margin-xs-right","left"],[3,"href","originalHref"],["aria-hidden","true",1,"muted","margin-xs-left","right"],[3,"href","issueId"],["target","_blank",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(I(0,"div",0),Q(1," \u201c "),E(2,ePb,3,3,"span",1),E(3,fPb,2,
3,"b-external-hyperlink-widget",2)(4,iPb,2,1),E(5,jPb,2,1,"span",3),Q(6," \u201d\n"),J());a&2&&(z(2),F(b.leftText?2:-1),z(),F(b.isExternalLink?3:4),z(2),F(b.rightText?5:-1))},dependencies:[CO,GO,TB],styles:["[_nghost-%COMP%]{overflow:hidden}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%], b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}b-external-hyperlink-widget[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{max-width:max(80%,350px)}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex-shrink:1000000;max-width:max(80%,200px);user-select:none}.left[_ngcontent-%COMP%]{direction:rtl;text-align:left;unicode-bidi:bidi-override}"],
changeDetection:0});var Wbd=new Set(["BR"]);var n6=function(){var a=this;this.activeSession=n(Es);this.issueFullFridge=n(EF);this.router=n(DA);this.route=n(sj);this.issueReferenceResolver=n(EO);this.issueReferences$=new ag(1);this.currentIssueId$=new ag(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new tj(10);this.issuesMap$=this.issueReferences$.pipe(Ve(Tk),fg(function(b){var c=jk(b.map(function(d){return d.issueId}));return a.issueFullFridge.watchSet(c).pipe(y(function(d){return new Map(d.map(function(e){return[e==null?void 0:
e.issueId.toString(),e]}))}),y(function(d){return new Map(c.map(function(e){return[e,d.get(e)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(Ve(Tk),y(function(b){var c=new Map;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.issueId.toString();c.has(e)?c.get(e).push(d):c.set(e,[d])}return c}));this.allMentionedIssues$=Je([this.issueReferencesMap$,this.issuesMap$]).pipe(y(function(b){b=l(b);var c=b.next().value;b=b.next().value;return[].concat(p(b)).filter(function(d){return l(d).next().value!==
a.issueId}).map(function(d){var e=l(d);d=e.next().value;e=e.next().value;var f=c.get(d),h=f==null?void 0:f.map(function(k){var q,u,A=(q=k.comment)==null?void 0:(u=q.userPerformingActionUser)==null?void 0:u.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(A==null?void 0:A.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:kua(a.activeSession.getAppBaseUrl(),d),sourceComments:h,title:e==null?void 0:e.snapshot[0].title,priority:e?e.snapshot[0].priority:
null,relatedLinks:f}})}));this.mentionedIssuesToRender$=Je([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.paginate?b.slice(0,c):b.slice(0,5)}))};n6.prototype.getCommentNumberLink=function(a){return cNa(this.issueId,{comment:a})};n6.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
n6.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};ea.Object.defineProperties(n6.prototype,{issueReferences:{configurable:!0,enumerable:!0,set:function(a){this.issueReferences$.next(a)}},currentIssueId:{configurable:!0,enumerable:!0,set:function(a){this.currentIssueId$.next(a);this.issueId=a}}});n6.\u0275fac=function(a){return new (a||n6)};
n6.\u0275cmp=B({type:n6,selectors:[["b-mentioned-issues"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[3,"matTooltip","issuePriority"],[1,"issue-title-and-link"],[1,"padded-s-sides","title",3,"matTooltip"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-issues"],["type","button","mat-button","",1,"small","see-all-issues"],["type",
"button","mat-button","",1,"small","load-more-issues",3,"click"],["type","button","mat-button","",1,"small","see-all-issues",3,"click"]],template:function(a,b){a&1&&(E(0,rPb,2,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[uO,PA,Tx,YA,cB,m6,i6,Qv,o6]},styles:["table[_ngcontent-%COMP%]{width:100%;display:block}table[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;min-width:22px}.title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:50px}mentioned-link-with-context[_ngcontent-%COMP%]{min-width:100px}.issue-title-and-link[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.comment-author-and-number[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-column-gap:2px;-moz-column-gap:2px;column-gap:2px}b-issue-priority-display[_ngcontent-%COMP%]{min-height:24px;min-width:22px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.normal-link[_ngcontent-%COMP%]{text-decoration:underline}.see-all-issues[_ngcontent-%COMP%]{margin-left:-8px}"],
changeDetection:0});var o6=function(){};o6.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(Tk)};o6.\u0275fac=function(a){return new (a||o6)};o6.\u0275pipe=Lf({name:"toComments",type:o6,pure:!0,standalone:!1});var wPb=function(a,b){return b[0].href},p6=function(){var a=this;this.router=n(DA);this.route=n(sj);this.allLinks$=new ag(1);this.issueId$=new ag(1);this.lastRenderedRelatedLinkIndex$=new tj(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(y(function(b){return Sua(b,function(c){return c.href})}));this.linkGroupsToRender$=Je([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.paginate?APb(b,c):b.length===6?APb(b,
6):APb(b,5)}))};p6.prototype.ngOnInit=function(){};p6.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};ea.Object.defineProperties(p6.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("Hf");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return op(this.issueId$)}}});p6.\u0275fac=function(a){return new (a||p6)};
p6.\u0275cmp=B({type:p6,selectors:[["related-links-widget"]],inputs:{links:"links",issueId:"issueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[1,"related-link","flex-kids-x","align-items-center","gap-s","margin-xs-bottom"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-links"],["type","button","mat-button","",1,"small","see-all-links"],["type","button","mat-button","",1,"small","load-more-links",
3,"click"],["type","button","mat-button","",1,"small","see-all-links",3,"click"]],template:function(a,b){a&1&&(E(0,yPb,2,3),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[i6,PA,Tx,m6,Qv,q6]},styles:["comments-info[_ngcontent-%COMP%]{flex-shrink:1.5;min-width:5em;justify-content:end}mentioned-link-with-context[_ngcontent-%COMP%]{max-width:90%}"],changeDetection:0});
var zPb=gl(function(a){return Math.min.apply(Math,p(a.map(function(b){return b.sourceCommentNumber})))},hl),q6=function(){};q6.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(Tk)};q6.\u0275fac=function(a){return new (a||q6)};q6.\u0275pipe=Lf({name:"toComments",type:q6,pure:!0,standalone:!1});var EPb=function(){return[]},r6=function(){Z.apply(this,arguments);var a=this;this.activeSession=n(Es);this.userPreferencesManager=n(OG);this.issueInteractionsTracking=n(hL);this.issueFullFridge=n(EF);this.analytics=n(CF);this.eventsForIssueFridge=n(CE);this.similarIssuesApi=n(jO);this.issueEnrichmentFridge=n(OE);this.TabKeys=Tbd;this.issueId$=new ag(1);this.alwaysStartCollapsed=!1;this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}),Ve(Tk));this.commentNumberToEventMap$=
this.issueId$.pipe(fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}),y(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=Je([this.issue$,this.commentNumberToEventMap$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||
[]}));this.imageLinks$=this.relatedLinks$.pipe(y(function(b){return b.filter(qJa)}));this.distinctImageLinksCount$=this.imageLinks$.pipe(y(function(b){return ik(b,function(c){return tJa(c.href)})}),y(function(b){return b.length}));this.shouldShowImages$=this.imageLinks$.pipe(y(function(b){return a.activeSession.isInternalSession()&&Xbd(a,b)}));this.issues$=this.relatedLinks$.pipe(y(function(b){return b.filter(uJa)}));this.distinctIssuesCount$=this.issues$.pipe(y(function(b){return b.filter(function(c){return c.issueId!==
a.issueId})}),y(function(b){return ik(b,function(c){return c.issueId})}),y(function(b){return b.length}));this.shouldShowIssues$=this.distinctIssuesCount$.pipe(y(Boolean));this.otherLinks$=this.relatedLinks$.pipe(y(function(b){return b.filter(vJa)}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(y(function(b){return ik(b,function(c){return c.href})}),y(function(b){return b.length}));this.shouldShowLinks$=this.otherLinks$.pipe(y(function(b){return a.shouldShowLinks(b)}));this.similarIssueIds$=
this.issueId$.pipe(Ve(Tk),fg(function(b){return kO(a.similarIssuesApi,{issueId:Number(b)})}),y(function(b){return b.similarIssues}),hg(function(b){b.forEach(function(c){a.issueFullFridge.announce(c)})}),y(function(b){return b.map(function(c){return c.issueId})}),cg({bufferSize:1,refCount:!0}));this.similarIssuesEnrichments$=(this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession()&&Yr(this.activeSession,"enableSimilarIssuesEnrichments"))?this.issueId$.pipe(fg(function(b){return a.issueEnrichmentFridge.watch(b)}),
y(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e,f;return((f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]).length>0})})):Ce([]);this.shouldShowSimilarIssues$=Je([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.length>0||c.length>0}));this.tabKeys$=Je([this.shouldShowSimilarIssues$.pipe(y(function(b){return{show:b,key:"SW-similar-issues"}})),this.shouldShowImages$.pipe(y(function(b){return{show:b,
key:"SW-images"}})),this.shouldShowIssues$.pipe(y(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(y(function(b){return{show:b,key:"SW-links"}}))]).pipe(y(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));this.shouldShowSummaryCard$=this.tabKeys$.pipe(y(function(b){return!!b.length}),Wf(0,qp));this.initiallyExpandedTabs=TPb.map(function(b){return Ctc(a.userPreferencesManager,b)?void 0:b}).filter(Tk);this.onTabExpanded$=new LA;
this.issueSummaryTracking=new Ubd(this.issueInteractionsTracking,this.analytics)};Y(r6,Z);r6.\u0275dir=Z.\u0275dir;
r6.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(Sf(1E3),fg(function(b){var c=b.allTabKeys;var d=b.expandedTabKeys;return Btc(a.userPreferencesManager,Object.fromEntries(c.map(function(e){return[e,!d.has(e)]})))})).subscribe());this.subscriptions.add(this.tabKeys$.subscribe(function(b){var c=a.issueSummaryTracking,d=a.issueId;b=new Set(b);for(var e=l(b),f=e.next();!f.done;f=e.next())ws(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&ws(c.issueInteractionsTracking,d,"SW-available")}))};r6.prototype.shouldShowLinks=function(a){return a.length===0||a.every(function(b){return b.sourceCommentNumber===1})?!1:!0};var Xbd=function(a,b){if(b.length===0)return!1;b=b.every(function(c){var d;return c.sourceCommentNumber===1&&((d=c.comment)==null?void 0:d.formattingMode)==="MARKDOWN"});return PG(a.userPreferencesManager).showInlineImages&&b?!1:!0};
ea.Object.defineProperties(r6.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return op(this.issueId$)}}});r6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(r6)))(b||r6)}}();
r6.\u0275cmp=B({type:r6,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},standalone:!1,features:[kg],decls:4,vars:3,consts:[[1,"a11y-only"],["ariaLabel","issue summary sections",3,"tabKeys","expandedTabs"],["ariaLabel","issue summary sections",3,"expandedTabsChanged","contentShownChanged","tabKeys","expandedTabs"],["ariaLabel","Toggle screenshots summary section",3,"key"],["expandable-tab-icon",""],["expandable-tab-header",""],["expandable-tab-content",
""],["ariaLabel","Toggle mentioned issues summary section",3,"key"],["ariaLabel","Toggle links summary section",3,"key"],["ariaLabel","Toggle similar issues summary section",3,"key"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks"],[3,"click","issueId","imageLinks"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId"],[3,"click","issueReferences","currentIssueId"],["svgIcon","link",1,"icon-s"],[3,"click","links","issueId"],["svgIcon","spark_24px","color","primary",
1,"icon-s"],[3,"issueId","similarIssueIds","similarIssuesEnrichments"],[3,"click","issueId","similarIssueIds","similarIssuesEnrichments"]],template:function(a,b){a&1&&(I(0,"h3",0),Q(1,"Issue summary"),J(),E(2,UPb,17,6,"expandable-tabs",1),S(3,"async"));if(a&2){var c;z(2);F((c=T(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[aB,$S,XS,YS,ZS,aT,k6,n6,p6,wU,Qv],styles:["[_nghost-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{display:flex}issue-summary-chip[_ngcontent-%COMP%]{margin:0 4px}inline-images-summary[_ngcontent-%COMP%]{display:block}inline-images-summary.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     expandable-tabs .expandable-tabs-contents .SW-similar-issues{border-bottom:0;padding-bottom:8px}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var s6=function(){this.matDialog=n(tK)};s6.prototype.show=function(a){this.dialog=this.matDialog.open(t6,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return Ge(nK(this.dialog))};s6.\u0275fac=function(a){return new (a||s6)};s6.\u0275prov=Sc({token:s6,factory:s6.\u0275fac,providedIn:"root"});var t6=function(){Z.apply(this,arguments);this.data=n(sK);this.dialogService=n(s6);this.dialogRef=n(mK);this.statusUpdates=this.data.statusUpdates};Y(t6,Z);t6.\u0275dir=Z.\u0275dir;
t6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(gg(this.destroyed$)).subscribe(function(b){if(b.key==="Escape"){var c;(c=a.dialogService.dialog)==null||c.close()}});this.dialogRef.backdropClick().pipe(gg(this.destroyed$)).subscribe(function(){var b;(b=a.dialogService.dialog)==null||b.close()})};t6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(t6)))(b||t6)}}();
t6.\u0275cmp=B({type:t6,selectors:[["ng-component"]],standalone:!1,features:[kg],decls:9,vars:1,consts:[["mat-dialog-title",""],["tabindex","0","mat-dialog-content",""],[1,"history-list"],[1,"version"],["mat-dialog-actions",""],["type","button","mat-button","",3,"mat-dialog-close"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"version-header"],[1,"bv2-event-user-name",3,"model"],["mode","datetime",3,"timestamp"],[1,"muted","float-right","float-clear"],[1,"type-xs"],[1,"update-email"],
[3,"email"]],template:function(a,b){a&1&&(I(0,"h1",0),Q(1,"History for Status Update"),J(),I(2,"section",1)(3,"ul",2),Dg(4,VPb,19,12,"li",3,Cg),J()(),I(6,"footer",4)(7,"button",5),Q(8," Close "),J()());a&2&&(z(4),Eg(b.statusUpdates),z(3),D("mat-dialog-close",void 0))},dependencies:[ZL,PA,Tx,uK,wK,yK,xK,IJ,AL,zL,aJ,vL],styles:[".history-list[_ngcontent-%COMP%]{overflow:auto;padding:0}.history-list[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%]:first-child{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.version[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider);padding:8px 5px}.version-header[_ngcontent-%COMP%]{margin-left:40px}pre[_ngcontent-%COMP%]{cursor:auto;display:block;margin:20px 0 10px 40px;white-space:prewrap}b-formatted-date-time[_ngcontent-%COMP%]{float:right}.bv2-event-user-image-cell[_ngcontent-%COMP%]{padding-top:8px;padding-left:5px;margin:0}.update-email[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted)}\n/*# sourceMappingURL=status_update_history.css.map */"],
changeDetection:0});var Ybd=["noteContainer"],hQb=function(a){return[a]},Zbd={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},u6=function(){Z.apply(this,arguments);var a=this;this.activeSession=n(Es);this.analytics=n(CF);this.confirmationDialogService=n(AK);this.currentUser=n(vZ);this.editStatusUpdateDialogService=n(o0);this.errorHandler=n(DK);this.issueFullFridge=n(EF);this.issuePermissionService=n(lL);this.statusUpdateService=n(n0);this.statusUpdateHistoryDialogService=n(s6);this.userPreferencesManager=n(OG);
this.Freshness=Zbd;this.UiState=$bd;this.FormattingMode=Yk;this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions");this.issueId$=new ag(1);this.issue$=this.issueId$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}));this.componentId$=this.issue$.pipe(y(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(y(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.issue$.pipe(y(function(b){var c;
return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId}));this.isCollapsed=!1;this.statusUpdate$=this.issue$.pipe(y(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(Ve(Tk),y(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(y(function(b){var c;return(c=AJa(b==null?void 0:b.updateText))!=null?c:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(y(function(b){return((b==
null?void 0:b.updateText)||"").trim()===""}));this.freshnessIndicator$=Je([this.statusIsEmpty$,this.statusUpdate$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b)return 2;var d;b=(c==null?void 0:(d=c.updateTime)==null?void 0:d.seconds)||0;return Date.now()/1E3-b<86400?0:1}));this.uiState$=this.statusIsEmpty$.pipe(y(function(b){return b?1:2}),eg(0));this.formattingModeOverride$=new tj(void 0);this.formattingMode$=Je([this.statusUpdate$,this.formattingModeOverride$]).pipe(y(function(b){var c=
l(b);b=c.next().value;return(c=c.next().value)?c:(b==null?void 0:b.formattingMode)||"PLAIN"}));this.menuItems$=Je([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(y(function(b){var c=l(b);var d=c.next().value;var e=c.next().value;b=c.next().value;var f=c.next().value;c=c.next().value;var h=e!=null;e=e&&(e==null?void 0:e.updateText)!=="";var k=[];e&&k.push({type:"submenu",label:"View as",className:"view-as-format",
items:[{type:"select",label:"Classic",action:function(){a.formattingModeOverride$.next("PLAIN")},selected:c==="PLAIN"},{type:"select",label:"Markdown",action:function(){a.formattingModeOverride$.next("MARKDOWN")},selected:c==="MARKDOWN"},{type:"select",label:"Source",action:function(){a.formattingModeOverride$.next("LITERAL")},selected:c==="LITERAL"}]});b&&k.push({type:"action",label:"Edit Status Update",action:function(){a.editStatusUpdate()}});h&&k.push({type:"action",label:"Show editing history",
action:function(){acd(a,d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Oi("\n                    Deleting a Status Update will remove it from the history. It\n                    will be purged after 30 days. This cannot be undone."),confirmButtonText:"Delete",onConfirm:function(){a.doDelete()}})}});k.push(bcd);return k}));this.showEditButton$=this.issuePermissionService.hasAclToEdit$};Y(u6,Z);
u6.\u0275dir=Z.\u0275dir;u6.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(a.uiState$.pipe(Ve(function(e){return e!==0}))),2);b=d.yieldResult;c=jQb(b);a.analytics.trackEvent("issue","statusUpdateDisplay",c);ze(d)})},1E3)};u6.prototype.ngAfterViewInit=function(){var a;((a=this.noteContainer)==null?void 0:a.nativeElement.scrollHeight)>84&&(this.isCollapsed=!0)};
u6.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:return x(u,Ge(a.issueId$),2);case 2:return b=u.yieldResult,x(u,Ge(a.componentId$),3);case 3:return c=u.yieldResult,d={issueId:b,updateText:"",version:-1},x(u,Ge(a.statusUpdate$),4);case 4:return f=(e=u.yieldResult)!=null?e:d,x(u,Ge(a.accessLevel$),5);case 5:return h=u.yieldResult,k=h==="INTERNAL"?"INTERNAL":"EXTERNAL",x(u,a.editStatusUpdateDialogService.show(f,k,c),6);case 6:q=u.yieldResult;
if(q==null)return u.return();a.statusUpdateService.update(q).subscribe(function(A){a.didSave(b,A);a.enableLiteralModeRevisions&&ztc(a.userPreferencesManager,A.formattingMode||"PLAIN").subscribe()},function(A){a.errorHandler.errorHandler(null,A)});ze(u)}})};
var YPb=function(a){var b,c;return w(function(d){if(d.nextAddress==1)return x(d,Ge(a.issueId$),2);if(d.nextAddress!=3)return b=d.yieldResult,x(d,Ge(a.statusUpdate$),3);c=d.yieldResult;if(!c)return d.return();a.statusUpdateService.update(c).subscribe(function(e){a.didSave(b,e)},function(e){a.errorHandler.errorHandler(null,e)});ze(d)})};u6.prototype.didSave=function(a,b){this.issueFullFridge.manualUpdate(a,function(c){c.statusUpdate=b});this.issueFullFridge.poke(a)};
var acd=function(a,b){var c;w(function(d){if(d.nextAddress==1)return x(d,Ge(B4c(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);ze(d)})};u6.prototype.doDelete=function(){var a=this,b;w(function(c){if(c.nextAddress==1)return x(c,Ge(a.issueId$),2);b=c.yieldResult;a.statusUpdateService.delete(b).subscribe(function(){a.issueFullFridge.manualUpdate(b,function(d){d.statusUpdate=void 0});a.issueFullFridge.poke(b)});ze(c)})};
ea.Object.defineProperties(u6.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});u6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(u6)))(b||u6)}}();
u6.\u0275cmp=B({type:u6,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&Wg(Ybd,5);if(a&2){var c;$g(c=ah())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[kg],decls:2,vars:3,consts:[["userCard",""],["noteContainer",""],[3,"display-none","short-height","class"],["svgIcon","group","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-kids-x","space-between","align-items-center"],[1,"flex-1-hemmed"],[1,"uppercase","inline-block","margin-s-right"],[1,"empty-message",
"muted","margin-s-right"],["type","button","mat-stroked-button","","aria-label","Edit Status Update","color","primary",1,"small"],["type","button","mat-stroked-button","","aria-label","Edit Status Update","color","primary",1,"small",3,"click"],[1,"flex-kids-x","space-between"],[1,"left"],[1,"uppercase","inline-block","margin-xs-right"],[1,"edit-info","right"],["matTooltip","Status Update actions",3,"buttonLabel","menuItems"],[1,"pos-rel"],["type","button","mat-stroked-button","","aria-label","Edit Status Update",
"color","primary",1,"small","margin-xs-right",3,"click"],["type","button","mat-button","","aria-label","Mark Status Update as fresh","color","primary",1,"small","margin-xs-right","mark-fresh"],["type","button","mat-button","","aria-label","Mark Status Update as fresh","color","primary",1,"small","margin-xs-right","mark-fresh",3,"click"],["matTooltip","Last update made within 24 hours","svgIcon","check_circle_filled_24px",1,"fresh-checkmark"],[3,"onedevHovercardTrigger"],["mode","relativepast",1,"margin-s-right",
3,"timestamp"],[3,"email"],[3,"issueId","issueAccessLevel","note","formattingMode"],["type","button","mat-stroked-button","","color","primary",1,"small","show-more"],["type","button","mat-stroked-button","","color","primary",1,"small","show-more",3,"click"]],template:function(a,b){a&1&&(E(0,iQb,5,13,"div",2),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.uiState$))?0:-1,c)}},dependencies:[KS,RO,aB,ZL,fJ,lJ,tL,PA,Tx,YA,cB,Qv,DQ],styles:['.collapsed[_ngcontent-%COMP%]{max-height:84px;overflow:hidden}.collapsed[_ngcontent-%COMP%]:after{content:"";height:40px;left:auto;position:absolute;top:44px;width:100%;background:-webkit-gradient(linear,left top,left bottom,from(transparent),to(var(--surface-default)));background:-webkit-linear-gradient(transparent,var(--surface-default));background:linear-gradient(transparent,var(--surface-default))}.fresh-checkmark[_ngcontent-%COMP%]{color:#1e8e3e;color:var(--good-gfx);vertical-align:middle;margin:0;margin-bottom:3px}.short-height[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}']});
var $bd={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},bcd={type:"action",label:"Using the Status Update field...",action:function(){fi(window,"https://developers.google.com/issue-tracker/concepts/status-update","_blank")},icon:"help-outline",className:"border-top"};var v6=function(){Z.apply(this,arguments);var a=this;this.brain=n(jL);this.preferences=n(OG);this.scrollTiming=n(BZ);this.analytics=n(CF);this.element=n(ff);this.editIssueService=n(oL);this.appEvents=n(nD);this.routePerformance=n(WX);this.clearcut=n(vF);this.activeSession=n(Es);this.issuePermissionService=n(lL);this.id$=this.brain.id$;this.issueAndEvents$=Je([this.brain.issueJs$.pipe(Ve(Boolean)),this.brain.eventsJs$]);this.enableGoosePrompting=Yr(this.activeSession,"enableGoosePrompting")&&this.activeSession.isInternalSession();
this.enableGoosePromptingSupportedIssues=Yr(this.activeSession,"enableGoosePromptingSupportedIssues")&&this.activeSession.isInternalSession();this.enableIDPCanonicalRecommendation=Yr(this.activeSession,"enableCanonicalDupe")&&this.activeSession.isInternalSession();this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(Ve(Tk),fg(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));this.finishedRendering$=Je([this.brain.eventsJs$.pipe(Wf(0)),$Ba("#AddCommentBox textarea",this.element.nativeElement)]).pipe(Uf())};
Y(v6,Z);v6.\u0275dir=Z.\u0275dir;
v6.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(Ve(Tk),gg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){ccd(a)});$Ba("#comment1 .critical-feature",this.element.nativeElement).pipe(gg(this.destroyed$)).subscribe(function(){var b=function(){x0c(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.issueAndEvents$.pipe(Zf()).subscribe(function(b){var c=l(b);
b=c.next().value;c=c.next().value;dcd(a,b,c)}));this.subscriptions.add(this.finishedRendering$.pipe(ig(this.comment$)).subscribe(function(b){b=l(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var dcd=function(a,b,c){var d=c.map(function(f){return f.isCommentEvent}),e=xya(b,c).length;b=yya(b,c);d=d.filter(Boolean).length;e=e>=5||d>=10||b>=10?"collab":"other";Wqc(a.clearcut,"view_idp_"+e);Qo("dimension10",e);c=c.some(function(f){var h,k,q;return((q=(h=f.commentReactions)==null?void 0:(k=h.get("UPVOTE"))==null?void 0:k.count)!=null?q:0)>0});a.analytics.trackEvent("editIssue","view",c?"hasUpvoteReaction":"noUpvoteReaction")},ccd=function(a){var b=a.scrollTiming;if((b=b.scrollTimingMap.has("flex-1 pos-rel bg-off-main overflow overflow-on-print-media")?
b.scrollTimingMap.get("flex-1 pos-rel bg-off-main overflow overflow-on-print-media"):[])&&!(b.length<2)){for(var c=b[0],d=b[0],e=0,f=1;f<b.length;f++)b[f]-d<2E3||(e+=d-c,c=b[f]),d=b[f],f===b.length-1&&(e+=b[f]-c);a.analytics.trackEvent("editIssue","scroll","commentThread",e);wF(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};v6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(v6)))(b||v6)}}();
v6.\u0275cmp=B({type:v6,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&M("unload",function(){ccd(b)},hf)},standalone:!1,features:[kg],decls:7,vars:10,consts:[["canonicalRecommendation",""],["issueSummaryCard",""],["id","bv2-edit-issue-details-scroll","tabindex","-1",3,"bFocus"],[1,"carded","margined-s","bg-main",3,"issueId","hidden"],[1,"carded","margined-s","bg-main",3,"recent-first"],[1,"margin-s-sides","margin-s-top","padded-left",3,"id"],[1,"rounded","margined-s",3,"hidden","currentIssueId"],
[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"rounded","margined-s",3,"currentIssueId"],[1,"carded","margined-s","bg-main",3,"issueId"],[1,"carded","margined-s","bg-main"],[3,"id"]],template:function(a,b){a&1&&(I(0,"div",2),E(1,mQb,6,7),S(2,"async"),E(3,nQb,3,5,"issue-summary-card",3),S(4,"async"),E(5,qQb,5,5,"div",4),S(6,"async"),J());if(a&2){var c,d,e;D("bFocus",!0);z();F((c=T(2,4,b.id$))?1:-1,c);z(2);F((d=T(4,6,b.id$))?3:-1,d);z(2);F((e=T(6,
8,b.id$))?5:-1,e)}},dependencies:[h6,eU,xO,c6,RT,f6,r6,WV,u6,b6,Qv],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var w6=function(){};w6.\u0275fac=function(a){return new (a||w6)};w6.\u0275mod=Jf({type:w6});w6.\u0275inj=Tc({imports:[ZB,Ly,$B,$K,ZM,aN,GQ,XM]});var x6=function(){};x6.\u0275fac=function(a){return new (a||x6)};x6.\u0275mod=Jf({type:x6});x6.\u0275inj=Tc({imports:[ZB,RL,$K,GM,$B,vM,AQ,Ly,My,rY,cC,cx]});var y6=function(){Z.apply(this,arguments);this.prefs=n(OG)};Y(y6,Z);y6.\u0275dir=Z.\u0275dir;y6.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(gg(this.destroyed$)).subscribe()};y6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(y6)))(b||y6)}}();
y6.\u0275cmp=B({type:y6,selectors:[["b-toggle-code-font"]],standalone:!1,features:[kg],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"change","checked"]],template:function(a,b){a&1&&(Ng(),I(0,"mat-slide-toggle",0),S(1,"async"),M("change",function(c){return b.onChange(c)}),Og(2),J());a&2&&D("checked",T(1,1,b.prefs.codeFont$))},dependencies:[cH,dH,YA,cB,Qv],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var z6=function(){};z6.\u0275fac=function(a){return new (a||z6)};z6.\u0275mod=Jf({type:z6});z6.\u0275inj=Tc({imports:[ZB,$B,GM,$K,fH,AQ,cC,QN]});var A6=function(){};A6.\u0275fac=function(a){return new (a||A6)};A6.\u0275mod=Jf({type:A6});A6.\u0275inj=Tc({providers:[AS],imports:[ZB,HQ,$B,cC,x6,hV,WJ,TQ,JW,aR,UQ,KW,z6,rY]});var B6=function(){};B6.\u0275fac=function(a){return new (a||B6)};B6.\u0275mod=Jf({type:B6});B6.\u0275inj=Tc({imports:[ZB,$B,AQ]});var C6=function(){};C6.\u0275fac=function(a){return new (a||C6)};C6.\u0275mod=Jf({type:C6});C6.\u0275inj=Tc({imports:[BQ,ZB,FW,zW,aR,KW,$B,cC,QN,rY,B6,FL,AQ,HW]});var D6=function(){};D6.\u0275fac=function(a){return new (a||D6)};D6.\u0275mod=Jf({type:D6});D6.\u0275inj=Tc({imports:[ZB,$B,cC,$Q]});var E6=function(){};E6.\u0275fac=function(a){return new (a||E6)};E6.\u0275mod=Jf({type:E6});E6.\u0275inj=Tc({imports:[BQ,ZB,dM,$B,LH,cC,aR,UQ,jX,D6]});var F6=function(){};F6.\u0275fac=function(a){return new (a||F6)};F6.\u0275mod=Jf({type:F6});F6.\u0275inj=Tc({imports:[ZB,WJ,uL,FQ]});var G6=function(){};G6.\u0275fac=function(a){return new (a||G6)};G6.\u0275mod=Jf({type:G6});G6.\u0275inj=Tc({imports:[F6,ZB,WJ,uL,$B,FQ,XH]});var H6=function(){};H6.\u0275fac=function(a){return new (a||H6)};H6.\u0275mod=Jf({type:H6});H6.\u0275inj=Tc({imports:[BQ,ZB,VB]});var I6=function(){};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275mod=Jf({type:I6});I6.\u0275inj=Tc({imports:[ZB,UQ,$B,cC,H6,XJ,F6]});var J6=function(){};J6.\u0275fac=function(a){return new (a||J6)};J6.\u0275mod=Jf({type:J6});J6.\u0275inj=Tc({imports:[F6,ZB,$B,H6]});var K6=function(){};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275mod=Jf({type:K6});K6.\u0275inj=Tc({imports:[ZB,tW,G6,I6,J6,RW]});var L6=function(){};L6.\u0275fac=function(a){return new (a||L6)};L6.\u0275mod=Jf({type:L6});L6.\u0275inj=Tc({imports:[$K,GM,ZB,yx,$B,BQ,cV]});var M6=function(){};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275mod=Jf({type:M6});M6.\u0275inj=Tc({imports:[BQ,ZB]});var N6=function(){};N6.\u0275fac=function(a){return new (a||N6)};N6.\u0275mod=Jf({type:N6});N6.\u0275inj=Tc({imports:[ZB,dM,$B,$K,yx,XJ,FQ,M6,FL]});var O6=function(){};O6.\u0275fac=function(a){return new (a||O6)};O6.\u0275mod=Jf({type:O6});O6.\u0275inj=Tc({imports:[QT,BQ,ZB,dM,L6,WJ,uL,$B,cC,FQ,N6,M6]});var P6=function(){};P6.\u0275fac=function(a){return new (a||P6)};P6.\u0275mod=Jf({type:P6});P6.\u0275inj=Tc({imports:[ZB,SJ,sA,E6,Ly,$B,$K,fO,My,IW,yO,A6,zW,C6,K6,I6,hW,XH,O6,FL,QN,HW,w6]});var ecd=function(){var a=this;this.activeSession=n(Es);this.issueFullFridge=n(EF);this.issueDetailsBrain=n(jL);this.eventsForIssueFridge=n(CE);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(fg(function(b){return a.issueFullFridge.watch(b)}),Ve(Tk));this.commentNumberToEventMap$=this.issue$.pipe(y(function(b){return b.issueId}),fg(function(b){return a.eventsForIssueFridge.watch(b)}),y(function(b){var c;return(c=b==null?void 0:b.events)!=null?
c:[]}),y(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=Je([this.issue$,this.commentNumberToEventMap$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(y(function(b){return b.filter(uJa)}));this.imageLinks$=
this.relatedLinks$.pipe(y(function(b){return b.filter(qJa)}));this.otherLinks$=this.relatedLinks$.pipe(y(function(b){return b.filter(vJa)}))};ecd.\u0275fac=function(a){return new (a||ecd)};
ecd.\u0275cmp=B({type:ecd,selectors:[["b-issue-resources"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks","paginate"],[1,"margin-bottom"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId","paginate"],["svgIcon","link",1,"icon-s"],[3,"links","issueId","paginate"]],template:function(a,b){a&1&&(I(0,"section",0),E(1,yQb,6,9),S(2,"async"),J());if(a&2){var c;z();F((c=T(2,1,b.issue$))?1:-1,c)}},dependencies:[aB,
n6,k6,p6,Qv],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var Q6=function(){};Q6.\u0275fac=function(a){return new (a||Q6)};Q6.\u0275mod=Jf({type:Q6});Q6.\u0275inj=Tc({imports:[ZB,I6,G6,J6]});var R6=function(){var a=this;this.brain=n(jL);this.codeMentions=n(RX);this.imageUrls=n(qN);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(Ve(Tk));this.codeMentionsState$=this.id$.pipe(fg(function(b){return t0c(a.codeMentions,b)}))};R6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};R6.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};R6.\u0275fac=function(a){return new (a||R6)};
R6.\u0275cmp=B({type:R6,selectors:[["issue-todos"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],[1,"empty-state","layout-centered-column","gap"],[3,"issueId","packageMentionSet","displayPackageName"],[1,"margin-top"],["target","_blank",3,"click","href"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"]],template:function(a,b){a&1&&(I(0,"section",0),E(1,DQb,2,3),S(2,"async"),J());if(a&2){var c;
z();F((c=T(2,1,b.id$))?1:-1,c)}},dependencies:[A9c,Qv],styles:["[_nghost-%COMP%]{display:block;padding:8px}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}[_nghost-%COMP%]     .bv2-package-mention-set{height:auto}[_nghost-%COMP%]     .bv2-package-mention-set li{white-space:nowrap;margin-bottom:4px}\n/*# sourceMappingURL=issue_todos.css.map */"]});var S6=function(){this.cdr=n(NA,{self:!0});this.errorHandler=n(DK);this.currentUserBookmarksFridge=n(OD);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=Fq.createHotlist.makeHref()};S6.prototype.ngOnInit=function(){this.fetchUserHotlists()};S6.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;Ge(PD(this.currentUserBookmarksFridge)).then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
S6.\u0275fac=function(a){return new (a||S6)};
S6.\u0275cmp=B({type:S6,selectors:[["list-hotlists-page"]],standalone:!1,features:[hh([NA])],decls:8,vars:2,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[3,"large"],[3,"hotlists"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1,"Browse Hotlists"),J(),I(2,"div",1)(3,"a",2),Q(4," Create Hotlist "),J()(),I(5,"div",3),E(6,EQb,1,1,"b-spinner",4)(7,FQb,1,1,"b-hotlist-grid",5),J());a&2&&(z(3),D("href",b.createHotlistPath,uf),z(3),
F(b.isLoading?6:7))},dependencies:[X0,ON,PA,Tx],encapsulation:2});var fcd=new Set(["issueId","modifiedTime","createdTime"]),T6=function(){Z.call(this);var a=this;this.cdr=n(NA);this.routerEvents=n(BF);this.window=n(jK);this.bLocation=n(cI);this.$log=n(MA);this.issueApi=n(BE);this.hotlistApi=n(ED);this.activeSession=n(Es);this.butterBar=n(iK);this.analytics=n(CF);this.appSearchState=n(mX);this.issuePagination=n(OY);this.userPreferencesManager=n(OG);this.urlPreferences=n(Z0);this.gridPreferencesFetcher=n(b1);this.paths=n(EN);this.timeout=n(fE);this.errorHandler=n(DK);
this.statusMessages=n(JK);this.domSafe=n(rL);this.appEvents=n(nD);this.hotlistFridge=n(JD);this.issueFullFridge=n(EF);this.batchIssueRelationshipsService=n(l2);this.componentFridge=n(jD);this.currentUserBookmarksFridge=n(OD);this.implicitTriageService=n(KG);this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=this.cachedSort=
null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];var b=[{keys:["j"],displayAs:"j",description:"Move to the next issue",onPress:function(){var c;(c=a.resultsGrid)==null||vvb(c)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var c;(c=a.resultsGrid)==null||wvb(c)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var c;(c=a.resultsGrid)==null||o5c(c)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",
onPress:function(){var c;(c=a.resultsGrid)==null||q5c(c)}},{keys:[vp("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var c;(c=a.resultsGrid)==null||r5c(c,!0)}},{keys:[vp("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var c;(c=a.resultsGrid)==null||r5c(c,!1)}},{keys:[wp("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var c;(c=a.resultsGrid)==null||c.selectAll()}},{keys:[wp("*","n")],displayAs:"* then n",
description:"Deselect all issues on this page",onPress:function(){var c;(c=a.resultsGrid)==null||l5c(c)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var c;(c=a.gridControls)==null||E_(c,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var c;(c=a.gridControls)==null||E_(c,qva,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var c;if((c=a.gridControls)!=null&&c.hasSelectedIssues()){var d;(d=c.hotlistPicker)==
null||d.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var c;(c=a.gridControls)==null||l3c(c)}},{keys:["u",vp("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[wp("p","0"),wp("p","1"),wp("p","2"),wp("p","3"),wp("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(c){a.resultsGrid&&a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+c}],issueIds:a.resultsGrid.getSelectedIssues().map(function(d){return d.issueId})}])}},
{keys:[JIa("ENTER")],displayAs:"Ctrl+Enter",description:"Open current issue in new tab",onPress:function(){var c=a.window.document.activeElement;if(c.tagName==="A"){var d=a.paths.getBaseUrl();if(c.href&&!c.href.startsWith(d)){a.domSafe.openInNewTab(c.href);return}}var e;(e=a.resultsGrid)==null||H0(e,{openInNewTab:!0})}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(c){var d=a.window.document.activeElement,e;if(d){var f=(e=xma(G0))==null?void 0:e.selector;
e=f?(d==null?void 0:d.closest(f))!=null:!1}else e=!1;if(c===1&&d.tagName==="A")if(d.href)c=a.paths.getBaseUrl(),d.href.startsWith(c)?a.bLocation.setUrl(d.href.slice(c.length)):a.domSafe.openInNewTab(d.href);else{var h;(h=a.resultsGrid)==null||H0(h)}else if(c===2){var k;(k=a.resultsGrid)==null||H0(k,{openInNewTab:!0})}else if(e){var q;(q=a.resultsGrid)==null||H0(q)}}}];Yr(this.activeSession,"enableIssueSidebar")&&b.push({keys:[vp("o"),vp("ENTER")],displayAs:"Shift+o / Shift+Enter",description:"Toggle current issue in sidebar",
onPress:function(c){var d=a.window.document.activeElement;c===1&&d.tagName==="A"&&d.href?Lq(a.domSafe,d.href):(c=a.resultsGrid)!=null&&(c.isIssueSidebarOpen=!c.isIssueSidebarOpen,c.cdr.detectChanges())}});this.BASE_HOTKEYS=b};Y(T6,Z);
T6.prototype.ngOnInit=function(){var a=this;gcd(this);this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.routerEvents.routeUpdate.pipe(gg(this.destroyed$)).subscribe(function(){gcd(a)})};var hcd=function(a){var b=[].concat(p(f4c));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(Ur).filter(Tk)};
T6.prototype.fetchUserHotlists=function(){var a=this;Ge(PD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.hotlistMap[c.hotlistId];Pj(d,c)||(d&&Za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var gcd=function(a){return icd(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),jcd(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})};
T6.prototype.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new ke;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(Ve(Tk),gg(this.destroyed$)).subscribe(function(d){var e;return w(function(f){if(f.nextAddress==1)return b.searchResults?x(f,Ge(b.componentFridge.watch(d.snapshot[0].componentId,{trustUncertainMemory:!0})),3):f.jumpTo(2);if(f.nextAddress!=2){e=f.yieldResult;
if(!e||!b.searchResults)return f.return();Y0c(b.searchResults,[{issue:d,component:e}]);b.searchResults=b.searchResults.clone()}b.cdr.detectChanges();ze(f)})}))};
var kcd=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},icd=function(a){var b=gk();kcd(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},jcd=function(a,b,c){var d=gk();kcd(a)||lcd(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},mcd=function(a,b){if(b.maySkipResults){b=Pi(["Too many matching results. Some issues may be omitted.",Qi("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=Qi("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Pi([Qi("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Pi([b,c]):b;WDc(a.butterBar,b)}};g=T6.prototype;
g.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Ur(a);if(d){var e=new Wr(d,b==="ASC"?"ASCENDING":"DESCENDING");$a(this.sortPreferences,function(f){return Pj(f.fieldId,e.fieldId)});!c||fcd.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type==="CUSTOM_FIELD"?String(a.fieldId.customFieldId):Tj(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};Pj(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){a1(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=b===void 0?ncd:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(p(b),p(lrb(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ur(b.name)});a1(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&((d=c.target)==null?void 0:d.tagName)==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=Hq(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Lq(this.domSafe,a):this.bLocation.setUrl(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var xs=function(a,b,c){b!==void 0&&a.goToPage(b+c)};g=T6.prototype;g.refreshResults=function(){f1c(this.issuePagination);return gcd(this)};
g.hasResults=function(){return this.searchResults&&this.searchResults.issues.length>0};
g.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=l(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;(f=this.searchResults)==null||Z0c(f,e,d)}this.cdr.detectChanges();Mq(this.butterBar,"Saving changes...",0);return GF(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){for(var q=l(a[0].issueIds),u=q.next();!u.done;u=
q.next()){u=u.value;var A=void 0,G=void 0;(A=c.searchResults)==null||Z0c(A,u,void 0,(G=k)!=null?G:null)}Mq(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(k){for(var q=l(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var A=void 0;(A=c.searchResults)==null||Z0c(A,u)}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=PMa(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));
var h={bulkEditOps:a};Mq(this.butterBar,"Saving changes...",0);return a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="parentId"?this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(k){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var q=l(c.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var A=l(u.value);u=A.next().value;A=A.next().value;k.finishedIssues[A.issueId]&&(u=c.searchResults.issues[u],Mcb(u,k.finishedIssues[A.issueId],null),
c.loadHotlists(u),Object.assign(c.customFieldMap,u.customFieldMap))}c.cdr.detectChanges()}A=a[0];q=k.notFinishedIssueIds;u=String(A.actions[0].value);A=A.actions[0].actionType;if(A!=="ADD"&&A!=="REMOVE")throw Error("wf");q.length?(c.butterBar.showWarning("Failed to update issue(s) "+q.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+q.length)):Mq(c.butterBar,(A==="ADD"?"Added child issue(s) to parent ["+u+"]":"Removed child issue(s) from parent ["+u+"]")+" on "+String(Object.keys(k.finishedIssues).length)+
" issues.");c.cdr.detectChanges()}).catch(function(k){c.errorHandler.errorHandler(null,k)}):this.issueApi.issueBulkEdit(h,b).then(function(k){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var q=l(c.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var A=l(u.value);u=A.next().value;A=A.next().value;k.affectedIssues[A.issueId]&&(A=k.affectedIssues[A.issueId],u=c.searchResults.issues[u],Mcb(u,A,k.componentMap[Ua(A.snapshot).componentId]),c.loadHotlists(u),Object.assign(c.customFieldMap,
u.customFieldMap))}c.cdr.detectChanges()}k.errors&&k.errors.length?(q="Failed to update issue(s) "+(Iya(k.errors)+"."),c.butterBar.showWarning(q),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(q=FEc(c.statusMessages,h,c.customFieldMap))?Mq(c.butterBar,q):Mq(c.butterBar,"Saved "+QMa(h.bulkEditOps).length+" issue(s).");q=new Map;u=l(h.bulkEditOps);for(A=u.next();!A.done;A=u.next()){A=A.value;for(var G=l(A.issueIds),H=G.next();!H.done;H=G.next()){H=H.value;var N=void 0,
O=(N=q.get(H))!=null?N:[];O.push.apply(O,p(A.actions));q.set(H,O)}}var U;k=l((U=k.errors)!=null?U:[]);for(U=k.next();!U.done;U=k.next())q.delete(U.value.issueId);U=l(q.entries());for(k=U.next();!k.done;k=U.next())q=l(k.value),k=q.next().value,q=q.next().value,wtc(c.implicitTriageService,k,q);c.cdr.detectChanges()}).catch(function(k){c.errorHandler.errorHandler(null,k)})};
g.loadHotlists=function(a){var b=this;a=l(a?[a]:this.searchResults?this.searchResults.issues:[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.hotlistId)break;c=l(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)}).catch(function(){})}};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Mq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Mq(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Mq(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");sL(this.domSafe,this.getCsvUrl())};
g.saveResultsPerPage=function(a){var b=this;this.userPreferencesManager.save({resultsPerPage:a}).pipe(gg(this.destroyed$)).subscribe(function(){b.resultsPerPage=a;a1(b.urlPreferences,{page:1});b.analytics.trackEvent(b.ANALYTICS_CATEGORY,"resultsPerPageSave",a.toString());b.refreshResults();b.cdr.detectChanges()},function(c){Lj(c)})};
var lcd=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{h1c(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})},NQb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
ea.Object.defineProperties(T6.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Pj(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",sGa(this.issueColumnsInternal.map(function(b){return b.toString()}),a.map(function(b){return b.toString()}))),this.issueColumnsInternal=a,this.saveColumns(this.issueColumns.slice(this.metaColumns.length)))}}});var ncd=[I0,J0,K0];
T6.\u0275fac=function(a){return new (a||T6)};T6.\u0275dir=Kf({type:T6,features:[kg]});var JQb=function(){return{q:"status:open"}},U6=function(){T6.apply(this,arguments);this.hotkeys=n(nH);this.pageTitle=n(PY);this.routePerformance=n(WX);this.element=n(ff);this.imageUrls=n(qN);this.ANALYTICS_CATEGORY="listIssues";this.isLoading=!0;this.showHotlists=!1;this.SPACE_EMPTY_STATE=this.imageUrls.SPACE_EMPTY_STATE;this.currentTracker=this.activeSession.getTracker();this.cancelConcurrentlyRunningSearches$=new bg};Y(U6,T6);U6.\u0275dir=T6.\u0275dir;g=U6.prototype;
g.ngOnInit=function(){var a=this;T6.prototype.ngOnInit.call(this);this.subscriptions.add(oH(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
g.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),this.butterBar.showWarning(b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",nX(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,a1(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);nX(this.appSearchState,
this.query);b=g_c(this.appSearchState);if(b>0)return rwc(this.bLocation,Fq.viewHotlist.makeHref(b)),a1(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=h_c(this.appSearchState);if(b>0)return rwc(this.bLocation,this.paths.viewSavedSearch(b)),a1(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add(Ne(Se(0).pipe(Lja()),$Ba("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){x0c(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().then(function(c){c&&(a.isLoading=!1,a.cdr.detectChanges())}).catch(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(){var a=this;this.cancelConcurrentlyRunningSearches$.next(new ocd);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:hcd(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=Qj(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return c1c(a.issuePagination,f)}),Ge(this.cancelConcurrentlyRunningSearches$)]),d;((d=this.query)==null?0:d.includes("teamid:"))&&this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"searchByTeam");var e;((e=this.query)==null?0:e.includes("componentid:"))&&this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"searchByComponent");c.then(function(f){f instanceof ocd||mcd(a,f)}).catch(function(f){typeof f==="number"?a1(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Yi({searchResultsPage:c,displayColumns:b}).then(function(f){var h=f.searchResultsPage;if(h instanceof ocd)return!1;a.searchResults=h;a.page=h.params.page;a.sortPreferences=
h.params.sortColumns||[];a.loadHotlists();a.cdr.detectChanges();a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")");return!0})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ur(b.name)});Dtc(this.userPreferencesManager,mrb(a)).pipe(gg(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.appSearchState.currentQuery===d_c(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.appSearchState.currentQuery==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.appSearchState.currentQuery==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.appSearchState.currentQuery===f_c(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
g.saveSortColumns=function(a){var b=this,c=this.bLocation.search(),d=a.map(function(e){return{column:e.fieldId,order:e.direction}});this.userPreferencesManager.saveSortColumns(d).pipe(gg(this.destroyed$)).subscribe(function(){a1(b.urlPreferences,{sortColumns:a,page:1});NQb();var e=b.bLocation.search();Pj(c,e)&&b.refreshResults()})};g.getCsvUrl=function(){return TUa(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
U6.\u0275fac=function(){var a;return function(b){return(a||(a=fe(U6)))(b||U6)}}();
U6.\u0275cmp=B({type:U6,selectors:[["list-issues-page"]],standalone:!1,features:[hh([NA]),kg],decls:10,vars:7,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view"],[1,"bv2-view-loading"],["id","no-results","tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap",3,"bFocus"],[1,"bv2-grid-container"],
["aria-hidden","true","alt","",1,"empty-state-img",3,"src"],["routerLink","/issues",3,"queryParams"],["href","https://developers.google.com/issue-tracker/concepts/searches","target","_blank"],[3,"init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns","enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1,"Issue search results"),J(),I(2,"div",1)(3,"b-grid-controls",2),M("init",function(c){return b.gridControls=
c})("onRefresh",function(){return b.refreshResults()})("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)})("onExportCsv",function(){return b.exportCsv()}),J(),I(4,"div",3)(5,"b-pagination",4),M("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return b.saveResultsPerPage(c.option)}),J()()(),I(6,"div",5),E(7,GQb,4,1,"div",
6),E(8,MQb,6,4,"div",7),E(9,OQb,2,6,"div",8),J());a&2&&(z(3),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),z(2),D("searchResults",b.searchResults),z(),ng("aria-busy",b.isLoading),z(),F(b.isLoading?7:-1),z(),F(b.isLoading||b.hasResults()?-1:8),z(),F(!b.isLoading&&b.hasResults()?9:-1))},dependencies:[N0,B1,G0,FA,ON,xO],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});
var ocd=function(){},V6=function(){};V6.\u0275fac=function(a){return new (a||V6)};V6.\u0275mod=Jf({type:V6});V6.\u0275inj=Tc({imports:[W0,C1,z1,kR,ZB,QN,yO,Ly,MH,eY,rX]});var W6=function(){this.cdr=n(NA,{self:!0});this.sloApi=n(rG);this.errorHandler=n(DK);this.activeSession=n(Es);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=Fq.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};W6.prototype.ngOnInit=function(){this.sloEnabled&&pcd(this)};
var pcd=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.isArchived});a.archivedSlos=b.filter(function(c){return c.isArchived});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};W6.\u0275fac=function(a){return new (a||W6)};
W6.\u0275cmp=B({type:W6,selectors:[["list-slos-page"]],standalone:!1,features:[hh([NA])],decls:7,vars:3,consts:[[1,"kd-appbar","kd-buttonbar"],["mat-button","",1,"no-visited-no-active",3,"href"],[1,"bv2-view"],[1,"padded-sides"],[3,"large"],[1,"muted"],[3,"slos"],[1,"slos-note"],["type","button",1,"unstyled-button","clickable-row",2,"width","100%",3,"click"],[1,"margined"],[1,"icon-s","vertical-centered",3,"svgIcon"],[1,"conditional-slo-grid"],[1,"muted","padded"]],template:function(a,b){a&1&&(I(0,
"div",0)(1,"a",1),Q(2," Create SLO "),J()(),I(3,"div",2),E(4,PQb,5,0,"div",3),E(5,QQb,1,1,"b-spinner",4)(6,WQb,7,6),J());a&2&&(z(),D("href",b.createSloPath,uf),z(3),F(b.sloEnabled?4:-1),z(),F(b.isLoading?5:6))},dependencies:[aB,PA,Tx,g2,ON],encapsulation:2});var tCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tCa,V);g=tCa.prototype;g.getAuthor=function(){return X(this,Kk,1)};g.setAuthor=function(a){W(this,Kk,1,a)};g.hasAuthor=function(){return nk(this,Kk,1)};g.getTimestamp=function(){return X(this,bl,2)};g.setTimestamp=function(a){return W(this,bl,2,a)};g.hasTimestamp=function(){return nk(this,bl,2)};g.getAdd=function(){return X(this,$n,3)};g.setAdd=function(a){return W(this,$n,3,a)};
g.getRemove=function(){return X(this,$n,4)};g.setRemove=function(a){return W(this,$n,4,a)};g.getAddMask=function(){return X(this,oo,5)};g.setAddMask=function(a){return W(this,oo,5,a)};g.getRemoveMask=function(){return X(this,oo,6)};g.setRemoveMask=function(a){return W(this,oo,6,a)};var qcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qcd,V);var X6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,X6.messageId)};Y(X6,V);X6.prototype.getIt=function(){return X(this,qcd,2)};X6.prototype.setIt=function(a){return W(this,qcd,2,a)};X6.messageId="b.ComponentHistory";var Y6=function(){this.executor=n(zC);this.bCacheFactory=n(wD);this.componentHistoriesCache=this.bCacheFactory.get("component_histories-second-level-cache")||this.bCacheFactory.create("component_histories-second-level-cache",{capacity:25})};Y6.prototype.get=function(a){var b=this.componentHistoriesCache.get(String(a));return b?b:this.componentHistoriesCache.put(String(a),this.executor.get({url:"action/component_updates/"+a,responseConstructor:X6}).then(uCa))};
Y6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};Y6.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};Y6.\u0275fac=function(a){return new (a||Y6)};Y6.\u0275prov=Sc({token:Y6,factory:Y6.\u0275fac,providedIn:"root"});var Z6=function(){};Z6.prototype.ngOnInit=function(){};Z6.\u0275fac=function(a){return new (a||Z6)};Z6.\u0275cmp=B({type:Z6,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},standalone:!1,decls:2,vars:2,consts:[[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(E(0,XQb,3,1),E(1,YQb,3,1));a&2&&(F(b.teamPath?0:-1),z(),F(b.componentPath?1:-1))},dependencies:[mN,H1],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var rcd={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",TEMPLATES:"templates",ACCESS:"access"},$6={},scd=($6[0]="basic",$6[1]="customFields",$6[2]="fieldOrdering",$6[3]="templates",$6[4]="access",$6),tcd={},ucd=(tcd[0]="access",tcd[1]="access_permissions",tcd),a7=function(){Z.call(this);var a=this;this.bLocation=n(cI);this.route=n(sj);this.Tab=rcd;this.selectedAccessSubTabIndex=this.selectedTabIndex=0;this.componentReady$=new bg;this.componentReady$.subscribe(function(){a.selectedTabIndex=
0;a.route.fragment.pipe(gg(a.destroyed$)).subscribe(function(b){if(b==="basic")a.selectedTabIndex=0;else if(b==="customFields")a.selectedTabIndex=1;else if(b==="fieldOrdering")a.selectedTabIndex=2;else if(b==="templates")a.selectedTabIndex=3;else if(b==="access"||b==="access"||b==="access_permissions")a.selectedTabIndex=4,b==="access_permissions"&&(a.selectedAccessSubTabIndex=1),hTb(a)})})};Y(a7,Z);a7.\u0275dir=Z.\u0275dir;
a7.prototype.tabChange=function(a){if(a===4&&this.selectedAccessSubTabIndex>0){var b,c=(b=ucd[a])!=null?b:"access";this.bLocation.hash(c,!0)}else b=(c=scd[a])!=null?c:null,this.bLocation.hash(b,!0);this.selectedTabIndex=a};var hTb=function(a){a.selectedAccessSubTabIndex===1?a.bLocation.hash("access_permissions",!0):a.selectedAccessSubTabIndex===0&&a.bLocation.hash("access",!0)};a7.\u0275fac=function(a){return new (a||a7)};a7.\u0275prov=Sc({token:a7,factory:a7.\u0275fac,providedIn:"root"});var cRb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cRb,V);var vcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,vcd.messageId)};Y(vcd,V);vcd.messageId="b.BatchGroupMetadataResult";var c7=function(){var a=this;this.groupMetadataResources=n(b7);this.bulkGetter=n(gE).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=ZQb(c);return l8b(b,function(e){return d[e]||null})})})};c7.prototype.get=function(a){return this.bulkGetter.get(a).then(function(b){return b!==null?b:{groupEmail:a,approximateSize:0,sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"}})};c7.\u0275fac=function(a){return new (a||c7)};
c7.\u0275prov=Sc({token:c7,factory:c7.\u0275fac,providedIn:"root"});var b7=function(){this.executor=n(zC)};b7.prototype.bulkGet=function(a){a=[].concat(p(new Set(a)));a=Cn(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:vcd}).then(dRb)};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275prov=Sc({token:b7,factory:b7.\u0275fac,providedIn:"root"});var eRb=[{field:"admins",accessor:function(a){return a.admins}},{field:"editors",accessor:function(a){return a.editors}},{field:"appenders",accessor:function(a){return a.appenders}},{field:"readers",accessor:function(a){return a.readers}},{field:"restrictedReaders",accessor:function(a){return a.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(a){return a.restrictedPlusReaders}}];var d7=function(){var a=this;this.activeSession=n(Es);this.confirmationDialogService=n(AK);this.documentationLinks=n(lK);this.groupMetadata=n(c7);this.componentReaders=[];this.enableRostersChecks=Yr(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=Yr(this.activeSession,"enableComponentAutomationCheck");this.isPublic=function(){return vr(a.component)};this.hasUnsavedAccessLimitChanges=function(){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==
a.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=function(){return new Promise(function(b){a.hasUnsavedAccessLimitChanges()&&a.component.accessLimit.accessLevel==="INTERNAL"?a.confirmationDialogService.open({title:"Component Visibility Changed",content:Oi("You are about to change the component visibility to Google internal for this component. Make sure your changes are correct -- if this component has any issues, you will not be able to undo this action. Do you want to proceed?"),
onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performDeletedAccountsCheck=function(){return new Promise(function(b){a.componentReaders.includes("GROUP:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Oi('"nobody@google.com" was detected, this is usually the result of an account being deleted that was already part of the access policy. It can be found in the following fields: '+[a.componentAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?
'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("GROUP:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("GROUP:nobody@google.com")?'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("GROUP:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("GROUP:nobody@google.com")?
'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("GROUP:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("GROUP:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+". Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(b){oRb(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Oi("You are about to change the administrator privileges for this component. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.performRestrictedPlusGroupRemovalCheck=
function(){return new Promise(function(b){nRb(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Oi("You are about to remove Restricted+ reader permission for a group. You will not be able to undo this action. Do you want to proceed?"),onConfirm:function(){b(!0)},onDismiss:function(){b(!1)}}):b(!0)})};this.retrieveGroupMetadata=function(b){b=LKa(b);return b.group!==void 0&&b.group.emailAddress?
a.groupMetadata.get(b.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};this.evaluateNewGroups=function(){var b=jk([].concat(p(Xj(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),p(Xj(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))));return Promise.all(b.map(function(c){return a.retrieveGroupMetadata(c)}))};this.performAddedLargeOrOpenGroupCheck=function(){return a.enableRostersChecks?
a.evaluateNewGroups().then(function(b){var c=iRb(b);b=mRb(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=jRb(c.size,b.size);c=kRb(c);b=lRb(b);var e=Pi([c,c===Kr?Kr:Qi("br"),b]);c={};e=Pi([e,Qi("p",{},Pi(["Please review the ",Qi("a",(c.href=aEc(a.documentationLinks),c.target="_blank",c),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?"]))]);return new Promise(function(f){a.confirmationDialogService.open({title:d,content:e,onConfirm:function(){f(!0)},
onDismiss:function(){f(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(b){if(a.isPublic()&&hRb(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Pi([Qi("p",{},"You are about to give a broad category of users permissions on a public component."),Qi("p",{},Pi(["Please review the ",Qi("a",(c.href=$Dc(a.documentationLinks),c.target="_blank",c),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?"]))]);
a.confirmationDialogService.open({title:"Adding an broad category of users to a public component",content:c,onConfirm:function(){b(!0)},onDismiss:function(){b(!1)},confirmButtonText:"Add Group Alias"})}else b(!0)})};this.performChangedImplicitAccessCheck=function(){a.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?a.componentAccessPolicyUnderEdit.implicitAccess==="ALLOW":!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?a.componentFlattenedAccessPolicy.implicitAccess===
"ALLOW":!1},setValue:function(d){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:d?"ALLOW":"DENY"}))}};var b={},c=Qi("a",(b.href=Dq(a.documentationLinks)+"#expanded-access",b),"Learn more.");return new Promise(function(d){a.implicitAccess.getValue()===a.implicitAccess.getSavedValue()?d(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+
"?",content:Pi(["When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Pi(["Some users may lose the ability to edit or comment on issues in this component. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}})})};this.getAddedAutomationInPolicyChange=
function(){var b=[].concat(p(fRb(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),p(fRb(a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit))),c=new Set;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=l(d.value.addedPrincipals);for(var e=d.next();!e.done;e=d.next())e=LKa(e.value),(lua(e)?rua(e.user.emailAddress):e.group!==void 0&&rua(e.group.emailAddress))&&c.add(e)}return[].concat(p(c))};this.performAutomationUserAccessCheck=function(){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);
var b=a.getAddedAutomationInPolicyChange();return new Promise(function(c){if(b.length){var d={};d=Qi("a",(d.href=YDc(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Pi([Oi("You are adding automation accounts to the ACL for this component. All Googlers are entrusted with power and responsibility as stewards of Google's data. Please see the"),Qi("wbr"),d,Oi("."),Qi.apply(null,["ol",{}].concat(p(b.map(function(e){if(lua(e)){var f;
return Qi("li",{},Oi((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var h;return Qi("li",{},Oi((h=e.group.emailAddress)!=null?h:""))}throw Error("If`"+JSON.stringify(e));})))),Qi("br",{}),Oi("Are you sure you wish to allow automation to access data in this component?")]),onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}})}else c(!0)})};this.runValidation=function(b){var c,d,e;return w(function(f){switch(f.nextAddress){case 1:c=l(b),d=c.next();case 2:if(d.done){f.jumpTo(4);break}e=
d.value;return x(f,e(),5);case 5:if(!f.yieldResult)return f.return(!1);d=c.next();f.jumpTo(2);break;case 4:return f.return(!0)}})}},wcd=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var h=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var q=b.issueDefaultFlattenedAccessPolicy;var u,A;return w(function(G){if(G.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,u=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],x(G,a.runValidation(u),2);A=G.yieldResult;return G.return(A)})};d7.\u0275fac=function(a){return new (a||d7)};
d7.\u0275prov=Sc({token:d7,factory:d7.\u0275fac});var e7=function(){Z.apply(this,arguments);this.principalTypes=n(kG);this.componentReaders=[];this.templates=[]};Y(e7,Z);e7.\u0275dir=Z.\u0275dir;
e7.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(p(this.componentReaders))),d=new Set([].concat(p(a.admins),p(a.inheritedAdmins)));a=new Set([].concat(p(d),p(a.appenders)));var e=new Set([].concat(p(b.admins))),f=new Set([].concat(p(e),p(b.editors))),h=new Set([].concat(p(f),p(b.appenders))),k=new Set([].concat(p(b.restrictedPlusReaders))),q=new Set([].concat(p(k),p(b.restrictedReaders)));b=new Set([].concat(p(q),p(h),p(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(p(d)).map(ys)},{permission:"Create Issues",principals:[].concat(p(a)).map(ys)},{permission:"Admin Issues",principals:[].concat(p(e)).map(ys)},{permission:"Edit Issues",principals:[].concat(p(f)).map(ys)},{permission:"Comment on Issues",principals:[].concat(p(h)).map(ys)},{permission:"View Issues",principals:[].concat(p(b)).map(ys)},{permission:"View Components",principals:[].concat(p(c)).map(ys)},{permission:"View Restricted",principals:[].concat(p(q)).map(ys)},
{permission:"View Restricted+",principals:[].concat(p(k)).map(ys)}];xcd(this,this.templates)};
var xcd=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=l(c.value.principals);for(var d=c.next(),e={};!d.done;e={principal$jscomp$15:void 0},d=c.next())e.principal$jscomp$15=d.value,e.principal$jscomp$15.principalType==="ALIAS"?e.principal$jscomp$15.detailedUserType="NO_DETAILED_TYPE":lG(a.principalTypes,e.principal$jscomp$15.value,!0).then(function(f){return function(h){f.principal$jscomp$15.detailedUserType=h.detailedUserType}}(e))}};
e7.\u0275fac=function(){var a;return function(b){return(a||(a=fe(e7)))(b||e7)}}();
e7.\u0275cmp=B({type:e7,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},standalone:!1,features:[kg,Uu],decls:8,vars:0,consts:[[1,"permissions-column-headers"],["scope","col"],[1,"permission-row"],["scope","row"],[3,"value","detailedUserType","principalType","accessLevel","displayText"]],template:function(a,b){a&1&&(I(0,"table")(1,"tr",0)(2,"th",1),Q(3,"Permission"),
J(),I(4,"th",1),Q(5,"Users With Permission"),J()(),Dg(6,qRb,6,1,"tr",2,Cg),J());a&2&&(z(6),Eg(b.templates))},dependencies:[NQ],styles:["table[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:10px}.permissions-column-headers[_ngcontent-%COMP%]{display:none}.permission-row[_ngcontent-%COMP%]{border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider)}.permission-row[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:auto;padding:8px;font-size:.8125rem;text-align:left}.permission-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}b-contact-chip[_ngcontent-%COMP%]{margin-right:5px;margin-top:5px}/*# sourceMappingURL=permissions_view.css.map */"]});var ycd=Object.values({ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_APPENDER:"issueAppender",ISSUE_READER:"issueReader",ISSUE_RESTRICTED_READER:"issueRestrictedReader",ISSUE_RESTRICTED_PLUS_READER:"issueRestrictedPlusReader",COMPONENT_ADMIN:"componentAdmin",COMPONENT_APPENDER:"componentAppender",COMPONENT_READER:"componentReader"}),f7={},zcd=(f7.issueAdmin=new Set(["issueEditor"]),f7.issueEditor=new Set(["issueAppender"]),f7.issueAppender=new Set(["issueReader"]),f7.issueRestrictedReader=
new Set(["issueReader"]),f7.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),f7.issueReader=new Set(["componentReader"]),f7.componentAdmin=new Set(["componentAppender"]),f7.componentAppender=new Set(["componentReader"]),f7.componentReader=new Set,f7),BRb=ek(ycd,function(a){return zcd[a]}),zRb=Object.values({COMPONENT_ADMIN:"componentAdmin",ISSUE_ADMIN:"issueAdmin",ISSUE_EDITOR:"issueEditor",ISSUE_CONTRIBUTOR:"issueContributor",COMPONENT_ADMIN_ONLY:"componentAdminOnly",ISSUE_CREATOR:"issueCreator",
ISSUE_ADMIN_ONLY:"issueAdminOnly",ISSUE_EDITOR_EXISTING:"issueEditorExisting",ISSUE_COMMENTER:"issueCommenter",RESTRICTED_PLUS_VIEWER:"restrictedPlusViewer",RESTRICTED_VIEWER:"restrictedViewer",ISSUE_VIEWER:"issueViewer"}),g7={},Acd=(g7.componentAdmin=new Set(["componentAdmin","issueAdmin"]),g7.issueAdmin=new Set(["issueAdmin","componentAppender"]),g7.issueEditor=new Set(["issueEditor","componentAppender"]),g7.issueContributor=new Set(["issueAppender","componentAppender"]),g7.componentAdminOnly=new Set(["componentAdmin"]),
g7.issueCreator=new Set(["componentAppender"]),g7.issueAdminOnly=new Set(["issueAdmin"]),g7.issueEditorExisting=new Set(["issueEditor"]),g7.issueCommenter=new Set(["issueAppender"]),g7.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),g7.restrictedViewer=new Set(["issueRestrictedReader"]),g7.issueViewer=new Set(["issueReader"]),g7),yRb=ek(zRb,function(a){return Acd[a]}),Bcd=CRb(),xRb=ek(zRb,function(a){a=[].concat(p(yRb.get(a))).flatMap(function(b){return[].concat(p(Bcd.get(b)))});return new Set(a)}),
ARb=ek(zRb,function(a){return new Set(zRb.filter(function(b){return b!==a&&Vta(xRb.get(b),xRb.get(a))}))});var FRb={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},Ccd={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var h7=function(){var a=this;this.accessPolicyApi=n($C);this.errorHandler=n(DK);this.butterBar=n(iK);this.userAccess=n(jE);this.componentActions=n(oN);this.componentValidator=n(d7);this.analytics=n(CF);this.isAdmin=!1;this.rolesMap=FRb;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?a.componentAccessPolicyUnderEdit.implicitAccess===
"ALLOW":!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?a.componentFlattenedAccessPolicy.implicitAccess==="ALLOW":!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))},isUpdated:function(){var b;return a.componentAccessPolicyUnderEdit.implicitAccess!==((b=a.componentFlattenedAccessPolicy)==null?void 0:b.implicitAccess)}};this.restrictedPlusReadersValidators=
{noRestrictedPlusGroups:function(b){a:{var c=a.issueDefaultFlattenedAccessPolicy;if(b&&c){c=c.restrictedPlusReaders;b=l(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.startsWith("GROUP:")&&!c.includes(d)){c=!1;break a}}c=!0}return c}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=this.componentFlattenedAccessPolicy=Ccd;this.componentAccessPolicyUnderEdit=Xp();this.issueDefaultAccessPolicyUnderEdit=Xp()};
h7.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var Dcd=function(a){if(!a.hasUnsavedAccessLimitChanges())return Promise.resolve();a.isUpdatingAccessLimit=!0;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;Mq(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Wo(b)&&(c+=Xo(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};h7.prototype.updateComponentAndOriginalComponent=function(a){this.component=Qj(a);this.originalComponent=Qj(a)};
h7.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId).then(function(b){a.updateComponentAndOriginalComponent(b);b.parentComponentId>0&&a.loadParentComponent(b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h7.prototype.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){return b.parentComponent=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h7.prototype.initialize=function(a){var b=this;a=a===void 0?this.componentId:a;if(!a&&!this.componentId)return this.butterBar.showWarning("No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=Yp(c);b.componentAccessPolicyUnderEdit=Qj(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
Yp(c);b.issueDefaultAccessPolicyUnderEdit=Qj(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var Ecd=function(a){a.rolesMap=GRb({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},Fcd=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&IRb(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},Gcd=function(a){var b=HRb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!IRb(a,c));return b||c},Hcd=function(a,b){return HRb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=Yp(c);if(HRb(d,a.componentAccessPolicyUnderEdit)){if(HRb(d,a.componentFlattenedAccessPolicy))return Promise.reject(new mrc("ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."));b.readers=c.readers;return a.accessPolicyApi.update("COMPONENT",a.componentId,
b)}}):Promise.resolve(void 0)};h7.prototype.loadUserAccess=function(a){var b=this;return kE(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):kE(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
h7.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Zp(this.componentAccessPolicyUnderEdit);var c=Zp(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(Gcd(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,Mq(this.butterBar,"Saving access settings...",0),Fcd(this,c).then(function(d){d&&(b.readers=[].concat(p(d.admins||[]),p(d.editors||[]),p(d.appenders||[]),
p(d.readers||[]),p(d.restrictedPlusReaders||[]),p(d.restrictedReaders||[])));return Hcd(a,b).catch(function(e){var f;return w(function(h){if(h.nextAddress==1)return f=Zp(a.issueDefaultFlattenedAccessPolicy),x(h,Fcd(a,f),2);throw e;})})}).then(function(){return Dcd(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;Ecd(a);var e=a.rolesMap;var f={componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,
createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},h={componentAdminOnly:e.componentAdminOnly,issueAdminOnly:e.issueAdminOnly,viewer:e.viewer,editExistingIssuesOnly:e.editExistingIssuesOnly,createIssuesOnly:e.createIssuesOnly,commentOnly:e.commentOnly,viewRestricted:e.viewRestricted,viewRestrictedPlus:e.viewRestrictedPlus};d=JRb({componentAdmin:d.componentAdmin,issueAdmin:d.issueAdmin,editor:d.editor,contributor:d.contributor},
{componentAdmin:e.componentAdmin,issueAdmin:e.issueAdmin,editor:e.editor,contributor:e.contributor});f=JRb(f,h);switch(d&&f?2:d?0:f?1:3){case 0:a.analytics.trackEvent("roleBasedPermissions","update","roles:standard");break;case 1:a.analytics.trackEvent("roleBasedPermissions","update","roles:advanced");break;case 2:a.analytics.trackEvent("roleBasedPermissions","update","roles:both");break;default:a.analytics.trackEvent("roleBasedPermissions","update","roles:neither")}Mq(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(Xo(d),0)}).finally(function(){return w(function(d){if(d.nextAddress==1)return x(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;ze(d)})});Ecd(this);return Dcd(this)};
var Icd=function(a,b){b=DRb(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},VRb=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(Icd(a,b),wcd(a.componentValidator,{component:a.component,originalComponent:a.originalComponent,
componentReaders:a.componentReaders,componentFlattenedAccessPolicy:a.componentFlattenedAccessPolicy,componentAccessPolicyUnderEdit:a.componentAccessPolicyUnderEdit,issueDefaultFlattenedAccessPolicy:a.issueDefaultFlattenedAccessPolicy,issueDefaultAccessPolicyUnderEdit:a.issueDefaultAccessPolicyUnderEdit}).then(function(c){if(c)return a.doSaveAccessPolicy();Mq(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
ea.Object.defineProperties(h7.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Pj(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=ERb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Pj(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=ERb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});h7.\u0275fac=function(a){return new (a||h7)};h7.\u0275prov=Sc({token:h7,factory:h7.\u0275fac});var i7=function(){this.activeSession=n(Es);this.documentationLinks=n(lK);this.rolesEditor=n(h7);this.AccessLevelStrings=Akc};i7.prototype.getRecentIssuesLink=function(){return vq(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};i7.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!t6a(this.rolesEditor.parentComponent))};
i7.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!vr(this.rolesEditor.parentComponent))};i7.\u0275fac=function(a){return new (a||i7)};
i7.\u0275cmp=B({type:i7,selectors:[["access-limit-settings"]],standalone:!1,decls:6,vars:3,consts:[[1,"component-banner"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"component-visibility-settings"],[1,"component-visibility-header"],[1,"access-level-panel"],[1,"access-level-field"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled",
"ngModel"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel"],["for","access-level-external-partner"],[1,"access-level-field","bv2-edit-resource-readonly"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel"],["for","access-level-public"],[1,"access-level-warning"],["type","radio","id","access-level-internal","name","accessLevelInternal",
"value","INTERNAL",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"ngModelChange","disabled","ngModel"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(E(0,ORb,18,7,"div",
0),I(1,"div",1)(2,"p"),Q(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),I(4,"a",2),Q(5,"Learn more"),J()()());if(a&2){a:if(b.activeSession.isExternalSession())a=!1;else{if(b.rolesEditor.component)if(b.rolesEditor.component.parentComponentId){if(b.rolesEditor.parentComponent){a=ur(b.rolesEditor.parentComponent)||ur(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}F(a?0:-1);z(4);Pg("href","",Dq(b.documentationLinks),
"#recommended-role-based-permissions-configurations",uf)}},dependencies:[Li,yy,oy,vy],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}.component-banner[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:8px;margin:15px 0 0;padding:16px}.component-banner[_ngcontent-%COMP%]   .component-visibility-settings[_ngcontent-%COMP%]{min-height:28px}.component-banner[_ngcontent-%COMP%]   .component-visibility-header[_ngcontent-%COMP%]{font-weight:bold}.component-banner.access-level-banner[_ngcontent-%COMP%]{margin-bottom:20px}.component-banner.implicit-access-banner[_ngcontent-%COMP%], .component-banner.template-help-banner[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);margin:15px 0px 10px 0}/*# sourceMappingURL=access_limit_settings.css.map */"]});var j7=function(){this.documentationLinks=n(lK);this.rolesEditor=n(h7)};j7.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};j7.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};j7.\u0275fac=function(a){return new (a||j7)};
j7.\u0275cmp=B({type:j7,selectors:[["expanded-access-settings"]],standalone:!1,decls:10,vars:6,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"change","checked","disabled"],[1,"permission-toggle-text"],["id","expanded-access-help",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about expanded access","aria-describedby",
"expanded-access-help",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),M("change",function(c){return b.setImplicitAccess(c.checked)}),J()(),I(3,"div",3)(4,"strong",4),Q(5,"Expanded access"),J(),I(6,"div",5),Q(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),I(8,"a",6),Q(9,"Learn more"),J()()()());a&2&&(wg("bv2-edit-resource-readonly",b.isAccessEditDisabled()),
z(2),D("checked",b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),z(6),Pg("href","",Dq(b.documentationLinks),"#expanded-access",uf))},dependencies:[yM,CM],styles:["[_nghost-%COMP%]{display:flex}.expanded-access-settings[_ngcontent-%COMP%]{background-color:#f8f9fa;background-color:var(--button-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider);display:flex;margin:10px 0px;border-radius:8px;width:100%;padding:16px}.expanded-access-settings[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{top:-4px;margin-right:-5px}.expanded-access-settings[_ngcontent-%COMP%]   .permission-toggle-text[_ngcontent-%COMP%]{margin-left:1em}/*# sourceMappingURL=expanded_access_settings.css.map */"]});var PRb=function(){return{}},RRb=function(a,b){return{displayText:a,values:b}},QRb=function(a){return[a]},SRb=function(){return[]},k7=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new LA;this.formIsValid=new LA;this.aclFormValidity=new Map};k7.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};k7.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};k7.\u0275fac=function(a){return new (a||k7)};
k7.\u0275cmp=B({type:k7,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},standalone:!1,decls:32,vars:0,consts:[["scope","col"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["type","button","mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"usersChange","isValid","idForInputBox","users","ariaLabel",
"accessLevel","customValidators","includeAliases","includeViewAliases","containerChips"],["size","large",3,"name"]],template:function(a,b){a&1&&(I(0,"table")(1,"thead")(2,"tr")(3,"th",0),Q(4,"Role Assignments"),J(),I(5,"th",0)(6,"h6"),Q(7,"Admin Components"),J()(),I(8,"th",0)(9,"h6"),Q(10,"Create Issues"),J()(),I(11,"th",0)(12,"h6"),Q(13,"Admin Issues"),J()(),I(14,"th",0)(15,"h6"),Q(16,"Edit Issues"),J()(),I(17,"th",0)(18,"h6"),Q(19,"Comment on Issues"),J()(),I(20,"th",0)(21,"h6"),Q(22,"View Issues"),
J()(),I(23,"th",0)(24,"h6"),Q(25,"View Restricted"),J()(),I(26,"th",0)(27,"h6"),Q(28,"View Restricted+"),J()()()(),I(29,"tbody"),Dg(30,TRb,25,29,"tr",null,Cg),J()());a&2&&(z(30),Eg(b.rolesTableData))},dependencies:[aB,YO,CL,PA,Ux,YA,cB],styles:["table[_ngcontent-%COMP%]{width:100%;font-size:.8125rem;font-family:Roboto,Arial,sans-serif}table[_ngcontent-%COMP%], thead[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%]{display:flex;flex-direction:column}tr[_ngcontent-%COMP%]{display:flex}th[_ngcontent-%COMP%]:first-child{visibility:hidden;flex:0 0 40%}th[_ngcontent-%COMP%]:not(:first-child){width:20em;height:20px;text-align:center}th[_ngcontent-%COMP%]:not(:first-child)   h6[_ngcontent-%COMP%]{display:inline;font-size:.8125rem}td[_ngcontent-%COMP%]:first-child{min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}b-multi-user-input[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]     td .edit-field{margin:14px 0 0}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input{width:auto;max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input input.bv2-multi-user-embedded-input{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-multi-user-errors{padding:9px}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip{max-width:100%}[_nghost-%COMP%]     td .edit-field .bv2-multi-user-input .bv2-user-chip .bv2-user-chip-item{display:flex}.role-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin:5px 2px}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-icon-button{margin:0 5px;width:24px;height:24px;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-icon-button .mat-icon{height:16px;width:16px;--mdc-icon-button-icon-size:16px}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}/*# sourceMappingURL=roles_view_table.css.map */"]});var l7=function(){this.rolesMap=FRb;this.isSaving=!1;this.saveRolesMap=new LA;this.rolesUnderEdit=FRb;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},Jcd=function(a){var b=a.rolesUnderEdit,c;var d=[{ariaLabel:"Component Admin role",label:"Component Admins",users:b==null?void 0:b.componentAdmin,roleType:"componentAdmin",
grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Component Admins are granted all the permissions to manage the component and all issues in this component. They can't view restricted content. Typical Component Admins are team leads."},{ariaLabel:"Issue Admin role",label:"Issue Admins",users:b==null?void 0:b.issueAdmin,roleType:"issueAdmin",
grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Issue Admins are granted all permissions to manage issues, but can't edit component settings. They can't view restricted content. Typical Issue Admins are team members."},{ariaLabel:"Issue Editor role",label:"Issue Editors",users:b==null?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((c=a.component.accessLimit)==null?void 0:c.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors are granted all issue-related permissions except for admin permissions such as delete an issue or comment, or change restrictions. They can't view restricted content. Typical Issue Editors are collaborating team members."},{ariaLabel:"Issue Contributor role",
label:"Issue Contributors",users:b==null?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Issue Contributors can read, comment, and create issues, but they can't edit issues. They can't view restricted content. Typical Issue Contributors are external partners or public users."}];a.standardRolesTableData=
d;b=a.rolesUnderEdit;var e,f;d=[{ariaLabel:"Component Admin Only role",label:"Component Admins Only",users:b==null?void 0:b.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Component Admin Only role can edit the component settings and create issues, but otherwise have no issue-related permissions.",
chips:{displayText:"Inherited Admins",values:(f=b.inheritedComponentAdmin)!=null?f:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:b==null?void 0:b.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the issue Issue Creators Only role can create issues, but have no other permissions. For example, they are not able to view issues they have created."},
{ariaLabel:"Issue Admin Only role",label:"Issue Admins Only",users:b==null?void 0:b.issueAdminOnly,roleType:"issueAdminOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Issue Admin Only role have all issue permissions but cannot create new issues."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:b==null?void 0:b.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((e=a.component.accessLimit)==null?void 0:e.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors (existing issues only) have the issue editor's permission on existing issues, but they can't create new issues in this component."},
{ariaLabel:"Issue Commenter Only role",label:"Issue Commenter Only",users:b==null?void 0:b.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the Issue Commenter Only role may view and comment on issues on this component"},{ariaLabel:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",
users:b==null?void 0:b.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!0},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted+ Content Viewers can view Restricted+ content on an issue.",customValidators:a.rolesEditor.restrictedPlusReadersValidators},{ariaLabel:"Restricted Content Viewer role",label:"Restricted Content Viewer",users:b==
null?void 0:b.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted Content Viewers can view restricted content on an issue."},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:b==null?void 0:b.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,
issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!0,tooltip:"Issue Viewers can only view issues in this component, but can't comment or edit issues."}];a.advancedRolesTableData=d},Kcd=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},Lcd=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=l7.prototype;g.ngOnInit=function(){Lcd(this);Jcd(this)};
g.ngOnChanges=function(a){a.rolesMap&&Lcd(this);Jcd(this)};g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};g.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
g.canSave=function(){return this.canEdit()&&(!Pj(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};l7.\u0275fac=function(a){return new (a||l7)};
l7.\u0275cmp=B({type:l7,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},standalone:!1,features:[Uu],decls:12,vars:11,consts:[[3,"rolesMapUpdated","formIsValid","rolesTableData","displayedTableColumns","canEdit","accessLevel"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["type","button","mat-raised-button","","aria-label","Update","color","primary",3,"click","disabled"],
["type","button","mat-raised-button","","aria-label","Revert Changes",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"access-limit-settings"),I(1,"roles-view-table",0),M("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),J(),I(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),Q(5," Advanced Roles "),J()(),I(6,"roles-view-table",0),M("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",
function(c){return b.formIsValid=c}),J()(),K(7,"expanded-access-settings"),I(8,"button",2),M("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),Q(9,"Update"),J(),I(10,"button",3),M("click",function(){Lcd(b);Jcd(b)}),Q(11," Revert Changes\n"),J());a&2&&(z(),D("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),z(),D("expanded",Kcd(b)),z(4),D("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",
b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),z(2),D("disabled",!b.canSave()),z(2),D("disabled",!!Pj(b.rolesMap,b.rolesUnderEdit)))},dependencies:[$W,aX,bX,PA,Tx,k7,i7,j7],styles:["[_nghost-%COMP%]     mat-expansion-panel .mat-expansion-panel-body{padding:0}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px;padding:0}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}/*# sourceMappingURL=roles_view.css.map */"]});var m7=function(){Z.apply(this,arguments);this.rolesEditor=n(h7);this.route=n(sj);this.tabIndex=0;this.onTabChange=new LA;this.selectedTabIndex=this.tabIndex};Y(m7,Z);m7.\u0275dir=Z.\u0275dir;m7.prototype.ngOnChanges=function(a){a.tabIndex&&(this.selectedTabIndex=a.tabIndex.currentValue)};
m7.prototype.ngOnInit=function(){var a=this;this.selectedTabIndex=this.tabIndex;this.route.paramMap.pipe(y(function(b){return b.get("componentId")}),Ve(Tk),fg(function(b){return a.rolesEditor.initialize(Number(b))}),gg(this.destroyed$)).subscribe(function(){Ecd(a.rolesEditor)})};
m7.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;e==="access"?this.selectedTabIndex=0:e==="access_permissions"&&(this.selectedTabIndex=1);this.onTabChange.emit(a)};m7.prototype.isSaving=function(){return this.rolesEditor.isSaving};m7.\u0275fac=function(){var a;return function(b){return(a||(a=fe(m7)))(b||m7)}}();
m7.\u0275cmp=B({type:m7,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&Wg(ZN,5,ff);if(a&2){var c;$g(c=ah())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},standalone:!1,features:[hh([h7,d7]),kg,Uu],decls:2,vars:2,consts:[[1,"bv2-view-loading"],[1,"padded"],[3,"selectedIndexChange","selectedIndex"],["label","Edit Roles","id","access_roles"],[3,"saveRolesMap","rolesMap","isSaving","component","rolesEditor"],["label","View Permissions","id","access_permissions"],
[3,"componentReaders","componentAccessPolicy","issueAccessPolicy","accessLevel"]],template:function(a,b){a&1&&(E(0,URb,2,0,"div",0),E(1,WRb,7,9,"div"));a&2&&(F((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?-1:0),z(),F((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?1:-1))},dependencies:[dO,ZN,$N,ON,e7,l7],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var Mcd=["archiveDialog"],Ncd=["archiveButton"],Ocd=["metadataForm"],n7=function(){Z.apply(this,arguments);var a=this;this.cdr=n(NA,{self:!0});this.routeParams=n(bL);this.bLocation=n(cI);this.templatesApi=n(mD);this.paths=n(EN);this.appHistory=n(m2);this.butterBar=n(iK);this.pageTitle=n(PY);this.activeSession=n(Es);this.documentationLinks=n(lK);this.matDialogService=n(tK);this.analytics=n(CF);this.checkBeforeExit=n(lS);this.userAccess=n(jE);this.componentActions=n(oN);this.errorHandler=n(DK);this.componentUpdates=
n(NZ);this.componentUpdatesApi=n(Y6);this.confirmationDialogService=n(AK);this.appEvents=n(nD);this.teamsService=n(yG);this.sloApi=n(qG);this.sloService=n(rG);this.trackerHelpers=n(LK);this.tabsService=n(a7);this.componentId$=new ag(1);this.componentListRoute=fNa;this.showSloInheritancePath=!1;this.component$=new tj(null);this.componentTrackerId$=this.component$.pipe(y(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.componentTrackerId$.pipe(y(function(b){var c,d=(c=
a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.parentComponent$=new tj(null);this.componentTeam$=new tj(null);this.team$=this.componentTeam$.pipe(fg(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?zG(a.teamsService,b):Ce(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(fg(function(b){var c;return(b=b==null?void 0:(c=b.team)==null?void 0:c.id)&&b!=="0"?zG(a.teamsService,b):Ce(null)}));this.inheritedSloMetadata$=Je([this.component$,this.parentComponent$,
this.team$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if((b==null?0:b.team)&&!b.team.inherit&&b.team.id!=="0"){var e,f=(e=c==null?void 0:c.slo)!=null?e:null;if(f)return{containerType:"TEAM",content:f}}else if(e=(f=d==null?void 0:d.slo)!=null?f:null)return{containerType:"COMPONENT",content:e};return null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(Xf(),fg(function(b){var c="0";b&&(b.containerType==="TEAM"?c=b.content.sloId:b.containerType==="COMPONENT"&&
(c=b.content.id));return c==="0"?Ce({id:"0"}):a.sloService.get(c).then(function(d){return{id:c,slo:d}})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(Xf(),fg(function(b){if(!b)return Ce({name:"None",type:"none"});b=sTb(b);var c=b.sourceTeamId,d=b.sourceComponentId;b=d?Number(d):null;return c&&c!=="0"?a.teamsService.getTeam(c).pipe(y(function(e){var f;return{name:(f=e==null?void 0:e.name)!=null?f:c,type:"team",link:{path:"/teams/"+c+"/edit",fragment:"slo"}}})):b?a.componentActions.get(b).then(function(e){var f;
return{name:(f=e.name)!=null?f:d,type:"component",link:{path:"/components/"+d+"/edit"}}}):Ce(null)}));this.policySourcePath$=Je([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;if(!b||!b.componentPathInfo||!c)return null;var f=sTb(c);c=f.sourceComponentId;d=uTb(d,f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:tTb(b,c),
teamPath:d}}));this.enableSloLockingCheck=Yr(this.activeSession,"enableSloLockingCheck");this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.isLoading=this.hasInitialized=!1;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdating=this.isArchiving=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditorInternal=!1;this.updateDiffs=void 0;this.templates=
[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=Yr(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(Ve(Boolean),fg(function(b){return a.sloApi.executor.get({url:"action/components/"+b+"/slo_edit_policy",responseConstructor:Usc}).pipe(y($Ha))}));this.getSloManagementLink=gNa};Y(n7,Z);n7.\u0275dir=Z.\u0275dir;
n7.prototype.ngOnInit=function(){var a=this;this.componentId=Vj(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.subscriptions.add(mS(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);this.enableSloLockingCheck&&Pcd(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();
Qcd(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=Rcd(b)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var Qcd=function(a){a=[Scd(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};n7.prototype.isAdmin=function(){return this.isAdminInternal};var DSb=function(a){return a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin()};
n7.prototype.isSaving=function(){return this.isUpdating||this.isArchiving};n7.prototype.isArchived=function(){return this.component?this.component.archived:!1};n7.prototype.isPublic=function(){return vr(this.component)};n7.prototype.isExternal=function(){return ur(this.component)};var XSb=function(a){var b;if(b=a.sessionIsInternal){b=a.component;var c;b=(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}return b||Yr(a.activeSession,"enableEstimatedEffortExternalUi")};
n7.prototype.isParentPublic=function(){return!(!this.parentComponent||!vr(this.parentComponent))};n7.prototype.isParentPartner=function(){return!(!this.parentComponent||!t6a(this.parentComponent))};var GSb=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&a.component.team.id!=="0";return a.component.parentComponentId===0?b:!a.component.slo.inherit};
n7.prototype.hasUnsavedMetadataChanges=function(){return!(Pj(this.component,this.originalComponent)&&Pj(this.parentComponent,this.originalParentComponent))};n7.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var Tcd=function(a){var b=gk();a.component.slo.id===a.originalComponent.slo.id&&a.component.slo.source===a.originalComponent.slo.source?b.resolve(!0):a.confirmationDialogService.open({title:"SLO changes may not appear immediately",content:Oi("SLO changes will be applied to all issues in this component (and potentially child components). Depending on the total number of affected issues, this may take several hours to fully fan-out and reindex."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});
return b.promise},Ucd=function(a){var b=gk();a.sessionIsInternal&&a.parentComponent&&a.parentComponent.componentId!=a.component.parentComponentId?a.confirmationDialogService.open({title:"Changing the parent component may change which SLO is applied",content:Pi([Oi('Depending on the specific SLO inheritance and/or source settings in this and any child components, changes to the parent component may cause a different "Auto" or inherited SLO to be applied.'),Qi("br",{}),Qi("br",{}),Oi('Changes to the SLO may also take some time to become visible. Updates to the "Auto" SLOs are applied daily, and any changes then need to be fanned out to the affected issues and re-indexed.'),
Qi("br",{}),Qi("a",{href:"https://goto.google.com/buganizer/guides/apply-slo",target:"_blank"},"Learn More")]),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise};n7.prototype.saveMetadata=function(){var a=this;return Vcd(this)?Ucd(this).then(function(b){return b?Tcd(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return Qcd(a)})}):Promise.resolve()};
n7.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;Mq(this.butterBar,"Saving changes ...",0);return Wcd(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return Xcd(a)}).then(function(){return Ycd(a)}).then(function(){return Zcd(a)}).then(function(){Mq(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var Wcd=function(a){return a.parentComponent&&a.parentComponent.componentId!==a.originalComponent.parentComponentId?a.componentActions.move(a.component.componentId,a.parentComponent.componentId).then(function(){return!0}).catch(function(b){a.component.parentComponentId=a.originalComponent.parentComponentId;return Promise.reject(b)}):Promise.resolve(!1)},Xcd=function(a){return a.component.slo&&!Pj(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,a.component.slo).then(function(){a.analytics.trackEvent("component",
"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Ycd=function(a){return a.component.team&&!Pj(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){a.analytics.trackEvent("component","updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):Promise.resolve(!1)},Zcd=function(a){return $cd(a)?
a.componentActions.update(a.component).then(function(){a.analytics.trackEvent("component","update");a.commentEditsEnabled?a.analytics.trackEvent("component","comment edits enabled","update"):a.analytics.trackEvent("component","comment edits disabled","update");return!0}):Promise.resolve(!1)},$cd=function(a){var b=Qj(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Pj(a.originalComponent,b)},Vcd=function(a){if(a.isEditorInternal){if(a.metadataForm.invalid)return a.error=
"Error: You must fill out all required fields.",!1;if(a.retentionIsValid)return a.error="",!0;a.error="Error: Required retention settings are missing or invalid.";return!1}a.error="";return!0};n7.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var Scd=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
n7.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Qj(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};
var aTb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=Rcd(b.componentPathInfo.allCustomField)})},Rcd=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]};
n7.prototype.loadComponent=function(a){var b=this;this.isLoading=!0;return this.componentActions.getUncached(a).then(function(c){b.updateComponentAndOriginalComponent(c);b.currentName=c.name;c.parentComponentId>0&&b.loadParentComponent(c.parentComponentId);b.effectiveCustomFields=Rcd(c.componentPathInfo.allCustomField);b.pageTitle.setTitle("Component: "+c.name);b.archiveAction=c.archived?"Unarchive":"Archive";b.commentEditsEnabled=c.commentEditState=="ENABLED";b.component.parentComponentId===0&&(b.isParentComponentRequired=
!1)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.hasInitialized&&b.cdr.detectChanges()})};n7.prototype.loadUserAccess=function(a){var b=this,c=Rn("COMPONENT",a);kE(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:kE(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var Pcd=function(a){kE(a.userAccess,"writer",Rn("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},hSb=function(a){var b,c=rs(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return Gq(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},RSb=function(a){return a.isSaving()||!a.isEditorInternal};g=n7.prototype;g.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
g.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=Qj(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return vq(this.componentId,{includeArchived:a})};g.componentPermissions=function(a){return{path:"/components/"+a,fragment:this.tabsService.Tab.ACCESS}};
g.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.setUrl(this.paths.createIssue((a.component=String(this.component.componentId),a)))};g.createChild=function(){this.bLocation.setUrl(Fq.createComponent.makeHref(this.component.componentId))};g.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var XRb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?a.butterBar.showWarning("You have unsaved changes on one or more tabs. Please save or revert these changes before "+a.archiveAction.slice(0,-1)+"ing."):(a.isArchiving=!0,Mq(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;nK(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(gg(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):a.butterBar.showWarning("Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};
n7.prototype.getRetentionPeriod=function(a){var b=a.retentionSettings.retentionSelection;switch(b){case "BUGANIZER_DEFAULT":return"Buganizer default retention (10 years)";case "INDEFINITE_RETENTION":return"Indefinite retention";case "CUSTOM_PERIOD":var c;a=(c=a.retentionSettings.retentionPeriodDays)!=null?c:0;return Sxa(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:Gb(b,"unexpected value "+b+"!")}};
n7.prototype.archive=function(){var a=this;this.isArchiving=!0;Mq(this.butterBar,this.archiveAction.slice(0,-1)+"ing...",0);this.component.archived=!this.component.archived;this.componentActions.update(this.component).then(function(b){a.appEvents.componentModified.next(b.componentId);Mq(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);a.analytics.trackEvent("component","archive");a.updateComponentAndOriginalComponent(b);a.archiveAction=b.archived?"Unarchive":"Archive";a.isArchiving=
!1}).catch(function(b){a.component.archived=!a.component.archived;Mq(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Wo(b)?Xo(b):b));a.isArchiving=!1})};
n7.prototype.loadTemplates=function(a){var b=this;return this.templatesApi.query(a).then(function(c){b.templates=c.map(function(d){var e=d.name;e||(e=d.default?"(default template)":"(unnamed template)");var f=b.paths.getBaseUrl(),h={};h=b.paths.createIssue((h.component=a?String(a):void 0,h.template=d.templateId?String(d.templateId):void 0,h));return{name:e,description:d.description||"",url:f+h}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
n7.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var add=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.updates.map(function(d){var e=a.componentUpdates,f=Cnb(d.addMask.paths),h=Cnb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},q=d.add;d=d.remove;for(var u=l(new Set([].concat(p(f),p(h)))),A=u.next();!A.done;A=u.next()){var G=A.value;if(A=h2c.get(G))if(G==="name"){var H=Zr(h,G,d.name);G=Zr(f,G,q.name);k.diffs.push($r(A,H,G))}else if(G==="description")H=
Zr(h,G,d.description),G=Zr(f,G,q.description),k.diffs.push($r(A,H,G));else if(G==="parentComponentId")H=Zr(h,G,String(d.parentComponentId)),G=Zr(f,G,String(q.parentComponentId)),k.diffs.push($r(A,H,G));else if(G==="isArchived")H=Zr(h,G,String(d.archived)),G=Zr(f,G,String(q.archived)),k.diffs.push($r(A,H,G));else if(G==="commentEditState"){var N=i2c.get(d.commentEditState);H=i2c.get(q.commentEditState);N&&H&&(N=Zr(h,G,N),G=Zr(f,G,H),k.diffs.push($r(A,N,G)))}else G==="defaultTemplateId"?(H=Zr(h,G,String(d.defaultTemplateId)),
G=Zr(f,G,String(q.defaultTemplateId)),k.diffs.push($r(A,H,G))):G==="slo"?e.sessionIsInternal&&(H=Zr(h,G,Inb(d.slo)),G=Zr(f,G,Inb(q.slo)),k.diffs.push($r(A,H,G))):G==="team"?e.sessionIsInternal&&(H=Zr(h,G,Jnb(d.team)),G=Zr(f,G,Jnb(q.team)),k.diffs.push($r(A,H,G))):G==="retentionSettings"?(H=Zr(h,G,Gnb(d.retentionSettings)),G=Zr(f,G,Gnb(q.retentionSettings)),k.diffs.push($r(A,H,G))):e.$log.error("Unsupported diff field "+G)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};n7.prototype.showUpdateHistoryModal=function(){var a=this;add(this,this.componentId).then(function(){a.matDialogService.open(a4,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("component","viewHistory")})};n7.prototype.onSloChange=function(a){this.component.slo.id=a?a.sloId:"0";a&&bdd(this)};
var BSb=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return DSb(a)&&(c||b)},ISb=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return DSb(a)&&(!a.component.slo.inherit||c&&b)},lSb=function(a){var b,c,d,e;w(function(f){b=a.component.parentComponentId===0;c=a.component.team.id!=="0";return(a.component.parentComponentId===0?a.component.team.id!=="0":!a.component.team.inherit&&a.component.team.id!=="0")||b&&c?x(f,Ge(a.team$.pipe(y(function(h){a.component.slo.id=
h.slo.sloId;bdd(a)}))),0):(d=cdd(a),e=d.id,a.component.slo.id=e,bdd(a),f.jumpTo(0))})},HSb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},cdd=function(a){var b=a.component.slo.inherit,c=a.component.slo.source,d=a.component.slo.id;if(b){if(!a.parentComponent)return{inherit:b,source:c,id:d};c=a.parentComponent.slo.source;d=a.parentComponent.slo.id}return{inherit:b,source:c,id:d}},USb=function(a,b){Mq(a.butterBar,"Saving effort spec...",0);
a.component&&(a.component.effortSpec=b,a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);a.analytics.trackEvent("component","updateEffort");var d,e;if((d=a.component)==null?0:(e=d.effortSpec)==null?0:e.name){var f;Mq(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else Mq(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
n7.prototype.updateComponentAndOriginalComponent=function(a){this.component=Qj(a);this.component$.next(this.component);this.originalComponent=Qj(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);bdd(this)};n7.prototype.back=function(){n2(this.appHistory)};var bdd=function(a){var b;((b=a.component)==null?0:b.slo)?a.isEnableSloChecked=a.component.slo.id!=="0":a.isEnableSloChecked=!1};n7.\u0275fac=function(){var a;return function(b){return(a||(a=fe(n7)))(b||n7)}}();
n7.\u0275cmp=B({type:n7,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(Wg(Mcd,5),Wg(Ncd,5),Wg(Ocd,5));if(a&2){var c;$g(c=ah())&&(b.confirmArchiveDialog=c.first);$g(c=ah())&&(b.archiveButton=c.first);$g(c=ah())&&(b.metadataForm=c.first)}},standalone:!1,features:[hh([NA]),kg],decls:3,vars:3,consts:[["archiveDialog",""],["archiveButton",""],["basic",""],["customFields",""],["fieldOrdering",""],["templatesList",""],["access",""],["metadataForm",""],[1,"bv2-limited-issue-view"],[1,
"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["format","icon","size","large","tooltip","Go back","ariaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-view-loading"],["mat-button","",3,"routerLinkObj"],["format","flat",3,"disabled"],["format","flat",3,"tooltip","disabled"],["format","flat",3,"onAction","disabled"],["format","flat",3,"onAction","tooltip","disabled"],[1,"edit-resource-header"],[1,"resource-archived"],[1,"keep-focus-ring",
"margin-s-right",3,"click","routerLinkObj"],[3,"accessLevel"],[3,"trackerId"],[1,"component-hierarchy-container"],["componentPathsLinkTo","settings",3,"componentPathInfo","isArchived","label"],[1,"float-clear"],["gmat-tabs","",1,"bv2-tab-bar",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[4,"ngTemplateOutlet"],[3,"id","label"],["label","Field Ordering",3,"id"],["label","Templates",3,"id"],["label","Access Control",3,"id"],[1,"edit-resource-panel"],["name","metadataForm"],
[3,"error"],["aria-label","Name",1,"edit-field"],["for","component-name",1,"required"],[1,"edit-field-header"],["type","text","name","name","required","","id","component-name",3,"ngModelChange","ngModel","disabled"],["aria-label","Description",1,"edit-field"],["tabindex","0",1,"field-label-with-help","keep-focus-ring"],["aria-describedby","component-description-bubble","for","component-description",1,"help-label"],[1,"help-container"],["id","component-description-bubble",1,"help-bubble","jfk-bubble"],
[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],["name","description","aria-describedby","component-description-bubble","id","component-description",3,"ngModelChange","ngModel","disabled"],["tabindex","0","aria-label","Parent component",1,"edit-field"],["role","region","aria-label","Editable Comments",1,"edit-field","permission-toggle"],[1,"permission-toggle-checkbox"],["ariaLabelledby","editable-comments-label permission-toggle-help",
3,"change","checked","disabled"],["id","editable-comments-label",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about editable comments",1,"keep-underline","keep-focus-ring",3,"href"],["role","region","aria-label","Retention Settings",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region",
"tabindex","0","aria-label","SLO Configuration",1,"edit-field",3,"bv2-edit-resource-readonly"],["aria-label","Component alias",1,"edit-field","bv2-edit-resource-readonly"],["aria-describedby","edit-alias-help-bubble",1,"help-label"],["id","edit-alias-help-bubble",1,"help-bubble","jfk-bubble"],["aria-label","Learn more about component alias","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"href"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",
3,"checked","disabled"],[1,"edit-button-row"],[1,"edit-button-group"],["format","hairline","title","View history for 'Basic Information'"],[1,"edit-field","bv2-edit-resource-readonly"],[3,"children"],["aria-describedby","edit-parent-help-bubble","for","component-parent-id",1,"help-label"],["id","edit-parent-help-bubble",1,"help-bubble","jfk-bubble"],["id","component-parent-id",3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],["role","region","aria-label","Retention Settings",
1,"edit-field"],["for","retention-settings",1,"required"],[1,"edit-field-help"],["target","_blank","aria-label","Learn more about choosing a period of time to retain the data stored in this component.",1,"keep-underline","keep-focus-ring",3,"href"],["id","retention-settings"],[3,"modelChange","validChange","issueRetentionDisabled","isExternal","componentPathInfo","componentId","initialModel"],["role","region","tabindex","0","aria-label","Team Configuration",1,"edit-field"],["for","team-picker"],["id",
"team-picker"],[3,"modelChange","isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["aria-describedby","edit-slo-help-bubble",1,"help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-admins-link"],[1,"lock-state"],[1,"edit-field","less-margin"],[3,"routerLinkObj"],[1,"keep-focus-ring","slo-inheritance-link",
3,"routerLinkObj"],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"slo-inheritance-path","small",3,"click"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],["target","_blank",1,"keep-focus-ring",3,"routerLinkObj"],["svgIcon","lock-outline"],["svgIcon","lock-open"],["gmat-checkbox","",1,"slo-override",3,"change","checked","disabled"],[1,"edit-field","component-slo-justification-text"],["name","slo-enable","labelPosition","before",1,"slo-enable",
3,"ngModelChange","change","ngModel","disabled"],[1,"edit-field","component-slo-id-select"],["for","component-slo-id"],["id","component-slo-id","aria-describedby","edit-slo-help-bubble","tabindex","-1",1,"bv2-slo-picker","bv2-picker",3,"onSloSelect","bv2Disabled","boundId","bv2Placeholder"],["mat-icon-button","","aria-label","Go to SLO management page","matTooltip","Go to SLO management page.",1,"small",3,"routerLinkObj","target"],["for","component-slo-justification","id","component-settings-slo-justification-label",
1,"required"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","matTooltip","Justification is required to override the org SLO.","aria-label","Justification is required to override the org SLO.",1,"slo-info","icon-s","valign-middle"],["name","comment","aria-labelledby","component-settings-slo-justification-label","required","",3,"ngModelChange","ngModel","disabled"],["svgIcon","pop-out",1,"icon-s"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",
3,"change","checked","disabled"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"onVisit","children"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec","disabled"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[3,"editMode","isSaving","component","parentComponent"],[3,"updateComponent","effortSpec",
"parentEffortSpec","disabled"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"onReload","fields","componentId","fieldOrdering","isAdmin"],[3,"componentId","supportCustomFields"],[1,"component-field"],[3,"onTabChange","tabIndex"],["mat-dialog-title",""],[1,"b-archive-component-list"],["type","button","mat-button","","mat-dialog-close","","aria-label","Click to close the dialog without archiving the component",
3,"click"],["type","button","mat-flat-button","","mat-dialog-close","","aria-label","Click to archive the component","color","warn",3,"click"],["aria-label","Learn more about archiving components","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more about buganizer retention","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["aria-label","Learn more on how to recursively unarchive subcomponents","target","_blank",1,"keep-underline","keep-focus-ring",
3,"href"],[3,"component"]],template:function(a,b){a&1&&(E(0,qTb,11,3),S(1,"async"),Ag(2,rTb,2,1,"div",8));a&2&&F(T(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[aH,Pv,aB,WB,kN,mN,QZ,u3,t9c,D3,U_,T0,L3,wy,Li,oy,py,Gy,vy,ty,CL,PA,Tx,Ux,yM,CM,uK,wK,yK,xK,Yw,cH,dH,dO,ZN,$N,YA,cB,T1,m7,Z6,R1,ON,xN,sN,T5,Qv,Sv],styles:[".mat-mdc-form-field[_ngcontent-%COMP%]{width:500px}b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}div.slo-admins-link[_ngcontent-%COMP%]{margin-top:3px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.component-slo-id-select[_ngcontent-%COMP%], .component-slo-justification-text[_ngcontent-%COMP%], .indented[_ngcontent-%COMP%], div.slo-breadcrumbs[_ngcontent-%COMP%]{margin-left:24px}.component-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}button.slo-inheritance-path[_ngcontent-%COMP%]{margin-left:30px}div.slo-breadcrumbs[_ngcontent-%COMP%]{padding:4px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble[_ngcontent-%COMP%]{left:8px}.field-label-with-help[_ngcontent-%COMP%]:focus   .help-bubble-right[_ngcontent-%COMP%]{left:-120px}.mat-mdc-button[_ngcontent-%COMP%]:focus, .mat-mdc-button[_ngcontent-%COMP%]:focus-visible, .mat-mdc-button[_ngcontent-%COMP%]:focus-within, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus-visible, .mat-mdc-flat-button.mat-primary[_ngcontent-%COMP%]:focus-within{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}[_nghost-%COMP%]     .permission-toggle-checkbox mat-checkbox{top:-5px}[_nghost-%COMP%]     .permission-toggle-checkbox mat-checkbox input{width:auto}  .gmat-mdc-button.mat-mdc-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-button:not([disabled]):focus-within .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus-visible .mat-button-focus-overlay,   .gmat-mdc-button.mat-mdc-outlined-button:not([disabled]):focus-within .mat-button-focus-overlay{opacity:.06}\n/*# sourceMappingURL=manage_component.css.map */"]});var ddd=["deleteTriageDialog"],vUb=function(a){return{value:a}},TTb=function(a){return[a]},UTb=function(){return[]},edd={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping",TRIAGE:"triage",ACCESS:"accessControl"},o7=function(){Z.call(this);var a=this;this.activeSession=n(Es);this.accessPolicyApi=n($C);this.appHistory=n(m2);this.butterBar=n(iK);this.checkBeforeExit=n(lS);this.componentActions=n(oN);this.errorHandler=n(DK);this.location=n(cI);this.matDialogService=n(tK);this.pageTitle=n(PY);this.routeParams=
n(bL);this.teamsService=n(yG);this.userAccess=n(jE);this.starredTeamsService=n(QG);this.sloApi=n(qG);this.sloService=n(rG);this.triageViewConfigDialogService=n(UW);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new tj("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new ag(1);this.teamSlo$=this.team$.pipe(y(function(e){return e.slo}));
this.isEscalationOwnerValid=!1;this.escalationOwnerEmail$=new tj("");this.escalationOwner$=new tj("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(e){if(e){e=l(e);for(var f=e.next();!f.done;f=e.next())if(!f.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(e){if(e){e=l(e);for(var f=e.next();!f.done;f=e.next())if(!f.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;
this.teamAdmins$=se(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(y(function(e){return e.admins.filter(lua).map(Sp)}));this.teamLeads$=this.team$.pipe(y(function(e){return e.members.filter(function(f){return f.isLead}).map(function(f){var h,k;return"USER:"+((k=(h=f.user)==null?void 0:h.emailAddress)!=null?k:"")})}));this.adminsAndLeads$=Je([this.teamAdmins$,this.teamLeads$]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;var h=new Set(e);f=f.filter(function(k){return!h.has(k)});
return[].concat(p(e),p(f))}));this.originalSloDelegates$=new tj([]);this.sloDelegates$=Oe(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(y(function(e){return e.admins.map(Sp)}));this.sloDelegates=[];this.associatedComponents$=se(this.componentActions.search("directteamid:"+this.teamId));this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(y(function(e){return e.values().next().value}));this.teamPath$=this.team$.pipe(y(function(e){var f=e.pathNames;return e.pathIds.map(function(h,
k){return{id:h,name:f[k]}})}));this.isRootTeam$=this.teamPath$.pipe(y(function(e){return e.length<=1?!0:!1}));this.parentTeam$=Je([this.isRootTeam$,this.teamPath$]).pipe(fg(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e?Ce(null):a.teamsService.getTeam(f[f.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(fg(function(e){var f=e==null?void 0:e.slo.sloId;return f&&f!=="0"?a.sloService.get(f).then(function(h){return{id:f,link:gNa(f),slo:h}}):Ce({id:"0"})}));
this.sloPolicySource$=Je([this.parentTeam$,this.teamPath$]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;var h=e==null?void 0:e.slo.sourceTeamId;e=f.find(function(k){return k.id===h});return h&&e?{name:e.name,link:{path:"/teams/"+h+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:Vsc}).pipe(y(YHa));this.Tab=edd;this.enableSloLockingUi=Yr(this.activeSession,"enableSloLockingUi");this.enableTeamScope=
Yr(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enableTeamAdmin=Yr(this.activeSession,"enableTeamAdmin")&&this.activeSession.isInternalSession();this.enableSloDelegatesUi=Yr(this.activeSession,"enableSloDelegatesUi")&&this.activeSession.isInternalSession();this.isSloInheritEnabled$=new tj(!0);this.isOwnerInheritEnabled$=new tj(!0);this.sloId$=new tj("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new tj(!1);this.hasSloReadAccess$=this.sloId$.pipe(fg(function(e){return kE(a.userAccess,
"reader","slos/"+e)}),eg(!1));this.sloPickerLink$=Je([this.sloId$,this.hasSloReadAccess$]).pipe(y(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e&&Number(e)>0&&f?gNa(e):null}));this.hasUnsavedChanges$=Je([this.team$,this.sloId$,this.isSloInheritEnabled$,this.isOwnerInheritEnabled$,this.sloLocked$,this.sloJustification$,this.escalationOwnerEmail$]).pipe(y(function(e){var f=l(e);var h=f.next().value;e=f.next().value;var k=f.next().value;var q=f.next().value;var u=f.next().value;var A=
f.next().value;f=f.next().value;var G=h.slo,H,N=(H=h.extra)==null?void 0:H.inheritEscalationOwner,O,U;H=(O=h.extra)==null?void 0:(U=O.escalationOwner)==null?void 0:U.emailAddress;return G.inherit!==k||N!==q||G.sloId!==e||u!==a.originalSloLock||G.comment!==A||H!==f}));this.teamExperiments={id:this.teamId,triage:[{id:0}]};this.hasTeamEditAccess=this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(gg(this.destroyed$)).subscribe(function(e){a.pageTitle.setTitle("Team: "+e.name)});var b=Yr(this.activeSession,
"enableSloLockingCheck"),c="teams/"+this.teamId;kE(this.userAccess,"writer",b?"teams/"+this.teamId+"/slo":c).then(function(e){a.hasSloEditAccess=e});kE(this.userAccess,"writer",c).then(function(e){a.hasTeamEditAccess=e});var d=mp(this.hasUnsavedChanges$.pipe(gg(this.destroyed$)),!1);this.subscriptions.add(mS(this.checkBeforeExit,function(){return d.getValue()},!1))};Y(o7,Z);o7.\u0275dir=Z.\u0275dir;
o7.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return b=a.location.hash(),b==="basic"?a.selectedTabIndex=0:b==="slo"?a.selectedTabIndex=1:b==="componentMapping"?a.selectedTabIndex=2:b==="triage"&&a.enableTeamScope?a.selectedTabIndex=3:b==="accessControl"&&a.enableSloDelegatesUi&&(a.selectedTabIndex=4),te(k,2),x(k,Ge(a.teamsService.get(a.teamId)),4);case 4:c=k.yieldResult;uu(k,3);break;case 2:return xe(k),a.butterBar.showWarning("Unable to fetch team ID '"+
a.teamId+"'"),k.return();case 3:a.team$.next(c);XTb(a);if(!a.enableSloDelegatesUi){k.jumpTo(5);break}d=a.originalSloDelegates$;e=d.next;return x(k,Ge(a.sloDelegates$),6);case 6:e.call(d,k.yieldResult),a.sloDelegates=a.originalSloDelegates$.getValue();case 5:return x(k,Ge(a.parentTeam$),7);case 7:a.parentTeam=k.yieldResult||null;if(!a.enableTeamScope){k.jumpTo(0);break}return x(k,Ge(itc(a.teamsService,a.teamId)).catch(function(){}),9);case 9:f=k.yieldResult,a.teamExperiments=(h=f)!=null?h:{id:a.teamId,
triage:[{id:0}]},ze(k)}})};o7.prototype.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};o7.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var WTb=function(a,b){var c,d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:if(!a.validate())return u.return();Mq(a.butterBar,"Saving changes...",0);te(u,2);if(((c=b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress)===a.escalationOwnerEmail){u.jumpTo(4);break}var A,G;var H=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(A=b.extra)==null?void 0:(G=A.defaultEscalationOwner)==
null?void 0:G.emailAddress},inheritEscalationOwner:a.isOwnerInheritEnabled}}));return x(u,Ge(H),5);case 5:e=u.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){u.jumpTo(6);break}H=a.sloApi;A=a.teamId;G=a.sloLocked;var N=new oG;G=Nk(N,2,G?1:2).setTeamId(Number(A));H=H.executor.post({url:"action/teams/"+A+"/slo_edit_policy",responseConstructor:Xsc,body:G}).pipe(y(YHa));return x(u,Ge(H),7);case 7:f=u.yieldResult,a.originalSloLock=f;case 6:h=b.slo;if(h.inherit===a.isSloInheritEnabled&&
h.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&h.comment===a.sloJustification){u.jumpTo(8);break}G={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};H=a.teamsService;A=a.teamId;G=(new wG).setIt(hCa(G));H=H.executor.post({url:"/action/teams/"+A+"/update_slo",body:G,responseConstructor:tG}).pipe(y(fIa));return x(u,Ge(H),9);case 9:k=u.yieldResult,a.team$.next(k);case 8:Mq(a.butterBar,"Save complete.");uu(u,0);break;case 2:q=
xe(u),FK(a.errorHandler,q),ze(u)}})},fdd=function(a){var b,c;w(function(d){if(d.nextAddress==1)return Mq(a.butterBar,"Saving changes...",0),x(d,Ge(jtc(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;Mq(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}]};ze(d)})},rUb=function(a){var b,c,d;return w(function(e){if(e.nextAddress==1){try{b=Zp(Xp()),b.admins=Wp(a.sloDelegates)}catch(f){return c="An unknown problem occurred",f instanceof Error&&(c=f.message),
a.butterBar.showWarning(c),e.return()}Mq(a.butterBar,"Saving changes...",0);te(e,2);return x(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){Mq(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return uu(e,0);d=xe(e);a.butterBar.showWarning(Xo(d));return e.return()})},sUb=function(a){return w(function(b){a.sloDelegates=a.originalSloDelegates$.getValue();ze(b)})};
o7.prototype.validate=function(){if(!this.isSloInheritEnabled&&this.sloJustification$.getValue()==="")return this.error="Justification is required",!1;if(!this.isEscalationOwnerValid)return this.error="Please provide a valid owner",!1;this.error="";return!0};o7.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a.toString()&&d.teamId===b})};
var RTb=function(a){var b,c,d,e,f,h,k,q;w(function(u){if(u.nextAddress==1)return x(u,Ge(a.team$),2);if(u.nextAddress!=3)return b=u.yieldResult,(e=(c=b.extra)==null?void 0:(d=c.defaultEscalationOwner)==null?void 0:d.emailAddress)?(a.escalationOwner="USER:"+e,u.return()):x(u,Ge(a.parentTeam$),3);f=u.yieldResult;e=(q=(h=f.extra)==null?void 0:(k=h.escalationOwner)==null?void 0:k.emailAddress)!=null?q:"";a.escalationOwner=e?"USER:"+e:"";ze(u)})},gdd=function(a){Ge(a.team$).then(function(b){var c,d,e=(c=
b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress;a.escalationOwner=e?"USER:"+e:"";var f,h;a.isOwnerInheritEnabled=(h=(f=b.extra)==null?void 0:f.inheritEscalationOwner)!=null?h:!0})},hdd=function(a){Ge(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},idd=function(a){Ge(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},XTb=function(a){a.error="";gdd(a);hdd(a);a.enableSloLockingUi&&idd(a)};
o7.prototype.back=function(){n2(this.appHistory)};o7.prototype.getTriageLink=function(a,b){return Fq.viewTriage.makeHref(b,a)};o7.prototype.toggleStar=function(a,b){var c=this,d;return w(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return x(e,Itc(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;ze(e)})};
var kUb=function(a,b,c){var d,e,f,h;return w(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(q){return q.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return x(k,Ge(Ce(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?x(k,Ge(itc(a.teamsService,a.teamId)),3):k.return();if(h=k.yieldResult)a.teamExperiments=h;ze(k)})},oUb=function(a,b){var c,d,e;return w(function(f){if(f.nextAddress==1)return c=
{teamExperiments:a.teamExperiments,teamName:b.name},x(f,Ge(Ce(a.triageViewConfigDialogService.show(c))),2);if(f.nextAddress!=3)return(d=f.yieldResult)?x(f,Ge(itc(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;ze(f)})},jdd=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),fdd(a))},iUb=function(a,b){nK(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(gg(a.destroyed$)).subscribe(function(c){c&&
jdd(a,b.id)})};
ea.Object.defineProperties(o7.prototype,{sloJustification:{configurable:!0,enumerable:!0,get:function(){return this.sloJustification$.getValue()}},escalationOwnerEmail:{configurable:!0,enumerable:!0,get:function(){return this.escalationOwnerEmail$.getValue()}},escalationOwner:{configurable:!0,enumerable:!0,set:function(a){a!==this.escalationOwner$.getValue()&&(this.escalationOwner$.next(a),this.escalationOwnerEmail$.next(a?a.split(":")[1]:""))},get:function(){return this.escalationOwner$.getValue()}},isSloInheritEnabled:{configurable:!0,
enumerable:!0,set:function(a){a!==this.isSloInheritEnabled$.getValue()&&this.isSloInheritEnabled$.next(a)},get:function(){return this.isSloInheritEnabled$.getValue()}},isOwnerInheritEnabled:{configurable:!0,enumerable:!0,set:function(a){a!==this.isOwnerInheritEnabled$.getValue()&&this.isOwnerInheritEnabled$.next(a)},get:function(){return this.isOwnerInheritEnabled$.getValue()}},sloId:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloId$.getValue()&&(this.sloId$.next(a),this.enableSloChecked=
a!=="0")},get:function(){return this.sloId$.getValue()}},enableSloChecked:{configurable:!0,enumerable:!0,set:function(a){a!==this.enableSloCheckedInternal&&(this.enableSloCheckedInternal=a,a||(this.sloId="0"))},get:function(){return this.enableSloCheckedInternal}},sloLocked:{configurable:!0,enumerable:!0,set:function(a){a!==this.sloLocked$.getValue()&&this.sloLocked$.next(a)},get:function(){return this.sloLocked$.getValue()}}});o7.\u0275fac=function(a){return new (a||o7)};
o7.\u0275cmp=B({type:o7,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(Wg(ddd,5),Wg(ZN,5,ff));if(a&2){var c;$g(c=ah())&&(b.deleteTriageDialog=c.first);$g(c=ah())&&(b.tabs=c)}},standalone:!1,features:[kg],decls:10,vars:3,consts:[["deleteTriageDialog",""],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","aria-label","Go back","color","primary","ngClass","large","matTooltip","Go back",3,"click"],["svgIcon","arrow-backward",1,"icon-m"],["cdkScrollable",
"",1,"bv2-view"],[1,"edit-resource-header"],["target","_blank",3,"href"],["svgIcon","pop-out",1,"icon-s"],[1,"team-hierarchy-container"],["gmat-tabs","","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["label","Basic Information",3,"id"],[1,"edit-resource-panel"],[1,"edit-field"],[1,"field-label"],[1,"edit-field-header"],[1,"description"],[1,"field-label-with-help"],[1,"help-label"],[1,"help-container"],[1,"help-bubble","jfk-bubble"],[1,"jfk-bubble-arrow","jfk-bubble-arrowleft"],
[1,"jfk-bubble-arrowimplbefore"],[1,"jfk-bubble-arrowimplafter"],[3,"users"],["label","Team SLO",3,"id"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-inheritance-link",3,"routerLinkObj"],[1,"lock-state"],[3,"error"],[1,"edit-button-row"],["label","Component mapping",3,"id"],["label","Triage",3,"id"],["label","Access Control",3,"id"],[3,"teamPath"],[3,"routerLink"],[3,"routerLinkObj"],["svgIcon","lock-outline"],
["svgIcon","lock-open"],[1,"edit-field","less-margin"],["gmat-checkbox","",1,"override-slo",3,"change","disabled","checked"],[1,"edit-field","slo-justification"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[1,"team-slo-id-select",3,"onSloSelect","boundId","bv2Disabled","bv2Placeholder"],["mat-icon-button","","matTooltip","Go to SLO management page",1,"small","slo-link",3,"routerLinkObj","target"],["id","team-slo-justification-label",
1,"required"],["svgIcon","help-outline",1,"icon-s","valign-middle",3,"matTooltip"],["aria-labelledby","team-slo-justification-label","required","",1,"slo-justification-text",3,"ngModelChange","ngModel","disabled"],["gmat-checkbox","",1,"slo-lock",3,"change","checked","disabled"],["idForInputBox","team-owner","ariaLabel","Escalation owner email",3,"usersChange","isValid","users","customValidators","detailedUserValidators","maxUserAllowed"],["gmat-checkbox","",1,"override-owner",3,"change","checked",
"disabled"],[1,"edit-button-group"],["type","button","gmat-mdc-button","","mat-flat-button","","color","primary",3,"click","disabled"],["type","button","gmat-mdc-button","","mat-stroked-button","","color","primary",3,"click","disabled"],["mat-table","",1,"full-width",3,"dataSource"],["matColumnDef","starred"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","triage-name",4,"matCellDef"],["matColumnDef","actions"],["mat-header-row",
"",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-button","","color","primary",3,"click","disabled"],["mat-header-cell",""],[1,"a11y-only"],["mat-cell",""],["tabindex","-1",3,"starClicked","starred","starMessage","unStarMessage"],["mat-cell","",1,"triage-name"],[1,"hover-link",3,"href"],[1,"flex-kids-x"],["type","button","aria-label","Edit","mat-icon-button","",3,"click","disabled"],["svgIcon","edit-outline"],[1,"space-placeholder"],["type","button","mat-icon-button",
"","aria-label","Remove",3,"disabled"],["type","button","mat-icon-button","","aria-label","Remove",3,"click","disabled"],["svgIcon","delete"],["mat-header-row",""],["mat-row",""],["idForInputBox","Users who can manage SLO associations on teams and associated components","ariaLabel","SLO delegates",3,"usersChange","users","includeAliases","includeViewAliases"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button",
"color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=r();I(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4);M("click",function(){t(c);return v(b.back())});K(4,"mat-icon",5);J()()()();I(5,"div",6);E(6,wUb,97,45);S(7,"async");J();C(8,xUb,7,3,"ng-template",null,0,nh)}if(a&2){var d;z(6);F((d=T(7,1,b.team$))?6:-1,d)}},dependencies:[Mv,aB,FA,WB,T0,Li,oy,Gy,vy,PA,Tx,Ux,yM,CM,uK,yK,xK,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,dO,ZN,$N,YA,cB,Yw,cH,dH,
YO,R1,wS,H1,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0px}.mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0px}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}.description[_ngcontent-%COMP%]{white-space:pre-wrap}button[_ngcontent-%COMP%]{height:32px;line-height:32px}button.mat-mdc-icon-button.large[_ngcontent-%COMP%]{height:36px;line-height:36px;width:36px}.team-hierarchy-container[_ngcontent-%COMP%]{margin-top:-5px;padding-bottom:32px;padding-left:20px}.metadata[_ngcontent-%COMP%]{margin:10px 0}.metadata[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:16px;height:16px}.lock-state[_ngcontent-%COMP%]{display:flex;align-items:center}.team-slo-id-select[_ngcontent-%COMP%]{display:inline-block;width:450px}label[_ngcontent-%COMP%]{display:inline-block;line-height:2.2em}label[_ngcontent-%COMP%]   .edit-field-header[_ngcontent-%COMP%]{font-weight:bold}textarea.slo-justification-text[_ngcontent-%COMP%]{height:3em}div.edit-field.less-margin[_ngcontent-%COMP%]{margin:8px 0}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:1.2}.indented[_ngcontent-%COMP%], .slo-justification[_ngcontent-%COMP%], .team-slo-id-select[_ngcontent-%COMP%]{margin-left:24px}.space-placeholder[_ngcontent-%COMP%]{width:40px}.team-slo-id-select[_ngcontent-%COMP%], mat-slide-toggle.slo-enable[_ngcontent-%COMP%]{display:inline-block}.triage-name[_ngcontent-%COMP%]{width:100%}/*# sourceMappingURL=manage_team.css.map */"]});var kdd=["content"],ldd=["task_input"],DUb=function(a,b){return b.id},mdd=new RegExp(/cl\/(\d+)|cr\/(\d+)|critique-ng.*.corp.google.com\/cl\/(\d+)|critique-legacy.corp.google.com\/.*review\/(\d+)|critique.corp.google.com\/.*review\/(\d+)/,"i"),ndd=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),odd=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,
"i"),pdd=new RegExp(/irm\/(\w+)|irm\.corp\.google\.com\/incidents\/(\w+)/,"i"),p7=function(){Z.call(this);var a=this;this.destroyRef=n(df);this.window=n(jK);this.activeSession=n(Es);this.errorHandler=n(DK);this.butterBar=n(iK);this.focusEscapeNotifierFactory=n(GL);this.tasksService=n(fG);this.analytics=n(CF);this.cancelClicked=new LA;this.saveClicked=new LA;this.focusEscaped=new LA;this.addTasksForm=new uy("",[ky,function(b){var c;(c=b.value==="")||(b=b.value,c=mdd.test(b)||ndd.test(b)||odd.test(b)||
pdd.test(b)||a.dynamicBuganizerUrlPattern.test(b));c?(a.validationErrorMessage="",b=null):(a.validationErrorMessage="Unsupported link. Task ID could not be extracted from URL.",b={unsupportedUrl:a.validationErrorMessage});return b}]);this.enableGoogleTasks=Yr(this.activeSession,"enableGoogleTasks");this.gtaskListIds$=Dsc(this.tasksService).pipe(Gh(this.destroyRef),Pf(function(b){console.error("Error fetching task list:",b);return Ce([])}));this.saving=!1;this.validationErrorMessage="";this.fb=n(Ky);
this.gTaskForm=this.fb.group({title:["",ky],details:[""],date:[null],taskListId:["",ky]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(ak(this.window.location.hostname)+"\\/(?:issues\\/)?(\\d+)","i")};Y(p7,Z);p7.\u0275dir=Z.\u0275dir;g=p7.prototype;
g.ngAfterViewInit=function(){var a=this;this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(gg(this.destroyed$)).subscribe(function(b){if(b===0){var c;(c=a.focusEscapeNotifier)==null||ecc(c)}else{var d;(d=a.focusEscapeNotifier)==null||mw(d)}});this.analytics.trackEvent("taskDialog","open","addTaskDialog")};
g.saveChanges=function(){var a=this;this.saving=!0;this.analytics.trackEvent("manualSignal","add","dialog");var b=this.parseUrl(this.addTasksForm.value),c=this.dynamicBuganizerUrlPattern.test(this.addTasksForm.value)?3E3:0;wsc(this.tasksService,[b],!0).pipe(Wf(c)).subscribe(function(){a.saving=!1;a.saveClicked.emit()},function(d){a.saving=!1;a.butterBar.showWarning("Failed to trigger alert on task: "+b);a.errorHandler.errorHandler(null,d)})};
g.parseUrl=function(a){if(mdd.test(a))return"cl/"+a.match(mdd).slice(1).find(function(b){return!!b});if(ndd.test(a))return"drive/"+a.match(ndd).slice(1).find(function(b){return!!b});if(odd.test(a))return a=a.match(odd),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if(pdd.test(a))return"irm/"+a.match(pdd).slice(1).find(function(b){return!!b});a=a.match(this.dynamicBuganizerUrlPattern);if(a!=null)return"b/"+a.slice(1).find(function(b){return!!b});throw Error("Jf");};
g.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(Gh(this.destroyRef),fg(function(c){return wsc(b.tasksService,[c],!0)}),Yf(function(){b.saving=!1})).subscribe({next:function(){b.saveClicked.emit();b.analytics.trackEvent("googleTasks","click","addGoogleTask")},error:function(c){console.error("Error saving task:",c);b.butterBar.showWarning("Something went wrong saving the task: "+a.title)}})};
g.onSubmit=function(){if(this.gTaskForm.valid){var a,b=(new Date((a=this.gTaskForm.value.date)!=null?a:0)).getTime();this.saveGTask({title:this.gTaskForm.value.title,details:this.gTaskForm.value.details,taskListId:this.gTaskForm.value.taskListId,dueDateMs:b})}else this.butterBar.showWarning("Invalid data. Please check the information provided.",this.gTaskForm.value.title)};
ea.Object.defineProperties(p7.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("title")}},details:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("details")}},date:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("date")}},taskListId:{configurable:!0,enumerable:!0,get:function(){return this.gTaskForm.get("taskListId")}}});p7.\u0275fac=function(a){return new (a||p7)};
p7.\u0275cmp=B({type:p7,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(Wg(kdd,7),Wg(ldd,5));if(a&2){var c;$g(c=ah())&&(b.content=c.first);$g(c=ah())&&(b.taskInput=c.first)}},outputs:{cancelClicked:"cancelClicked",saveClicked:"saveClicked",focusEscaped:"focusEscaped"},standalone:!1,features:[kg],decls:8,vars:2,consts:[["content",""],["urlTabContent",""],["googleTasksTabContent",""],["task_input",""],["detailsInput",""],["picker",""],[1,"container"],"gmat-tabs  matAlignTabs start matStretchTabs false preserveContent ".split(" "),
[1,"add-task-help-text"],"href;http://go/b-home#manual-alerts;target;_blank;aria-label;Link to user guide for manual signals".split(";"),["appearance","outline"],["type","url","matInput","","aria-label","Enter task URL","required","",1,"task-input",3,"formControl","placeholder"],[1,"actions"],[1,"b-add-task-button-row"],["type","button","mat-button","",1,"cancel",3,"click"],["type","button","mat-button","",1,"save",3,"click","disabled"],[1,"google-tasks-tab-content"],[1,"g-task-form",3,"ngSubmit",
"formGroup"],["appearance","outline",1,"input-form","hard-padding"],"type;text;matInput;;aria-label;Title;placeholder;Enter title;formControlName;title;maxlength;1024;required;".split(";"),["align","end"],"matInput;;formControlName;details;resize;none;cdkAutosizeMinRows;4;cdkAutosizeMaxRows;4;placeholder;Add details;aria-label;Details;maxlength;8192".split(";"),["appearance","outline",1,"hard-padding"],["svgIcon","google-tasks-logo","matIconPrefix",""],["formControlName","taskListId","placeholder",
"Select a task list"],["aria-label","Task list",3,"value"],[1,"error-message"],["appearance","outline",1,"calendar-width"],["matPrefix","",3,"for"],["matInput","","placeholder","Select a date","formControlName","date","aria-label","Date","readonly","",3,"click","matDatepicker"],[1,"button-container"],["mat-button","","type","submit",3,"disabled"],["label","URL"],[4,"ngTemplateOutlet"],["label","Google Tasks"]],template:function(a,b){a&1&&(I(0,"div",6,0),C(2,zUb,15,4,"ng-template",null,1,nh)(4,EUb,
30,10,"ng-template",null,2,nh),E(6,HUb,5,2,"mat-tab-group",7),E(7,JUb,1,1,"ng-container"),J());a&2&&(z(6),F(b.enableGoogleTasks?6:-1),z(),F(b.enableGoogleTasks?-1:7))},dependencies:[Pv,aB,PA,Tx,iz,gz,hz,wy,Li,oy,py,Gy,Hy,Ay,By,Cy,Xy,Py,Oy,Ry,rP,zP,Lx,YM,ez,dO,ZN,$N,Qv],styles:[".container[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;background-color:#fff;background-color:var(--surface-default)}mat-form-field[_ngcontent-%COMP%]{padding:4px;width:400px}.dark-mode   [_nghost-%COMP%]   input[type=url][_ngcontent-%COMP%]{color-scheme:dark}.add-task-help-text[_ngcontent-%COMP%]{padding:4px;font-weight:bold;color:#5f6368;color:var(--text-muted)}.actions[_ngcontent-%COMP%]{padding:4px;text-align:end}.g-task-form[_ngcontent-%COMP%]{padding:4px}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}.button-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px}.label-wrapper[_ngcontent-%COMP%]{float:right}textarea[_ngcontent-%COMP%]{resize:none;padding:0px}.hard-padding[_ngcontent-%COMP%]{display:block;margin:1em 0}  .mat-datepicker-content .mat-calendar{background-color:#fff;background-color:var(--surface-default)}  .mat-datepicker-content .mat-mdc-button.mat-unthemed{color:#202124;color:var(--text-default)}/*# sourceMappingURL=add_task_dialog_content.css.map */"]});var qdd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],q7=function(){Z.call(this);var a=this;this.overlay=n(vx);this.element=n(ff);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new LA;this.onClose=new LA;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==
null||b.dispose()})};Y(q7,Z);g=q7.prototype;g.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};g.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(){if(this.opened){var a;(a=this.overlayRef)==null||a.dispose();this.overlayRef=void 0;this.opened=!1;this.onClose.emit()}};
g.onHostTab=function(a){this.opened&&this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(mw(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};g.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(ecc(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-add-task-dialog-backdrop",panelClass:"b-add-task-dialog-popup"});a.overlayElement.setAttribute("role","dialog");a.overlayElement.setAttribute("title","Add Task By URL");return a};
g.attach=function(){var a=this,b=new ox(p7),c;this.addTaskContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues();var e;(e=a.addTaskContent)==null||e.taskInput.nativeElement.focus()})};g.getPositionStrategy=function(){return hx(ix(jx(mx(this.overlay.position(),this.element)),8),qdd)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
g.connectValues=function(){var a=this;if(this.addTaskContent&&this.overlayRef){var b=Ue(this.overlayRef._detachments,this.destroyed$);this.addTaskContent.saveClicked.pipe(gg(b)).subscribe(function(){a.taskAdded.emit()});Ue(this.addTaskContent.saveClicked,this.addTaskContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(Ve(function(c){return c.code==="Escape"}))).pipe(gg(b)).subscribe(function(){a.close()})}};q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275dir=Kf({type:q7,selectors:[["","bAddTaskDialogToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClickHost(c)})("keydown.enter",function(c){return b.onHostEnter(c)})("keydown.tab",function(c){return b.onHostTab(c)})("keydown.shift.tab",function(c){return b.onHostShiftTab(c)});a&2&&ng("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter"},outputs:{taskAdded:"taskAdded",onClose:"onClose"},
exportAs:["bAddTaskDialogToggle"],standalone:!1,features:[kg]});var r7=function(){};r7.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+rdd.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+rdd.format(new Date(b.seconds*1E3))};r7.\u0275fac=function(a){return new (a||r7)};r7.\u0275pipe=Lf({name:"futureAvailability",type:r7,pure:!0,standalone:!1});var rdd=new cE(OL.WEEKDAY_MONTH_DAY_MEDIUM);var s7=function(){this.activeSession=n(Es);this.hovercardReady$=new ag(1);this.environmentType=this.activeSession.getEnvironmentType()};s7.prototype.ngOnInit=function(){this.hovercardReady$.next()};s7.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};s7.\u0275fac=function(a){return new (a||s7)};
s7.\u0275cmp=B({type:s7,selectors:[["iteration-card"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","gap","margin-s-bottom"],["role","img","svgIcon","taskflow-logo",1,"icon-s"],[1,"flex-kids-x","align-items-center","gap"],["role","img","svgIcon","time-24px",1,"icon-s","muted"],["target","_blank",1,"hover-link",3,"href"],["mode","date",3,"paddingLeftPx","timestamp"]],template:function(a,b){a&1&&E(0,KUb,13,7,"div",0);
a&2&&F(b.iteration?0:-1)},dependencies:[aB,ZL],encapsulation:2});var t7=function(){this.analytics=n(CF);this.domSafe=n(rL);this.activeSession=n(Es);this.environmentType=this.activeSession.getEnvironmentType()};t7.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","iteration-chip")};t7.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};t7.\u0275fac=function(a){return new (a||t7)};
t7.\u0275cmp=B({type:t7,selectors:[["iteration-chip"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[["iterationHovercard","onedevHovercard"],["cardBody",""],[1,"iteration-chip","margin-xs-right",3,"onedevHovercardShown","click","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","iteration",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","iteration"]],template:function(a,b){a&1&&E(0,MUb,5,1);a&2&&F(b.iteration?0:-1)},dependencies:[s7,fJ,gJ,lJ,hJ],styles:[".iteration-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text);height:18px;border-radius:4px;border:1px solid;padding:1px 4px;display:inline-flex}/*# sourceMappingURL=iteration_chip.css.map */"],
changeDetection:0});var u7=new Map([["TAGGED_IN_COMMENT","Mentioned me"],["REQUIRES_APPROVAL","Added as approver"],["DRIVE_MANUAL_SIGNAL","Manually added"],["DRIVE_SNOOZE_EXPIRED","Recently awoke"],["THREAD_MENTIONS_ME","Mentioned me"],["NEEDS_ATTENTION","In attention set"],["READY_TO_SUBMIT","Ready to submit"],["CHANGELIST_MANUAL_SIGNAL","Manually added"],["CHANGELIST_SNOOZE_EXPIRED","Recently awoke"],["NEAR_SLO","Near SLO"],["COMMENT_MENTIONS_ME","Mentioned me"],["BLOCKERS_CLOSED","Blockers closed"],["NEWLY_BLOCKING",
"Newly blocking"],["NEEDS_REPORTER_INPUT","Needs reporter input"],["REPLIED_TO_MENTION","Replied to me"],["NEWLY_ASSIGNED_TO_ME","Newly assigned"],["ISSUE_MANUALLY_SIGNALED","Manually added"],["ISSUE_SNOOZE_EXPIRED","Recently awoke"],["MENTIONED_NEEDS_RESPONSE","Needs response"],["CONFIGURABLE_ALERT","Newly matches alert"],["GERRIT_CHANGE_NEEDS_ATTENTION","In attention set"],["GERRIT_CHANGE_READY_TO_SUBMIT","Ready to submit"],["GERRIT_MANUAL_SIGNAL","Manually added"],["GERRIT_SNOOZE_EXPIRED","Recently awoke"],
["DUE_SOON","Due soon"],["DUE_DATE_EXPIRED","Due date expired"],["GOOGLE_TASKS_MANUAL_SIGNAL","Manually added"],["GOOGLE_TASKS_SNOOZE_EXPIRED","Recently awoke"],["IRM_MANUAL_SIGNAL","Manually added"],["IRM_SNOOZE_EXPIRED","Recently awoke"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Postmortem being drafted"],["IRM_REVIEW_POSTMORTEM","Postmortem needs review"]]),uVb=new Map([["TAGGED_IN_COMMENT","Someone mentioned me in a comment"],["REQUIRES_APPROVAL","You were added as an approver"],["DRIVE_MANUAL_SIGNAL",
"You manually added this file"],["DRIVE_SNOOZE_EXPIRED","This file recently awoke from a snooze"],["THREAD_MENTIONS_ME","You were mentioned on this CL recently"],["NEEDS_ATTENTION","This CL is in your \u201cNeeds attention\u201d list in Critique"],["CHANGELIST_MANUAL_SIGNAL","You manually added this changelist"],["CHANGELIST_SNOOZE_EXPIRED","This changelist recently awoke from a snooze"],["READY_TO_SUBMIT","This CL is ready to submit"],["NEAR_SLO","20% of SLO time is remaining for this issue"],["COMMENT_MENTIONS_ME",
"You were mentioned on this issue"],["BLOCKERS_CLOSED","The last blocking issue was closed recently"],["NEWLY_BLOCKING","This issue started blocking another issue recently"],["NEEDS_REPORTER_INPUT","Issue was assigned back to reporter (you) recently"],["REPLIED_TO_MENTION","Someone replied to your mention recently"],["NEWLY_ASSIGNED_TO_ME","This issue was recently assigned to you"],["ISSUE_MANUALLY_SIGNALED","You manually added this issue"],["ISSUE_SNOOZE_EXPIRED","This issue recently awoke from a snooze"],
["MENTIONED_NEEDS_RESPONSE","You were mentioned on this issue and your response is requested"],["CONFIGURABLE_ALERT","This issue recently matches a configurable alert"],["GERRIT_CHANGE_NEEDS_ATTENTION","Your turn to take action on the change"],["GERRIT_CHANGE_READY_TO_SUBMIT","Your turn to take action on the change"],["GERRIT_MANUAL_SIGNAL","You manually added this change"],["GERRIT_SNOOZE_EXPIRED","This change recently awoke from a snooze"],["DUE_SOON","This task is due soon"],["DUE_DATE_EXPIRED",
"This task is past its due date"],["GOOGLE_TASKS_MANUAL_SIGNAL","You manually added this task"],["GOOGLE_TASKS_SNOOZE_EXPIRED","This task recently awoke from a snooze"],["IRM_MANUAL_SIGNAL","You manually added this incident"],["IRM_SNOOZE_EXPIRED","This incident recently awoke from a snooze"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Postmortem should be sent for review"],["IRM_REVIEW_POSTMORTEM","You were added as a postmortem reviewer"]]),sdd=new Map([["TAGGED_IN_COMMENT","Reply to comment"],["REQUIRES_APPROVAL",
"Review"],["DRIVE_MANUAL_SIGNAL","Manually added"],["DRIVE_SNOOZE_EXPIRED","Dismiss to remove"],["THREAD_MENTIONS_ME","Reply to comment"],["NEEDS_ATTENTION","Review CL"],["READY_TO_SUBMIT","Submit CL"],["CHANGELIST_MANUAL_SIGNAL","Manually added"],["CHANGELIST_SNOOZE_EXPIRED","Dismiss to remove"],["NEAR_SLO","View issue"],["COMMENT_MENTIONS_ME","Reply to comment"],["BLOCKERS_CLOSED","View issue"],["NEWLY_BLOCKING","View blocker issue"],["NEEDS_REPORTER_INPUT","Reply to comment"],["REPLIED_TO_MENTION",
"Reply to comment"],["NEWLY_ASSIGNED_TO_ME","Start work"],["ISSUE_MANUALLY_SIGNALED","Manually added"],["ISSUE_SNOOZE_EXPIRED","Edit or dismiss"],["MENTIONED_NEEDS_RESPONSE","Reply to comment"],["CONFIGURABLE_ALERT","View issue"],["GERRIT_CHANGE_NEEDS_ATTENTION","Review change"],["GERRIT_CHANGE_READY_TO_SUBMIT","Submit change"],["GERRIT_MANUAL_SIGNAL","Manually added"],["GERRIT_SNOOZE_EXPIRED","Dismiss to remove"],["DUE_SOON","View task"],["DUE_DATE_EXPIRED","View task"],["GOOGLE_TASKS_MANUAL_SIGNAL",
"Manually added"],["GOOGLE_TASKS_SNOOZE_EXPIRED","Edit or dismiss"],["IRM_MANUAL_SIGNAL","Manually added"],["IRM_SNOOZE_EXPIRED","Dismiss to remove"],["IRM_SEND_POSTMORTEM_FOR_REVIEW","Send postmortem for review"],["IRM_REVIEW_POSTMORTEM","Review postmortem"]]);var v7=function(){this.tasksApi=n(fG);this.analytics=n(CF);this.mentionedDriveComment$=Ce();this.contentReady$=new ag(1)};v7.prototype.ngOnInit=function(){var a=this;this.fileId&&this.commentId&&(this.analytics.trackEvent("mentionsCard","view","hovercard"),this.mentionedDriveComment$=Asc(this.tasksApi,this.fileId,this.commentId).pipe(hg(function(){a.contentReady$.next()})))};v7.\u0275fac=function(a){return new (a||v7)};
v7.\u0275cmp=B({type:v7,selectors:[["mentioned-drive-comments-card"]],inputs:{fileId:"fileId",commentId:"commentId",lastMentionLink:"lastMentionLink"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","space-between","margin-s-bottom"],[1,"bv2-event-user-name",3,"model"],["target","_blank",1,"hover-link",3,"href"],["mode","datetime",3,"timestamp"],["target","_blank",1,"hover-link",3,"click","href"]],template:function(a,b){a&1&&(E(0,ZUb,11,4,"div",0),
S(1,"async"));if(a&2){var c;F((c=T(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[ZL,zL,Qv],styles:["[_nghost-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto}"]});var dVb=function(a){return{"margin-s-bottom padded-s-bottom border-bottom":a}},aVb=function(a){return{"has-reacted-icon":a}},fVb=function(a,b){return b.commentNumber},w7=function(){this.issueCommentsBatchApi=n(FE);this.analytics=n(CF);this.activeSession=n(Es);this.enableExternalMentionsFe=Yr(this.activeSession,"enableExternalMentionsFe");this.commentNumbers=[];this.mentionedComments$=Ce();this.contentReady$=new ag(1);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1};
w7.prototype.ngOnInit=function(){var a=this;this.analytics.trackEvent("mentionsCard","view","hovercard");this.mentionedComments$=this.issueCommentsBatchApi.batchGet(this.issueId,this.commentNumbers).pipe(hg(function(){a.contentReady$.next()}))};w7.prototype.getCommentNumberLink=function(a,b){return cNa(a,{comment:b})};w7.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",tdd(this))};
w7.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",tdd(this))};var tdd=function(a){return JSON.stringify({id:a.issueId,commentNumber:a.commentNumbers})};w7.\u0275fac=function(a){return new (a||w7)};
w7.\u0275cmp=B({type:w7,selectors:[["mentioned-issue-comments-card"]],inputs:{issueId:"issueId",commentNumbers:"commentNumbers",needsResponse:"needsResponse"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[3,"ngClass"],[1,"flex-kids-x","align-items-center","space-between"],[1,"flex-kids-x","align-items-center","gap-xs"],[1,"bv2-event-user-name",3,"model"],[1,"hover-link",3,"routerLinkObj"],["mode","datetime",3,"timestamp"],[1,"hover-link",3,"click","routerLinkObj"],[3,"issueId","note",
"formattingMode"],[1,"flex-kids-x","gap-xs","justify-flex-end","align-items-center"],[1,"type-s","feedback-info"],["type","button","mat-icon-button","","aria-label","rate thumbs up",1,"keep-focus-ring","needs-response-feedback",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s",3,"ngClass"],["type","button","mat-icon-button","","aria-label","rate thumbs down",1,"keep-focus-ring","needs-response-feedback",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s",3,"ngClass"]],template:function(a,
b){a&1&&(E(0,gVb,5,0,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[Mv,aB,WB,zL,ZL,RO,Qv],styles:[".needs-response-feedback[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);background-color:#fff;background-color:var(--surface-default);border:none}.needs-response-feedback[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.needs-response-feedback[_ngcontent-%COMP%]:focus, .needs-response-feedback[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}button.needs-response-feedback[_ngcontent-%COMP%]:hover{cursor:pointer}.feedback-info[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"]});var x7=function(a,b){this.context={};b.createEmbeddedView(a,this.context)};ea.Object.defineProperties(x7.prototype,{xapLet:{configurable:!0,enumerable:!0,set:function(a){var b=new Set(hVb(a));if(this.context!==void 0)for(var c=l(hVb(this.context).filter(function(e){return!b.has(e)})),d=c.next();!d.done;d=c.next())delete this.context[d.value];c=l(b);for(d=c.next();!d.done;d=c.next())d=d.value,this.context[d]=a[d];this.context.$implicit=a;this.context.xapLet=a}}});
x7.\u0275fac=function(a){return new (a||x7)(zf(Tg),zf(Ug))};x7.\u0275dir=Kf({type:x7,selectors:[["","xapLet",""]],inputs:{xapLet:"xapLet"}});var jVb=function(a){return{signal:a}},wVb=function(){return[]},mVb=function(a,b){return b.type},udd=function(){this.activeSession=n(Es);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=u7;this.SIGNAL_TO_ACTION_TEXT=sdd;this.getSignalUrgency=VUb;this.getHighestPrioritySignal=WUb;this.enableMentionedCommentsHovercard=Yr(this.activeSession,"enableMentionedCommentsHovercard")},pVb=function(a,b){return a.filter(function(c){return c!==b}).map(function(c){return u7.get(c.type)}).join("; ")},sVb=function(a,b){return a.enableMentionedCommentsHovercard&&
(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},tVb=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null};udd.\u0275fac=function(a){return new (a||udd)};
udd.\u0275cmp=B({type:udd,selectors:[["needs-attention-signals-cell"]],inputs:{issueId:"issueId",signals:"signals"},standalone:!1,decls:4,vars:1,consts:[["signalChip",""],["mentionedCommentsHovercard","onedevHovercard"],["tooltip","matTooltip"],["cardBody",""],[1,"flex-kids-x","gap-xs"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-x","gap-xs","align-items-center"],[1,"overflow","type-m",3,"matTooltip"],[3,"class","keep-focus-ring","onedevHovercardActive","onedevHovercardTrigger",
"matTooltip","mouseenter","mouseleave",4,"xapLet"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink"],[3,"mouseenter","mouseleave","onedevHovercardActive","onedevHovercardTrigger","matTooltip"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink",4,"onedevHovercardLazyBody"]],template:function(a,b){a&
1&&(E(0,nVb,3,0,"div",4)(1,rVb,1,1),C(2,BVb,5,2,"ng-template",null,0,nh));a&2&&F(b.signals.length<3?0:1)},dependencies:[Pv,YA,cB,fJ,gJ,lJ,hJ,w7,v7,x7],styles:[".signal-chip[_ngcontent-%COMP%]{border:1px solid;border-color:#185abc;border-color:var(--blue-text);color:#185abc;color:var(--blue-text);padding:4px 12px;border-radius:32px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;white-space:nowrap}.signal-chip.urgent-0[_ngcontent-%COMP%]{border:1px solid;border-color:#d42521;border-color:var(--red-text);color:#d42521;color:var(--red-text)}.signal-chip.urgent-1[_ngcontent-%COMP%]{border:1px solid;border-color:#9334e6;border-color:var(--purple-text);color:#9334e6;color:var(--purple-text)}"]});var y7=function(){this.tasksService=n(fG);this.okrIds=[];this.hovercardReady$=new ag(1);this.teamObjectives$=Ce([])};y7.prototype.ngOnInit=function(){this.teamObjectives$=Csc(this.tasksService,vdd(this.okrIds));this.hovercardReady$.next()};
var vdd=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(p(new Set(a)))},FVb=function(a,b){var c;return(c=a.find(function(d){var e;return d.objective&&(d.objective.objectiveId===b||((e=d.objective.keyResults)==null?void 0:e.some(function(f){return b.includes(f.keyResultId)})))}))==null?void 0:c.objective},GVb=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=FVb(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},CVb=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=B({type:y7,selectors:[["okr-card"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:2,vars:3,consts:[["role","dialog","aria-label","OKR hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","okr-hovercard-content"],[1,"flex-kids-x","margin-s-bottom","type-m"],[1,"flex-kids-x","padded-s-top","border-top","margin-s-top","margin-s-bottom","type-xs"],[1,"type-and-priority"],["role","link","target","_blank",1,"okr-description",3,"href"],[1,"type-and-priority",
"kr-indentation"]],template:function(a,b){a&1&&(E(0,IVb,4,0,"div",0),S(1,"async"));if(a&2){var c;F((c=T(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[Qv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.okr-hovercard-content[_ngcontent-%COMP%]   .type-and-priority[_ngcontent-%COMP%]{font-weight:700;width:56px}.okr-hovercard-content[_ngcontent-%COMP%]   .kr-indentation[_ngcontent-%COMP%]{padding-left:16px}.okr-hovercard-content[_ngcontent-%COMP%]   .okr-description[_ngcontent-%COMP%]{word-break:break-word;color:#202124;color:var(--text)}.okr-hovercard-content[_ngcontent-%COMP%]   .okr-description[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}"]});var z7=function(){this.analytics=n(CF);this.okrIds=[]};z7.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};z7.\u0275fac=function(a){return new (a||z7)};
z7.\u0275cmp=B({type:z7,selectors:[["okr-chip"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:1,vars:1,consts:[["okrHovercard","onedevHovercard"],["cardBody",""],[1,"okr-chip","margin-xs-right",3,"onedevHovercardShown","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","okrIds",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","okrIds"]],template:function(a,b){a&1&&E(0,KVb,5,1);a&2&&F(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[y7,fJ,gJ,lJ,hJ],styles:[".okr-chip[_ngcontent-%COMP%]{background-color:#9334e6;background-color:var(--purple-text);color:#fff;color:var(--surface-default);height:18px;border-radius:4px;border:1px solid;padding:1px 4px;display:inline-flex}/*# sourceMappingURL=okr_chip.css.map */"],
changeDetection:0});var A7=function(){this.hovercardReady$=new ag(1)};A7.prototype.ngOnInit=function(){this.hovercardReady$.next()};A7.\u0275fac=function(a){return new (a||A7)};
A7.\u0275cmp=B({type:A7,selectors:[["stale-task-card"]],inputs:{taskId:"taskId"},standalone:!1,decls:1,vars:1,consts:[["role","dialog","aria-label","Stale task card",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","margin-xs"],[1,"bv2-hovercard-narrow"],["href","http://go/b-home#stale-tasks","target","_blank"]],template:function(a,b){a&1&&E(0,LVb,8,0,"div",0);a&2&&F(b.taskId?0:-1)},styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto}.onedev-hovercard-body[_ngcontent-%COMP%]{padding:16px}.bv2-hovercard-narrow[_ngcontent-%COMP%]{max-width:240px}"]});var wdd=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[yBc,ABc],triggerKey:[]}};wdd.\u0275fac=function(a){return new (a||wdd)};
wdd.\u0275cmp=B({type:wdd,selectors:[["stale-task-indicator"]],inputs:{taskId:"taskId",lastAlertTimestamp:"lastAlertTimestamp"},standalone:!1,decls:7,vars:3,consts:[["staleTaskCard","onedevHovercard"],["cardBody",""],[1,"staleness-indicator","valign-middle",3,"onedevHovercardTrigger","onedevHovercardConfig"],["svgIcon","time-24px","color","orange"],[3,"onedevIsHovercardReady","taskId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","taskId"]],template:function(a,b){a&1&&(Fg(0),I(1,"div",
2),K(2,"mat-icon",3),Q(3),J(),I(4,"onedev-hovercard",null,0),C(6,MVb,2,2,"stale-task-card",4),J(),Gg());a&2&&(a=L(5),z(),D("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),z(2),b=b.lastAlertTimestamp?(b=xq(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",R(" ",b," "))},dependencies:[aB,fJ,gJ,lJ,hJ,A7],styles:[".staleness-indicator[_ngcontent-%COMP%]{color:#bd4800;color:var(--orange-text);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column wrap;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-flow:column wrap;flex-flow:column wrap;place-content:flex-start center;height:18px;font-weight:700;width:80%}"],
changeDetection:0});var xdd=["menuTrigger"],B7=function(){this.SIGNAL_TO_DISPLAY_TEXT=u7;this.DEFINITIONS=Isc;this.analytics=n(CF);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new LA;this.chipSelectionStateChanged=new LA};B7.prototype.ngOnInit=function(){this.currentSelectedSignals=new Set(this.selectedSignals);this.selectAllToggle=C7(this)};B7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
B7.prototype.signalFilterChange=function(){var a=[].concat(p(this.currentSelectedSignals));this.changeFilteredSignals.emit(a);ydd(this,a)};var zdd=function(a){return[].concat(p(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=u7.get(b))!=null?d:"").localeCompare((e=u7.get(c))!=null?e:"")})},C7=function(a){return a.currentSelectedSignals.size===a.signalFilterKeys.length};
B7.prototype.onCheckboxChange=function(a){this.currentSelectedSignals.has(a)?this.currentSelectedSignals.delete(a):this.currentSelectedSignals.add(a);this.selectAllToggle=C7(this);this.chipSelectionStateChanged.emit(this.currentSelectedSignals.size>0&&!C7(this)||C7(this))};var ydd=function(a,b){a.signalFilterKeys.forEach(function(c){a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+u7.get(c)+"-"+(b.includes(c)?"checked":"unchecked"))})};B7.\u0275fac=function(a){return new (a||B7)};
B7.\u0275cmp=B({type:B7,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&Wg(xdd,5);if(a&2){var c;$g(c=ah())&&(b.menuTrigger=c.first)}},inputs:{signalFilterKeys:"signalFilterKeys",selectedSignals:"selectedSignals",source:"source"},outputs:{changeFilteredSignals:"changeFilteredSignals",chipSelectionStateChanged:"chipSelectionStateChanged"},standalone:!1,decls:11,vars:5,consts:[["menuTrigger","matMenuTrigger"],["signalFilterMenu",""],["type","button","mat-icon-button","",1,"dropdown-btn",
"small",3,"keydown.enter","keydown.space","keyup.enter","keyup.space","click","matTooltip","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown",1,"dropdown-icon"],[3,"closed"],["mat-menu-item","",3,"click"],[3,"indeterminate","checked"],["mat-menu-item",""],[3,"checked"]],template:function(a,b){if(a&1){var c=r();I(0,"button",2,0);M("keydown.enter",function(d){t(c);return v(d.stopPropagation())})("keydown.space",function(d){t(c);return v(d.stopPropagation())})("keyup.enter",function(){t(c);
return v(b.openMenu())})("keyup.space",function(){t(c);return v(b.openMenu())})("click",function(d){t(c);return v(d.stopPropagation())});K(2,"mat-icon",3);J();I(3,"mat-menu",4,1);M("closed",function(){t(c);return v(b.signalFilterChange())});I(5,"button",5);M("click",function(d){t(c);b.selectAllToggle=!b.selectAllToggle;b.currentSelectedSignals=b.selectAllToggle?new Set(b.signalFilterKeys):new Set;b.chipSelectionStateChanged.emit(b.currentSelectedSignals.size>0&&!C7(b)||C7(b));return v(d.stopPropagation())});
I(6,"mat-checkbox",6);Q(7," Select all alerts ");J()();K(8,"mat-divider");Dg(9,NVb,3,2,"button",7,Cg);J()}a&2&&(a=L(4),D("matTooltip","Filter "+Isc[b.source].displayName+" alerts")("matMenuTriggerFor",a),ng("aria-label",Isc[b.source].displayName+" dropdown"),z(6),D("indeterminate",b.currentSelectedSignals.size>0&&!C7(b))("checked",C7(b)),z(3),Eg(zdd(b)))},dependencies:[aB,uP,YA,cB,UG,XG,VG,YG,yM,CM,PA,Ux,HL],styles:[".dropdown-icon[_ngcontent-%COMP%]{cursor:pointer}"]});var Add=["menuTrigger"],D7=function(){this.filteredSignalsSource=n(xX);this.activeSession=n(Es);this.DEFINITIONS=Isc;this.SIGNAL_TO_DISPLAY_TEXT=u7;this.FILTERED_SIGNALS=n_c(this.filteredSignalsSource);this.sourceFilterKeys=[];this.selectedSignals={buganizerSignals:this.FILTERED_SIGNALS.buganizerSignals,driveSignals:this.FILTERED_SIGNALS.driveSignals,changelistSignals:this.FILTERED_SIGNALS.changelistSignals,gerritSignals:this.FILTERED_SIGNALS.gerritSignals,googleTasksSignals:this.FILTERED_SIGNALS.googleTasksSignals,
irmSignals:this.FILTERED_SIGNALS.irmSignals};this.selectedSources=[];this.changeSourceAndFilteredSignals=new LA;this.changeSourceFilter=new LA;this.signals={};this.chipsSelected={}};
D7.prototype.ngOnInit=function(){this.signals.BUGANIZER=this.selectedSignals.buganizerSignals;this.signals.DRIVE=this.selectedSignals.driveSignals;this.signals.CRITIQUE=this.selectedSignals.changelistSignals;this.signals.GERRIT=this.selectedSignals.gerritSignals;this.signals.GOOGLE_TASKS=this.selectedSignals.googleTasksSignals;this.signals.IRM=this.selectedSignals.irmSignals;this.chipsSelected.BUGANIZER=this.signals.BUGANIZER.length>0&&this.selectedSources.includes("BUGANIZER");this.chipsSelected.DRIVE=
this.signals.DRIVE.length>0&&this.selectedSources.includes("DRIVE");this.chipsSelected.CRITIQUE=this.signals.CRITIQUE.length>0&&this.selectedSources.includes("CRITIQUE");this.chipsSelected.GERRIT=this.signals.GERRIT.length>0&&this.selectedSources.includes("GERRIT");this.chipsSelected.GOOGLE_TASKS=this.signals.GOOGLE_TASKS.length>0&&this.selectedSources.includes("GOOGLE_TASKS");this.chipsSelected.IRM=this.signals.IRM.length>0&&this.selectedSources.includes("IRM")};
D7.prototype.signalFilterChange=function(a,b){this.signals[b]=a;a={buganizerSignals:this.signals.BUGANIZER,driveSignals:this.signals.DRIVE,changelistSignals:this.signals.CRITIQUE,gerritSignals:this.signals.GERRIT,googleTasksSignals:this.signals.GOOGLE_TASKS,irmSignals:this.signals.IRM};b=[];a.buganizerSignals.length>0&&this.chipsSelected.BUGANIZER&&b.push("BUGANIZER");a.driveSignals.length>0&&this.chipsSelected.DRIVE&&b.push("DRIVE");a.changelistSignals.length>0&&this.chipsSelected.CRITIQUE&&b.push("CRITIQUE");
a.gerritSignals.length>0&&this.chipsSelected.GERRIT&&b.push("GERRIT");a.googleTasksSignals.length>0&&this.chipsSelected.GOOGLE_TASKS&&b.push("GOOGLE_TASKS");a.irmSignals.length>0&&this.chipsSelected.IRM&&b.push("IRM");this.changeSourceAndFilteredSignals.emit({selectedSources:b,selectedSignals:a})};
D7.prototype.sourceFilterChange=function(a){a=a.value;this.changeSourceFilter.emit(a);this.chipsSelected.BUGANIZER=a.includes("BUGANIZER");this.chipsSelected.DRIVE=a.includes("DRIVE");this.chipsSelected.CRITIQUE=a.includes("CRITIQUE");this.chipsSelected.GERRIT=a.includes("GERRIT");this.chipsSelected.GOOGLE_TASKS=a.includes("GOOGLE_TASKS");this.chipsSelected.IRM=a.includes("IRM")};D7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
var PVb=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},OVb=function(a,b){switch(b){case "BUGANIZER":return[].concat(p(a.FILTERED_SIGNALS.buganizerSignals));case "DRIVE":return[].concat(p(a.FILTERED_SIGNALS.driveSignals));case "GERRIT":return[].concat(p(a.FILTERED_SIGNALS.gerritSignals));case "GOOGLE_TASKS":return[].concat(p(a.FILTERED_SIGNALS.googleTasksSignals));case "CRITIQUE":return[].concat(p(a.FILTERED_SIGNALS.changelistSignals));case "IRM":return[].concat(p(a.FILTERED_SIGNALS.irmSignals));
default:return[]}};D7.\u0275fac=function(a){return new (a||D7)};
D7.\u0275cmp=B({type:D7,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&Wg(Add,5);if(a&2){var c;$g(c=ah())&&(b.menuTrigger=c.first)}},inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSignals:"selectedSignals",selectedSources:"selectedSources"},outputs:{changeSourceAndFilteredSignals:"changeSourceAndFilteredSignals",changeSourceFilter:"changeSourceFilter"},standalone:!1,decls:3,vars:0,consts:[["multiple","","aria-label","Source selection",3,"change"],["appearance","hairline-filter",
3,"value","selected"],[3,"matTooltip"],[3,"changeFilteredSignals","chipSelectionStateChanged","signalFilterKeys","selectedSignals","source"]],template:function(a,b){a&1&&(I(0,"mat-chip-listbox",0),M("change",function(c){return b.sourceFilterChange(c)}),Dg(1,RVb,1,1,null,null,Cg),J());a&2&&(z(),Eg(b.sourceFilterKeys))},dependencies:[qP,yP,wP,YA,cB,B7],styles:[".dropdown-icon[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;border:1px solid red}[_nghost-%COMP%]     mat-chip-option .mat-mdc-chip-action-label, [_nghost-%COMP%]     mat-chip-option .mat-mdc-chip-action[matchipaction]{padding-right:5px!important}"]});var E7=function(){this.DEFINITIONS=Isc;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new LA};E7.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=B({type:E7,selectors:[["source-filter-chips"]],inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSources:"selectedSources"},outputs:{change:"change"},standalone:!1,decls:3,vars:0,consts:[["multiple","","aria-label","Source selection",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"]],template:function(a,b){a&1&&(I(0,"mat-chip-listbox",0),M("change",function(c){return b.sourceFilterChange(c)}),Dg(1,TVb,1,1,null,null,Cg),J());a&2&&(z(),Eg(b.sourceFilterKeys))},
dependencies:[qP,yP,wP,YA,cB],encapsulation:2});var Bdd=["menuTrigger"],Cdd={label:"Last 1 day",numberOfDays:1},Ddd={label:"Last 7 days",numberOfDays:7},Edd={label:"Last 30 days",numberOfDays:30},Fdd={label:"Last 90 days",numberOfDays:90},Gdd=[Cdd,Ddd,Edd,Fdd],Hdd={1:Cdd,7:Ddd,30:Edd,90:Fdd},F7=function(){this.timeBoundaries=Gdd;this.change=new LA};F7.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=Hdd[a])==null?void 0:b.label)!=null?c:""};F7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
F7.\u0275fac=function(a){return new (a||F7)};
F7.\u0275cmp=B({type:F7,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&Wg(Bdd,5);if(a&2){var c;$g(c=ah())&&(b.menuTrigger=c.first)}},inputs:{selectedTimeBoundary:"selectedTimeBoundary"},outputs:{change:"change"},standalone:!1,decls:9,vars:3,consts:[["menuTrigger","matMenuTrigger"],["timeBoundaryMenu","matMenu"],["aria-label","Time boundary selection",3,"selectable"],["appearance","hairline-filter","aria-label","Select time boundary","selected","","color","primary","role","button",
1,"time-boundary-chip",3,"keyup.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["xPosition","before"],["type","button","mat-menu-item","",3,"disabled"],["type","button","mat-menu-item","",3,"click","disabled"]],template:function(a,b){if(a&1){var c=r();I(0,"mat-chip-listbox",2)(1,"mat-chip-option",3,0);M("keyup.enter",function(){t(c);return v(b.openMenu())})("keyup.space",function(){t(c);return v(b.openMenu())});Q(3);K(4,"mat-icon",4);J()();I(5,"mat-menu",
5,1);Dg(7,UVb,2,2,"button",6,Cg);J()}a&2&&(a=L(6),D("selectable",!1),z(),D("matMenuTriggerFor",a),z(2),R(" ",b.getLabel(b.selectedTimeBoundary)," "),z(4),Eg(b.timeBoundaries))},dependencies:[aB,qP,yP,wP,uP,UG,XG,VG,YG],encapsulation:2});var Idd=function(){return{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:80}},Jdd=function(a){return[a]},G7=function(){this.isSnoozed=!0;this.snooze=new LA;this.unsnooze=new LA;this.isOpen=new LA;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};G7.prototype.stopPropagation=function(a){a.stopPropagation()};G7.prototype.onOpen=function(a){this.isOpen.emit(a)};var Kdd=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
ea.Object.defineProperties(G7.prototype,{now:{configurable:!0,enumerable:!0,get:function(){return new bk}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new Lv("h",3)):Kdd(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new Lv("d",1));Kdd(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);Kdd(a,8);return a}},nextMonth:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new Lv("d",30));Kdd(a,8);return a}}});G7.\u0275fac=function(a){return new (a||G7)};
G7.\u0275cmp=B({type:G7,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&Wg(XG,7);if(a&2){var c;$g(c=ah())&&(b.menu=c.first)}},inputs:{isSnoozed:"isSnoozed"},outputs:{snooze:"snooze",unsnooze:"unsnooze",isOpen:"isOpen"},standalone:!1,decls:27,vars:11,consts:[["trigger","cdkOverlayOrigin"],["aria-labelledby","snooze-menu-title",3,"closed"],["id","snooze-menu-title",1,"title","gmat-body-2",3,"click"],[1,"list"],["type","button","mat-menu-item","",3,"click"],[1,"date"],["mode","datetime",3,"date"],
[1,"bottom"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","","dialogLabel","Pick date & time","ttr.aria-label","Pick date & time","matTooltip","Pick date & time","tabindex","0","cdkOverlayOrigin","",3,"keydown.enter","keydown.space","click"],["svgIcon","time-24px"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],["svgIcon","clear"],[3,"clickOutside"],[3,"cancelClicked","dateTimeChange","saveClicked","required",
"renderPanel","dateTime","includeTimePicker","todayButtonEnabled"]],template:function(a,b){if(a&1){var c=r();I(0,"mat-menu",1);M("closed",function(d){t(c);if(d!=="click")b.onOpen(!1);return v()});I(1,"span",2);M("click",function(d){t(c);return v(b.stopPropagation(d))});Q(2," Snooze until... ");J();I(3,"div",3)(4,"button",4);M("click",function(){t(c);var d=b.laterToday;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(5," Later today ");I(6,"span",5);K(7,"b-formatted-date-time",6);J()();I(8,"button",
4);M("click",function(){t(c);var d=b.tomorrow;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(9," Tomorrow ");I(10,"span",5);K(11,"b-formatted-date-time",6);J()();I(12,"button",4);M("click",function(){t(c);var d=b.nextWeek;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(13," Next week ");I(14,"span",5);K(15,"b-formatted-date-time",6);J()();I(16,"button",4);M("click",function(){t(c);var d=b.nextMonth;d&&b.snooze.emit(d);b.onOpen(!1);return v()});Q(17," Next Month ");I(18,"span",5);K(19,"b-formatted-date-time",
6);J()()();I(20,"div",7);E(21,VVb,3,0,"button",8);I(22,"button",9,0);M("keydown.enter",function(){t(c);b.timePickerOpen=!b.timePickerOpen;return v()})("keydown.space",function(){t(c);b.timePickerOpen=!b.timePickerOpen;return v()})("click",function(){t(c);b.timePickerOpen=!b.timePickerOpen;return v()});K(24,"mat-icon",10);Q(25," Pick date & time ");J()()();C(26,WVb,2,5,"ng-template",11)}a&2&&(a=L(23),z(7),D("date",b.laterToday),z(4),D("date",b.tomorrow),z(4),D("date",b.nextWeek),z(4),D("date",b.nextMonth),
z(2),F(b.isSnoozed?21:-1),z(5),D("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",jh(9,Jdd,ih(8,Idd))))},dependencies:[aB,IL,ZL,XG,VG,xx,wx,aV],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var Ldd=[5433823,5418819,5421028,5122552,5422257];var H7=function(){this.DMA_TOOLTIP_TEXT="Issues related to DMA are part of a code red at Google, see go/dma52-cy";this.hotlistIds=null;this.onChipClicked=new hv},Mdd=function(a){return Ldd.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};H7.\u0275fac=function(a){return new (a||H7)};
H7.\u0275cmp=B({type:H7,selectors:[["onedev-dma-chip"]],inputs:{hotlistIds:"hotlistIds"},outputs:{onChipClicked:"onChipClicked"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"chip",3,"matTooltip"],[1,"content"],["href","http://go/dma","target","_blank",3,"click"]],template:function(a,b){a&1&&C(0,XVb,5,1,"ng-container",0);a&2&&D("ngIf",Mdd(b))},dependencies:[Ov,YQ],styles:["[_nghost-%COMP%]{--chip-text:var(--text-inverse,#fff);--chip-bg:var(--red-600,red-600)}body.dark-mode[_nghost-%COMP%], body.dark-mode   [_nghost-%COMP%]{--chip-bg:var(--red-300,red-300)}.chip[_ngcontent-%COMP%]{margin-left:8px;border-radius:10px;color:var(--chip-text);display:inline-block;height:20px;padding:0 6px;background-color:var(--chip-bg)}.chip[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;line-height:12px;margin-bottom:4px;margin-top:4px}.chip[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"],
changeDetection:0});var I7=function(){Z.call(this);var a=this;this.errorHandler=n(DK);this.tasksService=n(fG);this.missionControlPrefs=n(yX);this.domSafe=n(rL);this.router=n(DA);this.appEvents=n(nD);this.analytics=n(CF);this.clipboard=n(rO);this.activeSession=n(Es);this.needsAttentionTaskFridge=n(hG);this.butterBar=n(iK);this.googleTasks=Yr(this.activeSession,"enableGoogleTasks")?["GOOGLE_TASKS"]:[];this.irmTasks=Yr(this.activeSession,"enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=["GERRIT"].concat(p(this.googleTasks),
p(this.irmTasks));this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=[].concat(p(Fsc),p(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=Gsc;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=Jsc;this.enableViewDismissedTasks=Yr(this.activeSession,"enableViewDismissedTasks");this.enableStaleTasks=Yr(this.activeSession,"enableStaleTasks");this.enableIterationChip=Yr(this.activeSession,
"enableIterationChip");this.enableOkrChip=Yr(this.activeSession,"enableLinkedOkrChip");this.enableSignalFiltering=Yr(this.activeSession,"enableSignalFiltering");this.refreshTable=new bg;this.SIGNAL_TO_DISPLAY_TEXT=u7;this.SIGNAL_TO_ACTION_TEXT=sdd;this.TaskResourceType=plc;this.SignalStatus=tmc;this.sources$=this.missionControlPrefs.needsAttentionSources$;this.filteredSignals$=this.missionControlPrefs.needsAttentionFilteredSignals$;this.timeBoundary$=this.missionControlPrefs.prefs$.pipe(y(function(b){var c;
return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.signalStatusFilter$=new tj(0);this.allNeedsAttention$=new tj([]);this.tasksQuery$=Je([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(gg(this.destroyed$),Xf(function(b,c){return Pj(b,c)}),fg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;c=c.next().value;d=d.map(function(f){return ep(f)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,
signalFilter:e,filterSignals:c})}),cg({bufferSize:1,refCount:!0}));this.workItems$=this.tasksQuery$.pipe(fg(function(b){return!a.enableIterationChip&&!a.enableOkrChip||a.activeSession.isExternalSession()?Ce([]):Bsc(a.tasksService,eXb(b.results)).pipe(Pf(function(c){a.errorHandler.errorHandler(null,c);return Ce([])}))}));this.liteTasks$=Je([this.tasksQuery$,this.workItems$,this.filteredSignals$]).pipe(y(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=cXb(d);d=dXb(d);
e.size>0&&a.analytics.trackEvent("missionControl","display","num-task-iterations",e.size);d.size>0&&a.analytics.trackEvent("missionControl","display","num-task-okrs",d.size);var f;return TUb(b,(f=a.signalStatusFilter$.getValue())!=null?f:0,e,d,a.enableSignalFiltering?c:a.ALL_FILTERED_SIGNALS)}));this.dismissButtonLabel$=this.signalStatusFilter$.pipe(y(function(b){return b===1?"Un-dismiss":"Dismiss"}));this.dismissButtonTooltip$=this.signalStatusFilter$.pipe(y(function(b){return b===1?"Un-dismiss a work item to move it back to the Active tab":
"Dismiss a work item to hide it from the table"}));this.snoozeButtonLabel$=this.signalStatusFilter$.pipe(y(function(b){return b===2?"Snooze Options":"Snooze"}));this.snoozeButtonTooltip$=this.signalStatusFilter$.pipe(y(function(b){return b===2?"Snooze Options":"Snooze a work item to hide it from the table"}));this.loading$=this.needsAttentionTaskFridge.thinking$;this.tabData=[{signalStatusFilter:0,label:"Active",description:"Shows tasks with at least 1 active signal"},{signalStatusFilter:2,label:"Snoozed",
description:"Shows tasks that are snoozed"},{signalStatusFilter:1,label:"Dismissed",description:"Shows tasks with at least 1 dismissed signal"}];this.displayedColumns="selection type description timestamp signal action buttons".split(" ");this.selection=new Zw(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.getSignalUrgency=VUb;this.getHighestPrioritySignal=WUb;Je([this.liteTasks$]).pipe(y(function(b){b=l(b).next().value;b.sort(function(c,d){return lm(d.lastAlertTimestamp)-lm(c.lastAlertTimestamp)});
return b}),gg(this.destroyed$)).subscribe(function(b){a.allNeedsAttention$.next(b)});Je([this.timeBoundary$,this.sources$,this.filteredSignals$]).pipe(Xf(function(b,c){return Pj(b,c)}),fg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d.map(function(e){return ep(e)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:0,filterSignals:c})}),gg(this.destroyed$)).subscribe(function(b){setTimeout(function(){var c=b.results.filter(function(d){var e;
return d.task&&((e=d.signals)==null?void 0:e.filter(function(f){return f.signalStatus===0}))});a.appEvents.missionControlTaskCount.next(c.length)})});this.needsAttentionTaskFridge.error$.pipe(gg(this.destroyed$)).subscribe(function(b){a.errorHandler.errorHandler(null,b)})};Y(I7,Z);I7.\u0275dir=Z.\u0275dir;I7.prototype.ngOnInit=function(){this.refreshTable.pipe(gg(this.destroyed$)).subscribe(this.refreshTaskData.bind(this))};
I7.prototype.refreshTaskData=function(){var a=this,b,c,d,e,f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:return x(u,Ge(a.timeBoundary$),2);case 2:return c=(b=u.yieldResult)!=null?b:0,x(u,Ge(a.sources$),3);case 3:return e=((d=u.yieldResult)!=null?d:[]).map(function(A){return ep(A)}),x(u,Ge(a.signalStatusFilter$),4);case 4:return h=(f=u.yieldResult)!=null?f:0,x(u,Ge(a.filteredSignals$),5);case 5:return q=(k=u.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,x(u,inc(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:h,filterSignals:q}),0)}})};I7.prototype.toggleAllRows=function(a){this.selection.selected.length===a.length?this.selection.clear():(a=a.map(function(b){return b.id}),this.selection.select.apply(this.selection,p(a)))};I7.prototype.dismissAlert=function(a){nWb(this,[a.id])};
var qWb=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(xsc(a.tasksService,b,c?{seconds:(c==null?NaN:c.getTime())/1E3,nanos:0}:void 0).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,d)}),Ndd(a,new Set(b)),b.forEach(function(){a.analytics.trackEvent("needsAttention","click",c?"snoozeTask":"unsnoozeTask")})):a.butterBar.showWarning("Snooze date must be in the future")},PWb=function(a){if(a=Aua(a.snoozeUntilTimestamp))if(a=a.getTime()-(new Date).getTime(),a>0){a/=
1E3;if(a<60)return"1 min left";if(a<3600)return a=Math.floor(a/60),a+" "+(a===1?"min":"mins")+" left";if(a<86400)return a=Math.floor(a/3600),a+" "+(a===1?"hr":"hrs")+" left";a=Math.floor(a/86400);return a+" "+(a===1?"day":"days")+" left"}};
I7.prototype.navigateToResource=function(a,b,c){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1||a.type==="keydown"&&a instanceof KeyboardEvent&&a.key!=="Enter")){this.sendClickAnalytics(b,c);var d;if(!a||((d=a.target)==null?void 0:d.tagName)!=="A")if(b.type==="ISSUE")b=xr(b.id),b=Fq.viewIssue.makeHref(b),Pn(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Lq(this.domSafe,b):Nr(this.router,b);else{var e;this.domSafe.openInNewTab((e=b.lastMentionLink)!=null?
e:b.link)}}};
I7.prototype.sendClickAnalytics=function(a,b){this.analytics.trackEvent("missionControl","navigate","needsAttention-"+a.type+"-"+a.signals.map(function(e){return e.type}).join(","));var c=l(bXb(a,b)),d=c.next().value;c=c.next().value;this.analytics.trackEvent("missionControl","ctr-sig-yes",d);this.analytics.trackEvent("missionControl","ctr-sig-no",c);Odd(this,a,b);this.enableStaleTasks&&(this.analytics.trackEvent("missionControl","click",a.isStaleTask?"click-stale-yes":"click-stale-no"),a=b.filter(function(e){return e.isStaleTask}).length,
this.analytics.trackEvent("missionControl","display","num-stale-task",a),this.analytics.trackEvent("missionControl","display","num-fresh-tasks",b.length-a))};I7.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var tWb=function(a){var b=new Set(a.selection.selected),c,d;return(d=(c=a.allNeedsAttention$.getValue())==null?void 0:c.some(function(e){return b.has(e.id)&&!e.signals.some(function(f){return f.type==="DRIVE_MANUAL_SIGNAL"||f.type==="CHANGELIST_MANUAL_SIGNAL"||f.type==="ISSUE_MANUALLY_SIGNALED"||f.type==="GERRIT_MANUAL_SIGNAL"||f.type==="GOOGLE_TASKS_MANUAL_SIGNAL"})}))!=null?d:!1},nWb=function(a,b){var c,d;w(function(e){if(e.nextAddress==1)return x(e,Ge(a.signalStatusFilter$),2);c=e.yieldResult;
vsc(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return x(e,Ndd(a,d),0)})},sWb=function(a){var b=a.selection.selected,c=tWb(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);wsc(a.tasksService,b,c).subscribe(function(){a.refreshTaskData()},function(d){return void a.errorHandler.errorHandler(null,d)});a.selection.clear()};g=I7.prototype;
g.copyIdOrLink=function(a){a.type==="ISSUE"?(a=xr(a.id))&&this.clipboard.copy(a):this.clipboard.copy(a.link)};g.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};g.extractLastDigits=function(a){var b;return(b=xr(a))!=null?b:""};
g.onTabIndexChange=function(a){this.allNeedsAttention$.next([]);this.selection.clear();var b;this.signalStatusFilter$.next((b=this.tabData[a])==null?void 0:b.signalStatusFilter);var c;this.analytics.trackEvent("missionControl","view",(c=this.tabData[a])==null?void 0:c.label)};g.hasFutureAvailability=function(a){var b,c;return!!(((b=a.futureAvailability)==null?0:b.futureOooTimestamp)&&((c=a.futureAvailability)==null?0:c.comeBackTimestamp))};
var Ndd=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return c=a.allNeedsAttention$.getValue(),a.allNeedsAttention$.next(c.filter(function(f){return!b.has(f.id)})),x(e,Ge(a.signalStatusFilter$),2);d=e.yieldResult;d===0&&a.appEvents.missionControlTaskCount.next(c.filter(function(f){return!b.has(f.id)}).length);ze(e)})},Odd=function(a,b,c){Pdd(a,b,c);Qdd(a,b,c)},Pdd=function(a,b,c){a.hasFutureAvailability(b)?a.analytics.trackEvent("missionControl","ctr-signal-attributes","availability",
!0):c.some(function(d){return a.hasFutureAvailability(d)})&&a.analytics.trackEvent("missionControl","ctr-signal-attributes","availability",!1)},Qdd=function(a,b,c){b.reviewEstimate?a.analytics.trackEvent("missionControl","ctr-signal-attributes","review-time",!0):c.some(function(d){return!!d.reviewEstimate})&&a.analytics.trackEvent("missionControl","ctr-signal-attributes","review-time",!1)};I7.\u0275fac=function(a){return new (a||I7)};
I7.\u0275cmp=B({type:I7,selectors:[["b-needs-attention-table"]],inputs:{refreshTable:"refreshTable"},standalone:!1,features:[kg],decls:13,vars:11,consts:[["pickerToggle","bAddTaskDialogToggle"],["snoozeMenu",""],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndex"],[1,"flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"heading-s"],[1,"border-left","padded-s-left","padded-s-right",3,"selectedTimeBoundary"],[1,"border-left","padded-s-left"],
[1,"text-center","border-bottom","padded-s-y"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["matTooltipShowDelay","500",1,"tab-label",3,"matTooltip"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources","selectedSignals"],[1,"padded-s-x",3,"changeSourceAndFilteredSignals","changeSourceFilter","sourceFilterKeys","selectedSources","selectedSignals"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources"],
[1,"padded-s-x",3,"change","sourceFilterKeys","selectedSources"],[1,"border-left","padded-s-left","padded-s-right",3,"change","selectedTimeBoundary"],["mat-button","","type","button","bAddTaskDialogToggle","",1,"add-task-button",3,"taskAdded"],[1,"muted","border-bottom","padded-s-y"],["mat-table","","aria-label","Table of alerts",1,"full-width",3,"dataSource"],["matColumnDef","selection"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef",
"description"],["matColumnDef","timestamp"],["matColumnDef","signal"],["matColumnDef","action"],["matColumnDef","buttons"],["mat-header-cell","","class","border-bottom",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row padded-y",4,"matNoDataRow"],["type","button","mat-button","",1,"margin-s-top"],["mat-header-cell",""],["aria-label","Select all alerts",3,"change","checked","indeterminate"],
["mat-cell",""],["aria-label","Select alert",3,"click","change","checked"],["role","img","matTooltipPosition","left","matTooltipShowDelay","250",3,"matTooltip","svgIcon"],["type","button","mat-button","",1,"bulk-dismiss"],["type","button","mat-button","",1,"bulk-manual-signal"],["type","button","mat-button","",1,"bulk-dismiss",3,"click"],["mat-button","",1,"bulk-snooze",3,"matMenuTriggerFor"],[3,"snooze","unsnooze","isSnoozed"],["type","button","mat-button","",1,"bulk-manual-signal",3,"click"],[1,
"flex-kids-x","align-items-center"],[1,"italic"],[3,"issueId"],[3,"okrIds"],[3,"iteration"],[1,"going-ooo",3,"matTooltip"],["matTooltip","Estimated review time (visible only to you)",1,"review-estimate"],[1,"margin-s-right",3,"issuePriority"],["tabindex","0","role","link",1,"subtle-link","break-word","grow-1",3,"auxclick","href"],[3,"onChipClicked","hotlistIds"],["svgIcon","event_upcoming_24px"],[3,"click","taskId","lastAlertTimestamp"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],[3,
"issueId","signals"],["mat-button","",1,"primary","action-button"],["mat-header-cell","",1,"border-bottom"],[1,"snooze-time"],[1,"buttons-container"],["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["type","button","mat-icon-button","",1,"dismiss-btn","xs",3,"click","ariaLabel","matTooltip"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],["type","button","mat-icon-button","",1,"snooze-btn","xs",
3,"click","ariaLabel","matTooltip","matMenuTriggerFor"],["svgIcon","time-24px","color","primary",1,"snooze-icon"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],[1,"mat-row","padded-y"],["colspan","7",1,"mat-cell","type-l","text-center","padded-top"],["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],[3,"ariaLabel"]],template:function(a,b){a&1&&(E(0,$Vb,3,1,"mat-tab-group",2),I(1,"div",3)(2,"span",4),Q(3,"Sources"),
J(),E(4,dWb,2,3)(5,fWb,2,3),E(6,gWb,1,1,"time-boundary-filter",5),S(7,"async"),E(8,hWb,4,0,"div",6),J(),E(9,$Wb,2,3),S(10,"async"),S(11,"async"),Ag(12,aXb,2,1,"div",7));if(a&2){var c;F(b.enableViewDismissedTasks?0:-1);z(4);F(b.enableSignalFiltering?4:5);z(2);F((c=T(7,5,b.timeBoundary$))?6:-1,c);z(2);F(b.signalStatusFilter$.getValue()===b.SignalStatus.ACTIVE?8:-1);z();F(T(10,7,b.liteTasks$)&&!T(11,9,b.loading$)?9:12)}},dependencies:[aB,ZL,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,mQ,dO,YN,ZN,$N,yM,CM,YA,cB,
PA,Tx,Ux,D7,E7,G7,F7,ON,uO,H7,cP,udd,wdd,YG,z7,t7,q7,Qv,Wv,r7],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}tr.mat-mdc-row[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%]{cursor:pointer;display:table-cell;padding:0 1.5px;width:0}tr.mat-mdc-row.active[_ngcontent-%COMP%]   .mat-column-active-indicator[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]:focus-within   .mat-column-active-indicator[_ngcontent-%COMP%]{outline:none;background-color:#4285f4;background-color:var(--primary-c500)}[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     mat-spinner.large{top:unset}[_nghost-%COMP%]     .add-task-button:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .bulk-snooze:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .copy-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .dismiss-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .snooze-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple{--mat-icon-button-focus-state-layer-opacity:0}.mat-column-selection[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]{text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.product-icon.critique-logo[_ngcontent-%COMP%]{max-width:20px}.product-icon.drive-doc[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive-sheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive-slide[_ngcontent-%COMP%]{color:#f9ab00}.product-icon.gerrit-logo[_ngcontent-%COMP%]{max-width:20px}th.mat-column-signal[_ngcontent-%COMP%]{padding-left:8px}th.mat-column-action[_ngcontent-%COMP%]{padding-left:12px}th.mat-column-description[_ngcontent-%COMP%]{overflow:visible}th.mat-column-buttons[_ngcontent-%COMP%]{padding-left:12px}.copy-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.dismiss-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.snooze-icon[_ngcontent-%COMP%]{opacity:0;margin-bottom:1px}.buttons-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.snooze-time[_ngcontent-%COMP%]{position:absolute;padding-left:12px}.copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .dismiss-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .snooze-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .dismiss-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .snooze-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .dismiss-icon[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-icon[_ngcontent-%COMP%]{opacity:1;color:#1a73e8;color:var(--primary);background-color:unset}.copy-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%], .dismiss-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .snooze-time[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .snooze-time[_ngcontent-%COMP%], .snooze-btn.cdk-keyboard-focused[_ngcontent-%COMP%]   .snooze-time[_ngcontent-%COMP%]{opacity:0;display:none}a.action-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link);white-space:nowrap}a.action-button[_ngcontent-%COMP%]:active, a.action-button[_ngcontent-%COMP%]:focus, a.action-button[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}.bulk-dismiss[_ngcontent-%COMP%]{height:24px;line-height:24px;margin-left:-32px}.bulk-manual-signal[_ngcontent-%COMP%]{height:24px;line-height:24px}.bulk-snooze[_ngcontent-%COMP%]{height:24px;line-height:24px}.review-estimate[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);height:18px;line-height:18px;padding:0 8px}.going-ooo[_ngcontent-%COMP%]{background-color:#fff8e4;background-color:var(--yellow-bg);color:#8f6b00;color:var(--yellow-text);-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:18px;padding:0 4px}.going-ooo[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px}.going-ooo[_ngcontent-%COMP%], .review-estimate[_ngcontent-%COMP%]{border-radius:4px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-right:4px;vertical-align:middle}"]});var J7=function(){Z.call(this);var a=this;this.prefsService=n(yX);this.appEvents=n(nD);this.analytics=n(CF);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new bg;this.numNeedsAttentionTasks$.pipe(Ve(Tk),Uf(),gg(this.destroyed$)).subscribe(function(e){a.analytics.trackEvent("missionControl","display","num-needs-attention-"+e,e)});var b,c=(b=this.prefsService.prefs.needsAttentionSources)!=null?b:[];b=this.prefsService.prefs.isNeedsAttentionSourcesConfigured;c=c.length!==
0||b?c:[].concat(p(Fsc));var d;b=(d=this.prefsService.prefs.needsAttentionDaysOld)!=null?d:30;this.analytics.trackEvent("missionControl","view","needsAttention-sources-"+c.join(",")+"-"+b)};Y(J7,Z);J7.\u0275dir=Z.\u0275dir;J7.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};J7.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};J7.\u0275fac=function(a){return new (a||J7)};
J7.\u0275cmp=B({type:J7,selectors:[["needs-attention-wrapper"]],inputs:{refreshData:"refreshData"},standalone:!1,features:[kg],decls:10,vars:6,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Work items which require actions from you","matTooltip","Work items which require actions from you",1,"info","margin-s-left"],["type","button","mat-icon-button","","aria-label","Toggle expansion state",
1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"alert-count-badge","b-chip"],[1,"main-content"],[1,"alert-count"],[3,"refreshTable"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Needs attention "),J(),K(4,"mat-icon",3),I(5,"button",4),M("click",function(){return b.toggleCollapsed()}),K(6,"mat-icon",5),J(),E(7,fXb,3,1,"div",6),S(8,"async"),J(),E(9,gXb,2,1,"div",7),J());if(a&2){var c;wg("collapsed",b.isCollapsed());z(7);F((c=T(8,
4,b.numNeedsAttentionTasks$))?7:-1,c);z(2);F(b.isCollapsed()?-1:9)}},dependencies:[aB,PA,Ux,I7,YA,cB,Qv],styles:["[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.carded.collapsed[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.alert-count-badge[_ngcontent-%COMP%]{margin-left:8px;background-color:#c5221f;background-color:var(--text-bad);color:#fff;color:var(--text-inverse);line-height:24px;border-radius:12px}.alert-count-badge[_ngcontent-%COMP%]   .alert-count[_ngcontent-%COMP%]{font-size:.8125rem;height:24px;text-align:center}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}"]});var WXb=function(){return[]},XXb=function(){return["moreRows"]},K7=function(){Z.call(this);var a=this;this.prefsService=n(yX);this.issueFridge=n($E);this.router=n(DA);this.domSafe=n(rL);this.analytics=n(CF);this.errorHandler=n(DK);this.activeSession=n(Es);this.clipboard=n(rO);this.myTasksFridge=n(gG);this.tasksService=n(fG);this.googleTasks=(this.isGoogleTasksEnabled=Yr(this.activeSession,"enableGoogleTasks"))?["GOOGLE_TASKS"]:[];this.irmTasks=Yr(this.activeSession,"enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=
["GERRIT"].concat(p(this.irmTasks));this.MY_TASK_DEFAULT_FILTERS=[].concat(p(Hsc),p(this.OPTIONAL_SOURCE_FILTERS));this.ONLY_OWNED_TASK_FILTERS=[].concat(p(this.MY_TASK_DEFAULT_FILTERS),p(this.googleTasks));this.TaskResourceType=plc;this.taskResourceTypeToIcon=Sya;this.extractLastDigits=xr;this.tableColumns=[].concat(p(yVc));this.tableOptions=Object.assign({},BVc,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new bg;this.manualSignalTriggered=new LA;this.sources$=this.prefsService.myTasksSources$;
this.timeBoundary$=this.prefsService.prefs$.pipe(y(function(e){var f;return(f=e==null?void 0:e.myTasksDaysOld)!=null?f:7}));var b;this.INITIAL_TAB_INDEX=(b=p_c(this.prefsService,"mc-my-tasks"))!=null?b:0;this.MY_TASK_FILTERS=this.INITIAL_TAB_INDEX===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS;this.isInternalSession=this.activeSession.isInternalSession();this.isSavingManualSignal=!1;var c;this.tabData=[{label:"Owned",description:"Tasks you own or are the author of",liteTasks:new tj([]),
loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new tj([]),loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",liteTasks:new tj([]),loading:!0},hXb(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(Tk);this.myTasks$=Je([this.timeBoundary$,this.sources$]).pipe(gg(this.destroyed$),Xf(function(e,f){return e[0]===f[0]&&Pj(e[1],f[1])}),fg(function(e){var f=
l(e);e=f.next().value;f=f.next().value;var h=new Set(f.filter(function(k){return k!=="GOOGLE_TASKS"||a.isGoogleTasksEnabled}).map(function(k){return ep(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,sources:Array.from(h),issueFilter:iXb(f)})}));this.displayColumns="type title modified role created options".split(" ");this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.myTasks$.pipe(gg(this.destroyed$)).subscribe(function(e){var f=e.results;e=f.filter(function(A){return A.resourceRelationships.filter(function(G){return G.category===
"OWNER"}).length>0}).sort(dYb);var h=f.filter(function(A){return A.resourceRelationships.filter(function(G){return G.category==="COLLABORATOR"}).length>0}).sort(dYb);f=f.filter(function(A){return A.resourceRelationships.filter(function(G){return G.category==="FOLLOWING"}).length>0}).sort(dYb);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var q;(q=a.tabData[1].liteTasks)==null||q.next(h);var u;(u=a.tabData[2].liteTasks)==null||u.next(f);a.tabData[0].loading=!1;a.tabData[1].loading=!1;a.tabData[2].loading=
!1});var d;this.analytics.trackEvent("missionControl","display","my-tasks-"+((d=this.tabData[this.INITIAL_TAB_INDEX])==null?void 0:d.label));this.myTasksFridge.error$.pipe(gg(this.destroyed$)).subscribe(function(e){a.errorHandler.errorHandler(null,e)})};Y(K7,Z);K7.\u0275dir=Z.\u0275dir;g=K7.prototype;
g.ngOnInit=function(){var a=this;this.refreshData.pipe(gg(this.destroyed$)).subscribe(function(){var b,c=(b=a.prefsService.prefs.myTasksDaysOld)!=null?b:7;b=a.prefsService.getMyTasksSources();var d=new Set(b.map(function(e){return ep(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:iXb(b)})})};g.toggleCollapsed=function(){this.prefsService.toggleCollapsed("mc-my-tasks")};g.isCollapsed=function(){return this.prefsService.isCollapsed("mc-my-tasks")};
g.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};g.onTabIndexChange=function(a){Ljb(this.prefsService,"mc-my-tasks",a);this.numDisplayedRows=10;var b;this.analytics.trackEvent("missionControl","view",(b=this.tabData[a])==null?void 0:b.label);this.MY_TASK_FILTERS=a===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS};
g.navigateToResource=function(a,b){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)){this.sendClickAnalytics(b);var c;a&&((c=a.target)==null?void 0:c.tagName)==="A"||(b.taskResourceType==="ISSUE"?(b=xr(b.taskId),b=Fq.viewIssue.makeHref(b),Pn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Lq(this.domSafe,b):Nr(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
g.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=xr(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var LXb=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;wsc(a.tasksService,[b.taskId],!0).pipe(Wf(c)).subscribe(function(){a.manualSignalTriggered.emit(b);a.isSavingManualSignal=!1},function(d){a.errorHandler.errorHandler(null,d);a.isSavingManualSignal=!1})};
K7.prototype.sendClickAnalytics=function(a){var b,c=((b=a.resourceRelationships[0].roleName)!=null?b:"").split(" ").map(function(d,e){return e===0?d.toLowerCase():d.charAt(0).toUpperCase()+d.substring(1).toLowerCase()}).join("");this.analytics.trackEvent("missionControl","navigate","myTasks-"+a.taskResourceType+"-"+c)};K7.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};K7.prototype.getIds=function(a){return a.map(function(b){return b.issueId})};
var xXb=function(a){return a==="P0"||a==="P1"};K7.\u0275fac=function(a){return new (a||K7)};
K7.\u0275cmp=B({type:K7,selectors:[["my-tasks"]],inputs:{refreshData:"refreshData"},outputs:{manualSignalTriggered:"manualSignalTriggered"},standalone:!1,features:[kg],decls:8,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center"],[1,"heading-s"],["svgIcon","info","tabindex","0","role","button","aria-hidden","false","aria-label","Recent items helps you quickly find your active tasks and docs organized by your relation to them","matTooltip","Recent items helps you quickly find your active tasks and docs organized by your relation to them",
1,"info","margin-s-left"],["type","button","mat-icon-button","","aria-label","Toggle collapsed state for this card",1,"small","collapse-btn","margin-s-left",3,"click"],["svgIcon","arrow-up",1,"icon-m"],[1,"main-content","margin-s-top"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"tab-filters","flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"text-center","border-bottom","padded-s-y"],
["matTooltipShowDelay","500",1,"tab-label",3,"matTooltip"],[1,"border-left","padded-s-left",3,"selectedTimeBoundary"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources"],[1,"padded-s-x",3,"change","sourceFilterKeys","selectedSources"],[1,"border-left","padded-s-left",3,"change","selectedTimeBoundary"],[3,"issueIds","tableColumns","options"],["mat-table","",3,"dataSource","class"],[1,"muted","border-bottom","padded-s-y"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell",
"",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","modified"],["matColumnDef","role"],["matColumnDef","created"],["matColumnDef","options"],["mat-header-cell","","class","options-column border-bottom",4,"matHeaderCellDef"],["mat-cell","","class","options-column",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","moreRows"],["mat-footer-cell","","colspan",
"2",4,"matFooterCellDef"],["mat-footer-row","",3,"hidden",4,"matFooterRowDef"],["class","mat-row padded-y",4,"matNoDataRow"],["mat-header-cell",""],["mat-cell",""],["matTooltipPosition","left","matTooltipShowDelay","250",3,"matTooltip","svgIcon"],[1,"italic"],[3,"issueId","compactMode"],[1,"margin-xs-right",3,"issuePriority"],[1,"subtle-link","break-word",3,"auxclick","href"],[3,"hotlistIds"],[3,"onChipClicked","hotlistIds"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],["mat-header-cell",
"",1,"options-column","border-bottom"],["mat-cell","",1,"options-column"],[1,"buttons-container"],["type","button","mat-icon-button","","aria-label","Trigger a needs attention alert on this task",1,"manual-signal-btn","xs",3,"click","disabled","matTooltip"],["svgIcon","label_important_outline_24px","color","primary",1,"manual-signal-icon"],["type","button","mat-icon-button","",1,"copy-btn","xs",3,"click","matTooltip"],["svgIcon","copy","color","primary",1,"copy-icon"],["mat-header-row",""],["mat-row",
"",1,"clickable",3,"click"],["mat-footer-cell","","colspan","2"],["type","button","mat-button","",1,"margin-s-top"],["type","button","mat-button","",1,"margin-s-top",3,"click"],["svgIcon","arrow-down",1,"icon"],["svgIcon","arrow-up",1,"icon"],["mat-footer-row","",3,"hidden"],[1,"mat-row","padded-y"],["colspan","5",1,"mat-cell","type-l","text-center","padded-top"],[3,"ariaLabel"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"header",1)(2,"h3",2),Q(3," Recent items "),J(),K(4,"mat-icon",3),I(5,"button",
4),M("click",function(){return b.toggleCollapsed()}),K(6,"mat-icon",5),J()(),E(7,cYb,4,1,"div",6),J());a&2&&(wg("collapsed",b.isCollapsed()),z(7),F(b.isCollapsed()?-1:7))},dependencies:[aB,uO,ON,E7,F7,ZL,H7,cP,vU,PA,Tx,Ux,dO,YN,ZN,$N,sP,nQ,aQ,gQ,cQ,$P,iQ,bQ,hQ,dQ,fQ,eQ,jQ,lQ,kQ,mQ,YA,cB,Qv],styles:[".mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:500}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:32px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%], th.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem;padding:0 4px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-footer-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}th.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-menu[_ngcontent-%COMP%], td.mat-column-save[_ngcontent-%COMP%]{width:32px;height:32px}.mat-mdc-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:first-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}.mat-mdc-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-footer-cell[_ngcontent-%COMP%]:last-of-type, .mat-mdc-header-cell[_ngcontent-%COMP%]:last-of-type{padding-right:0}.mat-mdc-row[_ngcontent-%COMP%]:last-of-type   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.mat-mdc-row.clickable[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}[_nghost-%COMP%]{display:block}.collapse-btn[_ngcontent-%COMP%]{-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.collapsed[_ngcontent-%COMP%]   .collapse-btn[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.carded[_ngcontent-%COMP%]{-webkit-transition:none .1s ease-in-out;transition:none .1s ease-in-out;-webkit-transition-property:padding;transition-property:padding}.carded.collapsed[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.time-boundary-listbox[_ngcontent-%COMP%]   mat-chip-option[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{cursor:pointer}table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}mat-header-row[_ngcontent-%COMP%], mat-row[_ngcontent-%COMP%]{min-height:2rem}mat-header-cell[_ngcontent-%COMP%]{font-weight:500}.mat-mdc-cell[_ngcontent-%COMP%], .mat-mdc-header-cell[_ngcontent-%COMP%]{padding:0 .75rem}.mat-column-type[_ngcontent-%COMP%]{width:4%;min-width:45px;text-align:center}.mat-column-type[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.mat-column-created[_ngcontent-%COMP%], .mat-column-modified[_ngcontent-%COMP%]{min-width:180px;width:12%}.mat-column-role[_ngcontent-%COMP%]{min-width:100px;width:10%}.options-column[_ngcontent-%COMP%]{width:64px;text-align:center}.mat-column-moreRows[_ngcontent-%COMP%]{border:none}.product-icon.critique-logo[_ngcontent-%COMP%]{max-width:20px}.product-icon.drive-doc[_ngcontent-%COMP%]{color:#1967d2}.product-icon.drive-sheet[_ngcontent-%COMP%]{color:#1e8e3e}.product-icon.drive-slide[_ngcontent-%COMP%]{color:#f9ab00}.product-icon.gerrit-logo[_ngcontent-%COMP%]{max-width:20px}.info[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);height:20px;width:20px}.tab-label[_ngcontent-%COMP%]{cursor:pointer}.buttons-container[_ngcontent-%COMP%]{width:100%;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}button.manual-signal-btn[disabled][_ngcontent-%COMP%]{opacity:.35}.copy-icon[_ngcontent-%COMP%], .manual-signal-icon[_ngcontent-%COMP%]{color:#fff;color:var(--background);margin-bottom:1px;max-width:20px}.copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .copy-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .buttons-container[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .copy-icon[_ngcontent-%COMP%], .manual-signal-icon.cdk-keyboard-focused[_ngcontent-%COMP%]   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:focus-visible   .manual-signal-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .buttons-container[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .copy-icon[_ngcontent-%COMP%], .mat-mdc-row[_ngcontent-%COMP%]:hover   .manual-signal-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--primary);background-color:unset}[_nghost-%COMP%]     .copy-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple, [_nghost-%COMP%]     .manual-signal-btn:focus-within:not(.cdk-keyboard-focused) .mat-mdc-button-persistent-ripple{--mat-icon-button-focus-state-layer-opacity:0}\n/*# sourceMappingURL=my_tasks.css.map */"]});var L7=function(){Z.call(this);var a=this;this.hostElement=n(ff);this.analytics=n(CF);this.userFeedback=n(JS);this.prefsService=n(yX);this.hatsService=n(uR);this.appSearchState=n(mX);this.HOTKEYS=xp;this.refreshAllMissionControlData=new bg;this.refreshNeedsAttentionData=new bg;this.captureAnyClick=function(b){b=aCa(b);for(var c=l(Object.entries(Rdd)),d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;if(b.includes(d)){a.analytics.trackEvent("missionControl","click",
e);break}}};this.refreshAllMissionControlData.pipe(gg(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Y(L7,Z);L7.\u0275dir=Z.\u0275dir;L7.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=l(Sdd(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);MNc(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(gg(this.destroyed$)).subscribe()};
L7.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var Sdd=function(a){a=[a.prefsService.isCollapsed("needs-attention-wrapper")?"-":"a",a.prefsService.isCollapsed("mc-my-tasks")?"-":"t",a.prefsService.isCollapsed("work-areas-wrapper-card")?"-":"w"];var b=a.filter(function(c){return c!=="-"}).length;return[a.join(""),b]};L7.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
L7.\u0275fac=function(a){return new (a||L7)};
L7.\u0275cmp=B({type:L7,selectors:[["ng-component"]],standalone:!1,features:[kg],decls:12,vars:4,consts:[[1,"a11y-only"],[1,"padded-s","flex-kids-y","gap-s","pos-fill","bg-off-main","overflow","overflow-on-print-media",3,"onHotkey","hotkey"],[1,"flex-kids-x","align-items-center","justify-flex-end","info-row"],["type","button","mat-stroked-button","",1,"small",3,"click"],[1,"a"],[3,"refreshData"],[1,"t"],[3,"manualSignalTriggered","refreshData"],[1,"w"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1,
"Mission Control"),J(),I(2,"div",1),M("onHotkey",function(){return b.refresh()}),I(3,"div",2)(4,"button",3),M("click",function(){VRc(b.userFeedback)}),Q(5,"Give feedback"),J()(),I(6,"section",4),K(7,"needs-attention-wrapper",5),J(),I(8,"section",6)(9,"my-tasks",7),M("manualSignalTriggered",function(){return b.refreshNeedsAttentionData.next()}),J()(),I(10,"section",8),K(11,"work-areas-wrapper-card",5),J()());a&2&&(z(2),D("hotkey",b.HOTKEYS.REFRESH_ISSUE_LIST),z(5),D("refreshData",b.refreshNeedsAttentionData),
z(2),D("refreshData",b.refreshAllMissionControlData),z(2),D("refreshData",b.refreshAllMissionControlData))},dependencies:[PA,Tx,dY,J7,K7,pH],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     section>*>.carded{box-shadow:0 1px 2px 0 hsla(0,0%,50%,.3),0 2px 6px 2px hsla(0,0%,50%,.15);border:none}.dark-mode   [_nghost-%COMP%]     section>*>.carded{box-shadow:0 2px 3px 0 rgba(0,0,0,.3),0 6px 10px 4px rgba(0,0,0,.15)}.learn-more-link[_ngcontent-%COMP%]{color:#185abc;color:var(--link-high-contrast)}.learn-more-link[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=mission_control_wrapper.css.map */"]});
var Rdd={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var As=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(As,V);g=As.prototype;g.getId=function(){return Dl(this,1)};g.getId_asLegacyNumberOrString=function(){return zl(this,1)};g.getId_asString=function(){return Gl(this,1)};g.setId=function(a){return Fm(this,1,a)};g.getFrequency=function(){return pl(this,2)};g.setFrequency=function(a){return Nk(this,2,a)};g.getOrdinal=function(){return Ik(this,3)};g.setOrdinal=function(a){return $k(this,3,a)};
g.getTimeZone=function(){return X(this,fp,4)};g.setTimeZone=function(a){return W(this,fp,4,a)};g.hasTimeZone=function(){return nk(this,fp,4)};g.getTimeOfDay=function(){return X(this,gp,5)};g.setTimeOfDay=function(a){return W(this,gp,5,a)};g.getDisplayName=function(){return Oh(this,6)};g.setDisplayName=function(a){return Lk(this,6,a)};g.getQuery=function(){return Oh(this,7)};g.setQuery=function(a){return Lk(this,7,a)};g.clearQuery=function(){tq(this,7)};
g.getLastUpdatedTimestamp=function(){return X(this,bl,12)};var M7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,M7.messageId)};Y(M7,V);M7.prototype.getSubscription=function(){return X(this,As,1)};M7.prototype.setSubscription=function(a){return W(this,As,1,a)};M7.messageId="b.ConfigurableAlertSubscriptionRequest";var N7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,N7.messageId)};Y(N7,V);N7.prototype.getSubscription=function(){return X(this,As,1)};N7.prototype.setSubscription=function(a){return W(this,As,1,a)};N7.messageId="b.ConfigurableAlertSubscriptionResponse";var Tdd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Tdd.messageId)};Y(Tdd,V);Tdd.prototype.getSubscriptionsList=function(){return Wk(this,As,1,Fk())};Tdd.messageId="b.ListConfigurableAlertSubscriptionsResponse";var O7=function(){this.executor=n(yC)};g=O7.prototype;g.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new M7).setSubscription(fYb(a)),responseConstructor:N7}).pipe(y(function(b){if(b=b.getSubscription())return eYb(b);throw Error("Lf");}))};g.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:Tdd}).pipe(y(function(a){return a.getSubscriptionsList().map(eYb)}))};
g.get=function(a){return this.executor.get({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:N7}).pipe(y(function(b){if(b=b.getSubscription())return eYb(b);throw Error("Mf");}))};g.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new M7).setSubscription(fYb(a)),responseConstructor:N7}).pipe(y(function(b){if(b=b.getSubscription())return eYb(b);throw Error("Lf");}))};
g.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:IC}).pipe(y(function(){}))};O7.\u0275fac=function(a){return new (a||O7)};O7.\u0275prov=Sc({token:O7,factory:O7.\u0275fac,providedIn:"root"});var P7=function(){GC.call(this,{freshUntil:36E5,ancientAfter:2592E5});var a=this;this.api=n(O7);this.recordType="configurable_alert";this.idForRecord=function(d){return d.id};this.isEqual=Pj;var b=n(YE),c=n(df);b.getObservable().pipe(Gh(c)).subscribe(function(){a.invalidate()})};Y(P7,GC);g=P7.prototype;g.fetchOne=function(a){return this.api.get(a)};g.list=function(){return this.api.list()};g.create=function(a){return this.api.create(a)};g.update=function(a){var b=this;return this.api.update(a).pipe(hg(function(c){b.invalidate(c.id)}))};
g.delete=function(a){var b=this;return this.api.delete(a).pipe(hg(function(){b.invalidate(a)}))};P7.\u0275fac=function(a){return new (a||P7)};P7.\u0275prov=Sc({token:P7,factory:P7.\u0275fac,providedIn:"root"});var Udd=function(){this.timeZones=n(CK);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new LA;this.timeZoneOptions$=qEc(this.timeZones).pipe(y(function(a){return a.sort(hYb)}))};Udd.\u0275fac=function(a){return new (a||Udd)};
Udd.\u0275cmp=B({type:Udd,selectors:[["b-timezone-picker"]],inputs:{label:"label",timezoneId:"timezoneId",disabled:"disabled",fullWidth:"fullWidth"},outputs:{timezoneIdChange:"timezoneIdChange"},standalone:!1,decls:7,vars:7,consts:[["appearance","outline",1,"form-field-wide-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"]],template:function(a,b){a&1&&(I(0,"mat-form-field",0)(1,"mat-label"),Q(2),J(),I(3,"mat-select",1),M("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=c,b.timezoneIdChange.emit(b.timezoneId))}),
Dg(4,gYb,2,2,"mat-option",2,Cg),S(6,"async"),J()());a&2&&(wg("full-width",b.fullWidth),z(2),R(" ",b.label," "),z(),D("disabled",b.disabled)("ngModel",b.timezoneId),z(),Eg(T(6,5,b.timeZoneOptions$)))},dependencies:[rP,Xy,Qy,zP,Lx,YM,oy,vy,Qv],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var Q7=function(){var a=this;this.dateFormatter=n(YL);this.destroyRef=n(df);this.frequency$=new tj("weekly");this.ordinal$=new tj(1);this.timeZoneId$=new tj("America/Los_Angeles");this.timeOfDay$=new tj({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=Je([this.frequency$,this.ordinal$]).pipe(y(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new LA;this.ordinalChange=new LA;this.timeOfDayChange=new LA;this.timeZoneIdChange=new LA;this.frequencyOptions=
Vdd;this.repeatOnOptions=new Map([["daily",[]],["weekly",Wdd],["monthly",Xdd]]);this.repeatAtOptions=Ydd.map(function(b){var c=a.dateFormatter.format("HH:mma",void 0,b.date);return{timeOfDay:b.timeOfDay,display:c}});this.repeatAtOptions.map(function(b){return[b.timeOfDay.hours,b.display]});this.compareTimeOfDay=pYb};
Q7.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(Xf(),dg(1),Gh(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(Xf(),dg(1),Ve(function(b){return b!==0}),Gh(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(Xf(pYb),dg(1),Gh(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(Xf(),dg(1),Gh(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
ea.Object.defineProperties(Q7.prototype,{frequency:{configurable:!0,enumerable:!0,set:function(a){this.frequency$.next(a)}},ordinal:{configurable:!0,enumerable:!0,set:function(a){this.ordinal$.next(a)}},timeOfDay:{configurable:!0,enumerable:!0,set:function(a){this.timeOfDay$.next(a)}},timeZoneId:{configurable:!0,enumerable:!0,set:function(a){this.timeZoneId$.next(a)}}});Q7.\u0275fac=function(a){return new (a||Q7)};
Q7.\u0275cmp=B({type:Q7,selectors:[["b-delivery-frequency-subform"]],inputs:{frequency:"frequency",ordinal:"ordinal",timeOfDay:"timeOfDay",timeZoneId:"timeZoneId"},outputs:{frequencyChange:"frequencyChange",ordinalChange:"ordinalChange",timeOfDayChange:"timeOfDayChange",timeZoneIdChange:"timeZoneIdChange"},standalone:!1,decls:8,vars:12,consts:[["appearance","outline",1,"full-width"],[3,"ngModelChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel","compareWith"],[3,"timezoneIdChange","timezoneId",
"fullWidth"]],template:function(a,b){a&1&&(E(0,jYb,7,1,"div"),S(1,"async"),E(2,lYb,7,1,"div"),S(3,"async"),E(4,nYb,7,2,"div"),S(5,"async"),E(6,oYb,2,2,"div"),S(7,"async"));if(a&2){var c,d,e,f;F((c=T(1,4,b.frequency$))?0:-1,c);z(2);F((d=T(3,6,b.ordinalOrZero$))?2:-1,d);z(2);F((e=T(5,8,b.timeOfDay$))?4:-1,e);z(2);F((f=T(7,10,b.timeZoneId$))?6:-1,f)}},dependencies:[oy,vy,rP,Xy,Qy,zP,Lx,YM,Udd,Qv],encapsulation:2,changeDetection:0});
var Vdd=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],Wdd=[{ordinal:1,display:"Mondays"},{ordinal:2,display:"Tuesdays"},{ordinal:3,display:"Wednesdays"},{ordinal:4,display:"Thursdays"},{ordinal:5,display:"Fridays"},{ordinal:6,display:"Saturdays"},{ordinal:7,display:"Sundays"}],Xdd=[].concat(p(Array.from({length:31}).fill(0).keys())).map(function(a){var b=a+1,c=b%10,d=b%100;return{ordinal:a+1,display:c===1&&d!==11?String(b)+"st":
c===2&&d!==12?String(b)+"nd":c===3&&d!==13?String(b)+"rd":String(b)+"th"}}),Ydd=[].concat(p(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),minutes:0,seconds:0,nanos:0}}});var Zdd=["dialogContent"],R7=function(){var a=this;this.matDialog=n(tK);this.fridge=n(P7);this.confirmationDialogService=n(AK);this.destroyRef=n(df);this.init$=new tj(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new tj(void 0);this.ownedSubscriptions$=this.refreshOwnedSubscriptions$.pipe(fg(function(){return a.fridge.list()}));this.warningTooltipText="This is returning too many results and has been paused. Please change the search query to return fewer results.";
this.isSaving$=new tj(!1);var b=n(sj);this.init$.pipe(Ve(function(c){return c}),fg(function(){return b.queryParams}),Ve(function(c){return c.subscriptionId}),fg(function(c){return a.fridge.watch(c.subscriptionId,{trustMemory:!1,trustUncertainMemory:!1})}),Gh(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};R7.prototype.ngOnInit=function(){this.init$.next(!0)};R7.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
R7.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};R7.prototype.save=function(a){var b=this;this.isSaving$.next(!0);(a.id==="0"?this.fridge.create(a):this.fridge.update(a)).pipe(Uf(),Gh(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)$dd(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var $dd=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Oi("This is returning too many results and has been paused. Please change the search query to return fewer results."),confirmButtonText:"Continue",isDestructive:!1,showCancelButton:!1}):a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Oi('This is returning too many results and has been paused.\n           To reduce search results, add another search constraint, such\n           as appending "created:30d" to limit the query to bugs created\n           in the last 30 days.'),
confirmButtonText:"Add created:30d",cancelButtonText:"Continue",isDestructive:!1,onConfirm:function(){b.query+=" created:30d";var c;(c=a.dialogRef)==null||c.close();a.openDialog(b)},onDismiss:function(){var c;(c=a.dialogRef)==null||c.close()}})};R7.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Oi("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(Gh(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
R7.\u0275fac=function(a){return new (a||R7)};
R7.\u0275cmp=B({type:R7,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&Wg(Zdd,7);if(a&2){var c;$g(c=ah())&&(b.dialogContent=c.first)}},standalone:!1,decls:13,vars:1,consts:[["showOwnedSubscriptions",""],["dialogContent",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[4,"ngTemplateOutlet"],["type","button","mat-flat-button","","color","primary",3,"click"],[1,"full-width"],["mat-table","","aria-label",
"Configurable alerts list",1,"bordered","full-width",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","overflow-warning"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["svgIcon","warning","tabindex","0",1,"bad","vertical-centered",3,"matTooltip"],["type","button","mat-icon-button","","aria-label",
"Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["type","button","mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline",1,"full-width"],["matInput","","type","text",3,"ngModelChange","ngModel"],["matInput","","type","text","spellcheck","false","autocomplete",
"off","name","searchQuery",3,"ngModelChange","ngModel"],[3,"frequencyChange","ordinalChange","timeOfDayChange","timeZoneIdChange","frequency","ordinal","timeOfDay","timeZoneId"],[3,"change","checked"],[1,"flex-kids-x","gap-s"],[1,"muted","type-s"],"type button mat-flat-button  color secondary matDialogClose ".split(" ")],template:function(a,b){if(a&1){var c=r();I(0,"div",3)(1,"div",4)(2,"p",5);Q(3,"Subscriptions");J()();I(4,"div");C(5,qYb,1,0,"ng-container",6);I(6,"div")(7,"button",7);M("click",function(){t(c);
return v(b.openDialog({id:"0",frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:{hours:9,minutes:0,seconds:0,nanos:0},displayName:"New configurable alert",query:"assignee:me status:open created:30d",sendEmail:!0,showInBuganizerHome:!1,baselineIssueIds:[],isOverflowing:!1,lastUpdated:{seconds:0,nanos:0}}))});Q(8," Create configurable alert ");J()()()();C(9,AYb,13,3,"ng-template",null,0,nh)(11,HYb,29,14,"ng-template",null,1,nh)}a&2&&(a=L(10),z(5),D("ngTemplateOutlet",a))},dependencies:[Pv,
aB,Li,oy,vy,PA,Tx,Ux,uK,wK,yK,xK,Xy,Qy,YM,$M,ez,cH,dH,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,UG,XG,VG,YG,YA,cB,ON,Q7,Qv],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"]});var aed=function(a,b){this.name=a;this.resourceType=b;this.options=[]};aed.prototype.shouldDisplay=function(){return!0};aed.prototype.hasOptions=function(){return!1};aed.prototype.getDefaultOptionId=function(){return null};var S7=function(a,b){this.name=a;this.resourceType=b;this.options=[]};S7.prototype.shouldDisplay=function(){return this.options.length>0};S7.prototype.hasOptions=function(){return this.options.length>0};
S7.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var bed=function(a,b){this.id=a;this.name=b},ded=function(a,b,c,d,e,f){var h=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.activeSession=f;this.selectedOptionId=null;this.subscriptions=new ke;this.missionControlMainOption=new aed("Home","MISSION_CONTROL");this.assignedToMeMainOption=new aed("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new S7("Hotlist","HOTLIST");this.savedSearchMainOption=new S7("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new S7("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];(this.isUserInternal()||Yr(this.activeSession,"enableMissionControlInExternalEnvironments"))&&this.mainOptions.unshift(this.missionControlMainOption);a={};this.resourceMainOptions=(a.MISSION_CONTROL=this.missionControlMainOption,a.ASSIGNED_TO_ME=this.assignedToMeMainOption,a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,
a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];ced(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){ced(h);h.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(k){k.homepagePreferences&&(k=k.homepagePreferences,k.resourceType?h.selectedMainOption=h.resourceMainOptions[k.resourceType]||h.mainOptions[0]:h.isUserInternal()||Yr(h.activeSession,"enableMissionControlInExternalEnvironments")?
h.selectedMainOption=h.missionControlMainOption:h.selectedMainOption=h.assignedToMeMainOption,h.selectedOptionId=k.resourceId||null,ced(h))}))};ded.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var LYb=function(a){Mq(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);Atc(a.userPreferencesManager,b).subscribe(function(){Mq(a.butterBar,"Preferences saved.",4E3)})},ced=function(a){function b(c){return new bed(String(c.id),c.name)}a.hotlistMainOption.options=a.sidebar.userHotlists.map(b);a.savedSearchMainOption.options=a.sidebar.userSavedSearches.map(b);a.bookmarkGroupMainOption.options=
a.sidebar.sidebarData.bookmarkGroups.map(b);a.selectedOptionId&&(a.selectedMainOption.options.find(function(c){return c.id===a.selectedOptionId})||a.selectedMainOption.options.push(new bed(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};ded.prototype.isUserInternal=function(){return this.activeSession.isInternalSession()};var T7=function(){Z.call(this);this.cdr=n(NA,{self:!0});this.userPreferencesManager=n(OG);this.butterBar=n(iK);this.activeSession=n(Es);this.documentationLinks=n(lK);this.analytics=n(CF);this.sidebar=n(XY);this.appEvents=n(nD);this.constants=n(GK);this.IS_INTERNAL_USER=this.activeSession.isInternalSession();this.ENABLE_MISSION_CONTROL_IN_EXTERNAL_ENVIRONMENTS=Yr(this.activeSession,"enableMissionControlInExternalEnvironments");this.dateFormats=[{value:"MMM d, yyyy",label:"Dec 31, 2015"},{value:"EE MMM dd, yyyy",
label:"Thu Dec 31, 2015"},{value:"yyyy-MM-dd",label:"2015-12-31"},{value:"MM/dd/yyyy",label:"12/31/2015"},{value:"dd-MM-yyyy",label:"31-12-2015"},{value:"dd.MM.yyyy",label:"31.12.2015"}];this.timeFormats=[{value:"hh:mma",label:"01:00PM"},{value:"h:mma",label:"1:00PM"},{value:"HH:mm",label:"13:00"},{value:"HH:mm:ss",label:"13:00:01"}];this.timeZones=[];this.showForcePlainTextSettings=(this.enableLiteralModeRevisions=Yr(this.activeSession,"enableLiteralModeRevisions"))&&this.activeSession.isInternalSession();
this.appName=this.activeSession.getAppName();this.timeZones.push.apply(this.timeZones,p(this.constants.supportedTimeZones.map(function(a){return{value:a.id,label:a.name}})));this.sloEnabled=this.activeSession.isInternalSession();this.showBugScreensaverSetting=this.activeSession.isInternalSession();this.showShowInlineImagesSetting=this.activeSession.isInternalSession()};Y(T7,Z);T7.\u0275dir=Z.\u0275dir;
T7.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new ded(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents,this.activeSession);this.userPreferencesManager.preferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
T7.prototype.save=function(a,b,c){var d=this;Mq(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Mq(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var RYb=function(a){var b;return((b=a.userPreferences.textDisplayPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},UYb=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},VYb=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL_FORMATTING_MODE"};
T7.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};ea.Object.defineProperties(T7.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});T7.\u0275fac=function(a){return new (a||T7)};
T7.\u0275cmp=B({type:T7,selectors:[["b-general-settings"]],standalone:!1,features:[hh([NA]),kg],decls:73,vars:13,consts:[[1,"flex-kids-x","gap-l","margin-bottom"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-s"],["target","_blank",3,"href"],["appearance","outline"],["matTooltip","Current selection for preferred homepage"],["id","bv2-homepage-pref-selection",3,"ngModelChange","selectionChange","ngModel"],[1,"margin-y"],["id","bv2-datetime-pref-date-formatting","appearance",
"outline"],["matTooltip","Date/time formatting - Use this format for calendar dates."],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["id","bv2-datetime-pref-time-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-timezone","appearance","outline"],["matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-enable-all-hotkeys",3,"change","checked"],[1,"margin-bottom"],
["id","bv2-force-code-font"],[1,"bv2-settings-preferred-homepage-main-option-select-item",3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],["id","hide-nav-badge",3,"change","checked"],["id","bv2-force-plain-text",3,"change","checked"],["id","bv2-show-inline-images",3,"change","checked"],["id","bv2-force-display-plain-text",3,"change","checked"],["id",
"bv2-force-create-plain-text",3,"change","checked"],["id","bv2-bug-screensaver",3,"change","checked"]],template:function(a,b){a&1&&(I(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),Q(4,"Preferred homepage"),J(),I(5,"p",3),Q(6," Select your preferred homepage when first opening the app. "),I(7,"a",4),Q(8," Learn more "),J()()(),I(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),Q(13," Current selection "),J(),I(14,"mat-select",7),gh("ngModelChange",function(c){fh(b.preferredHomepage.selectedMainOption,
c)||(b.preferredHomepage.selectedMainOption=c);return c}),M("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();LYb(c);c.cdr.detectChanges()}),Dg(15,JYb,1,1,null,null,Cg),J()(),E(17,MYb,4,1,"mat-form-field",5),J(),E(18,NYb,3,1,"div"),J()(),K(19,"hr",8),I(20,"div",0)(21,"div",1)(22,"p",2),Q(23,"Date/time formatting settings"),J(),I(24,"p",3),Q(25," Select how you want dates and times to be formatted. "),I(26,"a",4),Q(27," Learn more "),
J()()(),I(28,"div")(29,"div")(30,"mat-form-field",9)(31,"mat-label",10),Q(32," Dates "),J(),I(33,"mat-select",11),gh("ngModelChange",function(c){fh(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=c);return c}),M("selectionChange",function(){return b.save("saveDateTimePreferences")}),Dg(34,OYb,2,2,"mat-option",12,Cg),J()()(),I(36,"div")(37,"mat-form-field",13)(38,"mat-label",14),Q(39," Times "),J(),I(40,"mat-select",11),gh("ngModelChange",
function(c){fh(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),M("selectionChange",function(){return b.save("saveDateTimePreferences")}),Dg(41,PYb,2,2,"mat-option",12,Cg),J()()(),I(43,"div")(44,"mat-form-field",15)(45,"mat-label",16),Q(46," Time Zones "),J(),I(47,"mat-select",11),gh("ngModelChange",function(c){fh(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),M("selectionChange",
function(){return b.save("saveDateTimePreferences")}),Dg(48,QYb,2,2,"mat-option",12,Cg),J()()()()(),K(50,"hr",8),I(51,"div",0)(52,"div",1)(53,"p",2),Q(54,"Keyboard settings"),J()(),I(55,"div")(56,"div")(57,"mat-slide-toggle",17),M("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c.checked;return b.save("saveKeyboardPreferences")}),Q(58," Enable all hotkeys "),J()()()(),K(59,"hr",8),I(60,"div",0)(61,"div",1)(62,"p",2),Q(63,"Display settings"),J()(),I(64,"div"),E(65,SYb,3,
1,"div",18),I(66,"div",18)(67,"b-toggle-code-font",19),Q(68," Force comments to display with code font "),J()(),E(69,TYb,3,1,"div",18),J()(),E(70,WYb,12,2),K(71,"hr",8),E(72,XYb,8,1,"div",0),J());a&2&&(z(7),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",uf),z(7),eh("ngModel",b.preferredHomepage.selectedMainOption),z(),Eg(b.preferredHomepage.mainOptions),z(2),F(b.preferredHomepage.selectedMainOption.hasOptions()?17:-1),z(),F(b.IS_INTERNAL_USER||b.ENABLE_MISSION_CONTROL_IN_EXTERNAL_ENVIRONMENTS?
18:-1),z(8),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",uf),z(7),eh("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),z(),Eg(b.dateFormats),z(6),eh("ngModel",b.userPreferences.dateTimePreferences.timeFormat),z(),Eg(b.timeFormats),z(6),eh("ngModel",b.userPreferences.dateTimePreferences.timeZone),z(),Eg(b.timeZones),z(9),D("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),z(8),F(b.enableLiteralModeRevisions?-1:65),z(4),F(b.showShowInlineImagesSetting?
69:-1),z(),F(b.showForcePlainTextSettings?70:-1),z(2),F(b.showBugScreensaverSetting?72:-1))},dependencies:[oy,vy,rP,Xy,Qy,zP,Lx,YM,cH,dH,YA,cB,y6],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"]});var U7=function(){Z.call(this);var a=this;this.userPreferencesManager=n(OG);this.butterBar=n(iK);this.documentationLinks=n(lK);this.analytics=n(CF);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(gg(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Y(U7,Z);U7.\u0275dir=Z.\u0275dir;
U7.prototype.save=function(a,b,c){var d=this;Mq(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Mq(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};U7.\u0275fac=function(a){return new (a||U7)};
U7.\u0275cmp=B({type:U7,selectors:[["b-notification-settings"]],standalone:!1,features:[kg],decls:54,vars:8,consts:[[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-ss"],["target","_blank",3,"href"],["appearance","outline","id","bv2-notification-pref-assigned"],["matTooltip","Notification level - issues for which you are the assignee"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["appearance","outline","id","bv2-notification-pref-reported"],
["matTooltip","Notification level - issues for which you are the reporter"],["appearance","outline","id","bv2-notification-pref-verified"],["matTooltip","Notification level - issues for which you are the verifier"],["appearance","outline","id","bv2-notification-pref-collaborator"],["matTooltip","Notification level - issues for which you are the collaborator"],["appearance","outline","id","bv2-notification-pref-ccd"],["matTooltip","Notification level - issues on which you are CC'd"],["appearance",
"outline","id","bv2-notification-pref-starred"],["matTooltip","Notification level - issues that you have starred"],["id","bv2-exclude-changes-by-me",3,"change","checked"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"div",1)(2,"p",2),Q(3,"Notification settings"),J(),I(4,"p",3),Q(5," Select the level of email you want to receive for each issue role. "),I(6,"a",4),Q(7," Learn more "),J()()(),I(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),Q(12," Assignee "),J(),I(13,"mat-select",7),gh("ngModelChange",
function(c){fh(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(14,YYb,3,4,"mat-option",8,Cg),J()()(),I(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),Q(19," Reporter "),J(),I(20,"mat-select",7),gh("ngModelChange",function(c){fh(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(21,ZYb,3,4,"mat-option",8,Cg),J()()(),I(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),Q(26," Verifier "),J(),I(27,"mat-select",7),gh("ngModelChange",function(c){fh(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(28,$Yb,3,4,"mat-option",
8,Cg),J()()(),I(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),Q(33," Collaborator "),J(),I(34,"mat-select",7),gh("ngModelChange",function(c){fh(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(35,aZb,3,4,"mat-option",8,Cg),J()()(),I(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),Q(40," CC'd "),J(),I(41,"mat-select",
7),gh("ngModelChange",function(c){fh(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(42,bZb,3,4,"mat-option",8,Cg),J()()(),I(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),Q(47," Starred "),J(),I(48,"mat-select",7),gh("ngModelChange",function(c){fh(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),M("selectionChange",function(){return b.save("saveNotificationPreferences")}),Dg(49,cZb,3,4,"mat-option",8,Cg),J()()(),I(51,"div")(52,"mat-slide-toggle",19),M("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),Q(53," Exclude edits made by you "),J()()()());a&2&&(z(6),D("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",uf),z(7),eh("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
z(),Eg(b.priorities),z(6),eh("ngModel",b.userPreferences.notificationPreferences.reportedPriority),z(),Eg(b.priorities),z(6),eh("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),z(),Eg(b.priorities),z(6),eh("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),z(),Eg(b.priorities),z(6),eh("ngModel",b.userPreferences.notificationPreferences.ccdPriority),z(),Eg(b.priorities),z(6),eh("ngModel",b.userPreferences.notificationPreferences.starredPriority),z(),Eg(b.priorities),
z(3),D("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[oy,vy,rP,Xy,Qy,zP,Lx,YM,cH,dH,YA,cB,Jlc],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"]});var eed=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,eed.messageId)};Y(eed,V);eed.prototype.getSubscriptionsList=function(){return Wk(this,hp,1,Fk())};eed.messageId="b.ListSloReportSubscriptionsResponse";var V7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,V7.messageId)};Y(V7,V);V7.prototype.getSubscription=function(){return X(this,hp,1)};V7.prototype.setSubscription=function(a){return W(this,hp,1,a)};V7.messageId="b.SloReportSubscriptionRequest";var W7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,W7.messageId)};Y(W7,V);W7.prototype.getSubscription=function(){return X(this,hp,1)};W7.prototype.setSubscription=function(a){return W(this,hp,1,a)};W7.messageId="b.SloReportSubscriptionResponse";var X7=function(){this.executor=n(yC)};g=X7.prototype;g.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:W7}).pipe(y(function(b){if(b=b.getSubscription())return aIa(b);throw Error("Nf");}))};g.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:eed}).pipe(y(function(a){return a.getSubscriptionsList().map(aIa)}))};
g.create=function(a){if(a.id!==0)throw Error("Of");return this.executor.post({url:"action/slo_report_subscriptions",body:(new V7).setSubscription(bIa(a)),responseConstructor:W7}).pipe(y(function(b){if(b=b.getSubscription())return aIa(b);throw Error("Lf");}))};
g.update=function(a){if(a.id===0)throw Error("Pf");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new V7).setSubscription(bIa(a)),responseConstructor:W7}).pipe(y(function(b){if(b=b.getSubscription())return aIa(b);throw Error("Lf");}))};g.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:IC}).pipe(y(function(){}))};X7.\u0275fac=function(a){return new (a||X7)};X7.\u0275prov=Sc({token:X7,factory:X7.\u0275fac,providedIn:"root"});var fed=["sloSubscriptionDialog"],Y7=function(){Z.apply(this,arguments);var a=this;this.dateFormatter=n(YL);this.api=n(X7);this.currentUser=n(vZ);this.dialog=n(tK);this.timeZones=n(CK);this.confirmationDialogService=n(AK);this.principalTypes=n(kG);this.analytics=n(CF);this.butterBar=n(iK);this.constants=n(GK);this.subscriptions$=new tj([]);this.isBasicMode$=this.subscriptions$.pipe(y(function(b){return b.length===0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));this.userSubscription$=
this.subscriptions$.pipe(y(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.lead.emailAddress===a.currentUser.email)return a.inputDaysRemaining=c.daysRemaining,c;return{id:0,lead:a.currentUser.user,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:ged[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=new tj(!1);this.inputHasFocus=!1;this.repeatAtOptions$=Je(ged.map(function(b){return Ce(a.dateFormatter.format("HH:mma",
void 0,b.date)).pipe(y(function(c){return{timeOfDay:b.timeOfDay,display:c}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=Hk;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(hed.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=qEc(this.timeZones).pipe(Uf(),y(function(b){return new Map(b.map(function(c){return[c.id,c.displayName]}))}),cg({bufferSize:1,refCount:!0}));this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(Uf(),
y(function(b){return new Map(b.map(function(c){return[c.timeOfDay.hours,c.display]}))}),cg({bufferSize:1,refCount:!0}));this.typeChoices=[{value:"BUG",displayText:this.constants.issueTypesDisplayNames.get("BUG")},{value:"CUSTOMER_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("CUSTOMER_ISSUE")},{value:"PRIVACY_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("PRIVACY_ISSUE")},{value:"VULNERABILITY",displayText:this.constants.issueTypesDisplayNames.get("VULNERABILITY")},{value:"PROCESS",
displayText:this.constants.issueTypesDisplayNames.get("PROCESS")},{value:"INTERNAL_CLEANUP",displayText:this.constants.issueTypesDisplayNames.get("INTERNAL_CLEANUP")},{value:"FEATURE_REQUEST",displayText:this.constants.issueTypesDisplayNames.get("FEATURE_REQUEST")},{value:"MILESTONE",displayText:this.constants.issueTypesDisplayNames.get("MILESTONE")},{value:"FEATURE",displayText:this.constants.issueTypesDisplayNames.get("FEATURE")},{value:"PROJECT",displayText:this.constants.issueTypesDisplayNames.get("PROJECT")},
{value:"EPIC",displayText:this.constants.issueTypesDisplayNames.get("EPIC")},{value:"STORY",displayText:this.constants.issueTypesDisplayNames.get("STORY")},{value:"TASK",displayText:this.constants.issueTypesDisplayNames.get("TASK")}]};Y(Y7,Z);Y7.\u0275dir=Z.\u0275dir;Y7.prototype.ngOnInit=function(){Z7(this)};
var lZb=function(a){a.userSubscription$.pipe(Uf(),fg(function(b){if(b.id===0)return a.analytics.trackEvent("sloReports","enableOwnSubscription"),a.api.create(b);a.analytics.trackEvent("sloReports","disableOwnSubscription");return a.api.delete(b.id)})).subscribe(function(){Z7(a)})},Z7=function(a){a.isThinking$.next(!0);a.api.list().pipe(Uf()).subscribe(function(b){a.isThinking$.next(!1);for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,d.types.length===0&&(d.types=a.typeChoices.map(function(e){return e.value}));
a.subscriptions$.next(b)})},Ds=function(a,b){a.isThinking$.next(!0);b.types.length===a.typeChoices.length&&(b.types=[]);a.api.update(b).subscribe(function(){a.analytics.trackEvent("sloReports","editSubscription");Z7(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),Z7(a))})},ied=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");Z7(a)})};g=Y7.prototype;
g.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Oi("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){ied(b,a)}})};g.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;Ds(this,b)};g.setTimeZone=function(a,b){Ds(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
g.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;Ds(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};g.setIssueType=function(a,b){Ds(this,Object.assign({},b,{types:a}))};
var jZb=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&Ds(a,Object.assign({},b,{sloIds:[].concat(p(b.sloIds),[a.newSloId])}))},gZb=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});Ds(a,Object.assign({},b,{sloIds:d}))}},FZb=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},CZb=function(a,b){if(a.sloIds.includes(b)){var c=a.sloIds.filter(function(d){return d!==b});a.sloIds=c}};
Y7.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:ged[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}),this.ceoSelected=this.dialogInvalidEmailFormat=!1,this.dialogRef=this.dialog.open(this.sloSubscriptionDialog,{data:Qj(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var GZb=function(a,b){return w(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?x(c,jed(a,b.lead.emailAddress),2):c.return();if(!c.yieldResult)return b.lead.emailAddress="",a.dialogInvalidEmailFormat=!0,c.return();if(b.lead.emailAddress==="sundar@google.com")return b.lead.emailAddress="",a.ceoSelected=!0,c.return();b.id===0?a.api.create(b).subscribe(function(){a.analytics.trackEvent("sloReports","createSubscription");Z7(a)}):Ds(a,b);a.dialogRef.close();ze(c)})},jed=function(a,b){var c;
return w(function(d){if(d.nextAddress==1)return Zj(b)?x(d,a.principalTypes.get(b),2):d.return(Promise.resolve(!1));c=d.yieldResult;return c.principalType!=="USER"?d.return(Promise.resolve(!1)):d.return(Promise.resolve(!0))})};Y7.\u0275fac=function(){var a;return function(b){return(a||(a=fe(Y7)))(b||Y7)}}();
Y7.\u0275cmp=B({type:Y7,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&Wg(fed,7);if(a&2){var c;$g(c=ah())&&(b.sloSubscriptionDialog=c.first)}},standalone:!1,features:[kg],decls:22,vars:14,consts:[["sloSubscriptionDialog",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],["id","advanced-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby advanced-settings-note".split(" "),
[1,"full-width"],[1,"margin-bottom"],["type","button","mat-flat-button","","color","primary",3,"click","disabled"],["mat-table","","aria-label","SLO reports subscriptions",1,"bordered","full-width",3,"dataSource"],["id","frequency-settings-note",1,"muted","type-s"],"href http://go/issue-slo-reports target _blank aria-describedby frequency-settings-note".split(" "),[1,"margin-y"],["id","isSubscribedCheckbox",1,"margin-s-right",3,"change","disabled","checked"],["appearance","outline",1,"full-width"],
["matInput","","readonly","",3,"focus","blur","ngModel"],[3,"frequencyChange","ordinalChange","timeOfDayChange","timeZoneIdChange","frequency","ordinal","timeOfDay","timeZoneId"],["appearance","outline"],["matInput","","type","number",3,"ngModelChange","blur","keydown.enter","ngModel"],["multiple","",3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","number",3,"ngModelChange","keydown.enter","blur","ngModel"],[1,"flex-kids-x","space-between",
"margin-xs-y"],[1,"muted","type-s"],[1,"subtle-link",3,"href"],["type","button","mat-icon-button","","aria-label","Remove SLO ID",1,"xs",3,"click","matTooltip"],["svgIcon","clear"],["matColumnDef","scope"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","frequency"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button",
"","aria-label","Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","","aria-label","View and edit subscription attributes",3,"click"],["type","button","mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0"],["matDialogTitle",""],[1,"type-l","margin-bottom"],["appearance","outline","floatLabel","always",1,"full-width"],["matInput","","required","","placeholder","Search users...",3,"ngModelChange",
"ngModel","bContactAutocomplete"],["matInput","","type","number",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"full-width"],["id","new-subscription-note",1,"italic"],"href http://go/issue-slo-reports target _blank aria-describedby new-subscription-note".split(" "),"type button mat-button  color primary matDialogClose ".split(" ")],template:function(a,b){if(a&1){var c=r();E(0,nZb,11,3);S(1,"async");I(2,"div",2)(3,"div",3)(4,"p",4);Q(5,"Advanced settings");J();
I(6,"p",5);Q(7," Add subscriptions to receive other user's reports. ");I(8,"a",6);Q(9,"Learn more");J()()();I(10,"div",7)(11,"div",8)(12,"button",9);S(13,"async");M("click",function(){t(c);return v(b.openDialog())});Q(14," Create subscription ");J()();E(15,oZb,1,0,"b-spinner");S(16,"async");E(17,yZb,12,3,"table",10);S(18,"async");S(19,"async");J()();C(20,HZb,42,14,"ng-template",null,0,nh)}a&2&&(F(T(1,4,b.isBasicMode$)?0:-1),z(12),D("disabled",T(13,6,b.isThinking$)),z(3),F(T(16,8,b.isThinking$)?15:
-1),z(2),F(T(18,10,b.isBasicMode$)||T(19,12,b.isThinking$)?-1:17))},dependencies:[aB,Li,xy,oy,Gy,vy,PA,Tx,Ux,uK,wK,yK,xK,rP,Xy,Qy,Py,Oy,zP,Lx,YM,$M,ez,cH,dH,sP,nQ,aQ,gQ,cQ,$P,iQ,dQ,fQ,jQ,lQ,UG,XG,VG,YG,YA,cB,ON,bJ,Q7,Qv],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */",
".mat-mdc-form-field[_ngcontent-%COMP%]{min-width:300px;margin-bottom:8px}.mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:600;background-color:#f1f3f4;background-color:var(--c100)}tr.mat-mdc-header-row[_ngcontent-%COMP%], tr.mat-mdc-row[_ngcontent-%COMP%]{height:40px}td.mat-mdc-cell[_ngcontent-%COMP%], td.mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:.8125rem}td.mat-mdc-cell[_ngcontent-%COMP%]{color:#202124;color:var(--row-default-text)}.mat-mdc-header-cell[_ngcontent-%COMP%]{color:#202124;color:var(--text-high-contrast)}td.mat-column-actions[_ngcontent-%COMP%]{text-align:right}/*# sourceMappingURL=slo_reports_settings.css.map */"]});
var hed=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],sZb=[{ordinal:1,display:"Mondays"},{ordinal:2,display:"Tuesdays"},{ordinal:3,display:"Wednesdays"},{ordinal:4,display:"Thursdays"},{ordinal:5,display:"Fridays"},{ordinal:6,display:"Saturdays"},{ordinal:7,display:"Sundays"}],ged=[].concat(p(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),
minutes:0,seconds:0,nanos:0}}});var $7=function(){this.activeSession=n(Es);this.location=n(cI);this.routeParams=n(bL);this.enableSloReportEmail=this.activeSession.isInternalSession()&&Yr(this.activeSession,"enableSloReportEmail");this.enableConfigurableAlerts=Yr(this.activeSession,"enableConfigurableAlerts");this.selectedTabIndex=0};$7.prototype.ngAfterViewInit=function(){this.selectedTabIndex=ked(this,this.routeParams.settingsTab)};
$7.prototype.tabChange=function(a){var b,c,d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id;d?this.location.setUrl(Fq.settingsTab.makeHref(d)):this.location.setUrl(Fq.settings.makeHref())};var ked=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return a<0?0:a};$7.\u0275fac=function(a){return new (a||$7)};
$7.\u0275cmp=B({type:$7,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&Wg(ZN,5,ff);if(a&2){var c;$g(c=ah())&&(b.tabs=c)}},standalone:!1,decls:9,vars:3,consts:[[1,"margined","heading-m"],["gmat-tabs","",3,"selectedIndexChange","selectedIndex"],["label","General"],["matTabContent",""],["label","Notifications","id","notifications"],["label","Configurable Alerts","id","configurable-alerts"],["label","SLO Reports","id","slo-reports"],[1,"padded"]],template:function(a,b){a&1&&(I(0,"p",0),Q(1,"Settings"),
J(),I(2,"mat-tab-group",1),M("selectedIndexChange",function(c){return b.tabChange(c)}),I(3,"mat-tab",2),C(4,IZb,2,0,"ng-template",3),J(),I(5,"mat-tab",4),C(6,JZb,2,0,"ng-template",3),J(),E(7,LZb,2,0,"mat-tab",5),E(8,NZb,2,0,"mat-tab",6),J());a&2&&(z(2),D("selectedIndex",b.selectedTabIndex),z(5),F(b.enableConfigurableAlerts?7:-1),z(),F(b.enableSloReportEmail?8:-1))},dependencies:[dO,SN,ZN,$N,T7,U7,Y7,R7],styles:["[_nghost-%COMP%]     mat-tab-body{height:calc(100vh - 150px)}mat-form-field[_ngcontent-%COMP%]{font-size:.9375rem}mat-slide-toggle[_ngcontent-%COMP%]{font-size:.875rem}div.settings-main-left[_ngcontent-%COMP%]{width:200px;min-width:200px}[_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-label.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled), [_nghost-%COMP%]     .gmat-tabs .mat-mdc-tab-list .mat-mdc-tab-link.cdk-focused.cdk-mouse-focused:not(.mat-mdc-tab-disabled){background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.bad[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});var led=function(){this.activatedRoute=n(sj);this.routeParams=n(bL);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=TJa(this.activatedRoute.snapshot.queryParamMap).mimeType};led.\u0275fac=function(a){return new (a||led)};
led.\u0275cmp=B({type:led,selectors:[["view-attachment-page"]],standalone:!1,decls:1,vars:3,consts:[[3,"issueId","attachmentId","mimeType"]],template:function(a,b){a&1&&K(0,"attachment-preview",0);a&2&&D("issueId",b.issueId)("attachmentId",b.attachmentId)("mimeType",b.mimeType)},dependencies:[TS],encapsulation:2});var a8=function(){Z.apply(this,arguments);this.cdr=n(NA,{self:!0});this.routeParams=n(bL);this.bLocation=n(cI);this.pageTitle=n(PY);this.userApi=n(ID);this.bookmarkGroupsApi=n(RC);this.paths=n(EN);this.appEvents=n(nD);this.activeSession=n(Es);this.isStarred=!1;this.userEmail=this.activeSession.getUserEmail();this.bookmarkGroup=null};Y(a8,Z);a8.\u0275dir=Z.\u0275dir;g=a8.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsAdmin=c.adminUsers.some(function(d){return d.emailAddress===a.userEmail});a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&
c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};g.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};
g.openEditBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};g.getUserEmail=function(){return this.userEmail};g.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};g.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return Fq.viewHotlist.makeHref(a.hotlistId);default:throw Error("Qf`"+a.resourceType);}};
g.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("Qf`"+a.resourceType);}};a8.\u0275fac=function(){var a;return function(b){return(a||(a=fe(a8)))(b||a8)}}();
a8.\u0275cmp=B({type:a8,selectors:[["view-bookmark-group-page"]],standalone:!1,features:[hh([NA]),kg],decls:5,vars:3,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-view"],[1,"bv2-view-bookmark-group-title"],[1,"bv2-view-bookmark-group-header"],[3,"starMessage","unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-view-bookmark-group-title-text"],["type","button","aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon",
"bv2-view-resource-edit-button",3,"click"],[1,"bv2-view-bookmark-group-description"],[1,"bv2-view-bookmark-group-hotlists"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"href"]],template:function(a,b){a&1&&(I(0,"h2",0),Q(1),J(),K(2,"div",1),I(3,"div",2),E(4,RZb,13,3,"div"),J());a&2&&(z(),R("View Bookmark Group ",b.bookmarkGroup==null?null:b.bookmarkGroup.name),z(2),ng("aria-busy",!b.bookmarkGroup),z(),F(b.bookmarkGroup?4:-1))},dependencies:[wS,YA,cB],encapsulation:2});var b8=function(){};
b8.\u0275fac=function(a){return new (a||b8)};b8.\u0275mod=Jf({type:b8});b8.\u0275inj=Tc({imports:[ZB,rY,cC]});var c8=function(){T6.apply(this,arguments);this.ngZone=n(ph);this.userApi=n(ID);this.hotlists=n(A1);this.hotkeys=n(nH);this.pageTitle=n(PY);this.userAccess=n(jE);this.routeParams=n(bL);this.mcPrefs=n(yX);this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlistId=this.routeParams.hotlistId;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1};Y(c8,T6);c8.\u0275dir=T6.\u0275dir;
c8.prototype.ngOnInit=function(){var a=this;T6.prototype.ngOnInit.call(this);this.subscriptions.add(oH(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(p(this.BASE_HOTKEYS),[{keys:[vp("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){med(a,1)}},{keys:[vp("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){med(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&ned(a)}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));this.userApi.getUserBookmark("HOTLIST",this.hotlistId).then(function(){a.isStarred=!0}).catch(function(){});this.loadUserAccess(this.hotlistId)};
c8.prototype.ngDoCheck=function(){var a;if(this.hotlistName!==((a=this.hotlist)==null?void 0:a.name)){var b;this.hotlistName=(b=this.hotlist)==null?void 0:b.name;this.pageTitle.setTitle(this.hotlistName)}};
c8.prototype.loadUserAccess=function(a){var b=this;kE(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});kE(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
c8.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;nX(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):ned(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var ned=function(a){a.hotlistLoading=!0;a.isInitializing=!1;a.hotlist=null;var b=a.hotlistApi.get(a.hotlistId);b.then(function(c){a.hotlist=c}).catch(function(c){a.errorHandler.errorHandler(null,c);a.hotlist=null}).finally(function(){a.hotlistLoading=!1;a.ngZone.run(function(){a.cdr.detectChanges()})});return b};
c8.prototype.doSearch=function(a){var b=this,c=f4c.map(Ur).filter(Tk),d="hotlistid:"+this.hotlistId,e=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,sortColumns:[],displayColumns:c,query:d},a.then(function(f){return{query:null,displayColumn:f.displayColumn,sortOrder:f.sortOrder}}));a=e.searchPreferences.then(function(f){f=Qj(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return c1c(b.issuePagination,f)});a.then(function(f){mcd(b,
f)}).catch(function(f){typeof f==="number"?a1(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Yi({searchResultsPage:a,displayColumns:e.displayColumns}).then(function(f){f=f.searchResultsPage;b.searchResults=f;b.page=f.params.page;b.sortPreferences=f.params.sortColumns||[];b.initColumns(e.displayColumns,oed(b)?ped:qed);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var oed=function(a){return a.sortPreferences.length===0||a.sortPreferences.length===1&&a.sortPreferences[0].fieldId.type==="POSITION"};c8.prototype.getCsvUrl=function(){var a=this.appSearchState.currentTrackerScope,b=this.displayColumns,c=this.showHotlists,d="action/hotlists/"+this.hotlistId+"/issues/csv",e=QUa(this.sortPreferences);(b=RUa(b))&&(b="position,"+b);return SUa(d,"trackerIds",a,"s",e,"c",b,"h",c)};
c8.prototype.repositionIssue=function(a,b,c){var d=this;c=c===void 0?!1:c;!this.repositioning&&this.searchResults&&(this.repositioning=!0,this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"view-hotlist",function(){d.searchResults&&(d.searchResults=d.searchResults.clone())}).then(function(e){d.hotlist=e;d.analytics.trackEvent(d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var med=function(a,b){if(a.searchResults&&!a.repositioning&&oed(a)){var c,d,e=(d=(c=a.resultsGrid)==null?void 0:c.focusedRowIndex)!=null?d:void 0;if(e!=null&&(c=e+b,d=a.searchResults.issues.length,c>=0&&c<d)){if(b===1){var f;(f=a.resultsGrid)==null||vvb(f)}else if(b===-1){var h;(h=a.resultsGrid)==null||wvb(h)}a.repositionIssue(e,c,!0)}}};g=c8.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=sGa(b.displayColumn?b.displayColumn.map(function(e){return e.type.toLowerCase()}):[],c.map(function(e){return e.toString()}));b.displayColumn=c}if(c=this.urlPreferences.getSortColumns())b.sortOrder=c.map(function(e){return{direction:e.direction,field:e.fieldId}});Mq(this.butterBar,"Saving changes to hotlist...");red(this,b).then(function(e){Mq(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');a1(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");a1(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};g.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
g.isEditable=function(){return this.hotlist!=null&&this.isAdmin};g.isDirectAdmin=function(){return this.hotlist?Bk(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?T6.prototype.setSort.call(this,a,b,!1):T6.prototype.setSort.call(this,a,b)};
var red=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;sed(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},sed=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
c8.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=kn(this.hotlistId),c=function(){sed(a,b)};this.isStarred?this.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c)};c8.prototype.openEditHotlist=function(){this.bLocation.setUrl(Fq.editHotlist.makeHref(this.hotlistId))};c8.prototype.addToMissionControl=function(a){a!=null&&(this.mcPrefs.addHotlist(a),this.bLocation.setUrl(this.paths.home()))};
c8.prototype.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasHotlist(this.hotlistId);return b&&a&&c};var qed=[I0,J0,K0,t5c],ped=[I0,s5c,J0,K0,t5c];c8.\u0275fac=function(){var a;return function(b){return(a||(a=fe(c8)))(b||c8)}}();
c8.\u0275cmp=B({type:c8,selectors:[["view-hotlist-page"]],standalone:!1,features:[hh([NA]),kg],decls:10,vars:12,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices","showHotlistButtons","currentHotlistId","isHotlistAdmin"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-hotlist-grid"],[1,"bv2-view-hotlist-title"],[1,"bv2-view-loading"],
["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[1,"bv2-grid-container"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this hotlist like trending issues, collaborators, and recent activity.",1,"medium",
"gmat-mdc-button","reverse-margin-left",3,"click"],[3,"starMessage","unStarMessage","starred"],[3,"starMessage","unStarMessage","starred","disabled"],[1,"bv2-view-hotlist-title-text"],["tabindex","-1",3,"bFocus"],[1,"bv2-view-hotlist-save-form"],[3,"starClicked","keydown.space","keydown.enter","starMessage","unStarMessage","starred"],["role","heading","aria-level","3"],[3,"matTooltip"],[1,"hotlist-archived"],[1,"button-container"],["type","button","aria-label","Hotlist settings","matTooltip","Hotlist settings",
1,"bv2-edit-button","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences have changed"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences",1,"medium",3,"click"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences",1,"medium",3,"click"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"b-grid-controls",1),M("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),J(),E(2,TZb,1,1),I(3,"div",2)(4,"b-pagination",3),M("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),J()()(),I(5,"div",4),E(6,c_b,9,7,"div",5),E(7,d_b,4,1,"div",6),E(8,e_b,2,2,"div",7),E(9,f_b,2,6,"div",8),J());if(a&2){var c;z();D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin);z();F((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);z(2);D("searchResults",b.searchResults);
z();ng("aria-busy",b.isLoading);z();F(b.isInitializing?-1:6);z();F(b.isLoading?7:-1);z();F(b.isLoading||b.hasResults()?-1:8);z();F(!b.isLoading&&b.hasResults()?9:-1)}},dependencies:[N0,B1,wS,G0,YA,cB,ON,xO,PA,Tx],encapsulation:2});var d8=function(){};d8.\u0275fac=function(a){return new (a||d8)};d8.\u0275mod=Jf({type:d8});d8.\u0275inj=Tc({imports:[W0,C1,rY,z1,cC,ZB,QN,yO,$B,Ly,MH,eY,rX]});var e8=function(){T6.apply(this,arguments);this.savedSearchApi=n(MD);this.hotkeys=n(nH);this.pageTitle=n(PY);this.userAccess=n(jE);this.routeParams=n(bL);this.mcPrefs=n(yX);this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearchId=this.routeParams.savedSearchId;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1};Y(e8,T6);e8.\u0275dir=T6.\u0275dir;g=e8.prototype;
g.ngOnInit=function(){var a=this;T6.prototype.ngOnInit.call(this);this.subscriptions.add(oH(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&String(b.savedSearchId)===a.savedSearchId&&(b.action==="delete"?(a.savedSearch=null,a.searchResults=null,a.appSearchState.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=
b.showHotlists}));this.subscriptions.add(j_c(this.appSearchState,function(b){a.savedSearch?a1(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.setUrl(b))}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;kE(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
g.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;nX(this.appSearchState,b);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:hcd(this)},a.then(function(d){return{query:d.query,sortOrder:d.sortOrder||null,displayColumn:d.displayColumn||null}}));var c=a.searchPreferences.then(function(d){if(!d.query)return Promise.reject(null);b.searchParams=d;nX(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Qj(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return c1c(b.issuePagination,d)});c.then(function(d){mcd(b,d)}).catch(function(d){typeof d==="number"?a1(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Yi({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
g.isEditable=function(){return!!this.savedSearch&&this.isAdmin};g.getCsvUrl=function(){return TUa(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
g.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;Mq(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){Mq(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;a1(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");a1(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};g.openEditSavedSearch=function(){this.bLocation.setUrl(this.paths.editSavedSearch(this.savedSearchId))};g.addToMissionControl=function(a){a!=null&&(zX(this.mcPrefs,D9a(a)),this.bLocation.setUrl(this.paths.home()))};
g.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasSavedSearch(this.savedSearchId);return b&&a&&c};e8.\u0275fac=function(){var a;return function(b){return(a||(a=fe(e8)))(b||e8)}}();
e8.\u0275cmp=B({type:e8,selectors:[["view-saved-search-page"]],standalone:!1,features:[hh([NA]),kg],decls:10,vars:8,consts:[[1,"kd-appbar","kd-buttonbar"],[1,"bv2-edit-controls",3,"init","onRefresh","onSave","onCreateHotlist","onLoadHotlist","onExportCsv","grid","hotlistChoices"],[1,"bv2-appbar-right"],[3,"pageChange","resultsPerPageChange","searchResults"],[1,"bv2-view","bv2-view-savedsearch-grid"],[1,"bv2-view-savedsearch-title"],[1,"bv2-view-savedsearch-title-text"],[1,"bv2-view-savedsearch-save-form"],
["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left"],["mat-flat-button","","type","button","matTooltip","Add a section on the home page to track and get insights for this Saved Search like trending issues, collaborators, and recent activity.",1,"medium","gmat-mdc-button","reverse-margin-left",3,"click"],["role",
"heading","aria-level","3"],[3,"matTooltip"],["type","button","aria-label","Saved search settings","matTooltip","Saved search settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],["matTooltip","Display preferences or search query have changed"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium"],["type","button","mat-stroked-button","","matTooltip","Discard changes to display preferences and search query",1,"medium",
3,"click"],[1,"bv2-view-savedsearch-exit-link"],["matTooltip","Show this search with your default display preferences",3,"click","href"],["type","button","mat-flat-button","","matTooltip","Save changes to display preferences and search query",1,"medium",3,"click"],[1,"bv2-view-loading"],[1,"bv2-grid-container"],["tabindex","-1",1,"bv2-view-loading",3,"bFocus"],[3,"init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage","searchResults","focusedRowIndex","columns",
"enableColumnSaving","sort","enableSidebar"]],template:function(a,b){a&1&&(I(0,"div",0)(1,"b-grid-controls",1),M("init",function(d){return b.gridControls=d})("onRefresh",function(){return b.refreshResults()})("onSave",function(d){return b.sendBulkEditRequest(d.bulkEditOps)})("onCreateHotlist",function(d){return b.createHotlist(d)})("onLoadHotlist",function(d){return b.loadHotlist(d)})("onExportCsv",function(){return b.exportCsv()}),J(),E(2,h_b,1,1),I(3,"div",2)(4,"b-pagination",3),M("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),J()()(),I(5,"div",4)(6,"div",5),E(7,n_b,3,1,"div",6),E(8,p_b,7,2,"div",7),J(),E(9,v_b,3,1,"div"),J());if(a&2){var c;z();D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices);z();F((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);z(2);D("searchResults",b.searchResults);z();ng("aria-busy",b.isLoading);z(2);F(b.isInitializing?-1:7);z();F(b.hasParamChanges()?8:-1);z();
F(b.savedSearch?9:-1)}},dependencies:[N0,B1,G0,YA,cB,ON,xO,PA,Tx],encapsulation:2});var f8=function(){};f8.\u0275fac=function(a){return new (a||f8)};f8.\u0275mod=Jf({type:f8});f8.\u0275inj=Tc({imports:[W0,C1,z1,ZB,cC,QN,yO,$B,Ly,MH,eY,rX]});var ted={path:Fq.viewIssue.routeDeclarationPath,component:X5,children:[{path:"",pathMatch:"full",component:v6},{path:"dependencies",component:ZX},{path:"dupes",component:Z5},{path:"blocking",component:q5},{path:"resources",component:ecd}].concat(p(x_b("enableCodeMentionsUi",{path:"todos",component:R6})))},ued=[{path:"",component:o4,canActivateGuards:[x4]},{title:Xr("Issues"),path:Fq.listIssues.routeDeclarationPath,component:U6},{title:Xr("New issue"),path:Fq.createIssue.routeDeclarationPath,component:f5,
canActivateGuards:[Q4]}].concat(p(w_b(function(){var a;if(a=wk("enableChromeWizard")){var b;a=((b=em().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:Xr("New issue"),path:Fq.createIssueChromeWizard.routeDeclarationPath,component:P4})),[ted,{title:Xr("Browse All Components"),path:Fq.listComponentsGlobal.routeDeclarationPath,component:Q3},{title:Xr("Browse Components"),path:Fq.listComponents.routeDeclarationPath,component:R4},{title:Xr("Create component"),path:Fq.createComponent.routeDeclarationPath,
component:T4},{title:Xr("Component"),path:Fq.editComponent.routeDeclarationPath,component:n7},{path:"components/:componentId/manage",redirectTo:Fq.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:Fq.editComponent.routeDeclarationPath}],p(x_b("enableTeamScope",{title:Xr("Triage"),path:Fq.viewTriage.routeDeclarationPath,component:pY})),p(x_b("enableTeamScope",{title:Xr("Triage"),path:Fq.viewTriageDashboard.routeDeclarationPath,component:oX})),p(x_b("enableTeamScope",{title:Xr("Issue Themes"),
path:Fq.viewIssueThemes.routeDeclarationPath,component:gX})),p(x_b("enableTeamScope",{title:Xr("Triage"),path:Fq.triageSettings.routeDeclarationPath,component:vY})),[{title:Xr("Team"),path:Fq.editTeam.routeDeclarationPath,component:o7},{path:"teams/:teamId",redirectTo:Fq.editTeam.routeDeclarationPath},{title:Xr("Create Bookmark Group"),path:Fq.createBookmarkGroup.routeDeclarationPath,component:S4},{title:Xr("Bookmark Group"),path:Fq.viewBookmarkGroup.routeDeclarationPath,component:a8},{title:Xr("Bookmark Group"),
path:Fq.editBookmarkGroup.routeDeclarationPath,component:l5},{title:Xr("Create Hotlist"),path:Fq.createHotlist.routeDeclarationPath,component:U4},{title:Xr("Hotlist"),path:Fq.viewHotlist.routeDeclarationPath,component:c8},{title:Xr("Edit Hotlist"),path:Fq.editHotlist.routeDeclarationPath,component:S0},{title:Xr("Create SLO"),path:Fq.createSlo.routeDeclarationPath,component:h5},{title:Xr("SLO"),path:Fq.viewSlo.routeDeclarationPath,component:p5},{title:Xr("SLO"),path:Fq.editSlo.routeDeclarationPath,
component:p5},{title:Xr("Saved search"),path:Fq.editSavedSearch.routeDeclarationPath,component:m5},{title:Xr("All of my hotlists"),path:Fq.listHotlists.routeDeclarationPath,component:S6},{title:Xr("Manage SLOs"),path:Fq.listSlos.routeDeclarationPath,component:W6},{title:Xr("Saved search"),path:Fq.viewSavedSearch.routeDeclarationPath,component:e8},{title:Xr("Dashboard"),path:Fq.viewDashboard.routeDeclarationPath,component:j5},{title:Xr("Settings"),path:Fq.settingsTab.routeDeclarationPath,component:$7},
{title:Xr("Settings"),path:Fq.settings.routeDeclarationPath,component:$7},{title:Xr("View Attachment"),path:Fq.viewAttachment.routeDeclarationPath,component:led,hideAppChrome:!0},{title:Xr("Home"),path:Fq.home.routeDeclarationPath,component:L7,canActivateGuards:[v4,u4]},{path:"**",component:o4,canActivateGuards:[x4]}]);var g8=function(){};g8.\u0275fac=function(a){return new (a||g8)};g8.\u0275mod=Jf({type:g8});g8.\u0275inj=Tc({imports:[ZB,BQ]});var h8=function(){};h8.\u0275fac=function(a){return new (a||h8)};h8.\u0275mod=Jf({type:h8});h8.\u0275inj=Tc({imports:[ZB,WJ,TQ,eM]});var i8=function(){};i8.\u0275fac=function(a){return new (a||i8)};i8.\u0275mod=Jf({type:i8});i8.\u0275inj=Tc({imports:[w6,ZB,QN,$B,BQ,kR,g8,h8,bC]});var j8=function(){};j8.\u0275fac=function(a){return new (a||j8)};j8.\u0275mod=Jf({type:j8});j8.\u0275inj=Tc({imports:[ZB,UQ,$B]});var k8=function(){};k8.\u0275fac=function(a){return new (a||k8)};k8.\u0275mod=Jf({type:k8});k8.\u0275inj=Tc({imports:[ZB,BQ,WJ,TQ,j8]});var l8=function(){};l8.\u0275fac=function(a){return new (a||l8)};l8.\u0275mod=Jf({type:l8});l8.\u0275inj=Tc({imports:[ZB,qH,$B,$K]});var m8=function(){};m8.\u0275fac=function(a){return new (a||m8)};m8.\u0275mod=Jf({type:m8});m8.\u0275inj=Tc({imports:[SQ,ZB,N5,qH,l1,$B,RL,LH,cC,Q1,y1,z6,l8]});var n8=function(){};n8.\u0275fac=function(a){return new (a||n8)};n8.\u0275mod=Jf({type:n8});n8.\u0275inj=Tc({imports:[ZB,qH,$B,cC]});var o8=function(){};o8.\u0275fac=function(a){return new (a||o8)};o8.\u0275mod=Jf({type:o8});o8.\u0275inj=Tc({imports:[fW,ZB,cC,GM,fH,$B,QN,HQ,y1,RQ]});var p8=function(){};p8.\u0275fac=function(a){return new (a||p8)};p8.\u0275mod=Jf({type:p8});p8.\u0275inj=Tc({imports:[ZB,fR,WJ,JM]});var q8=function(){};q8.\u0275fac=function(a){return new (a||q8)};q8.\u0275mod=Jf({type:q8});q8.\u0275inj=Tc({imports:[k8,fR,ZB,eV,BW,qH,WJ,aR,KW,j8,$B,RL,cC,rY,JM,p8,n8,m8,o8]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=Jf({type:r8});r8.\u0275inj=Tc({imports:[ZB,$B]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=Jf({type:s8});s8.\u0275inj=Tc({imports:[ZB,dM,$B,cC]});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=Jf({type:t8});t8.\u0275inj=Tc({imports:[y2,SJ,sA,ZB,kR,bx,BQ,HQ,Ly,i8,q8,t1,$B,$K,mY,fO,cC,My,W5,y1,XH,r8,s8]});var u8=function(){};u8.\u0275fac=function(a){return new (a||u8)};u8.\u0275mod=Jf({type:u8});u8.\u0275inj=Tc({imports:[ZB,S3]});var v8=function(){};v8.\u0275fac=function(a){return new (a||v8)};v8.\u0275mod=Jf({type:v8});v8.\u0275inj=Tc({imports:[ZB,sA,SJ,Ly,My,$B,fO,XH,SQ,t8,P6,aY,r5,$5,u8,Q6]});var ved=ued.map(function(a){var b=a.redirectTo?void 0:[r4,t4].concat(p(a.canActivateGuards||[])),c;return{title:a.title,path:a.path,redirectTo:a.redirectTo,component:a.component,canDeactivate:[lS],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});ved.push({path:"**",canActivate:["dontActivate"],component:o4,isRootRoute:!0,hideAppChrome:!1});
var wed=em().appBaseHref,xed,w8={initialNavigation:"disabled"},yed=(w8==null?0:w8.errorHandler)?{provide:Wic,useValue:w8.errorHandler}:[],zed={provide:Uic,useValue:w8?w8:{}},Aed=(w8==null?0:w8.useHash)?{provide:aw,useClass:cw}:{provide:aw,useClass:bw},Bed={provide:zjc,useFactory:function(){var a=n(Tbc),b=n(ph),c=n(Uic),d=n(yA),e=n(Qz);c.scrollOffset&&Vbc(a,c.scrollOffset);return new IA(e,d,a,b,c)}},Ced=(w8==null?0:w8.preloadingStrategy)?Hj(0,[{provide:Fjc,useExisting:HA},{provide:vjc,useExisting:w8.preloadingStrategy}]).\u0275providers:
[],Ded;
(w8==null?0:w8.initialNavigation)?Ded=[w8.initialNavigation==="disabled"?Hj(3,[{provide:X$b,multi:!0,useFactory:function(){var a=n(DA);return function(){mjc(a)}}},{provide:Ejc,useValue:2}]).\u0275providers:[],w8.initialNavigation==="enabledBlocking"?Hj(2,[{provide:Ejc,useValue:0},{provide:X$b,multi:!0,deps:[Ze],useFactory:function(a){var b=a.get(Pbc,Promise.resolve());return function(){return b.then(function(){return new Promise(function(c){var d=a.get(DA),e=a.get(Djc);sta(d,function(){c(!0)});a.get(yA).afterPreactivation=
function(){c(!0);return e.closed?Ce(void 0):e};d.initialNavigation()})})}}}]).\u0275providers:[]]:Ded=[];var Eed=Ded,Fed=(w8==null?0:w8.bindToComponentInputs)?Hj(8,[Xz,{provide:vhc,useExisting:Xz}]).\u0275providers:[],Ged;if(w8==null?0:w8.enableViewTransitions){var Hed=[{provide:Vic,useValue:rta},{provide:pta,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];Ged=Hj(9,Hed).\u0275providers}else Ged=[];
xed={ngModule:JA,providers:[Gjc,[],{provide:nta,multi:!0,useValue:[]},[],yed,zed,Aed,Bed,Ced,Eed,Fed,Ged,[{provide:Hjc,useFactory:function(){var a=n(Ze);return function(b){var c=a.get(vh);if(b===c.components[0]){b=a.get(DA);var d=a.get(Djc);a.get(Ejc)===1&&b.initialNavigation();var e;(e=a.get(Fjc,null,{optional:!0}))==null||wjc(e);var f;(f=a.get(zjc,null,{optional:!0}))==null||f.init();c=c.componentTypes[0];b.routerState.root.component=c;b.navigationTransitions.rootComponentType=c;d.closed||(d.next(),
d.complete(),d.unsubscribe())}}}},{provide:eac,multi:!0,useExisting:Hjc}]]};var x8=function(){var a=n(DA),b=n(aL);a.config=ved.map(Zra);a.navigated=!1;a.initialNavigation();dFc(b)};x8.\u0275fac=function(a){return new (a||x8)};x8.\u0275mod=Jf({type:x8});x8.\u0275inj=Tc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:zA,useClass:q4},{provide:Sbc,useValue:wed},t4,r4],imports:[xed,p4,v8,JA]});var Ied=new yd("Environment");var Jed=new yd("Worktracker API Key");var Ked=new yd("G3C API Keys");var y8=function(){};y8.\u0275fac=function(a){return new (a||y8)};y8.\u0275mod=Jf({type:y8});y8.\u0275inj=Tc({providers:[{provide:Ied,useFactory:y_b},{provide:Ked,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:Jed,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var yt=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};yt.prototype.getId=function(){return this.lookupId_};yt.prototype.setDisplayName=function(a){this.displayName_=a;return this};yt.prototype.getDisplayName=function(){return this.displayName_};var h4b=function(a,b){a.forceDisplayNameOverride_=b;return a};yt.prototype.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
yt.prototype.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var z_b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(z_b,V);z_b.prototype.setEnabled=function(a,b){return Pc(this,1,Ob,b,a,Qb,1)};z_b.prototype.setDisabled=function(a,b){Pc(this,2,Ob,b,a,Qb,1)};var z8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(z8,V);g=z8.prototype;g.getEnableClearcut=function(){return kl(this,1)};g.setEnableClearcut=function(a){return Ol(this,1,a)};g.getClientId=function(){return pl(this,2)};g.setClientId=function(a){return Sl(this,2,a)};g.getSocialApplication=function(){return pl(this,3)};g.getSocialApplicationOrUndefined=function(){return du(this,3)};g.getComponentFlow=function(){return pl(this,4)};
g.setComponentFlow=function(a){return Sl(this,4,a)};g.getInterfaceType=function(){return pl(this,5)};g.setInterfaceType=function(a){return Sl(this,5,a)};var A8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A8,V);A8.prototype.getEnableAutocompleteLegalese=function(){return kl(this,11)};var B8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B8,V);B8.prototype.getApplication=function(){return pl(this,1)};B8.prototype.setApplication=function(a){return Sl(this,1,a)};B8.prototype.getApplicationOrUndefined=function(){return du(this,1)};B8.prototype.getIsEnabled=function(){return kl(this,2)};var Led=[0,Av,-14];var Med=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Med,V);g=Med.prototype;g.getClearcut=function(){return X(this,z8,1)};g.setClearcut=function(a){W(this,z8,1,a)};g.hasClearcut=function(){return nk(this,z8,1)};g.getExperiments=function(){return X(this,B8,2)};g.setExperiments=function(a){return W(this,B8,2,a)};g.hasExperiments=function(){return nk(this,B8,2)};g.getEnableAutocompleteLegalese=function(){return kl(this,13,!0)};var Ned=bna(Med);var Oed;var Ped=function(){this.actionListeners=new Map};Ped.prototype.subscribe=function(a,b){this.actionListeners.has(a)?this.actionListeners.get(a).push(b):this.actionListeners.set(a,[b])};Ped.prototype.unsubscribe=function(a,b){if(this.actionListeners.has(a)){var c=this.actionListeners.get(a).filter(function(d){return d!==b});c.length?this.actionListeners.set(a,c):this.actionListeners.delete(a)}};
Ped.prototype.notify=function(a){var b=ud.apply(1,arguments);if(this.actionListeners.has(a)){var c=this.actionListeners.get(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{d.apply(null,b)}catch(e){}}}};var Qed=function(){this.actionEventDispatcher=new Ped};var Red=function(){var a=pc(Oed||(Oed=Ned("[[true,49,740,4],[7,true],null,null,null,null,null,null,null,null,null,null,false,false]")));this.injectorService=new Qed;a.hasClearcut()||a.setClearcut(new z8);a.hasExperiments()||a.setExperiments(new B8);this.internal=a};var Sed=function(a,b,c,d,e,f){this.coreTypeOrder=a;this.decoratorTypeOrder=b;this.getCompatibleTypes=c;this.container=d;this.extractor=e;this.configurationKey=f===void 0?"\ud83c\udf68":f};
Sed.prototype.create=function(a){for(var b=this,c=l(this.coreTypeOrder.filter(function(h){var k=b.configurationKey;return b.container.configurations.hasCoreType(h,k===void 0?"\ud83c\udf68":k)})),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.container.getCoreFactory(d),f=void 0;if((f=e)==null?0:f.shouldCreate(a))return c=void 0,this.extractor(this.decorate((c=e)==null?void 0:c.create(a),d,a))}throw Error("Rf");};
Sed.prototype.decorate=function(a,b,c){var d=this,e,f=(e=this.getCompatibleTypes(b))!=null?e:new Set;return this.decoratorTypeOrder.filter(function(h){var k=d.configurationKey;return d.container.configurations.hasDecoratorType(h,k===void 0?"\ud83c\udf68":k)&&f.has(h)}).map(function(h){return d.container.getDecoratorFactory(h)}).filter(function(h){return h==null?void 0:h.shouldCreate(c)}).reduce(function(h,k){return k.create(c,h)},a)};var C8=function(){this.core=new Set;this.decorators=new Set};C8.prototype.addCoreType=function(a){this.core.add(a)};C8.prototype.addDecoratorType=function(a){this.decorators.add(a)};C8.prototype.hasCoreType=function(a){return this.core.has(a)};C8.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var Ted=function(){this.configurations=new Map};g=Ted.prototype;g.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new C8);this.configurations.get(b).addCoreType(a)};
g.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new C8);this.configurations.get(b).addDecoratorType(a)};g.hasCoreType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasCoreType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasCoreType(a)))};g.hasDecoratorType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasDecoratorType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasDecoratorType(a)))};
g.clear=function(){this.configurations.clear()};var Ued=function(){this.core=new Map;this.decorator=new Map};g=Ued.prototype;g.addCoreFactory=function(a,b){this.core.has(a)||this.core.set(a,b)};g.addDecoratorFactory=function(a,b){this.decorator.has(a)||this.decorator.set(a,b)};g.getCoreFactory=function(a){return this.core.get(a)};g.getDecoratorFactory=function(a){return this.decorator.get(a)};g.clear=function(){this.core.clear();this.decorator.clear()};
var D8=function(a){var b=this;var c=a.coreTypeOrder;var d=a.decoratorTypeOrder;var e=a.extractor;a=a.getCompatibleTypes;this.configurations=new Ted;this.factories=new Ued;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;Ved.set(this,function(){b.configurations.clear();b.factories.clear()})};
D8.prototype.addCoreFactory=function(a){var b=a.type;var c=a.factory;this.configurations.addCoreType(b,a.configurationKey===void 0?"\ud83c\udf68":a.configurationKey);this.factories.addCoreFactory(b,c)};D8.prototype.addDecoratorFactory=function(a){var b=a.type;var c=a.factory;this.configurations.addDecoratorType(b,a.configurationKey===void 0?"\ud83c\udf68":a.configurationKey);this.factories.addDecoratorFactory(b,c)};D8.prototype.getCoreFactory=function(a){return this.factories.getCoreFactory(a)};
D8.prototype.getDecoratorFactory=function(a){return this.factories.getDecoratorFactory(a)};var e4b=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new Sed(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},Ved=new Map;var Ks=new D8({coreTypeOrder:[0,1,2],decoratorTypeOrder:[0,1,2],extractor:function(a){return a.chip},getCompatibleTypes:function(a){var b=new Set([1]);a===2&&(b.add(0),b.add(2));a===0&&b.add(0);return b}});var J_b=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=Zs;var h='<div class="'+$s("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+$s(NI(d))+"px; height: "+$s(NI(d))+'px"><div peoplekit-id="'+$s("YLEF4c")+'" class="'+$s("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+$s(NI(d))+"px; height: "+$s(NI(d))+'px">';b=b.length===1?Zs('<div class="'+$s("peoplekitComponentsAvatarImplContainer")+'">'+E8(b[0],c,d,e,f)+"</div>"):b.length===2?Zs('<div class="'+
$s("peoplekitComponentsAvatarImplContainer")+'"><div class="'+$s("peoplekitComponentsAvatarImplColumn")+'">'+E8(b[0],c,d,e,f)+"</div>"+F8()+'<div class="'+$s("peoplekitComponentsAvatarImplColumn")+'">'+E8(b[1],c,d,e,f)+"</div></div>"):b.length===3?Zs('<div class="'+$s("peoplekitComponentsAvatarImplContainer")+'"><div class="'+$s("peoplekitComponentsAvatarImplColumn")+'">'+E8(b[0],c,d,e,f)+"</div>"+F8()+'<div class="'+$s("peoplekitComponentsAvatarImplColumn")+'"><div class="'+$s("peoplekitComponentsAvatarImplRow")+
'">'+E8(b[1],c,Math.round(d*.5),e,f)+"</div>"+F8()+'<div class="'+$s("peoplekitComponentsAvatarImplRow")+'">'+E8(b[2],c,Math.round(d*.5),e,f)+"</div></div></div>"):Zs('<div class="'+$s("peoplekitComponentsAvatarImplContainer")+'"><div class="'+$s("peoplekitComponentsAvatarImplColumn")+'"><div class="'+$s("peoplekitComponentsAvatarImplRow")+'">'+E8(b[0],c,Math.round(d*.5),e,f)+"</div>"+F8()+'<div class="'+$s("peoplekitComponentsAvatarImplRow")+'">'+E8(b[2],c,Math.round(d*.5),e,f)+"</div></div>"+F8()+
'<div class="'+$s("peoplekitComponentsAvatarImplColumn")+'"><div class="'+$s("peoplekitComponentsAvatarImplRow")+'">'+E8(b[1],c,Math.round(d*.5),e,f)+"</div>"+F8()+'<div class="'+$s("peoplekitComponentsAvatarImplRow")+'">'+E8(b[3],c,Math.round(d*.5),e,f)+"</div></div></div>");b=Zs(b);return a(h+b+'</div><div peoplekit-id="'+$s("Btuy5e")+'" class="'+$s("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Zs('<img class="'+$s("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+$s("m6fZne")+
'" draggable="false" alt="">')+"</div></div>")},E8=function(a,b,c,d,e){var f='<div peoplekit-id="'+$s("IHgMKc")+'" class="'+$s("peoplekitComponentsAvatarImplImageRoot")+'">',h=wt(ACc(a,c,c,e));h=cAc(h);a=wt(ACc(a,d,d,e));a=cAc(a);b=wt(ACc(b,c,c,e));b=cAc(b);h='<img peoplekit-id="'+$s("HiaYvf")+'" class="'+$s("peoplekitComponentsAvatarImplImage")+'" style="width: '+$s(NI(c))+"px; height: "+$s(NI(c))+'px;" data-preload-src="'+$s(a)+'" data-src="'+$s(h)+'" data-backup-src="'+$s(b)+'" draggable="false" alt="">';
c=Zs('<svg xmlns="http://www.w3.org/2000/svg" height="'+$s(c)+'px" viewBox="0 0 24 24" width="'+$s(c)+'px" class="'+$s("peoplekitComponentsAvatarImplDefaultAvatarImage")+'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2l-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"/></svg>');return Zs(f+(h+c+"</div>"))},
F8=function(){return Zs('<div class="'+$s("peoplekitComponentsAvatarImplDivider")+'"></div>')};var Wed=new Map([[0,"light_theme"],[1,"dark_theme"]]);var E_b=!ct&&!vba();var Xed=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),Yed=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),L_b=function(a,b){this.appearance=b;this.root=a;Zed(this)};g=L_b.prototype;
g.setBadge=function(a){var b=Fs(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=Xed.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(Wed.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=Yed.get(a.badgeType)||"";d=Fs(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};g.getAllIds=function(){return[]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};
g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};
var Zed=function(a){a=l(B_b(a.root,"IHgMKc"));for(var b=a.next(),c={};!b.done;c={img$jscomp$11:void 0,src$jscomp$63:void 0,imageRoot:void 0,backupSrc:void 0},b=a.next())c.imageRoot=b.value,c.img$jscomp$11=Fs(c.imageRoot,"HiaYvf"),b=G_b(c.img$jscomp$11,"preloadSrc"),c.src$jscomp$63=G_b(c.img$jscomp$11,"src"),c.backupSrc=G_b(c.img$jscomp$11,"backupSrc"),H_b(c.src$jscomp$63)?c.img$jscomp$11.src=c.src$jscomp$63:H_b(b)?(c.img$jscomp$11.src=b,Yq(function(d){return function(){d.img$jscomp$11.src=d.src$jscomp$63}}(c),
0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$11.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$11.onerror=function(d){return function(){d.img$jscomp$11.getAttribute("src")===d.backupSrc?(d.img$jscomp$11.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$11.src=d.backupSrc}}(c),c.img$jscomp$11.src=c.src$jscomp$63)};var I_b=function(){this.style=this.theme=this.density=0};g=I_b.prototype;g.getDensity=function(){return this.density};g.setDensity=function(a){this.density=a};g.getTheme=function(){return this.theme};g.setTheme=function(a){this.theme=a};g.getStyle=function(){return this.style};g.setStyle=function(a){this.style=a};var T_b=Vs.getInstance();var V_b=function(a){a=a.memberCount;return(new ZPa("{MEMBER_COUNT_1,plural,=0{No members}=1{1 member}other{{MEMBER_COUNT_2} members}}")).format_({MEMBER_COUNT_1:a,MEMBER_COUNT_2:""+a},!0)};var $_b=Vs.getInstance();var b0b=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=Fs(this.root,"bxvLg");this.eventHandler=Js(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};g=b0b.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};
g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};
g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};g.edit=function(){};g.unedit=function(){};g.dispose=function(){this.eventHandler.removeAll()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};
g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var $ed=function(a,b,c,d,e,f,h,k,q){d=d?$s(d):e?$s("isWarning"):"";return Zs('<div role="option" class="'+$s("peoplekitComponentsChipChip")+" "+d+" "+(f?$s("isDeletionDisabled"):"")+'" id="'+$s(a)+'" peoplekit-id="'+$s("XPtOyb")+'" data-hovercard-id="'+$s(c)+'" data-name="'+$s(b)+'"'+(f?"":' aria-describedby="'+$s(a)+'-db"')+'><div class="'+$s("peoplekitComponentsChipChipRow")+" "+$s("peoplekitComponentsChipChipContainer")+'"><div class="'+$s("peoplekitComponentsChipLeft")+'">'+vt(h)+'</div><div class="'+
$s("peoplekitComponentsChipCenter")+'">'+vt(k)+'</div><div class="'+$s("peoplekitComponentsChipRight")+'">'+vt(q)+'</div></div><div peoplekit-id="'+$s("QL45qe")+'"></div></div>')},afd=function(a){return Zs('<div class="'+$s("peoplekitComponentsChipAvatar")+'"><div class="'+$s("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+$s("d6MZcd")+'"></div>'+(KI(a)?vt(a):"")+"</div>")},bfd=function(a){var b=Zs,c=Zs;a='<div class="'+$s("peoplekitComponentsChipAvatarExclamationOverlay")+" "+(a?$s(a):
"")+'"><div class="'+$s("peoplekitComponentsChipExclamationIcon")+" "+(a?$s(a):"")+'">';var d=Zs('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return b(afd(c(a+d+"</div></div>")))},cfd=function(a){return Zs('<div class="'+$s("peoplekitComponentsChipLabelContainer")+'"><div class="'+$s("peoplekitComponentsChipLabel")+" "+$s("peoplekitComponentsChipLabelRow")+'"><div class="'+$s("peoplekitComponentsChipDisplayLabel")+'" translate="no">'+
vt(LI(a))+'</div><div class="'+$s("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+$s("hyPgpe")+'" translate="no"></div></div></div>')},dfd=function(a){a='<div id="'+$s(a)+'-db" peoplekit-id="'+$s("bxvLg")+'" class="'+$s("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+$s("Press delete to remove this chip")+'">';var b=Zs('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+($s("peoplekitComponentsChipDeleteIcon")+'"><path d="M0 0h24v24H0z" fill="none"></path><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></svg>'));
return Zs(a+b+"</div>")};var a0b=function(a){var b=a.id,c=a.label,d=a.stateClass;return Zs($ed(b,a.name,a.hovercardId,d,a.isWarning,a.isDeletionDisabled,Zs(""+(d?bfd(d):afd())),Zs(""+cfd(c)),Zs(""+dfd(b))))};var f0b=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=Fs(this.root,"bxvLg");this.eventHandler=Js(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};g=f0b.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};g.toggleSelection=function(){};
g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};
g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};g.edit=function(){};g.unedit=function(){};g.dispose=function(){this.eventHandler.removeAll()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(){};g.onKeyDown=function(){};
g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var e0b=function(a){var b=a.id,c=a.label,d=a.avatarSize;return Zs($ed(b,a.name,a.hovercardId,"",!1,a.isDeletionDisabled,Zs('<div class="'+$s("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+$s("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+$s(NI(d))+"px; height: "+$s(NI(d))+'px;"></div>'),Zs(""+(c?cfd(c):'<div class="'+$s("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+$s("peoplekitComponentsChipPlaceholderShimmer")+'"></div>')),Zs(""+dfd(b))))};var G8=function(a){this.delegate=a};g=G8.prototype;g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.isActive=function(){return this.delegate.isActive()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.disable=function(){this.delegate.disable()};g.enable=function(){this.delegate.enable()};g.isDisabled=function(){return this.delegate.isDisabled()};
g.drag=function(){this.delegate.drag()};g.undrag=function(){this.delegate.undrag()};g.edit=function(){this.delegate.edit()};g.unedit=function(){this.delegate.unedit()};g.dispose=function(){this.delegate.dispose()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};g.setDisambiguationLabel=function(a){this.delegate.setDisambiguationLabel(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.getAllIds=function(){return this.delegate.getAllIds()};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};var efd=Object.freeze(new Ls(NaN,NaN)),ffd=Object.freeze(new RI(NaN,NaN,NaN,NaN)),Os=function(a,b){this.root=a;this.options=b;this.lastPosition=efd;this.lastBounds=ffd;this.anchorUpdateTimer=new tF(15);this.eventHandler=Js(this);this.attach()};Os.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return gfd(a)})};Os.prototype.isShown=function(){return this.root.style.display!="none"};Os.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
Os.prototype.show=function(a){this.anchor=a;this.lastPosition=efd;this.lastBounds=ffd;Lr(this.root,!0);gfd(this);this.anchorUpdateTimer.start()};
var gfd=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(UI(a.anchor)))){b=a.lastBounds;var c=i0b(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}b&&(c=a.anchor,b=i0b(c),b=(c=j0b(c))?b.intersection(k0b(c)):!1)}if(b){c=a.anchor;b=a.root;var d=a.options,e=d.anchorCorner||9,f=d.popupCorner||8;d=d.moveAboveAnchorIfOffscreen===void 0?!0:d.moveAboveAnchorIfOffscreen;Ns(b,"","");b.style.height=TI("",!0);var h=p0b(c,e,b,f,d);c=p0b(c,e^1,b,f^1,d);h.height>=
c.height||!d?s0b(b,h):s0b(b,c);a.lastPosition=UI(a.anchor);a.lastBounds=i0b(a.root)}};Os.prototype.hide=function(){this.root.style.cssText="";Lr(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=efd;this.lastBounds=ffd};var v0b=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=Js(this)};v0b.prototype.showTooltip=function(){hfd(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);H8(this)}};v0b.prototype.hideTooltip=function(){H8(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);hfd(this)}else H8(this)};v0b.prototype.isDisplayed=function(){return this.displayed};
v0b.prototype.getAnchorElement=function(){return this.anchor};
var ifd=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},mfd=function(a,b){if(a.anchor)throw Error("Sf");a.anchor=b;jfd(a);kfd(a);lfd(a)},nfd=function(a){a.eventHandler.removeAll();a.anchor&&(a.hideTooltip(),a.hideCallback=void 0,a.showCallback=void 0,a.hideTimeout=void 0,a.showTimeout=void 0,a.displayed=!1,a.anchor=void 0)},ofd=function(a){hfd(a);H8(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},pfd=function(a){hfd(a);H8(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},jfd=function(a){if(!a.anchor)throw Error("Tf");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():ofd(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){ofd(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||ofd(a)});a.eventHandler.listen(a.anchor,"touchend",function(){H8(a)});a.eventHandler.listen(a.anchor,"touchcancel",function(){H8(a)});a.eventHandler.listen(a.anchor,
"mouseout",function(){pfd(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},kfd=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){ofd(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){pfd(a)});a.eventHandler.listen(a.tooltip,"focusout",function(b){b=b.relatedTarget;var c,d=!((c=a.anchor)==null||!c.contains(b));a.tooltip.contains(b)||d||a.hideTooltip()})},lfd=function(a){a.eventHandler.listen(window,"touchmove",function(){pfd(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&pfd(a)});a.eventHandler.listen(window,"blur",function(b){b.target===window&&a.hideTooltip()});a.eventHandler.listen(window,"keydown",function(b){b.key==="Escape"&&a.hideTooltip()})},H8=function(a){clearTimeout(a.showTimeout);a.showTimeout=void 0},hfd=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var w0b=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=t0b(this.tooltip,{anchorCorner:3,popupCorner:2})},t1b=function(a,b){mfd(a.tooltipEventTracker,b);ifd(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};g=w0b.prototype;g.showTooltip=function(){this.tooltipEventTracker.showTooltip()};g.hideTooltip=function(){this.tooltipEventTracker.hideTooltip()};g.getRoot=function(){return this.tooltip};
g.isDisplayed=function(){return this.tooltipEventTracker.isDisplayed()};g.showTooltipCallback=function(){this.popupService.show(this.tooltipEventTracker.getAnchorElement())};g.hideTooltipCallback=function(){this.popupService.hide()};var u0b=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return Zs('<div id="'+$s(a.id)+'" peoplekit-id="'+$s("suEOdc")+'" class="'+$s("peoplekitComponentsTooltipImplTooltip")+(d?" "+$s(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+$s(c)+'"':"")+(KI(e)?lAc(JI(e,Wzc)?e.getContent():uAc(e)):"")+">"+vt(b)+"</div>")};var Ps=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(E_b&&d.dataset?(/-[a-z]/.test("hovercardId")?0:E_b&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+F_b("hovercardId")):d.getAttribute("data-"+F_b("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+F_b("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=x0b(a.getRoot(),d,{label:b,ariaLabel:c});t1b(this.tooltip,a.getRoot())};Y(Ps,G8);
Ps.prototype.dispose=function(){nfd(this.tooltip.tooltipEventTracker);G8.prototype.dispose.call(this)};Ps.prototype.spotlight=function(){G8.prototype.spotlight.call(this);this.tooltip.showTooltip()};Ps.prototype.unspotlight=function(){G8.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};Ps.prototype.drag=function(){G8.prototype.drag.call(this);this.tooltip.hideTooltip()};var W0b=function(a){this.root=a;this.length=0;a=this.root;if(a.firstElementChild!==void 0)a=a.firstElementChild;else for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;this.marker=a};g=W0b.prototype;g.append=function(a){this.root.insertBefore(a,this.marker);++this.length};g.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Uf");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
g.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Uf");this.removeItem(this.root.childNodes[a])};g.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};g.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};g.getRoot=function(){return this.root};g.getItems=function(){return Array.from(this.root.childNodes)};var qfd=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=h4b((new yt(a)).setDisplayName(b),c)};qfd.prototype.getLoggingToken=function(){return this.loggingToken};var rfd=function(){};rfd.prototype.getDisplayNameMatches=function(){return[]};rfd.prototype.getDisplayValueMatches=function(){return[]};rfd.prototype.getGivenNameMatches=function(){return[]};var sfd=new rfd;var A0b=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=A0b.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return this.targets_};g.getMemberList=function(){return[]};g.getTotalMemberCount=function(){return this.memberCount_};g.getPrimaryTarget=function(){throw Error("Wf");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getIsBoosted=function(){return!1};g.getMatchInfo=function(){return sfd};g.getExtendedData=function(){return null};var tfd=new Map([[1,1],[2,1],[3,1],[4,1],[5,2],[6,1],[7,1],[8,1],[9,3],[10,5],[11,6],[12,4],[13,4],[14,4],[17,1],[18,7],[19,7]]);var C5b=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=C5b.prototype;g.getUrl=function(){return this.url_};g.setUrl=function(a){this.url_=a||"";return this};g.getType=function(){return this.type_};g.setType=function(a){this.type_=a;return this};g.getSourceType=function(){return this.sourceType_};g.setSourceType=function(a){this.sourceType_=a||0;return this};g.getGlyph=function(){return this.glyph_};g.setGlyph=function(a){this.glyph_=a||"";return this};
var ufd=(new C5b).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),vfd=new C5b;var wfd=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=Ft(this.id_)?vfd:ufd;this.tags_=[];this.sourceIds_=X6b.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(Y4b(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=tfd.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};g=wfd.prototype;g.getId=function(){return this.id_};g.getTargetType=function(){return this.id_.getType()};g.getValue=function(){return this.value_};g.setValue=function(a){this.value_=Qs(a);return this};g.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return Qs(a&&a.getValue());case 1:case 2:case 6:case 7:return this.getValue();default:return""}};
g.getCanonicalValue=function(){return this.canonicalValue_||this.value_};g.setCanonicalValue=function(a){this.canonicalValue_=Qs(a);return this};g.getName=function(){return this.name_};g.setName=function(a){this.name_=a;return this};g.getDescription=function(){return this.description_};g.setDescription=function(a){this.description_=Qs(a);return this};g.getPhoto=function(){return this.photo_};g.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=Ft(this.id_)?vfd:ufd};
g.getTagList=function(){return this.tags_};g.setTagList=function(a){this.tags_=a||[]};g.getSourceIdList=function(){return this.sourceIds_};g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===3}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getContactId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===4}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getLoggingToken=function(){return new au};
g.getIsMe=function(){return this.isMe_};g.setIsMe=function(a){this.isMe_=a;return this};g.getDataSource=function(){return this.dataSource_};g.setDataSource=function(a){this.dataSource_=a;return this};g.getResultType=function(){return this.resultType_};g.setResultType=function(a){this.resultType_=a;return this};g.getFieldLoggingId=function(){return this.fieldLoggingId_};g.setFieldLoggingId=function(a){this.fieldLoggingId_=Qs(a)};g.getPersonLoggingId=function(){return this.personLoggingId_};
g.setPersonLoggingId=function(a){this.personLoggingId_=Qs(a)};g.getOrgState=function(){return this.orgState_};g.setOrgState=function(a){this.orgState_=a};g.getOriginatingField=function(){return this.originatingField_};var F5b=function(a,b){a.originatingField_=b;return a};g=wfd.prototype;g.getEmailSecurityInfo=function(){return this.emailSecurityInfo_};g.setEmailSecurityInfo=function(a){this.emailSecurityInfo_=a};g.getReachabilityInfo=function(){return this.reachabilityInfo_};
g.setReachabilityInfo=function(a){this.reachabilityInfo_=a};g.getExtendedData=function(){return this.extendedData_};g.setExtendedData=function(a){this.extendedData_=a};var Yt=function(a){return new wfd(a)};var C0b=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=Yt(this.internalId).setDataSource(3);this.internalResult=new Pq(B0b(0,[a]));this.internalSelectionToken=new qfd(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};g=C0b.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return this.internalResult.getTargetList()};g.result=function(){return this.internalResult};
g.getDisplayNameOverride=function(){return this.displayNameOverride};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};g.isPlaceholder=function(){return!0};var M0b=function(a,b){this.root=a;this.options=b};g=M0b.prototype;g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};g.getRoot=function(){return this.root};g.getSelection=function(){return D0b(W6b(this.options.id))};g.toggleSelection=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};var L0b=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+$s(a.id)+'" peoplekit-id="'+$s("UhZROb")+'" class="'+$s("peoplekitComponentsContextmenuitemImplMenuItem")+" "+$s(e)+'"'+(f?' aria-label="'+$s(f)+'"':"")+'><div class="'+$s("peoplekitComponentsContextmenuitemImplRow")+'">'+(KI(b)?'<img class="'+$s("peoplekitComponentsContextmenuitemImplIcon")+" "+$s("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+$s(qAc(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+$s("peoplekitComponentsContextmenuitemImplLabel")+" "+$s("peoplekitComponentsContextmenuitemImplCenter")+'">'+vt(c)+"</div>";d.length>0&&(a+='<div class="'+$s("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+$s("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=vt(d.join("+"))+"</span></div>");return Zs(a+"</div></div>")};var O3b=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var Ts=new Map([[0,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_copy_grey700.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/light_theme/phone_copy_grey700.svg"],["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/light_theme/email_copy_grey700.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/light_theme/content_cut_grey700.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_name_grey700.svg"],
["l1309","https://www.gstatic.com/people/peoplekit/icons/light_theme/change_email_address_grey700.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/light_theme/info_outline_grey700.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/light_theme/visibility_off_grey700.svg"]])],[1,new Map([["jCCvxc","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_copy_grey300.svg"],["RkeQbd","https://www.gstatic.com/people/peoplekit/icons/dark_theme/phone_copy_grey300.svg"],
["N1uSwe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/email_copy_grey300.svg"],["UkZFS","https://www.gstatic.com/people/peoplekit/icons/dark_theme/content_cut_grey300.svg"],["YCRBfe","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_name_grey300.svg"],["l1309","https://www.gstatic.com/people/peoplekit/icons/dark_theme/change_email_address_grey300.svg"],["xTCd3","https://www.gstatic.com/people/peoplekit/icons/dark_theme/info_outline_grey300.svg"],["ENOWEf","https://www.gstatic.com/people/peoplekit/icons/dark_theme/visibility_off_grey200.svg"]])]]);var Ws=function(a,b){this.ariaParent=a;this.delegate=b};g=Ws.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),mH(this.ariaParent,a)):mH(this.ariaParent,null)};g.prev=function(a){a=this.delegate.prev(a);this.update();return a};g.next=function(a){a=this.delegate.next(a);this.update();return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};g.activateAll=function(){this.delegate.activateAll()};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear();this.update()};g.reset=function(){this.delegate.reset();this.update()};
g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};g.remove=function(a,b){this.delegate.remove(a,b);this.update()};g.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var xfd=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(p([]));this.shouldWrap=!!a.shouldWrap;this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=xfd.prototype;
g.remove=function(a,b){var c=-1;a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());c>=0&&b&&(this.isActive=!1,this.goToIndex(c,0))};
g.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(p(b)));c?(yfd(this),zfd(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):a>=0&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};g.size=function(){return this.list.length};
g.prev=function(a){var b=this.spotlightIndex===0&&(!this.shouldWrap||a===1);!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=b>=0?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};g.next=function(a){var b=this.spotlightIndex===this.list.length-1&&(!this.shouldWrap||a===1);if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};
g.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
g.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||a===void 0||a<0)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive&&this.list[c].unspotlight();this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:yfd(this);Afd(this);break;case 3:Afd(this);break;case 1:a=P0b(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=P0b(this.multiActivateAnchorIndex,c,this.spotlightIndex);
if(c>=0&&(a||b||this.multiActivateAnchorIndex===this.spotlightIndex))for(b=b?this.multiActivateAnchorIndex:this.spotlightIndex,c<b?(a=c,c=b-1):a=b+1;a<=c;a++)b=this.list[a],b.deactivate(),this.activeItems.delete(b);zfd(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};
g.activateAll=function(){if(!(this.list.length<=0)){var a=this.spotlightIndex>=0?this.spotlightIndex:this.list.length-1;yfd(this);for(var b=l(this.list),c=b.next();!c.done;c=b.next())c=c.value,c.activate(),this.activeItems.add(c);this.goToIndex(a,2)}};g.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};g.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
g.getItem=function(a){for(var b=l(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};g.getIndexOf=function(a){return this.list.indexOf(a)};g.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();yfd(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(p(this.secondaryEventTargets));b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value)==null||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};g.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var Afd=function(a){var b=a.list[a.spotlightIndex];a.activeItems.has(b)?(b.deactivate(),a.activeItems.delete(b)):(b.activate(),a.activeItems.add(b));a.multiActivateAnchorIndex=a.spotlightIndex},yfd=function(a){for(var b=l(a.activeItems),c=b.next();!c.done;c=b.next())c=c.value,c.deactivate(),c.unspotlight();a.activeItems.clear()},zfd=function(a,b,c){var d=Math.max(b,c)+1;for(b=Math.min(b,c);b<d;b++)c=a.list[b],c.activate(),a.activeItems.add(c)};var Q0b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};Q0b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};Q0b.prototype.preventDefault=function(){this.event.preventDefault()};var R0b=function(a,b){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},b);this.eventHandler=Js(this)};g=R0b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(Xs(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(Xs(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case this.nextKeyCode:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(0);a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};g.onBlur=function(){this.reset()};var Bfd=new Mp;Bfd.altKey=!0;Bfd.keyCode=39;(new Mp).keyCode=13;var Cfd=function(){aF.call(this)};Y(Cfd,aF);Cfd.prototype.init=function(){};new Cfd;var Dfd=ya.URL,Efd;try{new Dfd("http://example.com"),Efd=!0}catch(a){Efd=!1}
var Ffd=Efd,Gfd=function(a){var b=function(c){return encodeURIComponent(c).replace(/[!()~']|(%20)/g,function(d){return{"!":"%21","(":"%28",")":"%29","%20":"+","'":"%27","~":"%7E"}[d]})};return Array.from(a,function(c){return b(c[0])+"="+b(c[1])}).join("&")},Ifd=function(a){var b=or(document,"A");try{ona(b,new Wh(a));var c=b.protocol}catch(e){throw Error("$f`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("$f`"+a);if(!Hfd.has(c))throw Error("$f`"+a);if(!b.hostname)throw Error("$f`"+a);var d=
b.href;a={href:d,protocol:b.protocol,username:"",password:"",hostname:b.hostname,pathname:"/"+b.pathname,search:b.search,hash:b.hash,toString:function(){return d}};Hfd.get(b.protocol)===b.port?(a.host=a.hostname,a.port="",a.origin=a.protocol+"//"+a.hostname):(a.host=b.host,a.port=b.port,a.origin=a.protocol+"//"+a.hostname+":"+a.port);return a},Jfd=function(a){if(Ffd){try{var b=new Dfd(a)}catch(d){throw Error("$f`"+a);}var c=Hfd.get(b.protocol);if(!c)throw Error("$f`"+a);if(!b.hostname)throw Error("$f`"+
a);b.origin=="null"&&(a={href:b.href,protocol:b.protocol,username:"",password:"",host:b.host,port:b.port,hostname:b.hostname,pathname:b.pathname,search:b.search,hash:b.hash},a.origin=c===b.port?b.protocol+"//"+b.hostname:b.protocol+"//"+b.hostname+":"+b.port,b=a)}else b=Ifd(a);return b},Hfd=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),Kfd=function(a){var b=Jfd("https://contacts.google.com"),c={};b&&(c.protocol=b.protocol,c.username=b.username,c.password=b.password,
c.hostname=b.hostname,c.port=b.port,c.pathname=b.pathname,c.search=b.search,c.hash=b.hash);Object.assign(c,a);if(c.port&&c.port[0]===":")throw Error("ag");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+Gfd(a.searchParams),c.searchParams=void 0);a="";c.protocol&&(a+=c.protocol+"//");b=c.username;var d=c.password;a=a+(b&&d?b+":"+d+"@":b?b+"@":d?":"+d+"@":"")+(c.hostname||"");c.port&&(a+=":"+c.port);a+=c.pathname||"";a+=c.search||
"";a+=c.hash||"";return Jfd(a)};var Ys=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=t0b(this.root,{});this.navigatable=O0b(c,new xfd({shouldWrap:!0}));this.navigationEventHandler=S0b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{});this.itemSelectedCallbacks=new Set;this.beforeShowCallbacks=new Set;this.afterHideCallbacks=new Set;this.contextMenuItemOptions=new Map;this.eventHandler=Js(this);this.eventHandler.listen(this.root,"mouseover",function(f){f.stopPropagation()});
this.eventHandler.listen(this.root,"mouseout",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(f){f.stopPropagation()});this.hide()};
Ys.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=N0b(a,this.appearanceConfig);this.container.append(c.getRoot());this.eventHandler.listen(c.getRoot(),"click",function(d){if(d.currentTarget){var e=d.currentTarget;e.dispatchEvent(Ss(e))}d.stopPropagation();Lfd(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
Ys.prototype.show=function(){for(var a=l(this.beforeShowCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b();this.popup.show(this.anchor);this.navigationEventHandler.attach(this.root,this.navigatable);this.navigatable.next(0)};Ys.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=l(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
Ys.prototype.onKeyDown=function(a){this.navigationEventHandler.onKeyDown(a);switch(a.event.keyCode){case 27:this.hide();a.stopPropagation();break;case 13:var b=this.navigatable.getSpotlitItem();if(b){var c=b.getRoot();c.dispatchEvent(Ss(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);Lfd(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var Mfd=function(a,b){a.itemSelectedCallbacks.add(b)},Nfd=function(a,b){a.afterHideCallbacks.add(b)},Lfd=function(a,b){a=l(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};Ys.prototype.dispose=function(){this.popup.dispose();this.container.clear();this.navigatable.clear();this.eventHandler.removeAll();this.itemSelectedCallbacks.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};var V0b=function(){return Zs('<div peoplekit-id="'+$s("xl07Ob")+'" class="'+$s("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var Z0b=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=Js(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};g=Z0b.prototype;g.getRoot=function(){return this.root};g.enable=function(){this.root.classList.remove("isDisabled");this.root.disabled=!1;this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
g.disable=function(){this.root.classList.add("isDisabled");this.root.disabled=!0;this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var Y0b=function(a){a=a.label;return Zs('<button class="'+$s("peoplekitComponentsButtonLabelLabelButton")+'">'+vt(a)+"</button>")};var f1b=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=Js(this);this.actionButtons=new Map;this.actionButtons.set(0,b);this.actionButtons.set(1,c);b.onClick=function(){return d.onButtonClick(0)};c.onClick=function(){d.onButtonClick(1)};this.dialog=Fs(this.root,"Sx9Kwc");this.startFocusableElement=Fs(this.root,"tYwGbe");this.endFocusableElement=Fs(this.root,"dYgZK");this.eventHandler.listen(this.root,"click",function(){return d.onScrimClick()});this.eventHandler.listen(this.dialog,
"click",function(e){return d.onDialogClick(e)});this.eventHandler.listen(this.dialog,"keydown",function(e){return d.onDialogKeyDown(e)});this.eventHandler.listen(this.startFocusableElement,"focus",function(){return d.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){return d.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};g=f1b.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};
g.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=l(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(Ss(a))}};g.disableAction=function(a){(a=this.actionButtons.get(a))&&a.disable()};g.enableAction=function(a){(a=this.actionButtons.get(a))&&a.enable()};g.getRoot=function(){return this.root};g.onDialogClick=function(a){a.stopPropagation()};
g.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(0),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};g.focusFirstFocusableElement=function(){var a=C_b(this.dialog);a.length&&a[0].focus()};g.focusLastFocusableElement=function(){var a=C_b(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(0)};g.onButtonClick=function(a){this.dispatchAction(a)};
g.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=l(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var e1b=function(a){var b=a.content,c=a.header;a=a.confirmAction;return Zs('<div peoplekit-id="'+$s("GGAcbc")+'" class="'+$s("peoplekitComponentsDialogImplScrim")+'" role="dialog" aria-modal="true"><div peoplekit-id="'+$s("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+$s("Sx9Kwc")+'" class="'+$s("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog">'+(KI(c)?vt(c):"")+'<div class="'+$s("peoplekitComponentsDialogImplContent")+'">'+vt(b)+'</div><div class="'+
$s("peoplekitComponentsDialogImplActions")+'">'+Zs(Ofd("IbE0S"))+(a?Zs('<div class="'+$s("peoplekitComponentsDialogImplActionDivider")+'"></div>')+Zs(Ofd("McfNlf")):"")+'</div></div><div peoplekit-id="'+$s("dYgZK")+'" tabindex="0" role="application"></div></div>')},Ofd=function(a){return Zs('<div peoplekit-id="'+$s(a)+'"></div>')},n1b=function(a){var b=a.hovercardId,c=a.name,d=a.label,e=a.sublabel;a=Zs;b='<div peoplekit-id="'+$s("tJHJj")+'" class="'+$s("peoplekitComponentsDialogImplAvatarHeader")+
'" data-hovercard-id="'+$s(b)+'" data-name="'+$s(c)+'"><div class="'+$s("peoplekitComponentsDialogImplHeaderRow")+'"><div class="'+$s("peoplekitComponentsDialogImplLeft")+'">'+Zs('<div class="'+$s("peoplekitComponentsDialogImplAvatar")+'"><div class="'+$s("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+$s("d6MZcd")+'"></div></div>')+'</div><div class="'+$s("peoplekitComponentsDialogImplCenter")+'">';d=Zs('<div class="'+$s("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+
$s("E0kCZc")+'" class="'+$s("peoplekitComponentsDialogImplLabel")+" "+$s("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+vt(LI(d))+"</div>"+(e?'<div class="'+$s("peoplekitComponentsDialogImplSublabel")+" "+$s("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+vt(LI(e))+"</div>":"")+"</div>");return a(b+d+"</div></div></div>")},j1b=function(a){a=a.header;return Zs('<div class="'+$s("peoplekitComponentsDialogImplTextHeader")+'">'+vt(a)+"</div>")};var h1b=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=Js(this);this.dialog=Fs(this.root,"Sx9Kwc");this.startFocusableElement=Fs(this.root,"tYwGbe");this.endFocusableElement=Fs(this.root,"dYgZK");b.onClick=function(){c.dispatchAction(2)};this.eventHandler.listen(this.root,"click",function(){c.onScrimClick()});this.eventHandler.listen(this.dialog,"click",function(d){c.onDialogClick(d)});this.eventHandler.listen(this.dialog,"keydown",function(d){c.onDialogKeyDown(d)});
this.eventHandler.listen(this.startFocusableElement,"focus",function(){c.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){c.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};g=h1b.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};g.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&a===2)for(var b=l(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};g.disableAction=function(){this.closeButton.disable()};
g.enableAction=function(){this.closeButton.enable()};g.getRoot=function(){return this.root};g.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};g.onDialogClick=function(a){a.stopPropagation()};g.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};g.focusFirstFocusableElement=function(){var a=C_b(this.dialog);a.length&&a[0].focus()};g.focusLastFocusableElement=function(){var a=C_b(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(2)};var a1b=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var c1b=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var o1b=function(a){this.dialog=a};g=o1b.prototype;g.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};g.dispatchAction=function(a){this.dialog.dispatchAction(a)};g.enableAction=function(a){this.dialog.enableAction(a)};g.disableAction=function(a){this.dialog.disableAction(a)};g.getRoot=function(){return this.dialog.getRoot()};g.dispose=function(){this.dialog.dispose()};var I8=function(a){this.delegate=a};g=I8.prototype;g.getAllIds=function(){return this.delegate.getAllIds()};g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};
g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};g.addTag=function(a){this.delegate.addTag(a)};
g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.dispose=function(){this.delegate.dispose()};var bt=function(a,b,c,d,e,f){this.delegate=a;var h=this;this.appearanceConfig=b;this.clientConfig=c;this.result=d;this.ariaParent=e;this.groupMembers=this.result.getMemberList();this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher;this.eventHandler=Js(this);this.contextMenuContainer=f.get("QL45qe");this.eventHandler.listen(document,"click",function(k){h.contextMenuContainer.contains(k.target)||h.disposeContextMenu()});this.eventHandler.listen(document,"keydown",function(k){if(h.contextMenu)h.contextMenu.onKeyDown(Xs(k))})};
Y(bt,I8);bt.prototype.onKeyDown=function(a){if(this.contextMenu)this.contextMenu.onKeyDown(a);else I8.prototype.onKeyDown.call(this,a)};
bt.prototype.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.activate();this.contextMenu&&this.disposeContextMenu();this.contextMenu=X0b(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(J0b(a));Mfd(this.contextMenu,function(d){c.onContextMenuItemSelected(d)});Nfd(this.contextMenu,function(){c.disposeContextMenu();b()});this.contextMenu.show();return function(){c.disposeContextMenu()}};
bt.prototype.dispose=function(){this.eventHandler.removeAll();I8.prototype.dispose.call(this)};bt.prototype.onContextMenuItemSelected=function(a){switch(a.id){case "ENOWEf":this.groupMembers.length<2?Pfd(this):Qfd(this);break;default:throw Error("bg`"+a.id);}this.disposeContextMenu()};
var Pfd=function(a){Rfd(a);a.dispatcher.notify(8);a.hideConfirmationDialog=p1b(D_b(a.getRoot()),a.getSelection(),a.appearanceConfig,0);a.hideConfirmationDialog.subscribeToAction(function(b){b===1&&(b=a.getAllIds(),a.groupMembers.length===1&&(b=[a.groupMembers[0].getPrimaryTarget().getId()]),a.dispatcher.notify(1,b));Rfd(a)})},Rfd=function(a){var b;(b=a.hideConfirmationDialog)==null||b.dispose();a.hideConfirmationDialog=void 0;a.dispatcher.notify(9,a.getRoot())},Qfd=function(a){Sfd(a);a.dispatcher.notify(8);
a.hideGroupErrorDialog=l1b(a.getRoot().ownerDocument.body,a.appearanceConfig);a.hideGroupErrorDialog.subscribeToAction(function(){Sfd(a)})},Sfd=function(a){var b;(b=a.hideGroupErrorDialog)==null||b.dispose();a.hideGroupErrorDialog=void 0;a.dispatcher.notify(9,a.getRoot())};bt.prototype.disposeContextMenu=function(){var a;(a=this.contextMenu)==null||a.dispose();this.contextMenu=void 0;this.dispatcher.notify(7,this.getRoot())};var at=new D8({coreTypeOrder:[1,3,2,0],decoratorTypeOrder:[0,1,2],extractor:function(a){return a},getCompatibleTypes:function(a){return a===0||a===2||a===3?new Set([0,1,2]):new Set}});var h5b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(h5b,V);var i5b=new Bv(417869137,h5b);var q1b=function(){};q1b.prototype.filterResult=function(a){var b,c;return((b=a.getExtendedData())==null?void 0:(c=b.getExtension(i5b))==null?void 0:Vt(c,1))===1?a:null};q1b.prototype.reset=function(){};var Tfd=function(a){return"To unhide this suggestion, press "+a.shortcutKey+" + Enter.  "};var u1b=function(a,b,c,d,e,f){var h=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=Js(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var q;(q=h.onClick)==null||q.call(h,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){h.activate()}),this.eventHandler.listen(this.root,"blur",function(){h.deactivate()}))};g=u1b.prototype;
g.getRoot=function(){return this.root};g.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};g.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;this.tooltip&&nfd(this.tooltip.tooltipEventTracker)};
g.activate=function(){this.root.classList.add("isFocused");this.tooltip&&this.tooltip.showTooltip()};g.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};g.isActive=function(){return this.root.classList.contains("isFocused")};var Ufd=0;var s1b=function(a){var b=a.icon,c=a.ariaLabel,d="";c=(a=a.tooltipLabel?"tt-c"+Ufd++:"")?' data-tooltip-id="'+$s(a)+'" aria-labelledby="'+$s(a)+'"':c?' aria-label="'+$s(c)+'"':"";d+='<button class="'+$s("peoplekitComponentsButtonIconIconButton")+'"'+c+">"+Zs('<span><img src="'+$s(qAc(b))+'" draggable="false" aria-hidden="true" alt="" class="'+$s("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')+"</button>";return Zs(d)};var w1b=function(a,b,c,d){this.delegate=a;var e=this;this.secondaryActionConfig=c;for(var f=Fs(a.getRoot(),"QChpEe");f.firstChild;)f.removeChild(f.firstChild);this.secondaryActionButton=v1b(f,d.get("jGsbz"),Object.assign({},{density:b.getDensity()},c));this.buttonRoot=this.secondaryActionButton.getRoot();this.buttonRoot.style.display="none";this.buttonRoot.id=a.getRoot().id+"-2ab";c.disableDomNavigation&&kH(this.buttonRoot,"menuitem");Rs({element:this.buttonRoot,veid:163534,actions:["impression",
"pcw-click"],componentId:"peoplekitweb"});this.secondaryActionButton.onClick=function(h){var k;(k=c.onClick)==null||k.call(c,h);e.buttonRoot.dispatchEvent(Ss(e.buttonRoot))};this.eventHandler=Js(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Y(w1b,I8);g=w1b.prototype;g.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
g.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
g.onKeyDown=function(a){var b=a.event.keyCode===13,c=b&&a.event.platformModifierKey;if(this.secondaryActionConfig.disableDomNavigation){var d=a.event.keyCode===9;!d||a.event.shiftKey||this.secondaryActionButton.isActive()?d&&this.secondaryActionButton.isActive()&&(this.secondaryActionButton.deactivate(),lH(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),lH(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};g.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();I8.prototype.dispose.call(this)};g.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};g.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var Vfd={LIGHT_THEME:"https://www.gstatic.com/people/peoplekit/icons/light_theme/visibility_grey700.svg",DARK_THEME:"https://www.gstatic.com/people/peoplekit/icons/dark_theme/visibility_grey300.svg"},Wfd=Tfd({shortcutKey:"Ctrl"}),Xfd=Tfd({shortcutKey:"\u2318"}),y1b=function(a,b,c,d,e){var f=b.getTheme()===0?Vfd.LIGHT_THEME:Vfd.DARK_THEME,h=Bba()?Xfd:Wfd;I8.call(this,x1b(a,b,{icon:f,tooltipLabel:"Unhide suggestion",ariaLabel:h,onClick:function(q){k.onButtonClick(q)},disableDomNavigation:!0},d,e));
var k=this;this.appearanceConfig=b;this.clientConfig=c;this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher};Y(y1b,I8);y1b.prototype.onButtonClick=function(a){Yfd(this);a.stopPropagation()};
var Yfd=function(a){a.unhideConfirmationDialog&&Zfd(a);a.dispatcher.notify(8);a.unhideConfirmationDialog=p1b(D_b(a.getRoot()),a.getSelection(),a.appearanceConfig,1);a.unhideConfirmationDialog.subscribeToAction(function(b){b===1&&a.dispatcher.notify(4,a.getAllIds());Zfd(a)})},Zfd=function(a){var b;(b=a.unhideConfirmationDialog)==null||b.dispose();a.unhideConfirmationDialog=void 0;a.dispatcher.notify(9,a.getRoot())};var $fd=function(){this.label="";this.type=0};g=$fd.prototype;g.getAutocompleteGroupingType=function(){return this.type};g.setAutocompleteGroupingType=function(a){this.type=a};g.getAutocompleteGroupingLabel=function(){return this.label};g.setAutocompleteGroupingLabel=function(a){this.label=a};g.getAutocompleteCustomGrouping=function(){return this.customGrouping};var agd=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};g=agd.prototype;g.getAllowResultDeselection=function(){return!1};g.getWarnForExternalSelections=function(){return this.warnForExternalSelections};g.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
g.setResultCustomizationCallback=function(a){this.resultCustomizationCallback=a};var bgd=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.noResultsMessage=null;this.autoActivateFirstSearchResult=!0;this.clearSelectionsOnSearch=!1;this.environmentConfig=a;this.grouping=new $fd;this.result=new agd;this.appearance=new I_b};g=bgd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.header};
g.setAutocompleteHeader=function(a){this.header=a};g.getShowSuggestions=function(){return this.showSuggestions};g.setShowSuggestions=function(a){this.showSuggestions=a};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};g.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};g.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};g.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};g.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};g.setEntryPoint=function(a){this.entryPoint=a};
g.getEntryPoint=function(){return this.entryPoint};g.getNoResultsMessage=function(){return this.noResultsMessage};g.setNoResultsMessage=function(a){this.noResultsMessage=a};g.getUseTabForResultSelection=function(){return!0};g.getClearSelectionsOnSearch=function(){return this.clearSelectionsOnSearch};g.setClearSelectionsOnSearch=function(a){this.clearSelectionsOnSearch=a};g.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};
g.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};
g.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};g.setResultCustomizationCallback=function(a){this.result.setResultCustomizationCallback(a)};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};g.setTheme=function(a){this.appearance.setTheme(a)};
g.getStyle=function(){return this.appearance.getStyle()};g.setStyle=function(a){this.appearance.setStyle(a)};var cgd=function(a){this.environmentConfig=a;this.autocomplete=new bgd(a);this.autocomplete.setClearSelectionsOnSearch(!0)};g=cgd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};g.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};g.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};g.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};g.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};g.getClearSelectionsOnSearch=function(){return this.autocomplete.getClearSelectionsOnSearch()};g.setClearSelectionsOnSearch=function(a){this.autocomplete.setClearSelectionsOnSearch(a)};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
g.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};g.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};g.getDensity=function(){return this.autocomplete.getDensity()};g.setDensity=function(a){this.autocomplete.setDensity(a)};
g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};g.getStyle=function(){return this.autocomplete.getStyle()};g.setStyle=function(a){this.autocomplete.setStyle(a)};var H1b=function(a){this.root=a;this.length=0;this.isInteractive=!0};g=H1b.prototype;g.getItems=function(){return Array.from(this.root.childNodes)};g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Uf");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};
g.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Uf");var b=this.getItems();this.root.removeChild(b[a]);--this.length};g.clear=function(){Bz(this.root);this.length=0};g.getRoot=function(){return this.root};var F1b=function(a){return Zs('<ul id="'+$s(a.id)+'" peoplekit-id="'+$s("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+$s("peoplekitComponentsListImplList")+'"></ul>')};var G1b=Vs.getInstance();var dgd=function(a){this.delegate=a};g=dgd.prototype;g.prev=function(a){a=this.delegate.prev(a);egd(this);return a};g.next=function(a){a=this.delegate.next(a);egd(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);egd(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);egd(this);return a};g.activateAll=function(){this.delegate.activateAll()};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};
g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear()};g.reset=function(){this.delegate.reset()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};
g.remove=function(a,b){this.delegate.remove(a,b)};g.insert=function(a,b,c){this.delegate.insert(a,b,c)};var egd=function(a){(a=a.delegate.getSpotlitItem())&&L1b(a.getRoot())};var J8=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.collapsibleConfig=d;this.items=[];this.isCollapsed=!1};J8.prototype.getContainerId=function(){return this.collapsibleConfig.resultListContainer.id};J8.prototype.append=function(a){this.items.push(a);this.list.append(a.getRoot());this.intelligentCollection.append([a]);this.isCollapsed||this.navigatable.insert(this.navigatable.size(),[a],!1)};J8.prototype.getItems=function(){return this.isCollapsed?[]:this.items};
J8.prototype.dispose=function(){for(var a=l(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var fgd=function(a,b){if(a.isCollapsed!==b){var c=a.collapsibleConfig,d=c.resultListContainer,e=c.before;c=c.sectionRoot;b?(d.classList.add("collapsed"),d.style.height="",a.navigatable.remove(a.items,!1)):(e=a.navigatable.getIndexOf(e)+1,a.navigatable.insert(e,a.items,!1),d.classList.remove("collapsed"),d.style.height=d.scrollHeight+"px",L1b(c));a.isCollapsed=b}};var ggd=function(a,b,c){this.list=a;this.navigatable=b;this.intelligentCollection=c};ggd.prototype.getOrCreateSection=function(){this.section||(this.section=new J8(this.list,this.navigatable,this.intelligentCollection));return this.section};ggd.prototype.clear=function(){var a;(a=this.section)==null||a.dispose();this.section=void 0;this.list.clear();this.navigatable.clear();this.intelligentCollection.clear()};ggd.prototype.reset=function(){this.navigatable.reset()};
ggd.prototype.getItems=function(){var a,b;return(b=(a=this.section)==null?void 0:a.getItems())!=null?b:[]};var K8=function(a){this.delegate=a};g=K8.prototype;g.getRoot=function(){return this.delegate.getRoot()};g.getHeader=function(){return this.delegate.getHeader()};g.getActionItems=function(){return this.delegate.getActionItems()};g.dispose=function(){this.delegate.dispose()};g.setCollapsible=function(a){this.delegate.setCollapsible(a)};g.getCollapsible=function(){return this.delegate.getCollapsible()};g.getActivatable=function(){return this.delegate.getActivatable()};var hgd=function(a){var b=a.id,c=a.groupName;a=a.classes;return Zs('<div class="'+$s("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+$s(a):"")+'" peoplekit-id="'+$s("wgPSWd")+'" id="'+$s(b)+'" aria-expanded="false" role="menuitem" aria-label="'+$s("To expand "+c+" group, press enter")+'"><svg class="'+$s("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>')},
igd=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var dt=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=Js(this);this.chevron=Lp(hgd,{id:Hs(Vs.getInstance()),groupName:this.getHeader(),classes:"TdcT2c"});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){c.chevron.classList.add("isSpotlit")},unfocus:function(){c.chevron.classList.remove("isSpotlit")},onKeyDown:function(d){d.event.keyCode===13&&(c.toggleView(),d.stopPropagation())}});this.eventHandler.listen(this.getRoot(),
"click",this.toggleView);Fs(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),lH(this.chevron,"expanded",!0),vuc(this.chevron,igd({groupName:this.getHeader(),action:"collapse"})))};Y(dt,K8);dt.prototype.getActionItems=function(){return this.groupingHeaderActionItems};dt.prototype.dispose=function(){this.eventHandler.removeAll();K8.prototype.dispose.call(this)};
dt.prototype.setCollapsible=function(a){K8.prototype.setCollapsible.call(this,a);fgd(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.getContainerId());jgd(this)};dt.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");fgd(this.getCollapsible(),this.isCollapsed);jgd(this)};var jgd=function(a){var b=a.isCollapsed?"expand":"collapse";lH(a.chevron,"expanded",!a.isCollapsed);vuc(a.chevron,igd({groupName:a.getHeader(),action:b}))};var kgd=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return Zs("<div>"+vt(a.description)+'  <a href="'+$s(wt(b))+'" target="_blank" class="'+$s("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+$s("lh87ke")+'">'+vt(c)+"</a></div>")},lgd=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return Zs('<div class="'+$s("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+$s(a):"")+'" peoplekit-id="'+$s("CLghmc")+'" id="'+$s(b)+'" aria-label="'+$s(c)+'"><svg class="'+
$s("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg></div>')};var O1b=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=Lp(lgd,{id:Hs(Vs.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});Fs(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&Rs({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=Js(this);this.eventHandler.listen(this.infoIcon,"click",function(){mgd(e)});this.groupingHeaderActionItems=a.getActionItems().slice();this.groupingHeaderActionItems.push({focus:function(){e.infoIcon.classList.add("isSpotlit")},unfocus:function(){e.infoIcon.classList.remove("isSpotlit")},onKeyDown:function(f){f.event.keyCode===13&&(mgd(e),f.stopPropagation(),f.preventDefault())}})};Y(O1b,K8);
var mgd=function(a){a.infoIcon.dispatchEvent(Ss(a.infoIcon));var b=j1b({header:a.infoGroupConfig.infoDialogHeader}),c=kgd({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=D_b(a.getRoot()),f=i1b(e,c,a.appearanceConfig,b),h=Fs(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&Rs({element:h,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(h,"click",function(){h.dispatchEvent(Ss(h))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};O1b.prototype.getActionItems=function(){return this.groupingHeaderActionItems};O1b.prototype.dispose=function(){this.eventHandler.removeAll();K8.prototype.dispose.call(this)};var N1b=function(a,b){this.root=a;this.header=b};g=N1b.prototype;g.getHeader=function(){return this.header};g.getActionItems=function(){return[]};g.dispose=function(){};g.getRoot=function(){return this.root};g.setCollapsible=function(a){this.collapsible=a};g.getCollapsible=function(){return this.collapsible};g.getActivatable=function(){};var M1b=function(a){var b=Zs;var c=a.id;a=a.header;c=Zs('<div class="'+$s("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+$s(c)+'" peoplekit-id="'+$s("XLuqBd")+'" role="menu"><div class="'+$s("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+$s("peoplekitComponentsGroupingHeaderHeader")+'">'+vt(a)+'</div><div class="'+$s("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+$s("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+$s("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+$s("xiK4Cd")+'"></div><div class="'+$s("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+$s("QChpEe")+'"></div></div></div></div></div>');return b(c)};var P1b=function(a){this.delegate=a};Y(P1b,K8);g=P1b.prototype;g.activate=function(){};g.deactivate=function(){};g.getSelection=function(){throw Error("cg");};g.toggleSelection=function(){};g.onContextMenu=function(){return function(){}};g.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};
g.unspotlight=function(){this.activeActionItemIndex!==void 0&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
g.onKeyDown=function(a){if(this.activeActionItemIndex!==void 0){var b=this.getActionItems(),c=b[this.activeActionItemIndex];c.onKeyDown(a);if(!a.hasStoppedPropagationInternal)switch(a.event.keyCode){case 9:c.unfocus(),this.activeActionItemIndex=(this.activeActionItemIndex+1)%b.length,b[this.activeActionItemIndex].focus(),a.stopPropagation(),a.preventDefault()}}};g.getActivatable=function(){return this};var ngd=function(a,b){this.itemsSection=a;this.groupingHeader=b};ngd.prototype.append=function(a){this.itemsSection.append(a)};ngd.prototype.getItems=function(){return this.itemsSection.getItems()};ngd.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var ogd=function(a){var b=a.listId;return Zs('<div id="'+$s(a.id)+'" peoplekit-id="'+$s("E9WxSb")+'" role="group"><div peoplekit-id="'+$s("Bm3u4d")+'"></div><div id="'+$s(b)+'" role="region" class="'+$s("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+$s("tjneg")+'"></div></div>')};var L8=function(a,b,c,d,e){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.appearanceConfig=d;this.grouping=e;this.sections=[]};L8.prototype.getOrCreateSection=function(a){var b=this.grouping.getGroupId(a);if(this.sections.find(function(d){return d.groupId===b}))return this.sections.at(-1).section;var c;a=(c=this.grouping.groupConfigs[b])!=null?c:{};c=Q1b(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};L8.prototype.getItems=function(){return pgd(this).flatMap(function(a){return a.getItems()})};
L8.prototype.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};L8.prototype.clear=function(){var a=pgd(this);a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();this.sections.length=0};var pgd=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(p(a.values()))},qgd=function(){L8.apply(this,arguments)};Y(qgd,L8);
qgd.prototype.createSection=function(a){this.section||(this.section=new J8(this.list,this.navigatable,this.intelligentCollection));a&&this.list.append(a.getRoot());return this.section};qgd.prototype.clear=function(){L8.prototype.clear.call(this);this.section=void 0};var rgd=function(){L8.apply(this,arguments)};Y(rgd,L8);
rgd.prototype.createSection=function(a){var b=Hs(Vs.getInstance()),c=Hs(Vs.getInstance()),d=Lp(ogd,{id:b,listId:c});this.list.append(d);var e=Fs(d,"tjneg");b=I1b(e);if(a){Fs(d,"Bm3u4d").appendChild(a.getRoot());c=this.navigatable;var f=this.intelligentCollection;e={collapsibleResultListContainer:e,collapsibleSectionRoot:d};d=a.getActivatable();var h;d&&(c.insert(c.size(),[d],!1),e&&(h={sectionRoot:e.collapsibleSectionRoot,resultListContainer:e.collapsibleResultListContainer,before:d}));b=new J8(b,
c,f,h);h&&d&&d.setCollapsible(b);return new ngd(b,a)}return new J8(b,this.navigatable,this.intelligentCollection)};var ht=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ht,V);ht.prototype.getRequestType=function(){return pl(this,1)};ht.prototype.setRequestType=function(a){return Sl(this,1,a)};var sgd=[0,Zac,99,[0,Av,Uac],[0],[0],[0,Av,-5],[0,Av],[0,Av,zv],Led,[0,Av],[0,Av]];var tgd=function(){var a=new ht,b=new A8;this.experimentFlags_=W(a,A8,107,b)};tgd.prototype.getExperimentFlags=function(){return this.experimentFlags_};tgd.prototype.getExperimentIds=function(){return[]};var I3b=function(a,b){this.cache=b;this.overriddenExperiments=X(a,A8,3)||new A8};I3b.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:X(a,A8,107))||new A8;a=this.overriddenExperiments;jl(a,3)&&(a=kl(a,3),Ol(b,3,a));return b};I3b.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var ugd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ugd,V);g=ugd.prototype;g.getCacheStaleSec=function(){return Ik(this,4,14400)};g.getCacheExpiredSec=function(){return Ik(this,5,63158400)};g.getRpcTimeoutSec=function(){return Ik(this,7,60)};g.getApiKey=function(){return Oh(this,8)};g.setApiKey=function(a){return Rl(this,8,a)};g.getEnableClearcut=function(){return kl(this,13,!0)};g.setEnableClearcut=function(a){return Ol(this,13,a)};var F3b=bna(ugd);var E3b;var vgd=function(){};vgd.prototype.getExperimentFlags=function(){return new ht};vgd.prototype.getExperimentIds=function(){return[]};var ot=function(){};ot.prototype.prefetch=function(){};ot.prototype.loadExperiments=function(){return new vgd};var M8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(M8,V);M8.prototype.getVersion=function(){return Dl(this,1)};M8.prototype.setVersion=function(a){return Hl(this,1,a)};M8.prototype.getVersionOrUndefined=function(){return Mu(this,1)};M8.prototype.getVersionOrUndefined_asString=function(){return i_a(this,1)};var N8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(N8,V);g=N8.prototype;g.getApplication=function(){return pl(this,1)};g.setApplication=function(a){return Sl(this,1,a)};g.getApplicationOrUndefined=function(){return du(this,1)};g.getVersion=function(){return Dl(this,2)};g.setVersion=function(a){return Hl(this,2,a)};g.getVersionOrUndefined=function(){return Mu(this,2)};g.getVersionOrUndefined_asString=function(){return i_a(this,2)};var wgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wgd,V);g=wgd.prototype;g.getRequestType=function(){return pl(this,1)};g.setRequestType=function(a){return Sl(this,1,a)};g.getProfileId=function(){return Oh(this,2)};g.getProfileId_legacyNullable=function(){return am(this,2)};g.setProfileId=function(a){return Rl(this,2,a)};g.hasProfileId=function(){return ml(this,2)};g.getCaller=function(){return X(this,M8,3)};g.setCaller=function(a){return W(this,M8,3,a)};
g.getInstanceId=function(){return Oh(this,4)};g.setInstanceId=function(a){return Rl(this,4,a)};g.clearInstanceId=function(){tq(this,4)};g.hasInstanceId=function(){return ml(this,4)};g.getInstanceIdOrUndefined=function(){return fr(this,4)};g.getClient=function(){return X(this,N8,5)};g.setClient=function(a){return W(this,N8,5,a)};g.hasClient=function(){return nk(this,N8,5)};var ft=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ft,V);g=ft.prototype;g.getErrorType=function(){return pl(this,2,1)};g.setErrorType=function(a){return Sl(this,2,a)};g.hasErrorType=function(){return nl(this,2)};g.getErrorMessage=function(){return Oh(this,3)};g.setErrorMessage=function(a){Rl(this,3,a)};g.getStatusCode=function(){return pl(this,4)};g.setStatusCode=function(a){Sl(this,4,a)};g.hasStatusCode=function(){return nl(this,4)};var i2b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(i2b,V);g=i2b.prototype;g.getExperimentFlags=function(){return X(this,ht,1)};g.setExperimentFlags=function(a){return W(this,ht,1,a)};g.hasExperimentFlags=function(){return nk(this,ht,1)};g.getError=function(){return X(this,ft,2)};g.setError=function(a){W(this,ft,2,a)};g.hasError=function(){return nk(this,ft,2)};g.getSource=function(){return pl(this,3)};g.setSource=function(a){return Sl(this,3,a)};
g.hasSource=function(){return nl(this,3)};g.getSourceOrUndefined=function(){return du(this,3)};g.getInstanceId=function(){return Oh(this,4)};g.setInstanceId=function(a){return Rl(this,4,a)};g.clearInstanceId=function(){tq(this,4)};g.hasInstanceId=function(){return ml(this,4)};g.getInstanceIdOrUndefined=function(){return fr(this,4)};g.getExperimentIdsList=function(a){return Hc(this,5,Sb,Fk(a))};g.setExperimentIdsList=function(a){return Mc(this,5,a,Rb)};
g.getExperimentIds=function(){return Ju(this,5)};g.setExperimentIds=function(a){Pc(this,5,Rb,void 0,a,Sb,1)};var xgd=function(a,b){this.client_=a;this.runtime_=b;V1b();this.apiKey_=a.getApiKey();this.apiRoot_=Oh(this.client_,10)||bKa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};xgd.prototype.getClient=function(){return this.client_};xgd.prototype.getApiKey=function(){return this.apiKey_};var O8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(O8,V);g=O8.prototype;g.getExperimentFlags=function(){return X(this,ht,1)};g.setExperimentFlags=function(a){return W(this,ht,1,a)};g.hasExperimentFlags=function(){return nk(this,ht,1)};g.getObfuscatedGaiaId=function(){return am(this,2)};g.getObfuscatedGaiaId_legacyNullable=function(){return am(this,2)};g.setObfuscatedGaiaId=function(a){return Rl(this,2,a)};g.getExperimentIdsList=function(a){return Hc(this,3,Sb,Fk(a))};
g.setExperimentIdsList=function(a){return Mc(this,3,a,Rb)};g.getExperimentIds=function(){return Ju(this,3)};g.setExperimentIds=function(a){Pc(this,3,Rb,void 0,a,Sb,1)};var ygd=Rh(O8);var zgd=[0,sgd,Yac,Vac];var Agd=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},Bgd=function(a,b,c){a=a.now_()-c*1E3;return b>a};Agd.prototype.getCacheState=function(a){var b=Ik(this.clientConfig_.getClient(),3,1800);if(Bgd(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(Bgd(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return Bgd(this,a,b)?3:4};var Cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cgd,V);g=Cgd.prototype;g.getExperiments=function(){return X(this,O8,2)};g.setExperiments=function(a){return W(this,O8,2,a)};g.hasExperiments=function(){return nk(this,O8,2)};g.getInstanceId=function(){return Oh(this,4)};g.setInstanceId=function(a){return Rl(this,4,a)};g.clearInstanceId=function(){tq(this,4)};g.hasInstanceId=function(){return ml(this,4)};g.getInstanceIdOrUndefined=function(){return fr(this,4)};var Dgd=[0,Yac,zgd,Uac,Yac];var Egd=ana(Cgd,Dgd),Fgd=function(a){return function(b){var c=new Qac;Yma(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Lh(a));return gca(Rac(c))}}(Dgd);var gt=function(a,b,c){c=Error.call(this,c===void 0?"":c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.statusCode=b===void 0?2:b};Y(gt,Error);var Ggd=new gt(6);var Hgd=function(){};var P8=function(){};zu(P8,Hgd);P8.prototype.getCount=function(){for(var a=0,b=l(this),c=b.next();!c.done;c=b.next())a++;return a};P8.prototype[Symbol.iterator]=function(){return Wnc(this.__iterator__(!0)).toEs6()};P8.prototype.clear=function(){var a=Array.from(this);a=l(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};zu(Z1b,P8);g=Z1b.prototype;g.isAvailable=function(){var a=this.storage_;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.cachedIsStorageAvailable_=b};
g.set=function(a,b){Q8(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){Q8(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){Q8(this);this.storage_.removeItem(a)};g.getCount=function(){Q8(this);return this.storage_.length};
g.__iterator__=function(a){Q8(this);var b=0,c=this.storage_,d=new pD;d.next=function(){if(b>=c.length)return Vnc;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};g.clear=function(){Q8(this);this.storage_.clear()};g.key=function(a){Q8(this);return this.storage_.key(a)};
var Q8=function(a){if(a.storage_==null)throw Error("dg");var b;((b=a.cachedIsStorageAvailable_)!=null?b:a.isAvailable())||za(Error("dg"))};zu($1b,Z1b);zu(et,P8);et.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};et.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};et.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
et.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new pD;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.prefix_.length)!=c.prefix_;){e=b.next();if(e.done)return e;e=e.value}return{value:a?e.slice(c.prefix_.length):c.mechanism_.get(e),done:!1}};return d};var a2b=["PeopleStackExperiments"],Igd=new Set([4,0]),n2b=function(a,b){b=b===void 0?new $1b:b;this.clientConfig_=a;this.transformer_=new Agd(this.clientConfig_);this.localStorage_=b;this.storage_=new et(this.localStorage_,"pse/591286274")};n2b.prototype.set=function(a,b){var c=Y1b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Ggd;var d=new Cgd;b=Rl(d,1,c).setExperiments(b);d=Date.now();a=Hl(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Ada(Fgd(a)));return c};
n2b.prototype.get=function(a){a=Y1b(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=Jgd(a);if(a&&this.transformer_.getCacheState(zl(a,3))!==4){var b=this.transformer_,c;var d={keyPath:Oh(a,1),experiments:(c=a.getExperiments())!=null?c:new O8,lastUpdated:new Date(zl(a,3)),state:b.getCacheState(zl(a,3)),instanceId:a.getInstanceId()}}else d=null;return d};var Jgd=function(a){if(!a)return null;try{return Egd(a)}catch(b){return null}};
n2b.prototype.delete=function(a){this.storage_.remove(a);return!0};
n2b.prototype.clean=function(){for(var a=[].concat(p(this.storage_)),b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=Igd,e=d.has,f;a:{if(c&&(f=Jgd(this.storage_.get(c)))&&yl(f,3)){f=this.transformer_.getCacheState(zl(f,3));break a}f=0}e.call(d,f)&&this.delete(c)}a:{if(a.length>10)try{this.storage_.set("__sak","1"),this.storage_.remove("__sak")}catch(h){if(h==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=l(b2b(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var o2b=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new Agd(this.clientConfig_);this.cache_=b};o2b.prototype.set=function(a,b){var c=Y1b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Ggd;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
o2b.prototype.get=function(a){a=Y1b(a);if(!a)return null;a=this.cache_.get(a);if(!a)return null;var b=this.transformer_.getCacheState(a.lastUpdated.getTime());if(b===4)return null;a.state=b;return a};o2b.prototype.delete=function(a){this.cache_.delete(a);return!0};o2b.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var Kgd=function(){};g=Kgd.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};var Lgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lgd,V);g=Lgd.prototype;g.getCaller=function(){return X(this,M8,1)};g.setCaller=function(a){return W(this,M8,1,a)};g.getClient=function(){return X(this,N8,2)};g.setClient=function(a){return W(this,N8,2,a)};g.hasClient=function(){return nk(this,N8,2)};var Mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mgd,V);g=Mgd.prototype;g.getRequestType=function(){return pl(this,1)};g.setRequestType=function(a){return Sl(this,1,a)};g.setProperties=function(a){return W(this,Lgd,3,a)};g.getInstanceId=function(){return Oh(this,4)};g.setInstanceId=function(a){return Rl(this,4,a)};g.clearInstanceId=function(){tq(this,4)};g.hasInstanceId=function(){return ml(this,4)};g.getInstanceIdOrUndefined=function(){return fr(this,4)};var Ngd=new zT("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",Mgd,O8,function(a){return a.serialize()},ygd);var Ogd=function(a){this.client_=new wUc({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};Ogd.prototype.getExperimentFlags=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},Ngd)};var Pgd=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new Kgd};Pgd.prototype.getMetric=function(){return this.metric_};Pgd.prototype.send=function(a){var b=this,c;return w(function(d){var e=(new Lgd).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new Mgd).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
Pgd.prototype.close=function(){};Pgd.prototype.processResponse=function(a){return a};var Qgd=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Rgd=function(a,b){this.config_=a;this.request_=b;this.resolver_=new Qgd;this.state_=0};g=Rgd.prototype;g.resultPromise=function(){return this.resolver_.promise};g.isPending=function(){return this.state_===1};g.cancel=function(){switch(this.state_){case 1:this.state_=2;this.onError_("CANCELLED");break;case 0:this.state_=3,this.resolver_.reject(1)}};
g.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=aKa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);g2b(b,this.config_.timeoutSec*1E3).finally(function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resultPromise()};
g.onResponse_=function(a){if(this.state_!==3)if(a){try{var b=this.request_.processResponse(a)}catch(c){this.onError_(c,2);return}try{this.resolver_.resolve(b),this.request_.close(0)}finally{this.state_=3}}else this.onError_(a)};
g.onError_=function(a,b){b=b===void 0?0:b;if(this.state_!==3){var c=2;a==="TIMEOUT"?c=4:a==="CANCELLED"?c=1:a&&typeof a==="object"?(a&&(c=a.code||2),c===2&&(c=Cp("result.error.code",a)||a.status,c=Number(c),c=gyc.has(c)?gyc.get(c):c>=200&&c<300?0:c>=400&&c<500?9:c>=500&&c<600?13:2,c!==2||b||(b=(a.message||"").startsWith("Rpc failed due to xhr error.")?3:0))):c=2;try{!this.config_.authErrorHandler||c!==16&&c!==7||this.config_.authErrorHandler(),this.resolver_.reject(c),this.request_.close(c,b)}finally{this.state_=
3}}};var Sgd=Symbol("fg"),Tgd=function(){};Tgd.prototype.intercept=function(a,b){return b(a).then(function(c){var d=c.getMetadata();if(d){d=Number(d["content-length"])||0;var e=c.responseMessage;e&&isFinite(d)&&(e[Sgd]=d)}return c})};var Ugd=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};Ugd.prototype.getMetric=function(){return this.metric_};Ugd.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
Ugd.prototype.processResponse=function(a){this.metric_.stop("network");this.metric_.start("processed");try{return this.request_.processResponse(a)}catch(b){throw this.metric_.logError(b&&b.message||"processResponse",b),b;}finally{this.metric_.stop("processed"),this.contentLength_=a&&a[Sgd]||0}};Ugd.prototype.close=function(a,b){b=b===void 0?0:b;this.request_.close(a,b);this.metric_.stop("total");this.metric_.status(a,b,this.contentLength_)};var Vgd=function(a){this.config_=a;this.pendingRpcs_=new Set},Xgd=function(a,b){b=new Ugd(b);b=new Rgd(a.config_,b);a.pendingRpcs_.add(b);Wgd(a,b);return b.resultPromise()},Wgd=function(a,b){w(function(c){if(c.nextAddress==1)return te(c,2,3),x(c,b.send(),3);if(c.nextAddress!=2)return ue(c),a.pendingRpcs_.delete(b),we(c,0);xe(c);return c.jumpTo(3)})};var l2b=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new Vgd(a);this.rpcClient_=new Ogd(this.clientConfig_.apiRoot_)},Zgd=function(a,b){var c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:var q=Ygd(b);if(c=a.inflightRequests_.get(q)||null)return k.return(c);d=new Pgd(b,a.rpcClient_);te(k,2,3);e=Xgd(a.dispatcher_,d);q=Ygd(b);a.inflightRequests_.set(q,
e);return x(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:ue(k);q=Ygd(b);a.inflightRequests_.delete(q);we(k,0);break;case 2:h=xe(k);if(Number.isFinite(h))throw new gt(7,h);throw new gt(7);}})},Ygd=function(a){a=X1b(a);if(!a)throw Ggd;return a};var $gd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($gd,V);g=$gd.prototype;g.getInstanceId=function(){return Oh(this,1)};g.setInstanceId=function(a){return Rl(this,1,a)};g.clearInstanceId=function(){tq(this,1)};g.hasInstanceId=function(){return ml(this,1)};g.getInstanceIdOrUndefined=function(){return fr(this,1)};g.getRequestId=function(){return Oh(this,2)};g.getRequestType=function(){return pl(this,4)};g.setRequestType=function(a){return Sl(this,4,a)};
g.getSourceType=function(){return pl(this,6)};g.setSourceType=function(a){return Sl(this,6,a)};g.getClient=function(){return pl(this,7)};g.setClient=function(a){return Sl(this,7,a)};g.hasClient=function(){return nl(this,7)};g.getErrorType=function(){return pl(this,8)};g.setErrorType=function(a){return Sl(this,8,a)};g.hasErrorType=function(){return nl(this,8)};g.getStatusCode=function(){return pl(this,10)};g.setStatusCode=function(a){Sl(this,10,a)};g.hasStatusCode=function(){return nl(this,10)};var m2b=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=gu(new hu,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(739336995).setEnableClearcut(b.getEnableClearcut())};g=m2b.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Hf");};g.createStatusMetric=function(){throw Error("Hf");};g.createErrorMetric=function(){throw Error("Hf");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);Hl(a,3,b);return a};var R8=function(a,b){this.metrics_=a;this.state_=new rI(b);this.label_="total";this.source=b};R8.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};R8.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var p2b=function(a,b,c){this.worker_=a;this.metrics_=lt(b);this.runtimeConfig_=c},ahd=function(a,b,c){var d,e,f=new $gd,h=V1b();f=Rl(f,2,h).setRequestType(b.getRequestType());b=Sl(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Sl(b,9,a.runtimeConfig_.getPeopleApiEnv())},bhd=function(a,b){b.setSourceType(a.getSourceOrUndefined());b.setInstanceId(a.getInstanceIdOrUndefined());a=a.getError();(a==null?0:a.hasErrorType())&&b.setErrorType(a.getErrorType());
(a==null?0:a.hasStatusCode())&&b.setStatusCode(a.getStatusCode())};p2b.prototype.updateExperimentsCache=function(a,b){b=b===void 0?2:b;var c=this,d,e,f;return w(function(h){if(h.nextAddress==1)return d=ahd(c,a,b),e=new R8(c.metrics_,d),e.start(),x(h,c.worker_.updateExperimentsCache(a,b),2);f=h.yieldResult;bhd(f,d);e.stop();return h.return(f)})};
p2b.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=ahd(this,a,b),d=new R8(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);bhd(a,c);d.stop();return a};var chd=function(a){this.timer=a;this.count=0},r2b=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=Ik(this.clientConfig_.getClient(),11,14400)*1E3;this.eventHandler_=new Is(this)};r2b.prototype.updateExperimentsCache=function(a,b){try{return dhd(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(j2b(c))}};r2b.prototype.getCachedExperiments=function(a,b){try{return dhd(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return j2b(c)}};
var dhd=function(a,b){var c=X1b(b);if(!c)throw new gt(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new tF(a.refreshRateMs_);a.eventHandler_.listen(d,"tick",function(){if(a.worker_){b.clearInstanceId();a.worker_.updateExperimentsCache(b,1);var e=a.refreshers_.get(c);e.count++;var f=Ik(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new chd(d))}a.refreshers_.get(c)};var ehd=function(){},q2b=function(a,b){this.cache_=a;this.loader_=b};
q2b.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return w(function(k){if(k.nextAddress==1){e=d=null;try{d=fhd(c,a)}catch(G){e=G}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));te(k,3);return x(k,ghd(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var q=k.return,u=f,A=e;A=A===void 0?null:A;u=(new i2b).setExperimentFlags(u.getExperimentFlags()).setExperimentIdsList(u.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());A&&u.setError(h2b(A));
return q.call(k,u)}h=xe(k);return k.return(j2b(h))})};q2b.prototype.getCachedExperiments=function(a){try{var b=fhd(this,a);if(b){var c=(new i2b).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&ghd(this,a).catch(ehd);return c}ghd(this,a).catch(ehd);return j2b()}catch(d){return j2b(d)}};
var fhd=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof gt)throw d;throw new gt(3);}},ghd=function(a,b){var c,d;return w(function(e){if(e.nextAddress==1)return te(e,2),b.hasInstanceId()||b.setInstanceId(V1b()),x(e,Zgd(a.loader_,b),4);if(e.nextAddress!=2)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=xe(e);if(d instanceof gt)throw d;throw new gt(2);})};var k2b;var hhd=function(a){this.clientConfig_=a;this.worker_=s2b(this.clientConfig_)};hhd.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var H3b=function(){this.peopleApiEnv_=4};H3b.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};H3b.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var ihd=function(a,b){this.client_=a;this.request_=b;this.response_=null};ihd.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};ihd.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(Gk)};var G3b=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=739336995};G3b.prototype.prefetch=function(a){var b=new xgd(this.clientConfig_,new H3b);a=jhd(this,a,"");s2b(b).updateExperimentsCache(a,2)};G3b.prototype.loadExperiments=function(a,b,c){var d=new xgd(this.clientConfig_,b),e=jhd(this,a,c);s2b(d).updateExperimentsCache(e,2);b=new hhd(new xgd(this.clientConfig_,b));a=jhd(this,a,c);return new ihd(b,a)};
var jhd=function(a,b,c){var d=(new M8).setVersion(a.version_);b=(new N8).setApplication(b);return(new wgd).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var v2b=new I3b(new B8,new tgd);var w2b=Vs.getInstance();var x2b=Vs.getInstance();var khd=new cE(OL.WEEKDAY_MONTH_DAY_MEDIUM),lhd=new cE(7);new cE(OL.WEEKDAY_MONTH_DAY_MEDIUM);var mhd=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var nhd=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText;a=a.styleClass;return Zs('<div class="'+$s("peoplekitComponentsTagTag")+" "+(a?$s(a):"")+'" peoplekit-id="'+$s("mQXP")+'">'+(KI(b)?'<img class="'+$s("peoplekitComponentsTagIcon")+'" src="'+$s(qAc(b))+'" alt="'+$s(c)+'"><div'+(d?"":' class="'+$s("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+$s("peoplekitComponentsTagText")+'">'+vt(c)+"</div></div>":'<div class="'+$s("peoplekitComponentsTagText")+'">'+vt(c)+"</div>")+
"</div>")};var z2b=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;ohd(this,{tags:d});D1b(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){ohd(h,k)})};g=z2b.prototype;g.getAllIds=function(){return[]};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};
g.getRoot=function(){return this.root};g.getSelection=function(){throw Error("cg");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=Fs(this.root,"Z306Oe");if(this.isOutOfOffice=a.getCurrentStatus()===4){if(a.getCurrentStatus()!==4)throw Error("gg");var c=c!=null?c:a.getCurrentStatusEndTime();a=new Date(Date.now());c=a.getYear()===c.getYear()&&a.getMonth()===c.getMonth()&&a.getDate()===c.getDate()?"Out of office - back at "+lhd.format(c):"Out of office - back on "+khd.format(c);Ez(b,String(c));this.root.classList.add("isOutOfOffice")}else Ez(b,
""),this.root.classList.remove("isOutOfOffice")}};g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:mhd.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=Fs(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=Lp(nhd,Object.assign({},a,{styleClass:c}));b.appendChild(a)};
g.setMetaIcon=function(a){var b=B_b(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var ohd=function(a,b){for(var c=l(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};z2b.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};z2b.prototype.dispose=function(){};var phd=function(a,b,c,d,e){this.delegate=A2b(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=D0b(Lt)};Y(phd,I8);phd.prototype.getAllIds=function(){return[this.id]};phd.prototype.getSelection=function(){return this.selection};var qhd=function(a,b,c,d,e,f,h,k){d=d===void 0?"":d;e=e===void 0?!1:e;return Zs('<div role="option" class="'+$s("peoplekitComponentsResultlistitemResultListItem")+" "+$s(d)+'" id="'+$s(a)+'" peoplekit-id="'+$s(a)+'" aria-disabled="'+$s(e)+'" aria-selected="false"><div class="'+$s("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+$s("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+$s(b)+'" data-name="'+$s(LI(c))+'">'+vt(f)+'</div><div class="'+$s("peoplekitComponentsResultlistitemCenter")+
'">'+vt(h)+'</div><div class="'+$s("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+$s("QChpEe")+'">'+vt(k)+'</div></div><div peoplekit-id="'+$s("Z306Oe")+'" class="'+$s("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},rhd=function(a,b,c,d){return Zs('<div class="'+$s("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+$s("peoplekitComponentsResultlistitemLabel")+" "+$s("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+$s("peoplekitComponentsResultlistitemLabelText")+
'" data-hovercard-id="'+$s(b)+'" data-name="'+$s(LI(a))+'" translate="no">'+vt(LI(a))+'</div><div peoplekit-id="'+$s("x00ATb")+'" class="'+$s("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+$s("peoplekitComponentsResultlistitemSublabel")+" "+$s("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+$s("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+$s(b)+'" data-name="'+$s(LI(a))+'"'+(d?"":' translate="no"')+">"+vt(LI(c))+"</div></div>":
"")+"</div>")},shd=function(a){return Zs('<div class="'+$s("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+$s("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+$s("d6MZcd")+'"></div>'+(KI(a)?vt(a):"")+"</div>")},thd=function(){var a=Zs,b=Zs,c='<div class="'+$s("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+$s("peoplekitComponentsResultlistitemWhiteCheck")+'">';var d=Zs('<svg viewBox="0 0 24 24" class="'+($s("peoplekitComponentsResultlistitemWhiteCheckSvg")+
'"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'));return a(shd(b(c+d+"</div></div>")))},uhd=function(){return Zs('<img class="'+$s("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+$s("SC3Htd")+'" alt="" src=""/>')};var vhd=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Zs(qhd(a.id,b,c,"isDisabled "+a.densityClass,!0,Zs(""+shd()),Zs(""+rhd(c,b,d,f)),Zs('<div class="'+$s("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+vt(e)+"</div>")))},whd=function(){var a=Zs,b='<div class="'+$s("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+$s(". Already selected")+'">';var c=Zs('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+
($s("peoplekitComponentsResultlistitemDisabledSelectedIcon")+'"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>'));return a(b+c+"</div>")};var xhd=function(a){this.delegate=a;var b=this;this.eventHandler=Js(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Y(xhd,I8);xhd.prototype.onClick=function(){this.toggleSelection()};var C2b=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("hg");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new qfd(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};g=C2b.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return[this.target]};
g.result=function(){return this.internalResult};g.getDisplayNameOverride=function(){return this.displayNameOverride};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};g.isPlaceholder=function(){return!1};var yhd=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return D2b(b)})};yhd.prototype.getLoggingToken=function(){return this.groupLoggingToken};var zhd=function(a,b,c,d,e,f){this.delegate=A2b(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=D0b(Lt)};Y(zhd,I8);zhd.prototype.getAllIds=function(){return[this.id]};zhd.prototype.toggleSelection=function(){var a=new yhd(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent(Y_b("pcw-select",this.root))};zhd.prototype.getSelection=function(){return this.selection};var Ahd=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Zs(qhd(a.id,b,c,a.densityClass,void 0,Zs(""+shd()),Zs(""+rhd(c,b,d,e)),Zs(""+uhd())))};var Chd=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&Bhd(this,this.getSelection());this.onDeselectionCallback=function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))};this.onSelectionCallback=function(d){Bhd(c,d)};S8(this.selectionsState,this.onDeselectionCallback);T8(this.selectionsState,this.onSelectionCallback)};Y(Chd,I8);
Chd.prototype.toggleSelection=function(){var a=this.selectionsState.get(this.id)?Y_b("pcw-deselect",this.getRoot()):Y_b("pcw-select",this.getRoot());this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var Bhd=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};Chd.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var Dhd=function(a,b,c,d,e,f,h){this.delegate=A2b(a,b,d,e,f,[2]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||D2b(b,b.getDisplayName())};Y(Dhd,I8);Dhd.prototype.onContextMenu=function(a,b){kl(this.clientConfig.internal,7)&&a.preventDefault();return I8.prototype.onContextMenu.call(this,a,b)};Dhd.prototype.getAllIds=function(){return[this.id]};Dhd.prototype.getSelection=function(){return this.selection};var Ehd=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Zs(qhd(a.id,b,c,a.densityClass,void 0,Zs(""+thd()),Zs(""+rhd(c,b,d,e)),Zs(""+uhd())))};var Fhd=function(a,b,c,d,e,f,h){this.delegate=A2b(a,b,d,e,f,[]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||D2b(b)};Y(Fhd,I8);Fhd.prototype.onContextMenu=function(a,b){kl(this.clientConfig.internal,7)&&a.preventDefault();return I8.prototype.onContextMenu.call(this,a,b)};Fhd.prototype.getAllIds=function(){return[this.id]};Fhd.prototype.getSelection=function(){return this.selection};var Ghd=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Zs(qhd(a.id,b,c,a.densityClass,void 0,Zs(""+thd()),Zs(""+rhd(c,b,d,e)),Zs(""+uhd())))};at.addCoreFactory({type:0,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,h=a.clientConfig;a=u2b(a);var k=Lp(Ehd,a);Rs({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[E2b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var q=Fs(k,"d6MZcd"),u=T1b(e.getDensity()),A;d=(A=d.backupAvatarUrl)!=null?A:"";e=Gs(q,a.photos,u,u,e,d);b=new Dhd(k,b,f,c,a.tags,e,h);return new xhd(new Chd(b,
f))},shouldCreate:function(){return!0}},configurationKey:void 0});
at.addCoreFactory({type:1,factory:{create:function(a){var b=B2b(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,h=c.getPrimaryTarget().getId();a=Ft(h)||Txc(h)?y2b(a):u2b(a);h=Object;var k=h.assign;a:switch(b){case 1:b=whd();break a;case 2:b=f.showSelectedIndicatorForDisabled?whd():Zs("");break a;default:b='<div class="'+$s("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=Zs(b+"DISABLED</div>")}b=Lp(vhd,k.call(h,{},a,{disableReason:b}));h=Fs(b,"d6MZcd");
k=T1b(e.getDensity());var q;f=(q=f.backupAvatarUrl)!=null?q:"";e=Gs(h,a.photos,k,k,e,f);return new phd(b,c,d,a.tags,e)},shouldCreate:function(a){return B2b(a)!==0}},configurationKey:void 0});
at.addCoreFactory({type:2,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.appearanceConfig,e=a.resultCustomizationConfig,f=a.clientConfig,h=a.selectionsState;a=y2b(a);var k=Lp(Ghd,a);Rs({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[E2b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var q=Fs(k,"d6MZcd"),u=T1b(d.getDensity()),A;e=(A=e.backupAvatarUrl)!=null?A:"";d=Gs(q,a.photos,u,u,d,e);b=new Fhd(k,b,h,c,a.tags,d,f);return new xhd(new Chd(b,
h))},shouldCreate:function(a){return Ft(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
at.addCoreFactory({type:3,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState;a=y2b(a);var h=Lp(Ahd,a);Rs({element:h,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[E2b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var k=Fs(h,"d6MZcd"),q=T1b(e.getDensity()),u;d=(u=d.backupAvatarUrl)!=null?u:"";e=Gs(k,a.photos,q,q,e,d);return new xhd(new zhd(h,b,f,c,a.tags,e))},shouldCreate:function(a){return Txc(a.result.getPrimaryTarget().getId())}},
configurationKey:void 0});var S2b=function(a,b,c,d,e,f,h,k,q,u){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.interactions=f;this.ariaParent=k;this.popupsContainer=q;this.grouping=u;this.navigatable=new dgd(new xfd({shouldWrap:!0}));this.intelligentComponentCollection=h.create();a=this.list;b=this.navigatable;c=this.intelligentComponentCollection;d=this.appearanceConfig;(e=this.grouping)?S1b(e)?a=new qgd(a,b,c,d,e):(a.isInteractive!==!1&&(a.isInteractive=!1,a.isInteractive?
a.root.setAttribute("role","listbox"):a.root.removeAttribute("role")),a=new rgd(a,b,c,d,e)):a=new ggd(a,b,c);this.sectionController=a};g=S2b.prototype;
g.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c=c.value,e=b,f=this.selectionsState,h=this.resultConfig,k=this.appearanceConfig,q=this.clientConfig,u=Ct(this.list.getRoot()),A=this.ariaParent,G=this.popupsContainer;d={result:d,selectionsState:f,resultConfig:h,appearanceConfig:k,clientConfig:q,isRightToLeft:u,interactions:this.interactions,resultCustomizationConfig:h.getResultCustomizationCallback()(d,e),ariaParent:A,popupsContainer:G};q=A_b(q);q=e4b(at,q).create(d);this.sectionController.getOrCreateSection(c).append(q)}};
g.clear=function(){this.sectionController.clear();this.popupsContainer.clear()};g.reset=function(a){this.sectionController.reset(a)};g.getNavigatable=function(){return this.navigatable};g.getResultListItems=function(){return this.sectionController.getItems()};var T2b=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};g=T2b.prototype;g.append=function(a,b){try{for(var c=l(a),d=c.next();!d.done;d=c.next()){var e=d.value;this.delegate.append([e],b);this.interactions.display(e)}}catch(f){throw this.health.createError(3,jt(f)),f;}};g.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,jt(a)),a;}};g.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,jt(b)),b;}};
g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getResultListItems=function(){return this.delegate.getResultListItems()};var R2b=function(a){a=a.header;return Zs('<div peoplekit-id="'+$s("aittld")+'">'+(a.length>0?'<div class="'+$s("peoplekitUiResultlistHeader")+'">'+vt(a)+"</div>":"")+'<div peoplekit-id="'+$s("tjneg")+'"></div></div>')};var Hhd=function(){return"Google makes suggestions based on your interactions."};var Ihd=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=Zs("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:Hhd(),learnMoreUrl:F2b(),learnMoreLinkText:"Learn more about suggestions."};var b={};this.groupConfigs=(b.CUSTOM={headerText:this.labels.custom},b.SUGGEST={headerText:this.labels.suggest,infoGroupConfig:a},b.SEARCH={headerText:this.labels.search,infoGroupConfig:a},b.HIDDEN={headerText:this.hiddenSuggestionsLabel,
collapsibleGroupConfig:{isInitiallyCollapsed:!0}},b)};Ihd.prototype.getGroupId=function(a){if(a.getResultType()===7)var b="CUSTOM";else{if(this.isSuggest)a="SUGGEST";else{var c;a=((b=a.getExtendedData())==null?void 0:(c=b.getExtension(i5b))==null?void 0:du(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};Ihd.prototype.reset=function(a){this.isSuggest=!a.trim()};var G2b=[Ihd];var O2b=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:Hhd(),learnMoreUrl:F2b(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};O2b.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};O2b.prototype.reset=function(a){this.isSuggest=!a.trim()};var P2b=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};P2b.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};P2b.prototype.reset=function(){};var Q2b=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};Q2b.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};Q2b.prototype.reset=function(){};var Jhd=function(a){this.delegate=a};g=Jhd.prototype;g.search=function(a,b,c,d){this.delegate.search(a,b,c,d)};g.attach=function(){this.delegate.attach()};g.detach=function(){this.delegate.detach()};g.isShown=function(){return this.delegate.isShown()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.dispose=function(){this.delegate.dispose()};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getRoot=function(){return this.delegate.getRoot()};g.canHide=function(){return this.delegate.canHide()};
g.hasFocus=function(){return this.delegate.hasFocus()};g.focus=function(){this.delegate.focus()};g.refresh=function(a){return this.delegate.refresh(a)};var Z2b=function(a,b,c,d,e,f){this.delegate=a;var h=this;this.peopleStore=b;this.clientConfig=d;this.autocompleteConfig=e;this.navigationInput=f;this.navigatable=this.getNavigatable();this.previouslyActiveElement=null;this.hideListener=function(k){return Khd(h,k)};this.unhideListener=function(k){return Lhd(h,k)};this.onContextMenuDisposedListener=function(k){if(h.navigationInput!==document.activeElement){var q;(q=h.navigatable.getItem(k))==null||q.deactivate();h.navigatable.reset()}};this.saveActiveElement=
function(){h.previouslyActiveElement=document.activeElement};this.onDialogDisposedListener=function(k){h.navigationInput===h.previouslyActiveElement&&(k=h.navigatable.getItem(k))&&h.navigatable.goToItem(k,0);var q;(q=h.previouslyActiveElement)==null||q.focus();h.previouslyActiveElement=null};this.hide=c.getHide();this.dispatcher=this.clientConfig.injectorService.actionEventDispatcher;this.dispatcher.subscribe(1,this.hideListener);this.dispatcher.subscribe(4,this.unhideListener);this.dispatcher.subscribe(7,
this.onContextMenuDisposedListener);this.dispatcher.subscribe(8,this.saveActiveElement);this.dispatcher.subscribe(9,this.onDialogDisposedListener)};Y(Z2b,Jhd);Z2b.prototype.search=function(a,b,c,d){this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};Jhd.prototype.search.call(this,a,b,c,d)};
Z2b.prototype.dispose=function(){this.dispatcher.unsubscribe(1,this.hideListener);this.dispatcher.unsubscribe(4,this.unhideListener);this.dispatcher.unsubscribe(7,this.onContextMenuDisposedListener);this.dispatcher.unsubscribe(8,this.saveActiveElement);this.dispatcher.unsubscribe(9,this.onDialogDisposedListener);Jhd.prototype.dispose.call(this)};
var Khd=function(a,b){return w(function(c){switch(c.nextAddress){case 1:return te(c,2),x(c,a.hide.hideResults(b),4);case 4:return x(c,a.refreshResults(),5);case 5:uu(c,0);break;case 2:xe(c),Mhd(a),ze(c)}})},Lhd=function(a,b){return w(function(c){switch(c.nextAddress){case 1:return te(c,2),x(c,a.hide.unhideResults(b),4);case 4:return x(c,a.refreshResults(),5);case 5:uu(c,0);break;case 2:xe(c),Nhd(a),ze(c)}})};
Z2b.prototype.refreshResults=function(){var a=this;return w(function(b){if(b.nextAddress==1)return a.getRoot().classList.add("isLoading"),a.peopleStore.flushCache(3),x(b,a.peopleStore.warmUpCache(),2);a.currentSearchState?Jhd.prototype.search.call(a,a.currentSearchState.query,a.currentSearchState.anchor,a.currentSearchState.showSuggestions,a.currentSearchState.listener):a.getRoot().classList.remove("isLoading");ze(b)})};
var Mhd=function(a){a.hideErrorDialog=k1b(a.getRoot(),a.autocompleteConfig);a.hideErrorDialog.subscribeToAction(function(){var b;(b=a.hideErrorDialog)==null||b.dispose()})},Nhd=function(a){a.unhideErrorDialog=m1b(a.getRoot(),a.autocompleteConfig);a.unhideErrorDialog.subscribeToAction(function(){var b;(b=a.unhideErrorDialog)==null||b.dispose()})};var U8=function(a,b){Ws.call(this,a,b)};Y(U8,Ws);U8.prototype.tabUpdate=function(){var a=this.getSpotlitItem();if(a){a=a.getRoot();var b=this.ariaParent;var c=uuc(b,"activedescendant");b=wz(b).getElementById(c);(c=a.querySelector('[id="'+(a.id+'-2ab"]')))?mH(this.ariaParent,b===c?a:c):I2b(a)&&(a=Array.from(a.querySelectorAll('[class~="TdcT2c"]')),b=b?a.indexOf(b):-1,b!==-1&&mH(this.ariaParent,a[(b+1)%a.length]))}};
U8.prototype.onKeyDown=function(a){a.event.keyCode===9&&this.tabUpdate();Ws.prototype.onKeyDown.call(this,a)};U8.prototype.next=function(a){a=Ws.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),I2b(b)&&Ohd(this,b));return a};U8.prototype.prev=function(a){a=Ws.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),I2b(b)&&Ohd(this,b));return a};var Ohd=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&mH(a.ariaParent,b)};var J2b=function(a,b,c,d,e,f,h,k,q){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=h;this.clientConfig=k;this.peopleStore=q;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.inputFocusListeners=[];this.inputBlurListeners=[];this.navigatable=new U8(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=S0b({getPrevKeyCode:function(){return 38},
getNextKeyCode:function(){return 40}},{shouldReactToHomeEnd:!1});this.eventHandler=Js(this);C1b(this.root,0)};g=J2b.prototype;
g.search=function(a,b,c,d){var e=this;this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.getRoot().classList.add("isLoading");C1b(this.root,1);if(a){var f=Phd(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=Phd(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};
g.focus=function(){var a;(a=this.navigationInput)==null||a.focus()};g.hasFocus=function(){return this.navigationInput===document.activeElement};
g.refresh=function(a){var b=this;return w(function(c){switch(c.nextAddress){case 1:te(c,2,3);b.getRoot().classList.add("isLoading");if(!a){c.jumpTo(3);break}return x(c,a,6);case 6:return b.peopleStore.flushCache(3),x(c,b.peopleStore.warmUpCache(),3);case 3:ue(c);b.currentSearchState?b.search(b.currentSearchState.query,b.currentSearchState.anchor,b.currentSearchState.showSuggestions,b.currentSearchState.listener):b.getRoot().classList.remove("isLoading");we(c,0);break;case 2:xe(c),c.jumpTo(3)}})};
g.attach=function(){var a=this;this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(b){b.preventDefault();b.stopPropagation()}),kl(this.clientConfig.internal,9)&&this.eventHandler.listen(this.root,"contextmenu",function(b){var c=a.navigatable.getItem(b.target);c&&(a.navigatable.getSpotlitItem()!==c&&a.navigatable.goToItem(c,0),a.navigatable.onContextMenu(Xs(b),function(){}))}),this.eventHandler.listen(this.navigationInput,
"focus",function(b){b={event:b};for(var c=l(a.inputFocusListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}),this.eventHandler.listen(this.navigationInput,"blur",function(b){b={event:b};for(var c=l(a.inputBlurListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();C1b(this.root,0)};g.isShown=function(){return!0};g.canHide=function(){return!1};
g.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.update=function(a,b,c,d){this.getRoot().classList.remove("isLoading");var e=a.getResults();a=a.getMetadata();var f=a.getQuery();this.resultList.append(e,{query:f});e=this.resultList.getResultListItems();this.attach();var h=!1;e.length>0||this.navigatable.size()?(h=!0,this.root.classList.remove("noResults")):a.getIsLastCallback()&&(h=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:e.length,hasContent:h});kl(this.clientConfig.internal,7)&&document.activeElement!==
this.navigationInput||(d&&this.config.getAutoActivateFirstSearchResult()||!d&&this.config.getAutoActivateFirstSuggestion())&&!this.navigatable.getSpotlitItem()&&(e.length?this.navigatable.goToItem(e[0],0):this.navigatable.size()&&this.navigatable.goToIndex(0,0));if(a.getIsLastCallback())for(C1b(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length},d=l(this.resultsLoadingCompleteListeners),a=d.next();!a.done;a=d.next())a=a.value,a(b);else C1b(this.root,4);c.stop()};
g.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey;if(a.event.keyCode===13||b&&this.config.getUseTabForResultSelection()){if(b=this.navigatable.getActiveItems(),b.length){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}}else a.event.keyCode!==40||this.navigatable.getSpotlitItem()||(b=this.resultList.getResultListItems(),b.length&&(this.navigatable.goToItem(b[0],0),a.preventDefault(),a.stopPropagation()))};
g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};var Qhd=function(a){return Zs('<div tabindex="-1" class="'+$s("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+$s("I8ejUe")+'">'+vt(a)+"</div>")};var M2b=function(){var a=Zs,b='<div class="'+$s("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+$s("yDHfq")+'"><div class="'+$s("peoplekitComponentsAutocompleteInlineListContainer")+'">'+Qhd(Zs('<div peoplekit-id="'+$s("tjneg")+'"></div>'))+'</div><div class="'+$s("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';var c='<div class="'+$s("peoplekitComponentsCircularprogressCircularProgress")+(" "+$s("isActive"))+'" data-loadingmessage="'+$s("Loading...")+'" data-active="true"'+
(KI()?lAc(JI(void 0,Wzc)?(void 0).getContent():uAc()):"")+'><div class="'+$s("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+$s("vyyg5")+'">'+vt("Loading...")+'</div><div class="'+$s("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+$s("peoplekitComponentsCircularprogressColorOne")+" "+$s("exportColorOne")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+
" "+$s("peoplekitComponentsCircularprogressLeft")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressRight")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+
" "+$s("exportCircle")+'"></div></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+$s("peoplekitComponentsCircularprogressColorTwo")+" "+$s("exportColorTwo")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressLeft")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressRight")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+$s("peoplekitComponentsCircularprogressColorThree")+" "+$s("exportColorThree")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+
" "+$s("peoplekitComponentsCircularprogressLeft")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressRight")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+
" "+$s("exportCircle")+'"></div></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+$s("peoplekitComponentsCircularprogressColorFour")+" "+$s("exportColorFour")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressLeft")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div><div class="'+$s("peoplekitComponentsCircularprogressCircleClipper")+" "+$s("peoplekitComponentsCircularprogressRight")+'"><div class="'+$s("peoplekitComponentsCircularprogressCircle")+" "+$s("exportCircle")+'"></div></div></div></div></div>';c=Zs(c);return a(b+c+'</div><div peoplekit-id="'+$s("i2HSVe")+'"></div></div>')},U2b=function(){return Zs('<div class="'+$s("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var W2b=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+$s("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+$s(a)+'"':"")+'><p class="'+$s("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+vt(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+$s("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?vt(c)+(d?" ":""):""),d&&(a+='<a jsname="'+$s("viORvd")+'" class="'+$s("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+$s(wt(d))+'">',a=e?a+vt(e):a+"Learn more",a+="</a>"),a+="</p>";return Zs(a+"</div>")};var V2b=function(a,b){this.parent=a;this.config=b};V2b.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=Lp(W2b,a);this.parent.appendChild(this.root);return!0};var Y2b=function(){};Y2b.prototype.update=function(){return!1};var X2b=function(){};X2b.prototype.update=function(){return!0};var Rhd=function(){return Zs('<div peoplekit-id="'+$s("i2HSVe")+'"></div>')},Shd=function(a){return Zs('<div peoplekit-id="'+$s(a.id)+'"></div>')};var N2b=function(a){this.parent=a;this.root=Lp(Rhd);this.parent.appendChild(this.root)};N2b.prototype.get=function(a){if(B_b(this.root,a).length===0){var b=Lp(Shd,{id:a});this.root.appendChild(b)}return Fs(this.root,a)};N2b.prototype.clear=function(){this.root.replaceChildren()};N2b.prototype.dispose=function(){this.root.remove()};N2b.prototype.getRoot=function(){return this.root};var $2b=function(a,b,c,d,e){var f=this;this.root=a;this.navigationInput=b;this.inlineAutocomplete=c;this.selectionsState=d;this.config=e;this.lastShowTime=0;this.popup=t0b(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=Js(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};g=$2b.prototype;g.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};g.attach=function(){var a=this;T8(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);this.eventHandler.listen(this.root,"mouseover",function(b){Date.now()-a.lastShowTime<100&&(b.preventDefault(),b.stopPropagation())})};g.onSelect=function(){this.hide()};
g.onSelectAttempt=function(){this.hide()};g.onKeyDown=function(a){this.isShown()&&a.event.keyCode===27&&(this.hide(),a.preventDefault(),a.stopPropagation())};g.detach=function(){this.hide()};g.isShown=function(){return this.popup.isShown()};g.canHide=function(){return!0};
g.dispose=function(){this.detach();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};g.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};g.getRoot=function(){return this.root};g.hasFocus=function(){return this.inlineAutocomplete.hasFocus()};
g.focus=function(){this.inlineAutocomplete.focus()};g.refresh=function(a){return this.inlineAutocomplete.refresh(a)};g.update=function(a){a.hasContent&&this.show()};
g.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("Vf`"+b);}}a:{var c=this.config.getDensity();switch(c){case 0:c=420;break a;case 1:c=420;break a;case 2:c=320;break a;default:throw Error("Vf`"+c);}}this.root.style.width=TI(Math.max(Math.min(c,a),b),!0);a:switch(a=this.config.getDensity(),
a){case 0:a=Number("64");break a;case 1:a=Number("52");break a;case 2:a=Number("44");break a;default:throw Error("Vf`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.root.style.minHeight=a+"px";this.popup.show(this.anchor)};g.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var L2b=function(){return Zs('<div class="'+$s("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+$s("noeiCf")+'" style="display: none;"></div>')};var Thd=function(){this.batches=new Map};Thd.prototype.add=function(a,b){var c=b.sort().join("-");this.batches.has(c)||this.batches.set(c,{ids:[],features:b});this.batches.get(c).ids.push(a)};var b3b=function(a,b){this.service=a;this.resolveComponents=b};
b3b.prototype.update=function(a){var b=this;a=l([].concat(p(a.batches.values())));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.features.length){c=this.service.for(d.ids);d=l(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){Uhd(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){Uhd(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var Uhd=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=l(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};var Vhd=new Set([1,3,20]),Whd=function(a){var b=this;this.idToComponent=new Map;this.updater=c3b(a,function(c){return b.resolveComponents(c)})};g=Whd.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return Vhd.has(h.getType())})});a=[];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=l(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
g.remove=function(a){a=l(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$157:void 0},b=a.next()){c.component$jscomp$157=b.value;b=l(c.component$jscomp$157.getAllIds());for(var d=b.next();!d.done;d=b.next()){d=String(d.value);var e=this.idToComponent.get(d);e&&this.idToComponent.set(d,e.filter(function(f){return function(h){return h!==f.component$jscomp$157}}(c)))}}};g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
g.refresh=function(a){var b=new Thd;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=l(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};g.clear=function(){this.idToComponent.clear()};var Xhd=function(){};Xhd.prototype.append=function(){};Xhd.prototype.remove=function(){};Xhd.prototype.refresh=function(){};Xhd.prototype.clear=function(){};var N3b=function(a){this.peopleIntelligence=a};N3b.prototype.create=function(){return this.peopleIntelligence?new Whd(this.peopleIntelligence):new Xhd};var Yhd=Object.freeze(new Map([[5,1]]));var Zhd=function(){this.entryPoint_=0};Zhd.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};Zhd.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};Zhd.prototype.serialize=function(){return[this.entryPoint_].toString()};var $hd=Object.freeze(new Zhd);var aid=function(){this.originator_=0};aid.prototype.setOriginator=function(a){this.originator_=a;return this};aid.prototype.getOriginator=function(){return this.originator_};var f3b=function(a,b,c){var d=this;this.reporter=a.getReporter((new Zhd).setPeoplekitEntryPoint(c));T8(b,function(e,f,h){d.select(e,h)},0);S8(b,function(e,f,h){d.deselect(e,h)},0);bid(b,function(e,f,h,k){d.replace(e,k)},0);cid(b,function(e,f){d.selectExplodingGroup(e,f)})};f3b.prototype.display=function(a){this.reporter.reportDisplay(d3b(a.getTargetList()))};f3b.prototype.select=function(a,b){a.isPlaceholder()||did(this,kt([a]),b)};
f3b.prototype.selectExplodingGroup=function(a,b){did(this,[a.getLoggingToken()],b)};var did=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new aid).setOriginator(Yhd.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};g=f3b.prototype;g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(kt([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(kt(a))};g.save=function(a){this.reporter.reportSave(kt(a))};
g.send=function(a){this.reporter.reportSend(kt(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var eid=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};eid.prototype.call=function(a){var b=this;if(!this.isBatchingInternal){var c=Date.now(),d=c-this.lastBatchTime;this.lastBatchTime=c;this.isBatchingInternal=!0;this.timerId=Yq(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};eid.prototype.cancel=function(){Zq(this.timerId);this.isBatchingInternal=!1};var P3b=function(a,b,c,d,e,f){var h=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new eid;T8(this.selectionsState,function(){h.notifySelectionChanged(!1)});S8(this.selectionsState,function(){h.notifySelectionChanged(!0)})};g=P3b.prototype;
g.search=function(a,b){this.config.getClearSelectionsOnSearch()&&this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){d.count>0&&!c&&(c=!0)})};g.select=function(a){this.selectionsState.select(a)};g.deselect=function(a){this.selectionsState.deselect(a)};g.isShown=function(){return this.autocomplete.isShown()};g.report=function(a){var b=b===void 0?[]:b;b=b.length?b:this.selectionsState.asArray();e3b(this.interactions,a,b)};g.cancel=function(){this.autocomplete.detach()};
g.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};g.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
g.notifySelectionChanged=function(a){var b=this;this.selectionChangedAutoBatcher.call(function(){for(var c=b.selectionsState.asArray(),d=l(b.selectionChangedListeners),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.listener;f=f.listenToDeselections;a&&!f||e(c,a)}})};var M3b=function(a){a=a||{};a=a.classes;return Zs('<div peoplekit-id="'+$s("nVhUhf")+'"'+(a?' class="'+$s(a)+'"':"")+"></div>")};var fid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fid,V);g=fid.prototype;g.getClientId=function(){return pl(this,1)};g.setClientId=function(a){return Sl(this,1,a)};g.getEntryPoint=function(){return pl(this,5)};g.setEntryPoint=function(a){return Sl(this,5,a)};g.getSocialClient=function(){return X(this,iI,2)};g.setSocialClient=function(a){return W(this,iI,2,a)};g.setVersionName=function(a){return Rl(this,3,a)};g.getBaselineCl=function(){return Dl(this,4)};
g.setBaselineCl=function(a){return Hl(this,4,a)};g.hasBaselineCl=function(){return yl(this,4)};g.getBaselineClOrUndefined=function(){return Mu(this,4)};g.getComponentFlow=function(){return pl(this,7)};g.setComponentFlow=function(a){return Sl(this,7,a)};var V8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(V8,V);var gid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gid,V);g=gid.prototype;g.getLabel=function(){return pl(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.getCause=function(){return pl(this,2)};g.setCause=function(a){Sl(this,2,a)};var hid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hid,V);g=hid.prototype;g.getLabel=function(){return pl(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.getValue=function(){return Dl(this,2,zb(1))};g.getValue_asLegacyNumberOrString=function(){return zl(this,2,1)};g.setValue=function(a){return Hl(this,2,a)};g.hasValue=function(){return yl(this,2)};var iid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iid,V);g=iid.prototype;g.getLabel=function(){return Oh(this,1)};g.setLabel=function(a){return Rl(this,1,a)};g.hasLabel=function(){return ml(this,1)};g.getCause=function(){return Oh(this,2)};g.setCause=function(a){Rl(this,2,a)};var jid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jid,V);g=jid.prototype;g.getLabel=function(){return pl(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.setLatencyUsec=function(a){Hl(this,2,a)};g.getCacheStatus=function(){return pl(this,3)};g.setCacheStatus=function(a){return Sl(this,3,a)};var kid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kid,V);kid.prototype.getInterfaceType=function(){return pl(this,1)};kid.prototype.setInterfaceType=function(a){return Sl(this,1,a)};var lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lid,V);g=lid.prototype;g.getCount=function(){return X(this,hid,3)};g.getMutableCount=function(){return Du(this,hid,3)};g.setCount=function(a){return W(this,hid,3,a)};g.getMutableLatency=function(){return Du(this,jid,4)};g.setLatency=function(a){W(this,jid,4,a)};g.getError=function(){return X(this,iid,5)};g.setError=function(a){W(this,iid,5,a)};g.hasError=function(){return nk(this,iid,5)};var mid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mid,V);mid.prototype.setElementIndex=function(a){Pl(this,2,a)};mid.prototype.setUserAction=function(a){return Sl(this,4,a)};var nid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nid,V);g=nid.prototype;g.getClientInterface=function(){return X(this,fid,3)};g.setClientInterface=function(a){return W(this,fid,3,a)};g.getMetadata=function(){return X(this,V8,4)};g.getMutableMetadata=function(){return Du(this,V8,4)};g.setMetadata=function(a){W(this,V8,4,a)};var h3b=function(a,b){this.entryPoint=b;this.logContext=F6b(gu(new hu,"peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(739336995).setEnableClearcut(a.getEnableClearcut()),v2b.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=h3b.prototype;g.getLogContext=function(){return this.logContext};
g.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return oid(this,a,b)};g.createStatusMetric=function(){throw Error("Hf");};g.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(sI(b,"total"));return oid(this,a,b)};g.createErrorMetric=function(a,b){return oid(this,a,b)};
var oid=function(a,b,c){a=(new nid).setClientInterface((new fid).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return W(a,lid,2,c)};var pid=function(a,b){this.metrics_=a;this.state_=new rI(b);this.source=b};pid.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var qid=function(a,b){this.metrics_=a;this.state_=new rI(b);this.source=b};qid.prototype.report=function(){this.metrics_.error(this.state_)};var j3b=function(a,b){this.metrics=a;this.userInterfaceType=b};j3b.prototype.createCount=function(a,b){a=rid(this,a,3);a.getMutableCount().setLabel(b);return new pid(this.metrics,a)};j3b.prototype.createError=function(a,b,c){a=rid(this,a,5);Du(a,gid,8).setLabel(b).setCause(c);return new qid(this.metrics,a)};var rid=function(a,b,c){var d=new lid;c=Sl(d,1,c);a=(new kid).setInterfaceType(a.userInterfaceType);b=Sl(a,2,b);return W(c,kid,2,b)};var i3b=function(a){this.trackers=a},Phd=function(a){a=a.trackers;var b=rid(a,2,4);b.getMutableLatency().setLabel(8);return new R8(a.metrics,b)};i3b.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};i3b.prototype.createError=function(a,b,c){return this.trackers.createError(c===void 0?0:c,a,b===void 0?0:b)};var W8=function(){this.itemsByPriority=[]};W8.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};W8.prototype.remove=function(a){for(var b=l(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};W8.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(p(a))})};var qt=function(){this.selectionCallbacks=new W8;this.deselectionCallbacks=new W8;this.selectionReplacedCallbacks=new W8;this.selectionAttemptedCallbacks=new W8;this.explodingGroupSelectionCallbacks=new W8;this.selectionsState=[]};
qt.prototype.select=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?0:c;var d=String(a.id());if(this.selectionsState.find(function(e){return d===String(e.id())}))return l3b(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),l3b(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),l3b(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
qt.prototype.selectExplodingGroup=function(a,b){b=b===void 0?0:b;var c=this.explodingGroupSelectionCallbacks.asArray(),d;c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;try{e(a,b)}catch(f){d||(d=f)}}if(d)throw d;a=l(a.explodedMembers);for(d=a.next();!d.done;d=a.next())this.select(d.value)};qt.prototype.deselect=function(a,b){b=b===void 0?0:b;var c=String(a.id()),d=this.selectionsState.findIndex(function(e){return c===String(e.id())});d<0||(this.selectionsState.splice(d,1),l3b(a,d,b,this.deselectionCallbacks.asArray()))};
qt.prototype.toggle=function(a,b){b=b===void 0?0:b;var c=String(a.id());if(this.selectionsState.findIndex(function(d){return c===String(d.id())})<0)return this.select(a,-1,b),!0;this.deselect(a,b);return!1};var T8=function(a,b,c){a.selectionCallbacks.add(b,c===void 0?2:c)},S8=function(a,b,c){a.deselectionCallbacks.add(b,c===void 0?2:c)},bid=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},cid=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};g=qt.prototype;
g.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};g.at=function(a){return this.selectionsState[a]};g.replace=function(a,b,c){c=c===void 0?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(e<0||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;m3b(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};
g.pop=function(a){a=a===void 0?0:a;var b=this.selectionsState.pop();if(b)return l3b(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.asArray=function(){return this.selectionsState.slice()};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;this.selectionsState.length>0;)this.deselect(this.selectionsState[0])};for(var sid={ARROW_KEYS:{string:"arrow_keys",xid:"Wxn7ub"},AUTOMATED:{string:"automated",xid:"wjpLYc"},CLICK:{string:"click",xid:"cOuCgd"},DRAGEND:{string:"dragend",xid:"RlD3W"},DROP:{string:"drop",xid:"DaY83b"},GENERIC_CLICK:{string:"generic_click",xid:"szJgjc"},HOVER:{string:"hover",xid:"ZmdkE"},IMPRESSION:{string:"impression",xid:"xr6bB"},KEYBOARD_ENTER:{string:"keyboard_enter",xid:"SYhH9d"},KEYPRESS:{string:"keypress",xid:"Kr2w4b"},LONG_PRESS:{string:"long_press",xid:"tfSNVb"},MOUSEOVER:{string:"mouseover",
xid:"FrfE3b"},RIGHT_CLICK:{string:"rightclick",xid:"CYQmze"},SCROLL:{string:"scroll",xid:"XuHpsb"},SWIPE:{string:"swipe",xid:"eteedb"},VIS:{string:"vis",xid:"HkgBsf"}},n3b=r3b(sid),tid=new Map,uid=l(Object.keys(sid)),vid=uid.next();!vid.done;vid=uid.next()){var wid=vid.value;tid.set(sid[wid].xid,sid[wid].string)}
var p3b=r3b({TRACK:{string:"track",xid:"u014N"},INDEX:{string:"index",xid:"cQYSPc"},MUTABLE:{string:"mutable",xid:"dYFj7e"},COMPONENT_ID:{string:"cid",xid:"cOuyq"},TEST_CODE:{string:"tc",xid:"DM6Eze"}});var X8=function(a,b){this.visualElementID=a;this.index_=null;this.testCodes_=[];this.componentID_=void 0;this.retain_cached_impression_=this.mutable_=!1;this.attribute_=null;this.metadataHandlers_=[];this.xidTagComponents_=b||!1;this.tracks_=new Set};X8.prototype.getID=function(){return this.visualElementID};var Y8=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};g=X8.prototype;g.setIndex=function(a){this.index_=a};g.getIndex=function(){return this.index_};
g.setComponentID=function(a){this.componentID_=a};g.getComponentID=function(){return this.componentID_};g.isMutable=function(){return this.mutable_};g.setAttribute=function(a){this.attribute_=a;return this};g.getAttribute=function(){return this.attribute_};var xid=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};X8.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?o3b(a):a};
X8.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?q3b(a):a};X8.prototype.isMutable=X8.prototype.isMutable;var yid=function(a){X8.call(this,a)};Y(yid,X8);var Z8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Z8,V);Z8.prototype.setVeIndex=function(a){Pl(this,1,a)};var zid=function(a,b){Pl(a,2,b)};Z8.prototype.setElementIndex=function(a){Pl(this,5,a)};Z8.prototype.getResultIndex=function(){return Ik(this,6,-1)};Z8.prototype.setResultIndex=function(a){Pl(this,6,a)};var Aid=[0,zv,-1,2,zv,-4,Av,zv,Wac,pfc,zv,[0,Vac,zv]];var Bid=ana(Z8,Aid),Cid=function(a){return function(b){var c=new Qac;Yma(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Lh(a));return Rac(c)}}(Aid);var Did=function(a,b){this.el_=a;this.veTag_=b;this.loggedImpression_=!1;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};Did.prototype.getTag=function(){return this.veTag_};Did.prototype.getElement=function(){return this.el_};var Fid=function(a){var b=Eid++;a.traversalOrder_=b};Did.prototype.setParent=function(a){this.parent_=a};Did.prototype.getParent=function(){return this.parent_};
var Gid=function(a){if(a.impressionEventID){var b=new Z8;b.setVeIndex(a.traversalOrder_);zid(b,a.getTag().getID());W(b,qz,13,a.impressionEventID);a=Cid(b);return"0"+P8b(a,4)}};var x3b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(x3b,V);g=x3b.prototype;g.getClientId=function(){return pl(this,1)};g.setClientId=function(a){return Sl(this,1,a)};g.getEntryPoint=function(){return pl(this,2)};g.setEntryPoint=function(a){return Sl(this,2,a)};g.getApplication=function(){return pl(this,3)};g.setApplication=function(a){return Sl(this,3,a)};g.getApplicationOrUndefined=function(){return du(this,3)};g.setVersionName=function(a){return Rl(this,4,a)};
g.getBaselineCl=function(){return Dl(this,5)};g.setBaselineCl=function(a){return Hl(this,5,a)};g.hasBaselineCl=function(){return yl(this,5)};g.getBaselineClOrUndefined=function(){return Mu(this,5)};g.getMetadata=function(){return X(this,V8,6)};g.getMutableMetadata=function(){return Du(this,V8,6)};g.setMetadata=function(a){W(this,V8,6,a)};g.setSharekitEntryPoint=function(a){Sl(this,7,a)};g.getSharekitEntryPointOrUndefined=function(){return du(this,7)};var z3b=function(a){this.context_=a};z3b.prototype.createNewTag=function(a){return new yid(a)};z3b.prototype.addEventMetadata=function(a){Tpc(a,this.context_.serialize())};var Hid=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var Iid=function(){};Iid.prototype.impressionEvent=function(){return[]};Iid.prototype.interactionEvent=function(){return[]};Iid.prototype.visibilityEvent=function(){return[]};var Lid=function(){if(!Jid){var a=Jid=new nfc,b=Date.now()*1E3;Hl(a,1,b);tq(Jid,2,Hca());tq(Jid,3,Hca())}a=(new qz).setBase(Jid);b=++Kid;return Hl(a,2,b)},Kid=0,Jid=void 0;var $8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y($8,V);var a9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(a9,V);var b9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(b9,V);b9.prototype.setVed=function(a){return Am(this,5,Mid,a)};var Nid=[1,3,4],Mid=[2,5];var Oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,7)};Y(Oid,V);g=Oid.prototype;g.getTarget=function(){return X(this,b9,1)};g.setTarget=function(a){return W(this,b9,1,a)};g.getType=function(){return pl(this,2)};g.setType=function(a){return Sl(this,2,a)};g.hasType=function(){return nl(this,2)};var Pid=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;Hl(a,4,b)};var Qid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qid,V);var c9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,233)};Y(c9,V);c9.prototype.setUiType=function(a){return Pl(this,1,a)};c9.prototype.setElementIndex=function(a){Pl(this,3,a)};var Rid=function(a,b){Mc(a,4,b,Rb)};c9.prototype.getResultIndex=function(){return Ik(this,7)};c9.prototype.setResultIndex=function(a){Pl(this,7,a)};c9.prototype.setVisible=function(a){return Sl(this,6,a)};var d9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,17)};Y(d9,V);g=d9.prototype;g.setVed=function(a){return Rl(this,11,a)};g.setUiType=function(a){return Pl(this,1,a)};g.setVeIndex=function(a){Pl(this,2,a)};g.getResultIndex=function(){return Ik(this,7,-1)};g.setResultIndex=function(a){Pl(this,7,a)};g.setElementIndex=function(a){Pl(this,8,a)};var Sid=function(a,b){sn(a,14,b)};var e9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(e9,V);var Tid=function(a){this.userAction=a};var Vid=function(a,b){this.userAction=a;this.visualElementID=b;Uid++},Uid=0;var Wid=function(){this.xidTagComponents_=!1};Wid.prototype.createNewTag=function(a){return new X8(a,this.xidTagComponents_)};Wid.prototype.addEventMetadata=function(){};var f9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(f9,V);var Xid=function(a,b){sn(a,1,b)};f9.prototype.addPath=function(a,b){return Eu(this,1,c9,a,b)};f9.prototype.setPath=function(a,b){return Bu(this,1,c9,a,b)};var Yid=new Bv(100,f9);var g9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(g9,V);var h9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(h9,V);h9.prototype.getTimestamp=function(){return X(this,g9,1)};h9.prototype.setTimestamp=function(a){return W(this,g9,1,a)};h9.prototype.hasTimestamp=function(){return nk(this,g9,1)};var Zid=new Bv(126,h9);var $id=new Bv(618,h9);var ajd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,2)};Y(ajd,V);var bjd=new Bv(273,ajd);g=s3b.prototype;g.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};g.get=function(a){a=cjd(this,a);return this.buff_[a]};g.set=function(a,b){a=cjd(this,a);this.buff_[a]=b};g.getCount=function(){return this.buff_.length};g.isEmpty=function(){return this.buff_.length==0};g.clear=function(){this.nextPtr_=this.buff_.length=0};
g.getValues=function(){var a=this.getCount(),b=this.getCount(),c=[];for(a=this.getCount()-a;a<b;a++)c.push(this.get(a));return c};g.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};g.containsKey=function(a){return a<this.getCount()};g.containsValue=function(a){for(var b=this.getCount(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var cjd=function(a,b){if(b>=a.buff_.length)throw Error("mg");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var nt=function(a,b,c,d){this.enableAncestryLogging_=a===void 0?!0:a;this.enableAncestryLoggingForGrafts_=c===void 0?!1:c;this.enableBatching_=b===void 0?!1:b;this.enableAttentionLogging_=d===void 0?!1:d;this.recentInteractions_=new s3b};Y(nt,Iid);nt.prototype.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)a[e].keys().next().value.impressionEventID?d.push(a[e]):c.push(a[e]);a=djd(this,c,b);b=this.enableBatching_?ejd(this,d,b):fjd(this,d,b);return a.concat(b)};
nt.prototype.interactionEvent=function(a,b){var c=new e9,d=Lid();W(c,qz,1,d);d=new d9;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().getID()).setVeIndex(a.traversalOrder_);Sid(Pl(d,3,b.userAction),this.getAncestry_(a));a.getTag();this.setTimestamp(d);var e=new a9;W(e,qz,1,a.impressionEventID);W(c,qz,3,a.impressionEventID);W(c,d9,4,d);W(c,a9,9,e);this.recentInteractions_.add(new Vid(b.userAction,a.getTag().getID()));a=new gF;Upc(a,c.serialize());return[a]};
nt.prototype.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],h=f.getElement(),k=f.rootImpressionEventID,q=d.get(k);q=q?q:[];var u=new f9;this.enableAncestryLoggingForGrafts_&&Xid(u,this.getAncestry_(f));if(f.neverShown||Y8(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new Oid;h.setType(1);var A=gjd(f);h.setTarget(A);Pid(h);this.enableAncestryLoggingForGrafts_&&Pt(h,Yid,u);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new Oid,h.setType(2),
A=gjd(f),h.setTarget(A),Pid(h),this.enableAncestryLoggingForGrafts_&&Pt(h,Yid,u),q.push(h),f.hidden=!0);d.set(k,q)}a=l(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new Qid,sn(e,1,f),f=new e9,k=Lid(),q=new a9,W(q,qz,1,b),W(f,qz,1,k),W(f,qz,3,b),W(f,Qid,7,e),W(f,a9,9,q),b=new gF,Upc(b,f.serialize()),c.push(b));return c};
nt.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")=="true";if(a instanceof HTMLElement&&(a.offsetWidth<=0||a.offsetHeight<=0))return!1;a=a.getBoundingClientRect();return(b=TAc(b,new RI(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var djd=function(a,b,c){for(var d=[],e={},f=b.length-1;f>=0;e={impressionEventID:void 0,clientVeProto$jscomp$7:void 0,testCodes$jscomp$1:void 0},f--){e.clientVeProto$jscomp$7=new e9;e.testCodes$jscomp$1=[];e.impressionEventID=Lid();W(e.clientVeProto$jscomp$7,qz,1,e.impressionEventID);var h=new a9;W(h,qz,1,e.impressionEventID);W(e.clientVeProto$jscomp$7,a9,9,h);if(h=Ndb(window.location.href,"ved"))h=(new d9).setVed(h),W(e.clientVeProto$jscomp$7,d9,4,h);b[f].forEach(function(k){return function(q,u){u.impressionEventID=
k.impressionEventID;u.rootImpressionEventID=k.impressionEventID;var A=this.getVisualElementLiteProto_(u);q.length&&Rid(A,q);q=u.getElement();this.isVisible_(q,c)?(u.neverShown=!1,u.hidden=!1):A.setVisible(1);this.enableAttentionLogging_&&Y8(u.getTag(),"hover")&&u.traversalOrder_!==void 0&&(q.setAttribute("data-hveid",Number(u.traversalOrder_)),Wk(k.clientVeProto$jscomp$7,c9,2,Fk()).length===0&&Gid(u)&&(q.setAttribute("decode-data-ved","1"),q.setAttribute("data-ved",Gid(u)+"")));this.setTimestamp(A);
Eu(k.clientVeProto$jscomp$7,2,c9,A);k.testCodes$jscomp$1=k.testCodes$jscomp$1.concat(u.getTag().testCodes_)}}(e),a);h=new gF;Upc(h,e.clientVeProto$jscomp$7.serialize());Mc(h,20,e.testCodes$jscomp$1,Rb);d.push(h)}return d},ejd=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(u,A){var G=0,H=[],N=new e9,O=[],U=Lid();W(N,qz,1,U);W(N,qz,3,A);var da=new a9;W(da,qz,1,A);W(N,a9,9,da);
for(da=0;da<u.length;da++)for(var ma=u[da],ra=ma.keys(),Ga=ra.next().value,Na=ma.get(Ga),Qa={},gb=0;gb<Na.length;Qa={startingOffset:void 0,cloneTreeRootIndex:void 0},++gb){var va=Ga;Qa.cloneTreeRootIndex=0;Qa.startingOffset=Na[gb];var Ja=ma.size;gb!=Na.length-1&&(Ja=Na[gb+1]);for(var La=Qa.startingOffset;La<Ja;++La){var Lb=ra.next().value;La==Qa.startingOffset&&(va=Lb,Qa.cloneTreeRootIndex=G);Lb.impressionEventID=U;Lb.rootImpressionEventID=A;Lb.traversalOrder_=G;var Eb=ma.get(Lb),jc=this.getVisualElementLiteProto_(Lb);
Eb.length&&Rid(jc,Eb.map(function(nc){return function(Jc){return Jc-nc.startingOffset+nc.cloneTreeRootIndex}}(Qa)));Eb=Lb.getElement();this.isVisible_(Eb,c)?(Lb.neverShown=!1,Lb.hidden=!1):jc.setVisible(1);this.setTimestamp(jc);Eu(N,2,c9,jc);O=O.concat(Lb.getTag().testCodes_);G++}Qa=new Oid;Qa.setType(3);Ja=gjd(Ga);Qa.setTarget(Ja);Ja=new b9;La=new Z8;Lb=new f9;La.setVeIndex(va.traversalOrder_);zid(La,va.getTag().getID());Vm(Ja,2,Mid,La);W(Qa,b9,3,Ja);this.enableAncestryLoggingForGrafts_&&(Xid(Lb,
this.getAncestry_(va)),Pt(Qa,Yid,Lb));H.push(Qa)}H.length&&(u=new Qid,sn(u,1,H),W(N,Qid,7,u));H=new gF;Upc(H,N.serialize());Mc(H,20,O,Rb);d.push(H)},a);return d},fjd=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],h=f.keys(),k=h.next().value,q=f.get(k),u={},A=0;A<q.length;u={startingOffset$jscomp$1:void 0},++A){u.startingOffset$jscomp$1=q[A];var G=f.size;A!=q.length-1&&(G=q[A+1]);var H=new e9,N=[],O=Lid(),U=new a9;W(U,qz,1,k.impressionEventID);W(H,qz,1,O);W(H,qz,3,k.impressionEventID);
Sl(H,5,3);W(H,a9,9,U);U=new d9;k.serverVed_?U.setVed(k.serverVed_):U.setUiType(k.getTag().getID()).setVeIndex(k.traversalOrder_);Sid(U,a.getAncestry_(k));W(H,d9,4,U);for(U=u.startingOffset$jscomp$1;U<G;++U){var da=h.next().value;da.impressionEventID=O;da.rootImpressionEventID=k.rootImpressionEventID;da.traversalOrder_!=void 0&&(da.traversalOrder_-=u.startingOffset$jscomp$1);var ma=f.get(da),ra=a.getVisualElementLiteProto_(da);ma.length&&Rid(ra,ma.map(function(Ga){return function(Na){return Na-Ga.startingOffset$jscomp$1}}(u)));
ma=da.getElement();a.isVisible_(ma,c)?(da.neverShown=!1,da.hidden=!1):ra.setVisible(1);a.enableAttentionLogging_&&Y8(da.getTag(),"hover")&&da.traversalOrder_!==void 0&&(ma.setAttribute("data-hveid",Number(da.traversalOrder_)),Wk(H,c9,2,Fk()).length===0&&Gid(da)&&(ma.setAttribute("decode-data-ved","1"),ma.setAttribute("data-ved",Gid(da)+"")));a.setTimestamp(ra);Eu(H,2,c9,ra);N=N.concat(da.getTag().testCodes_)}u=new gF;Upc(u,H.serialize());Mc(u,20,N,Rb);d.push(u)}return d};
nt.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=this.getVisualElementLiteProto_(a);b.unshift(d);c.add(a);a=a.getParent()}return b};nt.prototype.getVisualElementLiteProto_=function(a){var b=(new c9).setUiType(a.getTag().getID());Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());xid(a.getTag(),b);this.enableAttentionLogging_&&Y8(a.getTag(),"hover")&&(a=new ajd,Ol(a,1,!0),Pt(b,bjd,a));return b};
var gjd=function(a){var b=new b9;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new Z8;Vm(b,3,Nid,a.impressionEventID);c.setVeIndex(a.traversalOrder_);zid(c,a.getTag().getID());Vm(b,2,Mid,c)}return b};
nt.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof d9&&(!X(a,$8,15)||!X(a,$8,15).getExtension(Zid))){var c=new h9,d=new g9,e=X(a,$8,15);e||(e=new $8);Vl(d,1,b);c.setTimestamp(d);Pt(e,Zid,c);W(a,$8,15,e)}a instanceof c9&&(c=new h9,d=new g9,Vl(d,1,b),c.setTimestamp(d),Pt(a,$id,c))};ya.U3bHHf!=null||(ya.U3bHHf=0);ya.U3bHHf++;var hjd=1;(function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;++b)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"];if(!window.requestAnimationFrame){var c=0;window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-c));c=e+f;return window.setTimeout(function(){d(e+f)},f)};window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})}})();var ijd=function(){},jjd=[[],[]],kjd=0,ljd=new Set,mjd=null,njd=0,ojd=0,pjd=0,qjd=0,rjd=0,sjd=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=ijd};g=sjd.prototype;g.measure=function(a){this.measure_=a;return this};g.mutate=function(a){this.mutate_=a;return this};g.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
g.window=function(a){this.window_=a;return this};g.build=function(){return tjd({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var tjd=function(a,b){var c=rjd++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var h=f.phase!==0;h&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);h&&(h=kjd,!a.runInCurrentFrameIfPossible||qjd==0||a.measure&&qjd!=1||(h=(h+1)%2),jjd[h].push(f));return ujd(a.window)}},vjd=function(a,b){var c={};
qjd=1;for(var d=0;d<a.length;++d){var e=a[d];var f=e.args[e.args.length-1];f&&typeof f==="object"&&(f.now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(h){c[d]=!0,za(h)}}}qjd=2;for(d=0;d<a.length;++d)if(e=a[d],(f=e.args[e.args.length-1])&&typeof f==="object"&&(f.now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(h){za(h)}}njd>0&&b>1&&(a=b-njd,a<500&&(hjd++,a>100&&ojd++,pjd<a&&(pjd=a)));njd=ljd.size&&b>1?b:0},ujd=function(a){if(!ljd.has(a)){ljd.size||
(mjd=new Qgd);ljd.add(a);var b=mjd.resolve;a.requestAnimationFrame(function(c){ljd.clear();var d=jjd[kjd];kjd=(kjd+1)%2;try{vjd(d,c)}finally{qjd=0,d.length=0}b()})}return mjd.promise};var wjd=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},yjd=function(a,b){return xjd(a,b).filter(function(c){return i9(this.visualElementProvider,c)!=null},a)},zjd=function(a,b){var c=a.visualElementProvider;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$186:void 0},++f){var h=i9(c,b[f]);h.traversalOrder_==void 0&&h.serverVed_==void 0&&(e.parent$jscomp$186=void 0,v3b(b[f],function(k){return function(q){q=i9(c,q);return q!=null?(k.parent$jscomp$186=q,
!0):!1}}(e),!1),e.parent$jscomp$186?d&&d.has(e.parent$jscomp$186)||(d=new Map,a.unshift(d),d.set(e.parent$jscomp$186,[]),Eid=1):(d=new Map,a.unshift(d),Eid=0),Fid(h),h.setParent(e.parent$jscomp$186),d.set(h,[]),e.parent$jscomp$186&&d.get(e.parent$jscomp$186).push(h.traversalOrder_))}return a},Ajd=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return i9(c,d)})},xjd=function(a,b){if(a.traverseShadowDom){var c=[];a=[];for(c.push.apply(c,b.querySelectorAll("*"));c.length>0;){var d=
c.shift();d.getAttribute("jslog")&&a.push(d);d.shadowRoot&&c.unshift.apply(c,d.shadowRoot.querySelectorAll("*"))}}else a=[].slice.call(b.querySelectorAll("[jslog]"));a.unshift(b);return a},Eid=0;var Bjd=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},i9=function(a,b){var c=b.LSWHIf||null;if(c&&(c.getTag().getComponentID()||a.componentID_)&&c.getTag().getComponentID()!=a.componentID_)return null;var d;!(d=c&&c.getTag().isMutable&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||Ca(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=Cjd(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new Did(b,d);c&&c.getTag().retain_cached_impression_&&c.loggedImpression_&&(a.loggedImpression_=!0);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||c.charAt(0)!="0"&&c.charAt(0)!="2")var e=null;else{c=c.substring(1);try{var f=Bid(c);e=X(f,qz,13)}catch(h){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},Cjd=function(a,b){if(Ca(b))return null;var c=b.split(";"),
d=Number(c[0].trim());if(isNaN(d))return null;d=a.tagPopulator_.createNewTag(d);for(var e=1;e<c.length;e++){var f=c[e].trim();if(!Ca(f)){var h=sbc(f);if(h.length<2)return null;f=h[0].trim();h=h[1].trim();if(Ca(f)||Ca(h))return null;switch(f){case a.maybeXidPartLabel_("track"):f=h.split(",");for(h=0;h<f.length;++h){var k=d,q=f[h].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("kg");if(!tid.has(q))throw Error("lg`"+q);k.tracks_.add(q)}else k.tracks_.add(k.maybeXidEventLabel_(q))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(h));break;case a.maybeXidPartLabel_("tc"):f=h.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(h);break;case a.maybeXidPartLabel_("mutable"):h=="true"?d.mutable_=!0:h=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};Bjd.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?q3b(a):a};
Bjd.prototype.setComponentID=function(a){this.componentID_=a};Bjd.prototype.getComponentID=function(){return this.componentID_};var Djd=function(a,b){oF.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Y(Djd,oF);zu(w3b,Hp);g=w3b.prototype;g.getBrowserEventType_=Fp(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((EKa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});g.getHiddenPropertyName_=Fp(function(){return FKa("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=Fp(function(){return FKa("visibilityState",this.domHelper_.document_)});g.isSupported=function(){return!!this.getHiddenPropertyName_()};
g.handleChange_=function(){var a=this.isSupported()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new Djd(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){sF(this.eventKey_);w3b.superClass_.disposeInternal.call(this)};var j9=function(a,b,c,d,e,f,h){var k=d===void 0?{}:d;var q=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;Is.call(this);var u=this;this.eventBuilder=a;this.transport=c;this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.listeners_=[];this.impressionListeners_=[];this.expectXidTagComponents_=d;this.metadataHandler_=b||new Wid;this.visualElementProvider_=
new Bjd(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new w3b;this.logImpressionsTask_=(new sjd(this)).measure(q?function(){return q().then(u.handleImpressions_.bind(u))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new MOc(this.logImpressionsTask_,500,this);this.traverser_=h||new wjd(this.visualElementProvider_,
k);this.eventBuilder instanceof Iid&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Y(j9,Is);j9.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};j9.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var Fjd=function(a,b,c,d){var e=Ejd(d),f=a.getIndex(c);var h=(new mid).setUserAction(b);var k=c.getTag().getID();h=Pl(h,1,k);e=Mc(h,3,e,Rb);f!=null&&e.setElementIndex(f);f=new Hid;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=Tpc(new gF,e.serialize());c=Mc(c,20,f.testCodes,Rb);a.transport&&kF(a.transport,c);if(b!=null)for(b=new Tid(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};j9.prototype.log=function(a){this.transport&&kF(this.transport,a)};
var Gjd=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};j9.prototype.getIndex=function(a){return a.getTag().getIndex()};var Ejd=function(a){return a.map(function(b){return b.getTag().getID()})};j9.prototype.getMetadata=function(a,b){var c=new c9;xid(a.getTag(),c);for(a=0;a<b.length;++a)xid(b[a].getTag(),c);return c};
var Hjd=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];v3b(c,function(h){if(!Dz(h))return!1;h=i9(e,h);var k;if(k=h!=null)if(k=h.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("kg");if(!tid.has(f))throw Error("lg`"+f);k=k.tracks_.has(f)}else k=Y8(k,f);return k?(d=h,!0):!1},!0);return d};g=j9.prototype;
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;v3b(a,function(d){if(!Dz(d))return!1;d=i9(c,d);d!=null&&b.push(d);return!1},!1);return b};
g.handleImpressions_=function(){var a=this.pageVisibilityMonitor_;if(!a.domHelper_.document_[a.getHiddenPropertyName_()]&&this.root_){if(a=!(!window.performance||!window.performance.clearMarks))window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc");var b=yjd(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new RI(0,0,
c.width,c.height);var d=zjd(this.traverser_,b);if(d.length){d=this.eventHandler_.impressionEvent(d,c);for(var e=0;e<d.length;++e)this.metadataHandler_.addEventMetadata(d[e]),Rl(d[e],28,this.zwiebackId_),this.transport&&kF(this.transport,d[e])}b=Ajd(this.traverser_,b);b=this.eventHandler_.visibilityEvent(b,c);if(b.length)for(c=0;c<b.length;++c)this.metadataHandler_.addEventMetadata(b[c]),this.zwiebackId_&&Rl(b[c],28,this.zwiebackId_),this.transport&&kF(this.transport,b[c]);Gjd(this)}else{c=[];d=this.windowProvider_?
this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();d=new RI(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=i9(this.visualElementProvider_,f))&&Y8(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)d=c[b],d.loggedImpression_||(e=this.getAncestry_(d.getElement()),Fjd(this,void 0,d,e),Gjd(this),d.loggedImpression_=!0)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
g.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=TAc(b,new RI(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?o3b(a):a};
g.tearDown=function(){if(this.domHelper_){var a=this.domHelper_.document_;this.unlisten(a,"scroll",this.logImpressions,!0);this.unlisten(a,"resize",this.logImpressions,!0);this.unlisten(a,"load",this.logImpressions,!1);this.unlisten(a,"DOMContentLoaded",this.logImpressions,!1)}this.unlisten(this.pageVisibilityMonitor_,"visibilitychange",this.logImpressions,!1);this.logImpressionsThrottle_.dispose()};var y3b=function(a,b,c,d,e,f,h,k,q,u,A,G,H){e=e===void 0?!1:e;q=q===void 0?!1:q;k||(b=new lF(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());j9.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:q},u,A,G);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;H&&this.clearcut_.setProductID(H)};Y(y3b,j9);
y3b.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};y3b.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};y3b.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var Ijd=function(a){this.tracker=a};var Jjd=function(a,b){this.root=a;this.handler=b;this.eventHandler=new Is(this)};
Jjd.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"){d=l(d.addedNodes);for(var e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&(e.querySelectorAll("[jsLog]").length||e.getAttribute("jsLog"))&&b.handler.tracker.logImpressions()}}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){var d=b.handler.tracker,
e=c.type,f=d.eventToActionMap_[e];if(f&&(e=Hjd(d,e,c.target)))if(d.eventHandler_)for(f=d.eventHandler_.interactionEvent(e,new Tid(f)),e=0;e<f.length;++e)d.metadataHandler_.addEventMetadata(f[e]),d.zwiebackId_&&Rl(f[e],28,d.zwiebackId_),d.transport&&kF(d.transport,f[e]);else{var h=d.getAncestry_(e.getElement());Fjd(d,f,e,h)}c.stopPropagation()}))};Jjd.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var C3b=function(a,b){this.root=a;this.tracker=b;this.observer=new Jjd(this.root,new Ijd(this.tracker))};
C3b.prototype.start=function(a){var b=this.tracker,c=this.root;b.domHelper_=new vz;b.root_=c||b.domHelper_.document_.body;c=b.domHelper_.document_;c.readyState!=="interactive"&&c.readyState!=="complete"||b.logImpressions();b.listenOnce(c,"load",b.logImpressions,!1);b.listenOnce(c,"DOMContentLoaded",b.logImpressions,!1);b.listen(b.pageVisibilityMonitor_,"visibilitychange",b.logImpressions,!1);b.listen(c,"scroll",b.logImpressions,!0);b.listen(c,"resize",b.logImpressions,!0);b=l(a);for(c=b.next();!c.done;c=
b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;var e=this.tracker;e.eventToActionMap_[c]=d;e.eventToTracksLabelMap_[c]=e.maybeXidEventLabel_(c)}this.observer.observe([].concat(p(a.keys())))};C3b.prototype.stop=function(){this.observer.dispose();this.tracker.dispose()};var k9=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},Kjd=function(a,b){a.displayNameWithOverrideApplied_=b;return a},Ljd=function(a,b){a.targetCount_=b;return a};k9.prototype.getTargetCount=function(){return this.targetCount_};k9.prototype.getQueryScope=function(){return this.queryScope_};k9.prototype.setQueryScope=function(a){this.queryScope_=a;return this};k9.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var lu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lu,V);var l9=function(a,b){return Ol(a,1,b)};g=lu.prototype;g.getProvenance=function(){return pl(this,2)};g.setProvenance=function(a){return Sl(this,2,a)};g.getCode=function(){return pl(this,3)};g.setCode=function(a){return Sl(this,3,a)};g.getCodeOrUndefined=function(){return du(this,3)};var m9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(m9,V);m9.prototype.getSource=function(){return X(this,lu,1)};m9.prototype.setSource=function(a){return W(this,lu,1,a)};m9.prototype.hasSource=function(){return nk(this,lu,1)};var n9=function(a,b){return Sl(a,2,b)},o9=function(a,b){return Sl(a,3,b)};var Mjd=function(){this.code_=2;this.cacheState_=new m9;this.similarIds_=[]};g=Mjd.prototype;g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.getSimilarIds=function(){return this.similarIds_};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};var Njd=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};Njd.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};Njd.prototype.getMetadata=function(){return this.metadata_};var H4b=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=H4b.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getOriginator=function(){return this.originator_};g.setOriginator=function(a){this.originator_=a;return this};g.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue_};
g.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue_=a;return this};g.clone=function(){return(new H4b).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var Ojd=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new m9};g=Ojd.prototype;g.getIsFirstCallback=function(){return this.isFirstCallback_};g.getIsLastCallback=function(){return this.isLastCallback_};g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};g.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
g.setCallbackNumber=function(){return this};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};var Pjd=function(a,b){this.results_=a;this.metadata_=b};Pjd.prototype.getResults=function(){return this.results_};Pjd.prototype.getMetadata=function(){return this.metadata_};var p9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(p9,V);g=p9.prototype;g.getQuery=function(){return Oh(this,1)};g.setQuery=function(a){return Rl(this,1,a)};g.clearQuery=function(){tq(this,1)};g.hasQuery=function(){return ml(this,1)};g.getIsFirstCallback=function(){return kl(this,2)};g.setIsFirstCallback=function(a){return Ol(this,2,a)};g.getIsLastCallback=function(){return kl(this,3)};g.setIsLastCallback=function(a){return Ol(this,3,a)};
g.setCallbackNumber=function(a){return Pl(this,4,a)};g.getNextPageToken=function(){return Oh(this,5)};g.getCode=function(){return pl(this,6,2)};g.setCode=function(a){return Sl(this,6,a)};g.getCodeOrUndefined=function(){return du(this,6)};g.getCacheState=function(){return X(this,m9,7)};g.setCacheState=function(a){return W(this,m9,7,a)};g.hasCacheState=function(){return nk(this,m9,7)};var q9=function(a,b){this.results_=a;this.metadata_=b};q9.prototype.getResults=function(){return this.results_};q9.prototype.getMetadata=function(){return this.metadata_};var Qjd={create:function(a,b,c,d,e){e=e===void 0?new pt:e;return L3b(a,b,c,d,new Red,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return L3b(a,b,c,d,new Red,e)},createConfig:function(a){a=a===void 0?new Xxc(zI.apiEnv,new Yxc(zI.userProfileId)):a;return new cgd(a)}};var Rjd=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};g=Rjd.prototype;g.getWarnForExternalSelections=function(){return this.warnForExternalSelections};g.getAllowDisplayNameEditing=function(){return!1};g.getAllowContactMethodEditing=function(){return this.allowContactMethodEditing};g.setAllowContactMethodEditing=function(a){this.allowContactMethodEditing=a};g.getAllowChipDeletion=function(){return!0};
g.getShouldDisplayExternalSelectionIcon=function(){return!0};g.getAllowChipDragAndDrop=function(){return!0};g.getChipCustomizationCallback=function(){return this.chipCustomizationCallback};g.getAllowChipDisambiguation=function(){return!0};var Sjd=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new I_b;this.chip=new Rjd;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};g=Sjd.prototype;g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getEnvironmentConfig=function(){return this.environmentConfig};g.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue};
g.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue=a};g.getWarnForExternalSelections=function(){return this.chip.getWarnForExternalSelections()};g.getAllowDisplayNameEditing=function(){return this.chip.getAllowDisplayNameEditing()};g.getAllowContactMethodEditing=function(){return this.chip.getAllowContactMethodEditing()};g.setAllowContactMethodEditing=function(a){this.chip.setAllowContactMethodEditing(a)};g.getAllowChipDeletion=function(){return this.chip.getAllowChipDeletion()};
g.getShouldDisplayExternalSelectionIcon=function(){return this.chip.getShouldDisplayExternalSelectionIcon()};g.getAllowChipDragAndDrop=function(){return this.chip.getAllowChipDragAndDrop()};g.getChipCustomizationCallback=function(){return this.chip.getChipCustomizationCallback()};g.getAllowChipDisambiguation=function(){return this.chip.getAllowChipDisambiguation()};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};
g.setTheme=function(a){this.appearance.setTheme(a)};g.getStyle=function(){return this.appearance.getStyle()};g.setStyle=function(a){this.appearance.setStyle(a)};var Tjd=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new bgd(this.environmentConfig);this.chipsBar=new Sjd(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};g=Tjd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getWarnForExternalSelections=function(){return this.chipsBar.getWarnForExternalSelections()};
g.getAllowDisplayNameEditing=function(){return this.chipsBar.getAllowDisplayNameEditing()};g.getAllowContactMethodEditing=function(){return this.chipsBar.getAllowContactMethodEditing()};g.setAllowContactMethodEditing=function(a){this.chipsBar.setAllowContactMethodEditing(a)};g.getAllowChipDeletion=function(){return this.chipsBar.getAllowChipDeletion()};g.getShouldDisplayExternalSelectionIcon=function(){return this.chipsBar.getShouldDisplayExternalSelectionIcon()};g.getAllowChipDragAndDrop=function(){return this.chipsBar.getAllowChipDragAndDrop()};
g.getChipCustomizationCallback=function(){return this.chipsBar.getChipCustomizationCallback()};g.getAllowChipDisambiguation=function(){return this.chipsBar.getAllowChipDisambiguation()};g.getUseOriginalDisplayValue=function(){return this.chipsBar.getUseOriginalDisplayValue()};g.setUseOriginalDisplayValue=function(a){this.chipsBar.setUseOriginalDisplayValue(a)};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};
g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};
g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};g.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};
g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};g.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};
g.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};g.getDensity=function(){return this.autocomplete.getDensity()};g.setDensity=function(a){this.autocomplete.setDensity(a)};g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};g.getStyle=function(){return this.autocomplete.getStyle()};g.setStyle=function(a){this.autocomplete.setStyle(a)};var C4b=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return Zs('<div class="'+$s("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+$s("pQPeT")+'" tabindex="'+$s(d?0:-1)+'" role="listbox" aria-multiselectable="'+$s(b)+'" aria-orientation="'+$s(c)+'" aria-label="'+$s(a)+'"></div>')};var Ujd=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="LookupSelectorError"};Y(Ujd,Error);var Vjd=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var Dt=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};Dt.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new Ujd("LookupSelector is disposed.")):new Promise(function(e){Wjd(d,a,b,c,e)})};
var Wjd=function(a,b,c,d,e){var f=[],h=[];d=d>=0?d:a.selectionsState.size();b=l(b);for(var k=b.next();!k.done;k=b.next()){var q=Xjd(k.value);k=q.lookupId;q=D0b(k,q.displayNameOverride,q.forceDisplayNameOverride,q.loggingTokenOverride);a.selectionsState.select(q,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(Yhd.get(c)||0);a.peopleStore.lookup(f,function(u){Yjd(a,u,h,c,e)},d)},Yjd=function(a,b,c,d,e){if(a.disposed)e([]);else{for(var f=0,h=0,k=l(b.getResults().entries()),q=k.next();!q.done;q=
k.next()){var u=l(q.value);q=u.next().value;var A=u=u.next().value,G=a.selectionsState.get(q);G&&(u=G.getDisplayNameOverride(),A=D2b(A,u,G.getForceDisplayNameOverride(),G.selectionToken().getLoggingToken()),a.selectionsState.replace(q,A,d),u&&f++,A.getDisplayNameWithOverrideApplied()&&h++)}f=h-f;f>0&&(h=a.health,k=h.createCount,q=6,q=q===void 0?0:q,d=Vjd.get(d)||q,k.call(h,53,d).increment(f));b=b.getMetadata();c.push.apply(c,p(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
Dt.prototype.deselect=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())(b=this.selectionsState.get(b.value))&&this.selectionsState.deselect(b)};Dt.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new Ujd("LookupSelector is disposed.")):new Promise(function(d){Zjd(c,a,b,d)})};
var Zjd=function(a,b,c,d){var e=[],f=[];b=l(b.entries());for(var h=b.next();!h.done;h=b.next()){var k=l(h.value);h=k.next().value;k=k.next().value;var q=Xjd(k);k=q.lookupId;q=D0b(k,q.displayNameOverride,q.forceDisplayNameOverride,q.loggingTokenOverride);a.selectionsState.replace(h,q)&&f.push(k)}a.peopleStore.lookup(f,function(u){Yjd(a,u,e,c,d)},a.lookupOptions)};Dt.prototype.dispose=function(){this.disposed=!0};
var Xjd=function(a){if(a instanceof qfd){var b=a.lookupWithOverride.getId();var c=a.lookupWithOverride.getDisplayName();var d=a.lookupWithOverride.getForceDisplayNameOverride();a=a.getLoggingToken()}else a instanceof yt?(b=a.getId(),c=a.getDisplayName(),d=a.getForceDisplayNameOverride()):(b=a,c="",d=!1),a=null;return{lookupId:b,displayNameOverride:c,forceDisplayNameOverride:d,loggingTokenOverride:a}};var t4b=function(a,b,c,d,e,f){var h=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new Dt(b,d,e,f);this.onSelectionCallback=function(k,q,u){h.onSelect(u)};this.onSelectionReplacedCallback=function(k,q,u,A){A===9&&h.undoRedoStack.push()};this.onDeselectionCallback=function(k,q,u){h.onDeselect(u)};this.attach()};g=t4b.prototype;
g.attach=function(){T8(this.selectionsState,this.onSelectionCallback);bid(this.selectionsState,this.onSelectionReplacedCallback);S8(this.selectionsState,this.onDeselectionCallback)};g.select=function(a){a=this.lookupSelector.select(a,6);this.undoRedoStack.push();return a};g.deselect=function(a){this.lookupSelector.deselect(a);this.undoRedoStack.push()};g.replace=function(a){a=this.lookupSelector.replace(a,6);this.undoRedoStack.push();return a};g.focusLastChip=function(){return this.chipSet.focusLastChip()};
g.activateAllChips=function(){this.chipSet.activateAllChips()};g.dispose=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.lookupSelector.dispose();this.chipSet.dispose()};g.onSelect=function(a){a===1&&this.undoRedoStack.push()};g.onDeselect=function(a){switch(a){case 1:case 8:this.undoRedoStack.push()}};var $jd=function(a,b,c,d,e,f,h){this.delegate=a;this.ariaParent=b;this.actionRequestCallbacks=c;this.chipConfig=d;this.appearanceConfig=e;this.clientConfig=f;this.chipCustomization=h;this.contextMenuContainer=Fs(G8.prototype.getRoot.call(this),"QL45qe");a=G8.prototype.getRoot.call(this).parentElement;G8.prototype.getRoot.call(this).removeChild(this.contextMenuContainer);a.appendChild(this.contextMenuContainer)};Y($jd,G8);g=$jd.prototype;g.deactivate=function(){G8.prototype.deactivate.call(this);this.disposeContextMenu()};
g.drag=function(){this.disposeContextMenu();G8.prototype.drag.call(this)};g.dispose=function(){this.disposeContextMenu();G8.prototype.dispose.call(this)};g.onKeyDown=function(a){var b;(b=this.contextMenu)==null||b.onKeyDown(a);G8.prototype.onKeyDown.call(this,a)};
g.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.isActive()?this.actionRequestCallbacks.spotlight():this.actionRequestCallbacks.activate();this.contextMenu&&this.disposeContextMenu();this.contextMenu=X0b(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(E0b(a));kl(this.clientConfig.internal,4)&&akd(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(F0b(a));
var d;!this.chipConfig.getAllowDisplayNameEditing()||((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append(G0b(a));Pxc.includes(this.getSelection().id().getType())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(H0b(a));T0b(this.getRoot())&&this.contextMenu.append(I0b(a));Mfd(this.contextMenu,function(e){c.onContextMenuItemSelected(e)});Nfd(this.contextMenu,function(){c.disposeContextMenu();b()});this.contextMenu.show();return function(){c.disposeContextMenu()}};
g.onContextMenuItemSelected=function(a){switch(a.id){case "jCCvxc":this.actionRequestCallbacks.copyMethod(this);break;case "RkeQbd":case "N1uSwe":this.actionRequestCallbacks.copyContactMethod(this);break;case "UkZFS":this.actionRequestCallbacks.cut(this);break;case "xTCd3":this.showHovercard();break;case "YCRBfe":this.edit();break;case "l1309":this.actionRequestCallbacks.editContactMethod(this);break;default:throw Error("bg`"+a.id);}this.disposeContextMenu()};
var akd=function(a,b){var c=a.getSelection().result().getDisplayValue();if(c){var d;if((d=a.contextMenu)!=null){var e=d.append;Qxc.includes(a.getSelection().id().getType())?(a=Ts.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:a==null?void 0:a.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(a=Ts.get(b),c=Object.freeze({id:"N1uSwe",iconUrl:a==null?void 0:a.get("N1uSwe"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816}));e.call(d,c)}}};
$jd.prototype.showHovercard=function(){this.isActive();this.getRoot();this.getSelection()};$jd.prototype.disposeContextMenu=function(){var a;(a=this.contextMenu)==null||a.dispose();this.contextMenu=void 0};var bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bkd,V);var ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ckd,V);ckd.prototype.getGroupIdHex=function(){return Oh(this,1)};var dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dkd,V);dkd.prototype.getGroupIdHex=function(){return Oh(this,1)};var tt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tt,V);g=tt.prototype;g.getGivenName=function(){return Oh(this,1)};g.setGivenName=function(a){return Lk(this,1,a)};g.getFamilyName=function(){return Oh(this,2)};g.setFamilyName=function(a){return Lk(this,2,a)};g.getEmailList=function(){return Ek(this,3,Fk())};g.setEmailList=function(a){return Mk(this,3,a)};g.addEmail=function(a){return Pc(this,3,hc,a,void 0,ic)};
g.removeEmail=function(a){return Pc(this,3,hc,void 0,a,ic,1,!1,!0)};g.getEmail=function(a){return Ku(this,3,a)};g.setEmail=function(a){return Ou(this,3,a)};var Y3b=function(a,b){return Mk(a,4,b)};tt.prototype.getPhone=function(){return Ku(this,4)};tt.prototype.setPhone=function(a){return Ou(this,4,a)};var r9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(r9,V);var V3b=function(a){var b=new r9;return Lk(b,1,a)};r9.prototype.getEdit=function(){return kl(this,2)};r9.prototype.setEdit=function(a){return Xm(this,2,a)};r9.prototype.getIncludeTrash=function(){return kl(this,3)};var rt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rt,V);g=rt.prototype;g.getObfuscatedGaiaId=function(){return Oh(this,1)};g.setObfuscatedGaiaId=function(a){return Lk(this,1,a)};g.getEdit=function(){return kl(this,2)};g.setEdit=function(a){return Xm(this,2,a)};g.getIncludeTrash=function(){return kl(this,3)};var s9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(s9,V);s9.prototype.getEdit=function(){return kl(this,2)};s9.prototype.setEdit=function(a){return Xm(this,2,a)};s9.prototype.getIncludeTrash=function(){return kl(this,3)};var ekd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ekd,V);ekd.prototype.getQuery=function(){return Oh(this,1)};ekd.prototype.setQuery=function(a){return Lk(this,1,a)};ekd.prototype.clearQuery=function(){tq(this,1)};var fkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fkd,V);fkd.prototype.getQuery=function(){return Oh(this,1)};fkd.prototype.setQuery=function(a){return Lk(this,1,a)};fkd.prototype.clearQuery=function(){tq(this,1)};var st=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(st,V);var U3b=function(){var a=new st;return Am(a,1,gkd,"0")};st.prototype.getAuthUser=function(){return xm(this,17,gkd)};var X3b=function(a,b){return Vm(a,3,t9,b)},W3b=function(a,b){return Vm(a,9,t9,b)},T3b=function(a,b){return Vm(a,10,t9,b)};st.prototype.getSearchParams=function(){return Qm(this,ekd,13,t9)};st.prototype.setSearchParams=function(a){Vm(this,13,t9,a)};
var gkd=[1,17],t9=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var S3b=function(a){switch(vm(a,t9)){case 2:return u9(a,"",kl(Qm(a,bkd,2,t9),1)?[["multisend_welcome","1"]]:null);case 3:return hkd(a);case 4:return u9(a,"/frequent");case 5:return u9(a,"/other");case 6:return u9(a,"/directory");case 7:return u9(a,"/label/"+v9(Qm(a,dkd,7,t9).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:var b="/person/"+v9(Oh(Qm(a,s9,8,t9),1),"PersonByPersonIdParams.PersonId"),c=Qm(a,s9,8,t9).getEdit()?[["edit","1"]]:Qm(a,s9,8,t9).getIncludeTrash()?[["includeTrash","1"]]:[];return u9(a,
b,c);case 9:return b="/p/"+v9(Qm(a,rt,9,t9).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=Qm(a,rt,9,t9).getEdit()?[["edit","1"]]:Qm(a,rt,9,t9).getIncludeTrash()?[["includeTrash","1"]]:[],u9(a,b,c);case 10:return b="/contact/"+v9(Oh(Qm(a,r9,10,t9),1),"PersonByContactIdParams.ContactIdHex"),c=Qm(a,r9,10,t9).getEdit()?[["edit","1"]]:Qm(a,r9,10,t9).getIncludeTrash()?[["includeTrash","1"]]:[],u9(a,b,c);case 11:return u9(a,"/group/"+v9(Qm(a,ckd,11,t9).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+
"/"+v9(Oh(Qm(a,ckd,11,t9),2),"DelegatedContactListParams.SyntheticGroupId"));case 13:return u9(a,"/search/"+v9(a.getSearchParams().getQuery(),"SearchParams.Query"));case 14:return u9(a,"/trash");case 15:return u9(a,"/trashsearch/"+v9(Qm(a,fkd,15,t9).getQuery(),"TrashSearchParams.Query"));case 16:return u9(a,"/suggestions");default:throw Error("og`"+vm(a,t9));}},hkd=function(a){var b=[],c=Vr(Qm(a,tt,3,t9).getGivenName());Ca(c)||b.push(["givenname",c]);c=Vr(Qm(a,tt,3,t9).getFamilyName());Ca(c)||b.push(["familyname",
c]);c=Qm(a,tt,3,t9).getEmailList().filter(function(d){return!Ca(d)}).toString();Ca(c)||b.push(["email",c]);c=Ek(Qm(a,tt,3,t9),4,Fk()).filter(function(d){return!Ca(d)}).toString();Ca(c)||b.push(["phone",c]);return u9(a,"/new",b)},v9=function(a,b){if(Ca(Vr(a)))throw Error("pg`"+b);return a},u9=function(a,b,c){b=b===void 0?"":b;var d=Vr(a.getAuthUser()).trim(),e=d||Ca(Vr(xm(a,1,gkd)))||xm(a,1,gkd)==="0"?"":"/u/"+xm(a,1,gkd),f=[];d&&f.push(["authuser",d]);(a=pl(a,18))&&f.push(["bdSource",a]);c&&c.length>
0&&f.push.apply(f,p(c));return(f.length>0?Kfd({searchParams:f,pathname:e+b}):Kfd({pathname:e+b})).href.substring(0,16384)};var c4b=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=$3b;this.textField.onValidityChanged=function(d){return c.onValidityChanged(d)};this.textField.onInput=function(){c.nameLabel.textContent=c.textField.getValue()};this.nameLabel=Fs(this.dialog.getRoot(),"E0kCZc");this.eventHandler=Js(this);this.textField.focus();this.textField.select();ikd(this.textField);this.eventHandler.listen(this.textField.getInput(),"keydown",function(d){switch(d.keyCode){case 13:c.dialog.dispatchAction(1),
d.stopPropagation(),d.preventDefault()}})};g=c4b.prototype;g.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};g.dispatchAction=function(a){this.dialog.dispatchAction(a)};g.enableAction=function(a){this.dialog.enableAction(a)};g.disableAction=function(a){this.dialog.disableAction(a)};g.getRoot=function(){return this.dialog.getRoot()};g.dispose=function(){this.dialog.dispose();this.textField.dispose();this.eventHandler.removeAll()};
g.onValidityChanged=function(a){a?this.dialog.enableAction(1):this.dialog.disableAction(1)};var xt=function(a){var b=this;this.root=a;this.input=Fs(this.root,"YPqjbf");this.invalidMessage=Fs(this.root,"kyLNld");this.eventHandler=Js(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);ikd(b)})};g=xt.prototype;g.getRoot=function(){return this.root};g.getInput=function(){return this.input};g.focus=function(){this.input.focus()};g.select=function(){this.input.select()};g.getValue=function(){return this.input.value};
var ikd=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};xt.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};xt.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
xt.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};xt.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var a4b=function(a){var b=a.label,c=a.initialValue;a=a.id;return Zs('<div class="'+$s("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+$s("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+$s("peoplekitComponentsTextfieldImplLabel")+'" for="'+$s(a)+'">'+vt(b)+'</label><input peoplekit-id="'+$s("YPqjbf")+'" id="'+$s(a)+'" class="'+$s("peoplekitComponentsTextfieldImplInput")+'" value="'+$s(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+$s("kyLNld")+
'" class="'+$s("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var b4b=Vs.getInstance();var jkd=function(a,b,c,d,e,f){var h=this;this.root=a;this.selection=b;this.selectionsState=c;this.actionRequestCallbacks=d;this.appearanceConfig=e;this.chipCustomization=f;this.isDisabledInternal=!1;this.nameEditDialog=null;this.deleteButton=Fs(this.root,"bxvLg");this.eventHandler=Js(this);this.eventHandler.listen(this.deleteButton,"click",function(){return h.onDeleteButtonClick()})};g=jkd.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};
g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};
g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};
g.edit=function(){var a=this;this.nameEditDialog&&this.nameEditDialog.dispose();var b=this.root.classList.contains("isActive"),c;this.nameEditDialog=d4b(this.root.ownerDocument.body,this.selection,this.appearanceConfig,{description:(c=this.chipCustomization.chipAction)==null?void 0:c.displayNameEditingDescription});this.nameEditDialog.subscribeToAction(function(d){if(d===1){var e;d=D2b(a.selection.result(),((e=a.nameEditDialog)==null?void 0:e.textField.getValue().trim())||"",!0);a.selectionsState.replace(d.id(),
d,9)}a.unedit();b&&a.actionRequestCallbacks.activate()})};g.unedit=function(){this.nameEditDialog&&(this.nameEditDialog.dispose(),this.nameEditDialog=null)};g.dispose=function(){this.eventHandler.removeAll();this.unedit()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(a){var b=B_b(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),Ez(b,"("+a+")")):b.classList.remove("hasDisambiguationLabel"))};
g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var kkd=function(a){var b=a.id,c=a.label,d=a.stateClass;return Zs($ed(b,a.name,a.hovercardId,d,a.isWarning,a.isDeletionDisabled,Zs(""+(d?bfd(d):afd())),Zs(""+cfd(c)),Zs(""+dfd(b))))};Ks.addCoreFactory({type:2,factory:{create:function(a){var b=U_b(a.selection,a.chipConfig,a.chipCustomization),c=Lp(kkd,b);Gs(Fs(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new jkd(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
Ks.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new $jd(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
Ks.addDecoratorFactory({type:1,configurationKey:void 0,factory:{create:function(a,b){a=b.root;a:{var c=b.state;switch(c){case 0:c=25286;break a;case 1:c=169606;break a;case 3:c=169617;break a;default:throw Error("ng`"+c);}}Rs({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var mkd=function(){return Zs('<div draggable="true" peoplekit-id="'+$s("Svajxe")+'" class="'+$s("peoplekitComponentsChipsetImplDraggableChip")+'">'+lkd()+"</div>")},nkd=function(){return Zs('<div draggable="false" peoplekit-id="'+$s("shtr1e")+'" class="'+$s("peoplekitComponentsChipsetImplNonDraggableChip")+'">'+lkd()+"</div>")},okd=function(a){a=a.height;return Zs('<div peoplekit-id="'+$s("tozrW")+'" class="'+$s("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+$s(NI(a))+'px"></div>')},
pkd=function(){return Zs('<div peoplekit-id="'+$s("DOyw7")+'" class="'+$s("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},lkd=function(){return Zs('<div peoplekit-id="'+$s("ubaLBe")+'" class="'+$s("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var k4b=function(a,b,c,d,e,f,h,k,q,u){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=q;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=Js(this);this.lookupSelector=new Dt(a,f,h,u);this.dropMarker=Lp(okd,{height:R3b(this.appearanceConfig.getDensity())});this.attach()};
k4b.prototype.attach=function(){var a=this;this.eventHandler.listen(this.container.getRoot(),"dragover",function(b){b=b.event_;if(b.dataTransfer.types.includes("text/lookupids")){a.container.getRoot().classList.add("isDraggedOver");var c=qkd(a,a.chipControllers.size);w9(a);rkd(a,c);b.stopPropagation();b.preventDefault()}a.container.getRoot()});this.eventHandler.listen(this.container.getRoot(),"dragleave",function(b){b=b.event_;b.dataTransfer.types.includes("text/lookupids")&&!a.container.getRoot().contains(b.relatedTarget)&&
(a.container.getRoot().classList.remove("isDraggedOver"),w9(a),b.stopPropagation(),b.preventDefault())});this.eventHandler.listen(this.container.getRoot(),"drop",function(b){skd(a,b)});d1b(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
k4b.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=Js(c);f.listen(b,"dragstart",function(h){tkd(d,a,h)});f.listen(b,"dragend",function(h){ukd(d,h)});f.listen(b,"dragover",function(h){d.container.getRoot().classList.add("isDraggedOver");h=h.event_;if(h.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var q=Fs(h.currentTarget,"ubaLBe").clientWidth,u=Ct(d.container.getRoot());k=qkd(d,h.offsetX<q/2?u?k+1:k:u?k:k+1);w9(d);rkd(d,k);h.stopPropagation();
h.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(h){vkd(d,h)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};k4b.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var tkd=function(a,b,c){c=c.event_;var d=a.chipControllers.get(String(b.id())),e=a.navigatable.getActiveItems();e.includes(d)?a.draggedLookupIds=e.map(function(f){return j4b(f.getSelection())}):a.draggedLookupIds=[j4b(b)];a.draggedChips=Lp(pkd);b=l(a.draggedLookupIds);for(d=b.next();!d.done;d=b.next())d=a.chipControllers.get(String(d.value.getId())),d.drag(),a.draggedChips.appendChild(d.getRoot().cloneNode(!0)),d.undrag(),d.disable();Bz(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",g4b(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";U0b(a.container.getRoot())},ukd=function(a,b){if(b.event_.dataTransfer.dropEffect==="move")a.lookupSelector.deselect(a.draggedLookupIds.map(function(d){return d.getId()})),a.navigatable.reset(),a.undoRedoStack.push();else{b=l(a.draggedLookupIds);for(var c=b.next();!c.done;c=b.next())a.chipControllers.get(String(c.value.getId())).enable()}w9(a);Bz(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},qkd=function(a,b){for(;b>0;){var c=a.selectionsState.at(b-1);if(a.chipControllers.get(String(c.id())).isDisabled())b--;else break}return b},rkd=function(a,b){b!==a.currentDropIndex&&(a.container.insert(b,a.dropMarker),a.currentDropIndex=b)},w9=function(a){a.container.removeItem(a.dropMarker);a.currentDropIndex=-1},vkd=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=i4b(c);a.draggedLookupIds=[];for(var d=a.currentDropIndex,e=l(c),f=e.next();!f.done;f=e.next())f=a.selectionsState.indexOf(f.value.getId()),f>=0&&f<a.currentDropIndex&&d--;w9(a);a.lookupSelector.deselect(c.map(function(h){return h.getId()}));a.lookupSelector.select(c,2,d);b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="move";a.currentDropIndex=-1;a.undoRedoStack.push()}else w9(a);Bz(a.draggedChipsContainer);a.chipDropCallback()},skd=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=i4b(c),a.draggedLookupIds=[],w9(a),a.lookupSelector.deselect(c.map(function(d){return d.getId()})),a.currentDropIndex=a.chipControllers.size,a.lookupSelector.select(c,2,a.currentDropIndex),b.stopPropagation(),b.preventDefault(),b.dataTransfer.dropEffect="move",a.currentDropIndex=-1,a.undoRedoStack.push());Bz(a.draggedChipsContainer);a.chipDropCallback()};
k4b.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var wkd=function(){};wkd.prototype.listen=function(){};wkd.prototype.unlisten=function(){};wkd.prototype.dispose=function(){};var xkd=function(){this.listeners=new Map},x9=function(a,b,c){b=JSON.stringify(b);var d=a.listeners.get(b)||[];a.listeners.set(b,[].concat(p(d),[c]))};xkd.prototype.handleEvent=function(a){var b=a.event,c=[];b.platformModifierKey&&c.push(512);b.altKey&&c.push(18);b.shiftKey&&c.push(16);c.push(b.keyCode);b=l(this.listeners.get(JSON.stringify(c))||[]);for(c=b.next();!c.done;c=b.next())c=c.value,c(a)};xkd.prototype.dispose=function(){this.listeners.clear()};var Bt=function(a,b,c,d,e,f,h,k,q,u,A){var G=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=h;this.clientConfig=k;this.callbacks=q;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=O0b(c.getRoot(),new dgd(new xfd({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=Js(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new xkd;ykd(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?l4b(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,u,this.callbacks.chipDrop,this.appearanceConfig,A):new wkd;this.eventHandler.listen(c.getRoot(),"keyup",function(H){H.keyCode!==9||H.target!==G.container.getRoot()||G.navigatable.getSpotlitItem()||(H.shiftKey?G.navigatable.prev(0):G.navigatable.next(0))});this.onSelectionCallback=function(H,N){G.insert(H,N)};this.onDeselectionCallback=function(H){G.remove(H.id())};
this.onSelectionReplacedCallback=function(H,N,O){G.replace(H,N,O)};T8(this.selectionsState,this.onSelectionCallback);S8(this.selectionsState,this.onDeselectionCallback);bid(this.selectionsState,this.onSelectionReplacedCallback)},ykd=function(a){x9(a.keyboardShortcutHandler,[512,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyMethod(d);a.navigatable.goToItem(d,2);c.stopPropagation()});x9(a.keyboardShortcutHandler,[18,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyContactMethod(d);
a.navigatable.goToItem(d,2);c.stopPropagation()});x9(a.keyboardShortcutHandler,[512,88],function(c){a.chipConfig.getAllowChipDeletion()&&(a.cut(a.navigatable.getSpotlitItem(),3),c.stopPropagation())});x9(a.keyboardShortcutHandler,[18,39],function(c){var d=a.navigatable.getSpotlitItem();d&&(d.getSelection(),d.getRoot());c.stopPropagation();c.preventDefault()});var b=function(c){if(a.chipConfig.getAllowDisplayNameEditing()&&(c.stopPropagation(),c.preventDefault(),c=a.navigatable.getSpotlitItem())){c=
String(c.getSelection().id());var d;((d=a.chipCustomizations.get(c).chipAction)==null?0:d.disableDisplayNameEditing)||a.chips.get(c).edit()}};x9(a.keyboardShortcutHandler,[16,69],b);x9(a.keyboardShortcutHandler,[113],b);x9(a.keyboardShortcutHandler,[16,70],function(c){a.chipConfig.getAllowContactMethodEditing()&&(c.stopPropagation(),c.preventDefault(),zkd(a))});b=function(c){if(a.chipConfig.getAllowChipDeletion()){c.stopPropagation();c.preventDefault();c=l(a.navigatable.getActiveItems());for(var d=
c.next();!d.done;d=c.next())a.selectionsState.deselect(d.value.getSelection(),7);a.undoRedoStack.push()}};x9(a.keyboardShortcutHandler,[46],b);x9(a.keyboardShortcutHandler,[8],b);x9(a.keyboardShortcutHandler,[13],function(c){c.stopPropagation();c.preventDefault();a.callbacks.chipContextMenu(a.navigatable.getSpotlitItem(),c.event)})};Bt.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||Akd(this,a,b)};
Bt.prototype.remove=function(a){var b=String(a);if(this.chipElements.has(b)){var c=this.chipElements.get(b);this.chipEventHandlers.get(b).removeAll();this.container.removeItem(c);this.chipElements.delete(b);this.dragonDropHandler.unlisten(a,c);this.navigatable.remove([this.chips.get(b)],!!this.navigatable.getSpotlitItem());this.intelligentCollection.remove([this.chips.get(b)]);var d;(d=this.chips.get(b))==null||d.dispose();this.chips.delete(b);this.chipEventHandlers.delete(b);this.chipCustomizations.delete(b);
this.container.getRoot()}};Bt.prototype.replace=function(a,b,c){this.remove(c);Akd(this,a,b)};
var Akd=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?Lp(mkd):Lp(nkd);a.container.insert(c,e);a.chipElements.set(d,e);var f=Fs(e,"ubaLBe"),h=a.chipConfig.getChipCustomizationCallback()(b.result());a.chipCustomizations.set(d,h);var k=f4b(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var q=b.id();q=a.chips.get(String(q));a.container.getRoot().focus();a.navigatable.goToItem(q,0)},spotlight:function(){var q=b.id();q=a.chips.get(String(q));a.container.getRoot().focus();
a.navigatable.goToItem(q,2)},copyMethod:function(q){a.copyMethod(q)},copyContactMethod:function(q){a.copyContactMethod(q)},cut:function(q){a.cut(q,4)},editContactMethod:function(){zkd(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,h,Ct(a.container.getRoot()));f=Js(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(q){a.callbacks.chipClick(k,q)});f.listen(e,"dblclick",function(q){a.callbacks.chipContextMenu(k,q)});a.chips.set(d,k);a.chipEventHandlers.set(d,f);a.navigatable.insert(c,
[k],!!a.navigatable.getSpotlitItem());a.intelligentCollection.append([k]);a.chipConfig.getAllowChipDisambiguation()&&Promise.resolve().then(function(){a.chips.get(d)===k&&a.peopleStore.disambiguate(b.result().getPrimaryTarget(),Kjd(Ljd(new k9,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(q){k.setDisambiguationLabel(q.getDisambiguationLabel())})})};Bt.prototype.getNavigatable=function(){return this.navigatable};
Bt.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};Bt.prototype.activateAllChips=function(){this.navigatable.activateAll()};
Bt.prototype.dispose=function(){this.eventHandler.removeAll();for(var a=l(this.chips.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.dragonDropHandler.dispose();this.keyboardShortcutHandler.dispose()};
var Bkd=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};Bt.prototype.copyMethod=function(a){a=Bkd(this,a);p4b(a,this.container.getRoot())};Bt.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&o4b(a.result().getDisplayValue(),this.container.getRoot())};
Bt.prototype.cut=function(a,b){a=Bkd(this,a);p4b(a,this.container.getRoot());a=l(a);for(var c=a.next();!c.done;c=a.next())this.selectionsState.deselect(c.value,b);this.undoRedoStack.push()};var zkd=function(a){var b=a.navigatable.getSpotlitItem();b&&(b=b.getSelection(),a.selectionsState.deselect(b,10),b=b.result().getDisplayValue(),a.callbacks.chipEditContactMethod(b),a.undoRedoStack.push())};
Bt.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var q4b=function(a,b){this.delegate=a;this.health=b};g=q4b.prototype;g.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,jt(c)),c;}};g.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,jt(b)),b;}};g.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,jt(d)),d;}};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.focusLastChip=function(){return this.delegate.focusLastChip()};
g.activateAllChips=function(){this.delegate.activateAllChips()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.dispose=function(){try{this.delegate.dispose()}catch(a){throw this.health.createError(9,jt(a)),a;}};var s4b=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=Js(this)};g=s4b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(Xs(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(Xs(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal)){var b=Ckd(a);switch(a.event.keyCode){case this.nextKeyCode:this.navigatable&&!this.navigatable.next(b)&&(this.navigatable.getActiveItems().length<2||b!==1)&&this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(b);a.stopPropagation();a.preventDefault();break;case 36:case 38:this.navigatable.goToIndex(0,b);a.stopPropagation();
a.preventDefault();break;case 35:case 40:this.navigatable.goToIndex(this.navigatable.size()-1,b);a.stopPropagation();a.preventDefault();break;case 65:a.event.platformModifierKey&&(this.navigatable.activateAll(),a.stopPropagation(),a.preventDefault());break;case 32:var c=this.navigatable.getSpotlitItem();c&&(this.navigatable.goToItem(c,b===2?3:b),a.stopPropagation(),a.preventDefault())}}};
g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,Ckd(b));b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};var Ckd=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};s4b.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var Dkd=function(){};Dkd.prototype.call=function(a){a()};Dkd.prototype.cancel=function(){};var w4b=RegExp('(([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)^"]*)("[^"]*")([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)^"]*))+|([^(\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a)])+',"g"),Ekd=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),Fkd=Object.freeze({startIndex:0,length:0,value:""});var B4b=function(a){a=a||{};a=a.max_height;var b=Zs,c;a&&a>0?c=Zs('<div class="'+$s("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+$s(NI(a))+'px">'+Qhd(Zs('<div peoplekit-id="'+$s("kE8AEc")+'"></div>'))+"</div>"):c=Zs('<div class="'+$s("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+$s("kE8AEc")+'"></div></div>');return b(c)},D4b=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;return Zs('<div class="'+
$s("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+$s(NI(f))+'px" role="presentation"><input id="'+$s(b)+'" class="'+$s("peoplekitComponentsSearchbarImplSearchInput")+" "+$s(a)+'" peoplekit-id="'+$s("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+$s(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+$s(d)+'" size="'+$s(d.length)+'" type="text" role="combobox"'+(e?" autofocus":
"")+'><span class="'+$s("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+$s(a)+'" peoplekit-id="'+$s("nl4wje")+'"></span></div>')};var Gkd=[[37],[512,37],[16,37],[18,37],[18,16,37],[512,16,37],[39],[512,39],[16,39],[18,39],[18,16,39],[512,16,39],[46],[8],[13],[36],[16,36],[512,36],[35],[16,35],[512,35],[38],[512,38],[512,16,38],[16,38],[40],[512,40],[512,16,40],[16,40],[113],[512,67],[512,88],[512,65],[16,69],[16,70]],Et=function(a,b,c,d,e,f,h,k,q,u){var A=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=q;this.prevQueryValue="";this.isDisposed=
!1;this.inputElement=Fs(c,"BbVjBd");this.inputWidthMeasurer=Fs(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new eid;this.autocompleteBatcher=new Dkd;this.lookupSelector=new Dt(this.selectionsState,h,k,u);this.eventHandler=Js(this);this.keyboardShortcutHandler=new xkd;this.enterKeyDownListeners=[];this.query=Fkd;this.onSelectionCallback=function(){A.onSelect()};this.onSelectionAttemptedCallback=function(){A.onSelectAttempt()};this.onDeselectionCallback=
function(){A.onDeselect()};this.attach();y9(this);Hkd(this)};g=Et.prototype;g.select=function(a){return this.chipsBar.select(a)};g.deselect=function(a){this.chipsBar.deselect(a)};g.replace=function(a){return this.chipsBar.replace(a)};g.focus=function(){this.inputElement.focus()};
g.dispose=function(){this.detach();this.autocomplete.dispose();this.chipsBar.dispose();this.lookupSelector.dispose();this.updateMinWidthBatcher.cancel();this.autocompleteBatcher.cancel();this.keyboardShortcutHandler.dispose();this.enterKeyDownListeners.length=0;this.isDisposed=!0};g.subscribeToEnterKeyDown=function(a){this.enterKeyDownListeners.push(a)};g.search=function(){z9(this,!1,!0)};
g.attach=function(){var a=this;T8(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);S8(this.selectionsState,this.onDeselectionCallback);this.eventHandler.listen(this.inputElement,"keydown",function(b){b=Xs(b);a.keyboardShortcutHandler.handleEvent(b);if(!a.inputElement.value)a.undoRedoStack.onKeyDown(b)});this.eventHandler.listen(this.inputElement,"keyup",function(b){b.keyCode!==37&&b.keyCode!==39||z9(a)});this.eventHandler.listen(this.inputElement,
"input",function(){a.onInput()});this.eventHandler.listen(this.inputElement,"paste",function(b){Ikd(a,b)});this.eventHandler.listen(this.inputElement,"blur",function(){a.onInputBlur()});this.eventHandler.listen(this.inputElement,"focus",function(){a.onInputFocus()});this.eventHandler.listen(this.inputElement,"click",function(){z9(a)});this.eventHandler.listen(this.searchBarElement,"click",function(){a.inputElement.focus()});Jkd(this)};
g.detach=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.eventHandler.removeAll()};
var z9=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;a.autocompleteBatcher.call(function(){a.query=y4b(a.inputElement.value,a.inputElement.selectionStart||0);if(c||a.prevQueryValue!==a.query.value||!a.autocomplete.isShown())a.prevQueryValue=a.query.value,a.autocomplete.search(a.query.value,a.inputElement,b||a.config.getShowSuggestions(),function(){})})},Kkd=function(a){var b=a.inputElement.value;a.inputElement.value="";a.detachAutocomplete();var c=ut(b);c=(new yt(Ht(c.getAddress()))).setDisplayName(c.getName());
a.lookupSelector.select([c],13).then(function(d){a.isDisposed||(d.length&&(a.inputElement.value=b),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),y9(a),z9(a))});a.undoRedoStack.push()};Et.prototype.onInput=function(){y9(this);z9(this)};
var Lkd=function(a,b){if(ct)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},Ikd=function(a,b){var c=(a.inputElement.selectionEnd||0)-(a.inputElement.selectionStart||0),d=a.inputElement.value.length;if(!(d>0&&c<d)){var e;c=((e=Lkd(a,b))==null?void 0:e.getData("text"))||"";e=x4b(c);var f=new Map;e=e.map(function(h){var k=ut(h.value),q=k.getAddress()?k.getName():"";k=k.getAddress()||k.getName();k=k.includes("@")?Ht(k):T4b(k);
q=(new yt(k)).setDisplayName(q);f.set(String(k),h);return q});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(h){a.isDisposed||(a.inputElement.value=h.map(function(k){var q;return((q=f.get(String(k)))==null?void 0:q.value.trim())||""}).join(", "),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),y9(a),z9(a))});a.undoRedoStack.push()}};Et.prototype.onInputFocus=function(){z9(this)};Et.prototype.onInputBlur=function(){this.detachAutocomplete()};
var y9=function(a){a.updateMinWidthBatcher.call(function(){a.inputWidthMeasurer.textContent=a.inputElement.value.length>a.inputElement.placeholder.length?a.inputElement.value:a.inputElement.placeholder;a.inputContainer.style.flexBasis=Math.max(a.inputWidthMeasurer.clientWidth,50)-2+"px"})},Jkd=function(a){var b=Ct(a.searchBarElement)?39:37,c=function(d){!a.inputElement.value&&a.selectionsState.size()>0&&(a.chipsBar.focusLastChip(),d.stopPropagation())};x9(a.keyboardShortcutHandler,[8],c);x9(a.keyboardShortcutHandler,
[b],c);x9(a.keyboardShortcutHandler,[16,b],c);x9(a.keyboardShortcutHandler,[512,16,b],c);x9(a.keyboardShortcutHandler,[18,16,b],c);x9(a.keyboardShortcutHandler,[512,65],function(d){a.inputElement.value||(a.chipsBar.focusLastChip(),a.chipsBar.activateAllChips(),d.preventDefault(),d.stopPropagation())});x9(a.keyboardShortcutHandler,[40],function(d){a.inputElement.value||a.autocomplete.isShown()||(z9(a,!0),d.preventDefault(),d.stopPropagation())});x9(a.keyboardShortcutHandler,[13],function(d){if(a.inputElement.value){var e=
a.inputElement.value;e=e==null?!1:ut(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(Kkd(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=l(a.enterKeyDownListeners);for(var h=f.next();!h.done;h=f.next())h=h.value,h(e);d.preventDefault();d.stopPropagation()}});b=l(Gkd);for(c=b.next();!c.done;c=b.next())x9(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
Et.prototype.detachAutocomplete=function(){this.autocompleteBatcher.cancel();this.autocomplete.canHide()&&(this.autocomplete.detach(),this.prevQueryValue="")};
Et.prototype.onSelect=function(){Mkd(this);Hkd(this);this.scrollBarElement&&(this.scrollBarElement.scrollTop=this.scrollBarElement.scrollHeight);var a;if(((a=this.inputElement.getRootNode())==null?void 0:a.activeElement)===this.inputElement){this.autocomplete.getNavigatable().reset();a=this.inputElement.value;var b=this.query;this.inputElement.value=(a.slice(0,Math.max(b.startIndex-1,0))+a.slice(b.startIndex+b.length)).replace(Ekd,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
z9(this,!1,!1);y9(this)}};Et.prototype.onSelectAttempt=function(){this.onSelect()};Et.prototype.onDeselect=function(){this.autocomplete.isShown()&&z9(this,!1,!1);Mkd(this);Hkd(this);y9(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var Mkd=function(a){var b,c=a.selectionsState.size()>0?(b=a.config.helpTextWithSelections)!=null?b:a.config.helpText:a.config.helpText;a.inputElement.placeholder!==c&&(a.inputElement.placeholder=c,y9(a))},Hkd=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var A4b=function(a,b,c){this.selectionsState=a;this.lookupSelector=b;this.undoStack=[];this.redoStack=[];a=10;a=a===void 0?0:a;var d;this.maxUndoStackSize=(d=Ica(rl(c.internal,3)))!=null?d:a;this.push()};A4b.prototype.push=function(){var a=this.selectionsState.asArray().map(j4b),b=!1;this.undoStack.length!==0&&z4b(this.undoStack[this.undoStack.length-1],a)||(this.undoStack.push(a),b=!0);this.undoStack.length>this.maxUndoStackSize&&this.undoStack.shift();this.redoStack.length=0;return b};
A4b.prototype.undo=function(){if(this.undoStack.length<=1)return!1;var a=this.undoStack.pop();this.redoStack.push(a);a=this.undoStack[this.undoStack.length-1];this.selectionsState.clear();this.lookupSelector.select(a,11);return!0};A4b.prototype.clear=function(){this.undoStack.length=0;this.push()};
A4b.prototype.onKeyDown=function(a){var b=a.event.keyCode===90&&a.event.platformModifierKey&&a.event.shiftKey;if(a.event.keyCode===89&&a.event.platformModifierKey||b)this.redoStack.length!==0&&(b=this.redoStack.pop(),this.undoStack.push(b),this.selectionsState.clear(),this.lookupSelector.select(b,11)),a.preventDefault(),a.stopPropagation();a.event.keyCode===90&&a.event.platformModifierKey&&!a.event.shiftKey&&(this.undo(),a.preventDefault(),a.stopPropagation())};var E4b=Vs.getInstance();var I4b=function(a,b,c,d,e){var f=this;this.root=a;this.searchBar=b;this.selectionsState=c;this.interactionReporter=d;this.searchbarTracker=e;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new eid;T8(this.selectionsState,function(){f.notifySelectionChanged()});S8(this.selectionsState,function(){f.notifySelectionChanged()});bid(this.selectionsState,function(){f.notifySelectionChanged()})};g=I4b.prototype;g.select=function(a){return this.searchBar.select(a)};g.deselect=function(a){this.searchBar.deselect(a)};
g.replace=function(a){return this.searchBar.replace(a)};g.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};g.subscribeToEnterKeyDown=function(a){this.searchBar.subscribeToEnterKeyDown(a)};g.notifySelectionChanged=function(){var a=this;this.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=l(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};g.focus=function(){this.searchBar.focus()};
g.report=function(a){var b=this.selectionsState.asArray();e3b(this.interactionReporter,a,b)};g.dispose=function(){this.searchbarTracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.searchBar.dispose()};var G4b=function(a){a=a||{};a=a.classes;return Zs('<div peoplekit-id="'+$s("P3anae")+'"'+(a?' class="'+$s(a)+'"':"")+"></div>")};var Nkd={create:function(a,b,c,d){d=d===void 0?new pt:d;return L4b(a,b,c,new Red,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return L4b(a,b,c,new Red,d)},createConfig:function(a){a=a===void 0?new Xxc(zI.apiEnv,new Yxc(zI.userProfileId)):a;return new Tjd(a)}};var A9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A9,V);g=A9.prototype;g.getEnableClearcut=function(){return kl(this,1)};g.setEnableClearcut=function(a){return Ol(this,1,a)};g.getSocialApplication=function(){return pl(this,2)};g.getSocialApplicationOrUndefined=function(){return du(this,2)};g.setEventSources=function(a){Bu(this,5,iu,a)};var B9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B9,V);B9.prototype.getApplication=function(){return pl(this,1)};B9.prototype.setApplication=function(a){return Sl(this,1,a)};B9.prototype.getApplicationOrUndefined=function(){return du(this,1)};B9.prototype.getIsEnabled=function(){return kl(this,2)};var C9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(C9,V);g=C9.prototype;g.getSuggestMaxResults=function(){return Ik(this,1,10)};g.getSearchMaxResults=function(){return Ik(this,2,10)};g.getCacheSize=function(){return Ik(this,3,500)};g.setCacheSize=function(a){Pl(this,3,a)};g.hasCacheSize=function(){return ll(this,3)};g.getCacheStaleSec=function(){return Pm(this,4,86400)};g.getCacheExpiredSec=function(){return Pm(this,5,1209600)};
g.getRpcTimeoutSec=function(){return Pm(this,12,60)};g.getSuggestFormat=function(){return pl(this,15,1)};g.getSearchFormat=function(){return pl(this,16,1)};var D9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(D9,V);D9.prototype.getApiKey=function(){return Oh(this,1)};D9.prototype.setApiKey=function(a){return Rl(this,1,a)};var E9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(E9,V);g=E9.prototype;g.getClientId=function(){return Oh(this,1,"CLIENT_UNSPECIFIED")};g.setClientId=function(a){return Rl(this,1,a)};g.getAffinityType=function(){return Oh(this,4,"AFFINITY_TYPE_UNKNOWN")};g.setAffinityType=function(a){return Rl(this,4,a)};g.getContainerType=function(){return v9b(this,7)};g.setPhoneCanonicalizationInference=function(a){return Sl(this,19,a)};
g.getPhoneCanonicalizationInferenceOrUndefined=function(){return du(this,19)};var Okd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Okd,V);g=Okd.prototype;g.getClient=function(){return X(this,C9,1)};g.setClient=function(a){return W(this,C9,1,a)};g.hasClient=function(){return nk(this,C9,1)};g.getGapi=function(){return X(this,D9,2)};g.getPeopleApi=function(){return X(this,E9,3)};g.getClearcut=function(){return X(this,A9,4)};g.setClearcut=function(a){W(this,A9,4,a)};g.hasClearcut=function(){return nk(this,A9,4)};
g.getExperiments=function(){return X(this,B9,5)};g.setExperiments=function(a){return W(this,B9,5,a)};g.hasExperiments=function(){return nk(this,B9,5)};var Pkd=bna(Okd);var Qkd;var F9=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new JLc;a=this.getPeopleApi();Hc(a,7,Qb,Fk()).length||ip(a,7,[2,8,1,7,10,11]);Ek(a,8,Fk()).length||Mk(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=l(Ek(a,8,Fk()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":Pc(a,8,hc,c+".metadata.verified",void 0,ic)}};
F9.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new C9);return this.delegate_.getClient()};F9.prototype.getGapi=function(){if(!nk(this.delegate_,D9,2)){var a=this.delegate_,b=new D9;W(a,D9,2,b)}return this.delegate_.getGapi()};F9.prototype.getPeopleApi=function(){if(!nk(this.delegate_,E9,3)){var a=this.delegate_,b=new E9;W(a,E9,3,b)}return this.delegate_.getPeopleApi()};
F9.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new A9);return this.delegate_.getClearcut()};var Rkd=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new B9);return a.delegate_.getExperiments()};F9.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var Skd=function(a){a=a.getClient();return Ik(a,6,500)?Math.min(Math.round(Ik(a,6,500)/4),500):500};var Tkd;var G6b=null;var Ukd=function(){};Ukd.prototype.processItem=function(){};var Vkd=new Ukd;var N4b=new Set([10,11]);var Wkd=function(a){this.interleaveGroups_=kl(a,33)},Xkd=function(a,b,c){return b.filter(function(d){return d.provenance!==8}).sort(function(d,e){a:{var f=a.interleaveGroups_;switch(c){case 2:d=O4b(d,e,f,!0);break a;default:d=P4b(d,e,f)}}return d}).map(function(d){return String(d.id)})};var G9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(G9,V);G9.prototype.setPhoneCanonicalizationInference=function(a){return Sl(this,1,a)};G9.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return du(this,1)};var Gt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gt,V);Gt.prototype.setDevice=function(a){return Sl(this,1,a)};var Ykd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ykd,V);var Zkd=function(){var a=new Ykd;return Sl(a,1,1)},$kd=function(a,b){return Rl(a,2,b)};var ald=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ald,V);g=ald.prototype;g.getAffinityType=function(){return Vt(this,1)};g.setAffinityType=function(a){return Sl(this,1,a)};g.getQuery=function(){return am(this,2)};g.setQuery=function(a){return Rl(this,2,a)};g.clearQuery=function(){tq(this,2)};g.hasQuery=function(){return ml(this,2)};g.setClientInformation=function(a){W(this,Gt,3,a)};g.setMaxResults=function(a){return Pl(this,4,a)};
g.setFormattingOptions=function(a){W(this,G9,5,a)};g.setDelegation=function(a){W(this,Ykd,6,a)};var bld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bld,V);g=bld.prototype;g.getAffinityVersion=function(){return Hu(this,1)};g.setAffinityVersion=function(a){Pl(this,1,a)};g.getAffinityVersionOrUndefined=function(){return Lu(this,1)};g.getAffinityType=function(){return am(this,4)};g.setAffinityType=function(a){return Rl(this,4,a)};var k5b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(k5b,V);var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(H9,V);H9.prototype.getValue=function(){return am(this,1)};H9.prototype.getValue_legacyNullable=function(){return am(this,1)};H9.prototype.setValue=function(a){return Rl(this,1,a)};H9.prototype.hasValue=function(){return ml(this,1)};var I9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(I9,V);g=I9.prototype;g.getLoggingId=function(){return Xt(this,1)};g.setLoggingId=function(a){tq(this,1,ub(a,!1,!0))};g.getValue=function(){return Cu(this,2)};g.getValue_legacyNullable=function(){return Cu(this,2)};g.setValue=function(a){return tq(this,2,Hb(a))};g.hasValue=function(){return Cu(this,2)!=null};var cld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cld,V);g=cld.prototype;g.getValue=function(){return am(this,1)};g.getValue_legacyNullable=function(){return am(this,1)};g.setValue=function(a){return Rl(this,1,a)};g.hasValue=function(){return ml(this,1)};g.getGivenName=function(){return am(this,2)};g.setGivenName=function(a){return Rl(this,2,a)};g.hasGivenName=function(){return ml(this,2)};g.getFamilyName=function(){return am(this,3)};
g.setFamilyName=function(a){return Rl(this,3,a)};g.hasFamilyName=function(){return ml(this,3)};g.getSourceType=function(){return Vt(this,4)};g.setSourceType=function(a){return Sl(this,4,a)};var dld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dld,V);g=dld.prototype;g.getUrl=function(){return am(this,1)};g.setUrl=function(a){return Rl(this,1,a)};g.hasUrl=function(){return ml(this,1)};g.getType=function(){return Vt(this,2)};g.setType=function(a){return Sl(this,2,a)};g.hasType=function(){return nl(this,2)};g.getGlyph=function(){return am(this,3)};g.setGlyph=function(a){return Rl(this,3,a)};var J9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(J9,V);g=J9.prototype;g.getPhoto=function(){return X(this,dld,1)};g.setPhoto=function(a){W(this,dld,1,a)};g.hasPhoto=function(){return nk(this,dld,1)};g.getName=function(){return X(this,cld,2)};g.setName=function(a){return W(this,cld,2,a)};g.hasName=function(){return nk(this,cld,2)};g.getAffinity=function(){return X(this,I9,3)};g.hasAffinity=function(){return nk(this,I9,3)};
g.getPrimary=function(){return Nt(this,4)};var K9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(K9,V);K9.prototype.getStatus=function(){return Vt(this,2)};K9.prototype.setStatus=function(a){return Sl(this,2,a)};K9.prototype.hasStatus=function(){return nl(this,2)};var eld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eld,V);var x5b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(x5b,V);x5b.prototype.getState=function(){return Vt(this,2)};x5b.prototype.setState=function(a){return Sl(this,2,a)};var L9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(L9,V);L9.prototype.getApplication=function(){return pl(this,1)};L9.prototype.setApplication=function(a){return Sl(this,1,a)};L9.prototype.getApplicationOrUndefined=function(){return du(this,1)};var M9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(M9,V);M9.prototype.getValue=function(){return am(this,1)};M9.prototype.getValue_legacyNullable=function(){return am(this,1)};M9.prototype.setValue=function(a){return Rl(this,1,a)};M9.prototype.hasValue=function(){return ml(this,1)};var U4b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(U4b,V);g=U4b.prototype;g.getProfileId=function(){return am(this,1)};g.getProfileId_legacyNullable=function(){return am(this,1)};g.setProfileId=function(a){return Rl(this,1,a)};g.hasProfileId=function(){return ml(this,1)};g.getEmail=function(){return ap(this,2,Kt)};g.getEmail_legacyNullable=function(){return ap(this,2,Kt)};g.setEmail=function(a){return Am(this,2,Kt,a)};
g.hasEmail=function(){return ap(this,2,Kt)!=null};g.getPhone=function(){return ap(this,3,Kt)};g.getPhone_legacyNullable=function(){return ap(this,3,Kt)};g.setPhone=function(a){return Am(this,3,Kt,a)};g.hasPhone=function(){return ap(this,3,Kt)!=null};g.getClientData=function(){return am(this,4)};g.hasClientData=function(){return ml(this,4)};var Kt=[2,3];var fld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fld,V);g=fld.prototype;g.getDisplayValue=function(){return am(this,1)};g.getCanonicalValue=function(){return am(this,2)};g.setCanonicalValue=function(a){return Rl(this,2,a)};g.hasCanonicalValue=function(){return ml(this,2)};g.getOriginalValue=function(){return am(this,3)};var gld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gld,V);g=gld.prototype;g.getStatus=function(){return Vt(this,1)};g.setStatus=function(a){return Sl(this,1,a)};g.hasStatus=function(){return nl(this,1)};g.getClientData=function(){return am(this,2)};g.hasClientData=function(){return ml(this,2)};var X4b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(X4b,V);g=X4b.prototype;g.getIdCase=function(){return vm(this,N9)};g.getProfileId=function(){return ap(this,1,N9)};g.getProfileId_legacyNullable=function(){return ap(this,1,N9)};g.setProfileId=function(a){return Am(this,1,N9,a)};g.hasProfileId=function(){return ap(this,1,N9)!=null};g.getContactId=function(){return ap(this,2,N9)};g.setContactId=function(a){return Am(this,2,N9,a)};var N9=[1,2];var hld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hld,V);g=hld.prototype;g.getValueCase=function(){return vm(this,It)};g.getDisplayInfo=function(){return X(this,J9,1)};g.hasDisplayInfo=function(){return nk(this,J9,1)};g.getEmail=function(){return Qm(this,M9,2,It)};g.setEmail=function(a){return Vm(this,2,It,a)};g.hasEmail=function(){return an(this,M9,2,It)};g.getPhone=function(){return Qm(this,fld,3,It)};g.setPhone=function(a){return Vm(this,3,It,a)};
g.hasPhone=function(){return an(this,fld,3,It)};g.getIsSelf=function(){return Nt(this,6)};g.getTypeLabel=function(){return am(this,10)};g.getDisambiguationLabel=function(){return X(this,H9,14)};g.setDisambiguationLabel=function(a){W(this,H9,14,a)};var It=[2,3,4];var ild=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ild,V);g=ild.prototype;g.getDisplayInfo=function(){return X(this,J9,1)};g.hasDisplayInfo=function(){return nk(this,J9,1)};g.getMembersList=function(){return Wk(this,hld,2,Fk())};g.setMembersList=function(a){return sn(this,2,a)};g.getLabelId=function(){return am(this,3)};var Mt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,5)};Y(Mt,V);Mt.prototype.getIsPlaceholder=function(){return kl(this,2)};Mt.prototype.setIsPlaceholder=function(a){Ol(this,2,a)};Mt.prototype.getContactId=function(){return Dl(this,4)};Mt.prototype.setContactId=function(a){return Hl(this,4,a)};var jld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jld,V);jld.prototype.getAffinity=function(){return X(this,I9,2)};jld.prototype.hasAffinity=function(){return nk(this,I9,2)};var H5b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(H5b,V);H5b.prototype.getIdCase=function(){return vm(this,I5b)};var I5b=[1,2];var kld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kld,V);g=kld.prototype;g.getDisplayInfo=function(){return X(this,J9,1)};g.hasDisplayInfo=function(){return nk(this,J9,1)};g.getMembersList=function(){return Wk(this,jld,2,Fk())};g.setMembersList=function(a){return sn(this,2,a)};g.getGroupId=function(){return am(this,4)};g.setGroupId=function(a){Rl(this,4,a)};g.hasGroupId=function(){return ml(this,4)};var O9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(O9,V);O9.prototype.getDataCase=function(){return vm(this,lld)};O9.prototype.getGroup=function(){return Qm(this,kld,2,lld)};O9.prototype.setGroup=function(a){Vm(this,2,lld,a)};var lld=[1,2,3];var mld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mld,V);var nld=new zT("/peoplestack.PeopleStackAutocompleteService/Autocomplete",ald,mld,function(a){return a.serialize()},Rh(mld));var old=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(old,V);g=old.prototype;g.getAffinityType=function(){return Vt(this,1)};g.setAffinityType=function(a){return Sl(this,1,a)};g.setClientInformation=function(a){W(this,Gt,2,a)};g.getName=function(){return am(this,3)};g.setName=function(a){return Rl(this,3,a)};g.hasName=function(){return ml(this,3)};g.getNameOrUndefined=function(){return fr(this,3)};var pld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pld,V);pld.prototype.getGroup=function(){return X(this,kld,1)};pld.prototype.setGroup=function(a){W(this,kld,1,a)};var qld=new zT("/peoplestack.PeopleStackAutocompleteService/CreateGroup",old,pld,function(a){return a.serialize()},Rh(pld));var Tt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tt,V);g=Tt.prototype;g.getIdCase=function(){return vm(this,Ut)};g.getEmail=function(){return ap(this,1,Ut)};g.getEmail_legacyNullable=function(){return ap(this,1,Ut)};g.setEmail=function(a){return Am(this,1,Ut,a)};g.hasEmail=function(){return ap(this,1,Ut)!=null};g.getPhone=function(){return ap(this,2,Ut)};g.getPhone_legacyNullable=function(){return ap(this,2,Ut)};g.setPhone=function(a){return Am(this,2,Ut,a)};
g.hasPhone=function(){return ap(this,2,Ut)!=null};g.getProfileId=function(){return ap(this,3,Ut)};g.getProfileId_legacyNullable=function(){return ap(this,3,Ut)};g.setProfileId=function(a){return Am(this,3,Ut,a)};g.hasProfileId=function(){return ap(this,3,Ut)!=null};g.getContactId=function(){return ap(this,5,Ut)};g.setContactId=function(a){return Am(this,5,Ut,a)};var Ut=[1,2,3,4,5];var P9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(P9,V);P9.prototype.getAffinityType=function(){return Vt(this,1)};P9.prototype.setAffinityType=function(a){return Sl(this,1,a)};P9.prototype.setClientInformation=function(a){W(this,Gt,2,a)};var rld=function(a,b){sn(a,3,b)};P9.prototype.setIds=function(a){return Bu(this,3,Tt,a)};P9.prototype.setFormattingOptions=function(a){W(this,G9,4,a)};P9.prototype.setDelegation=function(a){W(this,Ykd,5,a)};var sld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sld,V);sld.prototype.getId=function(){return X(this,Tt,1)};sld.prototype.setId=function(a){return W(this,Tt,1,a)};var tld=[2,3];var uld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uld,V);var vld=new zT("/peoplestack.PeopleStackAutocompleteService/Lookup",P9,uld,function(a){return a.serialize()},Rh(uld));var Q9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Q9,V);Q9.prototype.getAffinityType=function(){return Vt(this,1)};Q9.prototype.setAffinityType=function(a){return Sl(this,1,a)};Q9.prototype.setClientInformation=function(a){W(this,Gt,2,a)};Q9.prototype.setDelegation=function(a){W(this,Ykd,3,a)};var wld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wld,V);var xld=new zT("/peoplestack.PeopleStackAutocompleteService/Warmup",Q9,wld,function(a){return a.serialize()},Rh(wld));var yld=function(a){var b={unaryInterceptors:[new Tgd]};b=b||{};b.format="jspb";this.client_=new wUc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};yld.prototype.autocomplete=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},nld)};yld.prototype.lookup=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},vld)};
yld.prototype.createGroup=function(a,b){return HT(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},qld)};var eu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eu,V);g=eu.prototype;g.getTimestamp=function(){return Dl(this,1)};g.getTimestamp_asLegacyNumberOrString=function(){return zl(this,1)};g.setTimestamp=function(a){return Hl(this,1,a)};g.hasTimestamp=function(){return yl(this,1)};g.getAffinityVersion=function(){return Ik(this,2)};g.setAffinityVersion=function(a){Pl(this,2,a)};g.getAffinityVersionOrUndefined=function(){return Lu(this,2)};
g.getNextPageToken=function(){return Oh(this,4)};var R9=function(a){return Ol(a,5,!0)};eu.prototype.getCode=function(){return pl(this,6)};eu.prototype.setCode=function(a){return Sl(this,6,a)};eu.prototype.getCodeOrUndefined=function(){return du(this,6)};var g5b=new Bv(417869898,Mt);var l5b=new Bv(417866180,k5b);var zld=function(a){a=a==null?"":String(a);for(var b=0,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a.codePointAt(c);return b},e5b=function(a){if(!a)return 0;a=Array.from(a).map(zld);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var R4b=new Map([["CONTACT_GROUP",9],["FAMILY",11],["MEDIA_COLLECTION",10],["CHAT",12],["GROUP_DM",12],["ROOM",13],["DYNAMITE_ROOM",13],["DYNAMITE_NAMED_ROOM",13],["DYNAMITE_UNNAMED_ROOM",14]]);var Ald=function(a){this.leanResponseProcessorConfig_=a},Bld=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=j5b(b),h=[],k=l(Wk(b,hld,1,Fk())),q=k.next();!q.done;q=k.next()){q=q.value;var u=W4b(q);if(u.equals(Lt)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;var A=f5b(q);if(!A)continue;u=W6b(A)}h.push(String(u));var G=A=void 0;u={id:u,containerIds:$4b(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:a5b(b,q),provenance:c,isPrimary:d5b((A=q.getDisplayInfo())!=null?A:null),
itemAffinity:c5b(b),fieldAffinity:b5b((G=q.getDisplayInfo())!=null?G:null),contactMethod:q,person:b};f&&(u.resultExtendedData=f);if(q=m5b(q))u.targetExtendedData=q;e.push(u)}e.length&&e.every(function(H){return!H.isPrimary})&&(e[0].isPrimary=!0);return e},Cld=function(a,b,c){var d=V6b(S4b(am(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(q){return Bld(a,q,8,!0)}),f=e.filter(function(q){return q&&q.length}).map(function(q){return String(q[0].id)}),h,k;d=[{id:d,containerIds:[d],memberKeys:f,
totalMemberCount:(h=Lu(b,3))!=null?h:void 0,provenance:c,isPrimary:!0,itemAffinity:b5b((k=b.getDisplayInfo())!=null?k:null),fieldAffinity:-Infinity,group:b}];b=l(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,p(c.value));return d},Dld=function(a,b){var c=Uxc(a.getLabelId()||""),d=a.getMembersList().map(function(h){if(h.hasEmail()&&h.getEmail().getValue()){var k,q;var u={id:Ht(h.getEmail().getValue()),containerIds:$4b(h),contactMethod:h,provenance:8,isMe:!1,dataSource:1,isPrimary:d5b((k=h.getDisplayInfo())!=
null?k:null),itemAffinity:-Infinity,fieldAffinity:b5b((q=h.getDisplayInfo())!=null?q:null)};if(h=m5b(h))u.targetExtendedData=h}else u=null;return u}).filter(Boolean),e=d.map(function(h){return String(h.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:b5b((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(p(d))},Eld=function(a,b,c){switch(b.getDataCase()){case 1:return Bld(a,Qm(b,
jld,1,lld),c);case 2:return Cld(a,b.getGroup(),c);case 3:return Dld(Qm(b,ild,3,lld),c);default:return[]}},Fld=function(a,b,c){return Wk(b,O9,1,Fk()).flatMap(function(d){return Eld(a,d,c)})};var fu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fu,V);fu.prototype.getSessionState=function(){return X(this,TO,1)};fu.prototype.setSessionState=function(a){return W(this,TO,1,a)};fu.prototype.hasSessionState=function(){return nk(this,TO,1)};var Rt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rt,V);Rt.prototype.hasNoChanges=function(){return jl(this,12)};var Qt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qt,V);Qt.prototype.getEventType=function(){return pl(this,1)};Qt.prototype.setEventType=function(a){return Sl(this,1,a)};var St=function(a,b){return Sl(a,2,b)},n5b=function(a,b){return Sl(a,3,b)};g=Qt.prototype;g.getErrorType=function(){return pl(this,6)};g.setErrorType=function(a){return Sl(this,6,a)};g.hasErrorType=function(){return nl(this,6)};g.getIdType=function(){return pl(this,8)};
g.setIdType=function(a){Sl(this,8,a)};g.getResultIndex=function(){return Ik(this,9)};g.setResultIndex=function(a){Pl(this,9,a)};g.getToken=function(){return Oh(this,10)};g.setToken=function(a){return Rl(this,10,a)};g.getCacheState=function(){return X(this,m9,11)};g.setCacheState=function(a){return W(this,m9,11,a)};g.hasCacheState=function(){return nk(this,m9,11)};g.getQueryLength=function(){return Ik(this,14)};g.setQueryLength=function(a){return Pl(this,14,a)};
g.hasQueryLength=function(){return ll(this,14)};g.getItemCount=function(){return Ik(this,15)};g.setItemCount=function(a){return Pl(this,15,a)};g.hasItemCount=function(){return ll(this,15)};g.getLookupInfo=function(){return X(this,Rt,16)};g.getMutableLookupInfo=function(){return Du(this,Rt,16)};g.setLookupInfo=function(a){return W(this,Rt,16,a)};g.hasLookupInfo=function(){return nk(this,Rt,16)};g.getQueryScope=function(){return pl(this,17)};g.setQueryScope=function(a){return Sl(this,17,a)};
g.hasQueryScope=function(){return nl(this,17)};var p5b=new Map([[0,1],[1,2],[2,3],[3,4]]);var Gld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gld,V);g=Gld.prototype;g.getLabel=function(){return Vt(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.getItemCount=function(){return Hu(this,2)};g.setItemCount=function(a){return Pl(this,2,a)};g.hasItemCount=function(){return ll(this,2)};g.getLookupInfo=function(){return X(this,Rt,3)};g.getMutableLookupInfo=function(){return Du(this,Rt,3)};
g.setLookupInfo=function(a){return W(this,Rt,3,a)};g.hasLookupInfo=function(){return nk(this,Rt,3)};g.getQueryLength=function(){return Hu(this,4)};g.setQueryLength=function(a){return Pl(this,4,a)};g.hasQueryLength=function(){return ll(this,4)};g.getQueryScope=function(){return pl(this,5)};g.setQueryScope=function(a){return Sl(this,5,a)};g.hasQueryScope=function(){return nl(this,5)};var Hld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hld,V);var Ild=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ild,V);g=Ild.prototype;g.getLabel=function(){return Vt(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.getStatus=function(){return Vt(this,2)};g.setStatus=function(a){return Sl(this,2,a)};g.hasStatus=function(){return nl(this,2)};g.setLatencyUsec=function(a){Hl(this,3,a)};g.getResultIndex=function(){return Hu(this,4)};g.setResultIndex=function(a){Pl(this,4,a)};
g.getDataSource=function(){return Vt(this,7)};g.setDataSource=function(a){return Sl(this,7,a)};g.hasDataSource=function(){return nl(this,7)};g.getItemCount=function(){return Hu(this,8)};g.setItemCount=function(a){return Pl(this,8,a)};g.hasItemCount=function(){return ll(this,8)};g.getResources=function(){return X(this,Hld,9)};g.getLookupInfo=function(){return X(this,Rt,10)};g.getMutableLookupInfo=function(){return Du(this,Rt,10)};g.setLookupInfo=function(a){return W(this,Rt,10,a)};
g.hasLookupInfo=function(){return nk(this,Rt,10)};g.getStatusCode=function(){return pl(this,11,2)};g.setStatusCode=function(a){Sl(this,11,a)};g.hasStatusCode=function(){return nl(this,11)};g.getQueryLength=function(){return Hu(this,13)};g.setQueryLength=function(a){return Pl(this,13,a)};g.hasQueryLength=function(){return ll(this,13)};g.getQueryScope=function(){return pl(this,14)};g.setQueryScope=function(a){return Sl(this,14,a)};g.hasQueryScope=function(){return nl(this,14)};var Jld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jld,V);var S9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(S9,V);g=S9.prototype;g.getDataSource=function(){return Vt(this,3)};g.setDataSource=function(a){return Sl(this,3,a)};g.hasDataSource=function(){return nl(this,3)};g.getType=function(){return Vt(this,4)};g.setType=function(a){return Sl(this,4,a)};g.hasType=function(){return nl(this,4)};g.getValue=function(){return Dl(this,2,zb(1))};g.getValue_asLegacyNumberOrString=function(){return zl(this,2,1)};
g.setValue=function(a){return Hl(this,2,a)};g.hasValue=function(){return yl(this,2)};g.getLabel=function(){return am(this,1)};g.setLabel=function(a){return Rl(this,1,a)};g.hasLabel=function(){return ml(this,1)};var T9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(T9,V);g=T9.prototype;g.getStatusCode=function(){return pl(this,5,2)};g.setStatusCode=function(a){Sl(this,5,a)};g.hasStatusCode=function(){return nl(this,5)};g.getLabel=function(){return am(this,1)};g.setLabel=function(a){return Rl(this,1,a)};g.hasLabel=function(){return ml(this,1)};g.getCause=function(){return am(this,2)};g.setCause=function(a){Rl(this,2,a)};g.getType=function(){return Vt(this,3)};
g.setType=function(a){return Sl(this,3,a)};g.hasType=function(){return nl(this,3)};var Kld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kld,V);g=Kld.prototype;g.getType=function(){return Vt(this,3)};g.setType=function(a){return Sl(this,3,a)};g.hasType=function(){return nl(this,3)};g.setLatencyUsec=function(a){Hl(this,2,a)};g.getLabel=function(){return am(this,1)};g.setLabel=function(a){return Rl(this,1,a)};g.hasLabel=function(){return ml(this,1)};var U9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(U9,V);U9.prototype.getLabel=function(){return Vt(this,1)};U9.prototype.setLabel=function(a){return Sl(this,1,a)};U9.prototype.hasLabel=function(){return nl(this,1)};var Lld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lld,V);g=Lld.prototype;g.getLabel=function(){return Vt(this,1)};g.setLabel=function(a){return Sl(this,1,a)};g.hasLabel=function(){return nl(this,1)};g.getStatus=function(){return Vt(this,2)};g.setStatus=function(a){return Sl(this,2,a)};g.hasStatus=function(){return nl(this,2)};g.setLatencyUsec=function(a){Hl(this,3,a)};g.getErrorCode=function(){return cc(rl(this,4))};g.hasErrorCode=function(){return yl(this,4)};
g.getStatusCode=function(){return pl(this,7,2)};g.setStatusCode=function(a){Sl(this,7,a)};g.hasStatusCode=function(){return nl(this,7)};g.setBlockedUsec=function(a){return Hl(this,8,a)};var B6b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B6b,V);g=B6b.prototype;g.getClientInterface=function(){return X(this,jI,1)};g.setClientInterface=function(a){return W(this,jI,1,a)};g.getEventType=function(){return Vt(this,3)};g.getEventType_legacyNullable=function(){return Vt(this,3)};g.setEventType=function(a){return Sl(this,3,a)};g.getCacheStatus=function(){return X(this,Jld,12)};g.setCacheStatus=function(a){return W(this,Jld,12,a)};
g.getCount=function(){return X(this,S9,4)};g.getMutableCount=function(){return Du(this,S9,4)};g.setCount=function(a){return W(this,S9,4,a)};g.getMutableLatency=function(){return Du(this,Kld,5)};g.setLatency=function(a){W(this,Kld,5,a)};g.getError=function(){return X(this,T9,6)};g.setError=function(a){W(this,T9,6,a)};g.hasError=function(){return nk(this,T9,6)};g.setRpcRequest=function(a){return W(this,U9,7,a)};g.setRpcResponse=function(a){return W(this,Lld,8,a)};
g.setApiCall=function(a){return W(this,Gld,9,a)};g.setApiResult=function(a){return W(this,Ild,10,a)};var V9=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;e?a=o5b(e):(a=new Qt,n5b(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=pl(c.getPeopleApi(),5);this.searchMaxResults_=c.getClient().getSearchMaxResults();this.cacheSize_=c.getClient().getCacheSize();this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();this.requestCorpHeaders_=c.runtimeConfig_.requestCorpHeaders_;
var f;this.delegatorId_=(f=c.runtimeConfig_.getDelegatorId())!=null?f:""};V9.prototype.getMetric=function(){return Mld(this.trackers_,this.sourceInfo_)};
V9.prototype.send=function(a){var b=new ald;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation(Q4b({requestCorpHeaders:this.requestCorpHeaders_}));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);this.phoneCanonicalizationInference_!=null&&b.setFormattingOptions((new G9).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&b.setDelegation($kd(Zkd(),this.delegatorId_));return this.grpcClient_.autocomplete(b,
a)};V9.prototype.processResponse=function(a){var b=Fld(this.leanResponseProcessor_,a,this.provenance_),c=new eu;nk(a,bld,2)&&c.setAffinityVersion(X(a,bld,2).getAffinityVersion());return{data:b,metadata:c}};V9.prototype.close=function(){};var Nld=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;a=new Qt;n5b(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=pl(c.getPeopleApi(),5);this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();this.requestCorpHeaders_=c.runtimeConfig_.requestCorpHeaders_;var h;this.delegatorId_=(h=c.runtimeConfig_.getDelegatorId())!=null?h:""};
Nld.prototype.getMetric=function(){return Mld(this.trackers_,this.sourceInfo_)};
Nld.prototype.send=function(a){var b=this,c=new P9;c.setAffinityType(this.affinity_).setClientInformation(Q4b({requestCorpHeaders:this.requestCorpHeaders_}));rld(c,this.keys_.map(function(d){return w5b(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new G9).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation($kd(Zkd(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
Nld.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=l(Wk(a,sld,1,Fk()));for(var e=a.next();!e.done;e=a.next())if(e=e.value,an(e,O9,2,tld)){var f=Eld(b,Qm(e,O9,2,tld),c);switch(e.getId().getIdCase()){case 1:d.set(e.getId().getEmail_legacyNullable(),f);break;case 2:d.set(e.getId().getPhone_legacyNullable(),f);break;case 3:d.set(e.getId().getProfileId_legacyNullable(),f);break;case 4:d.set(ap(e.getId(),4,Ut),f);break;case 5:d.set(e.getId().getContactId(),
f)}}return{data:d,metadata:new eu}};Nld.prototype.close=function(){};var Old=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Old,V);var Pld=new Bv(342338249,Old);var Qld=function(){};Qld.prototype.write=function(a,b){var c=new Old;b=W(c,mld,1,b);Pt(a,Pld,b)};Qld.prototype.read=function(a){return(a=a.getExtension(Pld))?X(a,mld,1):null};var Rld=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=o5b("");this.trackers_=c;this.affinity_=pl(b.getPeopleApi(),5);var d;this.delegatorId_=(d=b.runtimeConfig_.getDelegatorId())!=null?d:""};Rld.prototype.getMetric=function(){return Mld(this.trackers_,this.sourceInfo_)};
Rld.prototype.send=function(a){var b=new Q9;b.setAffinityType(this.affinity_).setClientInformation(Q4b());this.delegatorId_&&b.setDelegation($kd(Zkd(),this.delegatorId_));var c=this.grpcClient_;return HT(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},xld)};Rld.prototype.processResponse=function(){return{data:[],metadata:new eu}};Rld.prototype.close=function(){};var Sld=new E4c;var W9=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};W9.prototype.send=function(a){var b=this;return w(function(c){return b.runtimeConfig_.isOffline_()?c.return(Sld):c.return(b.delegate_.send(a))})};W9.prototype.getMetric=function(){return this.delegate_.getMetric()};W9.prototype.processResponse=function(a){return a===Sld?this.offlineResponse_:this.delegate_.processResponse(a)};W9.prototype.close=function(a){this.delegate_.close(a)};
var Tld={data:[],metadata:R9(new eu).setCode(14)},Uld={data:new Map,metadata:R9(new eu).setCode(14)};R9(new eu).setCode(14);R9(new eu).setCode(14);R9(new eu).setCode(14);R9(new eu).setCode(14);R9(new eu).setCode(14);R9(new eu).setCode(14);var Vld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vld,V);g=Vld.prototype;g.getTimestamp=function(){return Dl(this,1)};g.getTimestamp_asLegacyNumberOrString=function(){return zl(this,1)};g.setTimestamp=function(a){return Hl(this,1,a)};g.hasTimestamp=function(){return yl(this,1)};g.getOwner=function(){return Oh(this,2)};g.setOwner=function(a){return Rl(this,2,a)};var Wld=new Bv(342656659,Vld);var X9=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};X9.prototype.store_=function(a,b){var c=new FLc;Pt(c,Wld,(new Vld).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Xld=function(a){var b,c;return w(function(d){if(d.nextAddress==1)return te(d,2),x(d,a.offlineStorage_.fetch(),4);if(d.nextAddress!=2){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Wld);c=a.offlineMetadata_?zt(a.offlineMetadata_.getOwner()):Lt;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}xe(d);return d.return(null)})};
X9.prototype.send=function(a){var b=this,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:return te(k,2),x(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Sld){k.jumpTo(5);break}return x(k,Xld(b),6);case 6:return e=k.yieldResult,k.return(e||Sld);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=xe(k),x(k,Xld(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};
X9.prototype.getMetric=function(){return this.delegate_.getMetric()};X9.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(this.offlineMetadata_.getTimestamp_asLegacyNumberOrString());return a};X9.prototype.close=function(a){this.delegate_.close(a)};var Yld=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(b.runtimeConfig_.getPeopleApiEnv()===7?Oh(b.getGapi(),2):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new Vgd(b);b=bKa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new yld(b);this.offlineDataTransformer_=
new Qld;a=kl(a.getClient(),22);this.leanResponseProcessor_=new Ald({allowEmptyTargets:a})};Yld.prototype.loadRankedItems=function(){var a=new V9(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new W9(a,this.config_.runtimeConfig_,Tld);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=Ht(e),b=Ik(b.getPeopleApi(),14,5E3),a=new X9(a,d,c,e,b))}return Xgd(this.dispatcher_,a)};
Yld.prototype.warmUpServer=function(){var a=new Rld(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new W9(a,this.config_.runtimeConfig_,Tld);return Xgd(this.dispatcher_,a)};Yld.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new V9(b,c,d,e,a);b=new W9(b,this.config_.runtimeConfig_,Tld);return Xgd(this.dispatcher_,b)};
Yld.prototype.loadLookupItems=function(a,b){a=new Nld(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new W9(a,this.config_.runtimeConfig_,Uld);return Xgd(this.dispatcher_,a)};var Zld=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Zld.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var y5b=new Map([[1,1],[2,2]]);var $ld=function(a,b){this.encryptionSupport_=a;this.certificateStatus_=b};$ld.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};$ld.prototype.getCertificateStatus=function(){return this.certificateStatus_};var $6b=function(a,b,c){a=a===void 0?1:a;b=b===void 0?0:b;c=c===void 0?!1:c;a===4&&Date.now()/1E3>b&&(a=3);return new $ld(a===4?c?4:3:c?2:1,a)};var a7b=function(a,b){this.reachabilityStatus=a;this.clientData=b};a7b.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};a7b.prototype.getClientData=function(){return this.clientData};var mu=function(){this.iconUrl_=this.altText_=""};mu.prototype.getAltText=function(){return this.altText_};mu.prototype.setAltText=function(a){this.altText_=a||"";return this};mu.prototype.getIconUrl=function(){return this.iconUrl_};mu.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var D5b=new Map([[3,3],[1,2],[2,1]]),amd=new Map([[2,1],[4,2],[3,3],[1,4]]),bmd=function(a){this.delegate_=a};
bmd.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=Wt(b.getValue()),d=a.id.normalizedValue_;c=Yt(a.id).setValue(c).setCanonicalValue(d);if(Wk(b,K9,2,Fk()).length||nk(b,eld,3)){d=1;var e=0;if(Wk(b,K9,2,Fk()).length){var f=Wk(b,K9,2,Fk())[0];e=Gu(f,1)||e;d=amd.get(f.getStatus())||d}f=nk(b,eld,3)&&!!Nt(X(b,eld,3),1);d=$6b(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);nk(b,L9,4)&&(b=z5b(X(b,L9,4)),
c.setOrgState(b));Nt(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=Wt(c.getCanonicalValue());c=Wt(c.getOriginalValue())||Wt(c.getDisplayValue())||b;b=Yt(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=Qm(a.contactMethod,U4b,4,It);b=G5b(a,b);break;default:b=Yt(a.id||Lt)}b.setDataSource(a.dataSource||0);a.containerIds&&(b.sourceIds_=a.containerIds||[]);b.setIsMe(!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(A5b($ma(Xt(a.person.getAffinity(),
1))||""));a.contactMethod.hasDisplayInfo()&&E5b(b,a.contactMethod.getDisplayInfo());ml(a.contactMethod,10)&&b.setTagList([(new mu).setAltText(a.contactMethod.getTypeLabel())]);if(nk(a.contactMethod,gld,13)){d=X(a.contactMethod,gld,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new a7b(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=b}else a.group?J5b(a,a.group.getDisplayInfo()):a.contactLabel&&
J5b(a,a.contactLabel.getDisplayInfo());this.delegate_.processItem(a);a.contactMethod&&delete a.contactMethod;a.person&&delete a.person;a.group&&delete a.group;a.contactLabel&&delete a.contactLabel};var cmd=function(a,b){this.metrics_=a;this.state_=new rI(b);this.source=b;this.label_="total"};cmd.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};cmd.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var dmd=function(a,b){this.metrics_=a;this.state_=new rI(b)};g=dmd.prototype;g.start=function(a){this.metrics_.start(this.state_,a)};g.stop=function(a){this.metrics_.stop(this.state_,a)};g.count=function(){this.metrics_.count(this.state_)};g.latency=function(){this.metrics_.latency(this.state_)};g.error=function(){this.metrics_.error(this.state_)};
g.status=function(a,b,c){b=b===void 0?0:b;c=c===void 0?0:c;if(b){var d=this.state_.source();Sl(d,13,b)}c&&(b=this.state_.source(),Pl(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};var emd=function(a){this.getSessionState=a};emd.prototype.attach=function(a,b){var c,d;b=(new fu).setSessionState((d=b==null?void 0:(c=X(b,fu,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());W(a,fu,18,b);return a};var fmd=function(){};fmd.prototype.attach=function(a){return a};var gmd=new fmd;var Y9=function(a,b){b=b===void 0?gmd:b;this.metrics_=a;this.sessioninfo_=b};Y9.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,h=new Qt;a=h.setEventType(3).setErrorType(a);Sl(a,7,b);return new qid(d,f.call(e,h,c))};Y9.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new Qt,h=f.setEventType(2);Sl(h,5,a);return new R8(c,e.call(d,f,b))};
Y9.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new Qt,f=e.setEventType(1);Sl(f,4,a);return new pid(b,d.call(c,e))};Y9.prototype.api=function(a){return new cmd(this.metrics_,this.sessioninfo_.attach(a))};var Mld=function(a,b){return new dmd(a.metrics_,a.sessioninfo_.attach(b))},hmd=function(a,b){return new Y9(a.metrics_,b)};var imd=function(a,b){this.ranker_=new Wkd(a.getClient());this.loader_=new Yld(a,b);b=Vkd;b=b===void 0?Vkd:b;this.targetFactory_=new Zld(a,new bmd(b))};var jmd=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var kmd=function(){this.bits_=[]};g=kmd.prototype;g.and=function(a){for(var b=new kmd,c=l(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};g.or=function(a){for(var b=new kmd,c=l(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=l(a);for(c=a.next();!c.done;c=a.next())b.bits_[c.value]=!0;return b};g.get=function(a){return!!this.bits_[a]};g.set=function(a){this.bits_[a]=!0};g.setAll=function(a){var b=a;for(a+=NaN;b<a;b++)this.bits_[b]=!0};
g.clear=function(a){this.bits_[a]=!1};g.clearAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!1};kmd.prototype[Symbol.iterator]=function(){var a=this,b=-1;return{next:function(){a:{for(var c=b+1,d=a.bits_.length;c<d;c++)if(a.bits_[c]){b=c;break a}b=-1}return b<0?{done:!0}:{value:b,done:!1}}}};var P5b=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),O5b=/^[<"']|[>"']$/g,M5b=RegExp("[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+","gi"),lmd=/[^a-z0-9]+/gi,N5b=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var mmd=function(a,b){this.key=a;this.terms=Q5b(b)};var Z9=function(a,b,c){b=b===void 0?"":b;c=c===void 0?new kmd:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"};Z9.prototype.cloneNode=function(a){for(var b=[],c=l(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new Z9(b)};
Z9.prototype.getMatches=function(a){for(var b=[],c=l(this.prefix_?this.matchIndices_:S5b(this.items_.length)),d=c.next();!d.done&&(d=a.loadOrSkip(this.items_[d.value].key),d==null||(b.push(d),!a.isDone()));d=c.next());return b};
Z9.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),h=d;if(!h.isExpanded_){for(var k=l(h.prefix_?h.matchIndices_:S5b(h.items_.length)),q=k.next();!q.done;q=k.next()){var u=h;q=q.value;for(var A=u.prefix_+"\ufdc7",G=l(u.items_[q].terms),H=G.next();!H.done;H=G.next())H=H.value,H.length<=u.prefix_.length||H<u.prefix_||H>A||(H=H.charAt(u.prefix_.length),u.childNodes_[H]||(u.childNodes_[H]=new Z9(u.items_,u.prefix_+H)),u.childNodes_[H].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||$9;if(d===$9)break}return d}).reduce(function(c,d){return c.and(d)}):this};var nmd=function(a){a.isExpanded_=!1;for(var b=l(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&nmd(c)};Z9.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new Z9(this.items_,"\u2026",a)};Z9.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new Z9(this.items_,"\u2026",a)};var $9=new Z9([]);
$9.isExpanded_=!0;var omd=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};omd.prototype.getExpiry=function(){return this.expiry_};omd.prototype.getValue=function(){return this.value_};omd.prototype.isExpired=function(){return this.expiry_<Date.now()};omd.prototype.isStale=function(){return this.stale_<Date.now()};var pmd=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=pmd.prototype;g.size=function(){return this.items_.size};g.clear=function(){this.items_.clear()};g.has=function(a){return this.items_.has(a)};g.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
g.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=l(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};g.delete=function(a){return this.items_.delete(a)};g.compact=function(){for(var a=0,b=l(this.items_),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var qmd=function(){var a=new pmd(function(){return a.size()>1E3});return a};var rmd=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new pmd(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=rmd.prototype;g.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};g.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};g.has=function(a){return!!this.get(a)};g.size=function(){return this.delegate_.size()};g.clear=function(){this.delegate_.clear()};
g.delete=function(a){return this.delegate_.delete(a)};g.compact=function(){return this.delegate_.compact()};var a$=function(a,b){return new rmd(a,function(c){var d=Date.now()+b;return new omd(d,c,d)})};var T5b=function(a){this.delegate_=a};Y(T5b,UO);T5b.prototype.getIsBoosted=function(){return!0};var smd=function(a){this.keys_=new Set(a)};smd.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};smd.prototype.isDone=function(){return!this.keys_.size};var tmd=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new smd(a)};tmd.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};tmd.prototype.isDone=function(){return this.delegate_.isDone()};var umd=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var vmd=new lu,wmd=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=a$(Ik(c,31,5),Pm(c,32,3600)*1E3)};g=wmd.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return w(function(h){if(h.nextAddress==1){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return h.return(vmd);d=c.ids.map(function(k){if(Sxc.includes(zt(k).getType()))return k;var q=b$(b.itemResolver_,k);return q?String(q.id):k});e=new tmd(d);return x(h,xmd(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=h.yieldResult;b.indexes_.set(c.cacheKey,f);return h.return(vmd)})};
g.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return(this.indexes_.get(b.cacheKey)||$9).search(a.getTerms()).getMatches(a.getCollector()).map(U5b)};g.index=function(){};g.getName=function(){};var ymd=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};ymd.prototype.getErrorType=function(){return this.errorType_};var c$=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=c$.prototype;g.getCacheType=function(){return this.delegate_.getCacheType()};g.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};g.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
g.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};g.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};g.getName=function(){return this.delegate_.getName()};var zmd=new ymd(60,61,34);var Amd=function(){};Amd.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();kl(a,30)&&(b=new wmd(b,d,a),c=new c$(b,c,zmd),e.unshift(c))};var Bmd=function(){return Date.now()},Cmd=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};g=Cmd.prototype;g.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};g.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};g.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};g.getTimestamp=function(){return this.timestamp_};g.setTimestamp=function(a){this.timestamp_=a};
g.markAsFresh=function(){this.timestamp_=this.nowFn_()};g.markAsStale=function(){var a=this.nowFn_()-this.staleMillis_;a<this.timestamp_&&(this.timestamp_=a)};var W5b=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),V5b=new Map([[1,7],[2,5]]);var Dmd=function(a,b){this.delegate_=a;this.extendedData_=b};Y(Dmd,UO);Dmd.prototype.getExtendedData=function(){return this.extendedData_};var Emd=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=Txc(this.group_.getId())?this.members_.length:c;this.resultType_=tfd.get(this.group_.getTargetType())||0};g=Emd.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return[this.group_]};g.getMemberList=function(){return this.members_};g.getTotalMemberCount=function(){return this.totalMemberCount_};g.getPrimaryTarget=function(){throw Error("Wf");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getIsBoosted=function(){return!1};g.getMatchInfo=function(){return sfd};g.getExtendedData=function(){return null};var Y5b=function(a,b){this.delegate_=a;this.loggingToken_=b};Y(Y5b,vLc);Y5b.prototype.getLoggingToken=function(){return this.loggingToken_};var Fmd=function(a){this.itemResolver_=a};Fmd.prototype.create=function(a,b){var c=this,d=zt(a);a=b$(this.itemResolver_,a);if(!a)return null;if(Ft(d))return d=(a.memberKeys||[]).map(function(h){return c.create(h,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=b===2&&((e=a.coalescedKeys)==null?void 0:e.length)>1?a.coalescedKeys.map(function(h){return b$(c.itemResolver_,h)}).filter(Boolean):[a];return Gmd(f,d,b)};
var Gmd=function(a,b,c){var d=[],e=0,f=null,h=null;a=l(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,u=q.getId().equals(b);if(!e||u)e=q.getResultType();q=Z5b(q,k.provenance,c);u?(h=void 0,f=(h=k.totalMemberCount)!=null?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=B0b(e,d,f);return h?new Dmd(b,h):b};
Fmd.prototype.createGroup=function(a,b,c){c=Z5b(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=new Pq(new Emd(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new Dmd(b,a):b};var $5b=[1,2,3,4,5,6,9,7,8],Hmd=function(a,b){this.targetFactory_=a;this.resultFactory_=new Fmd(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?Bmd:d;this.expiry_=new Cmd(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=a$(Ik(b,6,500),Ik(b,7,43200)*1E3);d=Set;b=Hc(b,25,Qb,Fk());this.idTypes_=new d(b)};Hmd.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var b$=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};g=Hmd.prototype;g.getExpiry=function(){return this.expiry_};g.getAffinityVersion=function(){return this.affinityVersion_};g.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(a.getTimestamp_asLegacyNumberOrString()):this.expiry_.markAsFresh();this.lruStorage_.compact()};g.markAsStale=function(){this.expiry_.markAsStale()};
g.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};g.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(h){return String(h.id)===d});if(e>0){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=l(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
g.store_=function(a,b,c,d){if(!this.idTypes_.size||!Sxc.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),h=(b.containerIds||[]).map(String),k=Imd(this,a,f);Jmd(this,a,f,b,c)&&(k(f,b),e=!0);h=l(h);for(var q=h.next();!q.done;q=h.next())q=q.value,Jmd(this,a,q,b,c)&&(k(q,b),e=!0);b.isMe&&(h=String(Vxc),Jmd(this,a,h,b,c)&&(k(h,b),e=!0));d&&f!==d&&Jmd(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var Jmd=function(a,b,c,d,e){var f=b$(a,c);if(!f)return!0;b===1&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return d.provenance===8&&f.provenance!==8?!1:e&&(f.id.equals(d.id)||String(f.id)!==c)?!0:f.id.equals(d.id)?b6b(d)&&!b6b(f)||Kmd(a,f)<Kmd(a,d)||a6b(d)<a6b(f)||d.id.getType()===18&&f.id.getType()===18||c6b(d)>c6b(f)?!0:!1:String(d.id)===c},Kmd=function(a,b){b.target||a.targetFactory_.processItem(b);a=b.target;b=0;if(a.getPhoto())switch(a.getPhoto().getType()){case 3:b|=
2;break;case 2:b|=1}a.getName()&&a.getName().getDisplayName()&&(b|=4);return b},Imd=function(a,b,c){return a.ttlStorage_.has(c)||b===1?function(d,e){return a.ttlStorage_.set(d,e)}:function(d,e){return a.lruStorage_.set(d,e)}};var d6b=function(a,b){this.delegate_=a;this.displayValue_=b};Y(d6b,vLc);d6b.prototype.getDisplayValue=function(){return this.displayValue_};var f6b=function(){};f6b.prototype.createFromLookupId=function(a){if(a.getType()!==1||!Lxc(a.getOriginalValue()))return null;a=Yt(a).setValue(a.getOriginalValue()).setDataSource(3);return B0b(a.getResultType(),[a],null)};var Lmd=function(){};Lmd.prototype.createFromLookupId=function(){return null};var g6b=new Lmd;var Mmd=function(a,b,c,d,e){this.format=b;this.listener=c;this.options=d;this.callbackNumber=0;this.hasErrorCode=!1;this.remainingIds=new Map(a.map(function(f){return[String(f),f]}));this.notNotifiedIds=new Map(a.map(function(f){return[String(f),f]}));this.placeholderFactory=h6b(e.getClient())};g=Mmd.prototype;g.isCancelled=function(){return!1};g.getFormat=function(){return this.format};g.getOptions=function(){return this.options};g.queryScope=function(){return this.options.getQueryScope()};
g.getResultFilter=function(){return this.options.getFilter()};g.isDone=function(){return this.remainingIds.size===0};var Nmd=function(a){return Array.from(a.remainingIds.values())};Mmd.prototype.hasError=function(){return this.hasErrorCode};
Mmd.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||i6b(c.getCode())){var d=new Map,e=this.getResultFilter();a=l(a);for(var f=a.next();!f.done;f=a.next()){var h=l(f.value);f=h.next().value;h=h.next().value;this.notNotifiedIds.delete(String(f));(h=e?e.filterResult(h):h)&&h.getTargetList().length&&(d.set(f,h),this.remainingIds.delete(String(f)))}a=[];b=l(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(h=this.placeholderFactory.createFromLookupId(f))&&
e&&(h=e.filterResult(h)),h&&h.getTargetList().length?d.set(f,h):a.push(f);d=e6b(d,this.options);i6b(c.getCode())&&(this.hasErrorCode=!0);e=(new Ojd).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new Pjd(d,e);this.callbackNumber++;this.listener(d,c)}};var Omd=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};Omd.prototype.flush=function(){this.indexer.flush()};
Omd.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,u,A;return w(function(G){switch(G.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),h=new Mmd(a,b,c,d,e.clientConfig),k=new Set,h.queryScope()!==1&&h.queryScope()!==2||k.add(2),h.queryScope()===3&&k.add(1),q=l(e.stages),u=q.next();case 2:if(u.done){G.jumpTo(4);break}A=u.value;if(h.isDone()||h.isCancelled()){G.jumpTo(4);break}if(k.has(A.getStageType())){G.jumpTo(3);break}return x(G,A.lookup(h),3);case 3:u=q.next();G.jumpTo(2);break;case 4:if(!h.isDone()){if(h.queryScope()===
0&&!h.hasError()){var H=e.indexer,N=Array.from(h.notNotifiedIds.values());N=l(N);for(var O=N.next();!O.done;O=N.next())O=String(O.value),H.notFoundIds.set(O,O)}h.notify(new Map,Nmd(h),l9((new lu).setProvenance(10),!1).setCode(0))}e.indexer.compact();return G.return()}})};var Pmd=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=a$(Ik(a,10,500),Pm(a,11,600)*1E3)};g=Pmd.prototype;g.compact=function(){this.notFoundIds.compact()};g.flush=function(){this.notFoundIds.clear()};g.store=function(a,b,c,d){if(!kl(c,5))for(R9(c),b=l(b),c=b.next();!c.done;c=b.next()){var e=l(c.value);c=e.next().value;e=e.next().value;c=String(V6b(a,String(c)));this.storeItems(e,d,c)}};g.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
g.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=pWa(a).filterResult(b));return b};var Qmd={ids:[],cacheKey:"",primingTimeoutMillis:0};var Rmd=function(){};Rmd.prototype.loadOrSkip=function(){return null};Rmd.prototype.resultCount=function(){return 0};Rmd.prototype.isDone=function(){return!0};var Smd=new Rmd;var Tmd=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Smd;this.boostKey_=Qmd;this.listener_=function(){}};g=Tmd.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.format_};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return!0};g.isCancelled=function(){return!0};
g.isSuggestQuery=function(){return!0};g.isEmailAddress=function(){return!1};g.queryScope=function(){return 0};g.getResultFilter=function(){return null};g.shouldSkipCache=function(){return!1};var Umd=new Tmd;var Vmd=function(){this.fetchDone_=Promise.resolve((new lu).setCode(0))};g=Vmd.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};g.getName=function(){};var Wmd=new Vmd;var Xmd=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||Wmd;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
Xmd.prototype.prefetch=function(a){var b=this,c,d,e,f,h;return w(function(k){if(k.nextAddress==1)return x(k,b.primary_.fetch(a),2);if(k.nextAddress!=3){c=k.yieldResult;if(c.getCode()!==0)return k.return(c);d=l(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=b.prefetched_.filter(function(q){return q!==b.primary_}).map(function(q){q.flush();return q.fetch(a)});return h.length?x(k,Promise.all(h),3):k.jumpTo(3)}return k.return(c)})};
Xmd.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new lu).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});a.queryScope()!==2&&c.push.apply(c,p(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Ymd=function(a){var b=[a.primary_].concat(p(a.prefetched_.filter(function(d){return d!==a.primary_})),p(a.lazyLoaded_)).reverse();b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Zmd=function(a,b){var c=[];a=l(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;b.shouldSkipCache(d.getName())||c.push.apply(c,p(d.search(b)))}return c},and=function(a,b,c){var d,e,f,h,k;return w(function(q){if(q.nextAddress==1){if(b.queryScope()===2)return q.return();
d=a.lazyLoaded_.filter(function(u){return!b.shouldSkipCache(u.getName())});e=d[d.length-1];f=l(d);h=f.next()}if(q.nextAddress!=3){if(h.done)return q.jumpTo(0);k=h.value;return b.isDone()||b.isCancelled()?q.return():x(q,$md(k,b,c,e===k),3)}h=f.next();return q.jumpTo(2)})},$md=function(a,b,c,d){var e,f;return w(function(h){if(h.nextAddress==1)return b.queryScope()===1?(e=l9((new lu).setProvenance(6).setCode(0),!1),h.jumpTo(2)):x(h,a.fetch(b),3);h.nextAddress!=2&&(e=h.yieldResult);if(b.isCancelled())return h.return();
f=a.search(b);c(f,e,d);ze(h)})};var bnd=function(a,b,c,d,e){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=e;this.lookupCache_=d;this.prefixSearch_=c;this.sessionWarming_=this.cacheWarming_=null};g=bnd.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
g.warmUpCache=function(a){cnd(this,Umd);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(o9(n9((new m9).setSource(l9(new lu,!1).setProvenance(1).setCode(0)),d$(this)),d$(this)))};g.flushCache=function(a){switch(a){case 3:return dnd(this),this.warmUpCache(!0);case 2:return this.storage_.markAsStale(),this.warmUpCache(!0);case 1:return this.storage_.markAsStale(),Promise.resolve(new m9);default:return this.warmUpCache(!0)}};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:c=n9(new m9,d$(b));cnd(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return x(k,b.cacheWarming_,2);case 2:return te(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),x(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(q){return q.getProvenance()===2})||(new lu).setProvenance(2).setCode(0),k.return(o9(c.setSource(e),d$(b)));case 5:ue(k);b.sessionWarming_=
null;we(k,0);break;case 4:return f=xe(k),h=f instanceof lu?f:(new lu).setProvenance(2).setCode(13),k.return(Promise.reject(o9(c.setSource(h),d$(b))))}})};
g.search=function(a){var b=this,c,d,e,f,h;return w(function(k){switch(k.nextAddress){case 1:end(b);te(k,2);d=d$(b);cnd(b,a);if(!a.isSuggestQuery()){k.jumpTo(4);break}if(!b.cacheWarming_){k.jumpTo(5);break}e=b.storage_.getExpiry().isExpired();if(!e){k.jumpTo(5);break}return x(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return x(k,b.sessionWarming_,4);case 4:return c||(c=o9(n9((new m9).setSource(l9(new lu,!1).setProvenance(1).setCode(0)),d),d$(b)),cnd(b,
a)),x(k,fnd(b,a,c),10);case 10:uu(k,0);break;case 2:f=xe(k);if(a.isCancelled())return k.return();f instanceof m9?c=f:(h=f instanceof lu?f:(new lu).setCode(13),o9(c.setSource(h),d$(b)));a.getListener()(new q9([],(new p9).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));ze(k)}})};
var fnd=function(a,b,c){var d,e,f,h;return w(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=Zmd(a.prefixSearch_,b);e=(new p9).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new q9(d,e));if(e.getIsLastCallback())return k.return();f=!1;return x(k,and(a.prefixSearch_,b,function(q,u,A){u=(new p9).setIsLastCallback(A).setQuery(b.getPrefix()).setCode(u.getCode()).setCacheState(o9(n9((new m9).setSource(u),
du(c,2)),d$(a)));b.getListener()(new q9(q,u));u.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(h=(new p9).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(o9(n9((new m9).setSource((new lu).setProvenance(10).setCode(0)),du(c,2)),d$(a))),b.getListener()(new q9([],h)));ze(k)})};
bnd.prototype.lookup=function(a,b,c){var d=this;end(this);cnd(this,Umd);var e=n9(new m9,d$(this));this.lookupCache_.lookup(a,pl(this.clientInfo_,17,1),function(f,h){e.setSource(h);o9(e,d$(d));f.getMetadata().setCacheState(e);b(f)},c)};
var cnd=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&dnd(a),!a.cacheWarming_)){var c=d$(a);a.cacheWarming_=new Promise(function(d,e){var f,h,k,q;return w(function(u){switch(u.nextAddress){case 1:return f=n9(new m9,c),te(u,2,3),x(u,a.prefixSearch_.prefetch(b),5);case 5:h=u.yieldResult,o9(f,d$(a)).setSource(h),d(f);case 3:ue(u);a.cacheWarming_=null;we(u,0);break;case 2:k=xe(u),q=k instanceof lu?k:(new lu).setCode(13),
o9(f,d$(a)).setSource(q),e(f),u.jumpTo(3)}})})}},d$=function(a){return a.storage_.getExpiry().getStatus()},dnd=function(a){Ymd(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},end=function(a){var b=d$(a)===1?1:2;a.trackers_.count(b).increment()};var gnd=function(a){this.itemResolver_=a},hnd=function(a,b,c){c=c===void 0?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,h=f.apply,k=e.split(lmd).filter(Boolean),q=k.length-1;if(q>0){var u=k.join(".");k.push(k.join("-"));for(k.push(u);q>0;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(P5b,""));e[0]==="+"&&k.push("+"+k[0]);h.call(f,c,p(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&d.getTargetType()!==10)for(b=l(b.memberKeys),d=b.next();!d.done;d=b.next())(d=b$(a.itemResolver_,d.value))&&hnd(a,d,c);return c};var ind=new H4b,jnd=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new gnd(a);this.trieRoots_=new Map},xmd=function(a,b,c,d){var e=(a.trieRoots_.get(c)||$9).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var h=new Promise(function(k){var q=umd(b).map(zt);a.lookupCache_.lookup(q,c,function(u){var A=Array.from(u.getResults().keys(),String);A=knd(a,A);Array.prototype.push.apply(e.items_,
A);nmd(e);u.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},ind)});return f2b(h,e,d)},lnd=function(a,b){a=knd(a,b);return new Z9(a)},knd=function(a,b){var c=[];b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=b$(a.itemResolver_,d);e&&(e=hnd(a.indexer_,e),c.push(new mmd(d,e)))}return c};var mnd=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};mnd.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
mnd.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=j6b(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return j6b(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return j6b(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:k6b(this.target_.getDisplayValue())}return a};
mnd.prototype.filterResult=function(a){var b=this,c=$t(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,p(a.getTargetList().filter(function(d){return d.getTargetType()===1&&$t(d.getDisplayValue())!==c&&d.getName()&&$t(d.getName().getDisplayName())===b.displayName_})));return null};mnd.prototype.reset=function(){this.similarTargets_=[]};var l6b=/\S+@\S+\.\S+/,m6b=/<|>|\(|\)/g;var nnd=function(){this.queryId_=0};nnd.prototype.getQueryId=function(){return this.queryId_};var ond=function(a,b){var c=new nnd;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
ond.prototype.disambiguate=function(a,b){var c=this,d=a.getName()&&a.getName().getDisplayName()||"",e=b.getDisplayNameWithOverrideApplied()===null?d:b.getDisplayNameWithOverrideApplied()||"";return!e||a.getTargetType()!==1||e.includes(a.getDisplayValue())?Promise.resolve(new Njd("",(new Mjd).setCode(0).setCacheState((new m9).setSource(l9(new lu,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||n6b(e,a.getDisplayValue())?Promise.resolve(new Njd(a.getDisplayValue(),(new Mjd).setCode(0).setCacheState((new m9).setSource(l9(new lu,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var h=new mnd(a,$t(e)),k=pnd(c.queryFactory_,e,c.querySession_,(new pt).setFilter(h).setQueryScope(b.getQueryScope()),function(q){if(q.getMetadata().getIsLastCallback()){var u=h.getDisambiguationLabel(),A=new Mjd,G=h.getSimilarIds();A.similarIds_=G;f(new Njd(u,A.setCode(q.getMetadata().getCode()).setCacheState(q.getMetadata().getCacheState()||new m9)))}});c.cache_.search(k)})};var qnd=function(a){this.delegate=a};g=qnd.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(a){return this.delegate.warmUpCache(a)};g.flushCache=function(a){return this.delegate.flushCache(a)};g.warmUpSession=function(a){var b=this;return w(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return w(function(c){return c.return(b.delegate.search(a))})};
g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};var rnd=function(){this.delegate=yLc};rnd.prototype.filterResult=function(a){return this.delegate.filterResult(a)};rnd.prototype.reset=function(a){this.delegate.reset(a)};var snd=function(a,b){a.delegate=b!=null?b:yLc};var tnd=function(a){this.delegate=a};g=tnd.prototype;g.getPrefix=function(){return this.delegate.getPrefix()};g.getTerms=function(){return this.delegate.getTerms()};g.getFormat=function(){return this.delegate.getFormat()};g.getCollector=function(){return this.delegate.getCollector()};g.getBoostKey=function(){return this.delegate.getBoostKey()};g.getListener=function(){return this.delegate.getListener()};g.isDone=function(){return this.delegate.isDone()};g.isCancelled=function(){return this.delegate.isCancelled()};
g.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};g.isEmailAddress=function(){return this.delegate.isEmailAddress()};g.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};g.shouldSkipCache=function(a){return this.delegate.shouldSkipCache(a)};var und=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};und.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};und.prototype.resultCount=function(){return this.count_};und.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var vnd=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new und(d,c.limit));this.collector=d;this.listener=function(h){var k=h.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(h)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?rWa.apply(null,p(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Y(vnd,tnd);g=vnd.prototype;g.getCollector=function(){return this.collector};
g.getListener=function(){return this.listener};g.isDone=function(){return this.collector.isDone()};g.getResultFilter=function(){return this.resultFilter};g.queryScope=function(){return this.scope};var wnd=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Y(wnd,qnd);
wnd.prototype.search=function(a){var b=this,c,d,e,f,h,k;return w(function(q){switch(q.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(u){return!c.has(u.visibility)}),e=d.map(function(u,A){return new vnd(a,b.originalFilter,u,A===d.length-1)}),f=l(e),h=f.next();case 2:if(h.done){q.jumpTo(4);break}k=h.value;if(a.isCancelled()||a.isDone()){q.jumpTo(4);break}snd(b.filterInterceptor,k.getResultFilter());return x(q,b.delegate.search(k),
3);case 3:h=f.next();q.jumpTo(2);break;case 4:return q.return()}})};var xnd=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=Q5b([b]);this.id_=Ht(b);this.listener_=function(e){var f=e.getResults().map(function(h){if(d.id_.equals(h.getPrimaryTarget().getId())&&h.getDisplayName()!==c){var k=(new B5b).setDisplayName(c),q=h.getPrimaryTarget();h=mWa(h,new wLc(q,k))}return h});e=new q9(f,e.getMetadata());a.getListener()(e)}};Y(xnd,tnd);xnd.prototype.getPrefix=function(){return this.query_};xnd.prototype.getTerms=function(){return this.terms_};
xnd.prototype.getListener=function(){return this.listener_};var ynd=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new nnd;this.clientInfo_=c};g=ynd.prototype;g.warmUpSession=function(a){a=pnd(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=pnd(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=pnd(this.queryFactory_,a,this.querySession_,c,b);kl(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=ut(b),c.isValid()||(c=ut(b+">")),a=c.isValid()&&c.getName()?new xnd(a,c.getAddress(),c.getName()):a));this.cache_.search(a)};g.cancel=function(){++this.querySession_.queryId_};g.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
g.getReporter=function(){throw Error("Hf");};g.getSessionState=function(){throw Error("Hf");};g.getHide=function(){throw Error("Hf");};var znd=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=kl(c,34)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new rnd;e.setFilter(q);e=new wnd(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};g=znd.prototype;g.warmUpCache=function(){return this.cache_.warmUpCache(!1)};g.flushCache=function(a){this.cache_.flushCache(a)};g.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
g.disambiguate=function(a,b){return(new ond(this.cache_,this.queryFactory_)).disambiguate(a,b)};g.beginSession=function(a){a=this.getSessionCache_(a);return new ynd(a,this.queryFactory_,this.clientInfo_)};var And=function(){};g=And.prototype;g.getCacheType=function(){return 3};g.flush=function(){};g.fetch=function(){return w(function(a){return a.return(l9(new lu,!1).setProvenance(12).setCode(0))})};g.index=function(){};g.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(Ht(a.getPrefix()))))?[a]:[]:[]};g.getName=function(){};var Bnd=function(){};Bnd.prototype.configure=function(a){var b=a.prefixCaches;kl(a.clientConfig.getClient(),21)&&b.push(new And)};var Cnd=function(a,b,c,d,e,f,h,k){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=h;this.listener_=o6b(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};g=Cnd.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.delegate_.getFormat()};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};
g.getListener=function(){return this.listener_};g.isDone=function(){return this.collector_.isDone()};g.isCancelled=function(){return this.delegate_.isCancelled()};g.isSuggestQuery=function(){return!this.prefix_};g.isEmailAddress=function(){this.isEmailAddress_===null&&(this.isEmailAddress_=Lxc(this.prefix_));return this.isEmailAddress_};g.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};
g.shouldSkipCache=function(a){return!(!this.selectedCustomProviderNames_||!a||this.selectedCustomProviderNames_.has(a))};var Dnd=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Dnd.prototype.getFormat=function(){return this.format_};Dnd.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Dnd.prototype.queryScope=function(){return this.queryScope_};var e$=function(){this.foundKeys_=new Set};Y(e$,xLc);e$.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};e$.prototype.has=function(a){return this.foundKeys_.has(a)};e$.prototype.add=function(a){this.foundKeys_.add(a)};e$.prototype.reset=function(){this.foundKeys_.clear()};var End=function(a){this.delegate_=a;this.filter_=new e$};End.prototype.loadOrSkip=function(a){if(this.filter_.has(a))return null;a=this.delegate_.loadOrSkip(a);if(!a)return null;a=this.filter_.filterResult(a);if(!a)return null;for(var b=l(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};End.prototype.resultCount=function(){return this.delegate_.resultCount()};End.prototype.isDone=function(){return this.delegate_.isDone()};var Fnd=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};Fnd.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};Fnd.prototype.resultCount=function(){return this.delegate_.resultCount()};Fnd.prototype.isDone=function(){return this.delegate_.isDone()};var Gnd=function(a,b){this.storage_=a;this.format_=b};Gnd.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};Gnd.prototype.resultCount=function(){return 0};Gnd.prototype.isDone=function(){return!1};var Hnd=[198,230,306,307,338,339],Ind=function(a){this.matchers_=a.map(function(b){return new RegExp("(?:^|[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+|\\b)"+ak(b),"g")})},p6b=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=$t(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=l(a.matchers_);for(var h=a.next();!h.done;h=a.next()){h=h.value;h.lastIndex=0;for(var k=h.exec(d);k;k=
h.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,h.lastIndex])}}c.sort(function(q,u){return q[0]-u[0]});for(e=c.length-1;e>0;e--)f=c[e-1],a=c[e],f[1]>=a[0]&&(f[1]=a[1],c.splice(e,1));if(c.length&&d.length!==b.length){d=[];e=[];for(f=0;f<b.length;f++)a=b.codePointAt(f),a>65535||a>=768&&a<=879?(d.push(f),f++):Hnd.includes(a)&&e.push(f);b=l(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=l(d);for(h=a.next();!h.done;h=a.next())h=h.value,h<f[0]&&f[0]++,h<f[1]&&f[1]++;a=l(e);for(h=a.next();!h.done;h=
a.next())h=h.value,h<f[0]&&f[0]--,h<f[1]&&f[1]--}}return c};var q6b=function(a,b){this.start_=a;this.end_=b};q6b.prototype.getStart=function(){return this.start_};q6b.prototype.getEnd=function(){return this.end_};var r6b=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};r6b.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};r6b.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};r6b.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var Jnd=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new Jnd(c,b)});this.matchInfo_=null};Y(Jnd,UO);Jnd.prototype.getMemberList=function(){return this.memberList_};Jnd.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=s6b(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var Knd=function(a,b){this.delegate_=a;this.matcher_=new Ind(b)};Knd.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new Jnd(a,this.matcher_):null};Knd.prototype.resultCount=function(){return this.delegate_.resultCount()};Knd.prototype.isDone=function(){return this.delegate_.isDone()};var Lnd=function(a){var b=new f6b;this.delegate=a;this.placeholderFactory=b};Lnd.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(zt(a))};Lnd.prototype.resultCount=function(){return this.delegate.resultCount()};Lnd.prototype.isDone=function(){return this.delegate.isDone()};var Mnd=/\s+/g,Nnd=function(a,b){this.clientInfo_=a;this.storage_=b},pnd=function(a,b,c,d,e){var f=Q5b([b]);b=(b||"").replace(Mnd," ").trim();var h=!f.length;var k=a.clientInfo_;k=h?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var q=a.clientInfo_;h=h?d.getSuggestMaxResults()||q.getSuggestMaxResults():d.getSearchMaxResults()||q.getSearchMaxResults();var u=d.boostIds_;q=d.primingTimeoutMillis_;if(u.length){u=u.map(String);var A=e5b(u)+":"+u.length;q={ids:u,cacheKey:A,
primingTimeoutMillis:q}}else q=Qmd;u=d.getFilter();A=b;var G=new Gnd(a.storage_,k);kl(a.clientInfo_,21)&&Lxc(A)&&(G=new Lnd(G));u&&(G=new Fnd(G,u,A));G=new End(G);G=new und(G,h);a=f.length?new Knd(G,f):G;h=d.getQueryScope();c=new Dnd(k,c,h);return new Cnd(c,b,f,a,q,e,u,d.selectedCustomProviderNames_)};var Ond=function(a){this.fetcher=a};Ond.prototype.getStageType=function(){return 2};Ond.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,A;return w(function(G){switch(G.nextAddress){case 1:c=u6b(Nmd(a)),d=l(c),e=d.next();case 2:if(e.done){G.jumpTo(4);break}f=e.value;h=l(f);k=h.next().value;q=h.next().value;u=k;A=q;if(!u){G.jumpTo(3);break}return x(G,b.fetcher.fetch(A,u,a.getFormat(),function(H,N){a.notify(H,[],N)},a.getOptions()),3);case 3:e=d.next();G.jumpTo(2);break;case 4:return G.return()}})};var Pnd=function(a,b){this.delegate=a;this.maxLookupChunkSize=Skd(b)};Pnd.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return w(function(u){switch(u.nextAddress){case 1:var A=f.maxLookupChunkSize;if(a.length)if(a.length<=A)A=[a];else{for(var G=[],H=0;H<a.length;H+=A){var N=a.slice(H,H+A);N.length&&G.push(N)}A=G}else A=[];h=l(A);k=h.next();case 2:if(k.done){u.jumpTo(4);break}q=k.value;return x(u,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();u.jumpTo(2);break;case 4:return u.return()}})};var Qnd=function(a){this.qos=a};Qnd.prototype.getIndex=function(){return String(this.qos)};var Rnd=new Qnd(1),Snd=new Qnd(2);var Tnd=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Tnd.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,u,A,G,H,N,O,U,da;return w(function(ma){switch(ma.nextAddress){case 1:return h=b===3?4:3,k=l9((new lu).setProvenance(h),!0).setCode(0),te(ma,2),x(ma,f.loader.loadLookupItems(b,a.map(function(ra){return ra.getOriginalValue()}),Snd),4);case 4:q=ma.yieldResult;q.metadata.getCode()&&k.setCode(q.metadata.getCode());u=e.getQueryScope()===3;try{f.indexer.store(b,q.data,q.metadata,u)}catch(ra){f.trackers.error(21,10).report(),k.setCode(13)}uu(ma,3);
break;case 2:A=xe(ma),G=Number(A),k.setCode(isFinite(G)&&G?G:13);case 3:H=new Map;N=l(a);for(O=N.next();!O.done;O=N.next())U=O.value,(da=f.indexer.load(U,c,e.getUseOriginalDisplayValue()))&&H.set(U,da);d(H,k);return ma.return()}})};var Und=function(a){this.indexer=a};Und.prototype.getStageType=function(){return 1};Und.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return w(function(q){c=new Map;d=[];e=l(Nmd(a));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))c.set(h,k);else{var u=b.indexer;(Wxc(h)?u.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,d,l9((new lu).setProvenance(6),!1).setCode(0));return q.return()})};var Vnd=RegExp("^[^a-z0-9@\u00c0-\u02ff\u0370-\u1aaf\u1b00-\u1fff\u2070-\u218f\u2460-\u24ff\u2c00-\u2dff\u2e80-\u2fef\u3040-\u4dbf\u4e00-\ud7ff\uf900-\ufdff\ufe70-\uffef]+$","i"),Wnd=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=a$(Ik(e,8,250),Pm(e,9,3600)*1E3);this.notFound_=a$(Ik(e,10,500),Pm(e,11,600)*1E3)};g=Wnd.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear();this.notFound_.clear()};
g.fetch=function(a){var b=this,c,d,e;return w(function(f){switch(f.nextAddress){case 1:c=l9(new lu,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(Rnd).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(l9(c,!1));te(f,2);return x(f,b.loader_.loadAutocompleteItems(a,Snd),4);case 4:d=f.yieldResult;uu(f,3);break;case 2:return e=xe(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(h){return f.return(c.setCode(13))}return f.return(c)}})};
g.search=function(a){if(a.isSuggestQuery())return[];var b=a.getPrefix(),c=this.indexes_.get(b);if(c)return c.search([]).getMatches(a.getCollector());if(this.notFound_.has(b)||a.queryScope()===3)return[];for(var d=b.length-1;!c&&d>0;d--){c=b.substr(0,d);if(this.notFound_.has(c))return[];c=this.indexes_.get(c)}return c?c.search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!kl(c,5))if(R9(c),b.length){c=Xkd(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=lnd(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};g.canSkipFetch_=function(a){if(a.queryScope()===3)return!1;var b=a.getPrefix();if(this.indexes_.has(b)||this.notFound_.has(b))return!0;if(a.isEmailAddress())return!1;for(a=b.length-1;a>0;a--){var c=b.substr(0,a);if(c.match(Vnd))break;if(this.notFound_.has(c))return!0}return!1};
g.getName=function(){};var Xnd=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};g=Xnd.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return w(function(h){switch(h.nextAddress){case 1:return c=l9(new lu,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Snd:Rnd,te(h,2),x(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;uu(h,3);break;case 2:return f=xe(h),h.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return h.return(c)}})};
g.search=function(a){return a.isSuggestQuery()||a.getTerms().length?(this.indexes_.get(a.getFormat())||$9).search(a.getTerms()).getMatches(a.getCollector()):[]};g.index=function(a,b,c){if(!kl(c,5)){R9(c);a=this.coalescedSortOrder_!==1?Xkd(this.ranker_,b,this.coalescedSortOrder_):null;var d=Xkd(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=lnd(this.trieFactory_,d);c=a?lnd(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
g.getName=function(){};var Ynd=new ymd(27,32,33),Znd=new ymd(24,23,20);var $nd=function(){};$nd.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,u=a.clientConfig.getClient();if(u.getCacheSize()>0){var A=pl(u,19,1);A=new Xnd(e,q,f,c,A);A=new c$(A,b,Znd);h.push(A)}k.push(new Und(d));u.getSearchMaxResults()>0&&(c=new Wnd(e,q,f,c,u),b=new c$(c,b,Ynd),h.push(b));h=new Tnd(a.trackers,a.loader,a.indexer);h=new Pnd(h,a.clientConfig);k.push(new Ond(h))};var aod=function(a){this.delegate=a};g=aod.prototype;g.warmUpSession=function(a){return this.delegate.warmUpSession(a)};g.suggest=function(a,b){this.delegate.suggest(a,b)};g.search=function(a,b,c){this.delegate.search(a,b,c)};g.cancel=function(){this.delegate.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.getReporter=function(a){return this.delegate.getReporter(a)};
g.getSessionState=function(){return this.delegate.getSessionState()};g.getHide=function(){return this.delegate.getHide()};var bod=function(a){this.delegate=a};g=bod.prototype;g.warmUpCache=function(){return this.delegate.warmUpCache()};g.flushCache=function(a){this.delegate.flushCache(a)};g.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};g.beginSession=function(a){return this.delegate.beginSession(a)};var cod=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};cod.prototype.getId=function(){return this.id_};cod.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var dod=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};g=dod.prototype;g.getIds=function(){return this.ids_};g.getIdType=function(){return this.idType_};g.getOptions=function(){return this.options_};
g.getKeys=function(){var a=this;return this.getIds().map(function(b){return new cod(a.getIdType(),b,a.getOptions())})};g.setIds=function(a){this.ids_=a;return this};g.setIdType=function(a){this.idType_=a};g.setOptions=function(a){this.options_=a;return this};g.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new dod(a,b,c)};var eod=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new Qgd;this.isSent_=!1};eod.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(this.parameters_.setIds(a)).then(this.resolver_.resolve,this.resolver_.reject)}};eod.prototype.promise=function(){return this.resolver_.promise};
eod.prototype.merge=function(a,b){var c;(c=this.isSent_)||(c=this.parameters_,c=!(a.getIdType()===c.getIdType()&&a.getOptions()===c.getOptions()));if(c||a.getIds().length+this.ids_.size>b)return!1;a=l(a.getIds());for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};var fod=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=Skd(c);this.lastRequestCreationTime_=0};
fod.prototype.load=function(a){var b=this;this.batchedRequest_&&(this.batchedRequest_.merge(a,this.maxRequestSize_)?this.tracker_.count(89).increment():(this.batchedRequest_.send(),this.batchedRequest_=null));if(!this.batchedRequest_){this.tracker_.count(90).increment();var c=this.batchedRequest_=new eod(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Yq(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var god=function(a,b){this.delegate_=a;this.inflightRequests_=qmd();this.tracker_=b};
god.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=l(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getIndex();this.inflightRequests_.has(h)?c.add(this.inflightRequests_.get(h)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var q=new eod(this.delegate_,k);q.send();c.add(q);a=l(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),q);q.promise().catch(function(){}).finally(function(){for(var u=l(k.getKeys()),A=u.next();!A.done;A=u.next())b.inflightRequests_.delete(A.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(u){return u.promise()})).then(function(u){return q?q.promise().then(function(A){return v6b(u,A.metadata)}):v6b(u)})};var hod=function(a){this.peopleLoader_=a};hod.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var iod=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};iod.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new hod(this.peopleLoader_);b=new fod(b,this.tracker_,this.clientConfig_);b=new god(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var jod=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new iod(this.delegate_,this.trackers_,c)},kod=function(a,b,c,d){var e,f;return w(function(h){if(h.nextAddress==1){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),h.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);ve(h,2);return x(h,f,4)}if(h.nextAddress!=2)return h.return(h.yieldResult);ue(h);a.searchRequests_.delete(e);return we(h,0)})};
jod.prototype.loadRankedItems=function(a){var b=this;return kod(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};jod.prototype.warmUpServer=function(a){var b=this;return kod(this,82,"",function(){return b.delegate_.warmUpServer(a)})};jod.prototype.loadAutocompleteItems=function(a,b){var c=this;return kod(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};jod.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new dod(a,b,c))};var lod=function(){return Date.now()},mod=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=Pm(b.getClient(),14,300)*1E3;this.serverWarmupRateMillis_=Pm(b.getClient(),13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};mod.prototype.loadRankedItems=function(a){var b=a.qos;var c=this.nowFn_();b===1&&this.lastCacheFlush_+this.cacheFlushRateMillis_>c?b=!0:(this.lastCacheFlush_=c,b=!1);return b?Promise.reject(1):this.delegate_.loadRankedItems(a)};
mod.prototype.warmUpServer=function(a){var b=a.qos;var c=this.nowFn_();b===1&&this.lastServerWarmup_+this.serverWarmupRateMillis_>c?b=!0:(this.lastServerWarmup_=c,b=!1);return b?Promise.reject(1):this.delegate_.warmUpServer(a)};mod.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};mod.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var nod=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};g=nod.prototype;g.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};g.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};g.cancel=function(){this.delegate_.cancel();return this};g.getReporter=function(a){a=a===void 0?$hd:a;return this.delegate_.getReporter(a)};g.getHide=function(){return this.delegate_.getHide()};var ood=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=Txc(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Y(ood,UO);ood.prototype.getMemberList=function(){return this.members_};ood.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var pod=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};pod.prototype.filterResult=function(a){var b=this;if(!Txc(a.getPrimaryTarget().getId()))return a;var c=a.getMemberList().map(function(d){return b.filter_.filterResult(d)}).filter(Boolean);return this.filterEmptyExplodingGroups_&&c.length===0?null:a.getMemberList().every(function(d,e){return d===c[e]})?a:new Pq(new ood(a,c))};pod.prototype.reset=function(a){this.filter_.reset(a)};
var w6b=function(a,b){this.filter_=rWa(a,new pod(a,b))};w6b.prototype.filterResult=function(a){return this.filter_.filterResult(a)};w6b.prototype.reset=function(a){this.filter_.reset(a)};var qod=function(a){this.delegate_=a};g=qod.prototype;g.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof m9&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};g.flushCache=function(a){this.delegate_.flushCache(a)};g.disambiguate=function(a,b){b=b===void 0?new k9:b;return this.delegate_.disambiguate(a,b)};
g.lookup=function(a,b,c){c=c===void 0?new H4b:c;c.setFilter(x6b(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};g.beginSession=function(a,b){b=b===void 0?new pt:b;b=b.clone();b.setFilter(x6b(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new nod(c,a,b)};var rod=new Map([[2,0],[0,1],[1,3],[3,10],[4,7],[5,9],[7,5],[16,5],[8,11],[9,2],[10,4],[11,2],[12,2],[13,11],[14,11],[15,11]]),sod=new Map([[2,13],[3,6]]),tod=new Map([[2,0],[0,1],[1,2],[3,3],[4,3],[5,2],[7,3],[16,3],[8,3],[9,3],[10,3],[11,3],[12,3],[13,3],[14,3],[15,3]]);var D6b=new Map([[1,1],[2,3],[3,5]]),uod=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),vod=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),wod=function(a,b){this.logContext_=H6b(a,b)};g=wod.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source();xod(d,a);var e=C6b(d);switch(d.getEventType()){case 1:d=e.setCount;b=pl(b.source(),4);var f=new S9;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=pl(b.source(),3);d=new U9;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=pl(b,2);f=new Gld;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());b.hasLookupInfo()&&
f.setLookupInfo(b.getLookupInfo());b.hasQueryScope()&&f.setQueryScope(b.getQueryScope());f.setLabel(d);c.call(e,f);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
g.createStatusMetric=function(a,b,c){var d=b.source();xod(d,a);var e=C6b(d);switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=pl(f,3);var k=pl(f,13)||0;k=sod.get(k)||rod.get(c)||0;var q=sI(b,"blocked"),u=sI(b,"network"),A=sI(b,"processed");b=new Lld;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(u);Hl(b,9,A);b.setStatusCode(c);Ik(f,12)&&(c=Ik(f,12),Hl(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();k=pl(h,2);f=new Ild;
f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());h.hasLookupInfo()&&f.setLookupInfo(h.getLookupInfo());h.hasQueryScope()&&f.setQueryScope(h.getQueryScope());c===0&&(b=sI(b,"total"),f.setLatencyUsec(b));c=tod.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=E6b(Vt(b,2)),Sl(f,5,c),c=E6b(Vt(b,3)),Sl(f,6,c),c=f.setDataSource,h=b.getSource(),b=!kl(h,1),h=h.getProvenance(),
b=(b?vod.get(h):uod.get(h))||0,c.call(f,b);d.call(e,f);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};g.createLatencyMetric=function(a,b){var c=b.source();xod(c,a);if(c.getEventType()!==2)return null;var d=C6b(c);d.setClientInterface(a);a=d.setLatency;var e=pl(b.source(),5);b=sI(b,"total");var f=new Kld;f.setType(e);f.setLatencyUsec(b);a.call(d,f);d.setEventType(c.getEventType());return d};
g.createErrorMetric=function(a,b){var c=b.source();xod(c,a);if(c.getEventType()!==3)return null;var d=C6b(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=pl(e,7);var f=new T9;f.setType(b);Sl(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var xod=function(a,b){var c,d,e;a=(c=X(a,fu,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=d.getSources())==null?void 0:du(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var yod=function(a,b){this.delegate_=a;this.trackers_=b};g=yod.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=b===void 0?new aid:b;this.delegate_.reportSelect(a,b)};g.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};g.reportDeselect=function(a){this.delegate_.reportDeselect(a)};g.reportProceed=function(a){this.delegate_.reportProceed(a)};g.reportDismiss=function(){this.delegate_.reportDismiss();zod(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);zod(this)};g.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);zod(this)};g.reportSend=function(a){this.delegate_.reportSend(a);zod(this)};var zod=function(a){a=a.trackers_;var b=a.api,c=new Qt;St(c.setEventType(6),3);b.call(a,c).call()};var I6b=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Y(I6b,aod);
I6b.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(v5b(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d&&k.getCode()===0&&c.trackers_.error(22,19,f.source).report(),d=!0);k.getIsLastCallback()&&(e&&k.getCode()===0&&c.trackers_.error(22,20,f.source).report(),e=!0);k=c.trackers_.latency(90,
f.source);k.start();try{a(h)}catch(u){throw c.trackers_.error(22,11,f.source).report(),u;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
I6b.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(u5b(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().length);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&q.getCode()===0&&d.trackers_.error(23,19,h.source).report(),e=!0);q.getIsLastCallback()&&(f&&q.getCode()===0&&d.trackers_.error(23,20,h.source).report(),f=!0);q=d.trackers_.latency(91,
h.source);q.start();try{b(k)}catch(A){throw d.trackers_.error(23,11,h.source).report(),A;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};I6b.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new yod(a,this.trackers_)};var Aod=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new Qt;St(c.setEventType(6),1);b.call(a,c).call()};Y(Aod,bod);g=Aod.prototype;
g.warmUpCache=function(){var a=this,b=this.trackers_.api(r5b());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof m9?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new m9).setSource((new lu).setCode(2)));return Promise.reject(c)})};
g.flushCache=function(a){var b=this.trackers_,c=b.api;switch(a){case 3:var d=12;break;case 2:case 1:d=4;break;default:d=10}var e=new Qt;St(e.setEventType(6),d);b=c.call(b,e);b.call();try{this.delegate_.flushCache(a),b.result(0)}catch(f){throw this.trackers_.error(57,1).report(),f;}};
g.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(q5b(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().size);for(var A=0,G=0,H=0,N=0,O=l(k.getResults().keys()),U=O.next();!U.done;U=O.next()){U=U.value;Pxc.includes(U.getType())?A++:Qxc.includes(U.getType())?G++:Rxc.includes(U.getType())&&H++;var da=void 0;((da=k.getResults().get(U))==null?0:da.getDisplayName())&&
N++}O=U=da=0;for(var ma=l(q.notFoundIdList_),ra=ma.next();!ra.done;ra=ma.next())ra=ra.value,Pxc.includes(ra.getType())?da++:Qxc.includes(ra.getType())?U++:Rxc.includes(ra.getType())&&O++;ma=h.source.getMutableLookupInfo();A=Pl(ma,2,A);G=Pl(A,1,G);H=Pl(G,3,H);H=Pl(H,5,da);H=Pl(H,4,U);H=Pl(H,6,O);Pl(H,14,N);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&q.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);q.getIsLastCallback()&&(f&&q.getCode()===0&&d.trackers_.error(8,20).report(),
f=!0);q=d.trackers_.latency(89);q.start();try{b(k)}catch(Ga){throw d.trackers_.error(8,11).report(),Ga;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};g.disambiguate=function(a,b){var c=this.trackers_.api(t5b());c.call();return this.delegate_.disambiguate(a,b).then(function(d){var e=d.getMetadata().getCacheState();c.source.setCacheState(e);c.result(e.getSource().getCode());return d})};
g.beginSession=function(a){this.trackers_.api(s5b()).call();var b=this.delegate_.beginSession(a);return J6b(b,hmd(this.trackers_,new emd(function(){return b.getSessionState()})))};var Bod=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Bod.prototype.report=function(a){var b=dyc(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=l(a);for(b=a.next();!b.done;b=a.next())eyc(this.clearcut_,b.value)};var Cod=function(a){this.clearcut_=a};Cod.prototype.report=function(a){this.clearcut_.report(a)};var Dod=function(a){this.writer_=a};var Eod=function(){};Eod.prototype.create=function(a,b,c){var d=A6b(b),e=new uxc;W(e,y6b,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new vxc;d=gKa(Pm(b,9)-Pm(b,8));Pl(f,2,d);d=new yI;W(d,uxc,1,e);W(d,vxc,6,f);e=new txc;if(f=Sh(Dl(b,6))){Hl(e,3,f*1E3);var h=(Date.now()-f)*1E3;Hl(e,2,h)}Ol(e,1,!!f);W(d,txc,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new xxc;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var Fod=function(){};Fod.prototype.extractPersonEventSource=function(a){return Vt(K6b(a),4)};Fod.prototype.extractFieldEventSource=function(a){return Vt(K6b(a),3)};var God=function(){};God.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new iu;return(a.getQuery()||"").length?Vt(b,2):Vt(b,4)};God.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new iu;return(a.getQuery()||"").length?Vt(b,1):Vt(b,3)};var Hod=function(){};Hod.prototype.extractPersonEventSource=function(a){return Vt(L6b(a),4)};Hod.prototype.extractFieldEventSource=function(a){return Vt(L6b(a),3)};var N6b=new Set([8]);var Iod=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var Jod=new Map([[1,11],[2,12],[0,0]]),Kod=function(){};Kod.prototype.write=function(a,b,c){var d=new tI;Pl(d,1,c);c=new uI;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());W(a,uI,8,c);b=Jod.get(b.getContext());ip(a,3,[b])};var Lod=new Map([[1,5],[2,4],[3,6],[7,13]]),Mod=function(){};Mod.prototype.write=function(a,b,c,d){var e=new tI;Pl(e,1,c);a.setPosition(e);c=Lod.get(b.getProvenance())||0;pl(b,4)===1?c=14:d?c=3:pl(b,4)===2?c=10:pl(b,4)===3&&(c=15);ip(a,3,[c])};var Nod=new Set([9,1,2]),Ood=function(){};Ood.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Nod.has(d))c=new vI,Vt(b,7)!==1&&Vt(b,7)!==7||c.setEmail(fr(b,3)),Vt(b,7)!==2&&Vt(b,7)!==5||c.setPhone(fr(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),W(a,vI,4,c),a=new wI,a.setName(b.getNameOrUndefined()),W(f,wI,2,a);f.setIsBoosted(b.getIsBoosted())};var Pod=function(a){var b=new Ood;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Qod=function(a){var b;return((b=a.getInfo())==null?0:b.getIsPlaceholder())?!0:!1};var T6b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(T6b,V);g=T6b.prototype;g.getEventType=function(){return pl(this,1)};g.getEventType_legacyNullable=function(){return Vt(this,1)};g.setEventType=function(a){return Sl(this,1,a)};g.getSessionState=function(){return X(this,TO,2)};g.setSessionState=function(a){return W(this,TO,2,a)};g.hasSessionState=function(){return nk(this,TO,2)};g.setEventSources=function(a){W(this,iu,4,a)};var Rod=function(){this.defaultEntityFactory_=new Dod(new Pod(new Mod));this.contextualEntityFactory_=new Dod(new Pod(new Kod));this.extensionFactory_=new Eod;this.defaultEventSourceExtractor_=new God;this.additionEventSourceExtractor_=new Fod;this.replacementEventSourceExtractor_=new Hod};
Rod.prototype.create=function(a,b){var c=b.getSessionState()||new TO,d=b.getEventType_legacyNullable();b=Wk(b,au,3,Fk(Gk));var e=P6b(b,R6b);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(p(P6b(f,Q6b).values())):[];b=b?[].concat(p(P6b(b,Q6b).values())):[];e=e?[].concat(p(P6b(e,Q6b).values())):[];e=new Iod(f,b,e);b=[];f=l(e.defaultTokenGroups_);for(var h=f.next();!h.done;h=f.next())b.push.apply(b,p(Sod(this,a,d,h.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=l(e.additionTokenGroups_);
for(h=f.next();!h.done;h=f.next())b.push.apply(b,p(Sod(this,a,d,h.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=l(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,p(Sod(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Sod=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=M6b(d).map(function(u){var A=new wxc,G=h.writer_,H=A.getMetadata()||new xI;A.setMetadata(H);var N=it(u)||new bu,O=u.getInfo()||new cu;G.metadataStateWriter_.write(H,N,Ik(N,2)||0,Qod(u));G.contactInfoWriter_.write(A,O,c,N.getProvenance()||0,pl(N,4)||0);A.setLoggingId(fr(O,1));u=X(A,vI,4)||new vI;W(A,vI,4,u);u.setType(du(O,8));return A});q.length&&k.push(Tod(a,b,c,f.extractPersonEventSource(e),q,e));d=O6b(d).map(function(u){var A=
new wxc,G=h.writer_,H=A.getMetadata()||new xI;A.setMetadata(H);var N=it(u)||new bu,O=u.getInfo()||new cu;G.metadataStateWriter_.write(H,N,(kl(O,9,!0)?Ik(N,2):Ik(N,1))||0,Qod(u));G.contactInfoWriter_.write(A,O,c,N.getProvenance()||0,pl(N,4)||0);u=X(A,vI,4)||new vI;W(A,vI,4,u);X(A,vI,4).setType(du(O,7));A.setLoggingId(fr(O,2));return A});d.length&&k.push(Tod(a,b,c,f.extractFieldEventSource(e),d,e));return k},Tod=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);sn(a,2,e);return a};var Uod=function(a,b){this.logContext_=F6b(gu(new hu,"PeopleStore.BigBug").setLogSource(pl(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(739336995).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(p(a.runtimeConfig_.getExperiments().getExperimentIdsList()),p(G6b?G6b.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new Rod};Uod.prototype.getLogContext=function(){return this.logContext_};var Vod=function(a){this.clientConfig_=a;this.reportingCache_=new Map};Vod.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Uod(this.clientConfig_,a),a=new Cod(new Bod(cyc(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var Wod=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};g=Wod.prototype;g.reportDisplay=function(a){f$(this,ku(a,1))};g.reportSelect=function(a,b){b=b===void 0?new aid:b;if(b.getOriginator()!==0)for(var c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!nk(d,bu,2)){var e=d,f=new bu;W(e,bu,2,f)}d=it(d);Sl(d,4,b.getOriginator())}b=this.sharedSessionState_;c=Sh(Dl(this.sharedSessionState_,4))+1;Hl(b,4,c);f$(this,ku(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!nk(c,bu,2)){var d=c,e=new bu;W(d,bu,2,e)}c=it(c);Sl(c,4,2)}b=this.sharedSessionState_;c=Sh(Dl(this.sharedSessionState_,4))+1;Hl(b,4,c);f$(this,ku(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){f$(this,ku(a,17,this.sharedSessionState_))};g.reportProceed=function(a){f$(this,ku(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new T6b;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(a.getSources());f$(this,[b])};g.reportSave=function(a){f$(this,ku(a,9,this.sharedSessionState_))};g.reportSecondaryAction=function(a){f$(this,ku(a,19,this.sharedSessionState_))};g.reportSend=function(a){f$(this,ku(a,8,this.sharedSessionState_,!0))};var f$=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var g$=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;Hl(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));Hl(this.sharedSessionState_,4,0);tLc(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Y(g$,aod);
g$.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();tLc(this.sharedSessionState_,Sh(Dl(this.sharedSessionState_,3))+1);d.setQuery("");uLc(d);var e=0;this.delegate_.suggest(function(f){e=Xod(c,f.getResults(),U6b(f),d,e);a(f)},b)};
g$.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();tLc(this.sharedSessionState_,Sh(Dl(this.sharedSessionState_,3))+1);e.setQuery(a);uLc(e);var f=0;this.delegate_.search(a,function(h){f=Xod(d,h.getResults(),U6b(h),e,f);b(h)},c)};g$.prototype.getReporter=function(a){return new Wod(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};g$.prototype.getSessionState=function(){return this.sharedSessionState_};
var Xod=function(a,b,c,d,e){d=d.clone();var f=qxc();tq(d,9,Hb(f));f=a.delegate_.getLastUpdatedTimestamp();Hl(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=l(b);for(b=a.next();!b.done;b=a.next()){var h=b.value;b=h.getIsBoosted();f=0;h=l(h.getTargetList());for(var k=h.next();!k.done;k=h.next()){k=k.value.getLoggingToken();Du(k,cu,1).setIsBoosted(b);var q=it(k)||new bu;q.getProvenance()!==7&&q.setProvenance(c.getProvenance());Pl(q,2,e);Pl(q,1,f);W(k,bu,2,q);k.setSessionState(d);f++}e++}return e};var Yod=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=V1b();this.clearcutConfig_=c};Y(Yod,bod);
Yod.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new lu;h=c.getOriginator();e=l(e);for(var k=e.next();!k.done;k=e.next()){k=l(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var u=it(q)||new bu;u.getProvenance()!==7&&u.setProvenance(f.getProvenance());Sl(u,4,h);W(q,bu,2,u)}}b(d)},c)};
Yod.prototype.beginSession=function(a){var b=new TO,c=Zod(this,a);W(b,iu,10,c);c=$od(this,a);W(b,ju,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new g$(a,this.reportingFactory_,b,this)};
var Zod=function(a,b){a=Wk(a.clearcutConfig_,iu,5,Fk());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new iu},$od=function(a,b){a=Wk(a.clearcutConfig_,ju,6,Fk());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new ju};var apd=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Wkd(e);this.indexes_=a$(Ik(e,8,250),Pm(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};g=apd.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d;return w(function(e){switch(e.nextAddress){case 1:c=l9(new lu,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(l9(c,!1));te(e,2);return x(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;uu(e,3);break;case 2:return xe(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new eu),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:a.queryScope()===3?!1:this.indexes_.has(a.getPrefix())?!0:!1};g.index=function(a,b){for(var c=Xkd(this.ranker_,b,1),d=l(b),e=d.next();!e.done;e=d.next())this.targetFactory_.processItem(e.value);d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=lnd(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};g.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector())};
g.getName=function(){return this.adapter_.getName()};var bpd=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};bpd.prototype.getStageType=function(){return 2};bpd.prototype.index_=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.indexer_.storeItems(a,b)};
bpd.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,A;return w(function(G){switch(G.nextAddress){case 1:return c=new Map,d=l9(new lu,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=Nmd(a),te(G,2),x(G,b.adapter_.lookup(f),4);case 4:h=G.yieldResult;uu(G,3);break;case 2:return xe(G),d.setCode(13),a.notify(c,[],d),G.return();case 3:b.index_(h,e);k=l(f);for(q=k.next();!q.done;q=k.next())u=q.value,(A=b.indexer_.load(u,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(u,A);
a.notify(c,[],d);ze(G)}})};var cpd=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};cpd.prototype.search=function(a){var b=this,c,d;return w(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),te(e,2,3),x(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:ue(e);c.stop();we(e,0);break;case 2:throw d=xe(e),b.trackers_.error(36,11).report(),d;}})};
cpd.prototype.lookup=function(a){var b=this,c,d;return w(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),te(e,2,3),x(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:ue(e);c.stop();we(e,0);break;case 2:throw d=xe(e),b.trackers_.error(37,11).report(),d;}})};var dpd=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};dpd.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
dpd.prototype.warmUpCache=function(){var a=this,b,c;return w(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),te(d,2,3),x(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:ue(d);b.stop();we(d,0);break;case 2:throw c=xe(d),a.trackers_.error(35,11).report(),c;}})};dpd.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var epd=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Wkd(e);this.index_=$9};g=epd.prototype;g.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};g.flush=function(){this.index_=$9};
g.fetch=function(a){var b=this,c,d;return w(function(e){switch(e.nextAddress){case 1:c=l9(new lu,!0).setProvenance(7).setCode(0);if(b.index_!=$9&&!b.adapter_.needsWarmUp())return e.return(l9(c,!1));te(e,2);return x(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;uu(e,3);break;case 2:return xe(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new eu),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.index=function(a,b){a=Xkd(this.ranker_,b,1);for(var c=l(b),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);this.storage_.storeItems(1,b);this.index_=lnd(this.trieFactory_,a)};g.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return this.index_.search(a.getTerms()).getMatches(a.getCollector())};g.getName=function(){return this.adapter_.getName()};var fpd=function(a,b){this.provider_=a;this.itemFactory_=b};fpd.prototype.search=function(a,b){var c=this,d;return w(function(e){if(e.nextAddress==1)return b<1?e.return([]):x(e,c.provider_.search((new DLc).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(gpd(d))})};fpd.prototype.lookup=function(a){var b=this,c;return w(function(d){if(d.nextAddress==1)return a.length?x(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(gpd(c))})};fpd.prototype.getName=function(){return this.provider_.name};var hpd=function(a,b){this.provider_=a;this.itemFactory_=b};hpd.prototype.getPosition=function(){return this.provider_.getPosition()};hpd.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};hpd.prototype.warmUpCache=function(){var a=this,b;return w(function(c){if(c.nextAddress==1)return x(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(gpd(b))})};hpd.prototype.getName=function(){return this.provider_.name};var ipd=new ymd(68,69,38);var jpd=function(){},kpd=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=l(c.getTargetList()),h=f.next();!h.done;h=f.next())h=Y6b(c,h.value,7),e.push(String(h.id)),h.coalescedKeys=e,d||(d=h),b.push(h);d&&Ft(d.id)&&(e=void 0,d.totalMemberCount=(e=Lu(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var q=l(k.getTargetList());for(q=q.next();!q.done;q=q.next())return k=Y6b(k,q.value,8),b.push(k),String(k.id)}))}return b},gpd=function(a){a=
Wk(a,Clc,1,Fk());return kpd(a)};var lpd=function(a){this.delegate_=a};lpd.prototype.processItem=function(a){a.target=b7b(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var c7b=function(){};
c7b.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,h=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var q=b.getClient(),u=new jpd;var A=A===void 0?Vkd:A;b=new Zld(b,new lpd(A));A=[];for(var G=l(k.staticDataProviders_.reverse()),H=G.next();!H.done;H=G.next()){H=H.value;var N=c,O=H;O=new dpd(O,N);O=new epd(new hpd(O,u),b,f,d,q);N=new c$(O,N,ipd);switch(H.getPosition()){case 1:A.push(N);break;case 2:h.push(N);
break;default:throw Error("qg");}}A.length&&h.splice.apply(h,[0,0].concat(p(A)));k=l(k.dynamicDataProviders_);for(A=k.next();!A.done;A=k.next())A=A.value,G=c,H=A,H=new cpd(H,G),H=new apd(new fpd(H,u),b,f,d,q),G=new c$(H,G,ipd),h.push(G),A=new cpd(A,c),a.push(new bpd(new fpd(A,u),b,e))}};var mpd={create:function(a){var b=pc(Qkd||(Qkd=Pkd('[[15,15],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s","ANVavNKl4mkR3DMa8R68PqYrNFuTUEjFCzfJB_o"],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47,null,null,["person.name","person.photo","person.email","person.metadata"]],[null,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new F9(b,a);a.runtimeConfig_.getExperiments().getProfileId()?Rkd(a).getIsEnabled()?(b=pc(Tkd||(Tkd=F3b('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new G3b(b,1)):b=new ot:b=new ot;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;G6b=b.loadExperiments(Rkd(a).getApplication(),(new H3b).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new jmd;d=l([d7b]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new jmd:c;b=a.getClearcut();b=new wod(b,a.runtimeConfig_);b=lt(b);b=new Y9(b);d=new imd(a,b);e=c;c=d.targetFactory_;var f=a.getClient();c=new Hmd(c,f);var h=h===void 0?lod:h;h=new mod(d.loader_,
a,h);f=new jod(h,b,a);var k=[new $nd,new Amd].concat(p(e.cacheConfigurators_),[new Bnd]);e=[];var q=[],u=new Pmd(c,a);h=new Omd(q,u,a);d={clientConfig:a,trackers:b,storage:c,indexer:u,loader:f,loaderFactory:d,trieFactory:new jnd(c,h,b),prefixCaches:e,lookupStages:q};f=l(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new Xmd(e);h=new bnd(a,b,d,h,c);d=a.getClient();c=new Nnd(d,c);d=a.getClient();h=new znd(h,c,d);c=new Vod(a);a=a.getClearcut();h=new Yod(h,c,a);h=new Aod(h,b);return new qod(h)}};var npd=function(){};npd.prototype.send=function(a,b){cJa(a);return this.makeRequest(a).then(function(c){return b?ZIa(b,c):c})};var opd=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.customGapiPromise=null;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};Y(opd,npd);g=opd.prototype;g.getGapi=function(){var a=this;return(this.customGapiPromise||MJa()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return SJa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
g.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return w(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):x(d,RJa(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request(b.createRequestParams(a))))})})};
g.createRequestParams=function(a){return{root:this.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||this.defaultApiId}};g.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})};
g.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&PJa(a,b,this.gapiConfigUpdates[b])};opd.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=Jf({type:h$});
h$.\u0275inj=Tc({providers:[{provide:UBc,useFactory:function(){var a=new opd("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=UJa();a.customGapiPromise=b;return new lwc(a)}}],imports:[{ngModule:PQ,providers:[XO,{provide:zLc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:mpd,autocompleteFactory:Qjd}}}]},{ngModule:nV,providers:[VU,
{provide:uWc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:mpd,searchBarFactory:Nkd}}}]}]});var g7b={os:1223084,version:1223033},f7b={os:201569,version:201543};var m7b={unconfirmed:5437934,chromiumRegression:5438261},l7b={unconfirmed:1218157,chromiumRegression:1218155};var i$={},ppd=(i$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],i$.AUDIO_VIDEO=[{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers?\n",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]},
{type:"TEXT",question:"Please open chrome://gpu in a new Chrome tab and paste the report here.",answerPrefix:"Contents of chrome://gpu: \n"}],i$.CONTENT=[{type:"INPUT",question:"What specific URL has a problem?",answerPrefix:"Example URL: "},{type:"SELECT",question:"Does the problem occur on multiple sites?",options:["Not sure - I don't know","Yes - Please describe below","No - Just that one URL"]},{type:"SELECT",question:"Is it a problem with a plugin?",options:["Not sure - I don't know",{text:"Yes - Those darn plugins",
child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]},{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chromium problem",{text:"No - I can reproduce the problem in another browser",child:{type:"INPUT",question:"Which other browsers (including versions) also have the problem?"}}]}],i$.APPS=[{type:"INPUT",question:Pi([Oi("What is the link to that software in "),
e7b("the Chrome Webstore","https://chrome.google.com/webstore"),Oi("?")]),answerPrefix:"Webstore page: "}],i$.EXTENSIONS_THEMES=[{type:"SELECT",question:"What kind of software had the problem?",options:["Chrome Extension - Adds new browser functionality",{text:"Chrome Theme - Makes Chrome look awesome",child:{type:"INPUT",question:"Do you know the latest version where it worked?"}}]},{type:"INPUT",question:Pi([Oi("What is the link to that software in "),e7b("the Chrome Webstore","https://chrome.google.com/webstore"),
Oi("?")]),answerPrefix:"WebStore page: "}],i$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],i$.CRASHES=[{type:"INPUT",question:"Do you have a Report ID from chrome://crashes?",answerPrefix:"Crashed report ID: "},{type:"SELECT",question:"How severe is the crash?",options:["Just one tab","Just one plugin","The whole browser"],answerPrefix:"How much crashed? "},{type:"SELECT",question:"Is it a problem with a plugin?",
options:["Not sure - I don't know",{text:"Yes - Those darn plugins",child:{type:"INPUT",question:"Which plugin?"}},"No - It's the browser itself"]}],i$.OTHER=[{type:"SELECT",question:"Please select a label to classify your issue:",options:["Not sure - I don't know","Type-Feature - Request for new or improved features","Type-Bug-Regression - Used to work, now broken","Type-Bug - Software not working correctly","Cr-UI-I18N - Issue in translating UI to other languages"]}],i$.API=[{type:"SELECT",question:"Which component does this fall under?",
options:"Not sure - I don't know;Blink>Animation;Blink>BackgroundSync;Blink>Bindings;Blink>Bluetooth;Blink>Canvas;Blink>Compositing;Blink>CSS;Blink>DataTransfer;Blink>DOM;Blink>Editing;Blink>FileAPI;Blink>Focus;Blink>Fonts;Blink>Forms;Blink>Fullscreen;Blink>GamepadAPI;Blink>GetUserMedia;Blink>HitTesting;Blink>HTML;Blink>Image;Blink>INPUT;Blink>Internals;Blink>Javascript;Blink>Layout;Blink>Loader;Blink>Location;Blink>Media;Blink>MediaStream;Blink>MemoryAllocator;Blink>Messaging;Blink>Network;Blink>Paint;Blink>Payments;Blink>PerformanceAPIs;Blink>PermissionsAPI;Blink>PresentationAPI;Blink>PushAPI;Blink>SavePage;Blink>Scheduling;Blink>Scroll;Blink>SecurityFeature;Blink>ServiceWorker;Blink>Speech;Blink>Storage;Blink>SVG;Blink>TEXTAutosize;Blink>TEXTEncoding;Blink>TEXTSELECTion;Blink>USB;Blink>Vibration;Blink>ViewSource;Blink>WebAudio;Blink>WebComponents;Blink>WebCrypto;Blink>WebFonts;Blink>WebGL;Blink>WebGPU;Blink>WebMIDI;Blink>WebRTC;Blink>WebShare;Blink>WebVR;Blink>WindowDialog;Blink>Workers;Blink>XML".split(";")},
{type:"SELECT",question:"Does this feature work correctly in other browsers?",answerPrefix:"Does this work in other browsers? ",options:["Not sure - I don't know","Yes - This is just a Chrome problem",{text:"No - I can reproduce the problem in another browser",child:{type:"TEXT",question:"Details of interop issue"}}]}],i$.SECURITY=[{type:"INPUT",question:"For crashes, what type of crash [tab, browser, etc.]:",answerPrefix:"Type of crash: "},{type:"TEXT",question:Pi([Oi("For crashes, what was the crash state? [See "),
e7b("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Oi(", include the stack trace *with symbols*, registers, exception record]:")]),answerPrefix:"Crash state: "},{type:"INPUT",question:"Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited?",answerPrefix:"Reporter credit: "}],i$);var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=Jf({type:j$});j$.\u0275inj=Tc({imports:[fV]});var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=Jf({type:k$});k$.\u0275inj=Tc({providers:[t$c,Fx],imports:[zx,ux,G4,YB,Mx,O4,M4,zx]});var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=Jf({type:l$});l$.\u0275inj=Tc({providers:[{provide:k$c,useValue:ppd},{provide:m$c,useFactory:h7b},{provide:l$c,useFactory:k7b},{provide:n$c,useFactory:n7b}],imports:[aW,ZB,e2,Ly,$B,j$,GM,aN,gO,yQ,k$,gW]});var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=Jf({type:m$});m$.\u0275inj=Tc({imports:[ZB,$B,cC,AQ,Ly,My,U0]});var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=Jf({type:n$});n$.\u0275inj=Tc({imports:[bH,ZB,U0,yO,Ly,EL,cC,GM,U1,jR]});var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=Jf({type:o$});o$.\u0275inj=Tc({imports:[ZB,$B,cC,AQ,Ly,My,U0]});var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=Jf({type:p$});p$.\u0275inj=Tc({imports:[ZB,$B,cC,QN,D6,LH]});var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=Jf({type:q$});q$.\u0275inj=Tc({imports:[ZB,QN,UQ,TQ,SQ,QW,cC,WJ,$B]});var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=Jf({type:r$});r$.\u0275inj=Tc({imports:[Yv,Ly,dz,kV,My]});var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=Jf({type:s$});s$.\u0275inj=Tc({imports:[bH,cW,BQ,cJ,KZ,m1,ZM,yO,Ly,jV,H_,EL,W_,iN,$B,GM,yQ,$K,jX,LH,fH,cC,m1,VB,FQ,My,r$,jR,ZB,cx,gW,dW,p$,q$,dC,PQ,nV,oV]});var t$=function(){};t$.\u0275fac=function(a){return new (a||t$)};t$.\u0275mod=Jf({type:t$});t$.\u0275inj=Tc({imports:[bH,ZB,U0,yO,Ly,EL,cC,f2]});var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=Jf({type:u$});u$.\u0275inj=Tc({imports:[ZB,cC,$B,fO,U0,jV,H_,lZ,AQ,Ly,My,LH,QQ]});var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=Jf({type:v$});v$.\u0275inj=Tc({imports:[$K,GM,ZB,yx,$B,BQ,cV,gW]});var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=Jf({type:w$});w$.\u0275inj=Tc({imports:[ZB,cC,$B,fO,U0,AQ,$K,Ly,My,LH,QQ]});var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=Jf({type:x$});x$.\u0275inj=Tc({imports:[bH,ZB,U0,Ly,EL,fO,cC,QQ,GM,f2,QN]});var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=Jf({type:y$});y$.\u0275inj=Tc({imports:[ZB,Y0,QN,$B]});var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=Jf({type:z$});z$.\u0275inj=Tc({imports:[ZB,$B,h2,QN]});var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=Jf({type:A$});A$.\u0275inj=Tc({imports:[ZB,f_,I1]});var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=Jf({type:B$});B$.\u0275inj=Tc({imports:[ZB,HQ,Ly,fO,FL,QQ,EL,jX,$B,GM,cC,$K,QN]});var C$=function(){};C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=Jf({type:C$});C$.\u0275inj=Tc({imports:[bH,ZB,HQ,f_,TZ,v3,C3,E3,X_,U0,N3,Ly,EL,$B,GM,$K,yQ,fH,fO,cC,QQ,U1,B$,cx,A$,S1,QN,jR,eR,s8]});var D$=function(){};D$.\u0275fac=function(a){return new (a||D$)};D$.\u0275mod=Jf({type:D$});D$.\u0275inj=Tc({imports:[ZB,U0,Ly,$B,GM,$K,oR,fO,cC,fH,QQ,cx,S1,rY,pP,I1,WW]});var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=Jf({type:E$});E$.\u0275inj=Tc({imports:[ZB,$B,jz,RL,Aw,QL,Ly,My,Yy,yQ,YB,fz,fO]});var F$=function(){};F$.\u0275fac=function(a){return new (a||F$)};F$.\u0275mod=Jf({type:F$});F$.\u0275inj=Tc({imports:[ZB,dM]});var G$=function(){};G$.\u0275fac=function(a){return new (a||G$)};G$.\u0275mod=Jf({type:G$});G$.\u0275inj=Tc({imports:[ZB,F$,WJ,cC]});var H$=function(){};H$.\u0275fac=function(a){return new (a||H$)};H$.\u0275mod=Jf({type:H$});H$.\u0275inj=Tc({imports:[ZB,dM,FL]});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=Jf({type:I$});I$.\u0275inj=Tc({imports:[ZB,FL,dM,BQ]});var J$=function(){};J$.\u0275fac=function(a){return new (a||J$)};J$.\u0275mod=Jf({type:J$});J$.\u0275inj=Tc({imports:[ZB,cC,WJ,I$,H$]});var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=Jf({type:K$});K$.\u0275inj=Tc({imports:[ZB,WJ]});var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=Jf({type:L$});L$.\u0275inj=Tc({imports:[ZB,K$,WJ,cC]});var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=Jf({type:M$});M$.\u0275inj=Tc({imports:[ZB,WJ]});var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=Jf({type:N$});N$.\u0275inj=Tc({imports:[ZB,cC,WJ,M$]});var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=Jf({type:O$});O$.\u0275inj=Tc({imports:[ZB,mR,cC,LH,GM,$B,RL]});var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=Jf({type:P$});P$.\u0275inj=Tc({imports:[ZB,mR,cC]});var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=Jf({type:Q$});Q$.\u0275inj=Tc({imports:[ZB,mR,LH]});var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=Jf({type:R$});R$.\u0275inj=Tc({imports:[ZB,UL,dM,Vx,YB,KH,yx,bV]});var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=Jf({type:S$});S$.\u0275inj=Tc({imports:[Yv,nJ,ZQ]});var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=Jf({type:T$});T$.\u0275inj=Tc({imports:[ZB,dM,UL,oR,fO,GM,cC,$B,O$,P$,R$,Q$,QN,UQ,HQ,S$,RQ,J$,N$,KH,L$,G$,E$,yx]});var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=Jf({type:U$});U$.\u0275inj=Tc({imports:[ZB,$B,T$,cC]});var V$=function(){};V$.\u0275fac=function(a){return new (a||V$)};V$.\u0275mod=Jf({type:V$});V$.\u0275inj=Tc({imports:[ZB,UQ,QN,P$,Q$,dM,HQ,S$,RQ,QW,$B,fO,oR,cC]});var W$=function(){};W$.\u0275fac=function(a){return new (a||W$)};W$.\u0275mod=Jf({type:W$});W$.\u0275inj=Tc({imports:[ZB,Ly,$B,cC,My,eY,U$,V$,qH]});var X$=function(){};X$.\u0275fac=function(a){return new (a||X$)};X$.\u0275mod=Jf({type:X$});X$.\u0275inj=Tc({imports:[yQ,ZB,Ly]});var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=Jf({type:Y$});Y$.\u0275inj=Tc({imports:[kR,ZB,Ly,GM,$B,$K,yQ,aN,fH,oR,LH,fO,cC,hH,VB,z6,X$,QN,cJ,YB]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=Jf({type:Z$});Z$.\u0275inj=Tc({imports:[ZB,AQ,$B]});var qpd={disableCheatSheet:!0};qpd=qpd===void 0?{}:qpd;
var rpd=[ZB,DZ,bI,sA,SJ,GZ,W_,UL,HY,EL,mZ,hH,JY,U1,rY,oZ,aR,bH,f1,p_,DY,j3,Z3,wW,XL,iN,TU,d_,SQ,t$,x$,z$,y$,k5,V6,d8,f8,n$,C$,D$,b8,Y0,h2,X_,P3,S3,w1,ZJ,W0,K_,b4,k3,J3,l3,T3,I3,H3,E1,G1,hO,C1,I_,tZ,kR,BQ,cV,v$,wR,CY,N1,lZ,NM,Q1,j2,x1,y1,R3,S2,QN,FZ,QT,JM,wY,E3,Z$,N3,G3,y2,FL,HQ,dM,Y$,eM,XJ,g1,j1,f2,S1,h1,U0,n3,m$,o$,B3,X1,n_,f_,g_,TZ,i1,z1,r_,LQ,n1,o1,H_,d2,p1,q1,C3,HZ,LZ,QQ,V0,cW,v3,u$,SY,w$,s$,MZ,t8,t2,y8,W$,yY,oA,{ngModule:aI,providers:[FH,{provide:Jvc,useFactory:function(a){return new lwc(new kwc("https://appswaldo-pa.clients6.google.com",
a.waldoApiKey,a.globalApiKey,Object.assign({},nwc,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[mwc]},{provide:mwc,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc",gapiConfig:{withCredentials:!0}}}}]},{ngModule:jH,providers:[iH,{provide:ruc,useValue:qpd}]},h$];wk("enableChromeWizard")&&rpd.push(l$);
var spd=[P9c,koc,J7c,K7c,L7c,U0c,Kjc,{provide:oKc,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:aTc,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:rkc,useValue:{disableTooltipInteractivity:!0}},{provide:GNc,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:JNc,useValue:"92912"},Q9c,a$c,b$c,c$c],wv=function(){};wv.prototype.ngDoBootstrap=function(){Lj("bootstrapping AppModule")};wv.\u0275fac=function(a){return new (a||wv)};
wv.\u0275mod=Jf({type:wv,bootstrap:[CZ,X3]});wv.\u0275inj=Tc({providers:[].concat(p(spd)),imports:[rpd,x8]});qF(document,"DOMContentLoaded",function(){Bac()});
__._ModuleManager_initialize=function(){};
__._ModuleManager_initialize('c/wrzEXb/dSirkf/n90YA/ZGAB2e/sLGWFe/M79aPc/nJ4XF/hZVRae',[]);
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
